投稿時間:2022-04-04 11:20:51 RSSフィード2022-04-04 11:00 分まとめ(22件)

カテゴリー等 サイト名等 記事タイトル・トレンドワード等 リンクURL 頻出ワード・要約等/検索ボリューム 登録日
ROBOT ロボスタ 3DとMR技術で直感的な最先端のロボットティーチングを実現する「RoboLens®」をネクストスケープが開発 その特徴としくみ https://robotstart.info/2022/04/04/robolens-unveil.html 2022-04-04 01:00:48
IT ITmedia 総合記事一覧 [ITmedia ビジネスオンライン] オフィス移転「都市部→郊外」はどれだけ増えたのか? https://www.itmedia.co.jp/business/articles/2204/04/news065.html itmedia 2022-04-04 10:30:00
TECH Techable(テッカブル) “室内たき火”でリラックス。家の中で手軽・安全にたき火が楽しめる「mfire」 https://techable.jp/archives/176428 greenfunding 2022-04-04 01:00:44
AWS AWS Japan Blog ジオフェンスと Amazon Location Service による旅のパワーアップ https://aws.amazon.com/jp/blogs/news/powering-travel-through-geofences-and-amazon-location-service/ このユースケースでジオフェンスがどのように作成され、可視化され、管理されるかについて深く掘り下げて説明します。 2022-04-04 01:38:11
python Pythonタグが付けられた新着投稿 - Qiita ブラマンジェ曲線の面積 https://qiita.com/masa0599/items/035ea4751f99d5ede3bb その定義は以下のようにかなり難しい式で表されるますが、largeTxsumninftyfracsnxnここでlargesxminninZxnWikipediaにもあるように三角波関数を波長・高さを半分にしていき足し合わせることで近似値を得ることが出来ます。 2022-04-04 10:32:08
python Pythonタグが付けられた新着投稿 - Qiita fastAPI入門 https://qiita.com/mossan_hoshi/items/dea5742e46a979601140 動的に値を生成する方法は後述Field検証第章ではAPI関数の引数の型ヒントで文字列長や値の検証を行ったが、モデルフィールドでFieldを使って同様の検証を行う事が可能Fieldで使える検証項目はこちらを参照動的なデフォルト値Fielddefaultfactory関数で指定可能URLやEmailアドレス型pydanticにはEmail文字列型EmailStr、URL文字列型HttpUrlがあり手動でのsyntaxチェック不要継承作ったpydanticモデルを継承し拡張可能カスタムデータ検証フィールドFieldによる簡易検証でなく独自の検証メソッドで検証可能validatorオブジェクトrootvalidatorで受け取った複数の値を使って検証実施可能Pydanticオブジェクト操作インスタンスdictで辞書に変換可能dictinclude含めるフィールド名やdictexclude除外するフィールド名なども可能一部のフィールドのみ送信未送信フィールドは更新しないことも可能詳細省略まとめ本記事のもととなった書籍以外の参考書籍としては、Zennの「fastAPI入門」がいい感じにまとまっていますこの記事で書かれている項目で以外のfastAPIの機能としては「依存性注入章」「テスト機能TestClient章」などがあります。 2022-04-04 10:32:08
python Pythonタグが付けられた新着投稿 - Qiita JuliaからPythonの関数を呼び出す(Docker) https://qiita.com/botanic7arc/items/1f5f5d04b38a040c0d36 JuliaからPythonの関数を呼び出すDockerソースJuliajsamplejlENVPYTHONusrlocalbinpythonimportPkgusingPkgPkgaddPyCallPkgbuildPyCallusingPyCallifPyVectorpyimportsyspathpushfirstPyVectorpyimportsyspathendsamplepyimportpysampletotalsamplesumprintlntotaltotalPythonpysamplepydefsumnumnumreturnnumnumdockercomposeymlversionservicesjuliapythonrestartalwaysbuildcontainernamejuliapythonworkingdirrootttytruevolumessrcrootDockerfileFROMpythonUSERrootRUNaptgetupdateRUNaptgetyinstalllocalesampamplocaledeffUTFijaJPjaJPUTFENVLANGjaJPUTFENVLANGUAGEjaJPjaENVLCALLjaJPUTFENVTZJSTENVTERMxtermRUNpipinstallupgradepipRUNpipinstallupgradesetuptoolsRUNwgetRUNtarzxvfjulialinuxxtargzRUNmvjuliaoptRUNlnsoptjuliabinjuliausrlocalbinjulia環境Dockerが実行できる環境実行cdjuliapythondockercomposeupdbuilddockercomposeexecjuliapythonbashjuliajsamplejl結果totalJuliaからPythonの関数を呼び出すことに成功。 2022-04-04 10:00:41
Docker dockerタグが付けられた新着投稿 - Qiita JuliaからPythonの関数を呼び出す(Docker) https://qiita.com/botanic7arc/items/1f5f5d04b38a040c0d36 JuliaからPythonの関数を呼び出すDockerソースJuliajsamplejlENVPYTHONusrlocalbinpythonimportPkgusingPkgPkgaddPyCallPkgbuildPyCallusingPyCallifPyVectorpyimportsyspathpushfirstPyVectorpyimportsyspathendsamplepyimportpysampletotalsamplesumprintlntotaltotalPythonpysamplepydefsumnumnumreturnnumnumdockercomposeymlversionservicesjuliapythonrestartalwaysbuildcontainernamejuliapythonworkingdirrootttytruevolumessrcrootDockerfileFROMpythonUSERrootRUNaptgetupdateRUNaptgetyinstalllocalesampamplocaledeffUTFijaJPjaJPUTFENVLANGjaJPUTFENVLANGUAGEjaJPjaENVLCALLjaJPUTFENVTZJSTENVTERMxtermRUNpipinstallupgradepipRUNpipinstallupgradesetuptoolsRUNwgetRUNtarzxvfjulialinuxxtargzRUNmvjuliaoptRUNlnsoptjuliabinjuliausrlocalbinjulia環境Dockerが実行できる環境実行cdjuliapythondockercomposeupdbuilddockercomposeexecjuliapythonbashjuliajsamplejl結果totalJuliaからPythonの関数を呼び出すことに成功。 2022-04-04 10:00:41
海外TECH DEV Community qr code to for my front end portfolio https://dev.to/fantasticsadie/qr-code-to-for-my-front-end-portfolio-27ha qr code to for my front end portfolio 2022-04-04 01:38:20
海外TECH DEV Community Building Iterators https://dev.to/dnafication/building-iterators-1ebb Building IteratorsAs programmers one of the very first thing we learn is the loop There is always an array or list or collection which needs to be looped through an object or map or dictionary whose keys and values require traversing Iterations are key programming concept Arrays and Maps are collections of things and it should to be defined explicitly prior to iterating You can start out with an empty array or a declaration and you can push items to it Example const things headphone keyboard mouse const friends tomo nuxt expert jt writes nasty sqls deco the leader van php guru things push cables one of the ways of iterating arraysfor const thing of things console log thing iterate the key of objectsfor const name in friends console log name friends name There are many ways of iterating over an array or an object To name a few for const i i lt arr length i for of MDNfor in MDNwhile MDNArray forEach MDNArray map MDNArray filter MDNArray reduce MDNOne thing about arrays or objects Map Set etc is that you kind of know what you are getting You could push things into an array but you know what you pushed Its not dynamic If something is in array its there for good until you remove it Also its taking up that space in the memory Iterator protocolWhat if you had a dynamic array that calculated what value you get in the next iteration What if that worked based on a formula that you ve built You need to use iterator pattern You ll notice that its very simple to implement Its a protocol that is well known among JS programmers and also followed in other languages too An iterator is an object that has next method Calling next function on the object gives us the iterator result which is an object with two properties done which is a boolean to hold the status of the iterator and value to hold whatever you want to return Let s build a simple range iterator This range iterator will allow us to create a range of numbers by providing a start end and step iterator protocol an agreed interfacefunction numberRangeIterator start end step let index start return next if index gt end return done true value thanks for using me value is optional here but you can use it to return meta info const value index index step return done false value const iterator numberRangeIterator let iteratorResult iterator next while iteratorResult done console log iteratorResult value iteratorResult iterator next You see Its very simple and yet powerful Two things to note the next function should return and object with done true to indicate that there are no more elements But it s not mandatory you can have an iterator that runs forever you can have done false or return just value and above code will just work fine function randomNumberIterator return next return done false value Math random const rIterator randomNumberIterator let rIteratorResult rIterator next while rIteratorResult done console log rIteratorResult value rIteratorResult rIterator next While I cannot think of when you d use the iterator above I just wanted to demonstrate an iterator that can generate random numbers infinitely Iterable protocolIterable protocol goes one step further by defining a standard within JS language for any object to return an iterator An iterable is an object that implements an iterator method called Symbol iterator The best thing about using iterables over the iterator which we talked about above is that it allows us to use JS native apis for looping over the array such as for of Let s build our numberRangeIterator as an iterable class NumberRange constructor start end step this start start this end end this step step for an object class to classify as iterable it has to implement Symbol iterator Symbol iterator let index this start return next gt if index gt this end return done true const value index index this step return value const myRange new NumberRange for const num of myRange console log num It was almost the same amount of code to define the iterable class and we reused most of our code However the beauty is in the way we consume the iterator Using for of makes it look so clean and concise I prefer this over the while loop above But it doesn t stop here There are other ways you can consume this iterable You can use it with spread operator const myRange new NumberRange console log myRange prints Or destructure and assign itconst myRange new NumberRange const first second third myRangeconsole log first second third prints There are other JS built in APIs that accept iterables where you can pass your iterables such as Array from iterable Set iterable Promise all iterable and even stream Readable from iterable Read more about iterators here You can pretty much treat it like your regular array but dynamic in nature and it will calculate your values only when it needs to Things get a bit hairy though when you start getting into the territory of async iterators but that is for another day 2022-04-04 01:36:06
海外TECH DEV Community How To Back Up Files to S3 And Delete Them Using Bash https://dev.to/zerquix18/how-to-back-up-files-to-s3-and-delete-them-using-bash-4i1p How To Back Up Files to S And Delete Them Using BashYou have a situation Your machine is filling up with files could be logs could be important data that you no longer need after sometime and you need to get rid of them You don t want to delete them permanently because you re unsure if you re going to need them in the future Why not back them up to S which is very cheap and at the same time delete them from the local machine bin bashtime in the past week in secondsdirectory bucket name bucket path current time date s while read d file do mtime stat c Y file difference current time mtime if difference gt time in the past then echo Backing up file aws s cp file s bucket name bucket path amp amp unlink file fidone lt lt find directory type f print This script will read the files in a directory check that they re older than a specified time upload them to S and if successfully delete them from the local machine This script assumes you installed and configured the AWS CLI There are variables at the top that control how it will behave time in the past is a week in seconds but you can change this to any value directory is the directory where the backups will happen bucket name The bucket name in which the files will be uploaded a z bucket path The path inside the bucket where the files will be placed You can save this file as cleanup sh and then run it every X amount of time using crontab To open crontab you can runcrontab eThen choose your preferred editor I usually go for nano Then place the crontab line at the end sun path to cleanup shThe sun means every sunday at am You can visualize cron expressions with this amazing tool called cron guru Hope you found this useful If you have any questions I can answer them in the comments 2022-04-04 01:26:54
海外TECH DEV Community Technical Guide To Getting Started in Data Science https://dev.to/mukumbuta/technical-guide-to-getting-started-in-data-science-3map Technical Guide To Getting Started in Data ScienceIn this guide “The Ultimate Guide to Getting Started in Data Science we will explain more about How to get started in Data Science What does a Data Scientist do Data science is the study of how to use advanced analytics and scientific principles to get valuable information from data for business decision making strategic planning and other purposes such as making better business decisions To begin with Data Scientists need data It could be finance healthcare sports government industry research entertainment or software engineering everyone is producing more and more valuable data Data is so valuable to businesses because it tells them what people want or need Besides it tells exactly who likes their product when they re buying it how they re buying it how often they re buying it A data scientist s job is to turn simple raw and unprocessed data into an information gold mine Essentially data scientists take an ugly big pile of messy data and turn it into a polished conclusion that everyone can understand Then they give recommended actions to take based on their conclusions Below is step by step guide on how to get started in data science STEP Learn a Programming LanguageFirst things first if you want to becoming a data scientist you must learn a programming language To help you with choosing a programming language among so many here are a few but useful tips SUPPORTIVE You want to make sure there s a big community for it which you can turn to for advice like on stack exchange POPULAR You want lots of pre written code libraries that you can integrate into your own code like on github This way for example you don t have to understand how to create a graph from scratch you can just select the graph you want and feed in your data EASY You also want a language that s easy to write in so you don t make little mistakes that then result in bugs you may spend hours trying to find This means it s very easy for you and others to review what you ve done FAST You want to be able to write programs fast You want to spend your time analyzing the data not writing code The faster the programming language lets you create prototypes the better POWERFUL You want to have the option to do long and complex tasks that still run fast and that can be easily integrated into other platforms Considering these qualities the most common programming languages used by data scientists are Python and R Some other viable ones are JavaScript C Matlab and SAS Of course if you feel more comfortable using another language by all means do so at the end of the day whatever you re fastest in and most comfortable with is what s best for you So now that you have the skills to make your computer crunch data visualization will set you up to do great analysis and creating comprehensive reports Step Make Graphics Your New Best FriendsVisualizations serve two purposes for a data scientist They let you analyze data more easily They make it much easier to communicate what you ve done with othersVisualizations play a very important role during your analysis because they let you literally see how your data behaves The more you do this the better you ll get at being able to differentiate true information signal against ones that are just produced through chance noise So as a data scientist you ll be creating the visualizations both to help guide your analysis as well as to visualize results Once you ve completed your analysis if you have to create a report or presentation you can then pick out the ones that actually say something valuable So how can you practice creating and reading these types of graphs Matplotlib as an amazing library for Python is the answer and a must know for every aspiring data scientist So I d highly recommend learning to use that to start making visualizations Step Learn How to Analyze DataA good thing to learn alongside of creating and reading the above types of graphs is how to analyze data The only way to properly analyze data is to be able to filter group drop aggregate or manipulate it in other ways Otherwise you won t be able to correctly control and contextualize your analysis or have the ability to zoom in when answering very specific questions Fortunately Python also has an amazing library for data analysis called Pandas that you can just freely download and then use in Python You can probably start to see why I like Python so much As a data scientist you re going to need data That data is usually stored in a database Therefore you ll need to learn how to interact with a database The most common database type you ll encounter is an SQL based database There are very many different databases that are based on SQL such as PostgreSQL Big Query or MySQL SQL databases are also very nice to use because it will speed things up a lot when you start processing formatting or even doing part of your analysis in your query rather than taking out the data and doing all of it afterwards Did you follow the steps above Boom You re a Data Scientist 2022-04-04 01:09:20
海外科学 NYT > Science NASA Stops Launch Rehearsal for Its Giant Moon Rocket https://www.nytimes.com/2022/04/03/science/nasa-moon-sls-rehearsal.html NASA Stops Launch Rehearsal for Its Giant Moon RocketFirst a lightning storm then problems with launch tower fans led to snags with a countdown and propellant loading intended as practice for the rocket s launch 2022-04-04 01:18:08
金融 ニッセイ基礎研究所 医療の質のとらえかた-障害調整生存年 (DALY) で各国の主要疾患をみてみよう https://www.nli-research.co.jp/topics_detail1/id=70719?site=nli 目次ーはじめにー障害調整生存年DALYとはQALYは医療政策の検討にはあまり適していないDALYは医療などの政策目標と整合しやすいDALYは、本来健康な状態で過ごすはずだった人生を、年失ったことを意味DALYに対する批判がなされてきたー主要国のDALYの比較日本は、男女ともヨーロッパ諸国と同様の水準日本は、アメリカやイギリスに比べて、悪性新生物や感覚器障害の影響が大きい日本は、約年間で神経疾患や感覚器障害の影響が増大ーおわりに私見医療の質を確保しながら、効果的に医療政策を推し進めることは簡単ではない。 2022-04-04 10:10:42
ニュース BBC News - Home Partygate: Police issue fines over No 10 gathering on eve of Prince Philip's funeral https://www.bbc.co.uk/news/uk-60978069?at_medium=RSS&at_campaign=KARANGA april 2022-04-04 01:40:09
北海道 北海道新聞 鮮魚店、SNSで来客急増 西胆振 食べ方添え発信、売り上げ2倍も https://www.hokkaido-np.co.jp/article/664963/ 交流サイト 2022-04-04 10:06:06
北海道 北海道新聞 NBA、八村塁2年ぶりの無得点 ウィザーズ敗れる https://www.hokkaido-np.co.jp/article/665073/ 無得点 2022-04-04 10:13:00
北海道 北海道新聞 【道スポ】レバンガ逆転負け 第4Q大量失点 佐古HC「アップアップ」 https://www.hokkaido-np.co.jp/article/665070/ 逆転負け 2022-04-04 10:12:00
北海道 北海道新聞 教皇、広島と長崎の教訓忘れた ロシア念頭に、核使用懸念で警鐘 https://www.hokkaido-np.co.jp/article/665068/ 長崎 2022-04-04 10:02:00
ビジネス プレジデントオンライン 臨床心理士が警鐘「叱らずに、ほめましょう」という風潮に潜む大問題 - 叱る人を叱っても効果はほとんどない https://president.jp/articles/-/56168 公認心理師 2022-04-04 11:00:00
ビジネス プレジデントオンライン 密造ED薬の捜査に激ヤバ刑事が乗り出して!?――『JUMBO MAX』第2巻 第11話 - 「コミック『JUMBO MAX』」 https://president.jp/articles/-/56123 jumbomax 2022-04-04 11:00:00
ビジネス プレジデントオンライン 臨床心理士が警鐘「叱らずに、ほめましょう」という風潮に潜む大問題 - 叱る人を叱っても効果はほとんどない https://president.jp/articles/-/56034 公認心理師 2022-04-04 11: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件)