投稿時間:2023-02-20 03:21:44 RSSフィード2023-02-20 03:00 分まとめ(30件)

カテゴリー等 サイト名等 記事タイトル・トレンドワード等 リンクURL 頻出ワード・要約等/検索ボリューム 登録日
js JavaScriptタグが付けられた新着投稿 - Qiita Node.jsについて https://qiita.com/Az2Ar/items/f43c8fb23a3caaff4397 javascri 2023-02-20 02:36:27
Docker dockerタグが付けられた新着投稿 - Qiita Docker の実験(その11:イメージの調査) https://qiita.com/intrajp/items/b7d26517fb7e8d7ef609 docker 2023-02-20 02:52:14
GCP gcpタグが付けられた新着投稿 - Qiita Google Cloud ログ集約管理 https://qiita.com/suzuyui/items/7778be9283502c7e4c7c terrafor 2023-02-20 02:46:01
Git Gitタグが付けられた新着投稿 - Qiita GitHubで草を生やす方法 https://qiita.com/oryoji/items/0a0cec6d0402d53ae355 github 2023-02-20 02:22:47
海外TECH MakeUseOf How to Fix the “This Build of Vanguard Requires TPM Version 2.0 and Secure Boot” Error on Windows https://www.makeuseof.com/fix-vanguard-requires-tpm-secure-boot-enabled-error-windows/ How to Fix the “This Build of Vanguard Requires TPM Version and Secure Boot Error on WindowsIf you re getting the dreaded VAN error when booting a Riot Games title here s how to fix it on Windows 2023-02-19 17:15:16
海外TECH MakeUseOf 7 Tips to Reduce Smartphone Use in Bed and Improve Sleep Hygiene https://www.makeuseof.com/reduce-smartphone-use-bed-improve-sleep-hygiene/ Tips to Reduce Smartphone Use in Bed and Improve Sleep HygieneGive yourself the good night s sleep you deserve by following these tips to put the phone away reduce blue light exposure and wind down effectively 2023-02-19 17:15:16
海外TECH DEV Community Minimalist web server for static files with Crystal https://dev.to/miry/minimalistic-web-server-for-static-files-with-crystal-19a1 Minimalist web server for static files with Crystal ProblemBuild a cross platform web server to serve static files in the local folder Test local HTML CSS and JS files without CORS errors Many browsers including Firefox and Chrome now treat all local files as having opaque origins by default As a result loading a local file with included local resources will result in CORS errors SolutionsThe standard Crystal library allows an HTTP server to process requests StandardRun a server on to serve files from the local directory server crrequire http server def run host port local server HTTP Server new HTTP ErrorHandler new HTTP LogHandler new HTTP CompressHandler new HTTP StaticFileHandler new local address server bind tcp host port puts Listening on http address server listenendrun crystal run server crListening on MinimalistOf course you want to run it everywhere without creating additional files crystal eval p require http server HTTP Server new HTTP StaticFileHandler new listen ReferencesReason CORS request not HTTP Loading a local file Crystal class HTTP Server 2023-02-19 17:30:00
海外TECH DEV Community Adding Test to your project https://dev.to/alcb1310/adding-test-to-your-project-20o6 Adding Test to your project Why testMaking tests ensures that your application works as expected lets you prove that it does what is supposed to do For this there are several kind of test we can use Manual Testing In this kind of tests we use the application as the end user will and see what happens when we do certain things AdvantagesLets you follow the flow a normal user will useDon t have to write more code for your applicationDisadvantagesThey take long time to runCan forget to run some testsMay not be checking for edge casesAutomated Tests In this kind of tests we write some code that will ensure that our application does what is expected AdvantagesRuns fastYou can not forget to run some testYou define all of the edge casesDisadvantagesYou need to write more code in your applicationA bad designed test will not ensure your code quality Kinds of testNow that we ve seen how we can test either manually or automated let s see what are the most common types of tests we will encounterFunctionality tests With this kind of tests we ensure that the business logic of each of our components work properly Integration tests With this kind of tests we ensure that the different components of our application works together properly End to end tests With this kind of tests we go through the process of what a user will do when using the applicationAs more things go in place the longer the test takes to run and the more things that it have to check Creating the testsFor our example since we are using TypeScript in the project we created in the last post we are going to be using a tool that is called JEST Installing JESTTo install JEST you need to type on the console npm install D jest ts jest types jest jest globals npx ts jest config initThis will add all of the required libraries for jest to work and will create the jest configuration file that wil look something like type import ts jest JestConfigWithTsJest module exports preset ts jest testEnvironment node Finally we need to add the test script to our package json file scripts test jest Now we are ready to start making our test for that we will create a new file called sum test ts inside this file we will make a test that will check that a sum function works properlyInside the file we will write the following import describe it expect from jest globals function sumTwoNumbers num number num number number return num num describe Testing that we can add two numbers gt it Should return the sum of the two numbers gt const total sumTwoNumbers expect total toBe For us to be able to run the test we just need to run the following command on our terminal npm run testNow lest run a failing test to see how it looksimport describe it expect from jest globals function sumTwoNumbers num number num number number return num num describe Testing that we can add two numbers gt it Should return the sum of the two numbers gt const total sumTwoNumbers expect total toBe it Should send error when not the correct sum gt const total sumTwoNumbers expect total toBe Again run the test and we will see an error Now that we know that our tests are working properly lets refactor First lest create a directory inside our src folder called helpers and inside lets create a file called sumTwoNumbers ts and that file should have the following contents function sumTwoNumbers num number num number number return num num Finally in our sum test ts file we need to delete the function and import it from the new file we have just createdimport describe it expect from jest globals import sumNumbers from src helpers sumNumbers describe Testing that we can add two numbers gt it Should return the sum of the two numbers gt const total sumNumbers expect total toBe it Should send error when not the correct sum gt const total sumNumbers expect total toBe If we have done everything right we should see that the first test should be successful and that the second test should show us the same error as before Finally lets remove the failing test and we are done ConclusionsIn today s post we were learned about testing and begin to write functionality tests using a library called JEST Next stepsExcellent we have just enabled a testing library in our project After this we will need to Add eslint and prettierAdd the routes to work the logic of our applicationAll of these topics I will cover them in future posts 2023-02-19 17:12:52
Apple AppleInsider - Frontpage News Get Apple AirPods Pro 2 for $199.99, the cheapest price to date https://appleinsider.com/articles/23/02/19/get-apple-airpods-pro-2-for-19999-the-cheapest-price-to-date?utm_medium=rss Get Apple AirPods Pro for the cheapest price to dateApple AirPods Pro are now on sale for at Amazon Verizon and Best Buy a discount of off retail in the latest price war Apple AirPods Pro now For a limited time only you can pick up Apple AirPods Pro for just at Amazon com BestBuy com and Verizon com delivering the cheapest AirPods Pro price available Read more 2023-02-19 17:57:27
Apple AppleInsider - Frontpage News How to refurbish and keep an ancient Mac mini running https://appleinsider.com/inside/mac/tips/how-to-refurbish-and-keep-an-ancient-mac-mini-running?utm_medium=rss How to refurbish and keep an ancient Mac mini runningOld Macs still have a lot to offer in terms of usage and functionality Here s how to keep your old Mac minis running like new Older Mac minisIn this article we ll take a look at refurbishing two of the earliest Mac mini models from Apple The PowerPC G GHz model and the Intel based Core Duo GHz Both machines are some of the earliest polycarbonate mini models Apple made Read more 2023-02-19 17:47:33
Apple AppleInsider - Frontpage News Meta Verified is Mark Zuckerberg's $11.99 competitor to Twitter Blue https://appleinsider.com/articles/23/02/19/meta-verified-is-mark-zuckerbergs-1199-competitor-to-twitter-blue?utm_medium=rss Meta Verified is Mark Zuckerberg x s competitor to Twitter BlueMeta is joining Twitter in providing a paid verification subscription to customers with Meta Verified allowing other users to confirm the identity of its subscribers on Facebook and Instagram Meta CEO Mark ZuckerbergIn a Sunday morning post to Facebook Meta CEO Mark Zuckerberg issued a new product announcement introducing Meta Verified Following in the steps of moves by Twitter to monetize verification Meta Verify will aim to do the same but with few other benefits beyond confirming the user is who they say they are Read more 2023-02-19 17:37:23
ニュース @日本経済新聞 電子版 禁煙で保険積立金加算 SOMPOひまわり生命、変額型で初 https://t.co/bMv19IN5me https://twitter.com/nikkei/statuses/1627357591805505538 sompo 2023-02-19 17:20:59
ニュース @日本経済新聞 電子版 戻らぬ働き手1000万人 先進国のコロナ前比、求人とずれ https://t.co/h1Wjtmmp2w https://twitter.com/nikkei/statuses/1627352792745771008 求人 2023-02-19 17:01:55
ニュース BBC News - Home Nicola Bulley: Lancashire Police find body in River Wyre https://www.bbc.co.uk/news/uk-england-64697300?at_medium=RSS&at_campaign=KARANGA bulley 2023-02-19 17:54:18
ニュース BBC News - Home Ukraine war: Blinken says China may give weapons to Russia https://www.bbc.co.uk/news/world-us-canada-64695042?at_medium=RSS&at_campaign=KARANGA ukraine 2023-02-19 17:26:35
ニュース BBC News - Home Baftas 2023: The red carpet in pictures https://www.bbc.co.uk/news/entertainment-arts-64699045?at_medium=RSS&at_campaign=KARANGA london 2023-02-19 17:21:04
ニュース BBC News - Home Strikes update: How Monday 20 February’s walkouts will affect you https://www.bbc.co.uk/news/business-64677582?at_medium=RSS&at_campaign=KARANGA conway 2023-02-19 17:04:12
ニュース BBC News - Home Boris Johnson NI intervention not entirely unhelpful, says Mordaunt https://www.bbc.co.uk/news/uk-politics-64695633?at_medium=RSS&at_campaign=KARANGA ireland 2023-02-19 17:44:23
ニュース BBC News - Home British Medical Association calls government reckless over pay talks https://www.bbc.co.uk/news/health-64698560?at_medium=RSS&at_campaign=KARANGA members 2023-02-19 17:05:43
ニュース BBC News - Home Exeter: Man held over murder of woman in Ludwell Valley Park https://www.bbc.co.uk/news/uk-england-devon-64694987?at_medium=RSS&at_campaign=KARANGA attack 2023-02-19 17:08:46
ニュース BBC News - Home Aberhosan: Farmer dies and son seriously injured in accident https://www.bbc.co.uk/news/uk-wales-64695508?at_medium=RSS&at_campaign=KARANGA aberhosan 2023-02-19 17:47:55
ニュース BBC News - Home Man Utd 3-0 Leicester: Marcus Rashford and Jadon Sancho score as Red Devils win https://www.bbc.co.uk/sport/football/64614427?at_medium=RSS&at_campaign=KARANGA Man Utd Leicester Marcus Rashford and Jadon Sancho score as Red Devils winMarcus Rashford continues his hot streak of form by scoring twice to help Manchester United overcome Leicester in the Premier League 2023-02-19 17:38:12
ニュース BBC News - Home England 2-1 Italy: Rachel Daly double helps England avoid Italy scare https://www.bbc.co.uk/sport/football/64688596?at_medium=RSS&at_campaign=KARANGA arnold 2023-02-19 17:24:51
ニュース BBC News - Home Premiership: Leicester Tigers 24-18 Saracens - Tigers hold on to beat leaders https://www.bbc.co.uk/sport/rugby-union/64682567?at_medium=RSS&at_campaign=KARANGA Premiership Leicester Tigers Saracens Tigers hold on to beat leadersPremiership leaders Saracens suffer just their second league defeat of the season as Leicester boost their hopes of a top four finish 2023-02-19 17:34:51
ビジネス ダイヤモンド・オンライン - 新着記事 「頭の悪い人がやること」のたった1つの特徴 - 99%はバイアス https://diamond.jp/articles/-/317995 突破 2023-02-20 02:55:00
ビジネス ダイヤモンド・オンライン - 新着記事 【精神科医が教える】 “生きづらさ”は他人の言葉の受けとり方が解消する - 精神科医Tomyが教える 心の執着の手放し方 https://diamond.jp/articles/-/316213 【精神科医が教える】“生きづらさは他人の言葉の受けとり方が解消する精神科医Tomyが教える心の執着の手放し方【大好評シリーズ万部突破】誰しも悩みや不安は尽きない。 2023-02-20 02:50:00
ビジネス ダイヤモンド・オンライン - 新着記事 髪のプロに聞く「ハゲは隔世遺伝」って本当?【書籍オンライン編集部セレクション】 - 髪が増える術 https://diamond.jp/articles/-/317475 髪のプロに聞く「ハゲは隔世遺伝」って本当【書籍オンライン編集部セレクション】髪が増える術薄毛、白髪、フケ、かゆみ…。 2023-02-20 02:45:00
ビジネス ダイヤモンド・オンライン - 新着記事 世界最先端の半導体生産をTSMCが独占するまで - 半導体戦争 https://diamond.jp/articles/-/318011 独り占め 2023-02-20 02:40:00
ビジネス ダイヤモンド・オンライン - 新着記事 プレーヤーでは一流でも、管理職になると三流になる人の共通点 - 時間最短化、成果最大化の法則 https://diamond.jp/articles/-/314089 プレーヤーでは一流でも、管理職になると三流になる人の共通点時間最短化、成果最大化の法則【がっちりマンデー】「ニトリ似鳥会長が年に読んだオススメ本選」に選抜シリーズ万部突破【日経新聞掲載】有隣堂横浜駅西口店「週間総合」ベスト入り。 2023-02-20 02:35:00
ビジネス ダイヤモンド・オンライン - 新着記事 「勉強の成果が出ない人」のNG行動・ワースト3 - 良書発見 https://diamond.jp/articles/-/316326 そこで参考になるのが、Googleで最速仕事術「スプリントデザインスプリント」を生み出し、世界の企業の働き方に革命を起こしてきた著者による『時間術大全ー人生が本当に変わる「の時間ワザ」』だ。 2023-02-20 02:30:00

コメント

このブログの人気の投稿

投稿時間:2021-06-17 22:08:45 RSSフィード2021-06-17 22:00 分まとめ(2089件)

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

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