投稿時間:2020-06-05 05:33:55 RSSフィード2020-06-05 05:00 分まとめ(38件)

カテゴリー等 サイト名等 記事タイトル・トレンドワード等 リンクURL 頻出ワード・要約等/検索ボリューム 登録日
Program [全てのタグ]の新着質問一覧|teratail(テラテイル) Django herokuへデプロイしたいがcollectstaticができない https://teratail.com/questions/267653?rss=all Djangoherokuへデプロイしたいがcollectstaticができない前提・実現したいことDjangoでwebアプリを開発しHerokuへデプロイしたのですが、サイトを開こうとするとsevernbsperrornbsphttpnbspが出ました。 2020-06-05 04:55:58
Program [全てのタグ]の新着質問一覧|teratail(テラテイル) arduinoでwifiのconnectionがつながらない https://teratail.com/questions/267652?rss=all arduinoでwifiのconnectionがつながらない前提・実現したいことarduinoでslackに投稿したいです。 2020-06-05 04:46:00
Program [全てのタグ]の新着質問一覧|teratail(テラテイル) GoogleスプレッドシートをurlFetchAppでPDF化したいが、401エラーになる https://teratail.com/questions/267651?rss=all GoogleスプレッドシートをurlFetchAppでPDF化したいが、エラーになる前提・実現したいことGoogleスプレッドシートで見積書を作成してもらい、メールでPDFファイルを飛ばす仕組みを作りたいと考えています。 2020-06-05 04:33:49
Program [全てのタグ]の新着質問一覧|teratail(テラテイル) AndroidのカスタムViewを貼り付けたい https://teratail.com/questions/267650?rss=all AndroidのカスタムViewを貼り付けたい前提・実現したいことAndroidのViewをカスタムして、Activityに表示させたいのですが、全面に表示されてしまいます。 2020-06-05 04:22:45
海外TECH Ars Technica I choose you: Pokémon Draft League brings pro sports excitement to the game https://arstechnica.com/?p=1678371 monster 2020-06-04 19:30:30
海外TECH DEV Community Cloudflare Workers Introduction https://dev.to/fllstck/cloudflare-workers-introduction-14mo Cloudflare Workers IntroductionIn Cloudflare released Cloudflare Workers CFW a FaaS platform built on V and the Service Workers API standard That year I wrote a small article about the topic but didn t go much into detail Today I will change that What are Cloudflare Workers CFW is a FaaS platform like AWS Lambda but they have numerous differences from Lambda They are like Service Workers in the browser but also different from them How is CFW different from AWS Lambda Lambda is built on AWS Firecracker a very fast and small virtualization for the cloud It can host different runtimes and you can even use your own runtime via as a Lambda Layer to execute functions in a way you like CFW is built on Google V the JavaScript engine that powers the Chrome browser V allows creating multiple sandboxes inside one process which removes much overhead to lower cold start delays drastically This leads us to the first constraint of CFW you can t bring your own runtime as you can with Lambda Layers But V supports WebAssembly so if a language supports WebAssembly as a compilation target this is a way to get around that limitation CFW is also closer to Lambda Edge than regular Lambda because CFW is always deployed on the edge of the Cloudflare network and CFW doesn t require an extra API gateway like Lambda does For internal use cases you can call Lambdas directly but for public APIs you need an API gateway in front of them This adds latency costs and complexity A CFW in contrast will be directly deployed to an URL CFW also has some limits They can only use ms of CPU time ms in the paid plan and MB of memory The CFW scripts can have a maximum of MB and only are allowed per account which means if you can t fit your use case into xMB CFW isn t an option It s worth noting that if your CFW waits for something and doesn t use CPU time it can run indefinitely and even perform actions after it responds to a request The free plan of CFW comes with k executions per day and the unlimited plan allows one million executions for Considering that CFW doesn t need an extra API gateway this is quite cheap How is CFW different from Service Workers While CFW implements the Service Worker API they have some minor differences the obvious one being that they don t run in a browser but on a Cloudflare server Server side execution brings us to the first advantage over Service Workers you can do cross site scripting CORS isn t an issue for CFWs in fact you can use them to proxy non CORS enabled APIs with a CFW and make it accessible directly via the browser They aren t Service Worker API compliant For security reasons you can t run eval new Function Also Date now doesn t change during execution which means that loading additional code at runtime doesn t work Like Service Workers they can be used as a proxy between an API endpoint and the browser Cloudflare will try to execute your worker for the defined path and if it fails you can opt in to propagate the request to the origin Service Worker API compliance makes them easier to use for frontend devs but also different from Node js which can lead to some libraries not working in the CFW environment DeploymentsThere are two ways to use CFWs The first and simplest one is as a stand alone endpoint Like you would do with any web server You define your worker give it a path and that is it It calculates things renders a website calls some third party APIs whatever you like In this case the worker has its own URL and can t pass through to another web server on an error The second one is as a proxy It s like a service worker only that it doesn t run in the browser s background process You can set a path for your worker that already exists on your web server and Cloudflare will execute the worker instead of your actual endpoint You can then call your endpoint from within the CFW and do things with the response before sending it to the client If you hit your execution limits or your CFW errors for some reason you can pass the request to your endpoint as if nothing happened The second use case requires that Cloudflare handles DNS for the origin server Example Creating a CORS Proxy WorkerNow that we know what CFW is let s create one to get a feeling for how they work Pre RequisitesFor this tutorial you need Node js v and a Cloudflare account Installing the CLIDeveloping and deploying CFW is done with the help of a CLI called Wrangler We will install it via NPM npm i cloudflare wrangler g Initializing a ProjectThe CLI can then be used to create a new CFW project wrangler generate cors proxy cd cors proxy npm i Implementing the Worker ScriptWe will use the randomfox API because it s free doesn t require an account and doesn t come with CORS support The new project comes with an index js file as an entry point Replace the content of the file with the following code const API URL const PROXY ENDPOINT cors proxy const HTML lt DOCTYPE html gt lt h gt GET without CORS Proxy lt h gt lt code id noproxy gt Waiting lt code gt lt h gt GET with CORS Proxy lt h gt lt img id proxy src gt lt script gt async gt try await fetch API URL catch e document getElementById noproxy innerHTML e const response await fetch window location origin PROXY ENDPOINT let image await response json document getElementById proxy src image lt script gt addEventListener fetch event gt const url new URL event request url if url pathname startsWith PROXY ENDPOINT return event respondWith new Response HTML headers content type text html charset UTF if event request method GET return event respondWith handleRequest event request return event respondWith new Response null status statusText Method not allowed async function handleRequest request const url new URL request url request new Request API URL request request headers set Origin new URL API URL origin let response await fetch request response new Response response body response response headers set Access Control Allow Origin url origin response headers append Vary Origin return response Let s go through the code step by step First we define three constants API URL is for the randomfox URLPROXY ENDPOINT is the path on our domain that acts as the proxyHTML is an example page we will deliver in case the worker is visited from a browserThe example page will fetch two URLs one directly from the randomfox API that will fail because of missing CORS headers and one from our proxy It will then set the src of an image element to the URL delivered by the API Next we define our event listener for the fetch event It will respond to all paths that aren t our PROXY ENDPOINT with the HTML If our PROXY ENDPOINT was requested with a GET method we would call the handleRequest function The handleRequest function calls the third party API and adds CORS headers to the response before sending it back to the client This will tell the browser that the answer is safe to use for our client side JavaScript If someone tries to use unsupported request methods we will respond with an error status This small example is a stripped down version based on this template The CORS header is dynamic based on the origin of the request For security reasons you usually use static domains so the worker can only be accessed from browsers that visited your domain Deploying the Worker ScriptWe use the Wrangler CLI again to deploy the script For this we have to add our account ID to the wrangler toml file it can be found on your Cloudflare dashboard under the menu point Workers After we added the ID we can do a non production deploy with the following command wrangler publish Using the WorkerIf everything went good we can access our worker at https cors proxy lt ACCOUNT NAME gt workers dev SummaryCloudflare Workers are an excellent tool for frontend devs that want to add backend functionality to their applications Be it the transformation of API responses or hiding of API secrets from the clients If you build PWAs or JAMStack apps you can deliver the whole frontend via CFW without an actual backend Their adherence to web standards lets you feel right at home and with a few commands you get up and running in no time You have to keep in mind that they aren t as flexible as AWS Lambda a more comprehensive platform that allows more configuration and has much higher limits on the number of scripts you can deploy and their file size 2020-06-04 19:28:17
海外TECH DEV Community Genetic algorithms for brute forcing https://dev.to/terceranexus6/genetic-algorithms-for-brute-forcing-4e6j Genetic algorithms for brute forcingDue to my work I tend to use brute force lists a lot mostly to test incorrect login management Sometimes I feel I get really close to correct passwords either guessing or using profiling tools I don t know if some of you when it comes to change the default or old passwords you just take your old one and change it a bit That s mostly wrong btw In any case recently I felt like hand writing customized lists out of guessing on a text file was a poorly decision so I decided to create a command that creates fitted guessing options from a fitting range using a genetic algorithm I created a gitlab repo in order to share it and I d like to improve it mostly because I know C might not be the best option and also because I m open to suggestions in general If you are curious please check and merge request your ideas Example of use with a sample guessed password and the desired fitness jockpass myPasswordGuss 2020-06-04 19:04:04
Apple AppleInsider - Frontpage News Review: Hue HDMI Sync box & Play light bar creates a better multimedia experience https://appleinsider.com/articles/20/06/04/review-hue-hdmi-sync-box-play-light-bar-creates-a-better-multimedia-experience Review Hue HDMI Sync box amp Play light bar creates a better multimedia experienceThe Philips Hue HDMI Sync box is an easy way to blend your movie TV or gaming session with your Hue lights for an immersive real world experience that is hard to beat 2020-06-04 19:17:47
Apple AppleInsider - Frontpage News Tim Cook speaks out about racism and injustice https://appleinsider.com/articles/20/06/04/tim-cook-speaks-out-about-racism-and-injustice Tim Cook speaks out about racism and injusticeApple s CEO has issued a statement saying the company is committed to diversity and to empowering people to quot change the world for the better quot 2020-06-04 19:12:36
海外TECH Engadget Criterion will stream notable titles by black filmmakers for free https://www.engadget.com/criterion-collection-stream-black-filmmakers-free-195608556.html Criterion will stream notable titles by black filmmakers for freeIn response to the murders of Ahmaud Arbery George Floyd Tony McDade and Breonna Taylor as well as the disproportionate toll COVID has had on communities of color the Criterion Collection announced a few steps it s taking to fight systemic rac 2020-06-04 19:56:08
海外TECH Engadget Germany will require electric vehicle charging at every gas station https://www.engadget.com/germany-require-electric-vehicle-charging-every-gas-station-193037385.html Germany will require electric vehicle charging at every gas stationAs part of a billion euro stimulus plan Germany will require every gas station in the country to install electric vehicle charging stations As reported by Reuters this stimulus package includes subsidies for electric vehicle purchasers and tax 2020-06-04 19:30:37
海外TECH Engadget Hackers targeted the UK's coronavirus vaccine research https://www.engadget.com/hackers-target-uk-nhs-research-centers-190009137.html Hackers targeted the UK x s coronavirus vaccine researchOn top of everything else add cybersecurity threats to the list of things the UK s National Health Service NHS has had to contend with during the coronavirus pandemic In an interview with the Cheltenham Science Festival Jeremy Fleming the head 2020-06-04 19:00:34
海外TECH CodeProject Latest Articles Programming Problems and Finding Solutions https://www.codeproject.com/Articles/1252451/Programming-Problems-and-Finding-Solutions Programming Problems and Finding SolutionsThis article outlines some tips on finding solutions to your programming problems how to properly use the community forums and how to contribute as an answerer to the forums 2020-06-04 19:28:00
海外科学 NYT > Science ‘Like Trash in a Landfill’: Carbon Dioxide Keeps Piling Up in the Atmosphere https://www.nytimes.com/2020/06/04/climate/carbon-dioxide-record-climate-change.html atmospherelevels 2020-06-04 19:14:52
海外科学 NYT > Science Live Coronavirus News Updates https://www.nytimes.com/2020/06/04/world/coronavirus-us-update.html Live Coronavirus News UpdatesFine grained data on race and ethnicity may help the U S begin to address inequities New infections around the world are topping a day An Indian vaccine manufacturer is ready to make a billion doses 2020-06-04 19:43:01
海外科学 NYT > Science Managing the Majestic Jumbo Flying Squid https://www.nytimes.com/2020/06/04/climate/jumbo-flying-squid-fishing.html dinner 2020-06-04 19:34:40
医療系 医療介護 CBnews コロナ助成金・貸付など情報一覧【更新1】-感染拡大の影響を受ける事業者様へ https://www.cbnews.jp/news/entry/20200604171825 cbnews 2020-06-05 05:00:00
海外ニュース Japan Times latest articles Japan governors discuss balancing economic revival and virus control https://www.japantimes.co.jp/news/2020/06/04/national/japan-governors-balancing-revival-virus/ compile 2020-06-05 04:28:57
海外ニュース Japan Times latest articles Hong Kong democracy activists press Japan to reconsider Xi visit https://www.japantimes.co.jp/news/2020/06/04/national/politics-diplomacy/hong-kong-pro-democracy-activists-press-tokyo-rethink-xis-visit-japan/ Hong Kong democracy activists press Japan to reconsider Xi visitPro democracy campaigners say timing of such a trip would be inappropriate given current international criticism over the human rights situation in the city 2020-06-05 04:21:56
海外ニュース Japan Times latest articles An uphill battle to reverse the falling birth rate https://www.japantimes.co.jp/opinion/2020/06/04/editorials/uphill-battle-reverse-falling-birth-rate/ crisis 2020-06-05 04:05:16
ニュース BBC News - Home Coronavirus: Face coverings to be mandatory on public transport https://www.bbc.co.uk/news/uk-52927089 secretary 2020-06-04 19:37:59
ニュース BBC News - Home Ahmaud Arbery: White man 'used racial slur' after shooting black jogger https://www.bbc.co.uk/news/world-us-canada-52927018 court 2020-06-04 19:51:52
ニュース BBC News - Home George Floyd death: Thousands join Birmingham protest https://www.bbc.co.uk/news/uk-england-birmingham-52920826 death 2020-06-04 19:18:11
ニュース BBC News - Home NBA: Disney World Resort set to host rest of 2020 season https://www.bbc.co.uk/sport/basketball/52924523 disney 2020-06-04 19:50:20
ビジネス ダイヤモンド・オンライン - 新着記事 新型コロナ禍の直撃受ける大学生、出口なき闇の中で届かぬ支援の手 - 生活保護のリアル~私たちの明日は? みわよしこ https://diamond.jp/articles/-/239336 焼け石に水 2020-06-05 04:55:00
ビジネス ダイヤモンド・オンライン - 新着記事 悪材料が目白押しの中、世界的な株高を演出する「大きな力」の正体 - DOL特別レポート https://diamond.jp/articles/-/239349 2020-06-05 04:53:00
ビジネス ダイヤモンド・オンライン - 新着記事 30年来下痢に悩み続けた50代男性が、今度は便秘になってしまった意外な原因 - 40代以上の男のカラダとココロの悩み https://diamond.jp/articles/-/239335 新入社員 2020-06-05 04:50:00
ビジネス ダイヤモンド・オンライン - 新着記事 「若年性認知症」と診断されたら世界はどう見えるのか? - 週末はこれを読め! https://diamond.jp/articles/-/239222 週末 2020-06-05 04:45:00
ビジネス ダイヤモンド・オンライン - 新着記事 「今はコロナ特需」既存産業と組んで実現するデジタルトランスフォーメーションの本質・LayerX福島氏 - スタートアップ&イノベーション https://diamond.jp/articles/-/239424 「今はコロナ特需」既存産業と組んで実現するデジタルトランスフォーメーションの本質・LayerX福島氏スタートアップイノベーションコロナ禍を契機に、これまで以上に注目の集まるDXデジタルトランスフォーメーション。 2020-06-05 04:40:00
ビジネス ダイヤモンド・オンライン - 新着記事 トランプ氏とバイデン氏、差別抗議デモに対照的姿勢 - WSJ PickUp https://diamond.jp/articles/-/239390 wsjpickup 2020-06-05 04:35:00
ビジネス ダイヤモンド・オンライン - 新着記事 美容室に行けなくても大丈夫! スタイリングだけで 新しい自分になるという選択 - あなたは髪を切らなくても変われる https://diamond.jp/articles/-/239184 美容室に行けなくても大丈夫スタイリングだけで新しい自分になるという選択あなたは髪を切らなくても変われる髪を切らなくても新しい自分になれる自宅でサロン級の満足度のセルフテクニック公開美容室に行かなくても、髪を切らなくても、髪の印象をガラッと変える方法があると言ったら、どうしますか切らないほうがかわいくなると言われたらとうでしょう。 2020-06-05 04:30:00
ビジネス ダイヤモンド・オンライン - 新着記事 【社説】コロナ対応で中国称賛のWHO、内心疑念も - WSJ PickUp https://diamond.jp/articles/-/239389 covid 2020-06-05 04:25:00
ビジネス ダイヤモンド・オンライン - 新着記事 電車で立ちながらスマホを見ると、骨盤がずれる!? - 座り仕事の疲れがぜんぶとれるコリほぐしストレッチ https://diamond.jp/articles/-/239379 電車で立ちながらスマホを見ると、骨盤がずれる座り仕事の疲れがぜんぶとれるコリほぐしストレッチ人間は座っている「だけ」で疲れる。 2020-06-05 04:20:00
ビジネス ダイヤモンド・オンライン - 新着記事 存在感を増す小池都知事に、待ち受ける選挙後の試練とは - 永田町ライヴ! https://diamond.jp/articles/-/239377 小池百合子 2020-06-05 04:15:00
ビジネス ダイヤモンド・オンライン - 新着記事 アウトプットするためにインプットすれば 自信満々で面白い話ができる! - アウトプットする力 https://diamond.jp/articles/-/237775 アウトプットするためにインプットすれば自信満々で面白い話ができるアウトプットする力数多くの情報番組やバラエティ番組に出演して、硬軟自在に的確なコメントをくり出し、全国各地で笑いの絶えない講演会をくり広げ、大学の教職課程では教師の卵たちを前に実践的な教えを展開する齋藤孝明治大学文学部教授。 2020-06-05 04:10:00
ビジネス ダイヤモンド・オンライン - 新着記事 「素数」は2000年以上も未解明 - とてつもない数学 https://diamond.jp/articles/-/239057 「素数」は年以上も未解明とてつもない数学天才数学者たちの知性の煌めき、絵画や音楽などの背景にある芸術性、AIやビッグデータを支える有用性…。 2020-06-05 04:05:00
ビジネス ダイヤモンド・オンライン - 新着記事 コロナ対策優等生の韓国、経済でも好成績収めた理由 - WSJ発 https://diamond.jp/articles/-/239430 韓国 2020-06-05 04:03:00
北海道 北海道新聞 バンドの髭男が上半期人気度1位 アーティストランキング https://www.hokkaido-np.co.jp/article/427664/ 音楽 2020-06-05 04:02: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件)