IT |
気になる、記になる… |
Apple、来年から「iPad」の一部モデルに有機ELディスプレイを採用か |
https://taisy0.com/2021/05/31/141167.html
|
apple |
2021-05-31 13:23:28 |
python |
Pythonタグが付けられた新着投稿 - Qiita |
Amazon TranscribeでKeyError: 'TranscriptFileUri'となったときの対処方法について |
https://qiita.com/Sicut_study/items/852af1ae001f93f785af
|
その中にAmazonTranscribeがあり、日本語で本書のコードの一部を変更して対応させていましたが、エラーに遭遇したので今回はまとめたいと思います。 |
2021-05-31 22:57:53 |
python |
Pythonタグが付けられた新着投稿 - Qiita |
【python】TwitterAPIを用いてオーディンション番組の投票数を取得する |
https://qiita.com/zawakou_dx/items/ae632b2e80c86958055d
|
誰が人気かを把握するためにTwitterAPIを用いて投票数を集計したいと思います。 |
2021-05-31 22:00:28 |
js |
JavaScriptタグが付けられた新着投稿 - Qiita |
[JS]スプレット構文について |
https://qiita.com/Jackson123/items/9d99ea3a91d39cc8aa17
|
使い方公式ドキュメントではスプレット構文について以下のように書かれています。 |
2021-05-31 22:26:43 |
Program |
[全てのタグ]の新着質問一覧|teratail(テラテイル) |
ファイルに行を追加する |
https://teratail.com/questions/341452?rss=all
|
ファイルに行を追加するltligtgroupltligtltligtgroupltligtltligtgroupltligtltEndofolgtsamplehtml内に上のような内容があります。 |
2021-05-31 22:57:31 |
Program |
[全てのタグ]の新着質問一覧|teratail(テラテイル) |
FSCalendarCellのsubtitleにアラートで入力した値を反映させたい |
https://teratail.com/questions/341451?rss=all
|
FSCalendarCellのsubtitleにアラートで入力した値を反映させたいFSCalendarを用いたアプリを作成中です。 |
2021-05-31 22:54:56 |
Program |
[全てのタグ]の新着質問一覧|teratail(テラテイル) |
【M1 MAC】Miniforgeの仮想環境をactivateできない |
https://teratail.com/questions/341450?rss=all
|
【MMAC】Miniforgeの仮想環境をactivateできない前提・実現したいことMnbspMACにarmネイティブな環境とintel版でのつの環境構築を行っています。 |
2021-05-31 22:49:15 |
Program |
[全てのタグ]の新着質問一覧|teratail(テラテイル) |
数字のバブルソートについて |
https://teratail.com/questions/341449?rss=all
|
数字のバブルソートについて前提・実現したいこと数字の出現回数を計算したいです。 |
2021-05-31 22:48:07 |
Program |
[全てのタグ]の新着質問一覧|teratail(テラテイル) |
サインアップ登録時にバリデーションのエラーが表示されても枠内に文字を納めたい |
https://teratail.com/questions/341448?rss=all
|
|
2021-05-31 22:46:46 |
Program |
[全てのタグ]の新着質問一覧|teratail(テラテイル) |
Javaxでjava.lang.NoClassDefFoundErrorが出る |
https://teratail.com/questions/341447?rss=all
|
JavaxでjavalangNoClassDefFoundErrorが出るTechnbspBlognbsp「OpenJDKで配布パッケージを作る」を参考にJavaFXとMySQLを使ったデスクトップアプリケーションを作成して、jarファイルを作って、exeに変換し、実行しようとしたところ、javalangNoClassDefFoundErrornbspjavaxnamingNamingExceptionの例外が出てしまいました。 |
2021-05-31 22:28:35 |
Program |
[全てのタグ]の新着質問一覧|teratail(テラテイル) |
linux 権限の変更ができない。.env ファイルの作成がしたい。 |
https://teratail.com/questions/341446?rss=all
|
envファイルの作成がしたい。 |
2021-05-31 22:27:48 |
Program |
[全てのタグ]の新着質問一覧|teratail(テラテイル) |
e.whichに取り消し線がつくのはなぜ |
https://teratail.com/questions/341445?rss=all
|
ewhich |
2021-05-31 22:08:08 |
Program |
[全てのタグ]の新着質問一覧|teratail(テラテイル) |
Google Apps Scriptでスプレッドシートに記載した名称のドライブでのフォルダ作成とURLの取得方法について |
https://teratail.com/questions/341444?rss=all
|
GoogleAppsScriptでスプレッドシートに記載した名称のドライブでのフォルダ作成とURLの取得方法について前提・実現したいこと会社でGooglenbspAppsnbspScriptとスプレッドシートを用いて管理ファイルを作成する必要が出たため作成に取り掛かっております。 |
2021-05-31 22:05:05 |
Program |
[全てのタグ]の新着質問一覧|teratail(テラテイル) |
Django Heroku のvalue too long for type character varying(30)というエラーについて |
https://teratail.com/questions/341443?rss=all
|
DjangoHerokuのvaluetoolongfortypecharactervaryingというエラーについて解決したいことherokuのpostgresqlの設定をし、スーパーユーザーを作成しようとした際に下記のエラーが出てしまいました。 |
2021-05-31 22:04:35 |
Ruby |
Rubyタグが付けられた新着投稿 - Qiita |
Rubyアルゴリズム(Find the Highest Altitude) |
https://qiita.com/li2003038/items/e1a851b7d196846a846e
|
altitudeはスタート地点の高度、highestには移動していった中で一番高度の高かったポイントを入れます。 |
2021-05-31 22:31:26 |
AWS |
AWSタグが付けられた新着投稿 - Qiita |
Amazon TranscribeでKeyError: 'TranscriptFileUri'となったときの対処方法について |
https://qiita.com/Sicut_study/items/852af1ae001f93f785af
|
その中にAmazonTranscribeがあり、日本語で本書のコードの一部を変更して対応させていましたが、エラーに遭遇したので今回はまとめたいと思います。 |
2021-05-31 22:57:53 |
AWS |
AWSタグが付けられた新着投稿 - Qiita |
Next.js × Nest.js & Prisma2 で個人開発したら最高だった |
https://qiita.com/70ki8suda/items/b316803a574008e9239d
|
ReactやNodejsでアプリケーション開発をする仕事ができればと思っております重心はフロントエンドです。 |
2021-05-31 22:24:00 |
Docker |
dockerタグが付けられた新着投稿 - Qiita |
【Docker】Dockerに関する概念的な理解を整理してみた |
https://qiita.com/hayashi_rice/items/ba0bc5e1f5784a506ef4
|
システムAとシステムBがあり、それらがPostgreSQLのようなプログラムを共有していたとします。 |
2021-05-31 22:09:18 |
技術ブログ |
Developers.IO |
建設現場の遠隔管理をスマートに 〜建設現場のデジタルツインを実現〜 (CUS-37) #AWSSummit |
https://dev.classmethod.jp/articles/aws-summit-online-2021-cus-37/
|
awssummitjapan |
2021-05-31 13:56:20 |
技術ブログ |
Developers.IO |
プロジェクトドキュメント構築向け静的サイトジェネレータ「Material for MkDocs」の色々な設定を試してみる(フッター編) |
https://dev.classmethod.jp/articles/material-for-mkdocs-customization-about-footer/
|
materialformkdocs |
2021-05-31 13:37:46 |
技術ブログ |
Developers.IO |
プロジェクトドキュメント構築向け静的サイトジェネレータ「Material for MkDocs」の色々な設定を試してみる(ヘッダー編) |
https://dev.classmethod.jp/articles/material-for-mkdocs-customization-about-header/
|
materialformkdocs |
2021-05-31 13:34:39 |
技術ブログ |
Developers.IO |
プロジェクトドキュメント構築向け静的サイトジェネレータ「Material for MkDocs」の色々な設定を試してみる(ナビゲーション編) |
https://dev.classmethod.jp/articles/material-for-mkdocs-customization-about-navigation/
|
materialformkdocs |
2021-05-31 13:27:40 |
技術ブログ |
Developers.IO |
AWSマネジメントコンソールでrootユーザ固有の表示を確認してみた |
https://dev.classmethod.jp/articles/aws-management-console-root-edition/
|
項目 |
2021-05-31 13:09:04 |
海外TECH |
Ars Technica |
Can we keep human inconsistency from confusing expert advice? |
https://arstechnica.com/?p=1768449
|
consistent |
2021-05-31 13:00:48 |
海外TECH |
DEV Community |
DNS prefetch: A Web Performance Trick |
https://dev.to/alphaolomi/dns-prefetch-a-web-performance-trick-k5i
|
DNS prefetch A Web Performance TrickWeb performance is the objective measurements and the perceived user experience of load time and runtime DNS prefetch is an attempt to resolve domain names before resources get requested This could be a file loaded later or link target a user tries to follow Why use dns prefetch When a browser requests a resource from a third party server that cross origin s domain name must be resolved to an IP address before the browser can issue the request This process is known as DNS resolution While DNS caching can help to reduce this latency DNS resolution can add significant latency to requests For websites that open connections to many third parties this latency can significantly reduce loading performance dns prefetch helps developers mask DNS resolution latency The HTML element offers this functionality by way of a rel attribute value of dns prefetch The cross origin domain is then specified in the href attribute Syntax lt link rel dns prefetch href example com gt Examples lt html gt lt head gt lt link rel dns prefetch href gt lt and all other head elements gt lt head gt lt body gt lt your page content gt lt body gt lt html gt You should place dns prefetch hints in the lt head gt any time your site references resources on cross origin domains but there are some things to keep in mind How to use Best practicesThere are main things to keep in mind dns prefetch is only effective for DNS lookups on cross origin domains so avoid using it to point to your site or domain This is because the IP behind your site s domain will have already been resolved by the time the browser sees the hint It s also possible to specify dns prefetch and other resources hints as an HTTP header by using the HTTP Link fieldLink lt rel dns prefetchConsider pairing dns prefetch with the preconnect hint While dns prefetch only performs a DNS lookup preconnect establishes a connection to a server This process includes DNS resolution as well as establishing the TCP connection and performing the TLS handshake if a site is served over HTTPS Combining the two provides an opportunity to further reduce the perceived latency of cross origin requests You can safely use them together like so lt link rel preconnect href crossorigin gt lt link rel dns prefetch href gt Note If a page needs to make connections to many third party domains preconnecting them all is counter productive The preconnect hint is best used for only the most critical connections For the others just use lt link rel dns prefetch gt to save time on the first step the DNS lookup See alsoHTML attribute relPrefetching Preloading and Pre browsingLink |
2021-05-31 13:44:54 |
海外TECH |
DEV Community |
Try to avoid comments (most of the time) |
https://dev.to/bornfightcompany/try-to-avoid-comments-most-of-the-time-2f6a
|
Try to avoid comments most of the time Writing down a comment when you re coding might seem like you re going to help yourself or someone that might stumble upon your code but in reality it might cause confusion and make your code less readable If you re just starting out with coding you sometimes feel that you need to comment every line to get your point across That s probably not the case most of the time and you re probably just adding unnecessary noise to your code Code explanationIf possible try to use the time you would spend on writing a comment on coming up with better naming or clearer code structures Take a look at this check if employee can receive overtime payif employee isFullTime amp amp employee workHours gt Instead of relying on the comment to explain the condition it would be much wiser to create a function with a clear name that does this checkconst isEmployeeEligibleForOvertimePay employee gt return employee isFullTime amp amp employee workHours gt if isEmployeeEligibleForOvertimePay employee It s now possible to reuse this small piece of code as well as not have any doubts what this condition does This might be a much larger condition but a name might be sufficient enough to be aware what it s doing Of course there is a case where it s very difficult to come up with a meaningful name or it s just not possible In that case a comment would be helpful but you should have that as a last resort Outdated commentsfunction insertData data store user insert data updates the current user data If you ve been working on some older projects something like this might ve popped up You can see that some data is being inserted but the comment says otherwise The comment might be right although someone could have forgotten to delete it This causes you to doubt the code and you re forced to check what s really going on in the insert method To prevent this it s probably better to rename the functions to better represent their functionality and delete the unnecessary comment This is something that might happen with any comment If someone forgets to update the comment after a couple of changes another person can t be sure what s right or not It s not a critical mistake and nothing will break because of this but you might spend a couple of minutes hours until you find out the truth Redundant comments checks whether the student lives in a dormif student livesInDorm I think we can all agree that these kinds of comments are totally unnecessary You might feel better that you ve written a couple lines of comments but this doesn t help anyone when it s obvious what s happening Separators VARIABLES blue ab This could be debated but I think that the file structure should mandate where something belongs By having these kinds of comments you re just breaking up the flow of the code and not adding much value If this is something that occurs a lot having a defined standard with vertical formatting might have a much more appealing look Some people are more of a visual type so separators can come in handy to visualize the various parts of a file but I would still stay away from them Commented codeNowadays there s probably very little reason to keep commented out code in your codebase especially if you re using a version control system Anyone that will come upon the commented code won t be bothered to delete it because they haven t written in in the first place That will just perpetuate the old code into newer versions until it won t even work if you comment it out Do yourself a favour and delete the commented code If you ll really need it you can get it from your VCS history ConclusionHaving comments in your codebase is something that requires constant attention When you update a function you must make sure you ve updated its comment as well That s why most of the comments you write go stale and just confuse you next time you bump into them By spending more time on naming your variables and functions extracting a piece of code and adding vertical or horizontal formatting you might even avoid the need for comments Even though I ve shown the types of comments you should avoid there are cases where it s a good idea to leave a comment but not that many leaving a warning on a complicated feature that can t be managed with proper names is always a good ideadocumentation legal comments in public code |
2021-05-31 13:36:50 |
Apple |
AppleInsider - Frontpage News |
Examining Apple TV 4K Thread, previewing HomeRun 2 on HomeKit Insider |
https://appleinsider.com/articles/21/05/31/examining-apple-tv-4k-thread-previewing-homerun-2-on-homekit-insider?utm_medium=rss
|
Examining Apple TV K Thread previewing HomeRun on HomeKit InsiderThis week on the HomeKit Insider podcast it s time to see how the Apple TV K and its new Siri Remote fare in real world testing plus Eero has a HomeKit update and HomeRun is coming soon There have been many opinions on the new Apple TV K probably nowhere near as many as for the new Siri Remote Now that it s actually released your hosts examine Our hosts talk about the latest Apple TV K and in particular its newfound support for Thread That standard is becoming ever more key to smart homes and makes it more tempting than ever to set Apple TV as a HomeKit hub Also this week Amazon owned Eero has added HomeKit support to its line of Wi Fi routers including the Eero Pro Eero and Eero Extender And Aqara debuted additional smart home tech including a great looking in wall control panel Read more |
2021-05-31 13:59:29 |
Apple |
AppleInsider - Frontpage News |
Reminder: Google Photos is ending free unlimited storage on June 1 |
https://appleinsider.com/articles/21/05/31/reminder-google-photos-is-ending-free-unlimited-storage-on-june-1?utm_medium=rss
|
Reminder Google Photos is ending free unlimited storage on June Previously announced in November all photos and videos uploaded to Google Photos by iPhone users after June will count against a user s GB of Google Account Storage Photographers using Google Photos to back up high quality digital images need to find an alternative in the next day Google is ending unlimited storage beginning on June Photos already uploaded to Google Photos won t count toward storage limits ーbut also won t be retained in high resolution Only images uploaded after June will count toward the GB limit that comes with every Google Account or toward the additional storage that has been purchased via Google One Read more |
2021-05-31 13:00:43 |
海外科学 |
NYT > Science |
Two New Laws Restrict Police Use of DNA Search Method |
https://www.nytimes.com/2021/05/31/science/dna-law-maryland-genetic-genealogy.html
|
killer |
2021-05-31 13:22:23 |
金融 |
RSS FILE - 日本証券業協会 |
J-IRISS |
https://www.jsda.or.jp/anshin/j-iriss/index.html
|
iriss |
2021-05-31 14:25:00 |
ニュース |
BBC News - Home |
Warning UK could be entering early stages of third wave |
https://www.bbc.co.uk/news/uk-57304515
|
cases |
2021-05-31 13:49:10 |
ニュース |
BBC News - Home |
China allows couples to have three children |
https://www.bbc.co.uk/news/world-asia-china-57303592
|
slowest |
2021-05-31 13:57:10 |
ニュース |
BBC News - Home |
In pictures: Britons enjoy Bank Holiday sunshine and blue skies |
https://www.bbc.co.uk/news/uk-57302185
|
weekend |
2021-05-31 13:32:41 |
ニュース |
BBC News - Home |
Israel coalition government a threat to security, warns Netanyahu |
https://www.bbc.co.uk/news/world-middle-east-57302814
|
unity |
2021-05-31 13:20:09 |
LifeHuck |
ライフハッカー[日本版] |
持ち運びやすくて、耐盗難性も高い自転車用ロック3選【今日のライフハックツール】 |
https://www.lifehacker.jp/2021/05/233278lht-bicycle-locks.html
|
持ち運び |
2021-05-31 22:05:00 |
北海道 |
北海道新聞 |
札幌市のパートナーシップ制度 4年で126組利用 |
https://www.hokkaido-np.co.jp/article/550189/
|
性的少数者 |
2021-05-31 22:17:00 |
北海道 |
北海道新聞 |
インドGDP7・3%減 20年度、コロナ全土封鎖 |
https://www.hokkaido-np.co.jp/article/550187/
|
年度 |
2021-05-31 22:08:00 |
コメント
コメントを投稿