投稿時間:2023-02-14 00:28:49 RSSフィード2023-02-14 00:00 分まとめ(32件)

カテゴリー等 サイト名等 記事タイトル・トレンドワード等 リンクURL 頻出ワード・要約等/検索ボリューム 登録日
python Pythonタグが付けられた新着投稿 - Qiita VSCode + RemoteSSH + Poetry + JupyterNotebook https://qiita.com/ike1z/items/0f4e65fe340f84428af0 esshpoetryjupyternotebook 2023-02-13 23:39:36
python Pythonタグが付けられた新着投稿 - Qiita Python DataFrame TypeError: __init__() got multiple values for argument 'schema' 対策メモ https://qiita.com/katafuchix/items/02372f2a1d5cf85bbe61 dataframe 2023-02-13 23:24:43
js JavaScriptタグが付けられた新着投稿 - Qiita Babylon.js の公式ミニマムサンプル の HTML に Webカメラの映像の表示を足してみる https://qiita.com/youtoy/items/fd3b4313f4b0f0836e0e qiita 2023-02-13 23:49:21
js JavaScriptタグが付けられた新着投稿 - Qiita JavaScript でテトリスを開発する その 4 https://qiita.com/namakoRice/items/ae2d83b962ba7fb49939 javascript 2023-02-13 23:41:32
Ruby Rubyタグが付けられた新着投稿 - Qiita ransackのselectボックスでenumのi18nを使用する https://qiita.com/p_piii/items/6c8bfebaa16bd9190368 ransack 2023-02-13 23:51:38
AWS AWSタグが付けられた新着投稿 - Qiita Cloud9のリサイズ https://qiita.com/motani/items/321943ba1d66aa72bbc9 cloud 2023-02-13 23:33:26
golang Goタグが付けられた新着投稿 - Qiita 【競プロ】Goで配列をstringで出力したいとき https://qiita.com/akima1001/items/aae97136aaf508c1c255 tringsreplacesfmtprintlns 2023-02-13 23:34:46
Git Gitタグが付けられた新着投稿 - Qiita リモート環境でブランチを作成してローカル環境で新しくブランチを切る方法 https://qiita.com/yastinbieber/items/d85387ce7d760da28d1a gitfetchoriginfet 2023-02-13 23:31:20
Ruby Railsタグが付けられた新着投稿 - Qiita ransackのselectボックスでenumのi18nを使用する https://qiita.com/p_piii/items/6c8bfebaa16bd9190368 ransack 2023-02-13 23:51:38
技術ブログ Developers.IO [Flutter] XMLファイル(Info.plist)をVSCodeから編集したい https://dev.classmethod.jp/articles/i-want-to-edit-infoplist-from-vscode/ delivery 2023-02-13 14:55:30
海外TECH Ars Technica Blue Origin makes a big lunar announcement without any fanfare https://arstechnica.com/?p=1917133 announcement 2023-02-13 14:34:25
海外TECH Ars Technica Toyota will recall 16,680 RAV4 Primes due to faulty battery software https://arstechnica.com/?p=1917147 weather 2023-02-13 14:22:33
海外TECH MakeUseOf How to Connect a Display HAT to the Raspberry Pi’s GPIO https://www.makeuseof.com/how-to-connect-a-display-hat-to-the-raspberry-pis-gpio/ raspberry 2023-02-13 14:30:15
海外TECH MakeUseOf Why You’ll Probably Want To Use More Than One Node Package Manager https://www.makeuseof.com/why-you-probably-want-to-use-more-than-one-node-package-manager/ managerhere 2023-02-13 14:16:15
海外TECH MakeUseOf InMotion V11 Electric Unicycle: Powerful, Responsive, and Utterly Insane https://www.makeuseof.com/inmotion-v11-euc-review/ InMotion V Electric Unicycle Powerful Responsive and Utterly InsaneWith incredible power and responsive handling the V is difficult to learn but crazy fun when you do Just try not to die in the process 2023-02-13 14:05:15
海外TECH DEV Community Supprimer automatiquement une Job dans Kubernetes https://dev.to/mxglt/supprimer-automatiquement-une-job-dans-kubernetes-3d5g Supprimer automatiquement une Job dans KubernetesQuand on travaille avec des jobs dans Kubernetes on peut avoir le besoin de les faire rouler une fois quand on déploie et après on n en a plus besoin Donc conserver la ressource vous est inutile et vous voulez la supprimer D autant plus si lors de vos déploiements vous modifiez certaines informations de la job ce qui peut causer des erreurs Pour ce faire il vous suffit d ajouter le champ spec ttlSecondsAfterFinished dans la définition de votre Job avec comme valeur le nombre de secondes après lequel vous voulez que la Job soit terminée ExempleapiVersion batch vkind Jobmetadata name pi with ttlspec ttlSecondsAfterFinished template spec containers name pi image perl command perl Mbignum bpi wle print bpi restartPolicy NeverMais attention J ai bien mentionnéterminée du coup peut importe si votre Job s est terminée avec succès ou non elle sera supprimée après le délais défini Par conséquent faites attention àla valeur que vous définissez En effet si vous n avez pas un système mis en place qui va rammasser les logs vous n aurez aucune vision sur ce qui a pu se passer et donc débugger en cas de soucis Le mieux est de définir dans tous les cas une valeur suffisamment grande pour que vous puissez voir ce qu il se passe sur votre cluster après un déploiement et être capable de récupérer les informations avant qu elles ne disparaissent Si vous utilisez Helm on va voir prochainement qu il y a un système existant qui est bien plus utile LiensDocumentation Ks Automatic Cleanup for Finished Jobs Documentation Ks Jobs clean up finished jobs automaticallyJ espère que ça vous sera utile 2023-02-13 14:34:00
海外TECH DEV Community Automatically delete a Job in Kubernetes https://dev.to/mxglt/automatically-delete-a-job-in-kubernetes-21oc Automatically delete a Job in KubernetesWhen we work with Jobs in Kubernetes we can need to make them run once we deploy and forget about them So keep the resource is useless So to do it you just need to add the field spec ttlSecondsAfterFinished with the number of seconds you want to wait between the end of the Job and when it s deleted ExampleapiVersion batch vkind Jobmetadata name pi with ttlspec ttlSecondsAfterFinished template spec containers name pi image perl command perl Mbignum bpi wle print bpi restartPolicy NeverBut be careful I ve mentionned the end of the Job so Kubernetes doesn t care if your Job ended successfully or not It will be deleted either way Consequently be careful about the value of this field If you haven t setup a log collector you will see nothing about what happened if you have a too small value The best practice is to define a value big enough to let you connect manually to your cluster to check what happened If you are using Helm we will see soon that there is a better system to manage this LinksKs docs Automatic Cleanup for Finished Jobs Ks docs Jobs clean up finished jobs automaticallyI hope it will help you 2023-02-13 14:34:00
海外TECH DEV Community Five Game-Changing 🎮 tips for Technical Blogging 💻✍️ https://dev.to/ironcladdev/five-game-changing-tips-for-technical-blogging-4ghp Five Game Changing tips for Technical Blogging ️Everyone can agree that reading a giant wall of text is not fun and likewise reading a ton of code you don t understand can be harsh as well Let s spice up your next batch of posts with these five simple tips Use lots of pictures Most humans are visual meaning that our eyes are first drawn to an image rather than text Include a cover image in your post and also use images more frequently to separate your text into smaller easier to read chunks Using animated GIFs can also turn in helpful provide humor and make your post a longer lasting memory for the reader Bring on the emojis ️ Similarly to how humans enjoy seeing images in long educational content emojis can play a part as well Use them to spice up titles headings and code comments as well I m not sure if y all feel the same way but I personally would be more likely to click on an article that utilizes emojis in its title than an article that uses plain text as its title Emojis however shouldn t be used over excessively since they can make text harder to read A best practice would be suffixing keywords or sentences with them Make it funny Funny things are the easiest to remember As stated above use GIFs to spice up your post and throw in a couple of jokes and funny acronyms Demos Results If you re writing tutorial on a complex topic put working examples or demos in your post so users can track progress and see where they are Demos can range from screenshots to pens on codepen Writing style ️Everyone has a unique and interesting writing style and the goal in technical blogging is to be more engaging and keep people reading I have a pretty small list of things but hopefully they ll turn in helpful Make the introduction paragraph interestingThis is the first thing the user will read Keep it short impactful and make them want to read more Space out paragraphsTry to avoid using paragraphs consisting of more than lines Large blocks of text tend to trigger intimidation and the feeling of I don t want to read this Accent your textI m not sure if you ve noticed but I ve been using a bunch of extra bold and italic emphasized wording in this article Using emphasized words gives the impression of passion and a small illusion of a real person talking ChatGPT rewordingThere s no pain in asking ChatGPT to shorten and improve your grammar wording This can improve your writing style by a massive amount Thanks for reading I m open to feedback If you have any other tips or thoughts share them in the comments below Github •Twitter •⠕Replit •Website •️Email 2023-02-13 14:28:33
海外TECH DEV Community Building the largest Notifications Library in the world using ChatGPT, React, and NodeJS 🤯 https://dev.to/novu/building-the-largest-notifications-library-in-the-world-using-chatgpt-react-and-nodejs-2of7 Building the largest Notifications Library in the world using ChatGPT React and NodeJS TLDR I am going to show you how to create a notification library like on this website I will show you how to create thousands of notifications with ChatGPT and render it with React Things you need to knowAt the moment he ChatGPT API isn t available The latest model from OpenAI is text davinci If you re okay with using an older model go ahead and give it a try But keep in mind that it s not as advanced as the current ChatGPT model text davinci render In this tutorial I m going to show you a solution that was created by someone in the open source community It s a good option for now but please keep in mind that it might not always be available OpenAI hasn t released its ChatGPT API yet so this is just a temporary solution this solution can t be used for commercial purposes What data do we need I will teach you how to do the same things we do in The notification generator project simplified We will create three hierarchies Categories Website types likeSaaSE commerceOnline marketplaceTravelEtc Notifications TypesSaaS Payment is due E commerce Product out of stock etc Notifications“Hi NAME your payment is due for DATE “Hi NAME product PRODUCT NAME is out of stock To create each hierarchy we must have the data of the previous hierarchy While in Novu we store everything inside MongoDB here we will do everything with a simple array Novu the first open source notification infrastructureJust a quick background about us Novu is the first open source notification infrastructure We basically help to manage all the product notifications It can be In App the bell icon like you have in Facebook Emails SMSs and so on I would be super happy if you could give us a star And let me also know in the comments ️ Register to ChatGPTGo over to Register to OpenAI head over to this endpoint and grab the accessToken from the JSON Setting up the projectWe will start by creating the project and create our main file mkdir backendcd backendnpm inittouch index jsLet s install our chatgpt library npm install waylaidwanderer chatgpt api saveThis library uses Esm and not CommonJS Therefore it might be problematic for you if you try to implement it with NestJS if you need help let me know in the comments I will not separate the code into multiple files as I want to keep it simple for the sake of this tutorial Open index js and let s start writing Let s initiate our ChatGPT As you can see the library is using  chatgpt hato ai  a solution one of the community members found to use ChatGPT and was kind enough to deploy it on his server While using this your ChatGPT account will be exposed to an external resource so please make sure you don t add any credit card information and that you are using the free ChatGPT version Please be advised that the API is limited to requests per second import ChatGPTClient from waylaidwanderer chatgpt api const api new ChatGPTClient YOUR ACCESS TOKEN FROM THE PREVIOUS STEP reverseProxyUrl modelOptions model text davinci render Let s create our database const categories Final result of “categories will look like this category SaaS notificationTypes name Payment is due notifications Hi name your payment is due for date Your code should look like this now import ChatGPTClient from waylaidwanderer chatgpt api const api new ChatGPTClient YOUR ACCESS TOKEN FROM THE PREVIOUS STEP reverseProxyUrl modelOptions model text davinci render const notifications Let s write the code that will generate all the categories We want the prompt and the result to look like this The thing is that everything will come to us as a plain text We need a function that will create an array from the list I have created a quick one If you have something more efficient let me know in the comments const extractNumberedList text gt return text split n reduce all current gt const values current match d if values length gt return all values trim return all Now the fun part We need all the possible categories then run it through our function and map it to our database const res await api sendMessage Can you list types of websites in the world send in app notifications just the category categories push extractNumberedList res response map p gt category p notificationTypes Now we will iterate over the categories and start adding content to them I am not going to use functional programming here for the first part I will use the “for loop as it s easier with async await for const category of categories Let s start to create our notification types for const category of categories const notificationTypesRes await api sendMessage I have a website of type category What kind of notifications should I sent to my users can you just write the type without context give me const notificationTypes extractNumberedList res response map p gt name p notifications And now let s add our notifications for const category of categories get all the notifications type const notificationTypesRes await api sendMessage I have a website of type category What kind of notifications should I sent to my users can you just write the type without context give me parse all the notification type and map them const notificationTypes extractNumberedList notificationTypesRes response map p gt name p notifications get all the notifications for the notification type const notifications await Promise all notificationTypes map async p gt const notificationRes await api sendMessage I have built a system about category and I need to create in app notifications about notificationType can you maybe write me a of those just the notification without the intro use lower case double curly braces with no spaces and underscores for the variables and avoid using quotation when writing the notifications return p notifications extractNumberedList notificationRes response push it to the main array notificationTypes notifications push notifications The final code will be looking like this import ChatGPTClient from waylaidwanderer chatgpt api const api new ChatGPTClient YOUR ACCESS TOKEN FROM THE PREVIOUS STEP reverseProxyUrl modelOptions model text davinci render const categories const extractNumberedList text gt return text split n reduce all current gt const values current match d if values length gt return all values trim return all const res await api sendMessage Can you list types of websites in the world send in app notifications just the category categories push extractNumberedList res response map p gt category p notificationTypes for const category of categories get all the notifications type const notificationTypesRes await api sendMessage I have a website of type category What kind of notifications should I sent to my users can you just write the type without context give me parse all the notification type and map them const notificationTypes extractNumberedList notificationTypesRes response map p gt name p notifications get all the notifications for the notification type const notifications await Promise all notificationTypes map async p gt const notificationRes await api sendMessage I have built a system about category and I need to create in app notifications about notificationType can you maybe write me a of those just the notification without the intro use lower case double curly braces with no spaces and underscores for the variables and avoid using quotation when writing the notifications return p notifications extractNumberedList notificationRes response push it to the main array notificationTypes notifications push notifications It can run in the background forever We can quickly move it to a separate task cron queue but we will not do it here While this thing is running in the background let s add here the API that our frontend can useLet s go back to our command line and write npm install express saveWe will do the simplest thing and just serve our categories variable Feel free to take it to the next level with an actual database import express from express const app express const port app get req res gt return categories app listen port gt console log Example app listening on port port And the complete code is as follows import ChatGPTClient from waylaidwanderer chatgpt api import express from express const categories const app express const port const api new ChatGPTClient YOUR ACCESS TOKEN FROM THE PREVIOUS STEP reverseProxyUrl modelOptions model text davinci render const extractNumberedList text gt return text split n reduce all current gt const values current match d if values length gt return all values trim return all app get req res gt return categories app listen port gt console log Example app listening on port port const res await api sendMessage Can you list types of websites in the world send in app notifications just the category categories push extractNumberedList res response map p gt category p notificationTypes for const category of categories get all the notifications type const notificationTypesRes await api sendMessage I have a website of type category What kind of notifications should I sent to my users can you just write the type without context give me parse all the notification type and map them const notificationTypes extractNumberedList notificationTypesRes response map p gt name p notifications get all the notifications for the notification type const notifications await Promise all notificationTypes map async p gt const notificationRes await api sendMessage I have built a system about category and I need to create in app notifications about notificationType can you maybe write me a of those just the notification without the intro use lower case double curly braces with no spaces and underscores for the variables and avoid using quotation when writing the notifications return p notifications extractNumberedList notificationRes response push it to the main array notificationTypes notifications push notifications NODE JS Now let s move over to react to display all of our categories I will do the simplest thing of aggregating everything inside of a lt ul gt Let s right some bash commands cd npx create react app frontendcd frontendI will be using axios to get all the results from the database feel free to use fetch react query etc…npm install axiosLet s open our main component at “src App js and add some importsimport useState useCallback useEffect from react import axios from axios Let s open our main component at “src App js and add a new state that will contain all of our database from the server const categories setCategories useState And now we will write the function that will get all the information from the serverconst serverInformation useCallback async gt const data await axios get http localhost setCategories data Add it to our useEffect that will run as soon as the component is loadeduseEffect gt serverInformation And now we will render everything on the screen lt ul gt categories map cat gt lt li gt cat category lt ul gt cat notificationTypes map notificationType gt lt li gt notificationType name lt ul gt notificationType notifications map notification gt lt li gt notification lt li gt lt ul gt lt li gt lt ul gt lt li gt lt ul gt And that s it We have rendered the entire list The full code of App js would look like this import useState useCallback useEffect from react import axios from axios function App const categories setCategories useState useEffect gt serverInformation const serverInformation useCallback async gt const data await axios get http localhost setCategories data return lt ul gt categories map cat gt lt li gt cat category lt ul gt cat notificationTypes map notificationType gt lt li gt notificationType name lt ul gt notificationType notifications map notification gt lt li gt notification lt li gt lt ul gt lt li gt lt ul gt lt li gt lt ul gt Of course this is the short version of the frontend You can find the complete frontend code with the amazing design here I hope you have learned something Until next time Help me out If you feel like this article helped you I would be super happy if you could give us a star And let me also know in the comments ️ 2023-02-13 14:11:05
Apple AppleInsider - Frontpage News Daily Deals Feb. 13: 14" MacBook Pro $1,689, $200 off M2 MacBook Air, $500 off 27" iMac & more https://appleinsider.com/articles/23/02/13/daily-deals-feb-13-14-macbook-pro-1689-200-off-m2-macbook-air-500-off-27-imac-more?utm_medium=rss Daily Deals Feb quot MacBook Pro off M MacBook Air off quot iMac amp moreToday s top deals include a Hisense K Smart Google TV for off an Ecovacs Turbo robot vacuum and mop off Skullcandy Bluetooth earbuds and Apple Watch Series for Save on a MacBook ProThe AppleInsider crew scours the web for can t miss deals at online stores to develop a list of deals on the top tech products including discounts on Apple products TVs accessories and other gadgets We share the best deals in our Daily Deals list to help you save money Read more 2023-02-13 14:50:12
Cisco Cisco Blog 4 Key takeaways from NRF 2023 https://blogs.cisco.com/retail/key-takeaways-from-nrf2023 Key takeaways from NRF The continual drive to seamlessly connect physical and digital for retail creates a huge opportunity to unify the entire retail value chain Cisco s presence at NRF this year included demonstrations to show retailers how they can leverage the right technologies to uncover efficiencies across their business to drive growth 2023-02-13 14:23:11
海外科学 NYT > Science Nausea, Wobbling, Confusion: Dogs Are Getting Sick From Discarded Weed https://www.nytimes.com/2023/02/13/nyregion/dogs-weed-nyc.html Nausea Wobbling Confusion Dogs Are Getting Sick From Discarded WeedIn places where recreational use is legal smokers are tossing the remains of joints in the street Dogs are eating them and getting sick in increasing numbers veterinarians and poison control centers say 2023-02-13 14:02:29
海外科学 NYT > Science How Teens Recovered From the ‘TikTok Tics’ https://www.nytimes.com/2023/02/13/health/tiktok-tics-gender-tourettes.html How Teens Recovered From the TikTok Tics A wave of teenagers who developed tics during the pandemic has receded illustrating the powerful influence of stress on the body and the resilience of adolescents 2023-02-13 14:42:52
金融 RSS FILE - 日本証券業協会 J-IRISS https://www.jsda.or.jp/anshin/j-iriss/index.html iriss 2023-02-13 15:23:00
ニュース BBC News - Home Mystery surrounds objects shot down by US military https://www.bbc.co.uk/news/world-us-canada-64620064?at_medium=RSS&at_campaign=KARANGA recent 2023-02-13 14:25:09
ニュース BBC News - Home China says US balloons breached airspace at least 10 times https://www.bbc.co.uk/news/world-asia-china-64621598?at_medium=RSS&at_campaign=KARANGA balloons 2023-02-13 14:44:08
ニュース BBC News - Home Super Bowl 57: Patrick Mahomes wins second title to show he's Tom Brady's NFL successor https://www.bbc.co.uk/sport/american-football/64623240?at_medium=RSS&at_campaign=KARANGA Super Bowl Patrick Mahomes wins second title to show he x s Tom Brady x s NFL successorThe way Patrick Mahomes claimed his second Super Bowl with the Kansas City Chiefs shows exactly why he is being proclaimed as the next Tom Brady 2023-02-13 14:30:59
ニュース BBC News - Home Women's T20 World Cup: Sophie Ecclestone picks up two wickets in two balls against Ireland https://www.bbc.co.uk/sport/av/cricket/64627910?at_medium=RSS&at_campaign=KARANGA Women x s T World Cup Sophie Ecclestone picks up two wickets in two balls against IrelandWatch as Sophie Ecclestone picks up the wickets of Ireland s Gaby Lewis and Eimear Richardson in consecutive balls at the Women s T World Cup 2023-02-13 14:29:05
ニュース BBC News - Home Jakub Jankto: Czech Republic international midfielder comes out as gay https://www.bbc.co.uk/sport/football/64622199?at_medium=RSS&at_campaign=KARANGA jakub 2023-02-13 14:39:02
ビジネス ダイヤモンド・オンライン - 新着記事 シェブロン、ワースCEOの定年免除を検討=関係者 - WSJ発 https://diamond.jp/articles/-/317720 関係者 2023-02-13 23:06:00
仮想通貨 BITPRESS(ビットプレス) [文春] 20日間監禁し1億円の暗号資産を強奪した犯人は三菱電機前社長の息子だった https://bitpress.jp/count2/3_9_13550 三菱電機 2023-02-13 23:27:29
仮想通貨 BITPRESS(ビットプレス) [Newsweek] IMF、エルサルバドルのビットコイン法定通貨化で改めてリスク指摘 https://bitpress.jp/count2/3_9_13549 newsweek 2023-02-13 23:25:51

コメント

このブログの人気の投稿

投稿時間:2021-06-17 05:05:34 RSSフィード2021-06-17 05:00 分まとめ(1274件)

投稿時間:2021-06-20 02:06:12 RSSフィード2021-06-20 02:00 分まとめ(3871件)

投稿時間:2020-12-01 09:41:49 RSSフィード2020-12-01 09:00 分まとめ(69件)