AWS |
AWS Big Data Blog |
Prepare, transform, and orchestrate your data using AWS Glue DataBrew, AWS Glue ETL, and AWS Step Functions |
https://aws.amazon.com/blogs/big-data/prepare-transform-and-orchestrate-your-data-using-aws-glue-databrew-aws-glue-etl-and-aws-step-functions/
|
Prepare transform and orchestrate your data using AWS Glue DataBrew AWS Glue ETL and AWS Step FunctionsData volumes in organizations are increasing at an unprecedented rate exploding from terabytes to petabytes and in some cases exabytes As data volume increases it attracts more and more users and applications to use the data in many different waysーsometime referred to as data gravity As data gravity increases we need to find tools and … |
2021-10-07 19:21:46 |
AWS |
AWS DevOps Blog |
Target cross-platform Go builds with AWS CodeBuild Batch builds |
https://aws.amazon.com/blogs/devops/target-cross-platform-go-builds-with-aws-codebuild-batch-builds/
|
Target cross platform Go builds with AWS CodeBuild Batch buildsMany different operating systems and architectures could end up as the destination for our applications By using a AWS CodeBuild batch build we can run builds for a Go application targeted at multiple platforms concurrently Cross compiling Go binaries for different platforms is as simple as setting two environment variables GOOS and GOARCH regardless of the … |
2021-10-07 19:23:48 |
AWS |
AWS Machine Learning Blog |
Build your own brand detection and visibility using Amazon SageMaker Ground Truth and Amazon Rekognition Custom Labels – Part 2: Training and analysis workflows |
https://aws.amazon.com/blogs/machine-learning/part-2-build-your-own-brand-detection-and-visibility-using-amazon-sagemaker-ground-truth-and-amazon-rekognition-custom-labels-training-and-analysis-workflows/
|
Build your own brand detection and visibility using Amazon SageMaker Ground Truth and Amazon Rekognition Custom Labels Part Training and analysis workflowsIn Part of this series we showed how to build a brand detection solution using Amazon SageMaker Ground Truth and Amazon Rekognition Custom Labels The solution was built on a serverless architecture with a custom user interface to identify a company brand or logo from video content and get an in depth view of screen … |
2021-10-07 19:12:08 |
AWS |
AWS |
How do I request a concurrency limit increase for my Lambda function? |
https://www.youtube.com/watch?v=u2XQYNiA9Vk
|
How do I request a concurrency limit increase for my Lambda function Skip directly to the demo For more details see the Knowledge Center article with this video Pallavi shows you how to request a concurrency limit increase for your Lambda function Introduction What is concurrency How to find your Lambda function s needed concurrency limit Things to consider before requesting a concurrency limit increase Submitting a concurrency limit increase request for your Lambda function As a best practice add the following to details to your concurrency increase request Ending |
2021-10-07 19:19:14 |
js |
JavaScriptタグが付けられた新着投稿 - Qiita |
何でもかんでも非同期通信に頼るのは良くない? |
https://qiita.com/m-kawakami/items/43424eedf0c8235597ad
|
つまり、ユーザーは、ウェブサーバーに非同期呼び出しを行うことで、ページ全体の読み込みを待つ必要がありません。 |
2021-10-08 04:53:19 |
海外TECH |
Ars Technica |
Lunar samples returned by Chang’e-5 tell of recent volcanism |
https://arstechnica.com/?p=1802125
|
samples |
2021-10-07 19:42:45 |
海外TECH |
DEV Community |
Build a Restful CRUD API with Node.js |
https://dev.to/zagaris/build-a-restful-crud-api-with-node-js-2334
|
Build a Restful CRUD API with Node js What CRUD API means The CRUD paradigm stands for the four primitive database operations that are CREATE READ UPDATE and DELETE So with the term CRUD API we mean the API which have the ability to create read update and delete entities from a database For this example the entity is the employee Let s BeginAPI Endpoints are the followingMethodsUrlsDescriptionGETapi employeesGet all employeesGETapi employees idGet a specific employeePOSTapi employeesCreate a new employeePUTapi employees idUpdate an existing employeeDELETEapi employees idDelete an existing employeeWe create the repository and install the dependencies The entry point is the server js file mkdir express api cd express api npm init npm install express helmet morgan body parser monk joi dotenv save npm install nodemon save devAbout the packagesexpress It is a minimal and flexible Node js web application framework helmet It helps in securing HTTP headers in express applications morgan It is an HTTP request logger middleware for Node jsbody parser It is responsible for parsing the incoming request bodies monk A tiny layer that provides substantial usability improvements for MongoDB usage joi It is an object schema description language and object validator dotenv It loads environment variables from a env file nodemon It restarts automatically the node application when file changes in the directory have been detected Setup Express Web Server src server jsconst express require express const morgan require morgan const helmet require helmet const bodyParser require body parser require dotenv config const app express const monk require monk app use helmet app use morgan dev app use bodyParser json const port process env PORT app listen port gt console log Listening on port port Create and configure the env file envIt contains all the enviroment variables that we use TEST DB URL variable is for test cases in order to prevent the insertion of test data in the database Also you can specify the port number you want DB URL localhost my employeesTEST DB URL localhost test my employeesPORT src db schema jsCreate the data schema and define the validation rules that the properties name and job have to follow const Joi require joi const schema Joi object name Joi string min max required job Joi string min max required module exports schema src db connection jsConnect to the databaseconst monk require monk let dbUrl process env DB URL if process env NODE ENV test dbUrl process env TEST DB URL const db monk dbUrl module exports db src middlewares index jsCreate the error middleware to handle the errors and give properly responses function notFound req res next res status const error new Error Not Found req originalUrl next error function errorHandler err req res next res status res statusCode res json message err message stack err stack module exports notFound errorHandler We import src db connection js src db schema js and src middlewares index js files in src server jsconst express require express const morgan require morgan const helmet require helmet const bodyParser require body parser const notFound errorHandler require middlewares require dotenv config const schema require db schema const db require db connection const employees db get employees const app express app use helmet app use morgan dev app use bodyParser json app use notFound app use errorHandler const port process env PORT app listen port gt console log Listening on port port Now we code the API Endpointsconst express require express const morgan require morgan const helmet require helmet const bodyParser require body parser const notFound errorHandler require middlewares require dotenv config const schema require db schema const db require db connection const employees db get employees const app express app use helmet app use morgan dev app use bodyParser json Get all employees app get async req res next gt try const allEmployees await employees find res json allEmployees catch error next error Get a specific employee app get id async req res next gt try const id req params const employee await employees findOne id id if employee const error new Error Employee does not exist return next error res json employee catch error next error Create a new employee app post async req res next gt try const name job req body const result await schema validateAsync name job const employee await employees findOne name Employee already exists if employee res status conflict error const error new Error Employee already exists return next error const newuser await employees insert name job console log New employee has been created res status json newuser catch error next error Update a specific employee app put id async req res next gt try const id req params const name job req body const result await schema validateAsync name job const employee await employees findOne id id Employee does not exist if employee return next const updatedEmployee await employees update id id set result upsert true res json updatedEmployee catch error next error Delete a specific employee app delete id async req res next gt try const id req params const employee await employees findOne id id Employee does not exist if employee return next await employees remove id id res json message Success catch error next error app use notFound app use errorHandler const port process env PORT app listen port gt console log Listening on port port We go to the package json file and replace the script section with the following scripts start node src server js dev nodemon src server js The command npm start starts the Node js application and the command npm run dev starts the Node js application with the only difference that any change we do will automatically be monitored by nodemon We split the src server js and create the src app js file src app jsconst express require express const morgan require morgan const helmet require helmet const bodyParser require body parser const notFound errorHandler require middlewares require dotenv config const schema require db schema const db require db connection const employees db get employees const app express app use helmet app use morgan dev app use bodyParser json Get all employees app get async req res next gt try const allEmployees await employees find res json allEmployees catch error next error Get a specific employee app get id async req res next gt try const id req params const employee await employees findOne id id if employee const error new Error Employee does not exist return next error res json employee catch error next error Create a new employee app post async req res next gt try const name job req body const result await schema validateAsync name job const employee await employees findOne name Employee already exists if employee res status conflict error const error new Error Employee already exists return next error const newuser await employees insert name job console log New employee has been created res status json newuser catch error next error Update a specific employee app put id async req res next gt try const id req params const name job req body const result await schema validateAsync name job const employee await employees findOne id id Employee does not exist if employee return next const updatedEmployee await employees update id id set result upsert true res json updatedEmployee catch error next error Delete a specific employee app delete id async req res next gt try const id req params const employee await employees findOne id id Employee does not exist if employee return next await employees remove id id res json message Success catch error next error app use notFound app use errorHandler module exports app src server jsconst app require app const port process env PORT app listen port gt console log Listening on port port Last step is to refactor our code and create src routes employees src routes employees jsconst express require express const schema require db schema const db require db connection const employees db get employees const router express Router Get all employees router get async req res next gt try const allEmployees await employees find res json allEmployees catch error next error Get a specific employee router get id async req res next gt try const id req params const employee await employees findOne id id if employee const error new Error Employee does not exist return next error res json employee catch error next error Create a new employee router post async req res next gt try const name job req body const result await schema validateAsync name job const employee await employees findOne name Employee already exists if employee const error new Error Employee already exists res status conflict error return next error const newuser await employees insert name job res status json newuser catch error next error Update a specific employee router put id async req res next gt try const id req params const name job req body const result await schema validateAsync name job const employee await employees findOne id id Employee does not exist if employee return next const updatedEmployee await employees update id id set result upsert true res json updatedEmployee catch error next error Delete a specific employee router delete id async req res next gt try const id req params const employee await employees findOne id id Employee does not exist if employee return next await employees remove id id res json message Employee has been deleted catch error next error module exports router and the src app js file looks like thisconst express require express const morgan require morgan const helmet require helmet const bodyParser require body parser const notFound errorHandler require middlewares const app express require dotenv config app use helmet app use morgan dev app use bodyParser json const employees require routes employees app use api employees employees app use notFound app use errorHandler module exports app You can check the whole project at my github repository express api |
2021-10-07 19:46:13 |
海外TECH |
DEV Community |
Day 3: Python Functions. |
https://dev.to/phylis/day-3-python-functions-4745
|
Day Python Functions Day of DaysOfPython ️What is a Function in Python ️How to define and call a function in Python ️Function Parameters Vs Arguments ️Type of arguments in Function ️Recursive and Lambda FunctionFunction is a block of organized reusable code that is used to perform a single related action Syntaxdef functionname parameters function docstring function suite return expression From the above syntax def keyword is used to declare and define a function def is a short form for define function functionname is used to uniquely identify the function Parameters arguments through which we pass values to a function marks the end of function header function docstring describes what the function does return statement returns the value from the function Exampledef myFun define function name print Welcome to my blog myFun call to print the statement Parameters Vs Arguments ParametersThey are the variables that are used within the function and are declared in the function header ArgumentsArguments are the variables that are passed to the function for execution They are the actual values that are passed to the function header The argument values are assigned to the parameters of the function and therefore the function can process these parameters for the final output Example to differentiate parameters and arguments def addNumbers a b sum a b print The sum is sum addNumbers from the above example We have a function called addNumbers which contains two values inside the parenthesis a and b These two values are called parameters We have passed two values along with the function and These values are called arguments Type of arguments in Function Default arguments Default arguments are values provided while defining function and are assigned using the assignment operator Exampledef addNumbers a b result a b return resultThe above script defines a functionaddNumbers with two default arguments a and b The default value for argument a is set to and argument b is set to Keyword arguments Keyword arguments are values that when passed into a function are identifiable by specific parameter names A keyword argument is preceded by a parameter and the assignment operator The order of keyword arguments doesn t matter Positional arguments Positional arguments are values that are passed into a function based on the order in which the parameters were listed during the function definition Arbitrary positional arguments For arbitrary positional argument an asterisk is placed before a parameter in function definition which can hold non keyword variable length arguments A single asterisk signifies elements of a tuple def team members for member in members print member team Phylis Mary OutputPhylisMaryArbitrary keyword arguments For arbitrary keyword arguments a double asterisk is placed before a parameter in a function which can hold keyword variable length arguments Double asterisks signify elements of a dictionary exampledef fn a for i in a items print i fn name Korir course Computer science Hobby coding output name Korir course Computer science Hobby coding Python Recursive Functions A recursive function is a function that calls itself and always has condition that stops calling itself Where do we use recursive functions in programming To divide a big problem that s difficult to solve into smaller problems that are easier to solve In data structures and algorithms like trees graphs and binary searches Recursive Function Examples Count Down to Zerocountdown takes a positive number as an argument and prints the numbers from the specified argument down to zero def countdown n print n if n return Terminate recursion else countdown n Recursive callcountdown Output Calculating the sum of a sequenceRecursive functions makes a code shorter and readable Suppose we want to calculate the sum of sequence from to n instead of using for loop with range function we can use recursive function def sum n if n gt return n sum n return result sum print result Python Lambda Expressions A lambda function is a small anonymous function that can take any number of arguments but can only have one expression Syntaxlambda arguments expressionExamples def times n return lambda x x ndouble times result double print result result double print result OutputFrom the above example times function returns a function which is a lambda expression |
2021-10-07 19:21:34 |
海外TECH |
DEV Community |
Python Business Idea: What You Must Do If You Know Python |
https://dev.to/motivatedman/python-business-idea-what-you-must-do-if-you-know-python-2anb
|
Python Business Idea What You Must Do If You Know PythonBesides the fact that Python is one of the most in demand languages globally so it can be a great language to get a job everyone can try many other easy business ideas You might do a job or you have just finished the language and thinking to start working on it In whatever circumstances you are the following startup idea will worth your time Let s start with the story how I discovered that Python could be highly beneficial for any developer as a side business and as a full time business I was researching web development business ideas and I realized that many people make some handsome money without much effort even with a single language Many developers are teaching Python on YouTube and there are millions of views on each video Let s see how much beneficial it could be to start a YouTube channel to teach Python Starting a YouTube ChannelYouTube was started back in it was an entertaining platform but that s an older thing People have literally changed in the last two decades For instance they moved from Yahoo to Google and Facebook So they moved to YouTube It did not remain an entertaining platform and became the second largest search engine with the largest content data The monetization of video gave people a huge opportunity to become self employed To make a long story short it s has become th biggest opportunity to help people solve their problems But solving problems won t be for nothing It will give you huge benefits in return And as Python has been a highly in demand language if you simply teach pretty easy things on your YouTube channel that you start it will be highly paying The question might arise in your mind How can it be highly beneficial to start a YouTube channel The reason is that RPM and CPC for this language are pretty high CPC of Keyword Python Tutorial It s huge Secondly all those learning Python are not ordinary users They are premium users many of them will buy apps for development like MockPlus or Adobe Dreamweaver And some will be interested to learn it hard from your premium course For example someone I trusted recommended me Rapidload for my blog and I just purchased it without any hesitation The third income source for your channel will be sponsors once you build an audience you will simply get dozens of opportunities to make sponsored videos Thus wherever you are whatever you are doing the YouTube business could be your biggest side business that will make you self employed pretty soon Your channel will be your asset Each video you make will be the property of your channel so if you even make fewer videos once the effect will be the compound effect How much will it cost to start your channel If you made your mind to your channel the next question surely be the startup cost It won t be a high amount of channel Let s accumulate it You need a laptop for your startup Indeed you must already have one but if you don t have one then you can get it for under Here are the best fastest laptops under dollars Become YouTube Master in a day It will cost you almost free You can pick any course from Udemy I got this one for you So overall it will be a total of investment if you already have a laptop otherwise it will be up to That s not a big deal because in return you will be making thousands of dollars a month |
2021-10-07 19:19:55 |
海外TECH |
Engadget |
The Geneva International Motor Show is canceled for a third straight year |
https://www.engadget.com/2022-geneva-international-motor-show-canceled-190522942.html?src=rss
|
The Geneva International Motor Show is canceled for a third straight yearThe Geneva International Motor Show GIMS won t go forward due to the coronavirus pandemic Following cancellations in and the trade show was supposed to return on February th but that s no longer happening Organizers are billing the move not as a cancellation but as a postponement that will see GIMS come back as a “more impactful event in “The decision to cancel GIMS was made with the best interests of both car manufacturers and automotive fans in mind said the Committee and Council of the Foundation “Salon International de l Automobile which is responsible for organizing the auto show The group blamed the impact COVID has had both on travel and event restrictions and automakers through the global semiconductor supply for the decision We ve seen plenty of other auto shows get canceled in but the way GIMS continues to struggle is not a good sign for the industry Pre pandemic it was one of the largest car shows in the world It would usually attract more than visitors including some journalists to Swizterland Beyond its sheer size and scale the show was particularly known for all the new and wild concepts cars that would debut on its floor |
2021-10-07 19:05:22 |
海外科学 |
NYT > Science |
Paula J. Clayton Dies at 86; Helped Destigmatize Depression and Suicide |
https://www.nytimes.com/2021/10/07/science/paula-j-clayton-dead.html
|
Paula J Clayton Dies at Helped Destigmatize Depression and SuicideA clinical psychiatrist she showed that suicide was often the result of mental illness and that it could be avoided with the right treatment and public education |
2021-10-07 19:46:05 |
海外科学 |
NYT > Science |
Sometimes Life Imitates Art. William Shatner Is Headed To Space With Blue Origin. |
https://www.nytimes.com/2021/10/07/style/shatner-bezos-blue-origin.html
|
Sometimes Life Imitates Art William Shatner Is Headed To Space With Blue Origin Next week in a thoroughly modern blurring of reality and fiction William Shatner will soar to space with Blue Origin Do you care |
2021-10-07 19:33:16 |
海外科学 |
NYT > Science |
C.D.C. Urges Flu Shots to Reduce Strain on Health Care System |
https://www.nytimes.com/2021/10/07/health/cdc-flu-shot-covid.html
|
C D C Urges Flu Shots to Reduce Strain on Health Care SystemHealth officials released a survey showing that nearly one in four people at higher risk for flu related complications indicated they did not intend to get the flu vaccine |
2021-10-07 19:39:08 |
海外科学 |
NYT > Science |
U.S. Agencies Worry Most About These Climate Threats |
https://www.nytimes.com/2021/10/07/climate/climate-threats-federal-government.html
|
american |
2021-10-07 19:12:30 |
ニュース |
BBC News - Home |
UK travel red list cut to just seven countries |
https://www.bbc.co.uk/news/uk-58833088?at_medium=RSS&at_campaign=KARANGA
|
mexico |
2021-10-07 19:08:37 |
ニュース |
BBC News - Home |
Newcastle United: Saudi Arabian-backed takeover completed |
https://www.bbc.co.uk/sport/football/58826899?at_medium=RSS&at_campaign=KARANGA
|
newcastle |
2021-10-07 19:24:25 |
ニュース |
BBC News - Home |
Coronavirus: Nightclubs to reopen as social distancing scrapped |
https://www.bbc.co.uk/news/uk-northern-ireland-58823665?at_medium=RSS&at_campaign=KARANGA
|
october |
2021-10-07 19:03:35 |
ニュース |
BBC News - Home |
Newcastle takeover: Amanda Staveley talks about hopes for club, investment plans and Saudi involvement |
https://www.bbc.co.uk/sport/av/football/58828914?at_medium=RSS&at_campaign=KARANGA
|
Newcastle takeover Amanda Staveley talks about hopes for club investment plans and Saudi involvementNew Newcastle United part owner Amanda Staveley speaks to BBC sports editor Dan Roan about her hopes and ambitions for the club |
2021-10-07 19:00:41 |
ニュース |
BBC News - Home |
New travel rules: What are the red list countries and do I need a test? |
https://www.bbc.co.uk/news/explainers-52544307?at_medium=RSS&at_campaign=KARANGA
|
countries |
2021-10-07 19:10:28 |
ビジネス |
ダイヤモンド・オンライン - 新着記事 |
任天堂が絶好調の今、あえて“驚きのない”新型Switchを発売する3つの勝機 - 事例で身に付く 超・経営思考 |
https://diamond.jp/articles/-/284116
|
任天堂が絶好調の今、あえて“驚きのない新型Switchを発売するつの勝機事例で身に付く超・経営思考コロナ禍の巣ごもり需要拡大を追い風に、年月期には過去最高益を記録した任天堂。 |
2021-10-08 04:50:00 |
ビジネス |
ダイヤモンド・オンライン - 新着記事 |
ANAが「マイル会員」活用事業を強化、半数が世帯年収1000万円超の優良顧客! - コロナ後のエアライン |
https://diamond.jp/articles/-/283553
|
|
2021-10-08 04:45:00 |
ビジネス |
ダイヤモンド・オンライン - 新着記事 |
真鍋淑郎、「世界で最もぜいたくにコンピュータを使った男」の知られざる研究半生 - 『週刊ダイヤモンド』特別レポート |
https://diamond.jp/articles/-/284204
|
真鍋淑郎 |
2021-10-08 04:40:00 |
ビジネス |
ダイヤモンド・オンライン - 新着記事 |
イトーヨーカドーのEC戦略はレコメンド機能にあり?AIが持つ3つのスキル - News&Analysis |
https://diamond.jp/articles/-/281640
|
newsampampanalysisai |
2021-10-08 04:35:00 |
ビジネス |
ダイヤモンド・オンライン - 新着記事 |
「論破する人」として嫌われないための、簡単な思考方法とは - 「キレない」技術 アンガーマネジメント入門 |
https://diamond.jp/articles/-/283910
|
非常 |
2021-10-08 04:30:00 |
ビジネス |
ダイヤモンド・オンライン - 新着記事 |
地方鉄道の「ひたちなか海浜鉄道」、異例の延伸が決まった理由 - News&Analysis |
https://diamond.jp/articles/-/283960
|
地方鉄道の「ひたちなか海浜鉄道」、異例の延伸が決まった理由NewsampampAnalysis茨城県ひたちなか市の第三セクター、ひたちなか海浜鉄道の湊線は、勝田駅阿字ヶ浦駅間キロを結ぶ非電化ローカル線で、起点の勝田はJR東日本常磐線に接続している。 |
2021-10-08 04:25:00 |
ビジネス |
ダイヤモンド・オンライン - 新着記事 |
富士通が地銀勘定系システムから実質撤退、共同利用システム加盟行がゼロに - DOL特別レポート |
https://diamond.jp/articles/-/284260
|
probank |
2021-10-08 04:22:00 |
ビジネス |
ダイヤモンド・オンライン - 新着記事 |
コロナ禍のリベンジ消費は日本経済を回復させるのか? - 今週もナナメに考えた 鈴木貴博 |
https://diamond.jp/articles/-/284202
|
日本経済 |
2021-10-08 04:20:00 |
ビジネス |
ダイヤモンド・オンライン - 新着記事 |
取引先のコロナリスクを見極める「4つの決算数値」、帝国データバンクが解説 - 倒産のニューノーマル |
https://diamond.jp/articles/-/284141
|
取引先のコロナリスクを見極める「つの決算数値」、帝国データバンクが解説倒産のニューノーマル政府による資金繰り支援などにより、コロナ禍にもかかわらず倒産件数は低水準で推移している。 |
2021-10-08 04:15:00 |
ビジネス |
ダイヤモンド・オンライン - 新着記事 |
死刑廃止の世界に取り残される「死んでおわび」の日本文化 - DOL特別レポート |
https://diamond.jp/articles/-/283992
|
日本文化 |
2021-10-08 04:10:00 |
ビジネス |
ダイヤモンド・オンライン - 新着記事 |
女性のセカンドキャリアに立ちはだかる、男性にはない「7つの壁」 - 誰も教えてくれない「女性の定年」危機 |
https://diamond.jp/articles/-/284201
|
女性のセカンドキャリアに立ちはだかる、男性にはない「つの壁」誰も教えてくれない「女性の定年」危機年月、高年齢者雇用安定法の改正で歳までの就労確保が企業の努力義務となった。 |
2021-10-08 04:05:00 |
ビジネス |
東洋経済オンライン |
四季報最新号で判明「コロナ禍でも絶好調な業種」 全産業ベースの今期営業利益は22.1%増に | 市場観測 | 東洋経済オンライン |
https://toyokeizai.net/articles/-/459656?utm_source=rss&utm_medium=http&utm_campaign=link_back
|
営業利益 |
2021-10-08 04:30:00 |
コメント
コメントを投稿