python |
Pythonタグが付けられた新着投稿 - Qiita |
LINEブロックチェーン チュートリアルやってみた! |
https://qiita.com/MDevelopper/items/3b1342fa6dbab51803a8
|
追加分がトークンを送信してみようNFTを送信してみようLINEBlockChainの構造概要簡単なLINEDveloppersの構造の紹介サイドチェーンサイドチェーンは親チェーンでトランザクションを作成し、子チェーンで相対するトランザクションを作成し、資産を転送するという手法を取ります。 |
2021-07-25 14:25:19 |
python |
Pythonタグが付けられた新着投稿 - Qiita |
Yoasobiの歌詞で、GCP APIとTransformersの感情分析結果を比較 |
https://qiita.com/leolui2013/items/15d61d68c69ec829098d
|
GCPとTransformers両方が完全に反対の方向にスコアリングされています優しさの日々を辛い日々と感じてしまったこれもトリッキーで、ポジティブな単語「優しさ」とネガティブな単語「辛い」両方が文に含まれており、GCPは文の構造を認識できませんでしたパート結果歌詞の一段落または長文パートは最も難しい部分であり、人によって解釈が異なる場合があります。 |
2021-07-25 14:07:22 |
js |
JavaScriptタグが付けられた新着投稿 - Qiita |
htmlファイルのみでPDFを生成できるようなのでドラゴン桜計算プリントを作ってみた |
https://qiita.com/nakazawaken1/items/e25d5de4aef736eddd61
|
htmlファイルのみでPDFを生成できるようなのでドラゴン桜計算プリントを作ってみたはじめに子供が算数のテストで単純な計算ミスをよくしているようなので、計算力をつけたいと思い、簡単な四則演算のプリントを印刷するために、Googleスプレッドシートを使って問題を生成して毎日分で人家族全員で解いていました。 |
2021-07-25 14:04:49 |
Program |
[全てのタグ]の新着質問一覧|teratail(テラテイル) |
無言低評価禁止!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! |
https://teratail.com/questions/351123?rss=all
|
commentcommentcomment |
2021-07-25 14:51:53 |
Program |
[全てのタグ]の新着質問一覧|teratail(テラテイル) |
Laravel で検索機能を作成したい |
https://teratail.com/questions/351122?rss=all
|
Laravelで検索機能を作成したい前提・実現したいこと検索に対して部分一致した場合、データを取得できるようにしたいここに質問の内容を詳しく書いてください。 |
2021-07-25 14:39:00 |
Program |
[全てのタグ]の新着質問一覧|teratail(テラテイル) |
Mavenプロジェクトでのテストコードのクラスのビルドエラーの解消法 |
https://teratail.com/questions/351121?rss=all
|
Mavenプロジェクトでのテストコードのクラスのビルドエラーの解消法現在、MavenプロジェクトへGitHubnbspActionsを用いてCIを導入しようとしているのですが、下記のようなワークフローのymlファイルでビルドを行うと、テストコードの部分でビルドエラーが発生し、ビルドが出来ない状態でおります。 |
2021-07-25 14:36:32 |
Program |
[全てのタグ]の新着質問一覧|teratail(テラテイル) |
(pandas)条件に合致した列の一部のみ、違う列を違うdfに取得する方法 |
https://teratail.com/questions/351120?rss=all
|
pandas条件に合致した列の一部のみ、違う列を違うdfに取得する方法下記の様なコードでデータを取得する場合、取得するデータに条件を加える方法をお教えいただきたく思います。 |
2021-07-25 14:24:30 |
Program |
[全てのタグ]の新着質問一覧|teratail(テラテイル) |
VGG16による画像分類(配列のサイズに関するエラー) |
https://teratail.com/questions/351119?rss=all
|
サイトではVGGを対象にしていますが、VGGに追加で学習を行ったモデルを扱っています。 |
2021-07-25 14:24:26 |
Program |
[全てのタグ]の新着質問一覧|teratail(テラテイル) |
Android Studio でKotlinのソースコードをコンパイルするとエラーが出ます。 |
https://teratail.com/questions/351118?rss=all
|
AndroidStudioでKotlinのソースコードをコンパイルするとエラーが出ます。 |
2021-07-25 14:20:41 |
Program |
[全てのタグ]の新着質問一覧|teratail(テラテイル) |
[Unity3D] 球体をプレイヤーを中心に回転させてカメラの前に表示させいたい。 |
https://teratail.com/questions/351117?rss=all
|
UnityD球体をプレイヤーを中心に回転させてカメラの前に表示させいたい。 |
2021-07-25 14:19:36 |
Program |
[全てのタグ]の新着質問一覧|teratail(テラテイル) |
Vueの初歩的な質問になります。 |
https://teratail.com/questions/351116?rss=all
|
Vueの初歩的な質問になります。 |
2021-07-25 14:12:57 |
Program |
[全てのタグ]の新着質問一覧|teratail(テラテイル) |
Blazor WebAssemblyのアプリをHerokuにアップする方法 |
https://teratail.com/questions/351115?rss=all
|
BlazorWebAssemblyのアプリをHerokuにアップする方法BlazornbspWebAssemblyで作ったアプリをHerokuにアップしたいのですが、やり方が分かりません。 |
2021-07-25 14:11:35 |
Program |
[全てのタグ]の新着質問一覧|teratail(テラテイル) |
[pathlib]for 文 関数を同時に呼び出すときに順番はありますか? |
https://teratail.com/questions/351114?rss=all
|
pathlibfor文関数を同時に呼び出すときに順番はありますか質問事項rangeleniのような使い方をした、呼び出す順番は決まっていますか取り組んでいることと発生している事象現在、Pathlibを使用し画像の一括編集に取り組んでいます。 |
2021-07-25 14:07:16 |
Docker |
dockerタグが付けられた新着投稿 - Qiita |
[01] Jenkins on Docker のセットアップ ... 1マスタ、1スレーブ |
https://qiita.com/robozushi10/items/5d98d0fce0ab22e4850c
|
|
2021-07-25 14:57:41 |
GCP |
gcpタグが付けられた新着投稿 - Qiita |
Yoasobiの歌詞で、GCP APIとTransformersの感情分析結果を比較 |
https://qiita.com/leolui2013/items/15d61d68c69ec829098d
|
GCPとTransformers両方が完全に反対の方向にスコアリングされています優しさの日々を辛い日々と感じてしまったこれもトリッキーで、ポジティブな単語「優しさ」とネガティブな単語「辛い」両方が文に含まれており、GCPは文の構造を認識できませんでしたパート結果歌詞の一段落または長文パートは最も難しい部分であり、人によって解釈が異なる場合があります。 |
2021-07-25 14:07:22 |
海外TECH |
DEV Community |
AWS EKS With Amazon EC2 Spot Instances |
https://dev.to/awscommunity-asean/aws-eks-with-amazon-ec2-spot-instances-405o
|
AWS EKS With Amazon EC Spot Instances AbstractThis post provides an overview of Amazon EC Spot Instances as well as best practices for using them on AWS EKS effectively Table Of ContentsWhat to know about spot instances The life cycle of a Spot InstanceHow to Launch Spot InstancesSpot Instance Termination NoticeDeploy the node termination handlerSpot Instance Best PracticesSolutionConclusion What to know about spot instances The life cycle of a Spot Instance You or an application running on your behalf submits a bid to run a desired number of EC instances of a particular type The bid includes the price that you are willing to pay to use the instance for an hour When your bid price exceeds the current Spot price which varies based on supply and demand your instances are run Spot instance is interrupted or reclaimed for one of following reasons Price The Spot price is greater than your maximum price Capacity If there are not enough unused EC instances to meet the demand for On Demand Instances Amazon EC interrupts Spot Instances The order in which the instances are interrupted is determined by Amazon EC Constraints If your request includes a constraint such as a launch group or an Availability Zone group these Spot Instances are terminated as a group when the constraint can no longer be met How to Launch Spot Instances The most recommended service for launching Spot Instances is Amazon EC Auto Scaling especially Amazon EKS node groupIf you require more flexibility have built your own instance launch workflows or want to control individual aspects of the instance launches or the scaling mechanisms you can use EC Fleet in Instant mode Spot Instance Termination Notice The best way for you to gracefully handle Spot Instance interruptions is to architect your application to be fault tolerant To accomplish this you can take advantage of Spot Instance interruption notices A Spot Instance interruption notice is a warning that is issued two minutes before Amazon EC stops or terminates your Spot Instance It s recommended to check for these interruption notices every seconds eg Polling every second s Deploy the node termination handler We will deploy a pod on each Spot Instance to detect the instance termination notification signal so that we can both terminate gracefully any pod that was running on that node drain from load balancers and redeploy applications elsewhere in the cluster The Helm chart we will use to deploy AWS Node Termination Handler on each Spot Instance uses a DaemonSet This will monitor the EC meta data service on each of the EC Spot Instances to capture EC interruption notices Within the Node Termination Handler DaemonSet the workflow can be summarized as Identify that a Spot Instance is being reclaimed Use the minute notification window to gracefully prepare the node for termination Taint the node and cordon it off to prevent new pods from being placed Drain connections on the running pods Replace the pods on remaining nodes to maintain the desired capacity In this post I would like to enable SpotInterruptionDraining on SPOT instances only Read more AWS Node Termination HandlerUsing helm deploy aws node termination handler with enable enableSpotInterruptionDraining and enableRebalanceMonitoring plus webhookURL to send notification to slack apply for spot instances only We use set nodeSelector lifecycle spot to tell the all daemon sets where to place the node termination handler pods but the autoscaling group need to add the label lifecycle spot to it nodes or you can use any labels that matche the requirementhelm repo add eks helm upgrade install aws node termination handler namespace kube system set enableSpotInterruptionDraining true set enableRebalanceMonitoring true set enableScheduledEventDraining false set nodeSelector lifecycle spot set webhookURL ID gt eks aws node termination handlerCheck the pods kubectl get pod n kube system grep aws node termination handleraws node termination handler gsq Running m ip ap northeast compute internal lt none gt lt none gt aws node termination handler tnw Running m ip ap northeast compute internal lt none gt lt none gt aws node termination handler jxf Running m ip ap northeast compute internal lt none gt lt none gt Slack alarmRebalance recommendationSpot interruption eventCheck CPU and mem cost by the pod Spot Instance Best Practices Flexible about instance types for example my applications almost run in java and they require much memory so I choose R type and its family could be r xlarge ra xlarge etc Flexible of Availability Zone here I give the case of using EKS node group Configure multiple node groups scope each group to a single Availability Zone and enable the balance similar node groups feature in cluster autoscaler so that we will have at least each node in different zones and guarentee the HA Especially when the PVC is attached to an AZ the pod need to be start on a spot instance in same zone eg Create two node groups in different AZ using AWS cdk self eks cluster add nodegroup capacity id EksNodeGroupStateless capacity type eks CapacityType SPOT desired size disk size instance types ec InstanceType ra xlarge ec InstanceType r xlarge labels role worker type stateless lifecycle spot max size min size nodegroup name eks node group node role worker role subnets ec SubnetSelection subnet type ec SubnetType PRIVATE availability zones ap northeast a self eks cluster add nodegroup capacity id EksNodeGroupStateful capacity type eks CapacityType SPOT desired size disk size instance types ec InstanceType ra xlarge ec InstanceType r xlarge labels role worker type stateful lifecycle spot max size min size nodegroup name eks node group stateful node role worker role subnets ec SubnetSelection subnet type ec SubnetType PRIVATE availability zones ap northeast b Prepare individual instances for interruptions The best way for you to gracefully handle Spot Instance interruptions is to architect your application to be fault tolerant in EKS we can use HPA to ensure the number of available pods if one node down and use cluster autoscaler to request new node Max price We recommend that you do not specify a maximum price but rather let the maximum price default to the On Demand price A high maximum price does not increase your chances of launching a Spot Instance See EC Spot pricing modelRef ltag user id follow action button background color important color df important border color important Vu DaoFollow Awesome Devops AWS SA CloudOpz vumdao vumdao |
2021-07-25 05:53:57 |
海外TECH |
DEV Community |
5 UI Tips to Become a Better Front End Developer |
https://dev.to/ruppysuppy/5-ui-tips-to-become-a-better-front-end-developer-1ae1
|
UI Tips to Become a Better Front End DeveloperOften while starting out beginners struggle to create captivating UI that gets users hooked to their applications Today we are going to fix just that But before starting I would like to point out that there is no One Right Answer to Designing anything that looks pleasing to the eye of a large majority of the people is considered good design In this article we would go over Tips that are considered Good Design Practices Maintain Consistent AlignmentA lot of sites follow Inconsistent Alignment with different alignments for the Navbar and the Main Content of the site This leads the websites to look something like this The example below looks much more structured Space Out Your ContentThis is one of the things you develop an eye for by default as you gain more experience in developing more websites As you can see here the one with more spaced out content looks much more professional NOTE More spacing isn t always what is required for example you can get away with little spacing between the Title and Date in the case of a Blog website Something that goes hand in hand with the previous point maintain consistent spacing the padding margin in the left amp right sides should be equal same is the case for the padding margin in the top amp bottom Color and ContrastColor is an inherent part of design and is simply the most important thing to keep in mind while developing a modern UI without proper Color amp Contrast even the websites with the best UI end up looking like crap You can see the significant improvement in the picture below just by changing the colors You can use Tools like Coolors to generate colors that go well with each other It s a good idea to limit the number of colors you use to Two you can very well use different hues of the same colors and some generic colors like white black amp grey For Web Accessibility WCAG level AA requires a contrast ratio of at least for normal text and for large text WCAG requires a contrast ratio of at least for graphics and user interface components such as form input borders WCAG Level AAA requires a contrast ratio of at least for normal text and for large text To check your Website s Accessibility you can use tools like Lighthouse from Chrome Dev Tools and Wave TypographyYou can easily get away with using only one Font Family for your entire website At most you should try to keep the Font Families limited to Two as using multiple fonts can easily overwhelm the user and even make the website look unstructured and unprofessional Visual HierarchyVisual Hierarchy is also one of the most crucial components of an amazing UI There is a great quote by a Great Developer read By Me A great developer is someone who makes implied actions evidentVisual Hierarchy is used to highlight certain parts of the Website which you want the users to focus on You can employ several tactics for making users focus on a part of the site No FocusFocus using ContrastFocus using ColorFocus using ScaleFocus using Contrast Color amp ScaleVisual Hierarchy provides information to the users where they should look atIn this example it s not evident in one glance where we should focus our attention on This can easily be improved by making some minor changes ConclusionIn this article we went through some UI concepts that help you develop a more attractive UI I would like to remind you UI design is quite subjective and as stated in the Intro there is no ONE correct answer Hope you will employ these concepts in your applications and make awe inspiring websites Thanks for readingWant to work together Contact me on UpworkWant to see what I am working on Check out my GitHubI am a freelancer who will start off as a Digital Nomad in mid Want to catch the journey Follow me on InstagramFollow my blogs for weekly new tidbits on DevFAQFor the past few weeks I had a lot of people reach out to me asking these questions hundreds of times so I decided to add a dedicated FAQ section for themI am a beginner how should I learn Front End Web Dev First get the fundamentals of HTML CSS JS down Learn any front end framework library React Vue Angular Then keep making Projects or make Open Source Contributions to attain mastery Relevant Article Links Front End Project Ideas Get Started With Open SourceWould you mentor me Sorry I already am under a lot of workload and would not have the time to mentor anyone Connect to me on LinkedIn Portfolio Upwork GitHub Instagram |
2021-07-25 05:43:29 |
海外TECH |
DEV Community |
What is Anchor tag ? |
https://dev.to/hrushikesh41/what-is-a-tag-553j
|
What is Anchor tag Hello Guy sI m back with another post As mentioned in my previous post that my next post will be on anchor tags Hope you liked my previous post So let s start Let s take for example that whenever you visit any site it asks you to login But sometimes it happens that you forget your password So you click on the forgot password link which redirects you to another page Ever wondered how does it happens It is done with the help of anchor tag Anchor tag means hyperlink It is used to link one HTML page to another The main attribute in this element is href In this href attribute we specify the location of the file Whenever the user will click on the link user will be redirected to the page that you have provided in href Let s see it practically HTMLanchor tag is created by writing just a letter in arrows The href attribute is placed inside the a tag You can see the code below Your hyperlink will be seen like this Now in the Above HTML code you might have noticed that I have written in href attribute this means that hyperlink will be created but will not redirect to any link It s time to add a file in href attribute Now there are multiple ways to give location Select the file that you want to give in href and press right click copy the entire file location Now just paste the file location in href attribute Second method If you have multiple files or folder in your project just write in href attribute and you can see the files and folder Just select it Now when you click on the hyperlink it redirect user to the new page that you gave in href You can see the output below So here how you can create a hyperlink in your page Give it try in your navbar Just create some pages and place the file locations in href If you don t know how to create navbar have a look on my previous post See you in next post Happy Coding |
2021-07-25 05:09:01 |
海外科学 |
NYT > Science |
Why Some Americans Are Still Hesitant to Get Vaccinated |
https://www.nytimes.com/2021/07/24/us/covid-vaccine-hesitant.html
|
Why Some Americans Are Still Hesitant to Get VaccinatedThe U S vaccine rollout has plateaued and the course of the coronavirus pandemic in this country may depend on how many people are ultimately swayed to get vaccinated |
2021-07-25 05:00:41 |
海外ニュース |
Japan Times latest articles |
Free speech or secession? ‘Liberate Hong Kong’ at heart of landmark case |
https://www.japantimes.co.jp/news/2021/07/25/asia-pacific/hong-kong-landmark-case/
|
speech |
2021-07-25 14:07:01 |
海外ニュース |
Japan Times latest articles |
Japan’s Yuto Horigome wins first skateboarding gold in Olympic history |
https://www.japantimes.co.jp/sports/2021/07/25/olympics/summer-olympics/skateboarding/horigome-skateboarding-olympics/
|
Japan s Yuto Horigome wins first skateboarding gold in Olympic historyIn a nail biting final Horigome stumbled through the two initial runs but recovered his signature cool demeanor in landing four of the five final tricks |
2021-07-25 14:43:59 |
海外ニュース |
Japan Times latest articles |
Naomi Osaka off to winning start at Tokyo Olympics |
https://www.japantimes.co.jp/sports/2021/07/25/olympics/summer-olympics/olympic-tennis/naomi-osaka-first-round-win/
|
Naomi Osaka off to winning start at Tokyo OlympicsThe second seeded Osaka the favorite for gold following the shock first round exit of Ashleigh Barty will play Switzerland s Viktorija Golubic in the last |
2021-07-25 14:39:10 |
海外ニュース |
Japan Times latest articles |
‘Unbelievable’: Tunisia’s Ahmed Hafnaoui in shock after Olympic 400-meter freestyle win |
https://www.japantimes.co.jp/sports/2021/07/25/olympics/summer-olympics/olympic-swimming/tunisia-gold-medal/
|
Unbelievable Tunisia s Ahmed Hafnaoui in shock after Olympic meter freestyle winThe year old only scraped into the final after posting the eighth fastest time in qualifying but he delivered a sizzling last meters to touch |
2021-07-25 14:26:15 |
海外ニュース |
Japan Times latest articles |
IOC would back schedule changes at Tokyo Games if needed due to heat |
https://www.japantimes.co.jp/sports/2021/07/25/olympics/summer-olympics/tokyo-olympics-heat/
|
changes |
2021-07-25 14:15:14 |
海外ニュース |
Japan Times latest articles |
Japan’s rugby sevens teams hoping to build on momentum from Rio and 2019 World Cup |
https://www.japantimes.co.jp/sports/2021/07/25/olympics/summer-olympics/olympic-rugby/rugby-sevens-japan-olympics/
|
Japan s rugby sevens teams hoping to build on momentum from Rio and World CupReturning Olympians who know the agony of just losing out on a medal and youthful exuberance will spearhead Japan s challenge in the rugby sevens Olympic |
2021-07-25 14:05:32 |
ニュース |
BBC News - Home |
Andy Murray withdraws from Olympics singles |
https://www.bbc.co.uk/sport/olympics/57958708
|
minor |
2021-07-25 05:42:39 |
ニュース |
BBC News - Home |
The Papers: Double jab for football and PM's crime 'blitz' |
https://www.bbc.co.uk/news/blogs-the-papers-57958278
|
front |
2021-07-25 05:05:47 |
ニュース |
BBC News - Home |
Jones shock & Murray withdraws from tennis singles - day two so far |
https://www.bbc.co.uk/sport/olympics/57959157
|
jones |
2021-07-25 05:32:04 |
ニュース |
BBC News - Home |
GB begin Olympic hockey title defence with defeat by Germany |
https://www.bbc.co.uk/sport/olympics/57958700
|
tokyo |
2021-07-25 05:37:25 |
ニュース |
BBC News - Home |
World number one Barty stunned in Olympics first round |
https://www.bbc.co.uk/sport/olympics/57959225
|
tokyo |
2021-07-25 05:35:06 |
ニュース |
BBC News - Home |
Tokyo Olympics: Tunisia's Ahmed Hafnaoui wins gold, surfing and skateboarding debut & Jade Jones beaten |
https://www.bbc.co.uk/sport/av/olympics/57959819
|
Tokyo Olympics Tunisia x s Ahmed Hafnaoui wins gold surfing and skateboarding debut amp Jade Jones beatenWatch key moments from the early events of day two at the Tokyo Olympics including a swimming shock new sports taking centre stage and heartbreak for Jade Jones |
2021-07-25 05:31:15 |
北海道 |
北海道新聞 |
女子日本は初戦黒星 ホッケー・25日 |
https://www.hokkaido-np.co.jp/article/570791/
|
黒星 |
2021-07-25 14:11:00 |
北海道 |
北海道新聞 |
テニスのアンディ・マリーが棄権 男子シングルス五輪2連覇 |
https://www.hokkaido-np.co.jp/article/570790/
|
男子シングルス |
2021-07-25 14:07:00 |
コメント
コメントを投稿