TECH |
Engadget Japanese |
テスラ、Model SとModel 3合計約50万台をリコール。配線やボンネット取付けに不具合 |
https://japanese.engadget.com/tesla-to-recall-475-k-cars-over-possible-safety-issues-061520621.html
|
model |
2021-12-31 06:15:20 |
python |
Pythonタグが付けられた新着投稿 - Qiita |
【Python覚書】selenium on raspberry pi(002) |
https://qiita.com/o_chan_t/items/1ec3af1b64d4d608e88a
|
【Python覚書】seleniumonraspberrypiはじめに以前、IoTの勉強をしようと思って、raspberrypimodelBを数個購入したのですが、長い間眠っている状態でした。 |
2021-12-31 15:56:56 |
python |
Pythonタグが付けられた新着投稿 - Qiita |
[備忘録]MeCabに文章突っ込むときは型変換に気をつける |
https://qiita.com/ryotab22/items/52a04350dfa6eff027e0
|
備忘録MeCabに文章突っ込むときは型変換に気をつけるMeCabで形態素解析するとき大体テンプレはこれimportMeCabmMeCabTaggerOchasennodemparseToNodetextwordswhilenodewordsappendnodesurfacenodenodenextなんだけど、parseToNodeモジュールに文章突っ込む時、str型でないとエラー吐く。 |
2021-12-31 15:37:59 |
python |
Pythonタグが付けられた新着投稿 - Qiita |
tweepyによるDM操作 |
https://qiita.com/MWindows99/items/5ddb529a2502dc87b7c7
|
tweepyでDMを操作することはできないと書かれている記事があったのですが、公式ドキュメント見ると普通に出来るんですがね。 |
2021-12-31 15:24:14 |
python |
Pythonタグが付けられた新着投稿 - Qiita |
【画像処理】Numpyでバイラテラルフィルター |
https://qiita.com/aa_debdeb/items/e4e4bf42fb06e8af2766
|
ガウシアンフィルターでは空間方向の距離に応じてガウス分布で加重平均を求めることで画像を平滑化しました。 |
2021-12-31 15:05:46 |
Program |
[全てのタグ]の新着質問一覧|teratail(テラテイル) |
Rで絵文字を使う方法 |
https://teratail.com/questions/376194?rss=all
|
Rで絵文字を使う方法installpackagescdevtoolsusethisdevtoolsinstallgithubrichfitzremojilibraryremojipngpngwidthheightbgtransparent描画デバイスを開くplottypenxlimcylimcxaxtnyaxtnxlabylabbtyntextemojidogcolredcexadjdevoffなどとすると犬の絵文字の画像ができがりますが致命的な欠点があります。 |
2021-12-31 15:51:35 |
Program |
[全てのタグ]の新着質問一覧|teratail(テラテイル) |
windows npmコマンドの定期実行について |
https://teratail.com/questions/376193?rss=all
|
windowsnpmコマンドの定期実行について前提・実現したいことnpnrun〇〇上記のコマンドを定期実行したいです。 |
2021-12-31 15:40:08 |
Program |
[全てのタグ]の新着質問一覧|teratail(テラテイル) |
エミュレーターを起動できません |
https://teratail.com/questions/376192?rss=all
|
エミュレーターを起動できませんエミュレーターを起動するとこのようなエラーメッセージがでます。 |
2021-12-31 15:37:12 |
Program |
[全てのタグ]の新着質問一覧|teratail(テラテイル) |
PHPでimgタグのsrc属性値内のパスを一括で置換したい |
https://teratail.com/questions/376191?rss=all
|
PHPでimgタグのsrc属性値内のパスを一括で置換したいブログをMovableTypeで運営していましたが、CMSを使わずにサイトを運用していきたく、ページを静的ページに作り直しています。 |
2021-12-31 15:00:55 |
Ruby |
Rubyタグが付けられた新着投稿 - Qiita |
駆け出しエンジニアが点字メーカープログラムに挑戦(銀座Rails#41) |
https://qiita.com/KON-ch/items/524704ab55230b7d99b1
|
また表示する点字が変わっても変わらないとは思いますが例えばAの時は中段左に点を打つとなった場合ogtgtogt元のメソッドは伝えられた表示位置で表示するだけなので、totenjiメソッドを修正する必要はありません。 |
2021-12-31 15:08:30 |
AWS |
AWSタグが付けられた新着投稿 - Qiita |
AWS EC2でssh登録してgit clone [Please use a personal access token instead.] |
https://qiita.com/Bashi50/items/db0b6b3343d51e0fc598
|
これが公開鍵なのでgithubに登録します。 |
2021-12-31 15:32:14 |
AWS |
AWSタグが付けられた新着投稿 - Qiita |
【AWS/SOA】VPCフローログ 記録のされ方の問題(図解あり) |
https://qiita.com/hiyanger/items/82d81c2a7f0f31231d91
|
①サーバからECにpingはいってますね②最初の返却だからSGからアウトバウンドOKだね③次の返却はNACLだからVPCはアウトバウンドNGだねと思ったのだけどたまたまこの問題は②と③の順なだけで、ここは実際のVPCフローログだ順不同っぽいです。 |
2021-12-31 15:29:44 |
AWS |
AWSタグが付けられた新着投稿 - Qiita |
Amazon RDS Custom for Oracleへパッチ適用してみた |
https://qiita.com/asahide/items/140a47b8395021775504
|
累積パッチは修正部分も多くなり、ノンデグ確認にコストがかかる等で適用にハードルがあり、エンタープライズ環境での利用においては個別パッチを適用したい、というニーズがありました。 |
2021-12-31 15:12:22 |
Git |
Gitタグが付けられた新着投稿 - Qiita |
AWS EC2でssh登録してgit clone [Please use a personal access token instead.] |
https://qiita.com/Bashi50/items/db0b6b3343d51e0fc598
|
これが公開鍵なのでgithubに登録します。 |
2021-12-31 15:32:14 |
Ruby |
Railsタグが付けられた新着投稿 - Qiita |
駆け出しエンジニアが点字メーカープログラムに挑戦(銀座Rails#41) |
https://qiita.com/KON-ch/items/524704ab55230b7d99b1
|
また表示する点字が変わっても変わらないとは思いますが例えばAの時は中段左に点を打つとなった場合ogtgtogt元のメソッドは伝えられた表示位置で表示するだけなので、totenjiメソッドを修正する必要はありません。 |
2021-12-31 15:08:30 |
海外TECH |
DEV Community |
What was your win this YEAR? |
https://dev.to/devteam/what-was-your-win-this-year-453j
|
What was your win this YEAR Hey there I m mixing up this week s win thread in honor of the upcoming new year for those cultures that recognize the New Year as beginning this upcoming Saturday that is Instead of looking back on our weeks what would you say your biggest win was for this past YEAR What are you proud of having accomplished All wins count ーbig or small Examples of wins include Starting a new jobLearning to value your personal strengths Taking more time off to unplug with loved ones regularly or whatever else might have sparked joy and purpose ️Congrats on your accomplishments in You re amazing |
2021-12-31 06:24:05 |
海外TECH |
DEV Community |
Introduction to Asynchronous Processing and Message Queues |
https://dev.to/apoorvtyagi/introduction-to-asynchronous-processing-and-message-queues-27od
|
Introduction to Asynchronous Processing and Message Queues IntroductionIn a client server architecture the client can request a job to be done from the server by sending messages between each other Handling this communication can increase in complexity when you begin to manage the rate at which messages are sent the number of requests a server can handle or the response time which the client demands In this blog we ll see one way to handle this intricacy What is Synchronous Processing In synchronous processing a client sends a request to the server and waits for the server to complete its job and send back the response before the client can resume doing any other work This process is often referred to as a blocking request as the client gets blocked from doing any other work until a response is received What is Asynchronous Processing Asynchronous processing is the exact opposite of synchronous processing Here the client doesn t wait for a response after sending a request to the server and continues doing any other work This process is referred to as a non blocking request as the execution thread of the client is not blocked This allows systems to scale as more work can be done in a given amount of time Synchronous vs Asynchronous ProcessingSynchronous requests block the execution thread of the client forcing them to wait for the response to come before they can perform another action On the other hand asynchronous requests do not block and allow for more work to be done in a given time Since we do not know much time the request will take it is difficult to build responsive applications with synchronous processing The more blocking operations the slower system becomes With asynchronous processing response time is quick as the client does not have to wait on the request Fault tolerance of asynchronous processing is higher than that of synchronous processing as it is easy to build a retry mechanism when a request fails What are Message Queues A message queue is a component that buffers requests from one service and broadcasts asynchronously to another service Here clients are the message producers who send request messages to the queue instead of any server They get an acknowledgment when the message is added to the queue which enables them to continue with their other jobs without having to wait for the server Servers are known as message consumers and are served these messages from the queue based on the number of requests they can serve at any given time This continues until all the messages in the queue have been served The two most common messaging queues are ーRabbitMQ and Kafka Structure of Message QueuesA message queue is primarily a broker of messages between message producers and message consumers Each distinct entity in the messaging queue setup producers consumers and queue has a responsibility and they re decoupled from each other as much as possible The only contract between all entities is the messages for which the message queue facilitates the movement from producers to consumers In the following sections we will discuss the responsibilities of each component and look at the various modes with which the message queue delivers a message to consumers Message ProducersMessage producers initiate the asynchronous processing request Producers have a responsibility to generate a valid message and publish it to the message queue Messages submitted to the queue are then queued up and delivered to consumers to be processed asynchronously Producers communicate with message queues using the Advanced Message Queuing Protocol AMQP Message BrokersA message broker is simply just a queue You can even implement a simple broker programmatically that buffers messages and sends them to consumers as and when needed Message brokers are the actual decoupling elements in the setup sitting between and managing the process of communication between producers and consumers Because of their simplicity brokers are optimized for high concurrency and throughput It is important to note that adding message brokers introduces an extra layer of complexity into your infrastructure and requires you to scale them as well Brokers also have specific requirements and limitations when it comes to scalability Message ConsumersThe main responsibility of consumers is to receive and process messages from the queue Most consumers are API services that perform that actual asynchronous processing Consumers can be implemented in different application languages or technologies and maintained independently from other components To achieve decoupling consumers should know nothing about the producers The only contract that should exist between the two is valid messages from the queue When properly decoupled consumers can serve as independent service layers that can be used by both the message queue setup and other components in your infrastructure Consumer Communication StrategiesMessage queues need to transmit messages down to consumers depending on how application developers implement consumers message queues have three distinct ways of delivering messages to the consumers Pull ModelIn this model the consumer periodically checks the status of the queue This is done at a scheduled interval programmed on the side of the consumer If there are messages found in the queue the consumer picks them up until there are no more messages left to process or when the N number of messages has been consumed This N can be configured on the message broker Push ModelOnce a message is added the consumer is notified and the message is then pushed down to it Messages are pushed down to consumers at a rate at which the consumer can easily regulate Subscription ModelIn this model consumers can subscribe to a topic This publisher publishes a message to a topic rather than a queue Each consumer connected to the broker maintains its private queue to receive messages from topics After the consumers subscribe to the topics and when a message is published to that topic the message is cloned for each subscriber and added to the consumer s private queue Comparing Different Message BrokersAs we have seen above for asynchronous communication we usually need a message broker Below are the few considerations you have to look at when choosing a broker for managing your asynchronous operations Scale The number of messages sent per second in the system Data Persistency The capability to recover messages Consumer Capability The capability to manage one to one one to many consumers RabbitMQ Scale Based on configuration and resources Persistency Both persistent and transient messages are supported One to one vs One to many consumers Both RabbitMQ supports all major languages including Python Java NET PHP Ruby JavaScript Go Swift and more Kafka Scale Can send up to a million messages per second Persistency Yes One to one vs One to many consumers Only one to manyKafka has managed SaaS on both Azure and AWS Kafka also supports all major languages including Python Java C C Clojure NET PHP Ruby JavaScript Go Swift and more Redis Scale Can send up to a million messages per second Persistency Not supported it s an in memory database One to one vs One to many consumers Both Redis is a bit different from the other message brokers Redis is an in memory data store Originally Redis only supported one to one communication with consumers However since Redis introduced the pub sub you can have one to many as another option ConclusionIn this blog we covered how asynchronous processing is advantageous over its counterparts and how a message queue helps us achieve asynchronous processing along with keeping the different entities in its setup decoupled from each other We also covered some basic characteristics of the most commonly used message brokers Redis Kafka and RabbitMQ Here s a bit more detailed instruction for selecting the right message broker to use according to different use cases Short lived Messages Redis Redis is good for short lived messages where persistence isn t required Large Amounts of Data Kafka Kafka is good for storing a large amount of data for long periods Kafka is also ideal for one to many use cases where persistency is required Complex Routing RabbitMQ RabbitMQ is good for complex routing communication Happy coding If you find any doubts updates or corrections to improve this article Feel free to share them in the comments Starting out in web development Checkout HTML To React The Ultimate GuideThis ebook is a comprehensive guide that teaches you everything you need to know to be a web developer through a ton of easy to understand examples and proven roadmapsIt contains Straight to the point explanationsSimple code examples Interesting project ideas Checklists of secret resourcesA Bonus Interview prepYou can even check out a free sample from this bookand here s the link with off on the original price on the complete book set |
2021-12-31 06:08:46 |
海外TECH |
DEV Community |
HELM Cheatsheet: For Beginners |
https://dev.to/aashiya123/helm-cheatsheet-for-beginners-1cb3
|
HELM Cheatsheet For BeginnersThe Helm is a package and operation manager for Kubernetes Though handling Kubernetes applications and several releases can increase the development and deployment complexities The Helm as a packaging manager allows you to wrap up all the Kubernetes components within a single package for deployment thus reducing complexities You can integrate several Kubernetes objects within the Helm chart which is deployed as a whole You can use Helm to deploy a single application or a part of an extensive application There are a number of tools that can be used with Helm charts to ease the Kubernetes deployment process You can also integrate the Helm charts within the CI CD process to automate each process giving developers leverage to work on writing codes rather than running and handling production deployments You can use and install the Helm with one click Helm comes with the command line user interface called helm to perform the Helm functionalities Below are some Helm commandshelm help commandThe above command will provide you information about the available Helm commands helm helpIf you want any details about the Helm command you can use the helm help below helm help searchhelm search commandThe above command will allow you to search for the charts You can use helm search as mentioned below helm search phpmyadminoutput NAME CHART VERSION APP VERSION DESCRIPTIONstable phpmyadmin DEPRECATED phpMyAdmin is an mysql administration frontendhelm fetch commandWith the above command you can download the chart locally without installing it You can use the chart name with the fetch command to download all the charts and template files within the directory helm fetch stable phpmyadmin ls ltroutput Total rw r r root root Jun phpmyadmin tgzhelm install commandUsing the above command you can easily install the chart followed by the chart name You can use the name option if you want to name the deploy chart and version to specify the chart version as per your requirement helm install stable phpmyadmin name myphpadmin version The above command will provide the deployed resources overview which can be checked from the Kubernetes with the below command kubectl get all grep i myphpadminhelm init commandYou can use the above command to initialize the helm helm status commandYou can check the chart installation status using the above command You have to provide the chart name about which you want the status helm status myphpadminhelm list commandYou can use the list command with complete details of the currently deployed chart helm listoutput NAME REVISION UPDATED STATUS CHART APP VERSION NAMESPACEmyphpadmin Mon Jun DEPLOYED phpmyadmin defaulthelm upgrade commandWith the help of the upgrade command you can upgrade the chart version In the above examples we have version and now we are upgrading it to using the below command helm upgrade myphpadmin stable phpmyadmin version helm history commandWith the above command s help you can check the installed chart s history followed by the chart name helm history myphpadminoutput REVISION UPDATED STATUS CHART APP VERSION DESCRIPTION Mon Jun SUPERSEDED phpmyadmin Install complete Mon Jun DEPLOYED phpmyadmin Upgrade completehelm rollback commandYou can use the rollback command if you want to move to the previous version of the helm chart You have to mention the version number with the command as mentioned below helm rollback myphpadmin Rollback was a success helm delete commandYou can delete the helm chart using the delete command as mentioned below helm delete myphpadminrelease myphpadmin deletedhelm repo list commandWith the help of the above command you can list down the repositories used currently helm repo listoutput NAME URLstable local chartshelm repo update commandWith the help of the above command you can update the repositories helm repo updateoutput Hang tight while we grab the latest from your chart repositories Skip local chart repository Successfully got an update from the stable chart repositoryUpdate Complete helm reset commandYou can use the reset command to uninstall the tiller component and the remove helm home option after the remove command to remove the helm s home directory You can use the f option to remove it forcefully helm reset f remove helm homeoutput Deleting root helmTiller the Helm server side component has been uninstalled from your Kubernetes Cluster Chart installation and manipulation commandCreating chart templateThe above command will allow you to create the chart template with the helm create overriding helm valueshelm install name values config yaml timeout wait stable mysqlSetting environment variable on creating releasehelm install set x somevalue f config yaml name To check the syntax of the helm chart helm linthelm lint To upgrade the chart or variables in a releasehelm upgrade values config yaml To inspect the chart details along with the chart name helm inspect To inspect the values assigned in the chart along with the chart name helm inspect values To create package as a tgz file if you have chartmuseum helm package helm package To install chart dependencies helm dep up helm dependency update |
2021-12-31 06:01:25 |
海外ニュース |
Japan Times latest articles |
Could omicron be the beginning of the end of the COVID-19 pandemic? |
https://www.japantimes.co.jp/news/2021/12/31/national/covid-endgame-omicron/
|
Could omicron be the beginning of the end of the COVID pandemic Experts say the omicron variant could accelerate the pandemic s transition toward becoming a disease that the world can manage more easily and learn to live |
2021-12-31 15:23:00 |
海外ニュース |
Japan Times latest articles |
RCEP’s benefits come with challenge of keeping China in check |
https://www.japantimes.co.jp/news/2021/12/31/business/economy-business/rcep-benefits-china-challenge/
|
analysis |
2021-12-31 15:04:51 |
ニュース |
BBC News - Home |
Scots urged to stay at home for Hogmanay amid Omicron surge |
https://www.bbc.co.uk/news/uk-scotland-59827331?at_medium=RSS&at_campaign=KARANGA
|
covid |
2021-12-31 06:01:21 |
ニュース |
BBC News - Home |
Essex baby given £1.79m drug has new lease of life |
https://www.bbc.co.uk/news/uk-england-essex-59565966?at_medium=RSS&at_campaign=KARANGA
|
expensive |
2021-12-31 06:20:33 |
ニュース |
BBC News - Home |
Subbuteo: Meet Wales' 12-year-old table football champion |
https://www.bbc.co.uk/news/uk-wales-59658156?at_medium=RSS&at_campaign=KARANGA
|
world |
2021-12-31 06:21:55 |
ニュース |
BBC News - Home |
The Corozal: Scottish dredger that helped build the Panama Canal |
https://www.bbc.co.uk/news/uk-scotland-59644117?at_medium=RSS&at_campaign=KARANGA
|
dredger |
2021-12-31 06:02:24 |
ニュース |
BBC News - Home |
Australia's Head to miss fourth Ashes Test after positive Covid test |
https://www.bbc.co.uk/sport/cricket/59835761?at_medium=RSS&at_campaign=KARANGA
|
covid |
2021-12-31 06:46:48 |
北海道 |
北海道新聞 |
道南はコロナ感染ゼロ |
https://www.hokkaido-np.co.jp/article/629148/
|
道南 |
2021-12-31 15:18:00 |
北海道 |
北海道新聞 |
韓国、被選挙権18歳に引き下げ 法改正、高校生も出馬可能に |
https://www.hokkaido-np.co.jp/article/629149/
|
国会議員選挙 |
2021-12-31 15:19:00 |
コメント
コメントを投稿