TECH |
Engadget Japanese |
癒される?寿司ネタになったネコを積み上げる『ねこすし』:発掘!スマホゲーム |
https://japanese.engadget.com/jp-2020-04-26-sushineko.html
|
|
2020-04-26 21:05:00 |
Google |
カグア!Google Analytics 活用塾:事例や使い方 |
2020年版最新Twitterでユーザー名を変える方法とサブ垢運用の仕方 |
https://www.kagua.biz/social/twitter/twitter2020-subacount-acountname.html
|
twitter |
2020-04-26 21:00:05 |
AWS |
AWS Podcast |
#366: Express Workflows with Tim Bray: Cheaper, Faster, Stronger |
https://aws.amazon.com/podcasts/aws-podcast/#366
|
Express Workflows with Tim Bray Cheaper Faster StrongerThis week Tim Bray joins Simon to discuss a new capability in AWS Step Functions Express Workflows are a new type of AWS Step Functions workflow type that cost effectively orchestrate AWS compute database and messaging services at event rates greater than events per second Express Workflows automatically start in response to events such as HTTP requests via Amazon API Gateway AWS Lambda requests AWS IoT Rules Engine actions and over other AWS and SaaS event sources from Amazon EventBridge Express Workflows is suitable for high volume event processing workloads such as IoT data ingestion streaming data processing and transformation and high volume microservices orchestration |
2020-04-26 21:32:51 |
python |
Pythonタグが付けられた新着投稿 - Qiita |
言語処理100本ノック 2020【00~39 解答】 |
https://qiita.com/tsal3290s/items/028b22bcd9ca29f08ac9
|
言語処理本ノック【解答】言語処理本ノックのバージョンが公開されましたね。 |
2020-04-27 06:26:36 |
python |
Pythonタグが付けられた新着投稿 - Qiita |
如何先开始写出一个程序 |
https://qiita.com/motochan1969/items/f6a50a80969b8dddb505
|
这个题目的重点我的意思是说说编程语言的人一开始你写什么这个规律从古至今都没有改变过如果你不知道这个道理那你根本就不能做任何事情。 |
2020-04-27 06:25:27 |
python |
Pythonタグが付けられた新着投稿 - Qiita |
How to start to write out a program first. |
https://qiita.com/motochan1969/items/8d5c84c516ab7594fa49
|
How to start to write out a program first Talk about writing out a program If you ve been doing the program lately and you thinkThe first program I touched when I was a junior high school student was the N BASIC I still remember it but the following sentence was completely in my head N BASICWIDTH CONSOLE LOCATE PRINT HELLO WORLD Of course back then I d just struck this code The interpreter only shows an inorganic cursor I can t find any help So to speak writing out a program isIt s still the same today he s a really inorganic guy Well that s today s topic It starts with a new programming language a development environmentSo Mr Program as if to say hello The greeting is important Not just in the programming world but in the real world as well If a single greeting is understood the person will talk to you in some way Even if you just walked up to them without knowing what was going on That s what you get a puzzled look on your face or aIn the worst case they just send you back to go away Past storiesd digress a little bit When I first went on my college graduation trip I was in transit at an American airport I left the tickets in my caster case And I managed to explain the crisis to the black woman at the airport counter No tickets No Ride I still remember the time I was really turned away for saying I don t want to do this After that I went to the help desk at the airport to get aThe old man came over and took me to the baggage claim area I had a bag that was almost silver in color so I Gold he managed to pull the bag back I was able to get my ticket The horror of it all and the fact that my friend who went with me was laughing at me I still remember this episode of my first trip abroad The nostalgic video became a hot topic at the reunion and it s still on YOUTUBE The main point of this topics I mean the guy who says programming languages what do you write in the first place This rule has not changed since the beginning of timeIf you don t know this you can t do anything at all In the meantime the chatbot side of the house will be able to What should I write sir Can t you kindly tell me how to start the code When AI comes out at least we ll be able to solve this engineer shortage in earnest The gap in communication with computers I am hoping that they will fill it in That s why today s topic is the one I ve been learning recentlyThe starting point of the programming language is explained in a way that even beginners can understandI m going to try to put it together in my own way python gt import In the case of python it s an import statement This could not be more wrong C gt using In the case of C it is a using clause It s not the start of an enka song C gt include lt gt Let me add to that because I remembered it a long time ago C might be basically the same though node js gt require Dare I mention JavaScript which is plunged into HTML VB NET gt ImportsUnfortunately there are no such conventions in VBA soThis is written in the case of VB JAVA gt import I ve never used JAVA personally so I ll write it out as knowledge the othersTypescript RUBY PHP GOI guess there s a lot of program languages but I don t know any more Like a greetingOf course it s necessary you say hello to your neibor naturally But also it need to catch a glimpse of other people s conversations when you read the cord written by other people such as GITHUB etc Let s start with this opening salutationBecause it s the beginning of everything We re going to have to unravel it from here The program is completely incomprehensible This greeting is very important For example the manners of the other country andThe book is packed with general knowledge of the arts and sciences Especially nowadays with all the namespaces and such You don t even have to name the namespace In the first place this is just a tree structure with a directoryIt s a name and I d like it to be said that way In addition PYTHON is using ENV and so on such as virtual space It will be made but once this too is done it will beIt s just the name of a temporarily created folder It s really difficult for this IT engineer to say difficult things It s a nasty routine and that s why it goes around so much It s a rather disgusting culture that doesn t accept first time students And these days object thinking In the old days a single craftsman who started his own businessAnd then they hired more and more people to work in an organized way It s like building more and more departments It s not like there s any real world rules orCommon sense rules and regulations are plunged into the storage area of your computer That s just the story but somehow they don t accept first time students It has a unique atmosphere Therefore I believe that the more the world becomes an IT society the moreThese advanced engineers your engineers look like they own the place I want to make a hole in the world that is so prevalent Translated with www DeepL com Translator free version |
2020-04-27 06:18:45 |
js |
JavaScriptタグが付けられた新着投稿 - Qiita |
【JavaScript】URLをコピーするボタンを作る |
https://qiita.com/RYO_nami/items/4543edfc7febe8836b7b
|
【JavaScript】URLをコピーするボタンを作る概要URLをコピーするボタンをJavaScriptで実装する。 |
2020-04-27 06:35:03 |
Program |
[全てのタグ]の新着質問一覧|teratail(テラテイル) |
C#で外部プログラムを実行した後も引数を送りたい |
https://teratail.com/questions/256766?rss=all
|
起動 |
2020-04-27 06:32:02 |
Program |
[全てのタグ]の新着質問一覧|teratail(テラテイル) |
このエラーメッセージの意味を教えてください。 |
https://teratail.com/questions/256765?rss=all
|
aposquizapos |
2020-04-27 06:27:46 |
AWS |
AWSタグが付けられた新着投稿 - Qiita |
AWS動作検証【6】(作成済みEBSボリュームの暗号化) |
https://qiita.com/gomasa/items/aeadd1998a88692f824b
|
なお、ECインスタンスを新規に作成する場合は「ステップストレージの追加」で暗号化設定をすることで、最初から暗号化が可能です。 |
2020-04-27 06:52:29 |
海外TECH |
DEV Community |
Iframes and communicating between applications |
https://dev.to/damcosset/iframes-and-communicating-between-applications-31k5
|
Iframes and communicating between applications IntroductionIframes are awesome They allow you to embed another HTML page inside the current one The embedded page carries its own browsing context with it So if a HTML page creates an iframe with a remote application as its source you ll have the first application hosting that remote application with all its functionalities It s a technique that s used by a lot of companies to allow developers to use their service easily Stripe and Yousign come to mind The problemThe problem is this I want an iframe to be added to the HTML DOM when the user interacts with an element in my case a click on a button I want that iframe to take up the entire page From the user perspective it would look like you actually travelled to a new page or that a full width modal just opened Setting upSo we need an applications One of them when we click on a button will open an iframe Inside that iframe will be embedded the second application I ll use React for both my applications but the concepts work with any framework Let s create our two React application I ll do that with create react app So I ll run create react app main app and create react app iframe app Go the to the App js file inside the main app React application and add a button to open an iframe import React from react import App css function App let openFrame gt let iframe document createElement iframe iframe src http localhost iframe frameBorder iframe id iframe iframe style position absolute iframe style zIndex iframe style height iframe style width iframe style top iframe style backgroundColor white iframe style border none document body prepend iframe document body style overflow hidden return lt div className App gt lt header className App header gt lt p gt This app opens an iframe and runs on port lt p gt lt button onClick gt openFrame gt Open IFRAME lt button gt lt header gt lt div gt export default App So this application runs on port and open an iframe when the user clicks on the button That will create an iframe with the src attribute http localhost where our second application will run Notice that I wrote that in vanilla javascript to show you how it could be used anywhere Then we are adding some styles to make our iframe take up the whole page just like if it was a different page Notice that we also set overflow hidden on the body to not be able to scroll the main page Now go to the second application in iframe app and change the App js file import React from react import App css function App let closeIframe gt return lt div className App gt lt button onClick gt closeIframe gt Close Iframe lt button gt lt p gt This app runs on port and his embedded inside the iframe lt p gt lt div gt export default App This application will run on port When we click on the button we will close the iframe Make sure your main application is running on port and your iframe application is running on port by running PORT yarn start Ok so if you now go to http localhost in your browser and click on the Open IFRAME button You will see the second React application take up the whole page inside its iframe We re still on the port page From the user it doesn t look like an iframe at all though Awesome now our first app correctly opens an iframe The functionality works as expected Closing the iframeNow what we need to do next is allow the user to close the iframe Since we want the user to experience our iframe opening as a modal or a new page we need to give him a way to close go back It does seem easy Add a close button click on it then make the iframe disappear Well it s not that simple The React application is on a different domain from the HTML page The functionality to close the iframe will start on the React application But we will try to manipulate the DOM of the first application For security reasons we can t manipulate the DOM from another domain thankfully There are two ways we can solve this issue Make the React applications communicate with one another Create a header that would still be part of the first React application The second solution is the simplest one Just style your DOM to show a button above the iframe content maybe using some z index styles or show a header above the iframe so the iframe would not take the whole height of the page leaving some space for that header The second solution for our purposes doesn t suit me So to make both pages communicate with one another we will use window postMessage The postMessage function allows to send messages between cross origin domains When we would want to close our iframe we will use this function to tell the main HTML page that we need to make the iframe disappear Adding the closing functionalityWe need to call postMessage on the targetWindow The target window in our case is the window of the HTML page We can get that window s reference with window parent Note that in the main HTML page which does not have a parent window parent is the main window The first argument that the postMessage function takes is a message You could send an object if you wish or a string Here we don t need to send anything special so I ll just call it close iframe The second argument it takes is the url of the target window That would be http localhost in our case But we want to make that dynamic let closeIframe gt let url window location window parent location document referrer document location href window parent postMessage close iframe url Notice how we retrieve the parent s url If the window s location is different from the parent s location we ll get it through document referrer otherwise for IE browsers we ll get it with document location href Get the message in the main applicationNow that the iframe application sends a message we need the main application to catch it To do that we can use the addEventListener method We will add this event listener inside a useEffect hook Inside your App js fileuseEffect gt window addEventListener message function event let frameToRemove document getElementById iframe if frameToRemove frameToRemove parentNode removeChild frameToRemove document body style overflow inherit The postMessage function sends a message event Inside this addEventListener we retrieve our iframe element and we remove it from the DOM This is how it will looks like in your browser Congratulations You can now make two applications communicate with one another through an iframe Now remember that the postMessage can work both ways We made it from from child to parent but parent to child is also valid Have fun ️ |
2020-04-26 21:21:34 |
海外TECH |
Engadget |
China arrested former Huawei staff for talking about Iran deal online |
https://www.engadget.com/china-arrests-huawei-staff-for-iran-deal-chat-214137427.html
|
China arrested former Huawei staff for talking about Iran deal onlineHuawei flatly denies being under control of the Chinese government but there s little doubt that China is eager to defend its technological superstar ーat least with a little prodding The New York Times has learned that Chinese police arrested fiv |
2020-04-26 21:41:37 |
海外科学 |
NYT > Science |
UK, Italy, Prisons: Coronavirus Live World News Tracker |
https://www.nytimes.com/2020/04/26/world/coronavirus-news.html
|
UK Italy Prisons Coronavirus Live World News TrackerBoris Johnson is back at Downing St and will return to work Monday after recovering Children in Spain play outside for the first time in weeks Wuhan says it has no more hospitalized Covid patients |
2020-04-26 21:15:58 |
金融 |
生命保険おすすめ比較ニュースアンテナ waiwainews |
朝の日課 |
http://seiho.waiwainews.net/view/11213
|
newsallrightsreserved |
2020-04-27 06:15:39 |
海外ニュース |
Japan Times latest articles |
Coronavirus crisis exposes Japan’s strength and weakness |
https://www.japantimes.co.jp/opinion/2020/04/26/commentary/japan-commentary/coronavirus-crisis-exposes-japans-strength-weakness/
|
japan |
2020-04-27 06:20:42 |
海外ニュース |
Japan Times latest articles |
Modest multilateralism is in America’s interest, and China’s too |
https://www.japantimes.co.jp/opinion/2020/04/26/commentary/world-commentary/modest-multilateralism-americas-interest-chinas/
|
cooperation |
2020-04-27 06:19:30 |
海外ニュース |
Japan Times latest articles |
What if you go back to the office and get COVID-19? |
https://www.japantimes.co.jp/opinion/2020/04/26/commentary/world-commentary/go-back-office-get-covid-19/
|
issues |
2020-04-27 06:18:15 |
ニュース |
BBC News - Home |
Ilford stabbings: Baby girl and three-year-old boy killed |
https://www.bbc.co.uk/news/uk-england-london-52436350
|
injuries |
2020-04-26 21:33:45 |
ニュース |
BBC News - Home |
Coronavirus: Chile to introduce controversial 'virus-free' ID |
https://www.bbc.co.uk/news/world-latin-america-52436330
|
health |
2020-04-26 21:35:33 |
ニュース |
BBC News - Home |
The Papers: PM 'takes control' and lockdown plans revealed 'this week' |
https://www.bbc.co.uk/news/blogs-the-papers-52436167
|
front |
2020-04-26 21:54:57 |
ニュース |
BBC News - Home |
Serie A teams set to resume individual training on 4 May |
https://www.bbc.co.uk/sport/football/52436317
|
Serie A teams set to resume individual training on MaySerie A sides will be allowed to return to individual training on May and team training on May as Italy begins to lift its coronavirus lockdown |
2020-04-26 21:27:58 |
LifeHuck |
ライフハッカー[日本版] |
生命保険と火災保険。予期せぬ災害に備えるために選ぶべきなのはどっち? |
https://www.lifehacker.jp/2020/04/book_to_read-525.html
|
地球温暖化 |
2020-04-27 06:30:00 |
北海道 |
北海道新聞 |
遊休旅客機の貨物便化進む 緊急物資の輸送需要高まり |
https://www.hokkaido-np.co.jp/article/416017/
|
世界的大流行 |
2020-04-27 06:23:06 |
ビジネス |
東洋経済オンライン |
コロナで神話崩壊、名古屋タクシー運転手の告白 流転タクシー第2回トヨタ依存の街の今後 | 国内経済 | 東洋経済オンライン |
https://toyokeizai.net/articles/-/344404?utm_source=rss&utm_medium=http&utm_campaign=link_back
|
東洋経済オンライン |
2020-04-27 06:10:00 |
コメント
コメントを投稿