投稿時間:2022-12-19 06:20:05 RSSフィード2022-12-19 06:00 分まとめ(28件)

カテゴリー等 サイト名等 記事タイトル・トレンドワード等 リンクURL 頻出ワード・要約等/検索ボリューム 登録日
IT InfoQ AirBnb Animation Engine Lottie Improves Performance by Adopting Core Animation https://www.infoq.com/news/2022/12/airbnb-lottie-4/?utm_campaign=infoq_content&utm_source=infoq&utm_medium=feed&utm_term=global AirBnb Animation Engine Lottie Improves Performance by Adopting Core AnimationAirBnb has announced the fourth major iteration of its open source vector based animation engine Lottie Thanks to the adoption of Core Animation Lottie provides significant performance improvements and reduces CPU load says AirBnb iOS engineer Cal Stephens By Sergio De Simone 2022-12-18 21:00:00
golang Goタグが付けられた新着投稿 - Qiita AWS SDK for Go V2 を使ってみる https://qiita.com/toshihirock/items/a9a11a8c8ea13f09147e awssdkforgov 2022-12-19 05:50:19
海外TECH MakeUseOf How to Get More Likes and Shares on Facebook https://www.makeuseof.com/tag/how-to-get-more-likes-and-shares-on-facebook-according-to-researchers/ How to Get More Likes and Shares on FacebookIt s not easy to get likes and shares on Facebook Sure you ll get a few but how do you really maximize the engagement on a post Researchers have a few ideas 2022-12-18 20:05:14
海外TECH DEV Community Automate infrastructure for manually created resources in AWS https://dev.to/aws-builders/create-iac-for-manually-created-resources-in-aws-48pe Automate infrastructure for manually created resources in AWSUnless you ve been working on greenfield projects all of the time in the past few years you have likely encountered scenarios where AWS resources are provisioned manually So you might have a few EC instances Lambda functions and databases created manually from the Web console You just encountered a case where you want to modify or extend that infrastructure and you might be thinking about whether to update it manually from the console Still you get that feeling of unease and frustration to update these resources especially if they are in a production account You might opt to do this manually due to time or other constraints and you ping your colleague and pair on doing the update because it is always good to have another pair of eyes when touching production resources That s fine However if you prefer to turn your infrastructure to code with Terraform here s how you do it In this article we will build a Lambda manually from the AWS console and import it to Terraform Build your Lambda ManuallyWe will create a Lambda function from the AWS Console in this step Write your Terraform ConfigWe want to change the Lambda function but don t want to do it from the console So we will create our Terraform configuration I am using Terraform Cloud so I will create a workspace and call it terraform import However you can run the same config from your local machine Create a folder to contain your infrastructure codeCreate a new file called main tf to specify the AWS provider terraform required providers aws source hashicorp aws version gt required version gt cloud organization MyAwesomeOrganisation workspaces name terraform import provider aws region us east Run terraform login if you re using Terraform cloud Otherwise skip this stepRun terraform init to initialise the workspaceRun terraform plan you will get the following output No changes Your infrastructure matches the configuration Now we need to create the configuration using Terraform import Create a lambda tf file resource aws lambda function my awesome lambda function name MyAwesomeFunction Run terraform import aws lambda function my awesome lambda MyAwesomeFunctionThis command will generate a state file that would map the resource in AWS in the terraform state If you re using Terraform Cloud Navigate to the states file in the left panel under your workspace If you re working on your local notice a new file generated terraform tfstate Have a look at the state and see what s different Based on the state file we need to update the lambda config so that we get No Changes when we run terraform apply the next time We should not have a resource deletion or replacement That s the goal When I ran terraform plan first I got an error saying that the role argument was required So I updated my lambda tf file to become as follows resource aws lambda function my awesome lambda function name MyAwesomeFunction role arn aws iam role service role MyAwesomeFunction role rhnl I got the role from the state file the Lambda execution role Run terraform plan again The following error I got is Error handler and runtime must be set when PackageType is Zip So I updated my Lambda as follows resource aws lambda function my awesome lambda function name MyAwesomeFunction handler index handler runtime nodejs x role arn aws iam role service role MyAwesomeFunction role rhnl Run terraform plan again That s the result I got aws lambda function my awesome lambda will be updated in place resource aws lambda function my awesome lambda id MyAwesomeFunction publish false runtime nodejs x gt nodejs x tags unchanged attributes hidden unchanged blocks hidden Plan to add to change to destroy That means it will change my Lambda from NodeJs to NodeJs I don t want that so I will update my lambda tf to use Node runtime Run terraform plan again You should get the following message No changes Your infrastructure matches the configuration Now you have your infrastructure documented so you can update it get it reviewed and add it to the version control with peace of mind We can improve this So for example instead of typing the arn of the Lambda execution role we can also automate this with Terraform Try this out Update the lambda functionCreate a new folder src and an index mjs file Add the following code export const handler async event gt console log This lambda was updated using Terraform const response statusCode body JSON stringify Hello from Lambda return response Package your Lambda by running the following cd srczip r awesome lambda zip cp lambda function zip infrastructure This will package the Lambda into a zip file and places it under the infrastructure directory Add the following line to the lambda resource filename path module awesome lambda zip Run terraform plan You will get the following changes Terraform will perform the following output aws lambda function my awesome lambda will be updated in place resource aws lambda function my awesome lambda filename awesome lambda zip id MyAwesomeFunction last modified T gt known after apply publish false tags Run terraform apply Open the Lambda in your AWS console and notice how the code has changed Run terraform destroy to destroy your infrastructure Do you have a better way to automate your legacy infrastructure I d like to hear your thoughts Thanks for reading this far Did you like this article and do you think others might find it useful Feel free to share it on Twitter or LinkedIn 2022-12-18 20:09:33
海外TECH DEV Community Decorator pattern in TypeScript https://dev.to/jmalvarez/decorator-pattern-in-typescript-na5 Decorator pattern in TypeScript IntroductionThe Decorator pattern is a structural design pattern that allows you to dynamically add new behavior to objects It does so by wrapping them in special objects called decorators which contain the added behavior This is an alternative to inheritance The Decorator pattern is useful when you want to add behavior to individual objects rather than to an entire class of objects It is also useful when you want to add behavior without affecting the existing hierarchy or when you want to add behavior that can be changed dynamically at runtime In this article we will discuss the benefits of using the Decorator pattern and how it can be implemented in practice ApplicabilityThe Decorator pattern can be useful when you want to add new behavior to an existing object but you don t want or can t to modify its class add new behavior to a set of objects but you don t want to create a new subclass for each object add new behavior that can be changed dynamically at runtime The Decorator pattern allows you to add or remove the behavior by adding or removing decorator objects ImplementationYou can find the full example source code here Define the interface for the objects that will be decorated This interface should specify the methods that will be available to the clients of these objects In our example I m going to create the interface DataSource interface DataSource writeData data string void readData string Create a concrete implementation of the interface defined in the previous step This class will be the base class for the objects that will be decorated In our example I m going to create the class FileDataSource class FileDataSource implements DataSource private fileName string private data string constructor fileName string this fileName fileName writeData data string void console log FileDataSource Writing to file this fileName data data this data data readData string console log FileDataSource Reading from file this fileName data this data return this data Create a decorator class that implements the interface This class will contain a reference to the object being decorated and will delegate all method calls to the decorated object This class will be the base class for the decorators class DataSourceDecorator implements DataSource protected source DataSource constructor source DataSource this source source writeData data string void this source writeData data readData string return this source readData Create a new class for each additional behavior that you want to add to the objects These classes will extend the base decorator class and will add the new behavior to the decorated object before or after passing the request to the target object In our example I want to add two new behaviors The first one is to encrypt the data before writing it to the file and decrypting it after reading it from the file class EncryptionDecorator extends DataSourceDecorator writeData data string void const baseData btoa data console log EncryptionDecorator Encrypted data baseData super writeData baseData readData string const baseData super readData const data atob baseData console log EncryptionDecorator Decrypted data data return data The second one is to reverse the data before writing it to the file and unreversing it after reading it from the file class ReverseDecorator extends DataSourceDecorator writeData data string void const compressedData data split reverse join console log ReverseDecorator Reversed data compressedData super writeData compressedData readData string const compressedData super readData const data compressedData split reverse join console log ReverseDecorator Unreversed data data return data To use the Decorator pattern create an instance of the concrete implementation of the interface and then wrap it in one or more decorator objects The decorator objects can be created and added dynamically at runtime allowing you to add or remove behavior as needed An example of how client code would use the Decorator pattern with the EncryptionDecorator const file new FileDataSource file txt const encryptedFile new EncryptionDecorator file encryptedFile writeData Hello world encryptedFile readData Output EncryptionDecorator Encrypted data SGVsbGgdybGQh FileDataSource Writing to file file txt data SGVsbGgdybGQh FileDataSource Reading from file file txt data SGVsbGgdybGQh EncryptionDecorator Decrypted data Hello world Another example but using the ReverseDecorator const file new FileDataSource file txt const compressedFile new ReverseDecorator file compressedFile writeData Hello world compressedFile readData Output ReverseDecorator Reversed data dlrow olleH FileDataSource Writing to file file txt data dlrow olleH FileDataSource Reading from file file txt data dlrow olleH ReverseDecorator Unreversed data Hello world Both decorators can also be used together const file new FileDataSource file txt const encryptedFile new EncryptionDecorator file const compressedEncryptedFile new ReverseDecorator encryptedFile compressedEncryptedFile writeData Hello world compressedEncryptedFile readData Output ReverseDecorator Reversed data dlrow olleH EncryptionDecorator Encrypted data IWRscmIGsbGVI FileDataSource Writing to file file txt data IWRscmIGsbGVI FileDataSource Reading from file file txt data IWRscmIGsbGVI EncryptionDecorator Decrypted data dlrow olleH ReverseDecorator Unreversed data Hello world ResourcesOriginal postExample source codeDecorator refactoring guru 2022-12-18 20:02:41
海外TECH CodeProject Latest Articles Wexflow - Open Source Workflow Engine https://www.codeproject.com/Articles/5346143/Wexflow-Open-Source-Workflow-Engine automation 2022-12-18 20:42:00
海外科学 NYT > Science How Can Tainted Spinach Cause Hallucinations? https://www.nytimes.com/2022/12/18/world/australia/spinach-hallucinations.html brain 2022-12-18 20:00:55
ニュース BBC News - Home World Cup 2022: Elation in Argentina, sorrow in France - fans react https://www.bbc.co.uk/news/world-64018472?at_medium=RSS&at_campaign=KARANGA paris 2022-12-18 20:38:46
ニュース BBC News - Home World Cup final: 'Breathless, staggering and magnificent' - how unimaginable showpiece unfolded https://www.bbc.co.uk/sport/football/64019067?at_medium=RSS&at_campaign=KARANGA World Cup final x Breathless staggering and magnificent x how unimaginable showpiece unfoldedIt was one of the greatest finals in World Cup history so how did the breathless showpiece unfold 2022-12-18 20:52:28
ニュース BBC News - Home World Cup final: Was 'phenomenal' final the best ever? BBC pundits debate https://www.bbc.co.uk/sport/av/football/64020744?at_medium=RSS&at_campaign=KARANGA World Cup final Was x phenomenal x final the best ever BBC pundits debateAlan Shearer Rio Ferdinand and Pablo Zabaleta give their reaction to the World Cup final as Argentina win an incredible game on penalties following a dramatic draw 2022-12-18 20:03:26
ニュース BBC News - Home Heineken Champions Cup: Harlequins 14-10 Racing 92 - Quins off the mark with battling win https://www.bbc.co.uk/sport/rugby-union/64018983?at_medium=RSS&at_campaign=KARANGA Heineken Champions Cup Harlequins Racing Quins off the mark with battling winQuins record first win in this season s Heineken Champions Cup with victory over Racing who have Kitione Kamikamica sent off 2022-12-18 20:00:56
ニュース BBC News - Home World Cup final: 'No-one can now deny Messi is one of the game's greatest' https://www.bbc.co.uk/sport/football/64021057?at_medium=RSS&at_campaign=KARANGA World Cup final x No one can now deny Messi is one of the game x s greatest x After leading Argentina to World Cup glory BBC Sport s Phil McNulty believes Lionel Messi has now confirmed himself among football s greatest 2022-12-18 20:43:00
ニュース BBC News - Home World Cup 2022: The story of Lionel Messi's incredible footballing journey https://www.bbc.co.uk/sport/av/football/64021183?at_medium=RSS&at_campaign=KARANGA World Cup The story of Lionel Messi x s incredible footballing journeyWatch the story of Lionel Messi from his early years in Rosario to captaining his country to glory at the Copa America in 2022-12-18 20:43:16
ニュース BBC News - Home World Cup 2022: Emiliano Martinez's penalty shootout mind games help Argentina to victory https://www.bbc.co.uk/sport/football/64019545?at_medium=RSS&at_campaign=KARANGA World Cup Emiliano Martinez x s penalty shootout mind games help Argentina to victoryEmi Martinez s penalty shootout mind games help secure an incredible win for Argentina and make the dancing goalkeeper a hero 2022-12-18 20:51:26
ニュース BBC News - Home World Cup final: Lionel Messi lifts trophy in traditional Arab robe https://www.bbc.co.uk/sport/football/64018448?at_medium=RSS&at_campaign=KARANGA World Cup final Lionel Messi lifts trophy in traditional Arab robeHow Argentina great Lionel Messi lifting the famous trophy was an iconic moment that will live forever in World Cup history and Middle East imagery 2022-12-18 20:30:19
ニュース BBC News - Home World Cup final: How you rated Argentina and France players https://www.bbc.co.uk/sport/football/64019380?at_medium=RSS&at_campaign=KARANGA dramatic 2022-12-18 20:41:54
ビジネス ダイヤモンド・オンライン - 新着記事 トヨタやコマツが円安で過去最高益も給料が伸び悩む会計上の「落とし穴」とは - 貧国ニッポン 「弱い円」の呪縛 https://diamond.jp/articles/-/314726 企業会計 2022-12-19 05:25:00
ビジネス ダイヤモンド・オンライン - 新着記事 JR東海「30代で年収1000万円」の好待遇も今は昔…JR7社の給与&ボーナスを徹底調査 - 迷走 皇帝なきJR東海 https://diamond.jp/articles/-/314202 2022-12-19 05:20:00
ビジネス ダイヤモンド・オンライン - 新着記事 米国の23年の経済成長率は大幅低下が不可避、「景気後退なくしてインフレは収まらない」 - 総予測2023 https://diamond.jp/articles/-/314501 世界経済 2022-12-19 05:15:00
ビジネス ダイヤモンド・オンライン - 新着記事 京セラ・稲盛和夫氏が10年前に唱えた日本企業復活の処方箋「現場力を取り戻せ」 - 日本経済への遺言 https://diamond.jp/articles/-/314707 2022-12-19 05:10:00
ビジネス ダイヤモンド・オンライン - 新着記事 JR北海道「廃線の危険度が高い路線」ランキング…2位留萌線、1位は? - DIAMONDランキング&データ https://diamond.jp/articles/-/314770 diamond 2022-12-19 05:05:00
ビジネス 電通報 | 広告業界動向とマーケティングのコラム・ニュース セイコーミュージアムが伝える「時代の一歩先」 https://dentsu-ho.com/articles/8430 魅力 2022-12-19 06:00:00
北海道 北海道新聞 メッシ史上初、2度目のMVP W杯、得点王はエムバペ https://www.hokkaido-np.co.jp/article/777069/ 最終日 2022-12-19 05:52:00
北海道 北海道新聞 森英恵さん追悼、特別展 出身の島根県で22日から https://www.hokkaido-np.co.jp/article/777067/ 追悼 2022-12-19 05:22:00
北海道 北海道新聞 <社説>刑務所での暴行 更生重視の理念に背く https://www.hokkaido-np.co.jp/article/777028/ 名古屋刑務所 2022-12-19 05:01:00
北海道 北海道新聞 河野氏が東国原氏をリード 宮崎県知事選情勢 https://www.hokkaido-np.co.jp/article/777066/ 共同通信社 2022-12-19 05:02:00
ビジネス 東洋経済オンライン 「仕事が多いけど何とかしよう」は危険すぎる道だ 自分の負荷はもっと悲観的に考えたほうがいい | リーダーシップ・教養・資格・スキル | 東洋経済オンライン https://toyokeizai.net/articles/-/638695?utm_source=rss&utm_medium=http&utm_campaign=link_back 危険すぎる 2022-12-19 05:50:00
ビジネス 東洋経済オンライン 防衛費の財源を「増税」で賄うのは不可能なワケ 資本主義以前の「前近代的な発想」をやめる | 国内政治 | 東洋経済オンライン https://toyokeizai.net/articles/-/639596?utm_source=rss&utm_medium=http&utm_campaign=link_back 参議院議員 2022-12-19 05:30:00

コメント

このブログの人気の投稿

投稿時間:2021-06-17 22:08:45 RSSフィード2021-06-17 22:00 分まとめ(2089件)

投稿時間:2021-06-20 02:06:12 RSSフィード2021-06-20 02:00 分まとめ(3871件)

投稿時間:2021-06-17 05:05:34 RSSフィード2021-06-17 05:00 分まとめ(1274件)