python |
Pythonタグが付けられた新着投稿 - Qiita |
[トリビアの泉]1から9の数字が重複なくある9桁の数字は必ず9の倍数になるらしいけど証明とかめんどいしPythonで調べてみた。 |
https://qiita.com/poppy1115/items/6fb4958761bcae55d7fc
|
importnumpyasnpnumbersnparangeこれだけで処理速度が倍になるからまで入力するのは煩雑だと思っていましたが、結局手打ちが一番うまい早いってことですね。 |
2021-10-17 00:46:09 |
python |
Pythonタグが付けられた新着投稿 - Qiita |
カレーライス作りで学ぶマルチスレッド |
https://qiita.com/bkh4149/items/a257e3df68d85bd03af6
|
たとえばカレーライスを作るのに、カレーに分、ご飯に分かかるとします。 |
2021-10-17 00:39:08 |
js |
JavaScriptタグが付けられた新着投稿 - Qiita |
算術符号よりめっちゃ高速だとの噂の「非対称符号系(ANS)」のコードを JavaScript で書いて、速度を測ってみた |
https://qiita.com/yamazaki3104/items/75f8caec862449fce324
|
freqsymbolcountsの各値もの累乗に揃えることができると、さらなる高速化割り算と余りの計算をビットシフトとビットアンドに置き換えも可能と思えるが、、、若干圧縮率が犠牲になるし、どうやって計算したら両方をの乗数に揃えられるのか思いつかないので保留中です。 |
2021-10-17 00:20:50 |
js |
JavaScriptタグが付けられた新着投稿 - Qiita |
【学習メモ】Vue.jsの基礎的な構文の備忘録 |
https://qiita.com/Ooooooomin_365/items/ed5a206b201bedc6a3fd
|
indexhtml以下のようにVuejsによって操作される部分をテンプレートというltdividappgtltpgtmessageltpgtltdivgtindexjsnewVueelappdatamessageHelloWorldディレクティブVuejsではvから始まる特別な属性値「ディレクティブ」というものが用意されています。 |
2021-10-17 00:12:47 |
Program |
[全てのタグ]の新着質問一覧|teratail(テラテイル) |
Vueとaxiosで、サーバーから画像を読み込みたい |
https://teratail.com/questions/364764?rss=all
|
Bを選択されたらBの画像というように画面から選択された値によって、違う画像をサーバーから読み込みたいです。 |
2021-10-17 00:56:20 |
Program |
[全てのタグ]の新着質問一覧|teratail(テラテイル) |
セル範囲内の文字をGASで検索した際、正しい結果が得られない |
https://teratail.com/questions/364763?rss=all
|
適応 |
2021-10-17 00:56:16 |
Program |
[全てのタグ]の新着質問一覧|teratail(テラテイル) |
配列のプロパティを含む、構造体の配列のList表示方法 |
https://teratail.com/questions/364762?rss=all
|
配列のプロパティを含む、構造体の配列のList表示方法前提・実現したいこと現状、テキストフィールドに文字列を入力後、ボタンを押すと構造体strsのlargeCateがリスト表示されますがsmallCateのquotその他quotがネストとして表示できるようにしたいです。 |
2021-10-17 00:56:07 |
Program |
[全てのタグ]の新着質問一覧|teratail(テラテイル) |
BeautifulSoup URL取得について |
https://teratail.com/questions/364761?rss=all
|
BeautifulSoupURL取得について前提・実現したいことPythonnbspBeautifulSoupでURLを取得したい発生している問題・エラーメッセージltanbsphrefquotquotgt〇〇ltagtまではスクレイピングでき、textで〇〇のスクレイピングもできたがURLのスクレイピングができませんエラーメッセージ該当のソースコードurlsnbspnbspsoupfindallaposaaposfornbspurlnbspinnbspurlslinknbspnbspurlfindaposhrefaposprintlink↑インスタンス入れてます。 |
2021-10-17 00:47:37 |
Program |
[全てのタグ]の新着質問一覧|teratail(テラテイル) |
MNISTの解像度を上げる上での配列の考え方 |
https://teratail.com/questions/364760?rss=all
|
MNISTの解像度を上げる上での配列の考え方実現したいことMNIST手書き数字データをheightnbsppixelnbspwidthnbspnbsppixelからheightnbspnbsppixelnbspwidthnbsppixelにしたいそもそも高解像度にしたい理由は、自前で用意した画像heightnbsppixelnbspwidthnbsppixelを用いてCNNオートエンコーダを実施した際に、自作のCNN学習モデルでは学習精度が上がらなかったことを受け、MNISTで同じ解像度にしたデータを用いた場合に、自作の学習モデルがどれくらいの精度を出せるかを確認するため。 |
2021-10-17 00:37:39 |
Program |
[全てのタグ]の新着質問一覧|teratail(テラテイル) |
monacaでユニバーサルリンクを設定したい |
https://teratail.com/questions/364759?rss=all
|
cordova |
2021-10-17 00:21:40 |
Program |
[全てのタグ]の新着質問一覧|teratail(テラテイル) |
AndroidStudio ダイアログに「次回以降表示しない」オプションを追加したい |
https://teratail.com/questions/364758?rss=all
|
AndroidStudioダイアログに「次回以降表示しない」オプションを追加したい実現したいことダイアログの選択肢に「次回以降表示しない」という項目を追加したいのですが方法がわかりません。 |
2021-10-17 00:13:28 |
Program |
[全てのタグ]の新着質問一覧|teratail(テラテイル) |
SeleniumでのWeb操作 ページ移動ができない |
https://teratail.com/questions/364757?rss=all
|
|
2021-10-17 00:11:02 |
Program |
[全てのタグ]の新着質問一覧|teratail(テラテイル) |
各要素にn個ずつdivで囲んだpを配置できない |
https://teratail.com/questions/364756?rss=all
|
各要素にn個ずつdivで囲んだpを配置できない前提・実現したいことjQuerynbspからネイティブnbspjsnbspへの書き換えを行っています。 |
2021-10-17 00:08:27 |
Program |
[全てのタグ]の新着質問一覧|teratail(テラテイル) |
laravel6でherokuアプリにPostgreSQLで接続したい。 |
https://teratail.com/questions/364755?rss=all
|
laravelでherokuアプリにPostgreSQLで接続したい。 |
2021-10-17 00:07:22 |
Ruby |
Rubyタグが付けられた新着投稿 - Qiita |
Ruby特有のif文 |
https://qiita.com/nautii/items/055d01e7f53aff9c6bb1
|
if修飾子scoreputs合格ifscoregt結果gt合格便利な性質も多いですがメゾットで使用するときは注意が必要です。 |
2021-10-17 00:19:20 |
Ruby |
Railsタグが付けられた新着投稿 - Qiita |
railsチュートリアル第八章 フラッシュメッセージを表示させる |
https://qiita.com/masatom86650860/items/2a6871f6e29fb44e1ba4
|
railsチュートリアル第八章フラッシュメッセージを表示させるフラッシュメッセージを表示させるログイン失敗時の処理を扱うappcontrollerssessionscontrollerrbclassSessionsControllerltApplicationControllerdefnewenddefcreateuserUserfindbyemailparamssessionemaildowncase送信されたメアドを使ってデータベースから取り出す。 |
2021-10-17 00:53:20 |
Ruby |
Railsタグが付けられた新着投稿 - Qiita |
railsチュートリアル第八章 |
https://qiita.com/masatom86650860/items/e36eea3110681d227690
|
railsチュートリアル第八章ユーザーの検索と認証SessionsコントローラのcreateアクションappcontrollerssessionscontrollerrbclassSessionsControllerltApplicationControllerdefnewenddefcreate新規ユーザー作成rendernewnewアクションのビューを表示させるenddefdestroyユーザー削除endendデバッグ情報paramsハッシュでは、次のようにsessionキーの下にメールアドレスとパスワードrubyobjectActionControllerParametersparametersrubyhashActiveSupportHashWithIndifferentAccessauthenticitytokensoeKxILHYOKGNouYoHHYogsoJRbaNussPUvpHgdDQSaRrwdoDXuXRtcykDJXuFMUMMlBGjhgsessionrubyhashActiveSupportHashWithIndifferentAccessemailpasswordcommitLogincontrollersessionsactioncreatepermittedfalseハッシュのハッシュsessionpasswordfoobaremailuserexamplecom上を略すことができるparamssessionハッシュのハッシュpasswordfoobaremailuserexamplecom細かくハッシュの検索paramssessionemailparamssessionpasswordユーザーをデータベースから見つけて検証するappcontrollerssessionscontrollerrbclassSessionsControllerltApplicationControllerdefnewenddefcreateuserUserfindbyemailparamssessionemaildowncase送信されたメアドを使ってデータベースから取り出す。 |
2021-10-17 00:53:01 |
Ruby |
Railsタグが付けられた新着投稿 - Qiita |
railsチュートリアル第八章 ログインフォーム |
https://qiita.com/masatom86650860/items/78f993a0990ef6218514
|
railsチュートリアル第八章ログインフォームログインフォームログインフォームのビューを整える。 |
2021-10-17 00:52:17 |
Ruby |
Railsタグが付けられた新着投稿 - Qiita |
Ruby特有のif文 |
https://qiita.com/nautii/items/055d01e7f53aff9c6bb1
|
if修飾子scoreputs合格ifscoregt結果gt合格便利な性質も多いですがメゾットで使用するときは注意が必要です。 |
2021-10-17 00:19:20 |
Apple |
AppleInsider - Frontpage News |
MacBook Pro refresh could reuse the iPhone's notch in the display |
https://appleinsider.com/articles/21/10/16/macbook-pro-refresh-could-reuse-the-iphones-notch-in-the-display?utm_medium=rss
|
MacBook Pro refresh could reuse the iPhone x s notch in the displayThe inbound inch MacBook Pro and inch MacBook Pro models could end up equipped with an iPhone style notch with images allegedly depicting a display panel for the line bearing the controversial design decision The notch in the iPhone and earlier models have been the source of many complaints and criticism but the infamous screen cut out largely stuck to only Apple s mobile device lines In a social media posting it is rumored that something similar could be coming to the inch and inch MacBook Pro Oh no Why is the new MacBook Pro screen notched pic twitter com zOblfXーDuanRui duanrui October Read more |
2021-10-16 15:39:23 |
海外TECH |
Engadget |
Hitting the Books: How Amazon's aggressive R&D push made it an e-commerce behemoth |
https://www.engadget.com/hitting-the-books-the-exponential-age-azeem-azhar-diversion-books-153033895.html?src=rss
|
Hitting the Books How Amazon x s aggressive R amp D push made it an e commerce behemothAmazon is the Standard Oil of the st century Its business operations and global reach dwarf those of virtually every other company on the planet ーand exceed the GDP of more than a few countries ーillustrating the vital importance innovation has on the modern economy In his latest book The Exponential Age How Accelerating Technology is Transforming Business Politics and Society author Azeem Azhar examines how the ever increasing pace of technological progress is impacting influencing ーand often rebuilding ーour social political and economic mores from the ground up Diversion BooksExcerpted from The Exponential Age How Accelerating Technology is Transforming Business Politics and Society by Azeem Azhar Copyright Azeem Azhar Printed with permission of the publisher Diversion Books All rights reserved In Amazon turned twenty six years old Over the previous quarter of a century the company had transformed shopping With retail revenues in excess of billion it was larger than Germany s Schwarz Gruppe America s Costco and every British retailer Only America s Walmart with more than half a trillion dollars of sales was bigger But Amazon was by this time far and away the world s largest online retailer Its online business was about eight times larger than Walmart s Amazon was more than just an online shop however Its huge operations in areas such as cloud computing logistics media and hardware added a further billion in sales At the heart of Amazon s success is an annual research and development budget that reached a staggering billion in and which is used to develop everything from robots to smart home assistants This sum leaves other companies ーand many governments ーbehind It is not far off the UK government s annual budget for research and development The entire US government s federal R amp D budget for was only billion nbsp Amazon spent more on R amp D in than the US National Institutes of Health Roche the global pharmaceutical company renowned for its investment in research spent a mere billion in R amp D in Meanwhile Tesco the largest retailer in Britain ーwith annual sales in excess of £ billion approximately billion ーhad a research lab whose budget was in the “six figures in Perhaps more remarkable is the rate at which Amazon grew this budget Ten years earlier Amazon s research budget was billion Over the course of the next decade the firm increased its annual R amp D budget by about percent every year As the s went on Amazon doubled down on its investments in research In the words of Werner Vogels the firm s chief technology officer if they stopped innovating they “would be out of business in ten to fifteen years In the process Amazon created a chasm between the old world and the new The approach of traditional business was to rely on models that succeeded yesterday They were based on a strategy that tomorrow might be a little different but not markedly so This kind of linear thinking rooted in the assumption that change takes decades and not months may have worked in the pastーbut not anymore Amazon understood the nature of the Exponential Age The pace of change was accelerating the companies that could harness the technologies of the new era would take off And those that couldn t keep up would be undone at remarkable speed This divergence between the old and the new is one example of what I call the “exponential gap On the one hand there are technologies that develop at an exponential paceーand the companies institutions and communities that adapt to or harness those developments On the other there are the ideas and norms of the old world The companies institutions and communities that can only adapt at an incremental pace These get left behindーand fast The emergence of this gap is a consequence of exponential technology Until the early s most companies assumed the cost of their inputs would remain pretty similar from year to year perhaps with a nudge for inflation The raw materials might fluctuate based on commodity markets but their planning processes institutionalized in management orthodoxy could manage such volatility But in the Exponential Age one primary input for a company is its ability to process information One of the main costs to process that data is computation And the cost of computation didn t rise each year it declined rapidly The underlying dynamics of how companies operate had shifted In Chapter we explored how Moore s Law amounts to a halving of the underlying cost of computation every couple of years It means that every ten years the cost of the processing that can be done by a computer will decline by a factor of one hundred But the implications of this process stretch far beyond our personal laptop useーand far beyond the interests of any one laptop manufacturer In general if an organization needs to do something that uses computation and that task is too expensive today it probably won t be too expensive in a couple of years For companies this realization has deep significance Firms that figured out that the effective price of computation was declining even if the notional price of what they were buying was staying the same or even rising could plan practice and experiment with the near future in mind Even if those futuristic activities were expensive now they would become affordable soon enough Organizations that understood this deflation and planned for it became well positioned to take advantage of the Exponential Age If Amazon s early recognition of this trend helped transform it into one of the most valuable companies in history they were not alone Many of the new digital giantsーfrom Uber to Alibaba Spotify to TikTokーtook a similar path And following in their footsteps were firms who understand how these processes apply in other sectors The bosses at Tesla understood that the prices of electric vehicles might decline on an exponential curve and launched the electric vehicle revolution The founders of Impossible Foods understood how the expensive process of precision fermentation which involves genetically modified microorganisms would get cheaper and cheaper Executives at space companies like Spire and Planet Labs understood this process would drive down the cost of putting satellites in orbit Companies that didn t adapt to exponential technology shifts like much of the newspaper publishing industry didn t stand a chance We can visualize the gap by returning to our now familiar exponential curve As we ve seen individual technologies develop according to an S curve which begins by roughly following an exponential trajectory And as we ve seen it starts off looking a bit humdrum In those early days exponential change is distinctly boring and most people and organizations ignore it At this point in the curve the industry producing an exponential technology looks exciting to those in it but like a backwater to everyone else But at some point the line of exponential change crosses that of linear change Soon it reaches an inflection point That shift in gear which is both sudden and subtle is hard to fathom nbsp Because for all the visibility of exponential change most of the institutions that make up our society follow a linear trajectory Codified laws and unspoken social norms legacy companies and NGOs political systems and intergovernmental bodiesーall have only ever known how to adapt incrementally Stability is an important force within institutions In fact it s built into them The gap between our institutions capacity to change and our new technologies accelerating speed is the defining consequence of our shift into the Exponential Age On the one side you have the new behaviors relationships and structures that are enabled by exponentially improving technologies and the products and services built from them On the other you have the norms that have evolved or been designed to suit the needs of earlier configurations of technology The gap leads to extreme tension In the Exponential Age this divergence is ongoingーand it is everywhere |
2021-10-16 15:30:33 |
海外TECH |
Engadget |
Dbrand stops selling PS5 faceplates after Sony issues legal threats |
https://www.engadget.com/dbrand-stops-ps5-faceplate-sales-150427894.html?src=rss
|
Dbrand stops selling PS faceplates after Sony issues legal threatsIt s not just small companies facing Sony s wrath over aftermarket PlayStation faceplates Dbrand told The Verge it stopped selling its PS quot Darkplates quot after Sony issued a cease and desist letter earlier in the year threatening legal action over alleged design and trademark violations Visit Dbrand s product page now and you ll only see links to news stories and testimonials Dbrand isn t going down quietly In a Reddit thread the company claimed it was submitting to the quot terrorists demands for now quot It believed customers had the right to modify hardware with third party components and speculated that Sony might be clamping down so that it can either sell its own covers or charge licensing fees The company didn t definitively say it planned to resume sales but did say it would quot talk soon quot Whatever Dbrand s intentions this takes away a major option though not your only option for customizing the PS The question is whether or not Sony can completely halt third party faceplate sales After all the faceplates are designed to be easily removable and aren t much more than plastic sheets Dbrand likened this to replacing a broken F truck bumper with an aftermarket part ーyou have the right to choose the parts you use for fixes or cosmetic upgrades and Ford can t sue simply because you re using an unofficial bumper It won t be surprising if there s an eventual court battle over Sony s policy |
2021-10-16 15:04:27 |
ニュース |
BBC News - Home |
Sir David Amess killing: MPs will not by cowed, says Patel |
https://www.bbc.co.uk/news/uk-58940491?at_medium=RSS&at_campaign=KARANGA
|
amess |
2021-10-16 15:49:56 |
ニュース |
BBC News - Home |
Matt Hancock's United Nations role withdrawn |
https://www.bbc.co.uk/news/uk-politics-58940128?at_medium=RSS&at_campaign=KARANGA
|
africa |
2021-10-16 15:44:43 |
ニュース |
BBC News - Home |
Art mistake: Cardiff artwork washed off by cleaners in error |
https://www.bbc.co.uk/news/uk-wales-58939715?at_medium=RSS&at_campaign=KARANGA
|
cardiff |
2021-10-16 15:34:58 |
ニュース |
BBC News - Home |
Sealiway wins Champion Stakes as Murphy retains jockeys' title |
https://www.bbc.co.uk/sport/horse-racing/58938918?at_medium=RSS&at_campaign=KARANGA
|
ascot |
2021-10-16 15:40:27 |
ニュース |
BBC News - Home |
Sadio Mane: Best goals as Liverpool forward joins Premier League 100 club |
https://www.bbc.co.uk/sport/av/football/58941767?at_medium=RSS&at_campaign=KARANGA
|
Sadio Mane Best goals as Liverpool forward joins Premier League clubAs Sadio Mane reaches Premier League goals BBC Sport looks back at some of his best goals and the key stats of how the Liverpool forward reached the landmark |
2021-10-16 15:51:15 |
ニュース |
BBC News - Home |
Covid-19 in the UK: How many coronavirus cases are there in my area? |
https://www.bbc.co.uk/news/uk-51768274?at_medium=RSS&at_campaign=KARANGA
|
cases |
2021-10-16 15:31:47 |
サブカルネタ |
ラーブロ |
ラーショマルミャー(〇猫)@池袋 |
http://feedproxy.google.com/~r/rablo/~3/UTPmsDURzYY/single_feed.php
|
食堂 |
2021-10-16 16:00:58 |
北海道 |
北海道新聞 |
殺人未遂容疑で母親逮捕 鹿児島、乳幼児切り付け |
https://www.hokkaido-np.co.jp/article/600859/
|
殺人未遂 |
2021-10-17 00:18:00 |
北海道 |
北海道新聞 |
立民、比例単独で26人 過半数の候補擁立達成 |
https://www.hokkaido-np.co.jp/article/600850/
|
立憲民主党 |
2021-10-17 00:04:05 |
コメント
コメントを投稿