投稿時間:2022-02-20 00:18:58 RSSフィード2022-02-20 00:00 分まとめ(21件)

カテゴリー等 サイト名等 記事タイトル・トレンドワード等 リンクURL 頻出ワード・要約等/検索ボリューム 登録日
python Pythonタグが付けられた新着投稿 - Qiita MMSegmentationによる多数クラス画像(Multi Class)のセマンティックセグメンテーション(Semantic Segmentation). https://qiita.com/nigo1973/items/37c0980b00e4f1eb2c3f MMSegmentationが初めての方を対象としたためかなり細かく紹介していますそのため長文となりましたので慣れている方はポイントだけ見てくださいここで用いたコードはGithubにアップしましたのでご興味のある方は試してみてくださいJupyterlabnotebookで実行できますご参考になれば幸いです環境本記事の実装環境は以下となりますOSUbuntuLTSGPUGeoForceRTXPythonPytorchCudaMMSegmentationセグメンテーションモデルセグメンテーション正確にはSemanticSegmentationに関する記事は多数あります例えば以下の記事ではセグメンテーションのモデルでが紹介されていますセマンティックセグメンテーションをざっくり学ぶ前回の記事でSemntaicSegmentaionmodelsでの多数クラスのマルチセグメンテーションの方法を紹介しましたが今回は多数クラスのセグメンテーションを比較的容易に試すことができる以下のモジュールを使ってみました特に新たにモデルをつくるのは、ここで紹介しますが、Configurationを変更することで簡単に試すことができます。 2022-02-19 23:38:35
Ruby Rubyタグが付けられた新着投稿 - Qiita request.env["HTTP_USER_AGENT"] について https://qiita.com/wangqijiangjun/items/6f954ed9b1621d43cdb0 また、requestenvHTTPUSERAGENTincludeMobileとすることで、アクセスしているユーザーの端末はiOSなのかandroidなのかということが分かります。 2022-02-19 23:48:38
Ruby Rubyタグが付けられた新着投稿 - Qiita 継承を使う際の注意点 https://qiita.com/takekou/items/dbfa77aebfcff5ea1a16 アプリケーションの設計やアーキテクチャに興味を持ち始めた人とりあえず仕様を満たす処理は書けるが、コードがすぐぐちゃぐちゃになってしまう人個人で小さいアプリケーションを開発した経験はあるが、複数人で開発している比較的大きいアプリケーションには触れたことがない人プログラミング言語の基本的な文法は理解し、オブジェクト指向などを学んでいる人家の情報を扱うこの記事ではサンプルとして、家一戸建ての情報を扱おうと思います。 2022-02-19 23:37:06
AWS AWSタグが付けられた新着投稿 - Qiita Terraform AWS Provider v4.0.0 への変更を自動生成する https://qiita.com/kjm/items/ad03eb832e250f2051bd TerraformAWSProviderVersionUpgradeGuideとは言っても、Sの定義はたくさんあるだろうし、手動で書き換えていくのはたいへんです。 2022-02-19 23:36:55
AWS AWSタグが付けられた新着投稿 - Qiita AWS 初心者向けハンズオンやってみた#1 https://qiita.com/gazami_shougun/items/4b95c041cdc14fa17a73 普段使わないリージョンで勝手にインスタンスが立てられていた、という話はよく聞きますので全てのリージョンで有効にすべきかと思います、tocベストプラクティスの確認TrustedAdvisor現在使用しているリソースやIAM設定などがベストプラクティスに沿っているかをチェックしてくれるサービスです。 2022-02-19 23:27:16
golang Goタグが付けられた新着投稿 - Qiita [Golang] enumを使いたい ~ structでも定数定義できるぞ https://qiita.com/tomonori0511t/items/a781bea9a04b0ba86c17 まずは基本的な使い方よくGoogleで検索して見かけるやつhogegopackageconstant自動で採番してくれるconstHOGEiotaHOGEHOGE始まりにしたいconstHOGEHOGEHOGE文字列で定義したいconstHOGEhogeHOGEhogeHOGEhoge基本型をベースにした独自の型で定義したいtypeHOGEuintconstHOGEHOGEHOGEHOGEHOGEHOGE大体の定数って数値か文字列のどれかで扱うことが多いので以下のような定数宣言をよく見かける。 2022-02-19 23:05:58
Ruby Railsタグが付けられた新着投稿 - Qiita request.env["HTTP_USER_AGENT"] について https://qiita.com/wangqijiangjun/items/6f954ed9b1621d43cdb0 また、requestenvHTTPUSERAGENTincludeMobileとすることで、アクセスしているユーザーの端末はiOSなのかandroidなのかということが分かります。 2022-02-19 23:48:38
技術ブログ Developers.IO DevelopersIOにブログが未投稿なら通知で催促をするMicrosoft Power Automate Flowを作ってみた https://dev.classmethod.jp/articles/microsoft-power-automate-flow-that-reminds-you-with-a-notification-if-a-blog-has-not-been-posted-to-developersio/ developersio 2022-02-19 14:53:53
海外TECH Ars Technica A little bit of everything: The Short Story of Science https://arstechnica.com/?p=1835202 advances 2022-02-19 14:30:41
海外TECH MakeUseOf How to Set Up LibreOffice for School https://www.makeuseof.com/set-up-libreoffice-for-school/ academic 2022-02-19 14:30:12
海外TECH MakeUseOf Are Kokoon's Nightbuds the Answer to a Perfect Night's Sleep? https://www.makeuseof.com/kokoon-nightbuds-review/ Are Kokoon x s Nightbuds the Answer to a Perfect Night x s Sleep You can t put a price on a night of restful sleep and Kokoon is here with its Nightbuds sleep earbuds to help you snooze soundly 2022-02-19 14:05:12
海外TECH DEV Community Using Laravel's Illuminate Validation in any PHP project https://dev.to/geowrgetudor/using-laravels-illuminate-validation-in-any-php-project-4hoh Using Laravel x s Illuminate Validation in any PHP projectI m developing a Wordpress plugin that requires strict data for the frontend The frontend is built with Vue js and it s basically a multistep wizard where every step is represented by a specific Vue component A little bit of contextI want to give the freedom to any developer that s going to use this wizard to pass any step they want in any order they want On the backend side each step is represented by a class that s instantiated as follows new StaxWp Gandalf Core Components YoutubeVideo title gt description gt url gt autoplay gt false This is a step that contains a title a description an url and an option to autoplay Every step accepts in its constructor an array of data and an int for priority Because we re humans and we can make mistakes I need to make sure all the fields from the array have specific values If you are familiar with Laravel you know how the validation works We can use the same validation outside Laravel This is how I enforced validation rules for my step s data array final class YoutubeVideo extends Step YoutubeVideo constructor param array data param integer priority public function construct array data int priority parent construct data priority this gt add validation rules title gt sometimes required string nullable description gt sometimes required string nullable url gt required string regex https www youtube com youtu be watch v w autoplay gt required boolean This of course won t work out of the box so first we ll need to install illuminate validation and illuminate translation Setting up the requirementscomposer require illuminate validationcomposer require illuminate translationNext we need to include the following in our class use Illuminate Container Container use Illuminate Filesystem Filesystem use Illuminate Translation FileLoader use Illuminate Translation Translator use Illuminate Validation Factory then declare our private variable for validation and validation rules Step data validator var Factory private validation Step data validation rules var array private validation rules and then we need instantiate our validator in the constructor loader new FileLoader new Filesystem lang translator new Translator loader en this gt validation new Factory translator new Container I m not gonna add any localization files for the error messages because I won t display them Everytime the validator fails I m gonna throw an exception Actually doing the validationEvery step is casted to array and converted to JSON and then passed to the Vue so where do I do the validation In the array casting function of course Get step as array return mixed public function to array this gt validate data return get object vars this Validate step s data return mixed protected function validate data if empty this gt data amp amp empty this gt validation rules throw new Exception this gt type has data but no validation rules validator this gt validation gt make this gt data this gt validation rules if validator gt fails throw new Exception this gt type has an incorrect data format By doing this I know for sure that my data array has all the required fields and each field has the required value I hope you ve found this short tutorial useful 2022-02-19 14:12:05
海外TECH DEV Community ⚡ Write your own reactivity function in 10 lines of Javascript https://dev.to/tqbit/write-your-own-reactivity-function-in-10-lines-of-javascript-40be Write your own reactivity function in lines of JavascriptReactivity is a core feature of modern Javascript frameworks It is like putting a tracker on your data In this article you will learn one approach of implementing reactivity using the Observer Pattern You will also code your own simple reactivity function in less than lines of Javascript The Observer PatternThe Observer Pattern is a design principle in software development It requires the implementation of a Subject to which Subscribers alias Observers can register Whenever the Subject changes each Subscriber is notified If you take the terms literally it s like subscribing to an email newsletter This image displays our implementation of the Observer Pattern using functional programming The use caseLet s assume I would like to write the frontend for a webshop Currently the customer requests a shopping cart feature It must update the total checkout price whenever a new item is added or removed Our dev team decides the best way is to implement an Observer Pattern with the shopping cart items used as its subject The functional approachThe most straightforward implementation way seems to be to Create a subject Create a set of handler functions Register the handler functions to be called whenever the subject changesSo let s do just that Create the SubjectThe following will be our shopping cart Subject Define the subjectconst shoppingCart items checkoutPrice Let s also agree on what our item must look like const shoppingCartItem price quantity name Playstation Create the handler function s For our use case we need only a single function It must update the total cart price whenever the items property in our shopping cart changes Define the handler functionfunction calculateCheckoutPrice let sum shoppingCart items forEach item gt sum item price shoppingCart checkoutPrice sum The first attempt without reactivityLet s try it out manually add the item to the shopping cart and call calculateCheckoutPrice Define the subjectconst shoppingCart items checkoutPrice const shoppingCartItem price name Playstation Define the handler functionfunction calculateCheckoutPrice let sum shoppingCart items forEach item gt sum item price shoppingCart checkoutPrice sum shoppingCart items push shoppingCartItem calculateCheckoutPrice console log shoppingCart checkoutPrice Output Add a register functionWe won t want to call this function every time after a new item has been added This is where the observer pattern comes into play The two features we must implement are Our register function must bind the handler functions to our subject Whenever the subject changes all handler functions must be called Fortunately there is a browser API to the rescue I m talking about Proxies The Proxy object enables you to create a proxy for another object which can intercept and redefine fundamental operations for that object Source MDN on Javascript Proxy objectsIntercepting sounds promising This should give us a way to get to know whenever our proxied let s call it observed for the rest of the article subject changes Let s add the following function to our codebase param subject any param subscribers function function register subject subscribers const proxyHandler set target property value gt target property value subscribers forEach subscriber gt subscriber return true return new Proxy subject proxyHandler The above code introduces a Proxy trap named proxyHandler It must be passed into the Proxy constructor alongside the subject The trap is what handles interceptions In this case it redefines what happens whenever the subject s value changes when set is called set accepts three arguments The target is our subject The property is our subject s value key The value is the new value to be assigned So by writing target property value we do nothing else but the standard assignation operation What comes next is custom subscribers forEach subscriber gt subscriber calls all of our handler functions It makes sure that whatever function we pass will be executed once the subject changes Make it reactiveAll that s left to do is to enhance the default items property of our shopping cart with the register function Let s also create a second shopping cart item that the customer adds to the array just to be sure we got everything right Define the subjectconst shoppingCart register the handler function here items register calculateCheckoutPrice checkoutPrice Define the two shopping cart itemsconst shoppingCartItemOne price name Playstation const shoppingCartItemTwo price name Nvidia Geforce RTX Define the handler functionfunction calculateCheckoutPrice let sum shoppingCart items forEach item gt sum item price shoppingCart checkoutPrice sum Define the register function param subject any param subscribers function function register subject subscribers const proxyHandler set target property value gt target property value subscribers forEach subscriber gt subscriber return true return new Proxy subject proxyHandler add the first itemshoppingCart items push shoppingCartItemOne Add the second itemshoppingCart items push shoppingCartItemTwo console log shoppingCart checkoutPrice Prints Now try and remove an item The checkout price will adjust Remove the first item from the shopping cartshoppingCart items splice console log shoppingCart checkoutPrice Prints Drawbacks of this approachThere are a few caveats against this implementation type Register does not consider nested properties Assignation of whole objects will not work const shoppingCart register items checkoutPrice calculateCheckoutPrice It does not consider the context gt You cannot register a class method as a handler function If you register to arrays all handler functions will be called twice gt In arrays not only the array s value but also its length changes While you could go ahead and patch these problems up we re starting to reach a point in which it would probably be better to encapsulate everything into a class Or at least a closure If you d like to read more about a more specific implementation more than lines please do let me know This post was originally published at Thank you for reading If you enjoyed this article let s stay in touch on Twitter qbitme 2022-02-19 14:05:02
Apple AppleInsider - Frontpage News Daily deals Feb. 19: August Wi-Fi Smart Lock for $199, Half-Price Das Keyboard, more https://appleinsider.com/articles/22/02/19/daily-deals-feb-19-august-wi-fi-smart-lock-for-199-half-price-das-keyboard-more?utm_medium=rss Daily deals Feb August Wi Fi Smart Lock for Half Price Das Keyboard moreSaturday s top deals include the LePow Z inch Portable Monitor for and a inch Amazon Fire Smart TV for Best Deals for February Just like we do every day we ve collected some of the best deals we could find on Apple products tech accessories and a wealth of other products to help you save money If an item is out of stock you may still be able to order it for delivery at a later date Read more 2022-02-19 14:40:42
海外TECH CodeProject Latest Articles RSA key pair via OpenSSL https://www.codeproject.com/Tips/5325577/RSA-key-pair-via-OpenSSL openssla 2022-02-19 14:22:00
海外科学 NYT > Science After Mounting a Comeback, Eagles Face a New Threat https://www.nytimes.com/2022/02/19/us/bald-eagles-lead-poisoning-study.html chronic 2022-02-19 14:30:00
ニュース BBC News - Home Ukraine conflict: Rebels declare general mobilisation as fighting grows https://www.bbc.co.uk/news/world-europe-60443504?at_medium=RSS&at_campaign=KARANGA tensions 2022-02-19 14:54:54
ニュース BBC News - Home Storm Eunice leaves thousands of homes without power https://www.bbc.co.uk/news/uk-60442797?at_medium=RSS&at_campaign=KARANGA eunice 2022-02-19 14:45:17
ニュース BBC News - Home Simon Nellist: Shark attack victim's family pay tribute https://www.bbc.co.uk/news/uk-england-cornwall-60445870?at_medium=RSS&at_campaign=KARANGA fatal 2022-02-19 14:10:17
ニュース BBC News - Home Epstein: Model scout Jean-Luc Brunel found dead in jail https://www.bbc.co.uk/news/world-europe-60443518?at_medium=RSS&at_campaign=KARANGA france 2022-02-19 14:24:24
ニュース BBC News - Home Newcastle's unbeaten run continues as Willock earns draw at West Ham https://www.bbc.co.uk/sport/football/60357467?at_medium=RSS&at_campaign=KARANGA Newcastle x s unbeaten run continues as Willock earns draw at West HamJoe Willock earns Newcastle a valuable draw at West Ham which edges the Magpies five points clear of the Premier League drop zone 2022-02-19 14:48:50

コメント

このブログの人気の投稿

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

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

投稿時間:2020-12-01 09:41:49 RSSフィード2020-12-01 09:00 分まとめ(69件)