IT |
気になる、記になる… |
「Microsoft Edge」のサーフィンゲームがAndroidでもプレイ可能に − まずはCanary版から |
https://taisy0.com/2021/09/07/144964.html
|
android |
2021-09-06 17:54:49 |
Program |
[全てのタグ]の新着質問一覧|teratail(テラテイル) |
CNN画像のサイズについて |
https://teratail.com/questions/358100?rss=all
|
画像 |
2021-09-07 02:56:17 |
Program |
[全てのタグ]の新着質問一覧|teratail(テラテイル) |
Unity_名前が同じなのに何回やってもスクリプトが追加できない |
https://teratail.com/questions/358099?rss=all
|
Unity名前が同じなのに何回やってもスクリプトが追加できない前提・実現したいことここに質問の内容を詳しく書いてください。 |
2021-09-07 02:48:48 |
Program |
[全てのタグ]の新着質問一覧|teratail(テラテイル) |
ifrmeで埋め込んだvimeo動画をクリック(タップ)した時に音声をオン/オフ切り替えたい |
https://teratail.com/questions/358098?rss=all
|
STUDIOというノーコードデザインツールで、ifrmeで埋め込んだvimeo動画を埋め込んでおり、クリックタップした時に音声をオンオフ切り替えたいのですが、iframのパラメータ設定で解決できるのでしょうか。 |
2021-09-07 02:44:32 |
AWS |
AWSタグが付けられた新着投稿 - Qiita |
zabbixによるプロセス監視 |
https://qiita.com/instant_baby/items/6e3d39992d33737bc4f4
|
zabbixによるプロセス監視バージョンは系今回のポイント対象環境のECインスタンスについて、特定プロセス監視の追加。 |
2021-09-07 02:16:47 |
AWS |
AWSタグが付けられた新着投稿 - Qiita |
zabbixによるURL監視の備忘録 |
https://qiita.com/instant_baby/items/22feffe97eb32d6060e5
|
zabbixによるURL監視の備忘録zabbix触り始めて割と最初の頃に躓いた時のメモバージョンは系対象はALB配下のwebサーバーHosts作成のあれこれzabbixweb上での設定Agentinterfacesは厄介ELB配下のURLについてはDNS設定が出来ない当然ELBいるからgtというそもそもコンテナで稼働しているzabbixサーバーはportをlistenしているgtELBでそんなport開いてるわけ無いでしょgtしかしuseragentを設定しないわけにも行かないので自分のローカルIPを設定すれば結果的におkIPを選択して、port※zabbixサーバー自身のローカルを指定してるELB配下じゃなかったら監視対象のDNSを指定したい所Groupsは監視対象次第ECとかRDSとかで適宜VisibleNameはそのまんまhost名になるので、パット見でわかりやすい名前や、既存の設定に合わせて命名しましょう。 |
2021-09-07 02:04:31 |
Ruby |
Railsタグが付けられた新着投稿 - Qiita |
rails g controller 実行時にDeprecation Warningになった。その対処法。 |
https://qiita.com/kyokucho1989/items/578c1bb88a1e7e2ec0b8
|
初めてジェネレータを作成するRailsガイドRails以降のジェネレータはThorの上に構築されています。 |
2021-09-07 02:18:33 |
海外TECH |
DEV Community |
Mom, I programmed my first HELLO WORLD🌟 |
https://dev.to/antoomartini/mom-i-programmed-my-first-hello-world-8h
|
Mom I programmed my first HELLO WORLDSometimes it s good to remember the happiness we felt at the beginning of our journey Do you remember Almost like a welcoming ritual the first program we learn to code in any language is the famous Hello world When you re not expecting it that day comes you re sitting in front of a computer ️We hear the sound of the keys and for the first time we type a line of code On the screen we see the dreamy Hello World It greets us and celebrates our first grain of sand in this world Our first grain of bits It s the beginning It makes us feel powerful As if we have the ability to do even the impossible Welcome to the world of programming ️Sometimes developing becomes frustrating It makes me angry it makes me sick it makes me ill Sometimes it makes me feel like I can t do it That s why it s good to go back to feeling like that little person who was discovering everything for the first time My first Hello World was in C Pure magic How happy I was Do you remember in which language was your first Hello World Tell me |
2021-09-06 17:38:26 |
海外TECH |
DEV Community |
Reduce your Redux boilerplate |
https://dev.to/gonzastoll/reduce-your-redux-boilerplate-17ia
|
Reduce your Redux boilerplatePlease note This article assumes prior knowledge of how React works how Redux works and how the two combined work Actions reducers store all that jazz I m with you on this one…creating aaall the boilerplate that s necessary to setup your Redux store is a pain in the It gets even worse if you have a huge store to configure which might be the sole reason why you decide to use Redux in the first place Over time your store configuration can grow exponentially So let s cut right to the chase A Frontend architect yeah he knows stuff recently taught me a good way to reduce your boilerplate considerably And it goes like this StoreLet s pretend that in some part of our application we have a form where the user has to fill up some configuration data click a button and then generate a kind of report of sorts For that let s consider the following store store state jsexport const INITIAL STATE firstName lastName startDate endDate ActionsNow the general convention will tell you ok let s create an action for each state entity to update it accordingly That ll lead you to do something like store actions jsexport const UPDATE FIRST NAME UPDATE FIRST NAME export const UPDATE LAST NAME UPDATE LAST NAME export const UPDATE START DATE UPDATE START DATE export const UPDATE END DATE UPDATE END DATE export const actions updateFirstName payload return type UPDATE FIRST NAME payload updateLastName payload return type UPDATE LAST NAME payload updateStartDate payload return type UPDATE START DATE payload updateEndDate payload return type UPDATE END DATE payload You can see the boilerplate growing right Imagine having to add more fields to the store ReducerThat takes us to the reducer which in this case will end up something like store reducer jsimport as actions from actions import INITIAL STATE from state export default function reducer state INITIAL STATE action switch action type case actions UPDATE FIRST NAME return state firstName action payload case actions UPDATE LAST NAME return state lastName action payload case actions UPDATE START DATE return state startDate action payload case actions UPDATE END DATE return state endDate action payload default return state DispatchSo now that we have our fully boilerplated store in place we ll have to be react accordingly and dispatch actions whenever it s needed That ll look somewhat similar to components MyComponent jsimport actions from store actions export default function MyComponent const firstNameChangeHandler value gt dispatch actions updateFirstName value const lastNameChangeHandler value gt dispatch actions updateLastName value const startDateChangeHandler value gt dispatch actions updateStartDate value const endDateChangeHandler value gt dispatch actions updateEndDate value The solutionWe can reduce considerably our boilerplate by creating only one action that takes care of updating the entire store Thus reducing the amount of actions and consequently the size of the reducer How you may ask By sending the entire updated entity as a payload and then spreading it into the state Confused Let s break it down ActionAs mentioned before only one action will be responsible for targeting the state store state jsexport const UPDATE STORE UPDATE STORE export const actions updateStore entity return type UPDATE STORE payload entity entity in this case makes reference to any entity located in the state So in our case that could be firstName lastName startDate or endDate We ll receive that entity with its corresponding updated value and spread it in the state ReducerAs stated before only one case will be fired This case handles the updating of the state store reducer jsimport UPDATE STORE from actions import INITIAL STATE from state export default function reducer state INITIAL STATE action switch action type case UPDATE STORE const entity action payload return state entity default return state DispatchAnd finally only one event handler with a single dispatch function components MyComponent jsimport actions from store actions export default function MyComponent This will in turn be used as onClick event gt onChangeHandler firstName event target value const onChangeHandler entity value gt dispatch actions updateStore entity value And with that you ve successfully created a store with A LOT less boilerplate thus incrementing your productivity to focus on more important things and functionalities Are you a TypeScript fan as I am Then continue reading TypeScript bonus Let s try to puppy up this store with some TS support We all know why TS is important It ll force you to write better code makes it easy to debug by providing a richer environment for spotting common errors as you type the code instead of getting the ugly error on screen leading you to a thorough investigation of where the most of the times minor problem was So with that said let s get to it StoreIf all the values are going to be empty strings by default then we better just add them as optionals undefined and only set the values on change store state tsexport interface State firstName string lastName string startDate string endDate string const INITIAL STATE State ActionsWe can make use of the Partial utility type that TypeScript provides It basically constructs a type with all the properties fed to it set to optional This is precisely what we need given that we ll use them conditionally So create a types ts file where we ll define all our actions blueprints In our case we only have the one action but that can change with time with bigger states store types tsimport State from state interface UpdateStore type store UPDATE payload entity Partial lt State gt export type ActionType UpdateStore union type for future actionsThis file will export a Union Type constructed by all the action blueprints we ve already set Again in our case we only have one action but that can change with time and end up with something like export type ActionType UpdateStore UpdateAcme UpdateFoo Back to the action creators we ll again make use of the Partial utility type store actions tsimport ActionType from types import State from state export const actions updateStore entity Partial lt State gt ActionType return type store UPDATE payload entity ReducerWe ll make use of the newly created Union Type containing all of our action blueprints It s a good idea to give the reducer a return type of the State type to avoid cases where you stray from the state design store reducer tsimport ActionType from types import INITIAL STATE State from state export default function reducer state INITIAL STATE action ActionType State switch action type case store UPDATE const entity action payload return state entity default return state DispatchAnd finally our component is ready to use all this autocompletion beauty we ve already set components MyComponent tsximport actions from store actions import State from store state export default function MyComponent const onChangeHandler lt P extends keyof State gt entity P value State P gt dispatch actions updateStore entity value Now you have a fully flexible store where you can add all the properties it requires without worrying about adding actions and reducer cases I sincerely hope this helps the same way it helped me Thank you for reading |
2021-09-06 17:27:15 |
Apple |
AppleInsider - Frontpage News |
How to report an accident, hazard, or speed check in Apple Maps for iOS 14.5 |
https://appleinsider.com/articles/21/04/28/how-to-report-an-accident-hazard-or-speed-check-in-apple-maps-for-ios-145?utm_medium=rss
|
How to report an accident hazard or speed check in Apple Maps for iOS When using iOS or later Apple Maps lets users report road hazards accidents or speed checks and here s how Report speed traps crashes and hazardsApple has been adding features to Apple Maps that bring it on par with offerings from Google though with more privacy in mind One popular feature Google inherited from its purchase of Waze was the ability to see crowdsourced traffic reports about accidents or police stops Read more |
2021-09-06 17:29:27 |
Apple |
AppleInsider - Frontpage News |
'iPhone 13' A15 chip performance continues dominance over Android rivals |
https://appleinsider.com/articles/21/09/06/iphone-13-a15-chip-performance-continues-dominance-over-android-rivals?utm_medium=rss
|
x iPhone x A chip performance continues dominance over Android rivalsA benchmark on what is said to be the GPU in Apple s A chip destined for the iPhone is faster than the A maintaining Apple s lead in mobile performance A benchmark shows faster GPUA Manhattan GPU benchmark test reportedly shows Apple s A chip hitting FPS during the first round of testing However the second round isn t as impressive with a score of about FPS to FPS Read more |
2021-09-06 17:51:35 |
海外TECH |
Engadget |
'Microsoft Flight Simulator' Top Gun expansion delayed to May 2022 |
https://www.engadget.com/microsoft-flight-simulator-top-gun-maverick-expansion-delayed-173042478.html?src=rss
|
x Microsoft Flight Simulator x Top Gun expansion delayed to May After a number of delays Top Gun Maverick was supposed to finally arrive in theaters in November Not so Paramount has pushed back the release date once again and the long awaited sequel is now set to arrive another six months later on May th due to COVID and delta variant concerns The decision has also affected the planned Top Gun expansion for Microsoft Flight Simulator as Asobo Studio has delayed that too quot Paramount Pictures recently shifted the release date of Top Gun Maverick to Memorial Day weekend May quot the studio wrote in a brief blog post quot As we have previously announced the Top Gun Maverick expansion for Microsoft Flight Simulator for Windows PC Steam Xbox Series X S and Xbox Game Pass will be released alongside the movie We look forward to sharing more information in the future quot The news might be disappointing to those who were looking forward to darting around the virtual skies in Maverick s jet over the Thanksgiving holiday Still given the marketing synergy between the expansion and the movie it s not too surprising that Asobo made this call The studio hasn t revealed too much about what the free expansion will entail An announcement teaser showed off fighter jets and an aircraft carrier so you might be able to take off from and land at sea |
2021-09-06 17:30:42 |
海外科学 |
NYT > Science |
Oil Spill in the Gulf of Mexico: What We Know |
https://www.nytimes.com/2021/09/06/climate/oil-spill-ida-gulf-of-mexico.html
|
knowthe |
2021-09-06 17:06:30 |
海外科学 |
NYT > Science |
Satellite Images Find ‘Substantial’ Oil Spill in Gulf After Ida |
https://www.nytimes.com/2021/09/04/climate/oil-spill-hurricane-ida.html
|
louisiana |
2021-09-06 17:36:04 |
海外科学 |
NYT > Science |
Lack of Power Hinders Assessment of Toxic Pollution Caused by Ida |
https://www.nytimes.com/2021/09/01/climate/hurricane-ida-toxic-pollution.html
|
hazardous |
2021-09-06 17:37:56 |
金融 |
RSS FILE - 日本証券業協会 |
証券投資の税制 |
https://www.jsda.or.jp/anshin/oshirase/index.html
|
証券 |
2021-09-06 18:14:00 |
ニュース |
ジェトロ ビジネスニュース(通商弘報) |
「中欧班列」1~8月の運行本数と貨物輸送量、既に前年の8割 |
https://www.jetro.go.jp/biznews/2021/09/8c54e54ccef17a99.html
|
貨物輸送 |
2021-09-06 17:10:00 |
ニュース |
BBC News - Home |
NHS to get £5.4bn extra to deal with Covid backlog |
https://www.bbc.co.uk/news/uk-politics-58463493?at_medium=RSS&at_campaign=KARANGA
|
england |
2021-09-06 17:13:24 |
ニュース |
BBC News - Home |
Arthur's Seat death: Man charged with murder of Fawziyah Javed |
https://www.bbc.co.uk/news/uk-scotland-edinburgh-east-fife-58467784?at_medium=RSS&at_campaign=KARANGA
|
court |
2021-09-06 17:29:25 |
ニュース |
BBC News - Home |
Covid: UK passes seven million Covid cases and England and Wales' pupils return to school |
https://www.bbc.co.uk/news/uk-58464937?at_medium=RSS&at_campaign=KARANGA
|
coronavirus |
2021-09-06 17:29:21 |
ニュース |
BBC News - Home |
Covid-19: UK passes 7 million confirmed Covid cases |
https://www.bbc.co.uk/news/uk-58468557?at_medium=RSS&at_campaign=KARANGA
|
total |
2021-09-06 17:28:19 |
ニュース |
BBC News - Home |
Brazil v Argentina: Fifa 'regrets' scenes leading to match suspension |
https://www.bbc.co.uk/sport/football/58464728?at_medium=RSS&at_campaign=KARANGA
|
qualifier |
2021-09-06 17:33:44 |
ビジネス |
ダイヤモンド・オンライン - 新着記事 |
日本サッカーのシンボルとなった八咫烏に隠された秘密 - 最強の神様100 |
https://diamond.jp/articles/-/281482
|
日本サッカーのシンボルとなった八咫烏に隠された秘密最強の神様「仕事運」「金運」「恋愛運」「健康運」アップ「のご利益」の組み合わせからあなたの願いが叶う神様が必ず見つかる八百万やおよろずの神様から項目にわたって紹介。 |
2021-09-07 02:55:00 |
ビジネス |
ダイヤモンド・オンライン - 新着記事 |
素直に喜んだもの勝ちよ - 精神科医Tomyが教える 1秒で元気が湧き出る言葉 |
https://diamond.jp/articles/-/280689
|
voicy |
2021-09-07 02:50:00 |
ビジネス |
ダイヤモンド・オンライン - 新着記事 |
【発達障害を専門とする日本屈指のスペシャリスト!】精神科医が教える「対人関係のしんどさ」を減らすコツ - 「しなくていいこと」を決めると、人生が一気にラクになる |
https://diamond.jp/articles/-/281394
|
思い込み |
2021-09-07 02:45:00 |
ビジネス |
ダイヤモンド・オンライン - 新着記事 |
同じ材料でも 高級そうに見える料理は 「切り方」が違う! - ぽんこつ主婦の高見えごはん |
https://diamond.jp/articles/-/281280
|
同じ材料でも高級そうに見える料理は「切り方」が違うぽんこつ主婦の高見えごはんフォロワー約万人超えの料理インスタグラマー「ぽんこつ主婦」こと橋本彩さんの、おかず、おつまみ、副菜までレシピが掲載されたレシピ本「ぽんこつ主婦のいつもの食材でパパっと“高見えレシピ」が発売鶏むね肉、豚こま肉、サバ缶、卵、豆腐……など、お財布にも優しい食材で、おいしいのはもちろん、見映えもよい、ひとひねりしたレシピが超簡単に作れると話題です。 |
2021-09-07 02:40:00 |
ビジネス |
ダイヤモンド・オンライン - 新着記事 |
パワポの前に「箇条書き」で考えろ! いいプレゼンのコツ! - 超・箇条書き |
https://diamond.jp/articles/-/281489
|
人を動かす |
2021-09-07 02:35:00 |
北海道 |
北海道新聞 |
「ヒグマとの戦い」復刊 養老牛温泉発見の故西村氏著 根釧での冒険、克明に |
https://www.hokkaido-np.co.jp/article/586321/
|
養老牛温泉 |
2021-09-07 02:20:15 |
コメント
コメントを投稿