IT |
気になる、記になる… |
Apple、来月にM2チップを搭載した新型「MacBook Pro 13インチ」を発表か − デザインは変わらないとの情報 |
https://taisy0.com/2022/02/15/152079.html
|
macbook |
2022-02-15 12:31:58 |
js |
JavaScriptタグが付けられた新着投稿 - Qiita |
【jest】モック化したuseRecoilValueの戻り値がundefinedになる【react】 |
https://qiita.com/naoki-funawatari/items/a100d58e63e605ac22cf
|
【jest】モック化したuseRecoilValueの戻り値がundefinedになる【react】はじめにタイトルどおりですが、モック化したuseRecoilValueやuseRecoilStateの戻り値がundefinedになってしまう現象に遭遇し、小一時間ハマってしまいました。 |
2022-02-15 21:39:01 |
AWS |
AWSタグが付けられた新着投稿 - Qiita |
terraformのimportを超快適にしてみた件【v4の破壊的変更のお供に!】 |
https://qiita.com/ykato/items/db4c083d900bd73385ce
|
調査してみてくれない」ええ誰か手作業で変更したtfstateのバックアップ探さないと・・、とさらに追撃のメンション「この前importしたやつ、importするリソースが足りてないと思います」もはやインフラ屋じゃなくてimport屋かIaaS化は別のトイルを産んでいるそもそもimportの仕組みがよろしくないのよねググリが前提なんだよね。 |
2022-02-15 21:51:29 |
Docker |
dockerタグが付けられた新着投稿 - Qiita |
dockerでの環境構築時に出てきた、PHP message: Xdebug: [Log Files] File '/tmp/xdebug.log' could not be opened.PHP message: Xdebug: [Step Debug] Could not connect to debugging client. の解決方法 |
https://qiita.com/koudai_kumazaki/items/a009177ec721fccd037e
|
dockerでの環境構築時に出てきた、PHPmessageXdebugLogFilesFilextmpxdebuglogxcouldnotbeopenedPHPmessageXdebugStepDebugCouldnotconnecttodebuggingclientの解決方法皆様こんにちは。 |
2022-02-15 21:43:57 |
golang |
Goタグが付けられた新着投稿 - Qiita |
Go言語の環境設定 |
https://qiita.com/T_death/items/f7f23eadbdfcf688de6c
|
|
2022-02-15 21:07:02 |
Git |
Gitタグが付けられた新着投稿 - Qiita |
gitコマンドが使えなくなったのを、元通り使えるようにしたい。(原因は、macOS のアップデートを実行したため) |
https://qiita.com/ryamate/items/cca00c013497344059ed
|
原因は、macOSのアップデートを実行したため原因は、macOSのアップデートだったから、これからも同様のことがあるだろうけど、その度に忘れて、その度に簡単に解決するやん、となることでしょう。 |
2022-02-15 21:27:34 |
海外TECH |
MakeUseOf |
How to Remove the “Sent From My iPhone” Signature on Your iPhone |
https://www.makeuseof.com/how-to-remove-sent-from-my-iphone-signature/
|
signature |
2022-02-15 12:30:22 |
海外TECH |
MakeUseOf |
Wire a Cat6 Cable With This Wiring Diagram |
https://www.makeuseof.com/cat-6-wiring-diagram/
|
network |
2022-02-15 12:00:36 |
海外TECH |
DEV Community |
40+ Killer JavaScript One Liners 🔥 |
https://dev.to/dreamyplayer/40-killer-javascript-one-liners-2hp7
|
Killer JavaScript One Liners Hey Everyone Comment your Best One liner JS code Get a random boolean This function will return a boolean true or false using Math random method It s a chance to get either true or false const RandomBoolean gt Math random gt Check if the provided date is a weekday or Weekend const isWeekend date gt indexOf date getDay Check if a number is even or odd const isEven num gt num ORconst isEven n gt n amp Remove all duplicate values in an array const setArr arr gt new Set arr Check if a variable is an array A clean and easy way to check if a variable is an array const isArray arr gt Array isArray arr Generate a random number between two numbers This will take two numbers as params and will generate a random number between those two numbers const random min max gt Math floor Math random max min min console log random Generate a random string unique id const randomString gt Math random toString slice Swapping Two Variables Destructuring Destructuring assignment that swaps the variables valueslet foo let bar foo bar bar foo Calculate number of days between two dates To calculate the days between two dates we first find the absolute between two dates and then divide it with which is equal to milliseconds in a single day and at the end we round the result and return it const daysDiff date date gt Math ceil Math abs date date You can use Math round or Math floor instead of Math ceil Different ways of merging multiple arrays Merge but don t remove the duplicationsconst merge a b gt a concat b Orconst merge a b gt a b Merge and remove the duplicationsconst merge new Set a concat b Orconst merge new Set a b Get the actual type of javascript primitives const trueType obj gt Object prototype toString call obj slice toLowerCase Truncate string at the endconst truncateString string length gt return string length lt length string string slice length string from the middleconst truncateStringMiddle string length start end gt return string slice start string slice string length end A number to a fixed decimal pointconst toFixed n fixed gt Math pow fixed n Math pow fixed Capitalizing a string const capitalize str gt str charAt toUpperCase str slice OR capitalize all starting words in a sentenceconst capitalize str lower false gt lower str toLowerCase str replace s S g match gt match toUpperCase Check if the current tab is in view focus This simple helper method returns true or false depending on if a tab is in view focusconst isTabInView gt document hidden isTabInView true false ORdocument hidden hidden visible Reverse a string const reverse str gt str split reverse join ORconst reverse str gt str reverse join Check if an element is currently in focus We can check if an element is currently in focus using the document activeElement property const elementIsInFocus el gt el document activeElement elementIsInFocus anyElement Check if the current user has touch events supported const touchSupported gt ontouchstart in window window DocumentTouch amp amp document instanceof window DocumentTouch Scroll to top of the page const goToTop gt window scrollTo smooth goToTop ORconst scrollToTop element gt element scrollIntoView behavior smooth block start Scroll to bottom of the pageconst scrollToBottom gt window scrollTo document body scrollHeight Get average value of arguments We can use the reduce method to get the average value of the arguments const average args gt args reduce a b gt a b args length average Convert Fahrenheit Celsius Dealing with temperatures can be confusing at times These functions will help you convert Fahrenheit to Celsius and the other way around const celsiusToFahrenheit celsius gt celsius const fahrenheitToCelsius fahrenheit gt fahrenheit Get query parameters from the URL To obtain query parameters we must first divide the URL at “ and then replace “ with “ and “ amp with “ const getQueryParams URL gt JSON parse decodeURI URL split replace amp g replace g getQueryParams search api amp test true search api test true Clipboard API To copy a text we can use JavaScript navigator const copy text gt navigator clipboard writeText text To paste text const text navigator clipboard readText Get Value of a brower Cookie Retrieve the value of a cookie by accessing with document cookieconst cookie name gt document cookie split name pop split shift cookie ga Result GA Check if Date is Valid const isDateValid val gt Number isNaN new Date val isDateValid Feburary Find which is the day by a given date in year const dayOfYear date gt Math floor date new Date date getFullYear dayOfYear new Date Result Clear All Cookies You can easily clear all cookies stored in a web page by accessing the cookie using document cookie and clearing it const clearCookies document cookie split forEach cookie gt document cookie cookie replace replace expires new Date toUTCString path Check if array is empty amp amp Object Is Empty const isNotEmpty arr gt arr some x gt x ORconst isNotEmpty arr gt Array isArray arr amp amp arr length gt Object Is Emptyconst isEmpty obj gt Reflect ownKeys obj length amp amp obj constructor Object Get Selected Text Get the text the user has select using inbuilt getSelection property const getSelectedText gt window getSelection toString Detect Dark Mode const isDarkMode window matchMedia amp amp window matchMedia prefers color scheme dark matchesconsole log isDarkMode Result True or False Shuffle an Array Shuffling an array is super easy with sort and random methods const shuffleArray arr gt arr sort gt Math random Generate Random Hex const randomHex gt Math floor Math random toString ORconst randomHex gt Math floor Math random xffffff toString padEnd Convert RGB to Hex const rgbToHex r g b gt lt lt r lt lt g lt lt b toString slice rgbToHex Result ff Get Min amp max value of an array const getMinMax arr gt Math min arr Math max arr Reload the current page const reload gt location reload Orconst reload gt location href location href Check if a string consists of a repeated character sequence const consistsRepeatedSubstring str gt str str indexOf str str length Convert a letter to associate emoji const letterToEmoji c gt String fromCodePoint c toLowerCase charCodeAt Calculate the angle of a line defined by two points In radiansconst radiansAngle p p gt Math atan p y p y p x p x In degreesconst degreesAngle p p gt Math atan p y p y p x p x Math PI Convert radians to degrees amp amp degrees to radians const radsToDegs rad gt rad Math PI amp amp const degsToRads deg gt deg Math PI Wait for an amount of time const wait async milliseconds gt new Promise resolve gt setTimeout resolve milliseconds Create an object from the pairs of key and value const toObj arr gt Object fromEntries arr Get union of arrays const union arr gt new Set arr flat Partition an array based on a condition const partition arr criteria gt arr reduce acc i gt acc criteria i push i acc partition n gt n Remove falsy values from array const removeFalsy arr gt arr filter Boolean That s all Aliens Hope you found this helpful see you in the next one |
2022-02-15 12:54:31 |
海外TECH |
DEV Community |
7 VS Code Extensions that JS dev Should Use |
https://dev.to/ranaharoon3222/7-vs-code-extensions-that-js-dev-should-use-h46
|
VS Code Extensions that JS dev Should UseHi Folks I know we do not want to read long blog posts like me So I plan to make this post short In this I share most useful Extensions while Coding with JS Thunder ClientThunder Client is a lightweight Rest API Client Extension for Visual Studio Code hand crafted by Ranga Vadhineni with simple and clean design SnippedCreate fancy screenshots of your code without leaving the editor Turbo Console LogThis extension make debugging much easier by automating the operation of writing meaningful log message Regex PreviewerRegex matches previewer for JavaScript TypeScript PHP and Haxe in Visual Studio Code Import CostDisplay import require package size in the editor Quokka jsQuokka js is a developer productivity tool for rapid JavaScript TypeScript prototyping Runtime values are updated and displayed in your IDE next to your code as you type ES React Redux React Native snippetsJavaScript is everywhere and ES React Redux amp GraphQL Snippets cover almost everything you need to get started with modern app development efficiently This plugin extension makes a great alternative to any other JavaScript based code snippets that you might already be using Let me know if you know some more awesome extensions in comments |
2022-02-15 12:46:20 |
海外TECH |
DEV Community |
Introduction to OOPS in Javascript (this keyword) |
https://dev.to/pushanverma/introduction-to-oops-in-javascript-this-keyword-2j0p
|
Introduction to OOPS in Javascript this keyword this behaves in two different modes i e Strict and Non Strict Strict is basically used in react this and this are in node environment this jsconsole log this ans gt returns window object just like global object Window index html Live reload enabled function f console log this ans gt let obj name Pushan f function f console log this obj f ans gt name Pushan f ƒ let obj name Pushan f function f function g console log this g obj f ans gt window object this js use strict console log this ans gt function f console log this f ans gt undefinedlet obj name Pushan f function console log this obj f ans gt name Pushan f Function f let obj name Pushan f function f function g console log this g obj f ans gt undefined this and this are in Browser Environment index html lt DOCTYPE html gt Document lt div class highlight gt lt pre class highlight plaintext gt lt code gt amp lt script amp gt lt code gt lt pre gt lt div gt lt p gt lt head gt lt br gt lt body gt lt p gt lt p gt lt body gt lt br gt lt html gt lt p gt lt p gt lt strong gt this js lt strong gt lt p gt lt p gt console log this lt p gt lt p gt ans amp gt returns window object just like global object lt br gt Window lt br gt index html Live reload enabled lt p gt lt p gt function f lt br gt console log this lt br gt lt p gt lt p gt ans amp gt lt p gt lt p gt let obj lt br gt name amp Pushan amp lt br gt f function f lt br gt console log this lt br gt lt br gt lt br gt obj f lt p gt lt p gt ans amp gt name amp Pushan amp f ƒ lt p gt lt p gt let obj lt br gt name amp Pushan amp lt br gt f function f lt br gt function g lt br gt console log this lt br gt lt br gt g lt br gt lt br gt lt p gt lt p gt obj f lt p gt lt p gt ans amp gt window object lt p gt lt p gt lt strong gt this js lt strong gt lt p gt lt p gt lt strong gt index html lt strong gt lt br gt amp lt DOCTYPE html amp gt lt br gt lt html lang en gt lt br gt lt head gt lt br gt lt meta charset UTF gt lt br gt lt meta http equiv X UA Compatible content IE edge gt lt br gt lt meta name viewport content width device width initial scale gt lt br gt lt title gt Document lt title gt lt br gt lt script src this js gt lt p gt lt div class highlight gt lt pre class highlight plaintext gt lt code gt amp lt script amp gt lt code gt lt pre gt lt div gt lt p gt lt head gt lt br gt lt body gt lt p gt lt p gt lt body gt lt br gt lt html gt lt p gt lt p gt lt strong gt this js lt strong gt lt p gt lt p gt amp use strict amp lt p gt lt p gt console log this lt p gt lt p gt ans amp gt returns window object just like global object lt br gt Window lt br gt index html Live reload enabled lt p gt lt p gt function f lt br gt console log this lt br gt lt p gt lt p gt ans amp gt undefined lt p gt lt p gt let obj lt br gt name amp Pushan amp lt br gt f function f lt br gt console log this lt br gt lt br gt lt br gt obj f lt p gt lt p gt ans amp gt name amp Pushan amp f ƒ lt p gt lt p gt let obj lt br gt name amp Pushan amp lt br gt f function f lt br gt function g lt br gt console log this lt br gt lt br gt g lt br gt lt br gt lt p gt lt p gt obj f lt p gt lt p gt ans amp gt window object lt p gt lt p gt Link for handwritten notes lt br gt lt a href amp gt lt a amp gt amp lt p gt |
2022-02-15 12:31:09 |
海外TECH |
DEV Community |
Sneat Open Source Bootstrap 5 HTML Admin Template Is Here...!!🤩 |
https://dev.to/theme_selection/sneat-open-source-bootstrap-5-html-admin-template-is-here-47a7
|
Sneat Open Source Bootstrap HTML Admin Template Is Here Introduction If you re a developer looking for most Powerful amp comprehensive Free Bootstrap HTML Admin Template built for developers rich with features and highly customizable look no further than Sneat We ve followed the highest industry standards to bring you the very best admin template that is not only fast and easy to use but highly scalable Offering ultimate convenience and flexibility you ll be able to build whatever application you want with very little hassle Build premium quality applications with ease Use our innovative bootstrap admin templates to create eye catching high quality WebApp Your apps will be completely responsive ensuring they ll look stunning and function flawlessly on desktops tablets and mobile devices Installation ️Automate time consuming or repetitive tasks in your development workflow using Gulp Please note the use of Node Webpack amp Gulp and their advanced settings are totally optional You can use and customize the template without using them too Installing Node amp Gulp and running it is super easy in Sneat please follow these steps and you should be ready to rock First of all make sure you have installed Node LTS If Node js is already installed in your system make sure the installed version is LTS and jump to step Install the Gulp CLI Open Terminal Command Prompt and run the following command and wait until it finishes If you have already installed Gulp CLI you can skip this step and jump to step npm install global gulp cliNavigate to the Sneat root directory and run following command to install our local dependencies listed in package json You can use npm OR yarn as per your preference It is recommended to use Yarn For npmnpm install legacy peer deps For YarnyarnNow you are ready to run npm tasks below command will start the server and watch the code using browsersync Open http localhost to check your development npmnpm run serve yarnyarn serve Available Tasks Open console terminal go to the Sneat root directory and run npm run task name i e To generate build run npm run build Run a task with specified environment development production just execute the task with env environment option i e npm run build env production Tip Use npm run command to list all predefined npm tasks from package json file What s Included DashboardLayoutsWithout menuWithout NavbarContainerFluidBlankPagesAccount SettingsLoginRegisterForgot PasswordErrorUnder MaintenanceCardsUser InterfaceAll Bootstrap ComponentsExtended UIPerfect ScrollbarText DividerBoxiconForm ElementsBasic InputsInput GroupsForm LayoutVertical FormHorizontal FormTables What s in Premium Version Sneat Free VersionSneat Premium VersionDemoDemoDownloadPurchaseSingle vertical MenuVertical Menu Horizontal MenuSimple Light StyleLight amp Dark StyleDefault ThemeDefault Semi Dark amp Bordered ThemesFixed Layout Menu Fixed amp Static Layout Menu Simple Dashboard Niche Dashboards Multiple Ready to use Application like Calendar Invoice Users List Users View Roles and Permission etc Simple From ElementsAdvance form elements validation amp form wizardBasic CardsBasic Advance Statistics Analytics Gamifications and Actions CardsBasic User Interface Components Advance and Custom User Interfaces Components Two Extended ComponentsTwelve Ready to use Extended Components Quick Search Quickly navigate between pages w hotkey support Basic PagesAuthentication Pages in Variants Ready to use pages like User Profile Account Settings FAQ Help Center Pricing Misc etc D Characters IllustrationsBasic tablesAdvanced tables Quick customization using theme config file Leaflet Maps Chart Library Chart Libraries Multiple Navbar amp Menu Options Starter kit Internationalization support RTL SupportRegular SupportPriority SupportDetailed DocumentationDetailed Documentation Documentation Check out our live Documentation Browser Support ️At present we officially aim to support the last two versions of the following browsers Chrome latest FireFox latest Safari latest Microsoft Edge latest Opera latest Useful Links FreebiesDownload Free Admin TemplatesBootstrap CheatSheet Support We use GitHub issues as support tickets to manage Item support In order to raise the GitHub issue you must have a GitHub account Raise a Issue License Copyright ThemeSelectionLicensed under MIT Contributing Contribution are always welcome and recommended Here is how Fork the repository here is the guide Clone to your machine git clone Make your changesCreate a pull request Contribution Requirements When you contribute you agree to give a non exclusive license to ThemeSelection to use that contribution in any context as we ThemeSelection see appropriate If you use content provided by another party it must be appropriately licensed using an open source license Contributions are only accepted through GitHub pull requests Finally contributed code must work in all supported browsers Creators ThemeSelection Changelog Please refer to the CHANGELOG file We will add a detailed release notes to each new release Social Media Twitter Facebook Pinterest Instagram Looking For Premium Features Then upgrade to the Sneat Bootstrap HTML Admin Template Pro version It comes with many amazing features such as Based on Bootstrap Vertical amp Horizontal layouts Default Bordered amp Semi dark themes Light amp Dark mode support Internationalization in amp RTL Ready Layout Generator Theme Config Customize our template without a sweat Dashboard Chart libraries SASS Powered Unlimited Color Options Authentication Pages and many moreFor More Info Click The Banner Below About Us ThemeSelection provides Selected high quality modern design professional and easy to use Free Admin Dashboard Template HTML Themes and UI Kits to create your applications faster |
2022-02-15 12:24:13 |
海外TECH |
DEV Community |
JS Errors: Resolving HTTP Headers sent error in Node.JS |
https://dev.to/smpnjn/js-errors-resolving-http-headers-sent-error-in-nodejs-h3f
|
JS Errors Resolving HTTP Headers sent error in Node JSWhen using express and Node JS we will sometimes get this error Error ERR HTTP HEADERS SENT Cannot set headers after they are sent to the client at new NodeError node internal errors at ServerResponse setHeader node http outgoing at ServerResponse header node modules express lib response js at file link to file app js code ERR HTTP HEADERS SENT This is quite a confusing error if you aren t familiar with HTTP headers This error arises when you send more than responses to the user or client That means the receiver is getting two responses when it should only be getting one To solve this make sure you are only sending one response How to solve the ERR HTTP HEADERS SENT errorThis can often be caused when you send a response to the client and an asychronous piece of code then sends a second response after the first Look in your code you may be accidentally using res send twice For example the below will cause the error app get app async function req res Don t do this Remove one of the res send functions to remove the error await User find username req headers username function err items res send User res send Hello Note other res functions such as res redirect will cause the same issue i e the below code is also wrong app get app function req res Don t do this Remove one of these functions to remove the error await User find username req headers username function err items res redirect app login res send Hello Your code should instead look like this with only one res function app get app function req res res redirect app login |
2022-02-15 12:13:49 |
海外TECH |
DEV Community |
Why is it that Uber App Clone Scripts are so popular? |
https://dev.to/yurikagagrin/why-is-it-that-uber-app-clone-scripts-are-so-popular-4km5
|
Why is it that Uber App Clone Scripts are so popular With over million monthly users Uber has revolutionised the way people travel According to the most recent projections more than billion rides will be completed by Uber is forecasting more clients for this application in the Asia Pacific and Latin American regions as a result of its cost savings You could be perplexed as to what Uber or Uber Clone Scripts are Allow me to clarify that Uber is a taxi booking service that allows consumers to schedule a trip with the tap of a screen on their phone It offers a simple user experience and charges that are often lower than regular taxis yet it is plagued by several problems An Uber clone script is a script that is a carbon copy of Uber It s a Whitelabel solution with features and capabilities that are quite comparable to Uber s You can swiftly deploy your service and win clients hearts with the recognised UI Uber Clone Scripts are becoming increasingly popular for developing taxi booking apps Many consumers want an app s every function to be correct even if it s something they don t know how to accomplish Uber Clone scripts come into play in this situation Allow me to demonstrate how a company may utilise Uber Clone Scripts to create their own taxi booking app Advantages in Technology Today s taxi booking applications require a slew of cutting edge features The integration of digital technologies assists you in controlling all aspects of your organisation An arbitrary and low cost taxi booking app will not suit your clients demands or provide you with a competitive edge As a result if you want to employ new technologies like Blockchain development solutions in your taxi app you need invest in a well optimized Uber clone script Customizable You may easily customise the Uber clone scripts to meet your own company needs Because the scripts code for a variety of important applications you may add or delete features from your app You may also remain ahead of the app market s fierce competition by tailoring the app to your specific business needs Scalability High quality Uber clone scripts allow your business to grow swiftly The script s flexibility to adapt to your company s changing needs is a huge plus Instant Business Launch Developing an app from the ground up requires a major time and financial investment The most effective approach to quickly develop and launch an app is to use Uber clone scripts If you launch your taxi booking app quickly it will be market relevant You may provide your consumers a variety of payment alternatives so they can choose how they want to pay for your service |
2022-02-15 12:07:49 |
海外TECH |
DEV Community |
A Twitch chatbot powered by Notion |
https://dev.to/paulasantamaria/a-twitch-chatbot-powered-by-notion-2b6m
|
A Twitch chatbot powered by NotionAchoBot is an open source Twitch chatbot I built for myself It allows you to manage your chatbot s commands using Notion It relies on the power of Notion Databases to manage command responses permissions and documentation Table of contentsThe repoFeaturesDevelopmentTry itStream The repoCheck the repo here pawap acho bot A Twitch chatbot powered by Notion Use Notion to configure your Twitch chatbot commands FeaturesManage your Twitch Chatbot from NotionAssign Permissions to each CommandSpecific user permissionsCommands viewScripted commandsSingle accountStatus viewBuilt in commandsPlaceholder commandsQuick startDependenciesDevelopmentTestExtend itEnvironment variablesFeaturesManage your Twitch Chatbot from NotionAdd update or delete commands in a Notion database AchoBot will use the information from Notion to answer your viewers when they invoke a command Assign Permissions to each CommandThe database includes a Permissions column where you can specify who can invoke each command Leave it empty and everyone will have access to itThe column accepts one or more of the following values BroadcasterModeratorSubscriberViewerSpecific user permissionsYou can also create commands that can only be invoked by a single specific user To do that use the value usr lt username gt for example usr paulasantamariaCommands… View on GitHub FeaturesHere s the complete list of features Manage your Twitch Chatbot from NotionAdd update or delete commands in a Notion database AchoBot will use the information from Notion to answer your viewers when they invoke a command Assign Permissions to each CommandThe database includes a Permissions column where you can specify who can invoke each command Leave it empty and everyone will have access to it Specific user permissionsYou can also create commands that can only be invoked by a single specific user To do that use the value usr lt username gt for example usr paulasantamaria Commands viewNavigate to commands to get a list of every public command Your viewers can use it to see the available commands Also you can navigate to commands mode image to get a ready to download image you can add to your Twitch panels Scripted commandsYou can specify the type of command in the Type column Available options are Text commands return a plain text response E g Welcome to the stream Scripted commands can implement some logic JavaScript and receive parameters For example imagine the following command say lt text gt context gt const textToPrint context params text return You said textToPrint When a viewer invokes it say helloOutput You said helloThis feature is new and still has some limitations and issues Writing code in a Notion DB cell is not ideal Single accountThe chatbot service will work only for the accounts and channels specified in the environment variables If any other account tries to log in using the chatbot authorization endpoints it will get an authorization error The service is not currently designed to handle multiple accounts This is a limitation but it also makes the hosting and configuration of the service easier Status viewUse the status view to see if your bot s Twitch account is correctly authorized You can use this view in OBS to get real time feedback on your chatbot status it auto updates every minute Built in commandsBuilt in commands are defined in the codebase instead of Notion They usually require more logic and access to resources unavailable to the Notion commands There are currently two built in commands that you can use help prints a list of available commands refresh invalidates the command cache so next time a command is triggered the app needs to go to Notion to retrieve the commands thus updating them to the latest version Only available for Broadcaster and Moderators Placeholder commandsSome commands are triggered via code but defined in Notion This allows AchoBot to react to certain events like a user logging in or subscribing while also allowing each user to specify what they want AchoBot to do in each case Right now the only placeholder command is welcome Executed when AchoBot joins the chat room immediately after a stream starts If you define this command in Notion when the bot logs in it can say hi and leave some relevant information in the chat E g Hi I m AchoBot Type help to see what I can do DevelopmentAchoBot runs on Node js It was developed with TypeScript and uses Nodemon to run the development server It relies on tmi js to connect and interact with Twitch s chat How it worksOnce the service starts AchoBot retrieves the commands from Notion and other sources and stores them in cache When viewers execute a command we search for it in the cache and execute it to generate a response ExtensibleThe project is designed to be easily extensible It uses the command pattern to define the list of commands You can extend this list using different strategies depending on what you aim to achieve To know more AchoBot wiki Extend AchoBot The repo Try itHere s a detailed step by step guide on how to run AchoBot AchoBot Setup Full Guide StreamI developed this chatbot live on stream Join me if you are interested in live coding sessions where I experiment with different tech stacks and build open source software twitch tv paulasantamariaRight now I m working on a new portfolio with Svelte kit markdown and TailwindCSS |
2022-02-15 12:00:47 |
Apple |
AppleInsider - Frontpage News |
M2 13-inch MacBook Pro may land in March with unchanged design |
https://appleinsider.com/articles/22/02/15/m2-13-inch-macbook-pro-may-land-in-march-with-unchanged-design?utm_medium=rss
|
M inch MacBook Pro may land in March with unchanged designThe updated inch MacBook Pro with an M chip is expected to arrive in March but Apple is rumored to keep the same design as the existing M model instead of a revamp to bring it closer to the inch and inch models Apple is widely believed to be preparing a special event for March with a new Mac expected alongside an updated iPhone SE In new rumors it is proposed that the new inch MacBook Pro will look just like the old one with the refresh being more a specifications bump than anything The new model will allegedly retain the same notch less display design one that also apparently won t have ProMotion support It will also have the Touch Bar an element that was removed from the inch MacBook Pro and inch MacBook Pro Read more |
2022-02-15 12:53:06 |
Apple |
AppleInsider - Frontpage News |
Australian health firm says Apple Watch makes people 35% more active |
https://appleinsider.com/articles/22/02/15/australian-health-firm-says-apple-watch-makes-people-35-more-active?utm_medium=rss
|
Australian health firm says Apple Watch makes people more activeAustralia s AIA Health says that giving away an Apple Watch to people who hit certain fitness goals resulted in an average rise in activity for its users In the AIA Health insurance company introduced Apple Watch to its Vitality program Members who chose to sign up would get an Apple Watch that was free so long as they continued to meet specific health goals set for them When comparing physical activity in and for those who took up AIA Vitality s Apple Watch Benefit last year we have seen activity increase by on average year on year says AIA in a new report The age group with the most significant improvement in physical activity was those years and older who saw a increase year on year Read more |
2022-02-15 12:29:49 |
Apple |
AppleInsider - Frontpage News |
Apple's iPhone dominated U.S. smartphone market in 2021 |
https://appleinsider.com/articles/22/02/15/apples-iphone-dominated-us-smartphone-market-in-2021?utm_medium=rss
|
Apple x s iPhone dominated U S smartphone market in The iPhone continues to be the most popular smartphone in the United States by some measure analysts claim with Apple dominating the market throughout The United States is one of the most popular markets for the iPhone range with it being a reliable major source of Apple s overall revenue In analysis by Counterpoint Research it appears that Apple practically consumed over half of the market for most of the last four quarters Data from the firm covering all of put Apple as holding just over of smartphone shipments from Q to Q The year started with of the market for Q amid a market that was growing year on year Read more |
2022-02-15 12:13:29 |
Apple |
AppleInsider - Frontpage News |
Apple's iPhone 6 Plus & fourth-generation iPad are now officially 'vintage' |
https://appleinsider.com/articles/22/02/15/apples-iphone-6-plus-fourth-generation-ipad-are-now-officially-vintage?utm_medium=rss
|
Apple x s iPhone Plus amp fourth generation iPad are now officially x vintage x Apple s first ever large screen iPhone and the fourth generation iPad have now been classified as vintage meaning servicing and repair options are extremely limited Apple first defines a device as vintage when it has not been on sale for five years Up to then Apple will provide servicing and replacement parts for its devices but after that repairs depend on what components a store can get The latest iPhone to be classified as vintage is the iPhone Plus launched in Both the iPhone Plus and the iPhone that launched at the same time were significant departures from previous designs Read more |
2022-02-15 12:00:32 |
海外TECH |
Engadget |
FAA delays its decision on SpaceX environmental review at Boca Chica launch site |
https://www.engadget.com/faa-delays-spacex-environmental-review-boca-chica-124042660.html?src=rss
|
FAA delays its decision on SpaceX environmental review at Boca Chica launch siteSpaceX has to wait until March th to find out if the Federal Aviation Administration is giving it clearance to launch Starship flights out of its facility in Boca Chica Texas The agency is conducting an environmental assessment of the company s plans to launch the massive reusable vehicle out of the facility and looking into whether it will have significant environmental impact on the area This isn t the first time the agency has moved its target date for completion either It previously pushed back its original target date of December st to February th nbsp Now the FAA has updated the project page to reflect the new target date and explained that the delay is quot to account for further comment review and ongoing interagency consultations quot The agency received over public comments on the draft version of the review published in September last year nbsp During the most recent Starship presentation SpaceX chief Elon Musk said the company doesn t know where things stand with the FAA exactly However they apparently got a rough indication that the agency will complete its environmental assessment in March In case SpaceX doesn t get an approval or if the FAA issues an environmental impact statement EIS to dig deeper into the company s plans ーa process that could take years ーit does have a backup plan nbsp Musk said during the same event that SpaceX had already secured approval to launch the Starship from Cape Canaveral in Florida and it will delay the vehicle s first orbital flight if needed to build a tower for it in the location SpaceX has been conducting all of the Starship s development and testing in Starbase and only has a launch tower for the vehicle in Boca Chica nbsp Even if SpaceX does get permission from the FAA to launch the Starship once its environmental review is done it doesn t mean we ll get to see the vehicle lift off for its first orbital flight soon Musk said hardware readiness is on track with regulatory approval but we ll have to wait for the company s announcement for a concrete date nbsp |
2022-02-15 12:40:42 |
海外TECH |
Engadget |
The Morning After: A 5G necklace for VR and AR |
https://www.engadget.com/the-morning-after-a-5-g-necklace-for-vr-and-ar-121522249.html?src=rss
|
The Morning After A G necklace for VR and ARIn a bid to sidestep the issues of power size and other technical hurdles of wearable displays Verizon and Motorola have teamed to create the G Neckband Putting connectivity processing and battery in a collar could lead to lighter and more comfortable heads up displays and high tech glasses Inside the pendant there s a Snapdragon processor battery and touchpad as well as sensors like a gyroscope accelerometer barometer and GPS quot We took a smartphone and exploded it around your neck quot said Vice President of Technology at Verizon Brian Mecum No details yet on pricing and availability ーMat SmithThe biggest stories you might have missedIntel is acquiring Tower Semiconductor for billionCrypto lender to pay million over alleged securities violationsAmazon sale offers up to percent off Anker chargers and accessoriesSamsung s TB T portable SSD is back down to a record low of Samsung s cellular Galaxy Watch models drop to lowest price yetDell s inch QD OLED monitor will cost when it arrives this springCheaper than similar OLED monitors AlienwareDell s Alienware monitor that uses Samsung s quantum dot OLED QD OLED tech will arrive this spring for a surprisingly reasonable Dell first unveiled the curved inch gaming display at CES and while that might seem expensive for a monitor and well it is it s cheaper than comparable OLED screens out there LG s inch UltraFine OLED model costs Continue reading Polestar s Super Bowl ad took jabs at Tesla and VWThe EV maker hopes to steal the spotlight from heavyweight rivals Volvo s sibling brand aired a second spot for the Polestar during Super Bowl that took some not so subtle potshots at competitors and industry hypocrisy at large The commercial was dominated by quot nos quot quot no dieselgate quot quot no conquering Mars quot and quot no greenwashing quot In short it s kept the tradition of aggressive Super Bowl ads going for another year Continue reading Volta is installing EV fast charging stations at Walgreens locationsThe stalls are already available at stores and they ll soon be at more than Polestar will be happy EV charging network Volta is bringing another DC fast charging stalls to Walgreens locations It s a major expansion The pair started working together in and there are currently Volta stations at Walgreens stores It s also just the start The Biden administration recently announced a billion plan to improve EV charging infrastructure across the US Continue reading SpaceX s first commercial spacewalk is set for this yearThe Polaris Program will end with the first crewed Starship flight Shift founder and Inspiration leader Jared Isaacman has unveiled a Polaris Program initiative of quot up to quot three crewed SpaceX flights The first Polaris Dawn is planned for the fourth quarter of and should include the first commercial spacewalk The effort will ideally end with the first human occupied Starship flight The program hinges on SpaceX and partners solving a number of problems SpaceX is developing spacesuits necessary for the spacewalk and Isaacman s group hasn t yet decided how many crew members will step outside Then there s the Starship s own issues…Continue reading HP Spectre x reviewA big beautiful convertible laptop EngadgetMusing on a convertible PC HP s x has everything you d want in a big screen convertible notebook It s fast with a gorgeous screen and one of the best keyboards on the market Just give up on the dream of using it as a tablet though While it s gorgeous it s also big Continue reading |
2022-02-15 12:15:22 |
金融 |
RSS FILE - 日本証券業協会 |
協会員の従業員数等 |
https://www.jsda.or.jp/shiryoshitsu/toukei/jyugyoinsu/index.html
|
従業員 |
2022-02-15 12:20:00 |
海外ニュース |
Japan Times latest articles |
‘Unusual’ number of Russian warships spotted near Japan |
https://www.japantimes.co.jp/news/2022/02/15/national/russian-navy-sea-of-japan/
|
japan |
2022-02-15 21:26:09 |
海外ニュース |
Japan Times latest articles |
Akito Watabe takes bronze behind Joergen Graabak’s gold in Nordic combined |
https://www.japantimes.co.jp/sports/2022/02/15/olympics/winter-olympics/olympics-alpine-skiing/watabe-graabak-nordic/
|
Akito Watabe takes bronze behind Joergen Graabak s gold in Nordic combinedJust as he did last week Graabak sat back in the field and timed his charge perfectly to edge compatriot Jens Oftebro who also came |
2022-02-15 21:10:23 |
ニュース |
BBC News - Home |
UK wage growth lags rising cost of living |
https://www.bbc.co.uk/news/business-60373405?at_medium=RSS&at_campaign=KARANGA
|
figures |
2022-02-15 12:02:21 |
ニュース |
BBC News - Home |
Covid deaths in UK continue to fall |
https://www.bbc.co.uk/news/health-60388805?at_medium=RSS&at_campaign=KARANGA
|
covid |
2022-02-15 12:33:11 |
ニュース |
BBC News - Home |
Unsafe cladding: What is it and who pays to remove it? |
https://www.bbc.co.uk/news/explainers-56015129?at_medium=RSS&at_campaign=KARANGA
|
unsafe |
2022-02-15 12:16:13 |
ニュース |
BBC News - Home |
GB's Hall and Gleeson crash two-man bobsleigh in Beijing |
https://www.bbc.co.uk/sport/winter-olympics/60349724?at_medium=RSS&at_campaign=KARANGA
|
beijing |
2022-02-15 12:50:16 |
ニュース |
BBC News - Home |
Williamson to captain England in Arnold Clark Cup |
https://www.bbc.co.uk/sport/football/60385932?at_medium=RSS&at_campaign=KARANGA
|
arnold |
2022-02-15 12:45:03 |
ニュース |
BBC News - Home |
How prepared is Russia for an attack? |
https://www.bbc.co.uk/news/world-europe-60158694?at_medium=RSS&at_campaign=KARANGA
|
border |
2022-02-15 12:24:07 |
ニュース |
BBC News - Home |
What are the Covid rules in England, Scotland, Wales and Northern Ireland? |
https://www.bbc.co.uk/news/explainers-52530518?at_medium=RSS&at_campaign=KARANGA
|
covid |
2022-02-15 12:28:17 |
北海道 |
北海道新聞 |
渡部暁斗、ゴール直前で抜かれる 五輪ノルディック複合「銅」 |
https://www.hokkaido-np.co.jp/article/646098/
|
北野建設 |
2022-02-15 21:13:25 |
コメント
コメントを投稿