投稿時間:2022-02-26 22:34:26 RSSフィード2022-02-26 22:00 分まとめ(33件)

カテゴリー等 サイト名等 記事タイトル・トレンドワード等 リンクURL 頻出ワード・要約等/検索ボリューム 登録日
TECH Engadget Japanese ウクライナ副首相、クックCEO宛の書簡でロシアでのアップル製品販売停止とApp Store遮断を要請 https://japanese.engadget.com/ukraine-asks-apple-to-stop-selling-its-products-and-app-store-in-russia-124531633.html appstore 2022-02-26 12:45:31
python Pythonタグが付けられた新着投稿 - Qiita Raspberry Piでインターホンの音を検知してLINEに通知する (3)検知基準を検討する https://qiita.com/nkgwwwww/items/96f664aad4eff5b6cd50 検出に使うデータ点を決める録音したデータが「ピーン」の音かどうかを判定するには、上記のピークの周波数を覚えておき、録音データがその周波数に十分な強度を持つかどうかを判定すれば良い。 2022-02-26 21:52:38
python Pythonタグが付けられた新着投稿 - Qiita 10進数浮動小数点 Decimal 型 ⟺ DPD (固定ビット長バイナリ)変換 https://qiita.com/ikiuo/items/0b0ccbea261e0f18cb0d 進数浮動小数点Decimal型⟺DPD固定ビット長バイナリ変換decimalモジュールのDecimal型をIEEEにあるdecimalN固定ビット長バイナリ形式に変換します。 2022-02-26 21:51:17
python Pythonタグが付けられた新着投稿 - Qiita リーダブルコード ざっくり解説 https://qiita.com/pig_buhi555/items/723b130418f1e1b0ddbe 汎用的なコードは関数でまとめた方がよい【ポイント】・テストしやすくなる・プロジェクトから独立したプログラムはUtilなどの名前で分けるとよい。 2022-02-26 21:40:54
python Pythonタグが付けられた新着投稿 - Qiita FastAPI * MySQL * DockerでCRUDを行うAPIをサクッと作ってみた(初学者向け) https://qiita.com/yota_dev/items/8309dd294975b15c22d5 本記事では、DBへ接続しSQL実行を行う処理とローカル環境での検証用にDBコンテナの構築をし、ローカルPC内で動作確認ができる状態までについて掲載する。 2022-02-26 21:37:25
python Pythonタグが付けられた新着投稿 - Qiita ptsファイルをpythonプロットしてみる https://qiita.com/hitorigoto/items/2bb3529dc7460c659aec 2022-02-26 21:23:49
Ruby Rubyタグが付けられた新着投稿 - Qiita 【rails】登録日の表示について https://qiita.com/minoppp411/items/df8d11c060d131130f59 【rails】登録日の表示についてはじめに今回はdeviseというgemを使った環境だったのでcreatedat登録日というカラムが最初から入っていました。 2022-02-26 21:34:38
AWS AWSタグが付けられた新着投稿 - Qiita RDS Proxy を使って、AWS Lambda から接続してみた https://qiita.com/sugimount-a/items/7dc388c83bcbc3f6ffbd samdeploy動作確認無事にDeployが完了しました次のようにアクセスすると、正常にデータが返ってきています。 2022-02-26 21:38:12
AWS AWSタグが付けられた新着投稿 - Qiita AWSでのSaaS事例とか https://qiita.com/pioho07/items/0c451d6495b0f911bfcc AWSでのSaaS事例とかはじめにAWSでのSaaS事例を、AWSのサービスを使ったSaaS事例、パッケージをSaaS化した事例と、それに関連するAWSリファレンスを載せています。 2022-02-26 21:35:11
Docker dockerタグが付けられた新着投稿 - Qiita 【Tips】CodeBuildでPostgreSQLのコンテナを起動してテストする https://qiita.com/neruneruo/items/8b5c49574c8540724430 【Tips】CodeBuildでPostgreSQLのコンテナを起動してテストするはじめにCodeBuildでアプリケーションのCIをするために、実物のAuroraに接続するのが面倒だったのでPostgreSQLをローカルでコンテナ起動してそこにデータを投入してテストをしようとしたら意外と大変だったのでメモっておく。 2022-02-26 21:53:06
Docker dockerタグが付けられた新着投稿 - Qiita FastAPI * MySQL * DockerでCRUDを行うAPIをサクッと作ってみた(初学者向け) https://qiita.com/yota_dev/items/8309dd294975b15c22d5 本記事では、DBへ接続しSQL実行を行う処理とローカル環境での検証用にDBコンテナの構築をし、ローカルPC内で動作確認ができる状態までについて掲載する。 2022-02-26 21:37:25
Docker dockerタグが付けられた新着投稿 - Qiita 【rails】登録日の表示について https://qiita.com/minoppp411/items/df8d11c060d131130f59 【rails】登録日の表示についてはじめに今回はdeviseというgemを使った環境だったのでcreatedat登録日というカラムが最初から入っていました。 2022-02-26 21:34:38
Ruby Railsタグが付けられた新着投稿 - Qiita 【rails】登録日の表示について https://qiita.com/minoppp411/items/df8d11c060d131130f59 【rails】登録日の表示についてはじめに今回はdeviseというgemを使った環境だったのでcreatedat登録日というカラムが最初から入っていました。 2022-02-26 21:34:38
海外TECH Ars Technica Do birds have language? It depends on how you define it https://arstechnica.com/?p=1836678 human 2022-02-26 12:10:01
海外TECH MakeUseOf What Is Shopify, How Does It Work, and What Can You Sell With It? https://www.makeuseof.com/what-is-shopify-how-does-it-work/ shopify 2022-02-26 12:30:13
海外TECH DEV Community Free NFT Generator with metadata https://dev.to/kos94ok_43/free-nft-generator-with-metadata-1d8g Free NFT Generator with metadataHi everyone I built a to generate up to NFT collections with zero coding needed On the site you can configure the rarity of each image and metadataAll you need to do is Create layersDrag and drop imagesEdit MetadataClick generate layersnfts comLet me know what you think 2022-02-26 12:44:50
海外TECH DEV Community Implementing distributed tracing in a nodejs application https://dev.to/signoz/implementing-distributed-tracing-in-a-nodejs-application-5369 Implementing distributed tracing in a nodejs applicationThis article was originally posted on SigNoz blog and is written by Selvaganesh In this article we will implement distributed tracing for a nodejs application based on microservices architecture To implement distributed tracing we will be using open source solutions SigNoz and OpenTelemetry so you can easily follow the tutorial In modern microservices based applications it is difficult to understand how requests are performing across multiple services infrastructure and protocols As companies began moving to distributed systems they realized they needed a way to track requests in their entirety for debugging applications Distributed tracing is a technology that was born out of this need Let s have a brief overview of distributed tracing What is distributed tracing In a microservices architecture a user request travels through hundreds even thousands of services before serving the user what they need Engineering teams often responsible for maintaining single services have no visibility over how the system performs as a whole Distributed tracing gives insights into how a particular service is performing as part of the whole in a distributed software system It involves passing a trace context with each user request which is then passed across hosts services and protocols to track the user request In this article we will use OpenTelemetry and SigNoz to enable distributed tracing in a sample nodejs application OpenTelemetry and SigNozOpenTelemetry is a vendor agnostic set of tools APIs and SDKs used to instrument applications to create and manage telemetry data Logs metrics and traces It aims to make telemetry data logs metrics and traces a built in feature of cloud native software applications OpenTelemetry provides the instrumentation layer to generate and export your telemetry data to a backend Then you need to choose a backend tool that will provide the data storage and visualization for your telemetry data That s where SigNoz comes into the picture SigNoz is a full stack open source APM tool that provides metrics monitoring and distributed tracing We will demonstrate implementing distributed tracing in a nodejs application in two sections Running a sample nodejs application with OpenTelemetryVisualizing traces data with SigNoz dashboards Running a sample nodejs application with OpenTelemetryThe sample nodejs application will have three microservices user serviceorders servicepayment serviceHere s the architecture of the sample application along with OpenTelemetry and SigNoz Application architecture along with SigNoz and OpenTelemetry OTel Collector Pre requisitesNode JS or newerDownload the latest version MySql SigNoz Installing SigNozSigNoz can be installed on macOS or Linux computers in just three steps by using a simple install script The install script automatically installs Docker Engine on Linux However on macOS you must manually install Docker Engine before running the install script git clone b main cd signoz deploy install shYou can visit our documentation for instructions on how to install SigNoz using Docker Swarm and Helm Charts When you are done installing SigNoz you can access the UI at http localhost SigNoz dashboard It shows services from a sample app that comes bundled with the application Installing MySqlDownload MySQL community version from here based on your operating system Once installation is complete run the below commands to create a database for our sample nodejs app ➜ mysql u rootmysql gt create database signoz mysql gt use signoz Running sample applicationBelow are the steps to run the sample nodejs application with OpenTelemetry Clone sample nodejs app repository and go to the root folderWe will be using a sample nodejs app at this GitHub repo git clone git github com SigNoz distributed tracing nodejs sample gitcd distributed tracing nodejs sampleInstall the required dependenciesYou can check out the depencies required from package json file Install all the required dependencies for the sample application using npmnpm installOpenTelemetry needs the following packages to instrument the nodejs app opentelemetry api opentelemetry auto instrumentations node opentelemetry exporter collector opentelemetry exporter collector grpc opentelemetry exporter otlp grpc opentelemetry resources opentelemetry sdk trace base opentelemetry sdk trace node opentelemetry semantic conventions tracer ts fileIn order to instrument our services we will create a single tracer ts file and use it to instrument all three services We need to initialize OpenTelemetry before our application gets loaded If your application begins requiring packages before OpenTelemetry is set up it can create issues You can initialize OpenTelemetry by using the code as shown below import init from tracer const sdk init order service provide service name to view in signoz dashboardYou can check out the code sample here Setting up SigNoz as the OpenTelemetry backendTo set up OpenTelemetry to collect and export telemetry data you need to specify OTLP OpenTelemetry Protocol endpoint It consists of the IP of the machine where SigNoz is installed and the port number at which SigNoz listens OTLP endpoint for SigNoz lt IP of the machine gt If you have installed SigNoz on your local machine then your endpoint is Ports are setup in the env file as shown below OTEL EXPORTER OTLP ENDPOINT ORDER PORT USERS PORT PAYMENT PORT You can check the file in the cloned repo Run the microservicesFrom the root folder of your application on your terminal run each microservice Run users service npm run usersOpen a new tab of your terminal and run payment service npm run paymentOpen a new tab of your terminal and run orders service npm run ordersEnsure that the microservices are running on different ports As earlier mentioned you can set ports using the env file Running microservices on different portsConfirm table creationAfter running the services check if the tables ORDERS and USERS are created using the commands below mysql gt use signoz mysql gt show tables Checking creation of tables after running microservices Visualizing traces data with SigNoz dashboardsTo visualize the traces data with SigNoz we first need to generate some user data by interacting with the sample nodejs application Generating user data by interacting with the sample appYou need to generate some user data to see how it appears in the SigNoz dashboard Create a new userCall the below endpoint to create a new user in the MySQL db with autogenerated id Make a note of the id curl location request POST localhost user create header Content Type application json data raw USER NAME Abishek ACCOUNT ABC This will create a user in our users table Make a note of the ID as you will need it for further API calls Transfer some amountTransfer some amount by calling the below API The param id is the userid that was generated from the previous service curl location request GET localhost payment transfer id amount Place an orderPlace an order using below API curl location request POST localhost order create header Content Type application json data raw USER ID PRODUCT NAME Mac Mini PRICE Now go to SigNoz dashboard you will notice the list of service names that we configured user serviceorder servicepayment serviceMicroservices in our nodejs app being monitored in the SigNoz dashboardYou can play around with the dashboard to see what data is captured Below is a handy guide on how to use the SigNoz dashboard to see the captured data How to use SigNoz dashboard to analyze tracesThe traces tab of SigNoz dashboard provides powerful filters to analyze the traces data You can use a number of filters to see traces data across many dimensions See the count of requests by service and HTTP Status codeCount of requests by service and HTTP status codeIdentify latency issues with Flamegraphs and Gantt chartsYou can inspect each event in the table with flamegraphs and Gantt charts to see a complete breakdown of the request Establishing a sequential flow of the user request along with info on time taken by each part of the request can help identify latency issues quickly Let s see how it works in case of our sample nodejs app Go to operation filter on the left navigation apply two filters GET payment transfer id and service name payment service Click on the single event listed in the table as shown below Use filters to inspect events that you want to investigate further You will be able to see the flamegraph of the selected event which shows how the request traveled between the payment and the user service You can also use the Gantt chart to analyze each event in detail Flamegraph and Gantt chart for the selected eventSigNoz also provides a detailed view of common semantic conventions like HTTP network and other attributes The end to end tracing of user requests can help you to identify latency issues quickly ConclusionDistributed tracing is a powerful and critical toolkit for developers creating applications based on microservices architecture For nodejs applications based on microservices architecture distributed tracing can enable a central overview of how requests are performing across services which is needed for quick debugging OpenTelemetry and SigNoz provides a great open source solution to implement distributed tracing for your applications You can check out SigNoz by visiting its GitHub repo Read more about distributed tracing from SigNoz blog Spans a key concept of distributed tracingContext Propagation in distributed tracing 2022-02-26 12:43:21
海外TECH DEV Community Variables in languages https://dev.to/vulcanwm/variables-in-languages-c4o Variables in languagesThere s been many posts about how to say Hello World in different programming languages but is there many about variables Well this post will tell you about how to declare variables specifically a string in different programming languages Pythonvariable Hello World JavaScriptvar variable Hello World JavaString variable Hello World C string variable Hello World PHP variable Hello World C string variable Hello World Rvariable lt Hello World Rustlet mut variable Hello World Swiftvar variable Hello World rubyvariable Hello World That s it for now I hope you learnt something new and make sure to view all of my posts and maybe follow 2022-02-26 12:11:14
海外TECH DEV Community How to enhance your web app performance? And More! https://dev.to/wtshek/how-to-enhance-your-web-app-performance-and-more-1d29 How to enhance your web app performance And More Hey guys How does your week going As usual there are lots of problem we face in week Problems make us grow and learn more And I am here to share what I have learnt this during my work Learn together bit by bit Why does my style does not applied even though it is correctly set It is one of the most irritating problem I guess because it is so small and trivial Yet it literally spent me and the other days and still not figuring it out Here is the answer Code SplittingThe framework we use in the project is Preact and Preact Router and webkit browser And here is what the doc says Route components are automatically code splitted at build time to create smaller bundles and avoid loading more code than is needed by each page This works by intercepting imports for route components with an async loader which returns a lightweight wrapper component that handles code splitting seamlessly Under investigation we found that the style is applied after we turn off and on the style in the dev tool So the style is there but not correctly rendered To solve this we simply moved it out the routes folder and avoid the default code splitting done by Preact Here is another similar problem that may interest you Why vscode isn t suggesting the correct intellisense The problem occur when I am using CRS with typescript and cypress for testing instead of jest which ships together with CRS Under the hood cypress uses chai but in the test file eslint keep linting the jest syntax instead of syntax which is annoying The fix is to have different tsconfig file tsconfig json exclude the test unit test spec integration test compilerOptions target es lib dom dom iterable esnext allowJs true skipLibCheck true esModuleInterop true allowSyntheticDefaultImports true strict true forceConsistentCasingInFileNames true noFallthroughCasesInSwitch true module esnext moduleResolution node resolveJsonModule true isolatedModules true noEmit true jsx react jsx types cypress include src node modules cypress exclude test tsx tsconfig cypress json include only test related file extends tsconfig json compilerOptions isolatedModules false strict true target es lib es dom types cypress noEmit false baseUrl node modules include node modules cypress src spec ts src spec tsx src test tsx How to make a the your web app lightening fast Here are two great articles on this topic The Ultimate Guide to Fixing JavaScript Performance Problems in Browser DevToolsApply instant loading with the PRPL patternIn addition I created a checklist on how to enhance the website s performance Click here to find it If you want to know what real issues I faced in work Subscribe to the newsletter here 2022-02-26 12:03:23
Apple AppleInsider - Frontpage News Ukrainian leader urges Tim Cook to block Russia from App Store https://appleinsider.com/articles/22/02/25/ukrainian-leader-urges-tim-cook-to-block-russia-from-app-store?utm_medium=rss Ukrainian leader urges Tim Cook to block Russia from App StoreUkrainian Vice Prime Minister Mykhailo Fedorov has sent a letter to Apple requesting the tech giant block all Russian access to the App Store amid the ongoing crisis in Ukraine Credit UnsplashIn a Tweet spotted by The Verge Fedorov states that he s contacted Tim Cook urging him to stop supplying Russia with Apple services and products He then specifically mentions ending access to the App Store for Russian citizens Read more 2022-02-26 12:04:40
海外ニュース Japan Times latest articles Sanctions war over Ukraine invasion triggers concern for some Japanese companies https://www.japantimes.co.jp/news/2022/02/26/business/japanese-companies-ukraine-russia-sanctions/ Sanctions war over Ukraine invasion triggers concern for some Japanese companiesDomestic firms are worried that a potential sanctions war between Western countries and Russia could have a considerable economic impact on their bottom lines 2022-02-26 21:26:03
海外ニュース Japan Times latest articles Ukraine’s TV comedian President Volodymyr Zelenskyy finds his role as wartime leader https://www.japantimes.co.jp/news/2022/02/26/world/volodymyr-zelenskyy-wartime-president/ Ukraine s TV comedian President Volodymyr Zelenskyy finds his role as wartime leaderZelenskyy may be among the least likely wartime leaders the world has known yet he s winning praise in the role just when his political fortunes 2022-02-26 21:22:15
ニュース BBC News - Home British Airways short-haul flights from Heathrow cancelled https://www.bbc.co.uk/news/business-60533275?at_medium=RSS&at_campaign=KARANGA issues 2022-02-26 12:29:59
ニュース BBC News - Home Ukraine conflict: Britain sending more arms as fighting reaches Kyiv https://www.bbc.co.uk/news/uk-60536064?at_medium=RSS&at_campaign=KARANGA ukraine 2022-02-26 12:36:18
北海道 北海道新聞 Jリーグでも反戦への願い ロシア国籍の新潟シノヅカ「心が痛い」 https://www.hokkaido-np.co.jp/article/650350/ 願い 2022-02-26 21:12:00
北海道 北海道新聞 おもちゃの不具合「診断」 北見工高生、画面通し修理受け付け https://www.hokkaido-np.co.jp/article/650352/ 受け付け 2022-02-26 21:08:00
北海道 北海道新聞 オホーツク管内37人感染 新型コロナ https://www.hokkaido-np.co.jp/article/650351/ 新型コロナウイルス 2022-02-26 21:08:00
北海道 北海道新聞 上川管内188人感染 クラスター3件拡大 新型コロナ https://www.hokkaido-np.co.jp/article/650262/ 上川管内 2022-02-26 21:08:01
北海道 北海道新聞 十勝管内、新たに120人感染 新型コロナ https://www.hokkaido-np.co.jp/article/650348/ 十勝管内 2022-02-26 21:05:00
北海道 北海道新聞 3回目職場接種始まる 帯広市内の建設会社社員ら1500人 https://www.hokkaido-np.co.jp/article/650347/ 十勝管内 2022-02-26 21:05:00
北海道 北海道新聞 「釧路での素晴らしい演奏は忘れられない」 公演に尽力した吉田さん、ウクライナフィル団員の無事祈る https://www.hokkaido-np.co.jp/article/650346/ 釧路市 2022-02-26 21:04:00
北海道 北海道新聞 道南165人感染 函館110人 新型コロナ https://www.hokkaido-np.co.jp/article/650275/ 道南 2022-02-26 21:03:04
北海道 北海道新聞 気温上昇、進む雪解け 石狩管内 「屋根からの落雪注意」 https://www.hokkaido-np.co.jp/article/650345/ 石狩管内 2022-02-26 21:01: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件)