TECH |
Engadget Japanese |
FSDベータ使用のテスラ車、誤動作で事故発生との報告。NHTSAが調査入り |
https://japanese.engadget.com/nhtsa-will-investigate-tesla-collision-blamed-on-fsd-beta-215010874.html
|
fullselfdrivingfsd |
2021-11-14 21:50:10 |
TECH |
Engadget Japanese |
無慈悲な砲弾をブチ込め!パズルアクション『Bazooka Boy』:発掘!スマホゲーム |
https://japanese.engadget.com/bazooka-boy-211047285.html
|
bazookaboy |
2021-11-14 21:10:47 |
Google |
カグア!Google Analytics 活用塾:事例や使い方 |
おすすめビジネス書「無印良品の教え」レビュー。世界ブランドとなった無印良品の仕組みと組織づくりと世界展開が学べる良書です。読後は売り場に行きたくなるビジネス書です。 |
https://www.kagua.biz/review/book/20211115a1.html
|
読後は売り場に行きたくなるビジネス書です。 |
2021-11-14 21:00:27 |
python |
Pythonタグが付けられた新着投稿 - Qiita |
二つのcsvファイルをcolumnsのheaderをキーにして、横に結合する。 |
https://qiita.com/Masarina/items/57ff9fb3279e6a165851
|
とりあえず、今の所はcolumnsを指定して二つのcsvを結合させるというコンパクトなコマンドは存在しないらしいので、ひとまず、これを関数化させて使うことにしました。 |
2021-11-15 06:16:06 |
Program |
[全てのタグ]の新着質問一覧|teratail(テラテイル) |
デジタルマインドマップの描画機能などについて |
https://teratail.com/questions/369323?rss=all
|
確かに、実際にXmindやiMindMapなどのほかのデジタルマインドマップを使ってみて確かにとても軽いというのも実感しました。 |
2021-11-15 06:32:14 |
Azure |
Azureタグが付けられた新着投稿 - Qiita |
Azure AppService もしくは Functions で Site Extensions を作るメモ |
https://qiita.com/TsuyoshiUshio@github/items/751d4922302d7f42a62c
|
この仕組みは、SiteExtensionsという仕組みの上で作成されているのですが、私は、SiteExtensionsの仕組みを知らないので調査をしてみることにしました。 |
2021-11-15 06:28:37 |
海外TECH |
MakeUseOf |
What Is Circular Reference in Excel? Everything You Need to Know |
https://www.makeuseof.com/what-is-circular-reference-excel/
|
circular |
2021-11-14 21:45:22 |
海外TECH |
MakeUseOf |
How to Pay Someone With Apple Pay on Your iPhone |
https://www.makeuseof.com/how-to-pay-someone-with-apple-pay/
|
apple |
2021-11-14 21:30:12 |
海外TECH |
MakeUseOf |
8 Things Clients Look for When Hiring Freelancers |
https://www.makeuseof.com/things-clients-look-hiring-freelancers/
|
freelancerswhether |
2021-11-14 21:15:21 |
海外TECH |
DEV Community |
Electron Adventures: Episode 99: Should You Use Electron? |
https://dev.to/taw/electron-adventures-episode-99-should-you-use-electron-4cek
|
Electron Adventures Episode Should You Use Electron So now that my episode Electron Adventure series is coming to a close I want to spend the final two episodes on a retrospective This episode will be about Electron and the next one about the series itself Idea behind ElectronCross platform GUI development has always been a huge pain Your choices were write the app multiple times once for each platform in multiple different low level languagesuse some cross platform lowest common denominator solution like various Java toolkits that results in an awful experience for everyonejust drop the whole idea and make the app single platformMeanwhile web development was ridiculously easy and ridiculously powerful and it was all cross platform by definition So the whole idea behind Electron was basically screw all that we ll just ship a whole browser with the app And it worked So well that today you d be very hard pressed to name any decent cross platform GUI apps that aren t Electron apps Why is Electron controversial Whenever anyone mentions Electron it instantly triggers haters who absolutely cannot stand the idea of bundling the whole browser The haters are especially bitter because they are losing utterly and they cannot even begin to offer any alternatives The first objection is that it takes too much space This was always a stupid argument and it got even worse as time goes Even the shitty entry level laptops have GB disks these days so if you download Electron apps at MB each not something a typical user does even that s less than of your laptop s disk And this becomes less and less relevant as time goes But really this isn t Electron specific issue The whole software world moved hard to bundle all the things mode The days where an app would just use whatever happened to be installed on a local machine are gone Every app comes with a package lock json or its equivalent specifying exact versions of every single dependency But that goes even further Instead of just bundling some JavaScript libraries with node modules or some browser with Electron more and more apps just bundle a whole Linux distribution with Docker and run that Or they bundle a whole collection of Dockers for different parts of the app with multiple Linux distributions inside Some recent languages like Go basically decided to not even support traditional shared libraries if you use some code you have to bundle it into a single executable Electron deciding to bundle the browser back in was ahead of its times but now this is hardly a controversial decision Everyone bundles everything Web based alternativesOver the series we tried a huge number of alternatives to Electron and found all of them to be pretty bad There s two kinds of alternatives to Electron The first is all the other web based solutions that just don t bundle the browser and use whatever s installed In principle this works as long as the user has a recent version of Chrome or such like with Ferrum But they need to be strict about it and if no Chrome or Chromium is found they need to just tell the user to install it Even that doesn t quite solve the problem Electron bundles two things browser and node Even if we use user s browser we still need to bundle the backend language and none of the languages have easy cross platform bundling story OSX comes with really old versions of Ruby and Python Windows comes with NET Linux comes with whatever each distro decides at least some sort of Python none of them were made with portability in mind It would be great if we could just ship an app in a Docker to the user just like we can with servers but we re not there yet Anyway every alternative we ve tried that used OS bundled HTML view like Safari os whatever Qt has and so on all of them have been a total disaster The web is easy to develop for as it s basically all Chrome or things that try to keep up with Chrome Not having to deal with IE or obsolete Safari or some half working toolkit specific browsers is definitely worth paying for with a MB download Non web alternativesAnother thing we tried were a bunch of non web based alternatives I tried to pick the most promising ones and skip the obvious trash but none of them were acceptable And it s no surprise really Every Java based GUI I ve seen was a barely functioning disaster and Qt based GUIs were not much better Not to mention none of them really solve our problems OK so we don t bundle the browser but is telling user to install Java or install Qt actually better than telling them to install Chrome And as I said before we d still need to somehow install the backend Best choicesI don t think anything can really compete with Electron when it comes to cross platform desktop apps The best Web based alternative would be either just run in the user s browser Jupyter style any of the ask the user to install Chrome solutions Ferrum style I think these could be turned into viable solutions with modest effort Judging only by the quality of GUI programs I ve used I suspect the best of the non Web alternatives would be NET It comes preinstalled with Windows which is otherwise the most painful system to target and it can sort of work on other systems As I was writing the series on a Mac I never tried that but I ve seen others be somewhat successful with it Qt based solutions were mediocre at best and Java based solutions were all an unmitigated disaster How to use ElectronAs I recommend Electron so strongly what do I recommend using with it For the language vanilla JavaScript We ve long been promised ability to use any language for web development but so far none of such promises have been delivered Flavored JavaScript CoffeeScript TypeScript etc don t really offer anything meaningful for their cost For the framework you can t go wrong with Svelte which is the leading rd generation framework There s nothing too wrong with using React which was the leading nd generation framework but React is extremely limited by being based on web capabilities and thinking from the mid IE era and has a big advantage that you re more likely to know it but looking forward Svelte is the way to go I don t think other frameworks really have much to offer that those two don t I really wanted to try Imba with the series but Imba s tooling was really getting in the way of Electron and I was able to fix some of these issues but not all so I ended up dropping the idea I definitely ought to PR those fixes Maybe Imba will be the next Svelte but it s not there now As for Electron due to its origin in attaching browser frontend to node backend with some IPC duct tape many of its architectural choices are really awkward with many concerns being on the wrong side of the frontend backend divide or even worse split between both Fortunately there s a lively ecosystem of npm packages that deal with a lot of that awkwardness around things like managing window positions saving user settings and so on and you should absolutely check if there s a package that solves your problem instead of forcing yourself to use plain Electron alone Coming nextAnd that concludes everything I wanted to say about Electron In the final th episode of the series I ll look back at what it was like to write a episode daily blog post series |
2021-11-14 21:40:38 |
海外TECH |
DEV Community |
Week III Task Force 4.0 |
https://dev.to/placideh/week-iii-task-force-40-o94
|
Week III Task Force Code Can t Lie Hello again now I could say that I am already a Task Force this week was cool and super I have experienced working as a team and the merits from it Basically this is the week that the team Task Force really become one element by this we started working together brainstorming to come up with a great MVP Minimum Viable Product I have also liked the way we started sharing our own personal life experience which was also a great takeaway like Empathy I have loved the Soft skills that I have been introduced to ain t going to lie it was really a valuable sessions As Backend Developers we also have to work and collaborate on Technical skills that s where the team working cooperation and creativity comes to play This week we have worked on ERD Entity relationship diagram mainly we ve designed possible Entities to be used in our project not only that we have created their cardinalities as well as creating their SQL queries throughout SQL I have come to see a json datatype in MySqlThat s made me realize that This Field is all about learning journey The more you learn the more you tend to find you know less but in anyways it is great and super I can t wait to see you the next Week |
2021-11-14 21:24:01 |
海外TECH |
DEV Community |
TypeScript ANY vs UNKNOWN—A Deep Dive |
https://dev.to/tomdohnal/typescript-any-vs-unknown-a-deep-dive-3iem
|
TypeScript ANY vs UNKNOWNーA Deep DiveIn this blog post we ll dive deep into what any and unknown types are what are their similarities and differences and when not to use them You can find a video version of this article on YouTube TLDR ANYconst anyValue any whatever OK in TypeScript error in runtime anyValue do something stupid UNKNOWNconst unknownValue unknown whatever too Fails TypeScript check prevents runtime error unknownValue do something stupid Mnemonics to help you remember the difference any gt first letter is an A gt Avoid TypeScriptunknown gt first letter is a U gt Use TypeScript Table of ContentsThe any TypeThe unknown TypeUse Cases The any TypeThe any type is something like an escape hatch from TypeScript What does that mean If your variable is of type any you can Assign whatever you want to it let anyValue anyanyValue hi how is you anyValue login gt alert password Do whatever you want with it let anyValue any false OK in TypeScript but error in runtime is not a function anyValue toUpperCase OK in TypeScript but error in runtime Cannot read properties of undefined anyValue messages hey Generally speaking using any allows you to use variables without type checking This means that you lose the main benefit TypeScript has to offer preventing runtime errors due to accessing non existing properties You might now wonder why the heck would I even use any if it means giving up type checking altogether Generally speaking you should strive to avoid it To do that I d advise you to Use strict true in your tsconfig json file to disable implicit any typesImplicit any means that if you don t annotate a variable or a function parameter in TypeScript it ll be any by default With strict true the TypeScript compiler will throw an error if you ve got an unannotated variable of type any Use the no explicit any rule in TypeScript ESLint This will give you an ESLint warning whenever you use any However there are some situations where any is helpful We ll cover the main use cases in the final section in depth Nonetheless it can be useful when migrating JavaScript code to TypeScript or when dealing with untyped external libraries Careful Some built in TypeScript types use anyWhen using functions like JSON parse or fetch then res gt res json the type of the result is any by default You can use something like JSON parse as message string to give it a proper type Nonetheless it s useful to know about these as it s very easy to accidentally use any without even knowing about it You can use rules such as no unsafe assingment in TypeScript ESLint to get warnings in such scenarios Why does TypeScript behave in this not type safe manner Well one of the possible explanations is that there was no other way to type these built in JavaScript functions as there was no unknown type that would be better suited for this job Let s have a look at what it does and how it differs from the any type The unknown TypeThe unknown type was added to TypeScript in with its version release Its purpose was to provide a type safe alternative to any From the official docs TypeScript introduces a new top type unknown unknown is the type safe counterpart of any new unknown top type What does that mean As the phrase type safe counterpart of any suggests the unknown type is similar to the any type in some way but different in others namely unlike any it s type safe Let s first examine the similarities You can assign whatever you want to an unknown typeThis works pretty much the same way as the any type let unknownValue unknownunknownValue hey how re you doing unknownValue signUp gt alert email With variables of type any you could do anything with such variables call them access random properties on them etc This is not the case with unknown With unknown TypeScript makes no assumptions about your variables let unknownVariable unknown Error in TypeScript unknownVariable toUpperCase Error in TypeScript unknownVariable how are you today Error in TypeScript const newVariable unknownVariable This is very helpful as it prevents you from accidentally accessing non existent properties treating strings like functions etc You can think of the unknown type as of something liketype unknown string number boolean object null Disclaimer this is not the actual definition of the unknown type It s just a simplified model to give you a better intuition Type narrowing with unknownAs we saw in the code snippet above TypeScript doesn t allow you to do almost anything with the unknown type On one hand it s very useful as it keeps your code type safe and prevents you from the dreaded runtime JavaScript TypeErrors On the other hand it s quite limiting as we d like to be able to manipulate our variables call properties on them etc We ve got options for how to do that Type GuardsWe can use type guards to narrow down the possible types You can use if statements or custom type predicates to do that function logSecretMessage message unknown if typeof message string in this if block we know message is of type string so we can call the toLowerCase method on it console log message toLowerCase else console log message Type Assertions not type safe Alternatively we can always use type assertions This is way easier but we lose the type safety as we use whatever type we want and TypeScript will just trust us that we made no mistake const unknownVariable unknown hello OK unknownVariable as string toUpperCase OK in TypeScript but it fails in runtime unknownVariable as number toFixed Use Cases for any and unknown TypesNow that we ve got understanding of what the any and unknown types mean let s have a look at when not to use each of them The rule of thumb is that any should be avoided since using it makes you lose most of the TypeScript benefits If you don t know what type a certain variable or a function parameter is always prefer unknown With that being said there are some valid use cases for any Migrating to TypeScript from JavaScript any is very useful when migrating JavaScript codebase into TypeScript Let s say you ve got a large JavaScript file which exports many functions and you want to convert it to TypeScript Without using any you d need to type every single function in this file That s a lot of work and you might just be interested in typing one of the exported functions In this case you can use any to quickly type the functions you re not interested in and only give proper types to the one function you re currently working with It might be also useful to create an alias for any such as type TODO any so that you can later come back to your temporarily typed functions and give them proper types auth ts migrating from auth js type TODO any We can just type the signUp functionexport function signUp options email string password string Use TODO to quickly type the resetPassword functionexport function resetPassword options TODO Use TODO to quickly type the logIn functionexport function logIn options TODO Functions with unknown argumentsAs previously stated the unknown type should be preferred when dealing with variables which types we can t determine An example could be a generic logger function function logger message unknown if development console log message else sendMessageToAPI message Had we used any instead we could have accidentally tried to use properties such as toLowerCase wrongly assuming that message is of type string Thus using unknown instead keeps things safe for us |
2021-11-14 21:23:30 |
海外TECH |
Engadget |
Bitcoin's big code upgrade improves privacy and security |
https://www.engadget.com/bitcoin-taproot-privacy-security-code-upgrade-212648233.html?src=rss
|
Bitcoin x s big code upgrade improves privacy and securityBitcoin just received a significant upgrade As The Blocknotes the Bitcoin network rolled out a long in the making quot Taproot quot code upgrade early today November th The update improves both privacy and security for complicated transactions through new signatures that make them look like any other exchange Would be thieves or snoops should have a harder time recognizing when an unusual transfer is taking place The Taproot update should also change the Bitcoin network s scaling by dropping the existing cryptographic system It might be easier for the cryptocurrency to handle demand This is the first major refresh of the network code s since and it might be well timed While there are some objections to Bitcoin and other forms of digital money it now has potential users ranging from AMC through to the country of El Salvador An upgrade could help Bitcoin better accommodate any newcomers not to mention reduce hassles for veteran crypto traders nbsp |
2021-11-14 21:26:48 |
海外科学 |
NYT > Science |
Scientists Fight a New Source of Vaccine Misinformation: Aaron Rodgers |
https://www.nytimes.com/2021/11/08/sports/football/aaron-rodgers-vaccine.html
|
Scientists Fight a New Source of Vaccine Misinformation Aaron RodgersThe Green Bay Packers quarterback one of the most visible athletes in the country last week used anti vaccination rhetoric as his reasoning for not getting vaccinated against Covid |
2021-11-14 21:49:46 |
ニュース |
BBC News - Home |
Liverpool explosion: Three arrested under Terrorism Act after car blast at hospital |
https://www.bbc.co.uk/news/uk-59285235?at_medium=RSS&at_campaign=KARANGA
|
hospital |
2021-11-14 21:09:56 |
ニュース |
BBC News - Home |
COP26: Climate deal sounds the death knell for coal power - PM |
https://www.bbc.co.uk/news/uk-59284505?at_medium=RSS&at_campaign=KARANGA
|
glasgow |
2021-11-14 21:19:03 |
ニュース |
BBC News - Home |
Last-gasp Mitrovic header sends Serbia to World Cup and Portugal into play-offs |
https://www.bbc.co.uk/sport/football/59282726?at_medium=RSS&at_campaign=KARANGA
|
Last gasp Mitrovic header sends Serbia to World Cup and Portugal into play offsFulham striker Aleksandar Mitrovic scores a dramatic late winner as Serbia book their place at next year s World Cup and condemn Portugal to the play offs |
2021-11-14 21:55:22 |
LifeHuck |
ライフハッカー[日本版] |
「やりたいこと」を全部やりたいとき、忘れてはいけないこと |
https://www.lifehacker.jp/2021/11/245886book_to_read-877.html
|
自分 |
2021-11-15 07:00:00 |
ビジネス |
東洋経済オンライン |
寺島実郎が警告「日本は主体的エネルギー戦略を」 エネルギー危機が迫る「根拠なき熱狂」の脱却 | 資源・エネルギー | 東洋経済オンライン |
https://toyokeizai.net/articles/-/468033?utm_source=rss&utm_medium=http&utm_campaign=link_back
|
世界各地 |
2021-11-15 06:30:00 |
海外TECH |
reddit |
Official Post-Game Thread: New England Patriots defeat Cleveland Browns 45 - 7 |
https://www.reddit.com/r/Patriots/comments/qtzdf8/official_postgame_thread_new_england_patriots/
|
Official Post Game Thread New England Patriots defeat Cleveland Browns Week Cleveland Browns at New England Patriots Gillette Stadium in Foxboro MA Box Score Team Final Cleveland Browns New England Patriots Game Thread Notes Discuss whatever you wish You can trash talk but keep it civil If you are experiencing problems with comment sorting in the official reddit app we suggest using a third party client instead Android iOS Turning comment sort to new will help you see the newest comments Try the Tab Auto Refresh browser extension to auto refresh this tab Use reddit stream com to get an autorefreshing version of this page submitted by u arbrown to r Patriots link comments |
2021-11-14 21:01:55 |
ニュース |
THE BRIDGE |
デジタル国際物流「YESBEE」、韓国ブランドのD2C日本進出支援を開始——シリーズBで9.7億円を調達 |
https://thebridge.jp/2021/11/aionco-korea-series-b-round-funding-pickupnews
|
デジタル国際物流「YESBEE」、韓国ブランドのDC日本進出支援を開始ーシリーズBで億円を調達아이오앤코코리아억원규모시리즈B투자유치…일본DC진출デジタル貿易プラットフォーム「YESBEE예스비」を運営するAIONCOKOREA아이오앤코코리아は、シリーズBラウンドで約億ウォン約億円を調達した。 |
2021-11-14 21:15:40 |
コメント
コメントを投稿