投稿時間:2021-09-28 10:25:47 RSSフィード2021-09-28 10:00 分まとめ(32件)

カテゴリー等 サイト名等 記事タイトル・トレンドワード等 リンクURL 頻出ワード・要約等/検索ボリューム 登録日
IT ITmedia 総合記事一覧 [ITmedia ビジネスオンライン] 海外コロナ禍の余波、国内市場に 需給逼迫連鎖も https://www.itmedia.co.jp/business/articles/2109/28/news082.html ITmediaビジネスオンライン海外コロナ禍の余波、国内市場に需給逼迫連鎖もタイやベトナムなど東南アジアでの新型コロナウイルス禍に伴う現地生産の混乱が、日本の消費生活にもじわりと余波を及ぼしている。 2021-09-28 09:31:00
IT ITmedia 総合記事一覧 [ITmedia ビジネスオンライン] 三越伊勢丹ふるさと納税 「証明書ダウンロードサービス」2022年1月下旬から開始 https://www.itmedia.co.jp/business/articles/2109/28/news081.html itmedia 2021-09-28 09:29:00
IT ITmedia 総合記事一覧 [ITmedia News] 楽天モバイル、iPhone 12 ProとiPhone 12 Pro Maxを値下げ 4キャリアで最安に https://www.itmedia.co.jp/news/articles/2109/28/news083.html iphonepro 2021-09-28 09:26:00
IT ITmedia 総合記事一覧 [ITmedia ビジネスオンライン] ローソン、コーヒー39円引きでタンブラー利用者が約2.5倍に https://www.itmedia.co.jp/business/articles/2109/28/news079.html itmedia 2021-09-28 09:10:00
IT ITmedia 総合記事一覧 [ITmedia ビジネスオンライン] 日本端子に学ぶ、中国進出企業はネットで叩かれないため何をすべきか https://www.itmedia.co.jp/business/articles/2109/28/news066.html itmedia 2021-09-28 09:07:00
TECH Techable(テッカブル) 首にかけるドライブレコーダー「FITT360PB」で 360°全方位をカバー https://techable.jp/archives/163027 fittpb 2021-09-28 00:00:54
IT 情報システムリーダーのためのIT情報専門サイト IT Leaders 現場映像をリアルタイムに共有して地図上で可視化─日立システムズの「エリア情報サービス」 | IT Leaders https://it.impress.co.jp/articles/-/22104 itleaders 2021-09-28 09:30:00
デザイン コリス モダンCSSによる絶対配置(position: absolute;)の削減 https://coliss.com/articles/build-websites/operation/css/less-absolute-positioning-modern-css.html 続きを読む 2021-09-28 00:36:49
python Pythonタグが付けられた新着投稿 - Qiita Visualising intersection-over-union relationship via Venn Diagrams https://qiita.com/nailbiter/items/f396bca75810109107bd Visualising intersection over union relationship via Venn DiagramsIn my work I sometimes have to explain how certain datasets changed over time For example recently I had to crawl the portion of OSM dataset containing the data related to Japan and upload it to BigQuery The last time this task was done in our company was around three years ago and by a different method So naturally the resulting set turned out to be a bit different with some roads present only in recently created dataset some present only in original dataset and some present in both I therefore had to present the percentage of data in each of these categories so my superior could decide whether the change should be considered big or not Now the way I do it normally is just by giving percentages e g of roads are contained in new dataset but not in old are contained in old but not in new are contained in both However I have noticed myself that laid out raw numbers are sometimes difficult to process and imagine For example is it big or small change And which set is bigger after all the new one or the old one I figured out that it would be nice to somehow visualize the relationship between those two sets Now it occured to me that Venn diagrams would be a great way to do so with its simple apparent structure all images created with draw io It therefore would only remain to compute the radii of circles and the distance between their centers so that intersection and set differences would give the required fractions More precisely suppose we are given three positive numbers a b c which sum up to one a b c a b c gt Now suppose they denote the fractions of area of union of two circles corresponding to part of left circle shaded in blue which lies outside right circle shaded in red intersection of two circles part of right circle which lies outside left circle as shown on diagram And what we want to compute i e express through a b c are the radius R of left red circle radius r of right blue circle distance x between centers of circles we assume that circles lie on horizontal line One fact to mention is that one can easily convince oneself that by multiplying dividing all three numbers R r x by the same multiplier corresponding fractions a b c do not change hence the numbers R r x are only defined up to a common multiple Therefore we can safely assume that r and only solve for r x Now the great Circle Circle Intersection article at Wolfram provides us with necessary formulae to compute a b c in terms of R r x thus giving us the inverse transform to what we need a pi R pi r A pi R A b pi R pi r A A c pi R pi r A pi r A where A denotes the area of circle intersection and is given via A A R r d r cos left frac d r R dr right R cos left frac d R r dR right frac sqrt d r R d r R d r R d r R Then we only need to solve this First let us solve for r frac pi r pi R frac b c a b implies r R sqrt frac b c a b sqrt frac b c a b Unfortunately solving for d has proven to be considerably more formiddable task due to the complexity of expression for A and I was unable to derive an explicit formula So we will resort to numerical methods Now one thing to notice is that with R r fixed A is a decreasing function of d In order to convince yourself of this convince but not to prove run the following code cell several times import pandas as pdimport numpy as npimport seaborn as snsimport matplotlib pyplot as pltdef A r R d A r np arccos d r R d r R np arccos d R r d R np sqrt d r R d r R d r R d r R return A r R np abs np random randn r R np abs np random randn print r R plt subplots figsize STEP e sns lineplot data pd DataFrame d d A A r R d a d r R d r R d r R d r R d for d in np arange np abs r R STEP r R STEP STEP x d y A y a Hopefully now that you are a believer let me explain why this is important The monotonicity allows us to use bisection to solve inverse problem instead of a simple grid search Note that this is critical as bisection is asymptotically more efficient than grid search while the latter has to take linear number of steps to achieve given accuracy the former requires only logarithmic Now the formal proof of the fact that A is decreasing as a function of d is somewhat lengthy and is given in appendix see at the end of an article All of this lengthy theory was necessary to write the following function import numpy as npdef A R r d return r np arccos d r R d r R np arccos d R r d R np sqrt d r R d r R d r R d r R def solve d r a b c None R return debug info False tol e return d r formula for two circles intersection area and notation taken from if c is None assert a gt and b gt and a b lt c a b else assert a gt and b gt and c gt a b c x np sum a b c for x in a b c r R np sqrt b c a b target A b np pi R np pi r b le ri np abs r R R r while ri le gt tol m le ri A A R r m if A lt target A ri m else le m return le ri rThe sample call would beb a d r solve d r b b a a d r We then can draw the Venn diagram via the following codeimport matplotlib pyplot as pltfig ax plt subplots figsize note we must use plt subplots not plt subplotplt axis off R alpha ax add patch plt Circle R color blue alpha alpha ax add patch plt Circle d R r R color red alpha alpha axFurther workthe algorithm presented can be easily generalized to draw the Venn diagrams corresponding to relation between the three sets not two e g the image is taken from Wikipedia Appendix proof of the fact that A is decreasing with d First freshman Calculus suggests us to take a partial derivative of A R r d with respect to d import sympyR r x d sympy Symbol x for x in Rrxd A r sympy acos d r R d r R sympy acos d R r d R sympy sqrt d r R d r R d r R d r R expr sympy simplify sympy diff A d rational True positive True inverse True expr displaystyle frac R sqrt frac d r left R d r right d r left R d r right left R d r right left R d r right left R d r right left R d r right frac d sqrt frac R d left R d r right R d sqrt frac d r left R d r right d r sqrt left R d r right left R d r right left R d r right left R d r right left left R d r right left R d r right left R d r right left R d r right left R d r right left R d r right left R d r right left R d r right left R d r right left R d r right left R d r right left R d r right right r sqrt frac R d left R d r right R d left R d r right left R d r right left R d r right left R d r right left R d r right d sqrt frac R d left R d r right R d sqrt frac d r left R d r right d r left R d r right left R d r right left R d r right left R d r right This expression is a productexpr funcsympy core mul Mulwith the following multiplicandsfrom IPython display import displayfor i arg in enumerate expr args print f i gt display arg gt displaystyle frac d gt displaystyle frac sqrt frac R d left R d r right R d gt displaystyle frac sqrt frac d r left R d r right d r gt displaystyle frac R d r gt displaystyle frac R d r gt displaystyle frac R d r gt displaystyle frac R d r gt displaystyle R sqrt frac d r left R d r right d r left R d r right left R d r right left R d r right left R d r right left R d r right frac d sqrt frac R d left R d r right R d sqrt frac d r left R d r right d r sqrt left R d r right left R d r right left R d r right left R d r right left left R d r right left R d r right left R d r right left R d r right left R d r right left R d r right left R d r right left R d r right left R d r right left R d r right left R d r right left R d r right right r sqrt frac R d left R d r right R d left R d r right left R d r right left R d r right left R d r right left R d r right Due to triangle inequalities r leq d R d leq R r R leq d r we see that all expressions except of the last one e g are non negative Hence it suffices to show that is negative Now we will use a bit of geometry to simplify the expression note that the radii R r and the segment connecting circle centers d form a triangle as shown on the diagram below Now we will call the angles of this triangle lying against segments R r and d as alpha beta and delta respectively Then the law of cosines tells us that R d r Rd cos beta R d r rd cos alpha R d r Rr cos delta which together with the difference of two squares formula a b a b a b allows to simplify the expression above asdef rec apply expr s r None if r is None r sympy simplify s if sympy simplify expr s return r elif expr func in sympy core add Add sympy core mul Mul return expr func rec apply arg s r for arg in expr args else return exprbeta alpha delta sympy Symbol s for s in beta alpha delta split R d r sympy Symbol k for k in Rdr expr expr subs R d r R d sympy cos beta R d r r d sympy cos alpha expr sympy trigsimp expr expr rec apply expr R d r R d r R d r R d r R d r R d r R d r R d r R d r R d r R d r R d r expr expr subs R d r R r sympy cos delta expr expr subs sympy sqrt sympy sin x sympy sin x for x in alpha beta delta expr expr sympy trigsimp expr subs 𝑅 𝑑 𝑟 𝑅 𝑑 𝑟 𝑅 𝑑 𝑟 𝑅 𝑑 𝑟 R d R d sympy cos beta subs sympy sqrt R d sympy sin beta R d sympy sin beta exprsympy factor expr displaystyle R d r left R sin left alpha right cos left alpha right R sin left beta right cos left beta right d sin left alpha right cos left delta right right sin left beta right We are in a good shape as expression is much simpler than before and we only need to show that it s non positive Now ignoring the obviously non negative factors it all reduces to showing the non negativity of R sin alpha cos alpha R sin beta cos beta d sin alpha cos delta Now employing the law of sines we see that d sin alpha R sin delta hence it suffices to show the non negativity of sin alpha cos alpha sin beta cos beta sin delta cos delta Finally employing the trigonometric formulae sin x cos x sin x sin x sin y sin x y cos x y and using the fact that delta pi alpha beta and hence sin delta sin alpha beta and cos delta cos alpha beta we see that we only need to show the non negativity of sin alpha beta cos alpha beta sin alpha beta cos alpha beta thus it remains to show that cos alpha beta cos alpha beta is non negative But this is easy to see since employing the formula cos x cos y sin x y sin x y gives cos alpha beta cos alpha beta sin alpha sin beta sin alpha sin beta geq 2021-09-28 09:57:23
Program [全てのタグ]の新着質問一覧|teratail(テラテイル) 別句(AS)を同じSELECT内に書いて計算をできるか知りたいです。 https://teratail.com/questions/361653?rss=all 別句ASを同じSELECT内に書いて計算をできるか知りたいです。 2021-09-28 09:48:51
Program [全てのタグ]の新着質問一覧|teratail(テラテイル) pythonのflaskでデータベース作成ができない https://teratail.com/questions/361652?rss=all pythonのflaskでデータベース作成ができない前提・実現したいことyoutubeのいまにゅさんのflaskでdbを作成する動画を拝見しつつ、コードを書いていたのですが、dbnbspの箇所でエラーが発生しました。 2021-09-28 09:45:49
Program [全てのタグ]の新着質問一覧|teratail(テラテイル) CSS padding % https://teratail.com/questions/361651?rss=all csspaddingcss 2021-09-28 09:37:02
Program [全てのタグ]の新着質問一覧|teratail(テラテイル) PHP フォーム 同じものしか選択されない https://teratail.com/questions/361650?rss=all PHPフォーム同じものしか選択されない前提・実現したいことPHPでじゃんけんを行うフォームの作成発生している問題・エラーメッセージエラーは特に出ませんが、プレイヤー側の手がどれを選択してもパーになってしまいます。 2021-09-28 09:28:47
Program [全てのタグ]の新着質問一覧|teratail(テラテイル) (Python)正規表現でマッチした部分のみ空白を削除したい https://teratail.com/questions/361649?rss=all Python正規表現でマッチした部分のみ空白を削除したい実現したいことPythonの正規表現を使ってパターンにマッチした部分のみスペースを削除したいです。 2021-09-28 09:23:45
Program [全てのタグ]の新着質問一覧|teratail(テラテイル) Jのセルの背景色のRGBが”G””H””I”としたい https://teratail.com/questions/361648?rss=all Jのセルの背景色のRGBがGHIとしたいお世話になっております。 2021-09-28 09:20:02
Program [全てのタグ]の新着質問一覧|teratail(テラテイル) next.jsのファンクションの実行タイミング https://teratail.com/questions/361647?rss=all 2021-09-28 09:16:44
Program [全てのタグ]の新着質問一覧|teratail(テラテイル) DockerfileのCMDが思ったように動作しない https://teratail.com/questions/361646?rss=all DockerfileのCMDが思ったように動作しない自身のトレーニング用にDockerfileを作成して独自イメージを作成してpostgresqlサーバーを起動させたいのですが、以下のように記述したDockerfileをビルドしてもdockerすぐにExitとななります。 2021-09-28 09:16:10
Program [全てのタグ]の新着質問一覧|teratail(テラテイル) HTML img 拡張子偽装 https://teratail.com/questions/361645?rss=all 2021-09-28 09:00:28
Docker dockerタグが付けられた新着投稿 - Qiita Docker + selenium + chromedriver のスクレイプ環境を構築する https://qiita.com/isase/items/c784fa5458e0de9e0256 ChromeDriverWebDriverforChromeDownloads次のように、Dockerfileのchromedriverインストール部分のURLを変更してください。 2021-09-28 09:14:32
技術ブログ Developers.IO Snowflakeの署名付きURL(Pre-Signed URL)を利用してファイルをダウンロードしてみた https://dev.classmethod.jp/articles/try-snowflake-pre-signed-url/ urlpresignedurl 2021-09-28 00:51:00
技術ブログ Developers.IO [小ネタ]forEachではasync/awaitが使えない https://dev.classmethod.jp/articles/foreach-async-await/ asyncawait 2021-09-28 00:43:59
海外TECH DEV Community Introduction to GitHub Packages and GitHub Container Registry (GHCR) https://dev.to/n3wt0n/introduction-to-github-packages-and-github-container-registry-ghcr-iib Introduction to GitHub Packages and GitHub Container Registry GHCR What is GitHub Packages What is GitHub Container Registry GHCR How do they work And what are the differences between them In this introduction to GitHub Packages and GitHub Container Registry you ll discover in just few minutes all there is to know about these two services in GitHub Link to the video Like share and follow me for more content YouTube Buy me a coffeePatreonNewsletterCoderDave io WebsiteMerchFacebook page‍GitHubTwitterLinkedInPodcast 2021-09-28 00:39:29
海外TECH Engadget Activision Blizzard settles its EEOC lawsuit with an $18 million payout https://www.engadget.com/activision-blizzard-settles-eeoc-18-million-lawsuit-005806200.html?src=rss Activision Blizzard settles its EEOC lawsuit with an million payoutIn order to settle a lawsuit brought by the US Equal Employment Opportunity Commission Activision Blizzard has agreed to establish an million fund for eligible claimants ーmeaning employees who were harmed by the company s discriminatory hiring and management practices The EEOC lawsuit was filed Monday and that same afternoon Activision Blizzard announced the million conclusion Activision Blizzard is the company behind blockbuster video game franchises including Call of Duty World of Warcraft Diablo and Overwatch Activision Blizzard s revenue for the year was billion with a profit of more than billion Today s million agreement follows a three year investigation into Activision Blizzard by the EEOC The agreement is subject to court approval and any leftover funds will be distributed among equality groups in the video game industry The company is also upgrading its workplace policies and appointing a third party equal opportunity consultant that will report to the Board of Directors and the EEOC This is just one of several lawsuits assailing Activision Blizzard at the moment The first was filed by California s Department of Fair Employment and Housing on July th following a years long investigation that concluded Activision Blizzard executives fostered a sexist frat boy style culture and the company routinely violated equal pay and labor laws Since then the SEC has opened its own investigation into the company investors have filed a separate lawsuit and the National Labor Relations Board is looking into complaints of coercion and interrogation at Activision Blizzard in response to the recent legal pressure Several high profile executives have left the company 2021-09-28 00:58:06
海外ニュース Japan Times latest articles North Korea launches apparent ballistic missile into Sea of Japan https://www.japantimes.co.jp/news/2021/09/28/asia-pacific/north-korea-ballistic-missile-launch/ North Korea launches apparent ballistic missile into Sea of JapanThe test came as the North s U N envoy told the General Assembly that his country had a “right to develop weapons for self defense in the 2021-09-28 09:39:51
ビジネス ダイヤモンド・オンライン - 新着記事 フォード、米にバッテリー3工場建設 韓国SKと共同で - WSJ発 https://diamond.jp/articles/-/283259 韓国 2021-09-28 09:12:00
LifeHuck ライフハッカー[日本版] 短時間で結果を出す人がやっている「使いまわし術」とは? https://www.lifehacker.jp/2021/09/242799one-source-multi-use.html 使いまわし 2021-09-28 10:00:00
北海道 北海道新聞 厚岸の秋彩るアッケシソウ 来秋は湖岸も赤く染まるかも https://www.hokkaido-np.co.jp/article/593580/ 郷土 2021-09-28 09:20:17
北海道 北海道新聞 「大ホール」維持 滝川市苦慮 老朽化で休館 文化事業に影響 新設・代替施設への市民合意は難航も https://www.hokkaido-np.co.jp/article/588296/ 文化センター 2021-09-28 09:20:00
北海道 北海道新聞 北朝鮮、日本海へ飛翔体発射 韓国軍、分析進める https://www.hokkaido-np.co.jp/article/593718/ 参謀本部 2021-09-28 09:01:25
北海道 北海道新聞 大リーグ、筒香1安打 大谷は試合なし https://www.hokkaido-np.co.jp/article/593741/ 大リーグ 2021-09-28 09:10:00
北海道 北海道新聞 米、解放巡り中国と「取引」否定 ファーウェイ幹部問題 https://www.hokkaido-np.co.jp/article/593740/ 記者会見 2021-09-28 09:04:00
海外TECH reddit 「桜を見る会」公開質問状、河野氏は受取拒否 岸田、高市両氏は無回答、野田氏は安倍氏不起訴不当に賛同 https://www.reddit.com/r/newsokuexp/comments/pwu8as/桜を見る会公開質問状河野氏は受取拒否_岸田高市両氏は無回答野田氏は安倍氏不起訴不当に賛同/ rnewsokuexplinkcomments 2021-09-28 00:17:06

コメント

このブログの人気の投稿

投稿時間:2021-06-17 22:08:45 RSSフィード2021-06-17 22:00 分まとめ(2089件)

投稿時間:2021-06-20 02:06:12 RSSフィード2021-06-20 02:00 分まとめ(3871件)

投稿時間:2021-06-17 05:05:34 RSSフィード2021-06-17 05:00 分まとめ(1274件)