python |
Pythonタグが付けられた新着投稿 - Qiita |
pythonで素数判定のためにエラトステネスの篩でテーブルを作る |
https://qiita.com/seigot/items/0aba42c84906a0b2f4d3
|
pythonで素数判定のためにエラトステネスの篩でテーブルを作る以下を参考にさせて頂いています。 |
2022-02-20 00:53:09 |
python |
Pythonタグが付けられた新着投稿 - Qiita |
pythonで整数値の桁数を求める |
https://qiita.com/seigot/items/1990df75859d4cc25d75
|
pythonで整数値の桁数を求めるpythonで整数値の桁数を求めるlogを使うだけimportmathnumdigitsintmathlognumprintdigits追記以下の方がはるかに楽であった。 |
2022-02-20 00:29:11 |
python |
Pythonタグが付けられた新着投稿 - Qiita |
デンソークリエイトプログラミングコンテスト2022(AtCoder Beginner Contest 239) 参戦記 |
https://qiita.com/c-yan/items/900709c144dacf908f5c
|
|
2022-02-20 00:21:12 |
python |
Pythonタグが付けられた新着投稿 - Qiita |
pythonで2つの画像を比較してその類似度を算出するプログラムを作ってみた |
https://qiita.com/jun_higuche/items/752ef756a182261fcc55
|
その画像比較では、時計などその時々に変わってしまう値は異なるために全く画像が一致するわけではありませんので、類似度という形で参考数値を出すことで、あまりにその類似度が違う場合には気を付けてみることができるかなっと思って、算出することにしたのです。 |
2022-02-20 00:13:39 |
python |
Pythonタグが付けられた新着投稿 - Qiita |
SAML RequestのデコーダをPythonでサクッと書く |
https://qiita.com/h53/items/5de1995dd017d1c1ea71
|
SAMLRequestのデコーダをPythonでサクッと書く概要SSOSingleSignOnを実現するための仕組みのつであるSAMLでは、SPServiceProviderを起点とするSPinitiated場合、SPからIdPIdentityProviderにSAMLRequestを送る必要があります。 |
2022-02-20 00:09:28 |
python |
Pythonタグが付けられた新着投稿 - Qiita |
memo |
https://qiita.com/qiitarow1/items/c40f5f2c8b9c39eeb6dc
|
desktop |
2022-02-20 00:05:32 |
js |
JavaScriptタグが付けられた新着投稿 - Qiita |
JavaScript filter |
https://qiita.com/miyanoShiho/items/a17dbff95b03022e7188
|
afilterfunction |
2022-02-20 00:57:26 |
Ruby |
Rubyタグが付けられた新着投稿 - Qiita |
N+1問題の直感的理解 |
https://qiita.com/miya114/items/bf1486b15ccdc8f787c6
|
viewUseralleachdouseruserpostseachdopostputsusernameposttitleendendこのコードで実行される内容は、userの情報を取得するために、userテーブルにアクセスidのuserのpostの情報を取得するためにpostテーブルにアクセスidのuserのpostの情報を取得するためにpostテーブルにアクセスidのuserのpostの情報を取得するためにpostテーブルにアクセスidのuserのpostの情報を取得するためにpostテーブルにアクセスnidnのuserのpostの情報を取得するためにpostテーブルにアクセスとまあこんな感じで、n回の処理が行われることになる。 |
2022-02-20 00:02:58 |
Docker |
dockerタグが付けられた新着投稿 - Qiita |
fly.ioの「Deploy Your Application via Dockerfile」を試してみる(Bolt for Pythonを使ったSlackアプリ) |
https://qiita.com/torifukukaiou/items/835da142d0f2565c15c7
|
apppyを変更して、flyctldeployすると変更内容がflyioに飛んでいるのですが、以下の挙動を確認しました。 |
2022-02-20 00:06:28 |
golang |
Goタグが付けられた新着投稿 - Qiita |
デンソークリエイトプログラミングコンテスト2022(AtCoder Beginner Contest 239) 参戦記 |
https://qiita.com/c-yan/items/900709c144dacf908f5c
|
|
2022-02-20 00:21:12 |
Ruby |
Railsタグが付けられた新着投稿 - Qiita |
Rails index.html.erbとindex.htmlの違いについて |
https://qiita.com/Takahiro011202/items/fb7d26a95935ca5b8cc7
|
Rubyスクリプトで書いた場合このように表示されますHTMLで書いた場合このように表示されます表示されている内容は似ていますね。 |
2022-02-20 00:47:25 |
Ruby |
Railsタグが付けられた新着投稿 - Qiita |
N+1問題の直感的理解 |
https://qiita.com/miya114/items/bf1486b15ccdc8f787c6
|
viewUseralleachdouseruserpostseachdopostputsusernameposttitleendendこのコードで実行される内容は、userの情報を取得するために、userテーブルにアクセスidのuserのpostの情報を取得するためにpostテーブルにアクセスidのuserのpostの情報を取得するためにpostテーブルにアクセスidのuserのpostの情報を取得するためにpostテーブルにアクセスidのuserのpostの情報を取得するためにpostテーブルにアクセスnidnのuserのpostの情報を取得するためにpostテーブルにアクセスとまあこんな感じで、n回の処理が行われることになる。 |
2022-02-20 00:02:58 |
海外TECH |
MakeUseOf |
How to Change App Icon Shapes in Android 12 |
https://www.makeuseof.com/change-app-icon-shapes-android-12/
|
android |
2022-02-19 15:31:13 |
海外TECH |
MakeUseOf |
How to Set Up Windows Tools Shortcuts in Windows 11 |
https://www.makeuseof.com/windows-11-tools-shortcuts/
|
setting |
2022-02-19 15:16:12 |
海外TECH |
MakeUseOf |
The 8 Most Common Tricks Used to Hack Passwords |
https://www.makeuseof.com/tag/5-common-tactics-hack-passwords/
|
learn |
2022-02-19 15:05:12 |
海外TECH |
DEV Community |
General design principles for hybrid networking |
https://dev.to/aws-builders/general-design-principles-for-hybrid-networking-5954
|
General design principles for hybrid networkingThis article outlines two key scenarios that are common in hybrid networking and how they influence the design and architecture of your workloads on AWS It also presents the assumptions that were made for each scenario the common drivers for the design and a reference architecture of how these scenarios are implemented This article covers the following two hybrid networking scenarios Getting started with hybrid connectivity using Site to Site VPNDesigning a reliable dedicated global hybrid networking setup using fiber connectivity for critical workloads Getting started with hybrid connectivity using Site to Site VPNThe easiest way to get started with hybrid connectivity is to establish site to site VPN over the internet AWS Site to Site VPN extends your data center or branch office to the cloud using IP Security IPsec tunnels You can configure routing using Border Gateway Protocol BGP over the IPsec tunnel or configure static routes Traffic in the tunnel is encrypted with AES or AES and uses Diffie Hellman groups for key exchange providing Perfect Forward Secrecy Each AWS Site to Site VPN connection consists of two VPN tunnel endpoints for redundancy For high availability it s important to terminate a VPN tunnel to both of the endpoints Each tunnel terminates in a different Availability zone within the AWS global network but must also terminate on the same equipment on premises It s also important that you have a similar highly available configuration set up at the on premises equipment and terminate the VPN on two different physical devices in your data center AWS Site to Site VPN supports terminating IPSEC tunnels to both virtual private gateway and AWS Transit Gateway at the AWS end When terminating a VPN on a virtual private gateway you can access the VPC that the gateway is attached to For every other VPC that you want to connect to you must create a separate VPN tunnel to a separate virtual private gateway attached to that VPC With AWS Transit Gateway you get connectivity to thousands of VPCs over a pair of VPN tunnels Additionally Transit Gateway supports Equal Cost Multipath ECMP routing strategy allowing you to load balance traffic across multiple VPN tunnels for high availability and bandwidth aggregation When leveraging Transit Gateway you can optionally enable acceleration for your Site to Site VPN connection An accelerated Site to Site VPN connection uses AWS Global Accelerator to route traffic from your on premises network to an AWS edge location that is closest to your customer gateway device AWS Global Accelerator optimizes the network path using the congestion free AWS global network to route traffic to the endpoint that provides the best application performance When using Site to Site VPN you are charged for each VPN connection hour that your VPN connection is provisioned and available Data transfer out on AWS Site to Site VPN incurs data transfer out charges For more information refer to the EC On Demand pricing page When using Transit Gateway in addition to the AWS Site to Site VPN costs you also pay for transit gateway VPN attachment For more information refer to AWS Transit Gateway pricing To summarize terminating VPN at TGW gives you a lot more flexibility into the number of VPCs you can connect to over single tunnel and provides added functionality like ECMP accelerated VPN and hence is a recommended default starting point for your architectures That being said for some unique use cases involving large data transfers leveraging the VGW termination endpoint can be cheaper and hence can be a viable alternative Site to Site VPN reference architecture Designing a reliable dedicated hybrid networking setup using fiber connectivity for critical workloadsNetwork latency over the internet varies because it is constantly changing how data gets from point A to point B While accelerated VPN helps with network latency the last mile from an AWS edge location to your data center is still over the internet To achieve consistent end to end network performance you can leverage AWS Direct Connect to enable consistent low latency high bandwidth dedicated fiber connectivity between your data centers and AWS Direct Connect provides dedicated connections at bandwidths of Gbps Gbps and Gbps Hosted connections are provided by AWS Direct Connect Partners using pre established network links between themselves and AWS and are available from Mbps up to Gbps AWS Direct Connect is available at over locations around the world Building highly resilient fault tolerant connections are key to a well architected system when connecting to AWS Direct Connect locations AWS recommends connecting from multiple data centers for physical location redundancy as well as establishing multiple connections at a direct connect location for device redundancy When designing WAN connections investigate using redundant hardware and telecommunications providers with redundant paths A best practice is to use dynamic routing with Direct Connect Active Active connections for automatic load balancing and failover across redundant network connections Additionally provision sufficient network capacity to ensure that the failure of one network connection does not overwhelm and degrade redundant connections To achieve the best availability you can leverage the resiliency architecture for AWS Direct Connect as shown in the following diagram AWS Direct Connect maximum resiliency architectureIf you need more than Gbps of bandwidth you can provision a link aggregation group LAG bundle with AWS Direct Connect A LAG is a logical interface that uses the Link Aggregation Control protocol LACP to aggregate multiple connections at a single Direct Connect location allowing you to treat them as a single managed connection You can have a maximum of two G connections or four connections with a port speed less than G in a LAG You can create a LAG from existing connections or you can provision new connections However a LAG only includes ports on the same AWS device AWS doesn t support multi chassis LAG this means all of your Direct Connect connections terminate on the same hardware on the AWS side A LAG is not recommended for a high availability strategy Once the physical connectivity is established at the Direct Connect location you can create virtual interfaces which are logical connections on top of physical Direct Connect connections that enable access to AWS resources These virtual interfaces are tagged with Q VLANs and require the use of Border Gateway Protocol BGP AWS Direct Connect provides the following virtual interfaces Public virtual interfaces Provide global connectivity to public AWS resources including AWSpublic service endpoints public Amazon EC IP addresses and public Elastic Load Balancing addresses Private virtual interfaces Provide connectivity to the private IP range of your VPC When you use private virtual interfaces your VPC becomes a logical layer extension of your network For information about pricing refer to the AWS Direct Connect pricing Transit virtual interfaces Enables connectivity to Transit Gateway s While this virtual interface enables scaling you pay for the cost associated with AWS Direct Connect and Transit Gateway For more information about pricing refer to the AWS Transit Gateway pricing In the digital world of today most customers are establishing global presence There is a need to deploy resources within a large number of VPCs across multiple AWS Regions and connect to them from datacenters spread across geographies By leveraging AWS Direct Connect gateway a global resource that allows you to use your Direct Connect connections to connect to resources in VPCs in most AWS Regions you can more easily connect to your resources To enable global connectivity you can create and associate a Direct Connect gateway with the virtual private gateway of the VPC you want connectivity into and then create a private virtual interface to the Direct Connect gateway You can associate up to virtual private gateways each attached to a VPC in different AWS Regions directly to a Direct Connect gateway Alternatively you can create a transit virtual interface and attach a total of three transit gateways each attached to thousands of VPCs across different AWS Regions to a Direct Connect gateway For standard use cases we recommend starting with a transit virtual interface However if your data transfer volume is high for example on premises data backup to a VPC or if you have Gbps connections and want full Gbps bandwidth to a VPC we recommend using a private virtual interface Additionally you can use a hybrid approach for multiple use cases as showing in the following diagram Global Direct Connect reference architecture high resiliency Hope this guide gives you an Introduction to General design principles for hybrid networking Let me know your thoughts in the comment section And if you haven t yet make sure to follow me on below handles connect with me on LinkedInconnect with me on Twitterfollow me on github️Do Checkout my blogs Like share and follow me for more content ltag user id follow action button background color important color fac important border color important Adit ModiFollow Cloud Engineer AWS Community Builder x AWS Certified x Azure Certified Author of Cloud Tech DailyDevOps amp BigDataJournal DEV moderator Reference Guide |
2022-02-19 15:51:46 |
海外TECH |
Engadget |
Salesfore employees protest against its NFT ambitions |
https://www.engadget.com/salesfore-employees-protest-nft-ambitions-153913396.html?src=rss
|
Salesfore employees protest against its NFT ambitionsSalesforce employees aren t happy with the company s plans to enter the non fungible token NFT market According to the Thomson Reuters Foundation over employees around the world have signed an open letter raising concerns about the environmental impact of NFTs as well as their quot unregulated highly speculative quot nature as financial assets quot The amount of scams and fraud in the NFT space is overwhelming quot the employees reportedly wrote The company the San Francisco cloud based software firm that owns Slack told its employees in early February that it s planning a series of NFT related initiatives They include launching an NFT Cloud that could help people create NFTs and list them on marketplaces NFTs have blown up in popularity over the past year and big companies have been cashing in on the craze While not all ventures have been successful some have made big money Adidas for instance made million during its first NFT drop That said NFTs remain controversial for several reasons including their environmental impact It takes a lot of energy to sustain the blockchain activities associated with the tokens One estimate backed by researchers put an average NFT s footprint at over kilograms of carbon which is equivalent to driving miles in a gas powered car Salesforce employees concerns about the environmental impact of the tokens come from the fact that the company positions itself as a leader in sustainable business ーit even released a Superbowl ad starring Matthew McConaughey emphasizing its commitment to sustainability A Salesforce spokesperson told Thomson Reuters that the company welcomes quot employees feedback and is proud to foster a culture of trust that empowers them to raise diverse points of view quot They also said that the company is holding a listening session with employees next week nbsp |
2022-02-19 15:39:13 |
海外科学 |
NYT > Science |
Who Is Behind QAnon? Linguistic Detectives Find Fingerprints |
https://www.nytimes.com/2022/02/19/technology/qanon-messages-authors.html
|
Who Is Behind QAnon Linguistic Detectives Find FingerprintsUsing machine learning separate teams of computer scientists identified the same two men as likely authors of messages that fueled the viral movement |
2022-02-19 15:30:21 |
ニュース |
BBC News - Home |
Shock of invasion of Ukraine would echo around world - PM |
https://www.bbc.co.uk/news/uk-politics-60432970?at_medium=RSS&at_campaign=KARANGA
|
fellow |
2022-02-19 15:18:41 |
ニュース |
BBC News - Home |
Ukraine conflict: Rebels declare general mobilisation as fighting grows |
https://www.bbc.co.uk/news/world-europe-60443504?at_medium=RSS&at_campaign=KARANGA
|
russia |
2022-02-19 15:44:41 |
ニュース |
BBC News - Home |
Storm Eunice leaves thousands of homes without power |
https://www.bbc.co.uk/news/uk-60442797?at_medium=RSS&at_campaign=KARANGA
|
eunice |
2022-02-19 15:29:22 |
北海道 |
北海道新聞 |
前回覇者スウェーデンが銅 カーリング・19日 |
https://www.hokkaido-np.co.jp/article/647869/
|
覇者 |
2022-02-20 00:21:00 |
北海道 |
北海道新聞 |
独のノルテ、レビ組優勝 ボブスレー・19日 |
https://www.hokkaido-np.co.jp/article/647867/
|
後半 |
2022-02-20 00:04:00 |
コメント
コメントを投稿