投稿時間:2021-10-29 01:43:42 RSSフィード2021-10-29 01:00 分まとめ(57件)

カテゴリー等 サイト名等 記事タイトル・トレンドワード等 リンクURL 頻出ワード・要約等/検索ボリューム 登録日
AWS AWS Open Source Blog Delta Sharing on AWS https://aws.amazon.com/blogs/opensource/delta-sharing-on-aws/ Delta Sharing on AWSThis post was written by Frank Munz Staff Developer Advocate at Databricks An introduction to Delta Sharing During the past decade much thought went into system and application architectures using domain driven design and microservices but we are still on the verge of building distributed data meshes Such data meshes are based on two fundamental principles … 2021-10-28 15:15:19
AWS AWS Security Blog Forensic investigation environment strategies in the AWS Cloud https://aws.amazon.com/blogs/security/forensic-investigation-environment-strategies-in-the-aws-cloud/ Forensic investigation environment strategies in the AWS CloudWhen a deviation from your secure baseline occurs it s crucial to respond and resolve the issue quickly and follow up with a forensic investigation and root cause analysis Having a preconfigured infrastructure and a practiced plan for using it when there s a deviation from your baseline will help you to extract and analyze the information … 2021-10-28 15:57:41
AWS AWS Security Blog Forensic investigation environment strategies in the AWS Cloud https://aws.amazon.com/blogs/security/forensic-investigation-environment-strategies-in-the-aws-cloud/ Forensic investigation environment strategies in the AWS CloudWhen a deviation from your secure baseline occurs it s crucial to respond and resolve the issue quickly and follow up with a forensic investigation and root cause analysis Having a preconfigured infrastructure and a practiced plan for using it when there s a deviation from your baseline will help you to extract and analyze the information … 2021-10-28 15:57:41
python Pythonタグが付けられた新着投稿 - Qiita 希少カテゴリを取り扱えるようになろう(図解あり) https://qiita.com/MANGATA/items/79bfde55fb7e9cb91f20 操作希少カテゴリ部分はNoneとして処理操作部分でも何度か出していますが、希少カテゴリと欠損値は同じように捉えることが可能です。 2021-10-29 00:09:44
Program [全てのタグ]の新着質問一覧|teratail(テラテイル) spleeterによる音源分離について https://teratail.com/questions/366730?rss=all spleeterによる音源分離について前提・実現したいこと以下のソースコードでspleeterを使って音源分離をしようと考えています。 2021-10-29 00:56:57
Program [全てのタグ]の新着質問一覧|teratail(テラテイル) 基本的な処理が上手くいかない https://teratail.com/questions/366729?rss=all 基本的な処理が上手くいかない前提・実現したいことPython勉強中の初心者です。 2021-10-29 00:48:23
Program [全てのタグ]の新着質問一覧|teratail(テラテイル) ultimate memberマイページのタブ追加方法 https://teratail.com/questions/366728?rss=all ultimatememberマイページのタブ追加方法やろうとしていること添付写真左にあるメニューをいくつか増やしたいです。 2021-10-29 00:34:31
Program [全てのタグ]の新着質問一覧|teratail(テラテイル) ループでJSONの中身にアクセスしたい https://teratail.com/questions/366727?rss=all 2021-10-29 00:33:15
Program [全てのタグ]の新着質問一覧|teratail(テラテイル) DBに保存したい。&エラーメッセージを表示したい。 https://teratail.com/questions/366726?rss=all エラーメッセージを表示したい。 2021-10-29 00:27:07
Program [全てのタグ]の新着質問一覧|teratail(テラテイル) jQueryで$.getScriptを使って読み込んだJSファイルの関数を使いたい。 https://teratail.com/questions/366725?rss=all jQueryでgetScriptを使って読み込んだJSファイルの関数を使いたい。 2021-10-29 00:25:39
Program [全てのタグ]の新着質問一覧|teratail(テラテイル) Herokuへのデプロイができない [ERROR]:Failed building wheel for twisted-iocpsupport等 https://teratail.com/questions/366724?rss=all HerokuへのデプロイができないERRORFailedbuildingwheelfortwistediocpsupport等Herokuへのデプロイができなくて困っています。 2021-10-29 00:17:29
Program [全てのタグ]の新着質問一覧|teratail(テラテイル) 三角関数についての方程式(2分法) https://teratail.com/questions/366723?rss=all 三角関数についての方程式分法fxcosxxの根のうち、ltxltを満たすものを分法を用いて桁正確に求めよ。 2021-10-29 00:15:31
Program [全てのタグ]の新着質問一覧|teratail(テラテイル) ultimate memberのpoファイルの日本語文を変更したい https://teratail.com/questions/366722?rss=all ultimatememberのpoファイルの日本語文を変更したいやろうとしていることpoファイルにて実装されている、英語→日本語の日本語部分の文言を変更したいです。 2021-10-29 00:15:23
Program [全てのタグ]の新着質問一覧|teratail(テラテイル) GASを用いてスプレッドシートのコピー&ペーストをしたい。 https://teratail.com/questions/366721?rss=all GASを用いてスプレッドシートのコピーampペーストをしたい。 2021-10-29 00:13:25
AWS AWSタグが付けられた新着投稿 - Qiita AWS: Wordpress環境構築やってみた:Gateway Timeoutになる原因。ミスったこと https://qiita.com/takazo/items/1c18e9fe82c23735e290 AWS Wordpress環境構築やってみたGatewayTimeoutになる原因。 2021-10-29 00:20:51
Azure Azureタグが付けられた新着投稿 - Qiita 日本一詳しいCompany Communicator https://qiita.com/Nagaaki_Iwata/items/4afd695be8b10b4cdae1 メッセージ送信先の選択メッセージを受信するには、CompanyCommunicatorのメッセージ受信用アプリがインストールされている必要があります。 2021-10-29 00:52:05
Ruby Railsタグが付けられた新着投稿 - Qiita railsチュートリアル第10章 管理ユーザー https://qiita.com/masatom86650860/items/75054695237cc78c725e railsチュートリアル第章管理ユーザーユーザーを削除する管理ユーザー特権を持つ管理ユーザーを識別するために、論理値をとるadmin属性をUserモデルに追加ubuntuenvironmentsampleappupdatingusersrailsgeneratemigrationaddadmintousersadminbooleanRunningviaSpringpreloaderinprocessinvokeactiverecordcreatedbmigrateaddadmintousersrbboolean型のadmin属性をUserに追加するマイグレーションdbmigratetimestampaddadmintousersrbclassAddAdminToUsersltActiveRecordMigrationdefchangeaddcolumnusersadminbooleandefaultfalseadminカラムがusersテーブルに追加されます。 2021-10-29 00:47:14
Ruby Railsタグが付けられた新着投稿 - Qiita railsチュートリアル第10章 パーシャルのリファクタリング https://qiita.com/masatom86650860/items/a09be4bd0a9fb542008f railsチュートリアル第章パーシャルのリファクタリングパーシャルのリファクタリングrailsの便利なツールを使ってコードを整理するindexビューに対する最初のリファクタリングappviewsusersindexhtmlerbltprovidetitleAllusersgtlthgtAlluserslthgtltwillpaginategtltulclassusersgtltuserseachdousergtltrenderusergtltendgtltulgtltwillpaginategt各ユーザーを表示するパーシャルappviewsusersuserhtmlerbltligtltgravatarforusersizegtltlinktousernameusergtltligtindexページの完全なリファクタリングappviewsusersindexhtmlerbltprovidetitleAllusersgtlthgtAlluserslthgtltwillpaginategtltulclassusersgtltrenderusersgtgtltRailsはusersをUserオブジェクトのリストであると推測gtltユーザーのコレクションを与えて呼び出すと、Railsは自動的にユーザーのコレクションを列挙し、それぞれのユーザーをuserhtmlerbパーシャルで出力します。 2021-10-29 00:46:49
海外TECH DEV Community Introduction to Scramjet Data Processing Platform https://dev.to/scramjetorg/introduction-to-scramjet-data-processing-platform-5bof Introduction to Scramjet Data Processing Platform New engine for serverless data processing applicationsOur Scramjet data apps engine has its approach to deploying and running serverless applications in several aspects different from solutions in areas such as software buses integration platforms and FaaS offerings This article explains our approach We hope you might find it interesting “ in data processing platformThe heart of our solution and its data engine is called “Scramjet Transform Hub It s available as a standalone software package on GitHub and will be the core element of our Scramjet Cloud Platform We name our approach “ in data processing platform as it combines concepts into one solution data processing engineserverless data applicationscomplete API with dedicated CLI covering both I O and management endpoints Let s look at each point separately Data processing engineScramjet Transform Hub creates unified deployment runtime management and execution plan for serverless applications sequences In short STH allows you to start data processing in simple steps Deploysi sequence send lt sequence package tar gt Runsi sequence run lt sequence id gt Send datacurl H “Content Type application octet stream ーdata binary “ file txt lt instance input endpoint gt You are free to post to our sequence simple HTTP requests file send a stream or even read data from another stream or API Please notice that contrary to typical microservices architectures there is no expensive step of building containerized image pushing it to the registry and then downloading it to the container orchestrator to run the microservice You can move from directory with code to sequence processing your data in less than a minute We do package our apps but their size is measured in kilobytes not in hundreds of megabytes as in the case of container images Minimal app design gives better performance optimized resources usage and a simpler CI CD process We have prepared a short minute demo showing the whole application sequence preparation deployment and run process on our YouTube channel Check it below Serverless data applicationsWe call the user applications sequences They have capabilities to perform continuous data and stream processing they have no run time limits or input data size limits Each sequence has a straightforward structure ーit s a directory with at least two core files package json ーsimple JSON file describing sequence metadataindex js ts ーJavaScript or TypeScript file with sequence code You are free to structure your app in multiple files if you like Below there is the content of one of our sample “hello world sequences yielding integer numbers const DataStream require “scramjet ​module exports async function stream start end await DataStream from async function let i start while i lt end await new Promise res gt setTimeout res yield x i do console log run You can find intro readme and more samples in our dedicated repository scramjetorg scramjet cloud docs API amp CLILet s look at Transform Hub API via commands available in our CLI pack options ーpackage directory with sequence code into tar gz filehost command ーmonitor and check the version of the hostconfig c command ーdisplay and manage configsequence seq command ーpack deploy manage and monitor sequences app templates instance inst command ーmanage and monitor instances running apps The above commands and related API cover complete management of the data processing engine and serverless apps running on top of it Once started each running instance exposes the following API endpoints input outputstdin stdout stderrlog monitoring event to instance event from instance stop killThis approach follows the “batteries included approach and each running instance is handled in the same way Why our Scramjet Cloud PlatformOur approach shown above has several benefits Freedom and flexibility ーno artificial limits on data size and execution time of apps no “execution time limit or “payload size limit Great price for value effective data workflows with fully programmable data acquisition ability to create patterns between instances performing various data processing tasks Performance by design ーinstantaneous execution of data without proxies queues and gateways Light apps with minimal resources consumption Works cross native Edge amp Cloud ーout of the box spanning between locations Run the same type of apps on edge or smart devices via standalone Scramjet Transform Hub and in our Scramjet Cloud Platform As a summary below you will find a diagram showing various patterns of chaining data processing on our platform 2021-10-28 15:35:50
海外TECH DEV Community The Learning Path to GraphQL for Fullstack Developers https://dev.to/praveenweb/the-learning-path-to-graphql-for-fullstack-developers-10bp The Learning Path to GraphQL for Fullstack DevelopersGraphQL has been around for years now and has really empowered frontend and fullstack developers with the ability to build backends easily With tools like Hasura developers focus only on writing custom logic code specific to the app taking away the repetitive CRUD APIs Hasura gives you instant GraphQL and REST APIs on all your data It sits in between your application and the data sources to give you the goodness of GraphQL Authorization and a slew of security and monitoring features The core Hasura GraphQL Engine is open source and we have a Cloud offering for managing infra and advanced production ready features We at Hasura along with the community have created a series of open source tutorials starting from GraphQL Basics Hasura Basics to full fledged frontend tutorials in various frameworks You name it we have it Begin your journey with GraphQL BasicsIf you are completely new to GraphQL we recommend taking our Introduction to GraphQL course This will get you from Zero to GraphQL in less than an hour The key to learning GraphQL is to understand that it is just a query language and popular implementations on the client and server leverage existing JSON standards for requests and responses over HTTP Once you are familiar with this concept it will become easier to grok the benefits of GraphQL The Intro to GraphQL tutorial covers some fundamental concepts likeWhat is GraphQL GraphQL vs RESTCore ConceptsIntrospectionThe three most common things you will encounter with GraphQL areQueriesMutationsSubscriptionsThis along with the type system makes GraphQL the powerful self serve API that everyone can use intuitively You will also understand the different approaches one can take while writing a GraphQL Server Finally you will learn how GraphQL Clients make data fetching consuming realtime subscriptions really easy Setup the backend with HasuraOnce you have understood what GraphQL is and the core concepts around it you can progress to the easiest step in the journey i e Setting up a GraphQL API with Hasura We have put together a concise tutorial for Hasura Basics to create a production ready GraphQL API from scratch without writing much code You will be able to use the power of database set up Authorization rules for security and write custom business logic code specific to a realtime use case Once you go over this Hands on tutorial which should take about mins to an hour you will be able to start integrating the GraphQL API with any frontend app Optional Database NinjaHasura connects to a database either PostgreSQL MySQL or MS SQL etc to give you a GraphQL API Now if you are a frontend developer who is new to the database ecosystem then you are covered with our database series The database tutorials will teach you core concepts around data modeling with examples of SQL statements and key fundamentals to know just enough to deploy an app in production Integrate GraphQL backend with frontendOnce you are familiar with GraphQL and setting up a backend with Hasura you can start trying out the real power of GraphQL in the frontend app In this frontend series you will learn how modern GraphQL client side tooling can be integrated with a GraphQL backend like Hasura There are tutorials available in most popular frontend frameworks and mobile first languages The highlights of this series are the examples around consuming realtime subscriptions and patterns around handling data in cache Join our GraphQL Learning CirclesStarting from November We re going to host GraphQL Learning Circles to go over the various tutorials that we and the GraphQL community have created and contributed to on a weekly basis If you d like to host a GraphQL Learning Circle reach out to us on discord Do subscribe us on YouTube to get notified about the schedule for these live tutorials We would love to hear what you would like to see on the Hasura Learn portal We are constantly updating the tutorials to keep in pace with industry standard language and framework versions and best practices Do check it out and spread the love 2021-10-28 15:25:24
海外TECH DEV Community 10 VS Code extensions every Frontend Developer should use https://dev.to/jcc/10-vs-code-extensions-every-frontend-developer-should-use-3608 VS Code extensions every Frontend Developer should useHello everyone my name is Johnny and I m a frontend developer In this blog post I would like to share VS code extensions that every frontend developer should use The purpose of using these extensions is to write faster cleaner and more consistent code Let s Jump in  Read More VS Code extensions every Frontend Developer should use 2021-10-28 15:22:57
海外TECH DEV Community How to Add a README to a GitHub Organization's Profile? https://dev.to/iamludal/how-to-add-a-readme-to-a-github-organizations-profile-1cff How to Add a README to a GitHub Organization x s Profile You may already know how to add a README to your GitHub profile if you don t have a look at this article but did you know you can also add one to an organization s profile To do so just head over to the GitHub organization you want to customize and create a new repository named github As you can see GitHub already tells you that you discovered a special repository once again ️Make sure to set the repository s visibility to public From there the only thing you have to do is creating a profile README md file within this repository that will show up in the organization homepage ️Make sure to create the README md within the profile directory And here s the final result on the organization s GitHub homepage Other Articles by Me Why Your GitHub Profile Sucks Ludal ・Feb ・ min read github tips profile design Custom React Hooks useCounter Ludal ・Oct ・ min read react javascript programming References 2021-10-28 15:21:13
海外TECH DEV Community #DevCard #Style #github #markdown https://dev.to/kolpaja/devcard-style-github-markdown-cm8 DevCard Style github markdownHello there Since we have to read a lot of things daily here there is an amazing show off for your reading And the most important is that you can use this everywhere you want to have a cool better presentation of your path How you get it click the link to generate your own and start customizing the one you like Finally go to the article to add that to your github profile Happy Coding 2021-10-28 15:18:56
海外TECH DEV Community 20 JavaScript One-Liners That Will Help You Code Like a Pro https://dev.to/jcc/20-javascript-one-liners-that-will-help-you-code-like-a-pro-1hj7 JavaScript One Liners That Will Help You Code Like a Pro JavaScript keeps growing and growing JavaScript One Liners That Will Help You Code Like opening doors for new “to be tech geeks in the market as it s one of the easiest languages to start is it really It s true that JavaScript can do a lot of blazing things and there is just so much to learn And whether you re new to JavaScript or more of a professional developer it s always good to learn something new I m gonna go over some really helpful one liners Bonus that can help you boost your productivity and can help in debugging code  Read More JavaScript One Liners That Will Help You Code Like a Pro 2021-10-28 15:16:45
海外TECH DEV Community 18 amazing 🤩 GitHub repositories that will help you 🪄 make a Beautiful Project https://dev.to/jcc/18-amazing-github-repositories-that-will-help-you-make-a-beautiful-project-3i36 amazing GitHub repositories that will help you 🪄make a Beautiful ProjectIntroductionToday I would like to give examples of good GitHub repositories that will help you implement complex animations as well as useful functions in your projects So let s get started Read More amazing GitHub repositories that will help you 🪄make a Beautiful Project 2021-10-28 15:16:19
海外TECH DEV Community Tools for Web Designing https://dev.to/ganeshpatil386386/tools-for-web-designing-11pi Tools for Web DesigningDesigning is just great thing and demanding skills in digital era of development everyone want to build designing skills and lot of different opportunities are available for designers like Graphic Designs Product Designs UI UX designs Mobile applications designs and etc but the important thing is to used right tool for right designs here are some free tools which I used for my personal projects for designing and development Adobe XdAdobe Xd is great tool for designing and development amazing libraries are available inside the adobe xd you can also used it for various purpose Logo Designs Product Designs Web designs etc get the XD from link XD FigmaFigma is widely usable design platform its used for all type of designs and provide lot of supportive libraries and features like live application interface also Mobile interface available for users Figma JustinmindJustinmind is great tool for Realtime web designs and mobile application interface its completely amazing experience with JUSTINMIND is great tools for Web Designers JustinMind 2021-10-28 15:13:07
海外TECH DEV Community How to Improve Your Integration Tests Using OpenTelemetry https://dev.to/aspecto/how-to-use-opentelemetry-to-improve-your-integration-tests-5h37 How to Improve Your Integration Tests Using OpenTelemetryThis article is part of the Aspecto Hello World series where we tackle microservices related topics for you Our team searches the web for common issues then we solve them ourselves and bring you complete how to guides Aspecto is an OpenTelemetry based distributed tracing platform for developers and teams of distributed applications Note this tutorial assumes you are familiar with OpenTelemetry traces and spans If you want to learn more about OpenTelemetry check out The OpenTelemetry Bootcamp This is a free vendor neutral six episode video series that brings you everything you need to know to get started with OpenTelemetry from zero to hero IntroductionThe evolution of OpenTelemetry OTEL in recent years has made it a lot easier for developers that are interested in better understanding their microservices to instrument their services and gain that desired view But so far the usage has been mainly for debugging production issues What if I told you there s a way of utilizing OpenTelemetry s power to prevent production issues by using it in your integration test environment Sounds interesting read on as I show you how it can be done easily What it would look like to use OpenTelemetry in an integration testThe end goal is to instrument our service under test while the test is running and make assertions on the created spans We call this Trace Based Testing Now you might be starting to think practically on such an implementation and say “Oh so I need to integrate the OpenTelemetry SDK now in my test run Where do I store the spans How do I get them while the test is already running so that I can assert Well those questions are legit indeed Luckily you don t need to implement all that on your own This use case is exactly what has led to the creation of Malabi an open source that wraps the OpenTelemetry SDK and does all this setup for you so that you can simply add it to your project and start asserting P S You can read more about the concept of Trace Based testing and Malabi here How does Malabi help Practical guide below this is the theoretical part The way it works is simple You add Malabi to your project by using npm or yarn and add lines of code at the top of the main file of the service Then Malabi uses OpenTelemetry SDK for you and creates spans as your service is run in the context of an integration test for example in CI Malabi then stores these spans in memory and exposes an endpoint that lets you access these spans and gives you utility functions to extract the data that you need for your assertions The practical part how to take your existing NodeJs microservice and utilize OpenTelemetry to make assertions in an integration testThe following code is the ExpressJS code of the microservice that we want to test It is a simple service that uses SQLite as an in memory database to store amp retrieve data about users It also stores some of the fetched data in a redis cache for faster retrieval Here is the code in the index ts file Part The microservice code Note that you can find the complete code in the Malabi examples folder index js file import as malabi from malabi malabi instrument malabi serveMalabiFromHttpApp import axios from axios import express from express import body from body parser import User from db import getRedis from redis import Redis from ioredis let redis Redis Redis getRedis then redisConn gt redis redisConn app listen PORT gt console log service under test started at port PORT const PORT process env PORT const app express app use body json app get req res gt res sendStatus app get todo async req res gt try const todoItem await axios res json title todoItem data title catch e res sendStatus console error e e app get users async req res gt try const users await User findAll res json users catch e res sendStatus console error e e app get users firstName async req res gt try const firstName req param firstName if firstName res status json message Missing firstName in url return let users users await redis lrange firstName if users length users await User findAll where firstName if users length await redis lpush firstName users res json users catch e res sendStatus console error e e app post users async req res gt try const firstName lastName req body const user await User create firstName lastName res json user catch e res sendStatus In the above file you see all the endpoints of the microservice Mostly self explanatory fetching storing data in SQLite DB Redis as cache But notice the top three lines where the Malabi magic happens import as malabi from malabi malabi instrument malabi serveMalabiFromHttpApp Basically we require Malabi after running npm install save dev malabi of course Then Malabi instruments our service meaning it will create spans in memory as it runs At that point we tell it to serve the created spans from port In part you will see how we use Malabi util functions to query this endpoint and use Jest to make assertions on them But first let s continue to understand our service This db ts file that handles SQLite with Sequelize import Sequelize DataTypes from sequelize const sequelize new Sequelize dialect sqlite storage memory const User sequelize define User firstName type DataTypes STRING allowNull false lastName type DataTypes STRING User sync force true then gt User create firstName Rick lastName Sanchez export default User The redis ts file import RedisMemoryServer from redis memory server import Redis from ioredis const redisServer new RedisMemoryServer export async function getRedis const host await redisServer getHost const port await redisServer getPort const redis new Redis port host return redis Part The Test Code service under test spec ts file This file will be run using Jest Notice we have the port of the service itself to call the actual running service which you would run in the CI environment or locally We also have the Malabi utility functions fetchRemoteTelemetry clearRemoteTelemetry that like their name suggests fetch the spans from the endpoint for assertions and clear the in memory cache which is useful to clean up between tests to maintain a clean slate each time Take a look at the code more info follows below const SERVICE UNDER TEST PORT process env PORT import axios from axios import fetchRemoteTelemetry clearRemoteTelemetry from malabi const getTelemetryRepository async gt await fetchRemoteTelemetry portOrBaseUrl describe testing service under test remotely gt beforeEach async gt We must reset all collected spans between tests to make sure spans aren t leaking between tests await clearRemoteTelemetry portOrBaseUrl it successful todo request async gt call to the service under test internally it will call another API to fetch the todo items const res await axios http localhost SERVICE UNDER TEST PORT todo get spans created from the previous call const telemetryRepo await getTelemetryRepository Validate internal HTTP call const todoInteralHTTPCall telemetryRepo spans outgoing first expect todoInteralHTTPCall httpFullUrl toBe expect todoInteralHTTPCall statusCode toBe it successful users request async gt call the service under test const res await axios get http localhost SERVICE UNDER TEST PORT users get spans created from the previous call const telemetryRepo await getTelemetryRepository Validating that users had ran a single select statement and responded with an array const sequelizeActivities telemetryRepo spans sequelize expect sequelizeActivities length toBe expect sequelizeActivities first dbOperation toBe SELECT expect Array isArray JSON parse sequelizeActivities first dbResponse toBe true it successful users Rick request async gt call the service under test const res await axios get http localhost SERVICE UNDER TEST PORT users Rick get spans created from the previous call const telemetryRepo await getTelemetryRepository const sequelizeActivities telemetryRepo spans sequelize expect sequelizeActivities length toBe expect sequelizeActivities first dbOperation toBe SELECT const dbResponse JSON parse sequelizeActivities first dbResponse expect Array isArray dbResponse toBe true expect dbResponse length toBe it Non existing user users Rick request async gt call the service under test const res await axios get http localhost SERVICE UNDER TEST PORT users Rick get spans created from the previous call const telemetryRepo await getTelemetryRepository const sequelizeActivities telemetryRepo spans sequelize expect sequelizeActivities length toBe expect sequelizeActivities first dbOperation toBe SELECT const dbResponse JSON parse sequelizeActivities first dbResponse expect Array isArray dbResponse toBe true expect dbResponse length toBe expect telemetryRepo spans httpGet first statusCode toBe it successful POST users request async gt call the service under test const res await axios post http localhost SERVICE UNDER TEST PORT users firstName Morty lastName Smith expect res status toBe get spans created from the previous call const telemetryRepo await getTelemetryRepository Validating that users created a new record in DB const sequelizeActivities telemetryRepo spans sequelize expect sequelizeActivities length toBe expect sequelizeActivities first dbOperation toBe INSERT The expected flow is Insert into db the new user due to first API call POST users Try to fetch the user from Redis due to the second API call GET users Jerry The user shouldn t be present in Redis so fetch from DB Push the user object from DB to Redis it successful create and fetch user async gt Creating a new user const createUserResponse await axios post http localhost SERVICE UNDER TEST PORT users firstName Jerry lastName Smith expect createUserResponse status toBe Fetching the user we just created const fetchUserResponse await axios get http localhost SERVICE UNDER TEST PORT users Jerry expect fetchUserResponse status toBe get spans created from the previous calls const telemetryRepo await getTelemetryRepository const sequelizeActivities telemetryRepo spans sequelize const redisActivities telemetryRepo spans redis Insert into db the new user due to first API call POST users expect sequelizeActivities first dbOperation toBe INSERT Try to fetch the user from Redis due to a second API call GET users Jerry expect redisActivities first dbStatement toBe lrange Jerry expect redisActivities first dbResponse toBe The user shouldn t be present in Redis so fetch from DB expect sequelizeActivities second dbOperation toBe SELECT Push the user object from DB to Redis expect redisActivities second dbStatement startsWith lpush Jerry toBeTruthy Once we have fetched the spans we can use Jest s expect function to make assertions as we would in any other test regardless of trace based testing Examined example test named “successful users request Let s examine the above code for example the test named “successful users request First we call the service to fetch all users Then we use the fetchRemoteTelemetry wrapped by the getTelemetryRepository function to get the spans from Malabi After that we use the sequelize accessor to filter only sequelize spans Once we have the sequelize spans at hand we can assert to have only as we only fetch the DB once We also know it s a SELECT operation so we assert that it s a SELECT operation Examined example test named “successful create and fetch user Let s now examine a slightly more complicated test In the indicated test we create a new user using POST users Then we try to query for that user using GET users firstName As expected we assert for as you would in any other test Now here again we use Malabi utilities to fetch relevant spans and store them in variables one for redis spans and another for sequelize const telemetryRepo await getTelemetryRepository const sequelizeActivities telemetryRepo spans sequelize const redisActivities telemetryRepo spans redis The first assertion we want to make sure that the initial POST operation had caused a DB INSERT operation expect sequelizeActivities first dbOperation toBe INSERT Since the user was just created we expect it to not exist in redis so we assert the redis query to be as we want it and expect the response from redis to be an empty array expect redisActivities first dbStatement toBe lrange Jerry expect redisActivities first dbResponse toBe Since the user was not present in redis we expect to have fetched the DB so assert that the second DB operation selectexpect sequelizeActivities second dbOperation toBe SELECT And now we expect redis to have received push command to make sure in real life not in test runs since we clean up everything subsequent runs would not have to fetch the DB but take from redis expect redisActivities second dbStatement startsWith lpush Jerry toBeTruthy That would be it I hope you can see how simple it can be to use OpenTelemetry amp Malabi to write powerful integration tests in a much easier way than before P S Malabi is a relatively new library implementing a new approach and its authors myself included would love to hear your thoughts on it and hear any improvements suggestions you have So feel free to open a discussion in GitHub or contact me via Twitter DMs 2021-10-28 15:12:32
海外TECH DEV Community Web Development Resources that you should know and bookmark 📑 https://dev.to/jcc/web-development-resources-that-you-should-know-and-bookmark-5ca8 Web Development Resources that you should know and bookmark Are you looking for the best design resources websites Well then this collection is something every developer should bookmark as it consists of the best resources that can help you to develop an amazing eye catchy and visually enriched project Here you ll find the best websites and resources with modern UI components in different formats such as PSD Sketch Figma Icons and Illustrations etc They are great for ideas for web components UI Read More Web Development Resources that you should bookmark 2021-10-28 15:07:16
海外TECH DEV Community Cheat Sheets that always save my time during web development https://dev.to/jcc/cheat-sheets-that-always-save-my-time-during-web-development-1033 Cheat Sheets that always save my time during web developmentDuring Coding I often forget exact properties and at that time searching on google take time at least for me because I don t know about you So I always prefer cheatsheets because in of cases I got my answer from them So today I m going to share a list of top cheatsheets that save my time during development  Read More Cheat Sheets that always save my time during web development 2021-10-28 15:06:11
Apple AppleInsider - Frontpage News OWC debuts replacement SSD for non-Touch Bar 13-inch MacBook Pro https://appleinsider.com/articles/21/10/28/owc-debuts-replacement-ssd-for-non-touch-bar-13-inch-macbook-pro?utm_medium=rss OWC debuts replacement SSD for non Touch Bar inch MacBook ProOWC has announced a new high performance solid state drive for older inch MacBook Pro models lacking the Touch Bar delivering capacity up to times greater and speeds up to megabytes per second Credit OWCThe Aura Pro NT High Performance NVMe SSD is an aftermarket drive upgrade for non Touch Bar inch MacBook Pro devices made between and Since that model is up to five years old now the SSD upgrade can allow users to keep up with increasing files sizes and performance requirements Read more 2021-10-28 15:04:04
海外TECH Engadget Activision Blizzard ends forced arbitration for harassment and discrimination claims https://www.engadget.com/activision-blizzard-ends-forced-arbitration-151427460.html?src=rss Activision Blizzard ends forced arbitration for harassment and discrimination claimsFollowing months of pressure from employees and workers Activision Blizzard says it will no longer employ forced arbitration in sexual harassment and discrimination claims CEO Bobby Kotick announced the policy change in a letter to employees the company shared on Thursday Kotick said the publisher will also implement a new company wide zero tolerance harassment policy In the future any employee who is found to have violated the rule will be fired immediately Additionally they ll forfeit any future compensation including equity awards “Our goal is to have the strictest harassment and non retaliation policies of any employer and we will continue to examine and tighten our standards to achieve this goal everywhere we do business Kotick said The executive outlined three other steps Activision Blizzard will take to create a safer and more diverse workplace Over the next years it will invest million in programs that create opportunities in tech and gaming for under represented communities Additionally the company to plans to hire more women and non binary people According to Kotick approximately percent of all employees at Activision Blizzard identify as part of those groups Its goal is to increase that number by percent to more than one third across the entire company within the next five years Kotick also promised the company will share annual reports on progress it makes toward pay equity Separately the executive said he has asked Activision Blizzard s board of directors to reduce his total compensation to per year until it feels like he has met the diversity and safety goals outlined above Today s announcement sees Kotick and Activision Blizzard meeting many of the demands employees put before the company when they began protesting its actions in the wake of California s sexual harassment lawsuit When employees first staged a walkout in July they demanded the end of forced arbitration greater pay transparency and new hiring policies designed to increase representation across the company “This is a great start and there s still work to do said Jessica Gonzalez one of the employees involved with the A Better ABK advocacy group “We can lead the charge as an industry standard Victories and still pushing 2021-10-28 15:14:27
海外TECH Engadget Google's Nest Audio hits new low of $60 at B&H Photo https://www.engadget.com/google-nest-audio-hits-new-low-of-60-at-bh-photo-150717380.html?src=rss Google x s Nest Audio hits new low of at B amp H PhotoBlack Friday has come a few weeks early for Google fans A bunch of Google devices are on sale today at B amp H Photo including the Nest Audio smart speaker which is only right now if you go for the chalk or charcoal colors That s off its normal price and the lowest we ve seen in a long time The second gen Nest Hub is half off bringing it down to while the Nest Hub Max is on sale for Buy Nest Audio at B amp H Buy Nest Hub nd gen at B amp H Buy Nest Hub Max at B amp H If you re an Android user or a Google Assistant fan you can t go wrong with the Nest Audio as your main smart speaker It earned a score of from us and we considered it to be a steal at its normal price point Not only does it have solid sound quality on its own but two paired together in stereo mode sound even better We also like its minimalist design and how speedily the Google Assistant responds to commands Either of the Nest Hubs on sale would make great additions to your smart home but which you choose will likely depend on how much you value affordability and sound quality The second gen Nest Hub is a great deal at because you re getting a faster device overall much improved audio quality and new sleep tracking abilities For the latter if you put the Nest Hub next to your bed it ll track how long you ve been asleep and even if you snore during the night And regardless of where it sits in your home the smart display can show video camera feeds from Nest Cams so you can see who s at your front door without actually answering it As for the Nest Hub Max it s the better choice if you want a smart display that can also hold its own against some high end speakers It includes two front facing tweeters and a rear facing woofer and they work together to pump out strong clear sound It s not a replacement for a couple of Sonos speakers spread throughout your home but it s one of the best options if you want one device that can be your main speaker and smart display Follow EngadgetDeals on Twitter for the latest tech deals and buying advice 2021-10-28 15:07:17
海外TECH Engadget Apple TV+ is coming to Comcast devices https://www.engadget.com/apple-tv-app-comcast-xfinity-sky-150136639.html?src=rss Apple TV is coming to Comcast devicesThe Apple TV app has reached its final frontier your cable provider s set top box According to Variety Comcast used its latest earnings call to reveal that the Apple TV app will be available on Comcast s platforms in the quot coming months quot Viewers with Xfinity X set tops Flex streaming hubs XClass TVs and in the UK and Europe Sky Glass sets will have access to Apple TV in app channels like AMC and Showtime and Apple s usual video purchases and rentals In exchange Comcast is bringing its Xfinity Stream app to Apple TV hardware The move will let you use the Apple TV device either as a set top stand in or to watch broadcasts on someone else s TV when you re away This may be a more significant expansion than it seems Apple s streaming video app is available on many smart TVs dedicated media players and game consoles in addition to the company s own products but there are many people whose cable box is the smartest device in the living room This brings Apple TV to many people who wouldn t even consider a service if it required a new TV or any device beyond the ones included with their cable subscriptions 2021-10-28 15:01:36
海外TECH Network World BrandPost: IT Departments are Stretched by the Edge, but Remote Monitoring Can Help https://www.networkworld.com/article/3638834/it-departments-are-stretched-by-the-edge-but-remote-monitoring-can-help.html#tk.rss_all BrandPost IT Departments are Stretched by the Edge but Remote Monitoring Can Help Cost efficiencies Scalability Mobility Flexibility These attributes of the cloud were driving adoption by organizations in every industry even before Covid hit Then with challenges such as strained supply chains stay at home orders and an emerging new hybrid work reality cloud adoption went into overdrive spurred by renewed digital transformation priorities In response to the pandemic of IT leaders planned to accelerate their digital transformation efforts according to the IDG CIO Covid Impact study  The cloud is a vital part of those efforts And as cloud deployments have grown another important and interrelated strategy for continued transformation has emerged edge computing To read this article in full please click here 2021-10-28 15:30:00
Cisco Cisco Blog 10 “Must See” DevNet Create Videos https://blogs.cisco.com/developer/devnetcreatetopten01 “Must See DevNet Create VideosThere were sessions for app designers API creators amd infrastructure operators For expert coders and for people just starting out All session videos are now available 2021-10-28 15:33:46
海外科学 NYT > Science Oil Executives Begin Testimony on Industry’s Role in Climate Disinformation https://www.nytimes.com/2021/10/28/climate/oil-executives-house-disinformation-testimony.html Oil Executives Begin Testimony on Industry s Role in Climate DisinformationIn a historic hearing the leaders of some of the most powerful energy companies in the world are appearing before a House panel to face questioning on climate change 2021-10-28 15:49:13
海外科学 NYT > Science Tuskless Elephants Escape Poachers, but May Evolve New Problems https://www.nytimes.com/2021/10/21/science/tuskless-elephants-evolution.html Tuskless Elephants Escape Poachers but May Evolve New ProblemsScientists identified the genes that played a role in many female elephants of Mozambique s Gorongosa National Park being born without tusks 2021-10-28 15:29:47
金融 ◇◇ 保険デイリーニュース ◇◇(損保担当者必携!) 保険デイリーニュース(10/29) http://www.yanaharu.com/ins/?p=4753 損保ジャパン 2021-10-28 15:54:05
金融 RSS FILE - 日本証券業協会 株券等貸借取引状況(週間) https://www.jsda.or.jp/shiryoshitsu/toukei/kabu-taiw/index.html 貸借 2021-10-28 15:30:00
ニュース ジェトロ ビジネスニュース(通商弘報) VW、工場限定で5G環境を導入 https://www.jetro.go.jp/biznews/2021/10/88cfefe104d5fab6.html 限定 2021-10-28 15:40:00
ニュース ジェトロ ビジネスニュース(通商弘報) 貿易に関する日ロ間の諸問題を議論、3年ぶりに「作業部会」開催 https://www.jetro.go.jp/biznews/2021/10/a0f2685c834de679.html 作業部会 2021-10-28 15:30:00
ニュース ジェトロ ビジネスニュース(通商弘報) 通関上の問題は減少するも、不正取引・並行品輸入が増加 https://www.jetro.go.jp/biznews/2021/10/79d42b511a44b7c3.html 通関 2021-10-28 15:20:00
ニュース ジェトロ ビジネスニュース(通商弘報) 1~9月の輸出は前年同期比26.2%増、半導体などが牽引 https://www.jetro.go.jp/biznews/2021/10/ce7ef7947335720d.html 前年同期 2021-10-28 15:10:00
ニュース ジェトロ ビジネスニュース(通商弘報) ブラジル・中国ビジネス委員会、CO2排出量取引の実現に向け提言 https://www.jetro.go.jp/biznews/2021/10/aa3cdde22f1f1158.html 中国ビジネス 2021-10-28 15:05:00
ニュース BBC News - Home Budget 2021: Millions will be worse off in 2022, says IFS https://www.bbc.co.uk/news/business-59076532?at_medium=RSS&at_campaign=KARANGA standards 2021-10-28 15:34:52
ニュース BBC News - Home Covid: All countries to be removed from England's travel red list https://www.bbc.co.uk/news/uk-59063818?at_medium=RSS&at_campaign=KARANGA cases 2021-10-28 15:23:21
ニュース BBC News - Home UK boat detained by France amid fishing rights row https://www.bbc.co.uk/news/uk-59073715?at_medium=RSS&at_campaign=KARANGA minister 2021-10-28 15:20:15
ニュース BBC News - Home Emiliano Sala: Fatal flight organiser David Henderson convicted https://www.bbc.co.uk/news/uk-wales-59062626?at_medium=RSS&at_campaign=KARANGA henderson 2021-10-28 15:14:25
ニュース BBC News - Home Nazanin Zaghari-Ratcliffe: Husband vows to continue hunger strike https://www.bbc.co.uk/news/uk-59079853?at_medium=RSS&at_campaign=KARANGA hunger 2021-10-28 15:12:21
ニュース BBC News - Home Angela Rayner: Man sentenced for threats to Labour deputy leader https://www.bbc.co.uk/news/uk-england-59079392?at_medium=RSS&at_campaign=KARANGA angela 2021-10-28 15:48:21
ニュース BBC News - Home Sir David Amess' pet named Westminster Dog of the Year https://www.bbc.co.uk/news/uk-england-essex-59076946?at_medium=RSS&at_campaign=KARANGA bulldog 2021-10-28 15:51:07
ニュース BBC News - Home Covid passes set to stay as Europe heads for winter https://www.bbc.co.uk/news/world-europe-58973334?at_medium=RSS&at_campaign=KARANGA covid 2021-10-28 15:42:12
ニュース BBC News - Home Why Xavi will be next Barcelona boss - despite president’s uncertainty https://www.bbc.co.uk/sport/football/59075418?at_medium=RSS&at_campaign=KARANGA Why Xavi will be next Barcelona boss despite president s uncertaintyBarcelona legend Xavi will be confirmed as the new manager soon even if club president Joan Laporta does have reservations writes Guillem Balague 2021-10-28 15:43:07
ニュース BBC News - Home Dominant Raducanu reaches quarter-finals in Romania - but Norrie beaten in Vienna https://www.bbc.co.uk/sport/tennis/59071114?at_medium=RSS&at_campaign=KARANGA Dominant Raducanu reaches quarter finals in Romania but Norrie beaten in ViennaBritain s Emma Raducanu produces a composed display to beat Romania s Ana Bogdan in straight sets and reach the Transylvania Open quarter finals 2021-10-28 15:12:47
ニュース BBC News - Home Budget claims fact-checked https://www.bbc.co.uk/news/59078215?at_medium=RSS&at_campaign=KARANGA alcohol 2021-10-28 15:09:09
ビジネス ダイヤモンド・オンライン - 新着記事 中国、一部ネット証券会社の業務は「違法」 関連株急落 - WSJ発 https://diamond.jp/articles/-/286127 関連株 2021-10-29 00:03:00
京都 烏丸経済新聞 コロナ禍明けの京都旅行、次のトレンドは 関係者ら集まる http://karasuma.keizai.biz/headline/3638/ 京都信用金庫 2021-10-29 00:15:17

コメント

このブログの人気の投稿

投稿時間: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件)