js |
JavaScriptタグが付けられた新着投稿 - Qiita |
Jest でタイムゾーン考慮 |
https://qiita.com/anko-taro/items/3efe669b1ca57d1b450d
|
|
2022-01-24 21:51:07 |
js |
JavaScriptタグが付けられた新着投稿 - Qiita |
javascriptで既存の同期関数を非同期で実行させたい |
https://qiita.com/sa9ra4ma/items/34b65d6360b0b235873f
|
javascriptで既存の同期関数を非同期で実行させたいやりたいこと関数A重い↓関数B軽い同期処理を上から順に実行していたが、AとBに順序性はなくAは非同期でもいいと気づいた。 |
2022-01-24 21:25:32 |
Ruby |
Rubyタグが付けられた新着投稿 - Qiita |
【Ruby】配列に格納された数値の合計値を算出 |
https://qiita.com/itosyo4126/items/d940843ad9edf467d55d
|
numのときはcountとなるので、uniqnums配列に値は追加されません。 |
2022-01-24 21:06:39 |
AWS |
AWSタグが付けられた新着投稿 - Qiita |
AWS CDK Intro WorkshopをCloud9で途中までやってみた |
https://qiita.com/a_b_/items/176c472b3859f4cd56d1
|
サンプル未使用で始めるとどうなるのかテキストではcdkinitsampleapplanguagetypescriptと、sampleappで始めているため、最初からある程度のファイルが配置されています。 |
2022-01-24 21:58:00 |
golang |
Goタグが付けられた新着投稿 - Qiita |
Go1.18+のジェネリクスで補償トランザクションをシンプルに書く |
https://qiita.com/Syuparn/items/9042b1c74f2a74195540
|
Goのジェネリクスで補償トランザクションをシンプルに書くTLDR補償トランザクションを簡単に書けるライブラリを作ったよ入れ子のiferrnilとおさらばサービスを遅延評価することでエラーハンドリングを隠蔽はじめにマイクロサービスで処理が失敗した場合、ロールバック処理としてよく補償トランザクションが用いられます。 |
2022-01-24 21:25:21 |
Azure |
Azureタグが付けられた新着投稿 - Qiita |
Azure CLI を使用して VM を管理してみました(stop/start) |
https://qiita.com/turupon/items/13ce95534adb89f60e1f
|
AzureCLIを使用してVMを管理してみましたstopstart概要Azureで動いているIaaSの仮想マシンの停止等をいちいちAzurePortalに入らずに、サクッとAzureCLIで実行するための手順となります。 |
2022-01-24 21:33:32 |
技術ブログ |
Developers.IO |
Auth0をRails6に実装してみた |
https://dev.classmethod.jp/articles/try_out_auth0_by_using_rails6/
|
rails |
2022-01-24 12:02:06 |
海外TECH |
MakeUseOf |
Which Smartwatches Will Get the Wear OS 3 Update? |
https://www.makeuseof.com/smartwatch-wear-os-3-update/
|
smartwatches |
2022-01-24 12:45:12 |
海外TECH |
MakeUseOf |
What Is RAID and How Does It Work? |
https://www.makeuseof.com/tag/raid-storage-home-pc-technology-explained/
|
handy |
2022-01-24 12:35:11 |
海外TECH |
MakeUseOf |
How to Set up a Wireless Extender and Extend Your Wi-Fi Range |
https://www.makeuseof.com/extend-wifi-range/
|
extender |
2022-01-24 12:30:42 |
海外TECH |
MakeUseOf |
Feeling Down? The Top 5 Good News Websites to Cheer You Up |
https://www.makeuseof.com/tag/need-some-good-news-for-a-change-top-5-good-news-web-sites/
|
positive |
2022-01-24 12:00:43 |
海外TECH |
DEV Community |
APACHE APISIX: As an API Gateway in Microservices |
https://dev.to/dulemart/apache-apisix-as-an-api-gateway-in-microservices-4c4b
|
APACHE APISIX As an API Gateway in Microservices Table of ContentMicroservices and Its Impact API Gateway How API Gateway Works Integration of APISIX Conclusion IntroductionWhen building your application as a set of microservices you d decide how your application s clients will interact with the microservices With a monolithic application there is just one set of touchpoints of communication between an API and a server In a microservices architecture however each microservice exposes a set of what are typically fine grained endpoints In this article you ll walk through how microservices impacts client to application communication and the integration of an API Gateway called APISIX Microservices and Its ImpactDesigning an application that is multi lingual and easily scalable easy to maintain and deploy while minimizing failure microservices are used to achieve such results Microservice is the process of designing and developing separated components that come together to form a more functional system Tasks are separately handled in microservice applications and its communication between clients and servers are handled using lightweight mechanisms The communication between these services occurs through protocols such as HTTP AMQP and TCP HTTP REST and asynchronous messaging are the most widely used protocols You can design your application as a collection of loosely coupled services that are connected together via an API Gateway What is API GatewayThe word API is an acronym for Application Programming Interface as you may already know and it is a means of communication between clients and server API gateway is a tool that manages clients and collection of backend services it acts as an overturned proxy to accept all API calls made by the clients It accumulates all requests made and provides the accurate result needed an API gateway is one part of the API management system that handles all requests processed and gives back it s result ensuring they continuously meet high performance and security standards Enabling an API Gateway you can create any type of APIs be it RESTful APIs and WebSocket APIs that foster real time communication between applications API Gateway supports containerized and serverless workloads as well as web applications How API Gateway Works “Cloud native architectures bring a whole new level of challenges as does traffic from websites mobile and IoT applications Based on the adaptation of architecture like microservice the APISIX Gateway was designed to handle more traffic from different sources Integration of APISIXApache APISIX is a dynamic real time high performance API gateway that provides rich traffic management features such as load balancing dynamic upstream canary release service meltdown authentication observability and other rich traffic management features With the adoption of microservices over monolithic applications development Apache APISIX is providing a more maintainable and scalable gateway system For developers that are yet to be familiar with Apache APISIX let me create this impression APISIX is a dynamic version of Nginx Using Lua to scale the development of plugins that has innovated the approach of traffic management Apache APISIX don t relate with database it handles traffic from L and L Network services playing the role of load balancing over these network protocols Apache APISIX is more like an all in one solution for L traffic There are other Open Source projects that are designed and developed to handle similar issues related with L traffic Nginx Envoy Kubernetes Ks ingressive controller and Service Mesh Nginx is used in handling the movement of data packets that are initially entering a network from the clients and while traffic within the data center i e server to server is also handled by Envoy APISIX is one technology that handles both clients and server traffic APISIX SOLUTION USED CASEBanks uses Java Spring Cloud gateway to manage their data processes and openID connects plugins for Apache APISIX to configure Okta authentication “Unlike the traditional authentication model the centralized authentication model takes user authentication out of the application service Take Apache APISIX as an example the centralized authentication process is shown in the following diagram first the user initiates a request and then the front gateway is responsible for the user authentication process interfacing with the identity provider and sending the identity provider an authorization request to the identity provider The identity provider returns user info After the gateway identifies the user it forwards the user identity information to the back end application in the form of a request header ConclusionEnterprises worldwide have used Apache APISIX to handle business critical traffic covering finance Internet manufacturing retail carriers and more such as NASA the EU s Digital Factory China Airlines China Mobile Tencent Huawei Sina Weibo NetEase Ke Taikang Nayuki and more You can get started here |
2022-01-24 12:36:38 |
海外TECH |
DEV Community |
Amazon Elastic Block Storage (EBS) |
https://dev.to/atm_06/amazon-elastic-block-storage-ebs-4m5a
|
Amazon Elastic Block Storage EBS What is Instance storage Block level storage volumes behave like physical hard drives An instance store provides temporary block level storage for an Amazon EC instance An instance store is disk storage that is physically attached to the host computer for an EC instance and therefore has the same lifespan as the instance When the instance is terminated you lose any data in the instance store Let s create two ec instances such as Ticked server and Unticked server based upon their delete on termination protection for instance storage is kept on or off But if we terminate instances we are likely to lose our instance volumes Now let s terminate both the instances After termination we can see that the volume for unticked server remains as such Thus even on termination we can have our data secured if we untick the delete on termination section Amazon Elastic Block Store EBS EBS is a block storage system used to store persistent data Amazon EBS is suitable for EC instances by providing highly available block level storage volumes It has three types of volume i e General Purpose SSD Provisioned IOPS SSD and Magnetic These three volume types differ in performance characteristics and cost EBS General Purpose SSD This volume type is suitable for small and medium workloads like Root disk EC volumes small and medium database workloads frequently logs accessing workloads etc By default SSD supports IOPS Input Output Operations per Second GB means GB volume will give IOPS and GB volume will give IOPS Its storage capacity of one volume ranges from GB to TB The cost of one volume is per GB for one month Provisioned IOPS SSD This volume type is suitable for the most demanding I O intensive transactional workloads By default IOPS SSD supports IOPS GB means GB volume will give IOPS Its storage capacity of one volume ranges from GB to TB The cost of one volume is per GB for one month forprovisioned storage EBS Magnetic VolumesIt was formerly known as standard volumes This volume type is suitable for ideal workloads like infrequently accessing data i e data backups for recovery logs storage Its storage capacity of one volume ranges from GB to TB The cost of one volume is per GB for one month for provisioned storage and per million I O requests Amazon EBS BenefitsReliable and secure storage Each of the EBS volume will automatically respond to its Availability Zone to protect from component failure Secure Amazon s flexible access control policies allows to specify who can access which EBS volumes Higher performance Amazon EBS uses SSD technology to deliver data results with consistent I O performance of application Easy data backup Data backup can be saved by taking point in time snapshots of Amazon EBS volumes Adding an EBS volume to an instanceLet s create an instance Test and connect it via SSH using Xshell In Xshell type sudo su to login using root user Now to add extra volume to the instance create an EBS volume of size say GB and the volume should be created in the same region as that of the instance Now attach the extra volume to your instance Test If you type lsblk on Xshell you can see your GB vol is addaed to your instance but it s not mounted yet To mount the Extra vol first make a directory in the root then change path to that directory and mount your volume there In order to mount your EBS volume first format the ddisk india using command mkfs ext dev xvdf After formatting the disk mount your vol using the command mount dev xvdf india You can list the volumes attached to your disk by running df h in Xshell Now create files inside your folder using command touch abc Now let s shutdown and restart the instance we can observe that the particular volume that we mounted GB vol will be unmounted from the disk If we again mount the volume to our disk we can t see our files listed Hence In order to make the changes permanent we ll use Vi editor in fstab It s for permanently mounting the volume to the disk To use the vi editor use the command vi etc fstab Enter i to insert In the editor write dev xvdf india ext defaults Then press esc and wq to save the file now if we again restart our instance we can see our files listed in india folder as we made the changes permanent |
2022-01-24 12:19:50 |
海外TECH |
DEV Community |
Open sourcing a privacy-friendly and customizable Disqus alternate 🚀🔥 |
https://dev.to/devrsi0n/open-sourcing-a-privacy-friendly-and-customizable-disqus-alternate-mp9
|
Open sourcing a privacy friendly and customizable Disqus alternate We re so excited to announce that Chirpy has been open sourced now TL DR Chirpy is a privacy friendly and customizable Disqus alternate With Chirpy you can reach your audience quickly and build a better community Check out our GitHub repo to learn how it works Preview The comment widget supports Rich Text Editing and Markdown Shortcuts Theme editor Widget analytics Motivation You may wonder why we build a Disqus alternate in Well here are the answers Disqus shared the personal data of tens of millions of users without them or the websites knowing about it And Disqus facing M fine in Norway for tracking users without consentDisqus also encumbers your website s performance Disqus makes HTTP Requests per load You can find a ton of privacy and performance related issues of Disqus if you google it Solution Privacy To avoid such privacy issues we chose our business model with privacy friendly in mind First we ll be honest money is necessary for keeping the project development going A price is always exacted for what free services bestow You see Ads or you lose privacy We pick a transparent pricing model ーYou pay and you get the service Nothing more We also decided our tech stacks carefully and we prefer to use self hosted versions of third party services For example for analytics we self hosted a plausible instance to avoid sharing your data with third party companies Plausible is an open source and privacy friendly software as well we have the same privacy goal Performance For performance issues we built our services with modern technologies e g Next js We generate comment pages during the building process so user will see the UI immediately instead of waiting for a bunch of JavaScript amp CSS and API calls to render the UI The performance boost is even more noticeable on slow mobile devices Tech stacks We choose modern tech stacks with privacy and performance in mind Language TypeScriptFull stack framework Next jsData server GraphQL HasuraAPI client urqlAuthentication next authStyle TailwindCSS twin macroTesting Cypress JestAnalytics Plausible Current state Currently we re in the public beta phase all basic features should work e g Social loginCreate a project and integrate a widget into your websiteComment with Rich Text Formatting and markdown shortcutsComment moderationWidget customizationWidget analyticsMore to come Please note you may lose your data if there are some hard conflicts during our database migration but that should be rare Community The community is at the core of how we build chirpy Community members are at best a channel for evangelism We want to empower you to participate directly in the creation of Chirpy ecosystems Chirpy only get more accomplished and pleasing as the surrounding communities grow enabling a broader range of audiences and use cases Chirpy is available on GitHub it has been released under the Apache License that lets you inspect modify and re purpose it as you would like You can also check our GitHub repo for roadmaps or discussions Of course contributions are welcome Conclusion Please feel free to try our service We re working hard to add more features to make it easier to use stay tuned |
2022-01-24 12:04:22 |
Apple |
AppleInsider - Frontpage News |
Redesigned Mac mini with M1 Pro & M1 Max set for spring Apple event |
https://appleinsider.com/articles/22/01/24/redesigned-mac-mini-with-m1-pro-m1-max-set-for-spring-apple-event?utm_medium=rss
|
Redesigned Mac mini with M Pro amp M Max set for spring Apple eventApple s first special event of is rumored to have an upgraded Mac mini with M Pro and M Max chip options a leaker claims Apple is anticipated to launch a number of new products at a spring special event with strong candidates including an iPhone SE refresh with G and an iPad Air upgrade Among the list of new arrivals could be the long rumored redesigned Mac mini According to reliable leaker Dylandkt on Twitter Apple s spring event will feature the Mac mini with M Pro and M Max If true this will offer consumers a pair of faster processor options up from the M included in the initial release Read more |
2022-01-24 12:44:36 |
Apple |
AppleInsider - Frontpage News |
German firms claim Google Chrome blocking cookies is illegal |
https://appleinsider.com/articles/22/01/24/german-firms-claim-google-chrome-blocking-cookies-is-illegal?utm_medium=rss
|
German firms claim Google Chrome blocking cookies is illegalGoogle Chrome s much delayed blocking of third party cookies is now under fire from German publishers and advertisers who say it will break EU laws In Apple s Safari began blocking third party cookies beating Google s plan for Chrome by two years Then Google postponed the move until saying it s become clear that more time is needed across the ecosystem to get this right Now according to the Financial Times hundreds of publishers advertisers and media groups in Germany have asked the EU competition chief Margrethe Vestager to intervene The country s Axel Springer publisher of Politico has lead a page complaint to the EU seen by the publication Read more |
2022-01-24 12:11:00 |
海外TECH |
Engadget |
The Morning After: The Steam Deck will support Epic's anti-cheat software |
https://www.engadget.com/the-morning-after-the-steam-deck-will-support-epics-anti-cheat-software-121518104.html?src=rss
|
The Morning After The Steam Deck will support Epic x s anti cheat softwareCheating is rife across many gaming platforms but the biggest cheaters are usually found around PC gaming ーdespite games companies banning thousands if not hundreds of thousands of the scamps Valve s Steam Deck its upcoming handheld should make it harder to bend the rules SteamThe company announced titles that depend on Epic s Easy Anti Cheat EAC software can now run on the portable Valve said adding Steam Deck support to titles that use EAC is “a simple process Developers won t need to update their SDK version or make other time consuming changes It joins BattlEye support meaning as Valve notes “The two largest anti cheat services are now easily supported on Proton and Steam Deck However it s still unclear whether some of the most popular multiplayer games on Steam that use BattlEye and EAC including titles like Rainbow Six Siege and PUBG will work on day one ーMat SmithAnother TV show is making PR problems for PelotonMust be a hard workout BillionsPeloton didn t need more bad news The premiere episode of Billions season six includes a scene that like the Sex and the City follow up And Just Like That points a finger at Peloton s Bike for causing a heart attack for Mike quot Wags quot Wagner played by David Costabile Unlike And Just Like That however Wagner survives ーhe even references the AJLT scene telling staff that he s quot not going out quot like that character Continue reading Latest Galaxy S leak includes possible pricing for EuropeAnd less memory for the highest specced modelEvan BlassAccording to WinFuture s Roland Quandt European pricing for the Galaxy S series will start at € roughly with the base models of the Galaxy S Plus and Ultra slated to cost € and € If accurate this should mean the Samsung s Galaxy S lineup will cost just as much as it did in In Europe at least the Galaxy S Ultra will ship with GB of RAM while the S Ultra packs GB of RAM And if you thought that was pricey a separate leak from Android Police earlier this month suggested the company could charge an extra stateside for every model in the Galaxy S lineup We should know more very soon Continue reading Apple pulls verification requirement for US education shoppersThe move may be temporary Earlier this week Apple began requiring students and teachers in the US to verify their identity through authentication service UNiDAYS before they could take advantage of the company s discounted education pricing However that s since disappeared You can once again buy discounted Macs iPads and other Apple products from the company s US education website without needing to verify you re currently a student or a teacher Continue reading Google claims court ruling would force it to censor the internetThe company appealed to Australia s High Court to overturn a defamation case Google has asked the High Court of Australia to overturn a ruling it warns could have a “devastating effect on the wider internet Google claims it will be forced to “act as censor if the country s highest court doesn t overturn a decision that awarded a lawyer in defamation damages for an article the company had linked to through its search engine In George Defteros a Victoria state lawyer contacted Google to ask the company to remove a article from The Age The piece featured reporting on murder charges prosecutors filed against Defteros related to the death of three men Those charges were later dropped in The company refused to remove the article from its search results as it viewed the publication as a reputable source Continue reading nbsp The biggest news stories you might have missedSony will release a movie made using the PlayStation game builder Dreams We Met in Virtual Reality finds love in the metaversePlatinumGames long awaited shoot em up arrives February ndWhat we bought A rice cooker whose greatest trick isn t actually riceThe latest Star Trek Picard season two trailer teases a time traveling adventure |
2022-01-24 12:15:18 |
海外TECH |
CodeProject Latest Articles |
Query Assistant |
https://www.codeproject.com/Tips/799473/Query-Assistant
|
assistantquery |
2022-01-24 12:32:00 |
海外TECH |
CodeProject Latest Articles |
VB.NET Calculating Linear Regression Slope and Intercept |
https://www.codeproject.com/Tips/5323326/VB-NET-Calculating-Linear-Regression-Slope-and-Int
|
intercept |
2022-01-24 12:10:00 |
金融 |
金融庁ホームページ |
入札公告等を更新しました。 |
https://www.fsa.go.jp/choutatu/choutatu_j/nyusatu_menu.html
|
公告 |
2022-01-24 13:00:00 |
ニュース |
BBC News - Home |
Nusrat Ghani: PM orders Cabinet Office to investigate 'Muslimness' claim |
https://www.bbc.co.uk/news/uk-politics-60108377?at_medium=RSS&at_campaign=KARANGA
|
ghani |
2022-01-24 12:47:49 |
ニュース |
BBC News - Home |
Covid travel tests to be axed in England for double vaccinated |
https://www.bbc.co.uk/news/business-60109945?at_medium=RSS&at_campaign=KARANGA
|
double |
2022-01-24 12:40:36 |
ニュース |
BBC News - Home |
Russian invasion of Ukraine would be disastrous - PM |
https://www.bbc.co.uk/news/uk-60113271?at_medium=RSS&at_campaign=KARANGA
|
russia |
2022-01-24 12:35:48 |
ニュース |
BBC News - Home |
Julian Assange can ask Supreme Court to consider extradition case |
https://www.bbc.co.uk/news/uk-60108379?at_medium=RSS&at_campaign=KARANGA
|
assange |
2022-01-24 12:26:37 |
ニュース |
BBC News - Home |
Burkina Faso President Kaboré reportedly detained by military |
https://www.bbc.co.uk/news/world-africa-60109234?at_medium=RSS&at_campaign=KARANGA
|
arrest |
2022-01-24 12:32:17 |
ニュース |
BBC News - Home |
Mohamud Hassan and Mouayed Bashir: Families want answers |
https://www.bbc.co.uk/news/uk-wales-60066630?at_medium=RSS&at_campaign=KARANGA
|
bashir |
2022-01-24 12:42:45 |
ニュース |
BBC News - Home |
Smeding selected as Team GB's first female long track speed skater for 42 years |
https://www.bbc.co.uk/sport/winter-olympics/60110909?at_medium=RSS&at_campaign=KARANGA
|
beijing |
2022-01-24 12:06:43 |
北海道 |
北海道新聞 |
テレ東のドラマで11人感染 佐々木希さんも、容体は安定 |
https://www.hokkaido-np.co.jp/article/637282/
|
佐々木希 |
2022-01-24 21:19:11 |
北海道 |
北海道新聞 |
まん延防止、18道府県追加へ 政府方針、27日から2月20日まで |
https://www.hokkaido-np.co.jp/article/637284/
|
岸田文雄 |
2022-01-24 21:19:04 |
北海道 |
北海道新聞 |
トヨタ1月減産6・5万台に拡大 国内、2月は稼働停止を縮小 |
https://www.hokkaido-np.co.jp/article/637298/
|
新型コロナウイルス |
2022-01-24 21:16:00 |
北海道 |
北海道新聞 |
日本ハム、先乗り組が練習スタート 名護キャンプ |
https://www.hokkaido-np.co.jp/article/637297/
|
日本ハム |
2022-01-24 21:15:00 |
北海道 |
北海道新聞 |
人気純米酒アルミ缶に 幌延 「雄信内」「下沼」…秘境駅名明記、飲んで旅気分 |
https://www.hokkaido-np.co.jp/article/637294/
|
宗谷管内 |
2022-01-24 21:13:00 |
北海道 |
北海道新聞 |
北京五輪バイアスロン代表が会見 立崎「一番いい状態」 |
https://www.hokkaido-np.co.jp/article/637292/
|
北京五輪 |
2022-01-24 21:10:00 |
北海道 |
北海道新聞 |
苫小牧港の脱炭素化へ官民組織 23年計画策定へ |
https://www.hokkaido-np.co.jp/article/637291/
|
管理組合 |
2022-01-24 21:09:00 |
ビジネス |
東洋経済オンライン |
中国スマホ「フォルダブル」が続々登場の裏事情 市場が飽和するなかメーカーの「消耗戦」が過熱 | 「財新」中国Biz&Tech | 東洋経済オンライン |
https://toyokeizai.net/articles/-/503977?utm_source=rss&utm_medium=http&utm_campaign=link_back
|
biztech |
2022-01-24 21:30:00 |
コメント
コメントを投稿