js |
JavaScriptタグが付けられた新着投稿 - Qiita |
React@18 での Signals もどき |
https://qiita.com/uniho/items/baee7b7bcae02b8452a5
|
intro |
2022-09-10 15:25:50 |
Ruby |
Rubyタグが付けられた新着投稿 - Qiita |
配列 と 集合 |
https://qiita.com/tadume/items/022043f31462bbd79ee3
|
numbe |
2022-09-10 15:49:15 |
Ruby |
Rubyタグが付けられた新着投稿 - Qiita |
配列の先頭、末尾に追加する |
https://qiita.com/masatom86650860/items/ce246d3ad4bdc16a368d
|
tirbmaingtaunshiftabgtabi |
2022-09-10 15:47:30 |
Ruby |
Rubyタグが付けられた新着投稿 - Qiita |
配列 の 基本的な扱い方 |
https://qiita.com/tadume/items/4a6e3c99d703e23e4869
|
array |
2022-09-10 15:31:57 |
AWS |
AWSタグが付けられた新着投稿 - Qiita |
第6回 The Twelve-Factor App on AWS & Django(AWSで初期設定をしようー後編) |
https://qiita.com/satsuma0711/items/e0c79a8f5fbc872c0957
|
thetwelvefactorappon |
2022-09-10 15:14:31 |
AWS |
AWSタグが付けられた新着投稿 - Qiita |
IoT Core で QoS 1 を使ったメッセージの送受信方法を確認してみた |
https://qiita.com/sugimount-a/items/62add4b7d3a96816100e
|
awsiot |
2022-09-10 15:14:11 |
Docker |
dockerタグが付けられた新着投稿 - Qiita |
DockerでReactを立ち上げる |
https://qiita.com/jpsuzuki/items/cb27230f74e973f0e72b
|
fromnode |
2022-09-10 15:25:53 |
Docker |
dockerタグが付けられた新着投稿 - Qiita |
Docker+DNS入門 その1:CoreDNSを用いた権威DNSサーバ構築 |
https://qiita.com/miwamoto/items/2a8befac7135bd21e08a
|
coredns |
2022-09-10 15:13:23 |
海外TECH |
DEV Community |
🐬 AWS CDK 101 -🐠 Send message across accounts using SNS topic and SQS |
https://dev.to/aws-builders/aws-cdk-101-send-message-across-accounts-using-sns-topic-and-sqs-h2i
|
AWS CDK Send message across accounts using SNS topic and SQSBeginners new to AWS CDK please do look at my previous articles one by one in this series If in case missed my previous article do find it with the below links Original previous post at Dev PostReposted the previous post at dev to aravindvcyberAlso we have started to develop an open source project which we would be using to play around with refracting the architecture as well as learn CDK stuff at the same time we will provide something useful for our community Find more about this discussed in the article below Original project post at Dev PostReposted project post at dev to aravindvcyberevent forwarder Github repo Cross Account sendMessage Earlier in our article we have seen how to use custom Eventbridge and SQS by configuring an event rule and target which shifts the messages to the sqs queue and extended the same to remote stacks as well Now let us make one more addition to our stack by retrieving the dlq messages from the remote stack across regions to our processor region Original post at Dev PostReposted at dev to aravindvcyberTo start with we will be first discussing how to start polling the messages from the dlq using a lambda processor Before that let us set up a lambda layer that will have our external dependencies necessary for logging and monitoring export const generateLayerVersion scope Construct layerName string props Partial lt LayerVersion gt LayerVersion gt return new LayerVersion scope layerName defaultLayerProps code Code fromAsset join dirname layers layerName props const powertoolsSDK generateLayerVersion this powertoolsSDK exportOutput this powertoolsSDKArn powertoolsSDK layerVersionArn Lambda processor definition 🪴Here you can find the definition of the lambda function which will be used to poll messages from dlq and push to SNS topic const failedMessageAggregator new Function this failedMessageAggregator code Code fromAsset dist lambda failed message aggregator handler failed message aggregator handler commonLambdaProps functionName failedMessageAggregator layers powertoolsSDK environment TOPIC ARN remoteStackEventTargetDlqSns topicArn TZ config get timeZone LOCALE config get locale failedMessageAggregator applyRemovalPolicy RemovalPolicy DESTROY Lambda handler code The full and latest code should be found in the git hub repo below failed message aggregator tsclass Lambda implements LambdaInterface tracer captureMethod private async processSQSRecord rec SQSRecord logger info Fetching DLQ message rec const params PublishInput Message rec body Subject Forwarding event message to SNS topic TopicArn process env TOPIC ARN const snsResult PublishResponse await sns publish params promise logger info Success params snsResult public async handler event SQSEvent try await Promise all event Records map async rec SQSRecord gt await this processSQSRecord rec return statusCode headers Content Type text json body EventsReceived event Records length catch error logger error Error error return statusCode headers Content Type text json body EventsReceived event Records length Error error Event Source mapping DLQ to lambda Here we will map the remote dlq to trigger the lambda which we have built above failedMessageAggregator addEventSource new SqsEventSource remoteStackEventTargetDlq queue batchSize maxBatchingWindow Duration seconds SNS topic to push to subscribers This topic will be used to receive messages from the lambda and push into relevant subscriber channels Here we will subscribe this to common dlq in the processor stack const remoteStackEventTargetDlqSns new Topic this remoteStackEventTargetDlqSns displayName remoteStackEventTargetDlqSns topicName remoteStackEventTargetDlqSns remoteStackEventTargetDlqSns applyRemovalPolicy RemovalPolicy DESTROY exportOutput this remoteStackEventTargetDlqSnsArn remoteStackEventTargetDlqSns topicArn Granting access to lambda to Send Message Now will be grant access to the lambda function to send messages as the producer remoteStackEventTargetDlqSns grantPublish failedMessageAggregator Two way handshake to link SNS to SQS With regards to sns and sqs in different account it is essential to set up the two way handshake for this there have to be two actions allowed one at each end sns Subscribe in remote topicsqs SendMessage in consumer queue subscriber Remote stack configurations Granting access to processor account to subscribeHere we will be granting access to processor account resources to subscribe to this topic as follows remoteStackEventTargetDlqSns addToResourcePolicy new PolicyStatement sid Cross Account Access to subscribe effect Effect ALLOW principals new AccountPrincipal targetAccount actions sns Subscribe resources remoteStackEventTargetDlqSns topicArn Processor stack configurations ️remoteAccounts map account string gt remoteRegions map region string gt Here we will be adding the reference and the subscription Referencing to the remote topicIn the processor stack we will be getting the reference to the relevant topics as follows const remoteStackEventTargetDlqSns Topic fromTopicArn this remoteStackEventTargetDlqSns region account arn aws sns region account remoteStackEventTargetDlqSns Subscribing to the remote topicHere we will be subscribing to the processor region dlq to receive the messages from the remote region SNS topic as follows Note it is highly recommended to subscribe from the consumer stack so that the subscription gets auto confirmed else there will be another confirmation step you may need to do from the console or confirmation message to do that yourself const subProps SqsSubscriptionProps rawMessageDelivery true remoteStackEventTargetDlqSns addSubscription new aws sns subscriptions SqsSubscription stackEventTargetDlq queue subProps The above subscription setup from the processor stack also grants the sqs SendMessage implicitly while the subscription is created Conclusion With this approach just like how we pooled the remote cfn events to a common event bridge across regions and accounts we are also able to get the remote dlq events to a common dlq These messages in dlq can be inspected without switching to another region or account which the maintainer doesn t have any access This will be extremely useful when you build similar event driven solutions We will be talking about more similar engineering concepts as we refactor and refine the event forwarder project Keep following for similar posts on engineering with IaC primarily using AWS CDK and Serverless Also feel free to contribute to the progress of the below solution with your comments and issues maybe you can also do a pr if you feel it can help our community event forwarder Github repoOriginal project post at Dev PostReposted project post at dev to aravindvcyberWe have our next article in serverless and IaC do check outThanks for supporting Would be great if you like to Buy Me a Coffee to help boost my efforts Original post at Dev PostReposted at dev to aravindvcyber |
2022-09-10 06:43:54 |
海外TECH |
DEV Community |
Data science as a career path |
https://dev.to/clubtechpro/data-science-as-a-career-path-n35
|
Data science as a career pathIntroduction Beginning a career path in data science is one of the most popular today and is predicted to grow further in the next few years but before pursuing a career it s better to understand what data is and the career aspects that it entails First off what is data Data Data can be said to be a collection of facts figures or details in general about people places or things Data is everywhere around us today from the number of tweets we post a day to our unique bank accounts number when dealing with this much data generated regularly there is a need to filter store and manage them Data can be classified into types qualitative and quantitative data Qualitative data is the non numerical type of data consisting of descriptions and letters like job title company names and so on Quantitative data are data that are numerical in format and can be counted Classes of dataData can be classified into three forms Unstructured data This type of data which is unarranged and raw format these types of data require several pre processing and tuning to be understood and able to gain insight These types of data are gotten from data lakes Semi structured data Semi structured data are those which are partially structured but do not have a fixed form this kind of data may contain missing values but are possible to find relations or structure Structured data These are data that have been arranged in a relational database format and can be easy to understand use and draw insight from Data paths When talking about data science t different data paths are interrelated but quite stand out in certain areas they are Data engineers These are the people who focus on data collection and database creation from raw unstructured or semi structured data They use their advanced engineering skills to manage a large amount of data gathered using cloud based software to produce a structured data model Data analysts They have the responsibility to be able to draw insights from data given by the data engineers they organize and visualize the data as well as create dashboards for easy and proper understanding of the data using various tools Data scientist They have the responsibility of drawing insights from data and creating prediction models for the target value of the company then presenting and visualizing the model and how it works to improve business and the industry Machine learning engineers They focus on creating machine learning models with already cleaned and structured data and utilizing deep learning neural networks to create models for the use of the company and deployment Skills required when becoming a data scientist Good communication skills Some working with data cannot handle it alone most companies hire several data scientists or their services so working on a team requires good collaboration and communication skills Data cleaning A good data scientist should be able to clean data and clear missing values in data Ability to visualize data rightly A good day scientist should have good visualization skills knowing what to visualize and the best way to do so Programming skills A good data scientist should know how to program or code as it has many uses in drawing insight and building models for data Required languages to learn include python or and R programming language SQL Good storytelling skills A good data scientist should be able to not only speak technically but also be able to put life into the data through exemplary storytelling skills Good maths and statistics skills A good knowledge of maths and statistics are needed to understand and draw insight from data Cloud computing A good data scientist should be familiar with cloud based services and be able to operate and use them when managing data Version control Version control with git and GitHub knowledge is required when working in an organization Deployment A good data scientist should know about a model deployment with Python Flask or Django Conclusion A role in the field of data science can be quite tricky because when working with different companies they have different areas of focus and you might be required to do mainly a sub field that you might not want to but in all its quite an interesting field and growing as well since no matter what data will always remain and data scientist will be needed Hope you enjoyed this article read like and comment thanks |
2022-09-10 06:26:54 |
海外TECH |
DEV Community |
Cheapest Flights Within K Stops |
https://dev.to/salahelhossiny/cheapest-flights-within-k-stops-428m
|
Cheapest Flights Within K StopsThere are n cities connected by some number of flights You are given an array flights where flights i fromi toi pricei indicates that there is a flight from city fromi to city toi with cost pricei You are also given three integers src dst and k return the cheapest price from src to dst with at most k stops If there is no such route return class Solution def findCheapestPrice self n int flights List List int src int dst int k int gt int prices float inf n prices src for i in range k tmpPrices prices copy for s d p in flights s source d dest p price if prices s float inf continue if prices s p lt tmpPrices d tmpPrices d prices s p prices tmpPrices return if prices dst float inf else prices dst |
2022-09-10 06:20:33 |
海外科学 |
NYT > Science |
Kurt Gottfried, Physicist and Foe of Nuclear Weapons, Dies at 93 |
https://www.nytimes.com/2022/09/09/science/kurt-gottfried-dead.html
|
government |
2022-09-10 06:14:22 |
海外ニュース |
Japan Times latest articles |
Indo-Pacific Economic Framework’s fate could hinge on U.S. midterm elections |
https://www.japantimes.co.jp/news/2022/09/10/business/economy-business/2022-us-midterm-elections-ipef/
|
Indo Pacific Economic Framework s fate could hinge on U S midterm electionsDepending on election results President Joe Biden could shift his focus to trade and make the fledgling IPEF initiative into a more substantial deal |
2022-09-10 15:23:41 |
海外ニュース |
Japan Times latest articles |
To probe tornado secrets, these scientists stalk supercells |
https://www.japantimes.co.jp/news/2022/09/10/world/science-health-world/tornado-supercell-researchers-us/
|
scientists |
2022-09-10 15:30:01 |
ニュース |
BBC News - Home |
Full-mast flags and gun salutes as Charles to be proclaimed king |
https://www.bbc.co.uk/news/uk-62857578?at_medium=RSS&at_campaign=KARANGA
|
mother |
2022-09-10 06:01:10 |
北海道 |
北海道新聞 |
秋の高校野球支部予選・9月10日の試合結果 |
https://www.hokkaido-np.co.jp/article/729115/
|
北海学園 |
2022-09-10 15:18:09 |
北海道 |
北海道新聞 |
上川管内415人感染 旭川市は312人 新型コロナ |
https://www.hokkaido-np.co.jp/article/729159/
|
上川管内 |
2022-09-10 15:20:00 |
北海道 |
北海道新聞 |
後志管内90人感染 小樽市は60人 新型コロナ |
https://www.hokkaido-np.co.jp/article/729158/
|
新型コロナウイルス |
2022-09-10 15:19:00 |
コメント
コメントを投稿