IT |
ITmedia 総合記事一覧 |
[ITmedia News] アニメ「進撃の巨人」1期全話をYouTubeで無料配信 2月5日までの期間限定 |
https://www.itmedia.co.jp/news/articles/2301/06/news159.html
|
期間限定 |
2023-01-06 19:43:00 |
IT |
ITmedia 総合記事一覧 |
[ITmedia News] ポケモンGOで7日「ハリマロン」大量発生 色違い初登場 |
https://www.itmedia.co.jp/news/articles/2301/06/news152.html
|
itmedia |
2023-01-06 19:15:00 |
TECH |
Techable(テッカブル) |
しっくりくる画像、AIが作ります。AI素材.comリリース |
https://techable.jp/archives/188968
|
aipicasso |
2023-01-06 10:45:41 |
python |
Pythonタグが付けられた新着投稿 - Qiita |
遺伝子情報をDB横断的に検索するPythonパッケージ "gget" |
https://qiita.com/khigashi02/items/6d60f2df8054f794bc15
|
micreferencedatabaseswi |
2023-01-06 19:04:06 |
Docker |
dockerタグが付けられた新着投稿 - Qiita |
[wsl / Docker] build時にdockerイメージの取得に失敗するrpc error問題の対処 |
https://qiita.com/siruku6/items/89271a2d437d551e4809
|
docker |
2023-01-06 19:39:53 |
技術ブログ |
Developers.IO |
การติดตั้ง docker และ docker-compose สำหรับ Amazon Linux 2 บน EC2 |
https://dev.classmethod.jp/articles/install-docker-and-docker-compose-for-amazon-linux-2-on-ec2/
|
การติดตั้งdocker และdocker compose สำหรับAmazon Linux บนECสวัสดีครับPOP จากบริษัทClassmethod Thailand ครับครั้งนี้ผมจะมาแนะนำการติดตั้งdocker และdocker compose ส |
2023-01-06 10:43:06 |
技術ブログ |
Developers.IO |
クラスメソッドの評価制度を改定した話 |
https://dev.classmethod.jp/articles/revise-of-evaluation/
|
開始 |
2023-01-06 10:05:17 |
海外TECH |
DEV Community |
All you (probably) need to know about caching on the web 🗃 |
https://dev.to/enterspeed/all-you-probably-need-to-know-about-caching-on-the-web-4loa
|
All you probably need to know about caching on the web Every developer has most likely bumped into the concept of caching at some point in their career For some it s a vital instrument in their everyday work that helps their code to run as fast and cost effective as possible For others they might only have worked with it that one time they activated “that cache plugin on a client s WordPress site If you belong to the first group you probably won t need this article Instead you can enjoy a nice game of “Chrome dino Open a Chrome browser and type chrome dino send me your high score afterward For all you people not so well travelled in the world of cache I know you re dying to also play a nice game of “Chrome dino but patience you must have my young Padawan your time will also come First let s look at what cache is and how it works What is cache Caching is the process of temporarily storing copies of data so it can be accessed more quickly It s a concept that has been used in computer science for ages going all the way back to when British computer scientist Maurice Wilkes introduced memory caching But copying things doesn t necessarily make them faster Let s look at three examples In the first example we ll see how you can reduce the server s workload by turning your dynamic content into static content Making dynamic content staticBack in the early days of the web all websites that existed were static it was all pure simple HTML Then in the mid s that all changed when multiple server side languages were released PHP ASP etc as well as one client side scripting language called JavaScriptDynamic pages revolutionised the web and made websites more personalised and interactive However it also made the web a bit slower since the user now had to wait for a server to render the content Having the server create the content every single time a user visited even though nothing had changed seemed a tad bit silly so developers started implementing caching The caching worked by saving a copy of the “server response turning the dynamic content into static content That way they could generate content upfront and serve it both quicker and cheaper to the user they just had to remember to invalidate it when the content changed Let s see what this could look like in the real world Example Soup of the dayImagine a restaurant serving “soup of the day Each day a new different soup is available Which soup is available that day may depend on which ingredients are in surplus in the kitchen and what the chef feels like making Since the restaurant doesn t know what the soup of the day will be they can only write “Soup of the day ask the waiter on their menu It s really difficult for me not to write a witty ask the server pun here That s fine for a small restaurant or one where a waiter takes your order each time Now imagine a busy street food restaurant serving hundreds of customers throughout the day Getting asked “What is today s soup a hundred times a day every single day would turn any man or woman into a Soup Nazi yelling “NO SOUP FOR YOU the th time this question was asked The restaurant could instead “cache this request by writing “Soup of the day Chicken soup on a blackboard above the counter The chef could then easily “invalidate this cache once a day when the soup changed or when the soup is sold out In the next example we will see how we can get the soup…Sorry I mean content closer to the user by using caching Moving the content closer to the userThe location of a server hosting a website can greatly impact the website s speed If the user is located far away from the server their response will be slow compared to someone located close to the server The closer the user is to the server the quicker the response This is also why there s big money in renting out servers as close to the stock exchanges as possible for high speed trading bots every millisecond counts Luckily we don t need to have the servers quite as close to the users as a trading bot needs to be to a “trading floor but we need it to be somewhat close to their geographic area Setting up multiple independent servers to serve multiple geographic areas can be both inefficient costly hard to scale and a nightmare to manage Luckily there s a better solution a CDN A CDN Content Delivery Network is a group of servers distributed geographically that work together to deliver your content fast to the user It stores a copy of your data including HTML pages JavaScript files stylesheets images and even videos CDN providers have a ton of locations available Cloudflare for instance has servers in more than countries imagine if you had to set that up yourself Let s try to translate a CDN into a real world example Example The electrician and his vanSay you are an electrical contractor and run a successful company with several employees under you Since you re an electrical contractor and not a baker you need to go to your customers instead of your customers coming to you The customers can be located far away from the workshop where you store all your tools cables and other supplies Having to go back and forth from the workshop to the customer each time you need a tool or cable would be quite cumbersome Instead the electrician “caches his most used tools and supplies in his van That way the things he needs are close to him and he can quickly grab what he needs Each day when he gets back to the workshop he can “revalidate his cache by filling up the vans with new supplies charging his electrical tools and preparing the van for the next job Image source In the last example we will see how we can cache our data to faster storage solutions Moving the data to faster storageAll storage is not “built the same You ll know what I m talking about if you have ever switched from using a hard drive to an SSD Hard drives which store the data on mechanical spinning disks are great at storing a large amount of data since they are incredibly cheap when it comes to “cost per GB However having mechanical parts just isn t as fast as something without any moving parts like an SSD which stores its data on flash memory SSDs are much faster but as you may already have guessed also more expensive Over the years many web hosts have started offering plans with SSD hosting to make their services even faster But do you know what s even faster and way more expensive than SSD storage RAM storage That s right you can store your files in the RAM Benchmark has shown read speeds that were times faster than the speed of an SSD insane But no sane person would store websites in memory RAM would they Indeed they would Redis is an in memory data store that you can use as a database or a cache in front of your regular database The speed of Redis makes it ideal to cache database queries complex computations API calls and session state Now I know what you are thinking “I m just a simple developer trying to make my way in the universe I m not going to set up and maintain a separate database merely for caching I get that boy do I get that As the late Phil Karlton once stated “There are only two hard things in Computer Science cache invalidation and naming things If only there was a way to reap the fruits of in memory storage without the hassle of setup maintenance and more importantly cache invalidation You can see where this is going can t you Yes this is indeed shameless self promotion Don t worry I ll be sure to whip myself times afterward and put on the cone of shame for the rest of the day Enterspeed is a way to cache your data in a high speed in memory storage without the hassle of maintenance and cache invalidation We offload your data which you can combine with multiple data sources as well as transform in a Redis database What this does is essentially decouple your server as well as make your dynamic content static If you want to know more about how this all works head over to Enterspeed com to read more Well that s enough self promotion for now Let s look at the real world example for this Example RV with a car storageAfter thinking about it for many years you ve finally decided that you re going to see Europe You ll take some months of work rent an RV and visit all the places you ve dreamt about seeing An RV is perfect since you don t have to plan far ahead and can stay at each place for as long as you like One problem though While an RV is great for many things it isn t exactly an easy or fast vehicle to operate especially not on those tiny European streets You ll need something else for those small sightseeing tours Therefore you decide to add a car to your travel plans What solves this problem is an RV with built in car storage That way you can use your RV to travel from location to location and the car to go sightseeing within the location Image source If you re not Scrooge McDuck this could also simply be a bike or a scooter placed on the back of the bus but how cool is a freaking built in car garage Now before moving on to the “how to of the article let s look at some of the different types of web caching Web caching typesThere are several types of caching Some of the most used in web caching includes Client side caching A cache that is stored on the user s computer Browser caching A cache that is stored on the user s computer Server side caching A cache that is stored on the server CDN caching A cache that is stored across multiple CDN servers Reverse proxy caching A cache stored on a reverse proxy server Now you re properly thinking “Wait isn t client side caching and browser caching the same thing Not exactly They re similar in the way they store their data on the client but they re not the same thing To add to the confusion the way client side caching can be implemented is by using the browser s storage APIs However what differentiates them isn t how they store data but rather what types of data they store Client side caching is used to store responses from the server e g API requests which then reduces the number of requests that need to be made to the server Browse caching on the other hand stores static resources like images videos fonts stylesheets HTML files JavaScript files etc Both client side caching and browser caching are controlled by the user s browser The developer can control the cache headers for instance when the cache should be invalidated but it is ultimately up to the web browser to interpret and enforce them This brings us to Server side caching which stores the cache on…you guessed it the server Here the developer is in full control There are several types of server side caching some of those are Page caching Stores all the HTML of a page so the server doesn t have to generate it dynamically as explained in the “Making dynamic content static example Database caching Stores data that are frequently used in the database As explained in the “Moving the data to faster storage example Object caching Stores complex data structures or objects which reduces the number of database queries needed Also explained in the “Moving the data to faster storage example The next type of caching is CDN caching which we explained in the “Moving the content closer to the user example so we won t dive too much into that Finally we have reverse proxy caching A reverse proxy cache also known as a reverse HTTP cache is also a type of server side cache It sits in front of the server s and acts as a buffer between the client and the server When a request arrives it s forwarded to the server by the reverse proxy which then caches the response Thus future requests can be served from the cache instead of hitting the server A reverse proxy cache is therefore a great way to improve not only the performance of a website but also its scalability a reverse proxy cache is also able to work as a load balancer Before moving on to some of the ways you can implement cache on your website we need to look at two more types of cache private and public cache Private caching is a cache that can only be accessed by a specific user or user group It can be stored both client side and server side Some examples of things that can be stored in a private cache are User preferences Preferred language dark mode etc Personal data Name e mail address etc Private messagesPublic caching on the other hand is accessible to all users and is often stored on the server Some examples of things that are stored in a public cache are Commonly accessed resources Images videos product catalogues etc Public content articles blog posts etc Now that s all set it s time to move on to how you can use cache on your website using some “easy wins Using cache on your websiteDesigning and setting up a caching strategy can be difficult There are several ways to tackle cache and it all depends on how your setup looks and what your needs are Installing a caching pluginIf you re using a CMS like WordPress one of the quickest ways to start utilising cache is by installing a cache plugin One of the most beloved WordPress caching plugins is WP Rocket They ve managed to take something complex and make it extremely easy yet still powerful and configurable They have also made it easy to integrate with a CDN in just a few clicks Setting up a CDNImplementing a CDN is an extremely easy way to implement caching on your website If your site is built on the Jamstack principles you are probably already using it via a provider like Netlify Vercel Cloudflare Pages etc If not then it s as simple as setting up an account at a CDN provider and updating your nameservers Cloudflare offers a generous free plan and is really simple to set up You can read more about the setup here Implementing ISR Incremental Static Regeneration It s no secret that I m a big fan of Next js and its many fantastic features One of the features I adore is their Incremental Static Regeneration When rendering a page the choice is usually between SSR Server side Rendering or SSG Static Site Generation Due to the risk of poor SEO and slow initial load CSR Client side Rendering isn t often used on “regular websites non app websites SSR is great since it makes your pages dynamic but can be slow since it must wait for the server each time SSG is great since it s super fast but isn t easy to update since you will have to do a deployment each time you want to change something Well ISR completely changed the game Like a peanut butter and jelly sandwich it took two great things and combined them making something even better It combined the power of SSR with the power of SSG ISR caches each page individually When a user visits the page it will check if there is new content available If there is it will start regenerating the page and once it s done invalidate the cache and show the updated page for the next visitor You can read more about Next js ISR here Caching API responsesIf you are fetching data client side e g showing your visitors data from the Star Wars API you should cache these responses If the user has already made a request to see all the starships in Star Wars there s no reason to make an identical request if the user wants to see it again Instead the response should be cached You can implement this yourself for instance by using a state management solution or something as simple as the State hook in React You can also use data fetching packages with built in caching management for instance TanStack Query SWR etc I hope you enjoyed this article about caching You are now free to play all the “Chrome Dino that you wish The “Chrome Dino game is shown in Chrome when you are offline If you want to make your website app work offline making it a PWA one of the ways you can store data is by using cache You can read more about “offline data here |
2023-01-06 10:39:59 |
海外TECH |
DEV Community |
ChatGPT contributing to open-source project in action |
https://dev.to/mohsenkamrani/chatgpt-contributing-toopen-source-project-in-action-1leb
|
ChatGPT contributing to open source project in actionEveryone is using ChatGPT and let me do my fair share too I ve been working on implementing the animations feature in DoTenX and after building the foundations now it s time to add around different animations See how I use ChatGPT to help me in this PR This PR will have a ChatGPT tagYou can also find the repository here |
2023-01-06 10:02:06 |
海外TECH |
Engadget |
Delta will offer free WiFi on domestic flights starting February 1st |
https://www.engadget.com/delta-is-bringing-free-wi-fi-to-domestic-flights-starting-on-february-1st-2023-100521749.html?src=rss
|
Delta will offer free WiFi on domestic flights starting February stDelta is introducing free WiFi on around percent of its domestic US flights starting on February st confirming rumors from late last year The service available through a T Mobile sponsorship will come to planes by the end of the year and on regional and international aircraft by the end of quot It s going to be free It s going to be fast And it s going to be available to everyone quot said Delta CEO Ed Bastian at CES Travelers will need to use their Delta SkyMiles information to log in for access but getting an account is free The company announced last year that it would be upgrading more planes using Viasat as a provider It has been charging a flat fee for WiFi to date nbsp Apart from any profit motive airlines have been slow to introduce free WiFi over concerns that the systems wouldn t be fast enough to accommodate hundreds of people at once Delta has been working on the system since with the eventual goal to offer free WiFi nbsp quot We didn t just want free Wi Fi to offer base level service we wanted it to be transformative for the entire onboard experience quot he said quot It is imperative all customers onboard can enjoy their favorite content just as they would at home and we ve put this system through meticulous tests to make that possible quot Jetblue also offers free WiFi via corporate sponsorship but Southwest United American and other airlines charge fees usually in the to range American has recently been trialing free WiFi for certain customers nbsp Delta also announced that it will unveil new in flight entertainment systems starting this summer with user preferences traveling from quot flight to flight even where you left off on a movie quot according to the press release nbsp |
2023-01-06 10:05:21 |
海外ニュース |
Japan Times latest articles |
Shohei Ohtani among first 12 named to Japan’s roster for World Baseball Classic |
https://www.japantimes.co.jp/sports/2023/01/06/baseball/ohtani-wbc-announce/
|
Shohei Ohtani among first named to Japan s roster for World Baseball ClassicOhtani the American League MVP and the runner up in was one of three MLB players in Japan s initial roster announcement |
2023-01-06 19:03:12 |
ニュース |
BBC News - Home |
Harry's talk of Taliban kills in Afghanistan tarnishes reputation - ex-commander |
https://www.bbc.co.uk/news/uk-64185176?at_medium=RSS&at_campaign=KARANGA
|
chess |
2023-01-06 10:40:43 |
ニュース |
BBC News - Home |
Gianluca Vialli: Former Chelsea, Juventus and Italy striker dies aged 58 |
https://www.bbc.co.uk/sport/football/64039302?at_medium=RSS&at_campaign=KARANGA
|
gianluca |
2023-01-06 10:50:50 |
ニュース |
BBC News - Home |
Gridlock as record number of ambulances queue at A&E |
https://www.bbc.co.uk/news/health-64157588?at_medium=RSS&at_campaign=KARANGA
|
admissions |
2023-01-06 10:30:57 |
ニュース |
BBC News - Home |
House prices drop for fourth month in a row |
https://www.bbc.co.uk/news/business-64183817?at_medium=RSS&at_campaign=KARANGA
|
halifax |
2023-01-06 10:26:45 |
ニュース |
BBC News - Home |
Edwin Chiloba: LGBTQ activist found dead in Kenya |
https://www.bbc.co.uk/news/world-africa-64184372?at_medium=RSS&at_campaign=KARANGA
|
designer |
2023-01-06 10:39:29 |
ニュース |
BBC News - Home |
Jack Butland: Man Utd sign Crystal Palace goalkeeper on loan |
https://www.bbc.co.uk/sport/football/64186191?at_medium=RSS&at_campaign=KARANGA
|
butland |
2023-01-06 10:25:37 |
ニュース |
BBC News - Home |
Prince Harry first heard of Queen Elizabeth's death from BBC website |
https://www.bbc.co.uk/news/uk-64185446?at_medium=RSS&at_campaign=KARANGA
|
queen |
2023-01-06 10:15:00 |
サブカルネタ |
ラーブロ |
旭川ラーメン 特一番 動物園通り店 醤油篇 |
http://ra-blog.net/modules/rssc/single_feed.php?fid=206558
|
今シーズン |
2023-01-06 10:26:48 |
北海道 |
北海道新聞 |
22年の道内特殊詐欺被害12億4千万円 前年比2倍、過去2番目に |
https://www.hokkaido-np.co.jp/article/784293/
|
特殊詐欺 |
2023-01-06 19:39:00 |
北海道 |
北海道新聞 |
東洲館ゆかりの作品展示 7日から深川、年賀状展も |
https://www.hokkaido-np.co.jp/article/784292/
|
行事 |
2023-01-06 19:39:00 |
北海道 |
北海道新聞 |
「としょかん福袋」、中身は? 岩見沢の4館が貸し出し |
https://www.hokkaido-np.co.jp/article/784291/
|
貸し出し |
2023-01-06 19:38:00 |
北海道 |
北海道新聞 |
ホッケーW杯、目標「ベスト8」 男子日本代表が抱負 |
https://www.hokkaido-np.co.jp/article/784277/
|
日本代表 |
2023-01-06 19:17:49 |
北海道 |
北海道新聞 |
J1鹿島、今季初練習で始動 岩政監督、優勝へ意気込み |
https://www.hokkaido-np.co.jp/article/784248/
|
意気込み |
2023-01-06 19:16:50 |
北海道 |
北海道新聞 |
北見市留辺蘂町で住宅火災、1人死亡 |
https://www.hokkaido-np.co.jp/article/784286/
|
北見市留辺蘂町旭東 |
2023-01-06 19:31:18 |
北海道 |
北海道新聞 |
インフル30都道府県で流行 患者数の目安超える |
https://www.hokkaido-np.co.jp/article/784289/
|
厚生労働省 |
2023-01-06 19:29:00 |
北海道 |
北海道新聞 |
中国春節、21億人大移動 コロナ対策緩和で倍増 |
https://www.hokkaido-np.co.jp/article/784287/
|
中国政府 |
2023-01-06 19:28:00 |
北海道 |
北海道新聞 |
回答精査し月内に3回目の調査へ 文化庁、着手方向で検討 |
https://www.hokkaido-np.co.jp/article/784285/
|
世界平和統一家庭連合 |
2023-01-06 19:24:00 |
北海道 |
北海道新聞 |
海藻のCO2吸収量を本格調査へ 政府、温暖化対策に反映 |
https://www.hokkaido-np.co.jp/article/784284/
|
二酸化炭素 |
2023-01-06 19:21:00 |
北海道 |
北海道新聞 |
<2023この人に聞く>3 王子製紙苫小牧工場・渡部司工場長(56) 生産体制 時代に合わせ |
https://www.hokkaido-np.co.jp/article/784283/
|
王子製紙苫小牧工場 |
2023-01-06 19:17:00 |
北海道 |
北海道新聞 |
伊達市が公式ライン開設 災害情報発信、いじめ相談も |
https://www.hokkaido-np.co.jp/article/784274/
|
情報発信 |
2023-01-06 19:16:05 |
北海道 |
北海道新聞 |
防火、防災へ決意新た 日高管内、3年ぶり出初め式 |
https://www.hokkaido-np.co.jp/article/784282/
|
出初め式 |
2023-01-06 19:12:00 |
北海道 |
北海道新聞 |
JR北海道 1月7日夜から計画運休 1、2月の毎週土日 |
https://www.hokkaido-np.co.jp/article/784279/
|
計画運休 |
2023-01-06 19:11:30 |
北海道 |
北海道新聞 |
室工大生生活・意識調査㊤ 奨学金44%が利用 道内就職希望が最多42% |
https://www.hokkaido-np.co.jp/article/784276/
|
室蘭工業大 |
2023-01-06 19:01:00 |
北海道 |
北海道新聞 |
農林水産物・食品の輸出、最高に 22年、1~11月で既に更新 |
https://www.hokkaido-np.co.jp/article/784275/
|
農林水産省 |
2023-01-06 19:01:00 |
ニュース |
Newsweek |
比マルコス、初の中国訪問 合意は経済優先、南シナ海問題は「言いたいことも言えず」 |
https://www.newsweekjapan.jp/stories/world/2023/01/post-100518.php
|
インフラ整備でフィリピン事業者排除の懸念もこうした批判や注文がある一方、今回の中国側との間でフィリピン産のドリアンやココナツ、バナナなど果物億万ドルに上る輸出で合意したことは「中国との間の貿易不均衡のバランスをとることができる」マルコス大統領として大きな成果としている。 |
2023-01-06 19:22:39 |
IT |
週刊アスキー |
サンワダイレクト、1台につき重さ80kgまで載せられる平台車「100-CT004」を発売 |
https://weekly.ascii.jp/elem/000/004/119/4119722/
|
重さ |
2023-01-06 19:45:00 |
IT |
週刊アスキー |
『牧場物語 Welcome!ワンダフルライフ』声優の山下大輝さんによる先行プレイ動画を公開! |
https://weekly.ascii.jp/elem/000/004/119/4119723/
|
nintendo |
2023-01-06 19:45:00 |
IT |
週刊アスキー |
リンクスインターナショナル、強化ガラス仕様のE-ATX対応ミドルタワーPCケース「Antec P20C」を発売 |
https://weekly.ascii.jp/elem/000/004/119/4119721/
|
antecpc |
2023-01-06 19:30:00 |
IT |
週刊アスキー |
「珈琲抗争」終結へ 東京リベンジャーズ×ダイドー新TVCM「止めろ!珈琲抗争!」1月9日より全国放映 |
https://weekly.ascii.jp/elem/000/004/119/4119724/
|
続編 |
2023-01-06 19:30:00 |
コメント
コメントを投稿