python |
Pythonタグが付けられた新着投稿 - Qiita |
PythonのロギングでGmail送信する |
https://qiita.com/ryoheiszk/items/8b072adeb368cc35588d
|
PythonのロギングでGmail送信するロギングの全体像としては下の記事をご覧いただきまして、今回はメール送信部分のみ扱います。 |
2021-05-23 00:53:51 |
python |
Pythonタグが付けられた新着投稿 - Qiita |
Python: AmazonのURLからASINのみが記載されたURLを生成する |
https://qiita.com/ekemtt/items/3d7372bb6b17ddcd12f3
|
PythonAmazonのURLからASINのみが記載されたURLを生成するはじめに本コードはAmazonで商品を検索したときに表示されるURLをクリップボードコピーして実行すると、ASINのみを含むURLに変換してクリップボードにコピーし直すというものです。 |
2021-05-23 00:47:00 |
python |
Pythonタグが付けられた新着投稿 - Qiita |
[Python] 浮動小数点数のオーダーを取得し、有効数字での丸め込みをする |
https://qiita.com/7304sk/items/182dfb5a59f11aa9106d
|
はじめに科学数値計算を行う際に、「有効数字n桁」に数字を丸め込みしたいということがあると思います私はありました。 |
2021-05-23 00:22:56 |
python |
Pythonタグが付けられた新着投稿 - Qiita |
指定した周波数の音のwavファイルを作成する |
https://qiita.com/sgeboku/items/b2e0bb7bdd3c48cd580d
|
指定した周波数の音のwavファイルを作成するnoisydoremipyノイジーなドレミファソラシドのwavファイルを作成するimportnumpyasnpimportwaveimportstructimportmatplotlibpyplotaspltfromnumpyimportzerosimportrandomfnamedoremifasorashidowavwfwaveopenfnamewchチャンネル数はCHモノラルwidthサンプルサイズはバイトsamplerateサンプリングレートはkHzwfsetnchannelschwfsetsampwidthwidthwfsetframeratesampleratetime秒allsamplestimesamplerateデータ総数×個信号データを作るnumpyのndarrayでfreq周波数はドレミファソラシドの周波数Hzxnplinspacetimeallsamplesallsamplesを周波数freqの数で分割yzerosallsamplesallsamples分の行列を作成sliceintallsampleslenfreqforijinenumeratefreqnoisenprandomrandsliceあえてノイズを加える。 |
2021-05-23 00:08:51 |
python |
Pythonタグが付けられた新着投稿 - Qiita |
discord.py×Google翻訳TTS×Heroku(無料枠)で24時間稼働のDiscord読み上げbotを作った |
https://qiita.com/akira_splatoon/items/f63978411786c8574556
|
discordpy×Google翻訳TTS×Heroku無料枠で時間稼働のDiscord読み上げbotを作った背景Discord読み上げbotはたくさんあるのですが、夜は負荷が大きいのか安定して使えないことが多いです。 |
2021-05-23 00:04:06 |
js |
JavaScriptタグが付けられた新着投稿 - Qiita |
phina.jsの環境を構築する |
https://qiita.com/alkn203/items/ffb4c1a94c781536d5e6
|
phinajsの環境を構築するphinajsの開発環境を構築するこのTips集では、Webブラウザ上でコーディング・実行が可能なrunstantを使用してますので、基本的に開発環境として必要なものはWebブラウザだけです。 |
2021-05-23 00:34:41 |
js |
JavaScriptタグが付けられた新着投稿 - Qiita |
React+Material-UIでスマホのみにタブを表示させる |
https://qiita.com/ryomaono/items/2bdb60927f4603a93f91
|
やりたいことPCではGridを使い縦列にコンポーネントを配置したいスマホでは、つのコンポーネントのどれを表示するか選択できるタブを表示させたいスマホでは、タブの選択で動的にコンポーネントをつずつ表示させたいPCでの表示スマホでの表示方針MaterialUIのTabを利用するState変数を配列で宣言し、スマホとPCで設定する初期値を変えるTabの選択で、それぞれの数字を配列に入れる変数がそれぞれの数字を持っているかいないかで、表示を出し分ける実装UseStateで宣言スマホの表示幅をpx未満とし、windowinnnerWidthで判定する。 |
2021-05-23 00:19:00 |
js |
JavaScriptタグが付けられた新着投稿 - Qiita |
保存失敗でエラーが出ない |
https://qiita.com/tatsunori-abe/items/548ec9e035bdc11c159a
|
erbpurchasepurchasecreate |
2021-05-23 00:18:45 |
Program |
[全てのタグ]の新着質問一覧|teratail(テラテイル) |
swiftでの非同期処理完了までの待機の仕方 |
https://teratail.com/questions/339818?rss=all
|
|
2021-05-23 01:00:16 |
Program |
[全てのタグ]の新着質問一覧|teratail(テラテイル) |
railsの構文を理解したい |
https://teratail.com/questions/339817?rss=all
|
railsの構文を理解したい前提・実現したいこと元々Java開発をしていましたが、現在Rails開発に携わっています。 |
2021-05-23 00:41:49 |
Program |
[全てのタグ]の新着質問一覧|teratail(テラテイル) |
chart.jsで描画しているRadarチャートが崩れてしまう |
https://teratail.com/questions/339816?rss=all
|
chartjsで描画しているRadarチャートが崩れてしまう同じ構造のチャートがあり、上のチャートはレスポンシブだが、下のチャートはwidthがpx以下にならずに以下の写真のように崩れてしまう。 |
2021-05-23 00:26:26 |
Program |
[全てのタグ]の新着質問一覧|teratail(テラテイル) |
GAS トリガーが実行されない |
https://teratail.com/questions/339815?rss=all
|
GASトリガーが実行されない現在、lineで使える予定表botを作成しているのですが、決まった時間に通知を送信するためのトリガーが起動しません。 |
2021-05-23 00:24:22 |
Program |
[全てのタグ]の新着質問一覧|teratail(テラテイル) |
Eclipseでフォルダが名前変更により表示されなくなった |
https://teratail.com/questions/339814?rss=all
|
Eclipseでフォルダが名前変更により表示されなくなった前提・実現したいこと現在、Eclipseを使いJavaを学んでいます。 |
2021-05-23 00:19:18 |
Program |
[全てのタグ]の新着質問一覧|teratail(テラテイル) |
05/22 AtCoderBeginnerContestのB問題について。 |
https://teratail.com/questions/339813?rss=all
|
昨日のAtCoderBeginnerContestのB問題について下記のように回答したのですが、うまくいきません。 |
2021-05-23 00:05:42 |
Program |
[全てのタグ]の新着質問一覧|teratail(テラテイル) |
Java: socketとグローバルIPアドレスを用いた通信 |
https://teratail.com/questions/339812?rss=all
|
javasocket |
2021-05-23 00:01:33 |
Ruby |
Rubyタグが付けられた新着投稿 - Qiita |
Herokuデプロイ 流れメモ |
https://qiita.com/glaciermelt00/items/8c54eed70af8aa16c2d2
|
Herokuデプロイ流れメモ背景毎回Herokuデプロイする流れをメモ。 |
2021-05-23 00:35:54 |
AWS |
AWSタグが付けられた新着投稿 - Qiita |
AWS App Runner を CLI から試す |
https://qiita.com/yoichi3m/items/f50db868553c9153a67e
|
ただし、deleteserviceした後も、CloudWatchLogsのログは削除されなかったため、そちらのほうから、サービスの状態を確認することは不可能ではないかもしれません。 |
2021-05-23 00:34:52 |
Git |
Gitタグが付けられた新着投稿 - Qiita |
github first |
https://qiita.com/itdokatayuuki77/items/27a55dd731704aeefa24
|
githubfirstまずは登録情報を確定させる。 |
2021-05-23 00:58:22 |
Ruby |
Railsタグが付けられた新着投稿 - Qiita |
Herokuデプロイ 流れメモ |
https://qiita.com/glaciermelt00/items/8c54eed70af8aa16c2d2
|
Herokuデプロイ流れメモ背景毎回Herokuデプロイする流れをメモ。 |
2021-05-23 00:35:54 |
Ruby |
Railsタグが付けられた新着投稿 - Qiita |
保存失敗でエラーが出ない |
https://qiita.com/tatsunori-abe/items/548ec9e035bdc11c159a
|
erbpurchasepurchasecreate |
2021-05-23 00:18:45 |
海外TECH |
DEV Community |
Build a Node.js graphQL API with NestJS and Prisma |
https://dev.to/yuvalhazaz/building-e-commerce-application-with-node-js-and-graphql-api-5dn5
|
Build a Node js graphQL API with NestJS and PrismaBuilding an API requires spending too much time on boilerplate and repetitive coding Defining the data model connecting the database to the server creating the API endpoints add security and permissions layer logging validation identity management sorting filtering pagination the list is long In this post I will show you how to create all these using Amplication We will generate a GraphQL API for an e commerce application built with Node JS NestJS Prisma PostgreSQL and some additional great open source technologies Amplication is an open source developers platform that generates an API and a client based on your data model It saves hours and even days of boilerplate coding You can use the UI or a CLI to define the data model and Amplication generates everything you need to start building your next app The generated source code is fully readable and editable written in TypeScript and it even includes tests By the end of this tutorial you will have the source code of the backend and client and you will be able to start writing the custom business logic of your API or creating the coolest client application or mobile app to work with the API The Generated CodeSo let s first have a high level overview of the generated source code The generated source code shown in this post is available in We can see that Amplication generates two separate projects for us admin ui and server The server folder contains the Node JS code for our GraphQL API and the admin ui contains the React Admin code for an admin application that connects to the API and provides CRUD operations for all our data models Let s StartFor this post I will use the CLI to create our data model You can also use Amplication s UI to do it To learn how to install Amplication CLI and authenticate with the server see this doc Create appamp apps create my e commerce api set current Create Customer entityamp entities create Customer set currentamp entities fields create First Name amp entities fields create Last Name amp entities fields create Email amp entities fields create Phone amp entities fields create Comments Create Address entityamp entities create Address set currentamp entities fields create First Name amp entities fields create Last Name amp entities fields create Address amp entities fields create Address amp entities fields create City amp entities fields create State amp entities fields create Country amp entities fields create Zip amp entities fields create Phone amp entities fields create Is Default amp entities fields create Customer Create Product entityamp entities create Product set currentamp entities fields create Title amp entities fields create Vendor amp entities fields create Price Create Image entityamp entities create Image set currentamp entities fields create Src amp entities fields create Width amp entities fields create Height amp entities fields create Product Create Order entityamp entities create Order set currentamp entities fields create Customer amp entities fields create Address amp entities fields create Comments amp entities fields create Total Price amp entities fields create User Create Line Item entityamp entities create LineItem set currentamp entities fields create Order amp entities fields create Product amp entities fields create Price amp entities fields create Quantity Commit the new entities and generate the codeamp apps commit message create initial entities After executing this script we can use Amplication s UI to see that all our data models were created and if needed we can also change any of the settings That s it Our source code is ready for download We can simply click on Download code to get a ZIP file Here is an example of the generated files for our customer entity including the Customer model DTOs GraphQL resolver Service and tests Here is an example of the generated code for our Customer service What s NextAt this point you can proceed in any of the following ways Connect to a GitHub account to automatically create a Pull Request with your source code in a Github repository Use the Sandbox environment provided by Amplication with a live instance of your application for further development and testing Deploy your application in a Docker container to any server or online service Customize your server codeBuild a custom client application to work with your new server Keep making changes in your data models and re generate your application code When connected to a GitHub account you will also get a new Pull Request with every change you make Try it nowStart using Amplication by visiting Open SourceAmplication is an open source project Please leave a comment and tell me what you think about it We are also open to feature requests and suggestions on our GitHub repo If you need support you can reach us on our Discord channel |
2021-05-22 15:29:38 |
海外TECH |
DEV Community |
Roundup of my Accessibility Resources |
https://dev.to/5t3ph/roundup-of-my-accessibility-resources-3ijd
|
Roundup of my Accessibility ResourcesMay was Global Accessibility Awareness Day GAAD and turns out I created quite a bit of content about digital accessibility ay last year CSS and AccessibilityCSS can strongly impact accessibility Learn ways you can use CSS to improve accessibility by reviewing this tutorial covering Focus VisibilityFocus vs Source OrderZoom and ReflowSizing TargetsRespecting User SettingsRead more on ModernCSS gt Color Contrast and Interactive ElementsDespite high general awareness of color contrast for ay what can be missed is how to handle contrast across states of interactive elements like buttons Learn more about button contrast and generate an accessible palette with the help of ButtonBuddy dev Practice Evaluating Inaccessible ExperiencesSo what does an inaccessible experience look like Try out evaluating this test site motion warning And then practice identifying and submitting a review of issues by opening a PR into the project Automate Generating Accessible Color PalettesSelecting a color contrast safe palette used to be what I spent a significant amount of time on The ay color tokens package automates developing contrast safe text and background color pairs More info and package download gt Create Accessible Cross Browser Form StylesForms rule the web amp can quickly create accessibility issues too HTML semantics amp carefully applied CSS are required for accessible form inputs Learn how to develop cross browser accessible form styles with my full egghead io video course Learn About Common ay FailuresOn the podcast I co host Word Wrap we did a two part mini series on ay topics you might be missing that apply to all websites Common Accessibility FailuresWCAG Success Criteria You May Not Be MeetingDrop a comment of your favorite accessibility resources or something you learned from these |
2021-05-22 15:17:16 |
海外TECH |
Engadget |
Hitting the Books: The age of digital media has changed how we process trauma |
https://www.engadget.com/hitting-the-books-all-my-friends-live-in-my-computer-samira-rajabi-rutgers-university-press-153004659.html
|
Hitting the Books The age of digital media has changed how we process traumaDr Samira Rajabi combines personal essays from three distinct American viewpoints with media studies to explore what happens when those who have been hurt address those traumas online connecting to others with similar experiences and working towards their personal recoveries |
2021-05-22 15:30:04 |
海外TECH |
Engadget |
HomePod will support Apple Music lossless through a software update |
https://www.engadget.com/homepod-mini-apple-music-lossless-support-update-151446333.html
|
update |
2021-05-22 15:14:46 |
ニュース |
BBC News - Home |
Covid-19: More than 50m vaccine doses given in England |
https://www.bbc.co.uk/news/uk-57212470
|
covid |
2021-05-22 15:14:10 |
ニュース |
BBC News - Home |
Prince William: Scotland holds my happiest and saddest memories |
https://www.bbc.co.uk/news/uk-57213025
|
cambridge |
2021-05-22 15:45:57 |
ニュース |
BBC News - Home |
Leclerc on Monaco pole despite crash, Hamilton seventh |
https://www.bbc.co.uk/sport/formula1/57212855
|
monaco |
2021-05-22 15:31:38 |
ニュース |
BBC News - Home |
Brentford come from behind to beat 10-man Bournemouth and reach play-off final |
https://www.bbc.co.uk/sport/football/57125183
|
championship |
2021-05-22 15:29:35 |
ニュース |
BBC News - Home |
Covid-19 in the UK: How many coronavirus cases are there in your area? |
https://www.bbc.co.uk/news/uk-51768274
|
cases |
2021-05-22 15:52:09 |
サブカルネタ |
ラーブロ |
伊万里ちゃんぽん 新橋店(内幸町)/日替りランチ(ちゃんぽん+チキン南蛮?ごはん) |
http://feedproxy.google.com/~r/rablo/~3/DfsgSQeSkQI/single_feed.php
|
東京都港区 |
2021-05-22 16:18:02 |
コメント
コメントを投稿