TECH |
Techable(テッカブル) |
耐久性とデザイン性を兼ね備えたiPhone 14向けスマホケース発売! |
https://techable.jp/archives/198225
|
casetagramlimited |
2023-03-04 09:00:23 |
AWS |
lambdaタグが付けられた新着投稿 - Qiita |
ChatGPTをSlackから使う(gpt-3.5-turbo) |
https://qiita.com/melty_go/items/a6929b0a341e75d24f01
|
gpttextdavinci |
2023-03-04 18:32:23 |
python |
Pythonタグが付けられた新着投稿 - Qiita |
python manage.py runserverでエラーの解消方法 |
https://qiita.com/wooooo/items/b937584c2484e4859737
|
nservertracebackmostrec |
2023-03-04 18:34:20 |
python |
Pythonタグが付けられた新着投稿 - Qiita |
kaggleのデータセット「income > 50k」を使って予測に挑戦 |
https://qiita.com/k_a_m_n0217/items/6e636b651c6118bad4e4
|
linearsv |
2023-03-04 18:30:01 |
golang |
Goタグが付けられた新着投稿 - Qiita |
Goでテーブル駆動テストを実装する(入門編) |
https://qiita.com/ryo_manba/items/242f629e0b3593879c6d
|
駆動 |
2023-03-04 18:56:35 |
Ruby |
Railsタグが付けられた新着投稿 - Qiita |
gem使ってるとよく見かけるsuperってなんなん? |
https://qiita.com/jpsuzuki/items/ef91da7e59047082897b
|
classhuman |
2023-03-04 18:34:26 |
Ruby |
Railsタグが付けられた新着投稿 - Qiita |
子モデルを作成するbuildメソッド |
https://qiita.com/jpsuzuki/items/bc17e1e8b86608e32bac
|
userusernewitemuserbuild |
2023-03-04 18:08:14 |
技術ブログ |
Developers.IO |
[Gather.town]マップ内で自身から一番近い距離の人を割り出す方法 |
https://dev.classmethod.jp/articles/gather-town-closest-player/
|
gathertown |
2023-03-04 09:21:40 |
海外TECH |
DEV Community |
Computer Networking for Beginners |
https://dev.to/nite_dev/computer-networking-for-beginners-161k
|
Computer Networking for BeginnersIntroductionComputer networking is the practice of linking multiple devices together to share resources information and data A computer network can be as small as two computers connected by a cable or as large as the internet which links billions of devices worldwide In this documentation we will provide an introduction to computer networking for beginners What is Computer Networking Computer networking is the process of linking computers servers and other devices to share resources and data It allows devices to communicate with each other over a network regardless of their location Computer networking enables file sharing printing and internet connectivity among other services Types of NetworksThere are several types of computer networks including Local Area Network LAN A LAN is a network that connects devices within a specific geographic area such as a home office or school Wide Area Network WAN A WAN is a network that connects devices over a larger geographic area such as a city or country Metropolitan Area Network MAN A MAN is a network that connects devices within a metropolitan area such as a city or town Wireless Network A wireless network uses radio waves to connect devices without the need for physical cables Network ComponentsA computer network is made up of various components including Nodes Nodes are devices that are connected to the network such as computers servers and routers Network Interface Cards NICs NICs are hardware components that allow devices to connect to the network Switches Switches are devices that connect multiple devices within a network and enable data transmission between them Routers Routers are devices that connect multiple networks together and enable data to be transmitted between them Cables Cables are used to physically connect devices within a network ProtocolsProtocols are rules and standards that govern how data is transmitted over a network Some common protocols include Transmission Control Protocol Internet Protocol TCP IP TCP IP is the primary protocol used for communication over the internet Hypertext Transfer Protocol HTTP HTTP is the protocol used for communication between web servers and web browsers File Transfer Protocol FTP FTP is a protocol used for transferring files between computers on a network SecurityComputer networks can be vulnerable to security threats such as hacking malware and viruses To secure a network it is important to use strong passwords install antivirus software and keep software up to date with the latest security patches ConclusionIn conclusion computer networking is a fundamental concept in the modern world that enables devices to communicate and share resources Understanding the basic concepts of computer networking is essential for anyone who wishes to work with computers or use the internet |
2023-03-04 09:39:33 |
海外TECH |
DEV Community |
A gentle introduction to Vitest |
https://dev.to/shaswatprabhat/a-gentle-introduction-to-vitest-14fp
|
A gentle introduction to VitestVitest is a new Javascript Unit testing framework which describes itself as blazing fast and Vite native In this post we will try and understand the basics of this framework while building an understanding of what makes Vitest different from existing libraries in this space A ft view of ViteWhile we will not be covering Vite in this post it will help us to understand some bits of it to appreciate Vitest better Vite is an ESM first bundler which combines amazing developer experience with awesome speed Simply put Vite brings in the best of both worlds non JS bundlers to provide amazing speed and ESM ness and all the advantages of native ESM via Rollup This means out of the box support for most of the features like code splitting CSS and Asset Handling JSX TS etc This also means a new way of thinking about your code in terms of ESM first and leaving the rest to Vite On to VitestTraditionally Jest has been the most widely used JS Unit testing framework of choice While Jest is an incredible framework it has had some slowness issues But a bigger problem around Jest is the tooling that might be needed to run our first test We might need a transpiler liked Babel and transformers to create Jest digestible code The bane of runtimesWeb development is closely tied to runtimes That means that even if our code is targeting Browsers of different generations a challenge in its own we might still need a lot of tooling for Node runtimes Our test runners and even build tools have had to deal with this disparity for a long time hence the plethora of plugins in tools like Webpack to target bundling of all kinds of file formats A possible solution What Vitest helps achieve is that the same configuration for Vite dev and production can be used for testing eliminating the middle layers of transpilers coupled with all advantages of Vite s API Ok I am kind of convinced But there is more Below are some of the Vitest APIs and features that I have been loving For a full list do check out the documentation Configuring Vitest feels very similar to configuring Vite A typical Vitest Config might look like below lt reference types vitest gt import defineConfig from vite import Vue from vitejs plugin vue export default defineConfig plugins Vue test globals true environment jsdom Rich CLI with most pragmatic options covered like running related tests watch mode and changed to run tests on changed files only Scripts like below can be added to package json scripts test vitest test watch vitest watch coverage vitest run coverage Inbuilt coverage support with instanbul and cThe amazing vi utilityprovides powerful support for mocking spying and timers A sample mock in Vitest will look like vi mock src log ts async gt const log await import src log return default log default info vi fn and a spy like below const buySpy vi spyOn market buy expect buySpy not toHaveBeenCalled Rust inspired in source testing a way to write and execute tests from within the source code src index tsexport function add args number return args reduce a b gt a b in source test suitesif import meta vitest const it expect import meta vitest it add gt expect add toBe expect add toBe expect add toBe Assertions which are very similar to Jest or MochaA shiny UI leveraging the underlying Vite dev server for running the tests Wow this looks amazingWelcome to the club This was aimed to be an introductory entry point to Vitest Do share your experiences on using this amazing library in comments below Until next time |
2023-03-04 09:20:05 |
海外ニュース |
Japan Times latest articles |
London’s investment appeal is unraveling as Arm heads to the U.S. |
https://www.japantimes.co.jp/news/2023/03/04/business/london-exchange-appeal-falls/
|
London s investment appeal is unraveling as Arm heads to the U S The trend is ominous for flagging initial public offerings in the U K and also sets back efforts to transform what is widely perceived to be |
2023-03-04 18:00:59 |
ニュース |
BBC News - Home |
Street fighting in Bakhmut but Russia not in control - deputy mayor |
https://www.bbc.co.uk/news/world-europe-64846666?at_medium=RSS&at_campaign=KARANGA
|
strategic |
2023-03-04 09:43:38 |
ニュース |
BBC News - Home |
Matt Hancock's reaction to photo of kiss with aide revealed in text leak |
https://www.bbc.co.uk/news/uk-politics-64844081?at_medium=RSS&at_campaign=KARANGA
|
health |
2023-03-04 09:41:48 |
ニュース |
BBC News - Home |
Freestyle Ski & Snowboarding World Championships: GB's Zoe Atkin takes Freeski halfpipe silver |
https://www.bbc.co.uk/sport/av/winter-sports/64846818?at_medium=RSS&at_campaign=KARANGA
|
Freestyle Ski amp Snowboarding World Championships GB x s Zoe Atkin takes Freeski halfpipe silverGreat Britain s Zoe Atkin wins a silver medal in the Freeski halfpipe event at the Freestyle Ski Snowboarding World Championships in Georgia |
2023-03-04 09:22:26 |
ニュース |
BBC News - Home |
Freeski World Championships: Britain's Zoe Atkin wins halfpipe silver |
https://www.bbc.co.uk/sport/winter-sports/64846978?at_medium=RSS&at_campaign=KARANGA
|
georgia |
2023-03-04 09:40:29 |
IT |
週刊アスキー |
帆立×鶏パイタンって贅沢じゃない!? タテ型カップ麺「日清ラ王」から登場 |
https://weekly.ascii.jp/elem/000/004/127/4127189/
|
hotate |
2023-03-04 18:30:00 |
コメント
コメントを投稿