投稿時間:2021-05-28 22:37:23 RSSフィード2021-05-28 22:00 分まとめ(37件)

カテゴリー等 サイト名等 記事タイトル・トレンドワード等 リンクURL 頻出ワード・要約等/検索ボリューム 登録日
IT 気になる、記になる… 新型「AirPods」は年内、新型「AirPods Pro」は来年発売か https://taisy0.com/2021/05/28/141108.html airpods 2021-05-28 12:46:55
python Pythonタグが付けられた新着投稿 - Qiita 【メモ】scikit-learnのモデル名取得方法 https://qiita.com/DS27/items/05061c2558b9e45fac43 【メモ】scikitlearnのモデル名取得方法製造業出身のデータサイエンティストがお送りする記事今回はメモとして、scikitlearnのモデル名を取得方法を残しておきます。 2021-05-28 22:00:14
js JavaScriptタグが付けられた新着投稿 - Qiita 「クラリネットこわれちゃった」~JavaScriptで文字列"A"を出力したいのにキーボードの「A」キーが壊れて使用できない場合の対処法~ https://qiita.com/KENTAISHIZAKI/items/c1641efc7efaf3a818e7 もしも、キーボードの「A」キーと数値キーが全部壊れちゃったらキーボードで数字を入力することができません。 2021-05-28 21:51:28
js JavaScriptタグが付けられた新着投稿 - Qiita [TS] any型とunknown型の違いについて https://qiita.com/tsukiyama3/items/f364e8ca2ef9185d37de TSany型とunknown型の違いについてはじめにTSで型について学んでいたところ「anyもunknownもなんでも入れられるじゃん」と感じたので、その違いを調べてみました。 2021-05-28 21:18:33
Program [全てのタグ]の新着質問一覧|teratail(テラテイル) 1つの変数にimplodeする。 https://teratail.com/questions/340910?rss=all implode 2021-05-28 21:59:22
Program [全てのタグ]の新着質問一覧|teratail(テラテイル) 【JavaScript】アキネーターのような「正解絞り込みクイズ」を設計したい!(不要な質問を非表示にする方法編) https://teratail.com/questions/340909?rss=all 【JavaScript】アキネーターのような「正解絞り込みクイズ」を設計したい不要な質問を非表示にする方法編正解絞り込みクイズで、尋ねる必要がなくなった質問を非表示にしたい興味があり、プログラミングの入門としてJavaScriptを勉強し始めた初心者です。 2021-05-28 21:52:30
Program [全てのタグ]の新着質問一覧|teratail(テラテイル) Processing ブロック崩しでボールも消したい。 https://teratail.com/questions/340908?rss=all 例Processingでブロック崩しを作成しています。 2021-05-28 21:21:12
Program [全てのタグ]の新着質問一覧|teratail(テラテイル) sqrt関数 → 複素数 https://teratail.com/questions/340907?rss=all error 2021-05-28 21:13:15
Program [全てのタグ]の新着質問一覧|teratail(テラテイル) Java:ArrayListでまとめたインスタンスの中身でソートを行いたい。 https://teratail.com/questions/340906?rss=all JavaArrayListでまとめたインスタンスの中身でソートを行いたい。 2021-05-28 21:01:25
AWS AWSタグが付けられた新着投稿 - Qiita 【AWS】プレイスメントグループを完全に理解する https://qiita.com/mzmz__02/items/8651f578601f3a567fa0 パーティションプレイスメントグループ障害に対応するためのプレイスメントグループで、グループをパーティションと呼ばれる論理的なセグメントに分割する。 2021-05-28 21:33:27
Azure Azureタグが付けられた新着投稿 - Qiita 【超初心者向け】Azure ADとは?簡単な使い方も https://qiita.com/yuya515/items/ffc0338e38f07fb10278 ・業務で使用するクラウドアプリケーションをAzureADと統合してリソースへのアクセス制御をAzureADでまとめて管理できる。 2021-05-28 21:24:43
技術ブログ Developers.IO DMMのデータ活用を支えるビッグデータ基盤・ML基盤のクラウド移行 (CUS-40) #AWSSummit https://dev.classmethod.jp/articles/aws-summit-online-2021-cus-40/ awssummitjapan 2021-05-28 12:07:42
海外TECH Ars Technica Covert channel in Apple’s M1 is mostly harmless, but it sure is interesting https://arstechnica.com/?p=1768316 apple 2021-05-28 12:15:31
海外TECH DEV Community JavaScript Interview Question #43: Object.toString vs Array.toString https://dev.to/coderslang/javascript-interview-question-43-object-tostring-vs-array-tostring-2cim JavaScript Interview Question Object toString vs Array toStringWhat s the difference between Object toString and Array toString in JavaScript What s the output A regular behavior of the JavaScript function Object prototype toString in a browser ーis a string that looks like object TYPE The part TYPE is substituted with the type of the Object that toString is called on In our case it s Array console log toStringObj call arr object Array In the second instance we call toString from Array It s not the same function as it overrides the standard implementation of Object prototype toString Array prototype toString returns a string that consists of all the array elements separated with commas console log toStringArr call arr ANSWER strings will appear on the screen object Array Learn Full Stack JavaScript 2021-05-28 12:49:22
海外TECH DEV Community Linux for Devops Basic Cource https://dev.to/rk7/linux-for-devops-basic-cource-3bkp Linux for Devops Basic CourceHey People Today I want to review a course Linux for Devops by Valexy Technology which you can find out on UDEMY Platform I took this course because I want to learn Devops from scratch and Linux is the base of learning Devops The Course Contain Basic Linux Commands AWS and how to create an Ec Instance from AWS To run Linux on windows use MobaXterm Linux File System Hierarchy Managing Files Read Write Access commandChanging DirectorySearch and Replace a word in LinuxUser Management Login as a User onto EC Instance Changing Permissions Commands chmodChanging Ownership Commands chown file System Management Gather System Information Commands free cpuinfo uname Software Management Installation Packages Commands yum install remove Updating and getting info about packages Commands yum Networking Collect Network info Commands hostname ping wgetTelnetServices Services Commands service status start stop Services commands chkconfig systemctlProcess Management Process Management Commands ps fg bg top Other Topics Archiving files and directories Commands gzip gunzip zip unzip Crontab Softlink and Hardlink Copy files from Windows to Linux Commands scpIf you are new to Linux and want to learn Devops as Scratch then I will recommend you this course as it contains all the required commands and learning which is used in Devops Course 2021-05-28 12:30:35
海外TECH DEV Community Grokking Lenses https://dev.to/choc13/grokking-lenses-2jgp Grokking LensesIn most functional programming languages data structures are immutable by default which is great because immutability eliminates a whole raft of issues from our code freeing our brains up to worry about the higher level problems we re trying to solve One of the drawbacks of immutability is how cumbersome it can be to modify nested data structures In this post we re going to independently discover a better way of updating immutable data and in doing so re invent lenses The scenarioIn this post we ll imagine that we re working with the following data model type Postcode Postcode of stringtype Address HouseNumber string Postcode Postcode type CreditCard Number string Expiry string Cvv string Address Address type User CreditCard CreditCard So a User has a CreditCard which has an Address Now imagine that we ve been asked to write some code that lets a user update their postcode for the address of their credit card Pretty easy right let setCreditCardPostcode postcode user user with CreditCard user CreditCard with Address user CreditCard Address with Postcode postcode Yikes That s not pretty Compare that to the imperative version in something like C public static User SetCreditCardPostcode User user Postcode postcode user CreditCard Address Postcode postcode return user Ok the data model might be mutable and there might be a bit more faff in the method declaration but it s hard to argue with the fact that the actual set operation is much clearer in the imperative style Composing a solution Instinctively what we d like to do is write functions that take care of setting their respective bits of the model and then compose them when we want to set data that is nested inside a larger structure For example let s write some setters for Address CreditCard and User in their respective modules module Address let setPostcode postcode address address with Postcode postcode module CreditCard let setAddress address card card with Address address module User let setCreditCard card user user with CreditCard card I ve omitted writing setters for every single property for brevity These functions are nice because they re very focused on a singular piece of the data model Ideally to write setCreditCardPostcode we d be able to compose these individual functions to create a new function that can update the postcode inside a user s credit card Something like this let setCreditCardPostcode Postcode gt User gt User Address setPostcode gt gt CreditCard setAddress gt gt User setCreditCardAside gt gt is the function composition operator so that f gt gt g is equivalent to fun x gt x gt f gt g More concretely if we had let addOne x x then we could write let addTwo addOne gt gt addOne But it s not going to compile The problem is that Address setPostcode has the signature Postcode gt Address gt Address and CreditCard setAddress has the signature Address gt CreditCard gt CreditCard So when we write Address setPostcode gt gt CreditCard setAddress then the output of Address setPostcode which is Address gt Address does not match the input to CreditCard setAddress which is just Address Aligning the typesOur first attempt whilst not quite right is pretty close The types nearly line up Let s see if we can align the types so that the output of one setter can feed straight in to the input of the next one If we look again at the output from Address setPostcode postcode then we see it s a function whose signature is Address gt Address That is when we partially apply a postcode to setPostcode it creates a function that can transform an address by setting the Postcode property to the value we partially applied So how about if we change the input of CreditCard setAddress to take an address transformation function rather than just a new address value In fact there s nothing special about CreditCard setAddress so let s make this change for all of our setters module Address let setPostcode transformer Postcode gt Postcode address address with Postcode address Postcode gt transformer module CreditCard let setAddress transformer Address gt Address card card with Address card Address gt transformer module User let setCreditCard transformer CreditCard gt CreditCard user user with CreditCard user CreditCard gt transformer You might feel like this is a hack in order to make composition work but what we ve actually done is made a much more powerful setter function Each setter is now capable of taking any transformation function which it applies to the current value and then returns a new version of the data with this modification If we think about it setting a property is just a special case of this more general transformation where we ignore the existing value What we ve actually created here are more like property modifiers than just setters Each modifier has the signature child gt child gt parent gt parent which means given a function that can modify some child property then I ll return you a function that updates the parent type So let s rename them to modifyX instead and see if we can now create setCreditCardPostcode in the composition style that we wanted let setCreditCardPostcode Postcode gt User gt User Address modifyPostcode gt gt CreditCard modifyAddress gt gt User modifyCreditCardHmmm it s still not quite right The type of setCreditCardPostcode is actually Postcode gt Postcode gt User gt User which in hindsight is obvious because all we ve done is compose modifiers not setters So we ve actually just created a new modifier here that lets us modify the postcode property of the user s credit card In order to do a set operation we just apply the transformation that does the set to the modifier let setCreditCardPostcode postcode Postcode User gt User Address modifyPostcode gt gt CreditCard modifyAddress gt gt User modifyCreditCard fun gt postcode So we compose our modifiers and then partially apply it with a transformer that just ignores the input and sets the value to the supplied postcode If you ve followed up to this point then you ve grokked the core principles which is that if we have modifier functions that know how to update their one piece of the model then we can chain them together to build modifiers that operate across many nested layers of a larger data structure Everything that follows from now will be just tidying this up and extracting the generic parts Generic property modifiersIt should be clear from the last implementation of setCreditCardPostcode that in order to set a nested property we do two things Compose the necessary property modifiers to create one that can operates across many layers of a nested data structure Apply a transformation function that ignores the current value and just returns the new value that we want to set the property to Given that all of our property modifiers are of the form child gt child gt parent gt parent we should be able to write a set function that works for any modifier It s really simple and just looks like this let set modifier value child parent parent modifier fun gt value parentWe can even define the modifyCreditCardPostcode in the User module module User let modifyCreditCardPostcode Address modifyPostcode gt gt CreditCard modifyAddress gt gt modifyCreditCardAnd then use it whenever we want to set a new value as in user gt set User modifyCreditCard A POSTCODE and we could also use it to transform a Postcode as in user gt User modifyCreditCardPostcode fun Postcode postcode gt postcode gt String toUpper gt PostCode That s a nice separation of concerns Combing getters and settersWe might be tempted to stop here and for the purposes of our initial problem regarding awkward data updates we ve achieved our goal but it would be nice if we could make this concept of property modifiers even more universal In particular if we could combine the closely related acts of getting and setting a property in a single function If we look at Address modifyPostcode again we ll see that it contains a get operation for the Postcode property module Address let modifyPostcode transformer Postcode gt Postcode address address with Postcode address Postcode gt transformer getting here It s possible to rearrange this slightly and put the get first and pipe it in to a function that does the setting let modifyPostcode transformer address address Postcode gt transformer gt fun postcode gt address with Postcode postcode It s now clear to see that our modifiers perform the following operations Get the child data Transform the child data Update the parent with the transformed child value So if we could somehow find a way to skip the final step then we d have ourselves a getter The only thing we can do to affect the behaviour of modifyPostcode though is to provide a different transformer Unfortunately try as we might there s no function we can supply here that will stop the final setter step from also running One trick we can do though is to make the transformer return a functor see Grokking Functors if you need a recap If we do this then in order to then call the final setter step we need to map it so that we can apply this setter to the contents of the functor we returned from the transformer So for example modifyCodeProperty would look like this let modifyPostcode transformer Postcode gt Functor lt Postcode gt address address Postcode gt transformer Everything s the same until the final line where we call map gt map fun postcode gt address with Postcode postcode You might still be wondering how that lets us avoid calling the final setter step Well we can now exploit the map function to change the behaviour of modifyPostcode If we remember how functors work then map is defined on a per functor basis so by returning different functors from the transformer we can get different mapping behaviours at the end What we need then is a functor whose map instance just ignores the function being applied to it One that just returns its input without transforming it Fortunately for us such a functor already exists called Const and it s defined like this type Const lt Value Ignored gt Const of Value static member inline Map Const x Const xMap for Const just returns the input x With that we re in a position to write a generic get function that will extract the child value from any of our modifiers let inline get modifier parent let Const value modifier Const parent valueWhat about our set function Which functor should we return from the transformer in there Well we need one that just runs the function without modification and that happens to also be a well known functor that goes by the name of Identity Identity is defined like this type Identity lt t gt Identity of t static member inline Map Identity x f Identity f x It s map instance just calls the function f on the input x and wraps the result back up in another Identity constructor People often wonder why we d need such a boring functor but it comes in handy in these situations With that set only requires a slight modification from before let inline set modifier value parent let Identity modifiedParent modifier fun gt Identity value parent modifiedParent Putting it all together We ve made quite a few changes to things now so let s see it all together We ll start with the signature that a modifier must have then show the get and set functions that work for any such modifier and finally show how we can use them to solve our original problem Modifier signature notice how the output is completely generic now which supports both our get and set use cases child gt Functor lt child gt gt parent gt a let inline get modifier parent let Const child modifier Const parent childlet inline set modifier value parent let Identity modifiedParent modifier fun gt Identity value parent modifiedParentmodule Address let modifyPostcode transformer Postcode gt Functor lt Postcode gt address address Postcode gt transformer gt map fun postcode gt address with Postcode postcode module CreditCard let modifyAddress transformer Address gt Functor lt Address gt card card Address gt transformer gt map fun address gt card with Address address module User let modifyCreditCard transformer CreditCard gt Functor lt CreditCard gt card user CreditCard gt transformer gt map fun card gt user with CreditCard card let setCreditCardPostcode postcode user user gt set User modifyCreditCard lt lt CreditCard modifyAddress lt lt Address modifyPostcode postcodelet getCreditCardPostcode user user gt get User modifyCreditCard lt lt CreditCard modifyAddress lt lt Address modifyPostcode Our code is now very close to an imperative style setter In fact by reversing the composition operator from gt gt to lt lt and switching the order of the modifiers we ve even been able to order the property access in the same way that an imperative programmer would be familiar with from the outermost to the innermost property Using lt lt is often frowned upon in general because it can be confusing so use it at your own judgement You just discovered Lenses These things we ve been calling modifiers well they re better known as lenses Lenses are a better name for them because they re not actually doing any modification they re just composable functions that focus on a specific part of a data structure We can define functions like get typically called view and set usually called setl for set lens that let us read or write the value that any lens points to because the structure of a lens is completely generic There are also many more things that we can do with lenses which is part of a broader topic called optics which we haven t covered here For instance we can easily work with data that might be missing or focus our lens on specific parts of every element in a list Lenses are also about more than just composable getters and setters They also provide an abstraction barrier for our code If we access data through a lens rather than directly it means that if we later refactor a data structure we only have to modify the lens and the rest of the code will remain unaffected Lenses in the wild There are a few lens conventions that are probably worth pointing out at this stage as it s how you ll likely see them written in the wild This is all just syntactic sugar on top of what we ve already discovered such as things like special operators which just make them a bit more pleasant to write Below is the same example from above but written using the FSharpPlus lens library r nuget FSharpPlus open FSharpPlus Lens lt bring the lens operators in to scopemodule Address Lenses are usually named with a leading underscore let inline postcode f address f address Postcode lt amp gt fun postcode gt address with Postcode postcode module CreditCard We also usually just name after the property they point to let inline address f card f card Address lt amp gt fun address gt card with Address address module User The lt amp gt is just an infix version of map let inline creditCard f user f user CreditCard lt amp gt fun card gt user with CreditCard card let setCreditCardPostcode postcode user We can use the gt as an infix version of setl user gt User creditCard lt lt CreditCard address lt lt Address postcode gt postcodelet getCreditCardPostcode user We can use the operator as an infix version of view user User creditCard lt lt CreditCard address lt lt Address postcode A few things to point out here Typically lenses are named like propertyName What we used to call transformer we often just denote as f Instead of writing map it s common to write the lens using the lt amp gt operator This is just a flipped infix version of map and it lets us create the lens from a getter to the left of the operator and a setter to the right of the operator We can use the gt operator as an infix version of setl which gives us an even more imperative style looking setter We can also use instead of view to get the value which is a kind of analogous to the operator in OOP What did we learn ‍Lenses allow us to write property accessors which we can compose to focus on different parts of a large data model We can then pass them to functions like view or setl to actually view the data or set it Lenses are also a great abstraction barrier that we can use to decouple our code from the specifics of our data models current structure They also allow us do other useful transformations which we haven t gone into here Lenses and the broader topic of optics is a large one but with this intro you should find it much easier to explore what else they have to offer 2021-05-28 12:09:52
Apple AppleInsider - Frontpage News Apple's Lisa Jackson sees 'economic opportunity' in Clean Energy Standard https://appleinsider.com/articles/21/05/28/apples-lisa-jackson-sees-economic-opportunity-in-clean-energy-standard?utm_medium=rss Apple x s Lisa Jackson sees x economic opportunity x in Clean Energy StandardApple s Lisa Jackson believes that a shift to the Clean Energy Standard will benefit everyone despite how the move troubles people who are worried for their current jobs Lisa Jackson Apple Vice President Environment Policy and Social InitiativesLisa Jackson Apple Vice President Environment Policy and Social Initiatives has reaffirmed Apple s stance on renewable clean energy Speaking at the Department of Energy s Advanced Research Projects Agency Energy ARPA E summit she backed the plan for a US wide approach Read more 2021-05-28 12:59:33
Apple AppleInsider - Frontpage News Apple TV+ bilingual drama 'Now and Then' sets its cast https://appleinsider.com/articles/21/05/28/apple-tv-bilingual-drama-now-and-then-sets-its-cast?utm_medium=rss Apple TV bilingual drama x Now and Then x sets its castThe new Apple TV thriller Now and Then will feature Rosie Perez Soledad Vilamil Marina de Tavira and more Now and Then sets its castApple ordered a full series run of Now and Then in April and now it seems production has moved to casting The show will use an all Hispanic cast for the bilingual thriller Read more 2021-05-28 12:51:02
海外TECH Engadget Amazon knocks $50 off Apple's latest 11-inch iPad Pro https://www.engadget.com/ipad-pro-11-inch-2021-deal-50-off-amazon-walmart-124510200.html?src=rss_b2c amazon 2021-05-28 12:45:10
海外TECH Engadget Engadget Podcast: Why did Amazon buy MGM? https://www.engadget.com/engadget-podcast-amazon-buys-mgm-123029339.html?src=rss_b2c engadget 2021-05-28 12:30:29
Cisco Cisco Blog Cyber Hygiene: An ounce of prevention is worth a pound of incident response https://blogs.cisco.com/security/cyber-hygiene-an-ounce-of-prevention-is-worth-a-pound-of-incident-response Cyber Hygiene An ounce of prevention is worth a pound of incident responseIn cybersecurity good hygiene can improve outcomes and reduce costs Learn what s needed to adequately protect assets and your business 2021-05-28 12:30:41
Cisco Cisco Blog Service Provider Digital Initiatives Drive Sustainable Business Value https://blogs.cisco.com/sp/service-provider-digital-initiatives-drive-sustainable-business-value Service Provider Digital Initiatives Drive Sustainable Business ValueIDC survey results revealed that Pioneer SPs experienced the most significant business performance gains They not only reported improved operational metrics such as reduced costs and process cycle times but importantly also reported improvements in key business outcomes such as revenue profitability customer satisfaction and customer retention 2021-05-28 12:00:48
金融 金融庁ホームページ 犯罪収益移転防止法におけるオンラインで完結可能な本人確認方法に関する金融機関向けQ&Aを公表しました。 https://www.fsa.go.jp/common/law/guide/kakunin-qa.html 本人確認 2021-05-28 14:00:00
ニュース BBC News - Home Fishmongers' Hall: Graduates were unlawfully killed by terrorist https://www.bbc.co.uk/news/uk-england-london-57260509 usman 2021-05-28 12:48:05
ニュース BBC News - Home Janssen single-dose Covid vaccine approved by UK https://www.bbc.co.uk/news/health-57283837 covid 2021-05-28 12:40:37
ニュース BBC News - Home Covid in Scotland: Glasgow to remain in level three lockdown https://www.bbc.co.uk/news/uk-scotland-57282902 covid 2021-05-28 12:08:38
ニュース BBC News - Home Belarus plane: Russia accuses EU of risking passenger safety https://www.bbc.co.uk/news/world-europe-57279482 dissident 2021-05-28 12:26:38
ニュース BBC News - Home Liverpool agree £35m deal for French defender Konate https://www.bbc.co.uk/sport/football/57242659 central 2021-05-28 12:37:52
北海道 北海道新聞 自動車ナンバー、新図柄に5案 都道府県の花、葛飾北斎も https://www.hokkaido-np.co.jp/article/549249/ 国土交通省 2021-05-28 21:14:00
北海道 北海道新聞 中国、三星堆遺跡の発掘現場公開 国威発揚狙いか https://www.hokkaido-np.co.jp/article/549248/ 中国政府 2021-05-28 21:14:00
北海道 北海道新聞 赤いツツジ鮮やか 広尾・大丸山森林公園で満開 https://www.hokkaido-np.co.jp/article/549245/ 森林公園 2021-05-28 21:09:00
北海道 北海道新聞 五輪観客、緊急宣言解除後に判断 橋本会長「政府基準沿う」 https://www.hokkaido-np.co.jp/article/549241/ 東京五輪 2021-05-28 21:03:00
仮想通貨 BITPRESS(ビットプレス) DMM Bitcoin、6/30まで「マーケットレポート連動企画!スプレッド縮小キャンペーン」実施 https://bitpress.jp/count2/3_14_12527 dmmbitcoin 2021-05-28 21:58:25
仮想通貨 BITPRESS(ビットプレス) [CoinDesk Japan] ビットコイン、ESG懸念で機関投資家の参入が一時的に減速か https://bitpress.jp/count2/3_9_12526 coindeskjapan 2021-05-28 21:43:36
仮想通貨 BITPRESS(ビットプレス) 【金融庁による行政処分&警告】暗号資産交換業者に対する行政処分一覧&無登録業者警告まとめ https://bitpress.jp/count2/3_8_8147 【金融庁による行政処分警告】暗号資産交換業者に対する行政処分一覧無登録業者警告まとめ年月に施行された「改正資金決済法いわゆる仮想通貨法」以降の、国内における「仮想通貨交換事業者みなし業者含む」に対する行政処分情報をまとめていきます。 2021-05-28 21:33:20
仮想通貨 BITPRESS(ビットプレス) 金融庁、Bybit Fintech Limitedに対する警告書の発出について https://bitpress.jp/count2/3_17_12525 bybitfintechlimited 2021-05-28 21:28:24
仮想通貨 BITPRESS(ビットプレス) TaoTao、レバレッジ手数料のお渡しについて(マイナス料率の導入、6/1より) https://bitpress.jp/count2/3_10_12524 taotao 2021-05-28 21:19:27

コメント

このブログの人気の投稿

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