python |
Pythonタグが付けられた新着投稿 - Qiita |
【Keras】Jupyter Notebookでmodel.predict() を実行した際にカーネルが異常終了するエラーの対処法 |
https://qiita.com/hiro716/items/8a805c9ea7cc91c4b26f
|
【Keras】JupyterNotebookでmodelpredictを実行した際にカーネルが異常終了するエラーの対処法同じところでエラーが出た方のために残しておきます。 |
2021-11-03 21:32:06 |
python |
Pythonタグが付けられた新着投稿 - Qiita |
自分による自分のためのクラス練習 |
https://qiita.com/dem_kk/items/ce39dc3ca3681e39b0d5
|
子クラスの引数を変更してみる。 |
2021-11-03 21:08:49 |
js |
JavaScriptタグが付けられた新着投稿 - Qiita |
"[Violation] 'setTimeout' handler took ○○ms"という表示がでてくる |
https://qiita.com/it_tsumugi/items/e10b7422fdd2424f8521
|
必ず直す必要があるわけではないが、改善の余地があるという認識で良さそう。 |
2021-11-03 21:42:32 |
js |
JavaScriptタグが付けられた新着投稿 - Qiita |
【JavaScript】お前はまだコレクション関数を知らない |
https://qiita.com/nowvilla_physi/items/ca67e7c009e630ccb8e9
|
そこでコレクション関数をコードと実行結果添えて紹介していこうと思います。 |
2021-11-03 21:28:12 |
Program |
[全てのタグ]の新着質問一覧|teratail(テラテイル) |
【Ruby on Rails】STIのモデル名を変更したい |
https://teratail.com/questions/367625?rss=all
|
【RubyonRails】STIのモデル名を変更したい前提・実現したいこと既に存在するSTIのモデル名を変更したいです。 |
2021-11-03 21:56:24 |
Program |
[全てのタグ]の新着質問一覧|teratail(テラテイル) |
Pyenvが適用されない |
https://teratail.com/questions/367624?rss=all
|
Pyenvが適用されないPyenvを使っているのですが、macOSをアップデートして以降pythonコマンドにpyenvの仮想環境が反映されなくなりました。 |
2021-11-03 21:55:52 |
Program |
[全てのタグ]の新着質問一覧|teratail(テラテイル) |
Railでいいね機能を非同期通信化したのですが、いいねの多い順に並び変える機能を実装したところ非同期通信できないです |
https://teratail.com/questions/367623?rss=all
|
|
2021-11-03 21:53:44 |
Program |
[全てのタグ]の新着質問一覧|teratail(テラテイル) |
[JavaScript]グローバル変数の値が変わらない |
https://teratail.com/questions/367622?rss=all
|
JavaScriptグローバル変数の値が変わらない前提・実現したいことグローバル変数として定義した変数countをinput関数の中で書き換えて、その書き換えた値をinit関数に反映させたい発生している問題・エラーメッセージinit関数でcountが書き換えられてない。 |
2021-11-03 21:48:55 |
Program |
[全てのタグ]の新着質問一覧|teratail(テラテイル) |
NumPyでない配列(リスト)とNumPyの配列のコピー方法 |
https://teratail.com/questions/367621?rss=all
|
NumPyでない配列リストとNumPyの配列のコピー方法質問NumPyでない配列リストを複製する場合に単純な代入ではlistABClistlistlistprintlistBCprintlistBCこのように、コピー先を書き換えるとコピー元にも影響してしまいます。 |
2021-11-03 21:45:24 |
Program |
[全てのタグ]の新着質問一覧|teratail(テラテイル) |
SwiftUIでStateデータ更新時にListのリアルタイム再描画が行われない |
https://teratail.com/questions/367620?rss=all
|
SwiftUIでStateデータ更新時にListのリアルタイム再描画が行われない前提・実現したいことSwiftUIにて、とある処理の結果一覧をListにて表示する画面を作っています。 |
2021-11-03 21:44:28 |
Program |
[全てのタグ]の新着質問一覧|teratail(テラテイル) |
fopenでファイルを開けない |
https://teratail.com/questions/367619?rss=all
|
fopenでファイルを開けない前提・実現したいことこのプログラムを書いているmaincと同じ階層にworkerstxtというファイルをつくっており、それを開きたいのですが、何度実行してもエラーになってしまいます。 |
2021-11-03 21:43:19 |
Program |
[全てのタグ]の新着質問一覧|teratail(テラテイル) |
引数をloop処理で表現したい。 |
https://teratail.com/questions/367618?rss=all
|
引数をloop処理で表現したい。 |
2021-11-03 21:41:47 |
Program |
[全てのタグ]の新着質問一覧|teratail(テラテイル) |
VBAにてピボット テーブルを使用せずに集計をしたい |
https://teratail.com/questions/367617?rss=all
|
VBAにてピボットテーブルを使用せずに集計をしたい前提・実現したいことここに質問の内容を詳しく書いてください。 |
2021-11-03 21:34:54 |
Program |
[全てのタグ]の新着質問一覧|teratail(テラテイル) |
css backgroundでの画像を相対パスで表示したいです |
https://teratail.com/questions/367616?rss=all
|
cssbackgroundでの画像を相対パスで表示したいですこの方の動画を見て模写コーディングをしていました。 |
2021-11-03 21:09:15 |
Program |
[全てのタグ]の新着質問一覧|teratail(テラテイル) |
1から1024まで,2倍ずつ増える数を出力させる(1, 2, 4, 8, ..., 512, 1024). |
https://teratail.com/questions/367615?rss=all
|
range |
2021-11-03 21:09:05 |
Program |
[全てのタグ]の新着質問一覧|teratail(テラテイル) |
$_FILESに入るはずのものが$_POSTに入ってしまう現象について |
https://teratail.com/questions/367614?rss=all
|
FILESに入るはずのものがPOSTに入ってしまう現象について前提・実現したいことPHPで、画像をドラッグドロップできるプロフ画像登録フォームを作成しようとしています。 |
2021-11-03 21:06:19 |
Program |
[全てのタグ]の新着質問一覧|teratail(テラテイル) |
Tensorflowで多クラス分類のAUCはどのように計算されているのでしょうか |
https://teratail.com/questions/367613?rss=all
|
コードも読んでみたのですが、いったいどこで計算されているのか見つけることができませんでした。 |
2021-11-03 21:05:14 |
Program |
[全てのタグ]の新着質問一覧|teratail(テラテイル) |
【WordPress】カスタムフィールドで作った「タイトル」を管理画面に反映させたい |
https://teratail.com/questions/367612?rss=all
|
そこで、カスタムフィールドで設置したタイトルを、管理画面の投稿一覧カラムに反映させる方法がわかりません。 |
2021-11-03 21:03:14 |
Ruby |
Rubyタグが付けられた新着投稿 - Qiita |
コールバックの際に使う self について |
https://qiita.com/TatsuyaIsamu/items/97ba7d5da20ddc2b54b6
|
コールバックの際に使うselfについて開発環境rubyRubyonRails前提ユーザーの認証機能をつけているアプリユーザーにboolean型でadminというカラムをつけ、adminがtrueのユーザーを管理者としている本題管理権限を持ったユーザーがが人にならないようにするバリデーションの機能実装classUserltApplicationRecordbeforedestroyadminexistcheckbeforeupdateadminupdateexisthasmanytasksdependentdestroy中略defadminexistcheckifUserwhereadmintruecountltampampselfadmintrue←ここthrowabortendenddefadminupdateexistifUserwhereadmintruecountampampselfadminfalsethrowabortendendend上記みたいなコードを書く。 |
2021-11-03 21:28:41 |
Ruby |
Rubyタグが付けられた新着投稿 - Qiita |
Rspecインストールの手順 |
https://qiita.com/minoppp411/items/50f8599a3229d146c85c
|
dockercomposerunwebrailsdbmigrateこれで、nameカラムとemailカラムを持ったUserモデルが作成されました。 |
2021-11-03 21:17:58 |
Docker |
dockerタグが付けられた新着投稿 - Qiita |
Rspecインストールの手順 |
https://qiita.com/minoppp411/items/50f8599a3229d146c85c
|
dockercomposerunwebrailsdbmigrateこれで、nameカラムとemailカラムを持ったUserモデルが作成されました。 |
2021-11-03 21:17:58 |
Ruby |
Railsタグが付けられた新着投稿 - Qiita |
コールバックの際に使う self について |
https://qiita.com/TatsuyaIsamu/items/97ba7d5da20ddc2b54b6
|
コールバックの際に使うselfについて開発環境rubyRubyonRails前提ユーザーの認証機能をつけているアプリユーザーにboolean型でadminというカラムをつけ、adminがtrueのユーザーを管理者としている本題管理権限を持ったユーザーがが人にならないようにするバリデーションの機能実装classUserltApplicationRecordbeforedestroyadminexistcheckbeforeupdateadminupdateexisthasmanytasksdependentdestroy中略defadminexistcheckifUserwhereadmintruecountltampampselfadmintrue←ここthrowabortendenddefadminupdateexistifUserwhereadmintruecountampampselfadminfalsethrowabortendendend上記みたいなコードを書く。 |
2021-11-03 21:28:41 |
Ruby |
Railsタグが付けられた新着投稿 - Qiita |
Rspecインストールの手順 |
https://qiita.com/minoppp411/items/50f8599a3229d146c85c
|
dockercomposerunwebrailsdbmigrateこれで、nameカラムとemailカラムを持ったUserモデルが作成されました。 |
2021-11-03 21:17:58 |
海外TECH |
MakeUseOf |
What Is Twitter Flight School? |
https://www.makeuseof.com/what-is-twitter-flight-school/
|
media |
2021-11-03 12:30:21 |
海外TECH |
MakeUseOf |
The 7 Best Robotic Lawnmowers |
https://www.makeuseof.com/best-robotic-lawnmowers/
|
lawnmower |
2021-11-03 12:05:12 |
海外TECH |
MakeUseOf |
Your Mac Keeps Shutting Down Randomly? Here's What You Can Do |
https://www.makeuseof.com/tag/mac-shutting-randomly-heres-can/
|
random |
2021-11-03 12:00:42 |
海外TECH |
DEV Community |
Select Right Aurora DB Instance 😎 |
https://dev.to/gauravratnawat/select-right-aurora-db-instance-56l1
|
Select Right Aurora DB Instance The FactorsBack of envelope calculation for storage required based on inputs from product requirements Aurora scales automatically so less of an issue Read scaling Back of envelope no calculation for of reads per sec can be handled by adding read replicas Write scaling In single primary mode there is a single writer DB This can be the main factor for choosing the db instance Estimate the number of write connections needed per second and pick the db instance based on the connection limits keeping a factor for connection pooling Also a guesstimate for the working set of data needed to be pulled into the memory for things like sorting filtering etc will be a factor The limits are mentioned in the above page This can only be a starting point You should prioritise perf testing at a time your app is relatively stable to benchmark semi realworld load More often than not perf is constraint than storage also benchmark reports in aws are highly optimistic you mostly will not be able to achieve these results in your environment AWS An example of how we approached Simplified Back of the envelope calculation for storageAssuming we will have total users Each user record in DB will have at max fields Each field max kb char gt Each User record kbSo Total storage needed kb GB Read Write Ratio concurrencyThe DB will be read heavy database A customer will change password may be once a month but login multiple times DocumentDB tops out at a maximum database size of TB and concurrent connections per instance DocumentDB supports a single primary node for writes and up to replicas within a single Amazon region That means with replicas DocumentDB can handle max concurrent connection That means some connections will be waiting in the connection pool However these limits may be adjusted we need to check with AWS |
2021-11-03 12:39:04 |
海外TECH |
DEV Community |
👷♂️ | Decode Prototype Pattern | 👀 |
https://dev.to/gauravratnawat/decode-prototype-pattern-589
|
️ Decode Prototype Pattern When to useTo improve the performance when object creation is costly and time consuming To simplify and optimize multiple objects creation that will have mostly the same data IntentSpecify the kinds of objects to create using a prototypical instance and create new objects by copying this prototype ComponentsA class that implements Cloneable interface public Structure ImplementationMost of the cloud platforms behave like Prototype pattern to create instances quickly upon requests This is achieved with the help of pre installed Machine Images When a customer wants a Windows or Linux instance the cloud software just loads the already created machine image on to a server hardware rather than going through the complete installation process This saves a lot of time Create a base machine image by installing the specified OS and antivirus software Provide a clone method so that client can create an object without using a time consuming new operator every time package com gaurav prototype public class MachineImage implements Cloneable StringBuilder image public MachineImage String os String antivirusSW image new StringBuilder image append os append antivirusSW private MachineImage String sw image new StringBuilder sw public void install String sw image append sw public void printSw System out println image Override public MachineImage clone throws CloneNotSupportedException return new MachineImage this image toString The client code The client creates a base image and clones it to create other images package com gaurav client import com gaurav prototype MachineImage public class PrototypeClient public static void main String args throws CloneNotSupportedException Create base Machine Images MachineImage linuxVM new MachineImage Linux Symantec MachineImage windowsVM new MachineImage Windows MaAfee Clone Linux VM and Install Web Server MachineImage webServer linuxVM clone webServer install Web Server S W Create a copy of the Web Server and install Application server on top of it MachineImage webAppServer webServer clone webAppServer install App Server S W Clone Linux VM and Install DB Server MachineImage dbServer linuxVM clone dbServer install Database Server S W Create a test machine from Windows Image MachineImage testMachine windowsVM clone System out print Web Server Configuration webServer printSw System out print App Server Configuration webAppServer printSw System out print DB Server Configuration dbServer printSw System out print Test Machine Configuration testMachine printSw Output output Web Server Configuration Linux OS Antivirus S W Web Server S WApp Server Configuration Linux OS Antivirus S W Web Server S W App Server S WDB Server Configuration Linux OS Antivirus S W Database Server S WTest Machine Configuration Linux OS Antivirus S W BenefitsPerformance Cloning using MemberwiseClone is considerably less expensive than creating a new object afresh with new operator Objects can be cloned very dynamically without any insistence on up front instantiation The first created object can be created at any time in the application execution and further duplication can take place at any time ahead DrawbacksDeep copy has to be handled carefully Real World ExamplesBiological Cell splitting Software ExamplesVirtual Machine Images Have one image per OS which has all the required s w installed DVD duplication Duplication of the master dvd to create several copies Java SDK Examplesjava lang Object clone Hope you like it Would love to hear your thoughts on this design pattern Want to discuss more Lets have a Coffee |
2021-11-03 12:24:59 |
Apple |
AppleInsider - Frontpage News |
Arm chip boss warns of Christmas disappointments from ongoing chip shortage |
https://appleinsider.com/articles/21/11/03/arm-chip-boss-warns-of-christmas-disappointments-from-ongoing-chip-shortage?utm_medium=rss
|
Arm chip boss warns of Christmas disappointments from ongoing chip shortageBacking up reports from across the technology industry Arm says that if buyers have not already ordered their devices they may not get them in time for Christmas As chip delivery delays increase and the global shortage worsens Arm CEO Simon Segars says the gap between supply and demand is the most extreme he has seen According to BBC News Segars told the Web Summit in Lisbon that this unprecedented crisis will not be completely fixed by Christmas either If you haven t bought all your devices yet you might be disappointed he said It has never been like this before Read more |
2021-11-03 12:38:55 |
海外TECH |
Engadget |
ZipCharge Go is a suitcase-size powerbank for EVs |
https://www.engadget.com/zip-charge-go-electric-vehicles-122503445.html?src=rss
|
ZipCharge Go is a suitcase size powerbank for EVsZipCharge has launched a new type of charging product for EVs that might be able to convince people worried about range anxiety to switch from gas vehicles The British startup has introduced a powerbank for EVs called ZipCharge Go at the Cop climate summit It s about the size of a suitcase and weighs around pounds ーplus it has wheels and a retractable handle so users can put it in their trunk and easily take it out when they need to charge nbsp According to the company the Go can provide up miles of range after being plugged into the car for minutes A higher capacity version will be able to provide an EV up to miles of range The device works with any plug in hybrid or EV with a Type socket and it can charge that vehicle to its full capacity between minutes to an hour Charging up the device itself is as easy as plugging it into any socket and users will be able to control and monitor it through an app where they can schedule future charges during off peak hours for cheaper costs nbsp While range anxiety is becoming less of an issue these days it s still keeping those on the fence from making the leap A company called Gogoro developed hot swappable battery technology for scooters to address the problem but batteries in electric cars typically can t be swapped out SparkCharge has a portable EV charging system called the Roadie but it s not nearly as easy to carry around as the Go nbsp That said the ZipCharge Go isn t available yet According to InsideEVs the startup plans to release a kWh and an kWh version as well as to start deliveries in the fourth quarter of It can be leased for at least £ US per month though it will also be available for purchase to EV owners who don t mind paying for one and to businesses like hotels that don t have installed charging facilities While ZipCharge has yet to reveal a price for it The Sunday Times Driving section says the company aims to sell it for around the same cost as a kW home charging port installation |
2021-11-03 12:25:03 |
Cisco |
Cisco Blog |
Connected roadway infrastructure—now is the time |
https://blogs.cisco.com/internet-of-things/improve-safety-and-ease-congestion-for-roadways-and-intersections
|
Connected roadway infrastructureーnow is the timeThe new infrastructure bill will positively impact anyone who drives bikes or walks In the process of improving safety and reducing congestion and carbon footprints the pace of connecting roadside infrastructure is about to take off |
2021-11-03 12:50:23 |
Cisco |
Cisco Blog |
Industrial cybersecurity: know the biases that can derail collaboration between OT and IT |
https://blogs.cisco.com/security/industrial-cybersecurity-know-the-biases-that-can-derail-collaboration-between-ot-and-it
|
Industrial cybersecurity know the biases that can derail collaboration between OT and ITWhen it comes to securing operations OT and IT teams often have biases that can derail collaboration Let s see how to overcome them to protect industrial networks |
2021-11-03 12:00:52 |
海外TECH |
CodeProject Latest Articles |
PHP Micro-Framework HLEB |
https://www.codeproject.com/Articles/5254772/PHP-Micro-Framework-HLEB
|
PHP Micro Framework HLEBThis article gives an overview of installation customization routing group of routes controllers modules templates page builder debug panel and console of a micro framework HLEB |
2021-11-03 12:35:00 |
海外科学 |
BBC News - Science & Environment |
COP26: UK firms forced to show how they will hit net zero |
https://www.bbc.co.uk/news/business-59136214?at_medium=RSS&at_campaign=KARANGA
|
government |
2021-11-03 12:41:10 |
ニュース |
BBC News - Home |
Owen Paterson: Boris Johnson backs shake-up of MP standards rules |
https://www.bbc.co.uk/news/uk-politics-59143727?at_medium=RSS&at_campaign=KARANGA
|
paterson |
2021-11-03 12:36:01 |
ニュース |
BBC News - Home |
Philippa Day: Payout after mum died following benefit errors |
https://www.bbc.co.uk/news/uk-england-nottinghamshire-59147464?at_medium=RSS&at_campaign=KARANGA
|
benefit |
2021-11-03 12:25:18 |
ニュース |
BBC News - Home |
COP26: UK firms forced to show how they will hit net zero |
https://www.bbc.co.uk/news/business-59136214?at_medium=RSS&at_campaign=KARANGA
|
government |
2021-11-03 12:41:10 |
ニュース |
BBC News - Home |
Glenn Youngkin: Win for Republican in Virginia governor vote |
https://www.bbc.co.uk/news/world-us-canada-59144293?at_medium=RSS&at_campaign=KARANGA
|
election |
2021-11-03 12:08:59 |
ニュース |
BBC News - Home |
Salisbury train crash: Driver acted impeccably, says operator |
https://www.bbc.co.uk/news/uk-england-wiltshire-59143021?at_medium=RSS&at_campaign=KARANGA
|
excellent |
2021-11-03 12:32:28 |
ニュース |
BBC News - Home |
Heathrow Airport: Luggage conveyor belt filled with frozen fish crates |
https://www.bbc.co.uk/news/uk-england-dorset-59141394?at_medium=RSS&at_campaign=KARANGA
|
conveyor |
2021-11-03 12:02:21 |
ニュース |
BBC News - Home |
Four Olympic winners named in GB team for World Short Course Championships |
https://www.bbc.co.uk/sport/swimming/59146513?at_medium=RSS&at_campaign=KARANGA
|
championships |
2021-11-03 12:40:54 |
北海道 |
北海道新聞 |
コンサドーレJ1残留確定 ミシャ監督続投 |
https://www.hokkaido-np.co.jp/article/607591/
|
北海道コンサドーレ札幌 |
2021-11-03 21:13:45 |
北海道 |
北海道新聞 |
クレーンで同僚を宙づり疑い 鹿児島で4人逮捕、水死も捜査 |
https://www.hokkaido-np.co.jp/article/607643/
|
鹿児島県警 |
2021-11-03 21:11:00 |
北海道 |
北海道新聞 |
外食時の要請は年内継続へ、大阪 人数・時間制限で吉村知事 |
https://www.hokkaido-np.co.jp/article/607642/
|
吉村洋文 |
2021-11-03 21:11:00 |
北海道 |
北海道新聞 |
苫小牧東港区「良い釣り場」 1日限定の試験開放 |
https://www.hokkaido-np.co.jp/article/607613/
|
苫小牧市 |
2021-11-03 21:10:08 |
コメント
コメントを投稿