投稿時間:2021-08-18 17:43:22 RSSフィード2021-08-18 17:00 分まとめ(52件)

カテゴリー等 サイト名等 記事タイトル・トレンドワード等 リンクURL 頻出ワード・要約等/検索ボリューム 登録日
TECH Engadget Japanese CES 2022、参加者はワクチン接種証明が必要に https://japanese.engadget.com/ces-2022-vaccination-requirement-072032705.html 運営 2021-08-18 07:20:32
TECH Engadget Japanese フォルダブルスマホ、縦折りと横折りどっちがいい?利点と欠点を比較してみた https://japanese.engadget.com/foldable-phone-vertical-horizontal-compare-070039167.html galaxyzflipg 2021-08-18 07:00:39
フリーソフト 新着ソフトレビュー - Vector 高い検出力や軽快な動作で定評のある個人向け総合セキュリティ対策ソフト「カスペルスキー セキュリティ」 https://www.vector.co.jp/magazine/softnews/201202/n2012021.html?ref=rss 個人向け 2021-08-18 17:00:00
ROBOT ロボスタ 日本科学未来館「ゆるっとロボット語ろっと。」avatarin代表の深堀昂氏が登場へ!テーマは「瞬間移動」意見や質問を事前募集 https://robotstart.info/2021/08/18/miraikan-robot-talk-avatarin.html avatar 2021-08-18 07:17:43
IT ITmedia 総合記事一覧 [ITmedia ビジネスオンライン] ゆうちょPayで5%還元キャンペーン 普及は進むか? https://www.itmedia.co.jp/business/articles/2108/18/news126.html itmedia 2021-08-18 16:24:00
IT ITmedia 総合記事一覧 [ITmedia Mobile] 郵便局で「ゆうちょPay」5%還元キャンペーン 9月1日から12月31日まで https://www.itmedia.co.jp/mobile/articles/2108/18/news122.html itmediamobile 2021-08-18 16:05:00
IT ITmedia 総合記事一覧 [ITmedia News] “うなぎ蒲焼き味”の納豆、販売エリア拡大 ミツカン「金のつぶ」から https://www.itmedia.co.jp/news/articles/2108/18/news123.html itmedia 2021-08-18 16:04:00
TECH Techable(テッカブル) JX通信社、プラットフォーム開発や営業体制を強化 https://techable.jp/archives/160079 fastale 2021-08-18 07:00:35
python Pythonタグが付けられた新着投稿 - Qiita python 時刻変換対応図 now↔datetime↔文字列↔unixtime https://qiita.com/yoshiyakato/items/7daa1dc8e6e491499fb6 python時刻変換対応図nowdatetime文字列unixtime対応図①datetimedatetimenow現在時刻→datetimeオブジェクトgtgtgtimportdatetimegtgtgtdatetimeオブジェクトdatetimedatetimenowgtgtgtprintdatetimeオブジェクトgtgtgtprinttypedatetimeオブジェクトltclassdatetimedatetimegt②datetimedatetimefromtimestampunixtime→datetimeオブジェクトgtgtgtimportdatetimegtgtgt時刻INTオブジェクトは、Unixtimeのですgtgtgtprinttype時刻INTオブジェクトltclassintgtgtgtgt時刻datetimeオブジェクトdatetimedatetimefromtimestamp時刻INTオブジェクトgtgtgtprint時刻datetimeオブジェクトgtgtgtprinttype時刻datetimeオブジェクトltclassdatetimedatetimegt③intdatetimedatetimetimestampdatetimeオブジェクト→unixtimeimportdatetime現在時刻datetimeオブジェクトdatetimedatetimenow現在時刻INTオブジェクトintdatetimedatetimetimestamp現在時刻datetimeオブジェクトprint現在時刻datetimeオブジェクトprinttype現在時刻datetimeオブジェクトltclassdatetimedatetimegtprint現在時刻INTオブジェクトprinttype現在時刻INTオブジェクトltclassintgt④datetimetimedeltadatetimeオブジェクト→時間差datetimeオブジェクトgtgtgtimportdatetimegtgtgt現在時刻datetimeオブジェクトdatetimedatetimenowgtgtgtprint現在時刻datetimeオブジェクトgtgtgt一時間後時刻datetimeオブジェクト現在時刻datetimeオブジェクトdatetimetimedeltahoursgtgtgtprint一時間後時刻datetimeオブジェクトgtgtgtprinttype一時間後時刻datetimeオブジェクトltclassdatetimedatetimegt⑤datetimedatetimestrptime日付文字列→datetimeオブジェクトgtgtgtimportdatetimegtgtgt日付文字列オブジェクトgtgtgtprinttype日付文字列オブジェクトltclassstrgtgtgtgt時刻datetimeオブジェクトdatetimedatetimestrptime日付文字列オブジェクトYmdHMSgtgtgtprint時刻datetimeオブジェクトgtgtgtprinttype時刻datetimeオブジェクトltclassdatetimedatetimegt⑥datetimedatetimestrftimedatetimeオブジェクト→日付文字列gtgtgtimportdatetimegtgtgt現在時刻datetimeオブジェクトdatetimedatetimenowgtgtgtprinttype現在時刻datetimeオブジェクトltclassdatetimedatetimegtgtgtgt日付文字列オブジェクト現在時刻datetimeオブジェクトstrftimeY年m月d日H時M分S秒gtgtgtprint日付文字列オブジェクト年月日時分秒gtgtgtprinttype日付文字列オブジェクトltclassstrgt参考サイトUnixtime相互変換ツールコメントいつも何回もググらなければならなかったので早見表を作成した。 2021-08-18 16:17:43
js JavaScriptタグが付けられた新着投稿 - Qiita JavaScriptのプラグインの構造を理解する https://qiita.com/webbingstudio@github/items/b9a9efec05be46fe974f ですがstrictモードで書くとundefinedが上書きされることはなくなるそうなので、素直にundefinedと書いてよいようです。 2021-08-18 16:59:37
js JavaScriptタグが付けられた新着投稿 - Qiita リアルタイムで動画に字幕ファイルを合成するhtmlを作ってみた https://qiita.com/NoguchiMasafumi/items/f8d42683f63c3e2f1120 字幕の文字の大きさ調整半角数字入力即反映字幕のタイミング調整遅くする場合は数値を入力早くする場合はマイナス付きの数字を入力どれだけ調整してもタイミングがズレる場合は動画のバージョンディレクターズカット版などと字幕のバージョンがあっていない可能性があります。 2021-08-18 16:21:14
Program [全てのタグ]の新着質問一覧|teratail(テラテイル) wordpressでカテゴリを変えたい https://teratail.com/questions/354961?rss=all wordpress 2021-08-18 16:52:56
Program [全てのタグ]の新着質問一覧|teratail(テラテイル) facebookシェアのリンクが意図したように開かない https://teratail.com/questions/354960?rss=all ltahrefgt以下が実際のコードです。 2021-08-18 16:31:18
Program [全てのタグ]の新着質問一覧|teratail(テラテイル) webサイトのスクレイピング https://teratail.com/questions/354959?rss=all webサイトのスクレイピングPythonを学習中の初学者です。 2021-08-18 16:31:18
Program [全てのタグ]の新着質問一覧|teratail(テラテイル) Vue.jsでのv-on:clickについて https://teratail.com/questions/354958?rss=all 前提・実現したいことVuejsにて同じ要素を使用して作成したプルダウンをvonclickを使用してquot個別にquot開閉したい。 2021-08-18 16:27:30
Program [全てのタグ]の新着質問一覧|teratail(テラテイル) Curl:ポートが開いていなかった場合に接続を終了したい https://teratail.com/questions/354957?rss=all Curlポートが開いていなかった場合に接続を終了したいcurlやlibcurlでポートを指定したとき、指定したポートが開いていないと以下のメッセージが出て接続が終了しません。 2021-08-18 16:25:53
Program [全てのタグ]の新着質問一覧|teratail(テラテイル) @OneToManyでのentityの扱い中のエラーを解決したい https://teratail.com/questions/354956?rss=all OneToManyでのentityの扱い中のエラーを解決したいブログ作成アプリを作成中です。 2021-08-18 16:23:22
Program [全てのタグ]の新着質問一覧|teratail(テラテイル) 【Rails】SQLにおいて、検索パラメータがない場合は、検索しない方法 https://teratail.com/questions/354955?rss=all 【Rails】SQLにおいて、検索パラメータがない場合は、検索しない方法概要SQLにおいて、検索パラメータがない場合は、検索しない方法詳細モデルに検索用のスコープを作成しました。 2021-08-18 16:22:12
Program [全てのタグ]の新着質問一覧|teratail(テラテイル) HTA(VBS)だと、エクスプローラー再起動に失敗する https://teratail.com/questions/354954?rss=all HTAVBSだと、エクスプローラー再起動に失敗する前提・実現したいことHTAで、ボタンを押したときにエクスプローラーを再起動させたいです。 2021-08-18 16:21:14
Program [全てのタグ]の新着質問一覧|teratail(テラテイル) ssh接続先からexitした際に,ローカルマシンに変数を受け渡して任意のスクリプトを実行させる方法 https://teratail.com/questions/354953?rss=all 2021-08-18 16:17:31
Program [全てのタグ]の新着質問一覧|teratail(テラテイル) JavaScript側の音楽の制御 https://teratail.com/questions/354952?rss=all JavaScript側の音楽の制御前提・実現したいこと前の質問でhtml側は、しっかりできたのですが今度はJavaScript側での質問をしたいですhtmlで音楽の制御はできたのですが、本格的な制御ができず困っています。 2021-08-18 16:16:16
Program [全てのタグ]の新着質問一覧|teratail(テラテイル) opencvのobject_detection.cppにてSSDで正常に検出できていない https://teratail.com/questions/354951?rss=all opencvのobjectdetectioncppにてSSDで正常に検出できていない前提・実現したいことcでopencvの物体検出のサンプルプログラムを使い、caffeのssdでの物体検出を試そうとしています。 2021-08-18 16:13:50
Program [全てのタグ]の新着質問一覧|teratail(テラテイル) FATAL Flags parsing error: Unknown command line flag 'params' がわかりません・ https://teratail.com/questions/354950?rss=all FATALFlagsparsingerrorUnknowncommandlineflagxparamsxがわかりません・プログラムを実行したら、FATALnbspFlagsnbspparsingnbsperrornbspUnknownnbspcommandnbsplinenbspflagnbspaposparamsaposPassnbsphelpshortnbspornbsphelpfullnbsptonbspseenbsphelpnbsponnbspflagsとなってしまいました。 2021-08-18 16:11:58
Program [全てのタグ]の新着質問一覧|teratail(テラテイル) コンテンツブロックの考え方について https://teratail.com/questions/354949?rss=all fontsize 2021-08-18 16:06:28
Ruby Rubyタグが付けられた新着投稿 - Qiita RailsからLDAPSでActiveDirectryのユーザパスワード変更 https://qiita.com/akibin/items/c89645ffb207c1837724 基本ドメイン参加してればパスワード変更できるので、あんまりないケースなのかと思いますが、そのあまりないケースが発生したので…今回はRubyからLDAPでディレクトリサービスを操作できるnetldapというgemを使用しました。 2021-08-18 16:12:36
AWS AWSタグが付けられた新着投稿 - Qiita CloudEndure Migrationを使ってオンプレミスサーバーをAmazon EC2に移行する https://qiita.com/leomaro7/items/4d83c3b18bddf8de64e3 仕組み①CloudEndure用IAMユーザを作成し、CloudEndureConsoleから認証②移行対象のソースマシンにCloudEndureAgentをインストール③データは常に非同期で転送④ステージング領域にレプリケーションサーバーが作成され、データをEBSにレプリケーション⑤カットオーバー実行後、ステージングEBSから、スナップショットが作成され、コンバーターインスタンスにアタッチ→変換→ターゲットECインスタンスにアタッチ。 2021-08-18 16:47:22
Ruby Railsタグが付けられた新着投稿 - Qiita RailsからLDAPSでActiveDirectryのユーザパスワード変更 https://qiita.com/akibin/items/c89645ffb207c1837724 基本ドメイン参加してればパスワード変更できるので、あんまりないケースなのかと思いますが、そのあまりないケースが発生したので…今回はRubyからLDAPでディレクトリサービスを操作できるnetldapというgemを使用しました。 2021-08-18 16:12:36
技術ブログ Developers.IO Azure Migrateを使って、AWSからAzureへ仮想マシンを移行する https://dev.classmethod.jp/articles/azure-migrate-aws-azure-vm-migrate/ amazon 2021-08-18 07:17:46
海外TECH DEV Community Eastern Europe Software Development Outsourcing: Is It a Good Idea in 2021? https://dev.to/ascendixtech/eastern-europe-software-development-outsourcing-is-it-a-good-idea-in-2021-2pko Eastern Europe Software Development Outsourcing Is It a Good Idea in The article was originally published on Ascendix Tech blog Eastern Europe software development outsourcing has become a strong market rival for most top outsourcing locations like the Philippines India and Argentina There are lots of reasons like a mind boggling IT ecosystem growth reasonable rates a large talent pool high English proficiency level suitable time overlapping and solid technical background However this also complicates the understanding of the key Eastern Europe software development locations their differences benefits drawbacks and factors that should impact your final decision on what outsourcing company to choose All these issues motivated us to prepare and share an overlook of the outsourcing IT Eastern Europe market with the key numbers statistics average developer hourly rates and current trends in Let s get started with the market overview of outsourcing in Europe Outsourcing in Europe Market Overview As we ve already stated the current Eastern Europe software development outsourcing market is booming and growing at a mind blowing pace Before we start looking through the statistics and numbers it s worth mentioning that we ve chosen Ukraine Poland Belarus and Romania as the key Eastern Europe software outsourcing locations UkraineUkraine is among the leading Eastern Europe software development outsourcing countries building world class software products for the following locations The US companies make up to of software development requests Great Britain companies make up to Western European countries NL LU CH AU BE NO SE DN etc make up to According to IT Ukraine Association Report the IT industry in Ukraine has overpassed bln in compared to bln in Below you can see the Ukrainian IT Market overlook estimated Among the core benefits of IT outsourcing to Ukraine is the ever growing number of technical specialists and tech graduates yearly providing a large talent pool Beetroot s Report states that Ukraine has overpassed IT specialists and tech graduates in So Eastern Europe software development outsourcing to Ukraine is a great option for your business to surely find an experienced team of tech specialists with the technical background required to transform your project idea into a top tier technology solution Right here you can review the core numbers about the Ukrainian IT market Also Ukraine offers a high price quality relationship through providing reasonable rates and wide range of IT professionals For instance are the average Ukraine outsourcing rates while are the average US rates for the same technical expertise PayScale states that the average software developer salary in Ukraine is about while US based IT professionals get paid per month in average The below chart vividly demonstrates the median IT salary in Ukraine by seniority level in USD Apart from affordable financial conditions Ukraine has become a popular R amp D hub for world class companies that have set up their offices in Kyiv Kharkiv Odesa Lviv and Dnepr Below you can see the list of the world known companies with R amp D offices in Ukraine Besides Ukraine has become an investment intensive tech location for many startups and product first companies The leading Ukraine based tech startups with successful stories are GitLab Grammarly People ai Reface and Restream Right here you can look through their acquired funds during the last investment rounds PolandPoland has become one of the most popular Eastern Europe software development outsourcing locations offering IT professionals and approximately tech graduates in Considering the Polish IT market growth it was valued at bln in and it only tends to grow Statista predicts reaching the level of bln in including IT services software development and IT equipment Interestingly only of half a million IT experts work for the Poland based IT companies while other are employed by foreign companies NoFluttJobs Research states that the median IT salaries by seniority level in Poland is the following Junior Middle Senior Eastern Europe software development outsourcing to Poland has become a great choice for such world known companies as Dell EMC HP Inc LenovoMicrosoft IBM Polska Intel Apple Cisco Oracle Google Besides many top tier corporations have invested significant funds into the Polish IT market growth during the last several years Finally the leading Polish product first companies and tech startups are DocPlanner Brainly Booksy Kontakt io SALESmanago and Synerise Below you can see some of their market values raised funds and current market valuations RomaniaRomania is an emerging dark horse among the Eastern Europe software development outsourcing locations providing tech specialists in The country has significantly invested in and grown its IT industry for the recent years due to high quality of technical education powerful communication capabilities affordable rates and rapid growing IT ecosystem Romania Insider stated that the IT industry market overpassed bln in with a capital distribution of to on behalf of foreign investments Despite the positive trends Romania needs to provide more tech specialists to meet the current IT market demand and fill in the vacancies according to OfficeRentInfo Considering the average hourly developer rates Romanian tech companies mostly charge h along with top vendors charging over h According to IT Outsourcing Review the Romanian median IT salaries by seniority level are as follows Junior month Middle month Senior month Even though the Romanian IT industry is too small to compete with Poland and Ukraine Eastern Europe software development outsourcing to Romania still offers such advantages as a multilingual nature Precisely of IT specialists have upper intermediate proficiency level of English over speak Hungarian and French fluently approximately have strong skills in Italian and about know German Besides Romania offers beneficial legal restrictions including No profit tax for reinvested profit in new technological equipment No income tax for employees working as software developers and hired in R amp D labs No income tax for R amp D companies during the first years Considering the startup ecosystem growth Romania is featured as the in the Global Startup Rankings with the following numbers startups VCs and business angels accelerators and incubators active investors network Let s now briefly discuss the top Romania based tech startups and their funding BelarusBelarus has become a long held Eastern Europe software development outsourcing location with more than tech specialists and gt IT companies The State of European Tech states that the Belarussian IT services export reached the level fo bln in compared to bln in Ukraine The IT Outsourcing Review provides the following average software developer salaries by seniority level Junior Middle Senior Team Lead Apart from reasonable rates Belarus has one of the world s highest literacy levels with global aveage among the youngest generations by UNICEF This means that most software engineers and tech specialists from Belarus are highly educated having HE universities included in the QS World University Rankings Lots of world class companies are outsourcing software development to Eastern Europe and Belarus by establishing R amp D offices there Specifically Viber Fitbit IHS Playtika Yandex and WorkFusion are among the top tier companies investing much funds in Belarus IT outsourcing Let s now look through the Belarus based product first companies and tech startups Besides many world class companies have been actively investing in Belarus IT outsourcing by acquiring local Belarus based startups Facebook acquired Masquerade for mln in Google bought AI Matter a Belarussian AI startup in Microsoft invested an undisclosed amount into PandaDoc a Belarussian document automation startup in It s worth mentioning that political situation in forced over software developers and over IT companies to relocate to Ukraine and continue their operating activities due to the Internet connection restrictions and an unattractive investment environment Final WordsWe hope our Eastern Europe software development outsourcing overlook will help you get a better understanding of the current market conditions each country s statistics and the reasons of becoming one of the most profitable business practice in If you want to learn more details and statistics check the full blog post Eastern Europe Software Development Outsourcing Overlook in 2021-08-18 07:49:03
海外TECH DEV Community Implementing Machine Learning steps using Regression Model. https://dev.to/phylis/implementing-machine-learning-steps-using-regression-model-4954 Implementing Machine Learning steps using Regression Model From our previous article we looked at the machine learning steps Lets now have a look at how to implement a machine learning model using Python The dataset used is collected from kaggle We will be able to predict the insurance amount for a person We start by importing necessary modules as shown import pandas as pdfrom sklearn preprocessing import LabelEncoderfrom sklearn model selection import train test splitfrom sklearn linear model import LinearRegressionfrom sklearn metrics import accuracy scoreThen import the data data pd read csv insurance csv dataClean the data by removing duplicate values and transform the columns into numerical values to make the easier to work with label LabelEncoder label fit data sex drop duplicates data sex label transform data sex label fit data smoker drop duplicates data smoker label transform data smoker label fit data region drop duplicates data region label transform data region dataThe final dataset is as shown below Using the cleaned dataset now split it into training and test sets X data drop charges axis y data charges X train X test y train y test train test split X y test size random state After splitting the model choose the suitable algorithm In this case we will use Linear Regression since we need to predict a numerical value based on some parameters model LinearRegression model fit X train y train Now predict the testing dataset and find how accurate your predictions are Accuracy score is predicted as follows parameter tuningLets find the hyperparameters which affect various variables in the dataset 2021-08-18 07:24:02
海外TECH DEV Community Ultimate guide to sorting in Javascript and Typescript https://dev.to/maciekgrzybek/ultimate-guide-to-sorting-in-javascript-and-typescript-4al9 Ultimate guide to sorting in Javascript and TypescriptBackground vector created by freepik www freepik comThis post was originally published on Leocode Blog IntroductionSurely in your coder software engineer developer professional keyboard basher career you came across a situation when you had to sort some kind of data or UI elements In most cases it s pretty straightforward but sometimes it can be a real pain In this article I ll try to explain how sorting works in the TypeScript and JavaScript world show you some real life examples and speak briefly about few popular libraries that can make sorting much easier Basic sortingLet s start with the most basic example and sort the array of strings const words Tango Zulu Bravo Lima words sort gt Bravo Lima Tango Zulu That s the simplest way to alphabetically sort an array of strings in ascending order What if we want to sort it from Z to A instead We need to pass a compare function const words Tango Zulu Bravo Lima words sort a b gt if b gt a return if b lt a return return gt Zulu Tango Lima Bravo This might look confusing at first been there but trust me it s actually making a lot of sense when you get it How the compare function worksThe compare function takes two arguments the current element and the next element It has to return a number that will define how the elements have to be sorted The general rule is if you return a number greater than element b will go to the beginning will receive a lower index number than element a if you return a number smaller than element a will go to the beginning will receive a lower index number than b if you return elements will remain at the same positionWith a simple number sorting we can even go a step further and simplify the compare method Ascending orderconst arr arr sort a b gt a b gt Descending orderconst arr arr sort a b gt b a gt Let s analyze the first two array elements comparison in the first example we do which evaluates to meaning element b should be before element a should be before in the second example we do which evaluates to meaning element a should be before element b should be before Then the sort method continues that for other numbers How exactly That depends on the browser As it turns out different browsers are using different algorithms to do that The API and the output are the same but under the hood they are sorting things in a slightly different manner If you want proof try the code below in Firefox and Chrome consoles and look at what s being returned it s not the same const words Tango Zulu Bravo Lima words sort a b gt console log Comparing a to b if b gt a return if b lt a return return If you want to dig even deeper check out this great explanation of different sorting algorithms TIPWorth having in mind sort is a mutable method which means it mutates the original array If you want to create a new array you can spread it and then sort it like this const words Tango Zulu Bravo Lima word sort Sorting with localeCompare methodIn previous examples we simply compared the strings and return the correct value to sort the strings in the array But there s another awesome way to do that plus it gives us additional superpowers I m talking about the localeCompare method What is it you ask Similar to examples before the function will return a number as a result of comparing the strings but it allows us to take the locale into consideration This is especially useful with languages that have special characters as they might have a different position in the alphabet Let s see some examples so it can all make more sense const words Tango Zulu Bravo Lima words sort a b gt a localeCompare b en gt Bravo Lima Tango Zulu Like I ve mentioned before the localeCompare return a numeric value so if a is before b in the alphabet it yields a negative value If b is before a it yields a positive value If they are the same it yields And we already know what does that mean for the sort method from the How the compare function works section But where are the superpowers you ask Let s take a look LocaleIf you are dealing with multiple languages in your app website it s important to pass the locale of the current language when you use sorting as some characters have a different position in the alphabet ö localeCompare z de returns a negative value in German ösorts before z ö localeCompare z sv returns a positive value in Swedish ösorts after z OptionslocaleCompare has also a third argument which is options There are a few of them but I ll show you two in my opinion most needed on a daily basis If you want to read more about them all I highly recommend the MDN and Tech on the net CasingYou can pass a caseFirst property to the options If you set it up as upper it will sort the uppercase words first when they are starting with the same letter If you pass lower it will sort the lowercase ones first const words Tango tango Bravo lima Lima words sort a b gt a localeCompare b en caseFirst upper gt Bravo Lima lima Tango tango words sort a b gt a localeCompare b en caseFirst lower gt Bravo lima Lima tango Tango Numeric valuesLet s say we want to sort the numeric strings if we won t pass the numeric true property they will be treated as strings and sorted like them will go before because is smaller than Check the examples below for a better understanding const words words sort a b gt a localeCompare b en gt words sort a b gt a localeCompare b en numeric true gt Real life examplesWe ve covered the theory which I hope will give you a better understanding of how sorting works now let s focus on real life examples I want to show you a few that will use just the native sort method and also a few that will use external libraries like lodash Let s go Sorting an array of objectsLet s say we have an array of objects each object will represent one dog and we want to alphabetically sort these objects by the breed property Let s see how we can do that Define the interface for our objectsinterface Dog breed string name string const dogs Dog breed German Shepard name Rex breed Spaniel name Marley breed Bulldog name Thanos Sort based on breed property We don t have to explicitly type a and b arguments Typescipt will infer them from the dogs arraydogs sort a b gt if b breed lt a breed return if b breed gt a breed return return gt breed Bulldog name Thanos breed German Shepard name Rex breed Spaniel name Marley As you can see this is very similar to regular string sorting the only difference is that we are comparing specific properties of the objects TIPIt all depends on your preferences and probably your team standards but you can make the sorting function even shorter dogs sort a b gt b breed lt a breed b breed gt a breed Sorting based on different valuesSo we covered that but what if we ll have two bulldogs on our list We can sort them by breed first and then by name const dogs breed German Shepard name Rex breed Spaniel name Marley breed Bulldog name Thanos breed Bulldog name Atreus Fist sort based on breed then if they are the same sort by name propertydogs sort a b gt if b breed lt a breed return if b breed gt a breed return else if b name lt a name return if b name gt a name return return gt breed Bulldog name Atreus breed Bulldog name Thanos breed German Shepard name Rex breed Spaniel name Marley As you can see we just add another branch in here if the compared values are the same we add another else path that handles comparing another property on the object name in this case TIPSometimes your sorting functions might get fairly complicated so it makes sense to extract them to their own methods and pass them to sort Define the interface for our objectsinterface Dog breed string name string It s a good idea to pass the types to arguments otherwise TS will treat them as type of any const sortDogsByBreedAndName a Dog b Dog gt if b breed lt a breed return if b breed gt a breed return else if b name lt a name return if b name gt a name return return dogs sort sortDogsByBreedAndName Sorting based on another arrayGetting back to our beloved dogs imagine we want to sort them by breed but not alphabetically Let s say we have a specific list of breeds that needs to be used as a reference for the sorting logic Take a look below as it might be easier to understand with the code example This array shows the order of sorting the dogs Spaniel should be first and German Shepard should be lastconst breedsOrder Spaniel Pug Bulldog Poodle German Shepard const dogs breed German Shepard name Rex breed Spaniel name Marley breed Bulldog name Thanos breed Pug name Bean breed Poodle name Axel dogs sort a b gt breedsOrder indexOf a breed breedsOrder indexOf b breed gt breed Spaniel name Marley breed Pug name Bean breed Bulldog name Thanos breed Poodle name Axel breed German Shepard name Rex What happened here The array indexOf method returns a number position of the passed argument in the array In this situation if we compare the index of German Shepard and Spaniel we will receive which means that Spaniel should go first in our sorting method External librariesApart from your vanilla JS TS solutions there are lots of external libraries that expose a nice API to makes sorting easier Below I will show you examples from two of them lodash and fast sort lodashLodash is a very popular JavaScript utility library It has all kind of various methods that helps a lot with you daily developer tasks It also lets you use few sorting helper functions sortByThis method allows you to sort arrays of objects The output is exactly the same as in the Sorting based on the different values section before As a first argument you pass the array to sort and the second one is an array of object properties that we want to sort by in the example below sort first by breed then by name if breeds are the same import sortBy from lodash const dogs breed German Shepard name Rex breed Spaniel name Marley breed Bulldog name Thanos breed Bulldog name Atreus sortBy dogs breed name gt breed Bulldog name Atreus breed Bulldog name Thanos breed German Shepard name Rex breed Spaniel name Marley orderByThis method is almost identical to sortBy except that it allows specifying the sort orders of the iterates So if we want to sort by breed in ascending manner but then by name in descending one we can do something like this import orderBy from lodash const dogs breed German Shepard name Rex breed Spaniel name Marley breed Bulldog name Thanos breed Bulldog name Atreus orderBy dogs breed name asc desc gt breed Bulldog name Thanos breed Bulldog name Atreus breed German Shepard name Rex breed Spaniel name Marley fast sortThis is and easy to use and flexible sorting library with TypeScript support It has a little bit different approach than lodash when it comes to the API Let s see how we can solve the same sorting problem as we had before const dogs breed German Shepard name Rex breed Spaniel name Marley breed Bulldog name Thanos breed Bulldog name Atreus Sort ascending by breed then by namesort dogs asc dog gt dog breed dog gt dog name gt breed Bulldog name Atreus breed Bulldog name Thanos breed German Shepard name Rex breed Spaniel name Marley Sort ascending by breed then descending by namesort dogs by asc dog gt dog breed desc dog gt dog name gt breed Bulldog name Thanos breed Bulldog name Atreus breed German Shepard name Rex breed Spaniel name Marley Both of the mentioned libraries have of course much more options and possibilities Also there are plenty of other libraries that solve the same or similar problems just to name a few match sorter sort array or relevancy I encourage you to check their documentation and have a play trust me sometimes they can be a live saver SummaryI hope this article will give you more confidence when it comes to sorting in Javascript and Typescript We went from basics through more complicated examples and finished on external libraries that can take some of the work from our shoulders I think you are now ready to sort it out dad joke level pun intended 2021-08-18 07:22:57
海外TECH DEV Community 20+ Active machine learning and data science communities https://dev.to/joooyz/20-active-machine-learning-and-data-science-communities-21gk Active machine learning and data science communitiesWhether you re a beginner or veteran in machine learning and data science you might be interested in a place to ask questions share projects or join discussions on the latest developments There are many great communities out there for this but it can be difficult to choose which one and some may no longer be active or well maintained To help you I ve compiled an up to date list of active machine learning and data science communities grouped by platform RedditReddit is a powerhouse for many active forums dedicated to all areas across AI machine learning and data science Here s a list r machinelearning M members r datascience K members r learnmachinelearning K members r artificial K members r deeplearning K members r artificialinteligence K members r reinforcementlearning K members If you re just getting started I recommend checking out r learnmachinelearning It s a welcoming community for sharing beginner questions projects and resources they also have a Discord server With over million members r machinelearning will likely be your go to It s more heavily moderated than the other subreddits but you ll be sure to find all the latest important news research papers and discussions here you might even bump into industry veterans like hardmaru DiscordDiscord is an instant messaging platform with private servers that anyone can join using an invite link r learnmachinelearning K members a complimentary server for the subreddit community with dedicated channels for sharing projects asking questions and studying popular MOOC courses together Learn AI together K members the largest Discord community dedicated to AI with a heap of great resources to check out You ll find discussion topics for anything from memes to AGI here Fundamentals of ML K members dedicated to those particularly interested in the theory and math behind ML but also for general ML discussion projects and questions Data Science K members a community of data science professionals and enthusiasts The Data Share K members a community driven server moderated by part of team from Towards Data Science FacebookFacebook groups can be another way to meet others in the field Here s some of the largest and most active groups Data Mining Machine Learning Artificial Intelligence K members an open group for discussing and sharing information across the general areas of data and AI Artificial Intelligence and Machine Learning K members a private beginner friendly group for people to share resources and learnings Global Artificial Intelligence Machine Learning and Deep Learning K members a private group for data scientists investors researchers and corporates to discuss the latest in AI Other platformsKaggle is a well known data science competition platform It boasts a community of over million users where you can compete and share data sets and projects in the form of notebooks ODS AI is another data science competition platform You can apply to join their private Slack community The Machine Learning and Data Science LinkedIn group is a community of professionals interested in the space This includes engineers data scientists recruiters business leaders and more It might be particularly worth checking out if you are looking to network or find a new role ConclusionThere are plenty of great communities out there to check out whether you re a beginner or an industry veteran I ll be keeping this list up to date so if there s something you think is missing please let me know 2021-08-18 07:22:00
医療系 医療介護 CBnews 要介護認定の主治医意見書記入の手引きなど見直し-厚労省 https://www.cbnews.jp/news/entry/20210818115732 厚生労働省 2021-08-18 16:25:00
海外ニュース Japan Times latest articles Japan weather agency issues more rain and disaster warnings as toll rises to eight https://www.japantimes.co.jp/news/2021/08/18/national/rain-earthquake/ hiroshima 2021-08-18 16:08:20
ニュース BBC News - Home UK to work with others to resettle Afghans, Priti Patel says https://www.bbc.co.uk/news/uk-58250211 afghans 2021-08-18 07:47:40
ニュース BBC News - Home Price rises ease amid clothes and shoe discounting https://www.bbc.co.uk/news/uk-58254000 month 2021-08-18 07:47:37
ビジネス ダイヤモンド・オンライン - 新着記事 「レナサイエンス」のIPO情報総まとめ! スケジュールから幹事証券、注目度、銘柄分析、 他の医療ソリューション開発企業との比較や予想まで解説! - IPO株の銘柄分析&予想 https://diamond.jp/articles/-/279891 2021-08-18 17:00:00
GCP Google Cloud Platform Japan 公式ブログ 金融サービスのアジリティとセキュリティの改善に関して、Google Cloud で得られる 8 つの利点 https://cloud.google.com/blog/ja/topics/financial-services/how-google-cloud-vmware-engine-can-help-financial-services-firms/ IDGの調査では、金融サービス企業のビジネスアプリケーションをGoogleCloudVMwareEngineでGoogleCloudに移行することで、レガシーITシステムの技術的な問題に悩まされなくなり、変化を先取りできるようになる、と結論付けられています。 2021-08-18 08:00:00
北海道 北海道新聞 日医工とメディパルが提携 不適切製造で品質管理強化 https://www.hokkaido-np.co.jp/article/579427/ 品質管理 2021-08-18 16:16:00
北海道 北海道新聞 道内595人感染 500人超は5月27日以来 新型コロナ https://www.hokkaido-np.co.jp/article/579424/ 新型コロナウイルス 2021-08-18 16:06:00
北海道 北海道新聞 函館で20人感染 新型コロナ https://www.hokkaido-np.co.jp/article/579423/ 新型コロナウイルス 2021-08-18 16:04:00
ビジネス 東洋経済オンライン タリバン謎の「イメチェン」意図はどこにあるのか 女性の権利認めるという新生タリバンの実態 | 中東 | 東洋経済オンライン https://toyokeizai.net/articles/-/449258?utm_source=rss&utm_medium=http&utm_campaign=link_back 女性の権利 2021-08-18 16:20:00
IT 週刊アスキー イオンに「秋刀魚と舞茸ごはん弁当」など、こだわりの店内炊き“舞茸ごはん”が登場 https://weekly.ascii.jp/elem/000/004/066/4066282/ 炊き込みご飯 2021-08-18 16:45:00
IT 週刊アスキー iClever、最大3台のデバイスを同時接続できるBluetoothキーボード「IC-BK24」 https://weekly.ascii.jp/elem/000/004/066/4066313/ bluetooth 2021-08-18 16:40:00
IT 週刊アスキー 10年ぶりに日本上陸! パシフィコ横浜で「日本国際切手展 2021」が8月25日から8月30日まで開催 https://weekly.ascii.jp/elem/000/004/066/4066305/ 国際切手展 2021-08-18 16:30:00
IT 週刊アスキー ブラックパンサーがやってくる!『Marvel’s Avengers』の新エキスパンション「ワカンダの戦い」が配信開始 https://weekly.ascii.jp/elem/000/004/066/4066310/ marvelsavengers 2021-08-18 16:30:00
IT 週刊アスキー はま寿司「北海道&東北うまいもん祭り」秋刀魚や、大切り銀鮭など旬ネタが登場! https://weekly.ascii.jp/elem/000/004/066/4066311/ 北海道産 2021-08-18 16:15:00
IT 週刊アスキー PC用オンラインゲーム『ブレイドアンドソウル』が根底から新生!最新アップデート「胎動」が9月15日に実施決定 https://weekly.ascii.jp/elem/000/004/066/4066306/ 胎動 2021-08-18 16:10:00
IT 週刊アスキー シヤチハタ、ブロックチェーンを利用した電子印鑑システム「NFT印鑑」を開発 https://weekly.ascii.jp/elem/000/004/066/4066307/ 法律事務所 2021-08-18 16:10:00
マーケティング AdverTimes 自律走行するロボットサイネージ 有楽町マルイに8月24日から https://www.advertimes.com/20210818/article360779/ hospisignage 2021-08-18 07:52:03
マーケティング AdverTimes 10分で完成する「無人直売所」が登場 デザインは佐藤オオキ氏 https://www.advertimes.com/20210818/article360825/ petitmarket 2021-08-18 07:30:02
GCP Cloud Blog JA 金融サービスのアジリティとセキュリティの改善に関して、Google Cloud で得られる 8 つの利点 https://cloud.google.com/blog/ja/topics/financial-services/how-google-cloud-vmware-engine-can-help-financial-services-firms/ IDGの調査では、金融サービス企業のビジネスアプリケーションをGoogleCloudVMwareEngineでGoogleCloudに移行することで、レガシーITシステムの技術的な問題に悩まされなくなり、変化を先取りできるようになる、と結論付けられています。 2021-08-18 08:00:00

コメント

このブログの人気の投稿

投稿時間: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件)