IT |
ITmedia 総合記事一覧 |
[ITmedia PC USER] Shokz、スポーツ利用にも向くBluetooth接続対応の骨伝導イヤフォン「OpenRun」に小型モデルを追加 |
https://www.itmedia.co.jp/pcuser/articles/2205/24/news129.html
|
bluetooth |
2022-05-24 13:19:00 |
IT |
ITmedia 総合記事一覧 |
[ITmedia News] LINEがAI文字起こしアプリを無料提供 話者を聞き分けて記録する「分離機能」も |
https://www.itmedia.co.jp/news/articles/2205/24/news127.html
|
clovanote |
2022-05-24 13:15:00 |
TECH |
Techable(テッカブル) |
都城市で救急搬送デジタル化を検証。ビデオ通話やARグラスで司令室や病院に現場映像を伝送 |
https://techable.jp/archives/179318
|
宮崎県都城市 |
2022-05-24 04:00:43 |
AWS |
AWS Japan Blog |
Tyson Foods Inc. 社におけるコンピュータービジョン、AWS Panorama と Amazon SageMakerを活用した製造工程の自動化 |
https://aws.amazon.com/jp/blogs/news/industrial-automation-at-tyson-with-computer-vision-aws-panorama-and-amazon-sagemaker/
|
本投稿は、TysonFoodsInc社が、機械学習を活用し人工知能アプリケーションをエッジで実行する事で、食肉加工工場のプロセスを自動化しているご紹介を回に分けて紹介するブログシリーズの第回目です。 |
2022-05-24 04:39:34 |
python |
Pythonタグが付けられた新着投稿 - Qiita |
Streamlit + Web Cam |
https://qiita.com/kotai2003/items/fe7dedd03ed049ac0265
|
stream |
2022-05-24 13:24:34 |
js |
JavaScriptタグが付けられた新着投稿 - Qiita |
MapLibre GL JSと地理院標高タイルで3D地形を表示する |
https://qiita.com/Kanahiro/items/1e9c1a4ad6be76b27f0f
|
dterrain |
2022-05-24 13:39:53 |
js |
JavaScriptタグが付けられた新着投稿 - Qiita |
deno deployでWebサイトを公開する方法4種 |
https://qiita.com/access3151fq/items/5d9654874647cb7d1cc4
|
typescr |
2022-05-24 13:12:37 |
js |
JavaScriptタグが付けられた新着投稿 - Qiita |
【Javascript+CoffeeScript 】CoffeeScriptで文字列に変数を挿入する |
https://qiita.com/msht0511/items/d91bc6ef955ce5f16f10
|
coffeescript |
2022-05-24 13:03:08 |
Ruby |
Rubyタグが付けられた新着投稿 - Qiita |
【awesome_print is not working】(pry) output error: #<NoMethodError: undefined method `marshal_dump' for #<ActiveModel::Errors:xxx> |
https://qiita.com/mah666hhh/items/3067b84cd8aea9a6025f
|
【awesomeprintisnotworking】pryoutputerrorltNoMethodErrorundefinedmethodmarshaldumpxforltActiveModelErrorsxxxgt背景【awesomeprintが動かない】RubyRailsRailsコンソールの出力を見やすくするためにgemawesomeprintを使用。 |
2022-05-24 13:24:07 |
golang |
Goタグが付けられた新着投稿 - Qiita |
【Go】Ginの.IndentedJSONと.JSONの違い |
https://qiita.com/holy_engineer/items/86feea24a1b563ea37aa
|
indentedjson |
2022-05-24 13:31:20 |
Ruby |
Railsタグが付けられた新着投稿 - Qiita |
【awesome_print is not working】(pry) output error: #<NoMethodError: undefined method `marshal_dump' for #<ActiveModel::Errors:xxx> |
https://qiita.com/mah666hhh/items/3067b84cd8aea9a6025f
|
【awesomeprintisnotworking】pryoutputerrorltNoMethodErrorundefinedmethodmarshaldumpxforltActiveModelErrorsxxxgt背景【awesomeprintが動かない】RubyRailsRailsコンソールの出力を見やすくするためにgemawesomeprintを使用。 |
2022-05-24 13:24:07 |
技術ブログ |
Developers.IO |
Brazeキャンバスのオススメ設計パターン3選 |
https://dev.classmethod.jp/articles/braze-recommendation/
|
braze |
2022-05-24 04:02:36 |
海外TECH |
DEV Community |
Tutorial - Create a contract from another contract with solidity |
https://dev.to/yongchanghe/tutorial-create-a-contract-from-another-contract-with-solidity-498a
|
Tutorial Create a contract from another contract with solidityThis tutorial is meant for those with a basic knowledge of Ethereum and smart contracts who have some knowledge of Solidity The purpose of building this blog is to write down the detailed operation history and my memo for learning the dApps If you are also interested and want to get hands dirty just follow these steps below and have fun PrerequisitesRemix Getting startedFirst we create a contract named Account SPDX License Identifier MIT Adjust your own solcpragma solidity contract Account address public bank address public owner constructor address owner payable bank msg sender owner owner This contract Account has two state variables bank and owner and uses a payable constructor to initialize state variable owner We will be using another contract called AccountFactory to deploy contract Account contract AccountFactory Account public accounts function createAccount address owner external payable Account account new Account value owner accounts push account The whole contract New Sol SPDX License Identifier MIT Adjust your own solcpragma solidity contract Account address public bank address public owner constructor address owner payable bank msg sender owner owner contract AccountFactory Account public accounts function createAccount address owner external payable Account account new Account value owner accounts push account We created an Account array accounts When we deploy a new contract using contract Account we name it account and send wei to this contract and push it into accounts We make function createAccount payable since we want the newly created contract receive ETH Now time to use Remix to deploy and test our smart contract Select contract AccountFactory and click Deploy to deploy it Paste the current account address address along with Wei and click createAccount Then if we input to fetch accounts we will get the contract address that we have just deployed Let s copy this contract address accounts and paste it into At Address and switch the contract to Account and then click At Address We will get values transferred to state variable bank and owner via constructor Account We can see the owner is the address who has created the contract accounts and the bank is referred to the msg sender which is the address of contract AccountFactory Reference list PLOVPQHOWdVQwpQfwrZOPjfoq p amp index |
2022-05-24 04:23:33 |
海外TECH |
DEV Community |
💥 AWS CDK 101 - 🐣 Event source mapping with Cfn property override |
https://dev.to/aravindvcyber/aws-cdk-101-event-source-mapping-with-cfn-property-override-3laa
|
AWS CDK Event source mapping with Cfn property overrideBeginners 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 aravindvcyberIn this article we will be making a simple change in our CDK stack which eventually helps us with more optimization and control in processing streams The high level configuration which we have made to connect dynamodb streams event source with lambda in the last two articles will be optimized using event source mapping L construct with simple override with its cfn L construct as well Why we need this refactoring 🪲In our last article you can find that we are using dynamodb streams from stgMessages to delete objects from S The current configuration does not filter or distinguish the event based on the event name at the source instead we invoke the lambda unnecessary even for events other than REMOVE like INSERT and we end up making unwanted batch invocations which could have otherwise been avoided Benefits we achieve In a previous couple of articles we directly interfaced with our dynamodb streams without any filter and our lambda is processing every single one of them and optionally choosing business logic based on the CRUD operation which leads to more number of stream records processed by the lambda eventually The above scenario can be avoided by filtering using the eventName in the dynamodb stream record and selectively using only the most appropriate record needed to be processed in our specific lambda handler Here we not only get a chance to filter with CRUD operation but also you can filter with the other fields which are part of the record object this will help us filter these messages to the fullest One more thing we achieve here would be that we can offload the filtering from inside the lambda to the invocation source mapping itself and hence time and cost are saved Necessary imports in the stack Here we will be making use of the below imports in our stack file import CfnEventSourceMapping EventSourceMapping StartingPosition from aws cdk lib aws lambda Previous event source mappings Earlier we have used something like the below to configure the source to the lambda This does not have the filtering enabled and all the streams are used to invoke the lambda which leads to unwanted executions The below L construct does not yet provide a provision to add the filter and hopefully we can expect this soon const stgTableSourceProps DynamoEventSourceProps startingPosition lambda StartingPosition LATEST batchSize maxBatchingWindow Duration seconds stgMessageStreamFunc addEventSource new DynamoEventSource stgMessages stgTableSourceProps Generic event source mapping construct Due to the shortcomings discussed above we are going to try another generic L construct We will replace this with a more generic event source mapping construct as shown below for both the lambda handlers used in the previous articles Here we have added a few changes besides filtering startingPosition is changed to StartingPosition TRIM HORIZON to get the oldest item first bisectBatchOnError will split the record chunk into half and retry each half so that we can identify and isolate the problematic record from the other records while processing them inside the handler const msgDeleteEventSourceMap new EventSourceMapping this msgDeleteEventSourceMap target messageStreamFunc eventSourceArn messages tableStreamArn batchSize maxBatchingWindow Duration seconds startingPosition StartingPosition TRIM HORIZON bisectBatchOnError true msgDeleteEventSourceMap applyRemovalPolicy RemovalPolicy DESTROY const stgMsgDeleteEventSourceMap new EventSourceMapping this stgMsgDeleteEventSourceMap target stgMessageStreamFunc eventSourceArn stgMessages tableStreamArn batchSize maxBatchingWindow Duration seconds startingPosition StartingPosition TRIM HORIZON bisectBatchOnError true stgMsgDeleteEventSourceMap applyRemovalPolicy RemovalPolicy DESTROY Granting stream read to handler functions In the last two articles we have not performed this explicitly since the dynamodb event source addition to the lambda construct automatically applied for the necessary permissions Whereas in this case we may have to grant the privileges as shown below messages grantStreamRead messageStreamFunc stgMessages grantStreamRead stgMessageStreamFunc Cloudformation property override Currently we could not add the filter criteria as this EventSourceMapping L construct directly so here we have to access its L construct and add a property override as shown below for both the lambda handlers Once do note that there is much scope in the filtering pattern used here where we could include more fields to achieve the desired effect and it is not only limited to eventName only const cfnMsgDeleteEventSourceMap msgDeleteEventSourceMap node defaultChild as CfnEventSourceMapping cfnMsgDeleteEventSourceMap addPropertyOverride FilterCriteria Filters Pattern JSON stringify eventName INSERT const cfnStgMsgDeleteEventSourceMap stgMsgDeleteEventSourceMap node defaultChild as CfnEventSourceMapping cfnStgMsgDeleteEventSourceMap addPropertyOverride FilterCriteria Filters Pattern JSON stringify eventName REMOVE Issue while deploying the stack You may occasionally get an error failure to deploy the stack by then it is necessary for us to manually delete the event source mapping in the lambda either with the AWS console or using the AWS CLI as shown below The stack named CommonEventStack failed to deploy UPDATE ROLLBACK COMPLETE Resource handler returned message The event source arn arn aws dynamodb ap south table stgMessagesTable stream T and function CommonEventStack stgMessageStreamFuncFCBBF BwMFlctoc provided mapping already exists Please update or delete the existing mapping with UUID eccb af fd f ccffda AWS console to delete the mapping AWS cli to delete mapping Verify the event source mapping if it is existing as shown belowaws lambda delete event source mapping uuid Then we can delete it by executing the below commandaws lambda delete event source mapping uuid Conclusion Here we have demonstrated two things as shown below Ability to filter streams inside the generic event source mapping which is not only limited to dynamodb stream this has a lot of other applications to be used similarly for kinesis streams SQS source and a lot more sources Additionally we have learned how we can use the L construct for an L resource and override certain properties this will have a lot of use cases beyond this example We will be adding more connections to our stack and making it more usable in the upcoming articles by creating new constructs so do consider following and subscribing to my newsletter We have our next article in serverless 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-05-24 04:21:13 |
金融 |
日本銀行:RSS |
実質輸出入の動向 |
http://www.boj.or.jp/research/research_data/reri/index.htm
|
輸出入 |
2022-05-24 14:00:00 |
金融 |
日本銀行:RSS |
基調的なインフレ率を捕捉するための指標 |
http://www.boj.or.jp/research/research_data/cpi/index.htm
|
捕捉 |
2022-05-24 14:00:00 |
ニュース |
@日本経済新聞 電子版 |
「世界の100人」にゼレンスキー氏やプーチン氏 米誌
https://t.co/MOKyc5yn5S |
https://twitter.com/nikkei/statuses/1528963808819318784
|
世界 |
2022-05-24 04:59:13 |
ニュース |
@日本経済新聞 電子版 |
Zoom、コロナ「正常化」が壁 企業顧客により深く
https://t.co/hAg5rRjlmp |
https://twitter.com/nikkei/statuses/1528959897261731841
|
正常化 |
2022-05-24 04:43:40 |
ニュース |
@日本経済新聞 電子版 |
鈍る香港「真珠の輝き」 国安法2年、揺らぐ報道・司法
https://t.co/ulY1gBudDQ |
https://twitter.com/nikkei/statuses/1528955598267551744
|
香港 |
2022-05-24 04:26:35 |
ニュース |
@日本経済新聞 電子版 |
ザッカーバーグ氏を提訴 米首都、個人情報流出で
https://t.co/Ar73Ea3BBb |
https://twitter.com/nikkei/statuses/1528955023069429760
|
個人情報流出 |
2022-05-24 04:24:18 |
ニュース |
@日本経済新聞 電子版 |
北海道電力も法人新規契約を一時停止、燃料高騰受け
https://t.co/YbolihJo71 |
https://twitter.com/nikkei/statuses/1528950980980912128
|
一時停止 |
2022-05-24 04:08:15 |
海外ニュース |
Japan Times latest articles |
Firms unsatisfied with government caution over admitting foreign tourists |
https://www.japantimes.co.jp/news/2022/05/24/business/economy-business/businesspeople-tourism-covid-controls/
|
Firms unsatisfied with government caution over admitting foreign touristsOnly a limited number of tourists are currently allowed into Japan and the government has not yet indicated when the country will start accepting all |
2022-05-24 13:01:57 |
ニュース |
BBC News - Home |
One in five employees expect to change jobs this year - survey |
https://www.bbc.co.uk/news/business-61552546?at_medium=RSS&at_campaign=KARANGA
|
bosses |
2022-05-24 04:28:33 |
ビジネス |
ダイヤモンド・オンライン - 新着記事 |
【社説】台湾を巡りバイデン氏が犯した真の過ち - WSJ発 |
https://diamond.jp/articles/-/303742
|
過ち |
2022-05-24 13:10:00 |
北海道 |
北海道新聞 |
指定薬物所持疑いで男逮捕、富山 ヘキサヒドロカンナビノール |
https://www.hokkaido-np.co.jp/article/684695/
|
指定薬物 |
2022-05-24 13:27:00 |
北海道 |
北海道新聞 |
観光船、えい航中に落下180メートル海底に 事故原因の究明に影響か |
https://www.hokkaido-np.co.jp/article/684668/
|
事故原因 |
2022-05-24 13:09:22 |
北海道 |
北海道新聞 |
米大統領の台湾発言歓迎 自民部会「最高の失言」 |
https://www.hokkaido-np.co.jp/article/684690/
|
合同会議 |
2022-05-24 13:06:00 |
IT |
週刊アスキー |
スマホRPG『BD ブリリアントライツ』第1回フォトコンテストが6月中に開催決定 |
https://weekly.ascii.jp/elem/000/004/092/4092384/
|
開催決定 |
2022-05-24 13:45:00 |
IT |
週刊アスキー |
各店それぞれの味覚を楽しもう! 京王百貨店 新宿店にて「チャーハングランプリ」5月26日~6月8日開催 |
https://weekly.ascii.jp/elem/000/004/092/4092338/
|
京王百貨店 |
2022-05-24 13:20:00 |
マーケティング |
AdverTimes |
ロングセラー耳かきの販促アイデアを募集(ののじ)/販促コンペ・企業オリエン |
https://www.advertimes.com/20220524/article384467/
|
応募期間 |
2022-05-24 04:14:29 |
マーケティング |
AdverTimes |
オセロの「誕生50周年」を盛り上げたい!(メガハウス)/販促コンペ・企業オリエン |
https://www.advertimes.com/20220524/article384462/
|
応募期間 |
2022-05-24 04:11:45 |
マーケティング |
AdverTimes |
「ネスレの商品だから買う」を実現するアイデアを(ネスレ日本)/販促コンペ・企業オリエン |
https://www.advertimes.com/20220524/article384457/
|
応募期間 |
2022-05-24 04:09:02 |
コメント
コメントを投稿