投稿時間:2021-04-17 20:30:36 RSSフィード2021-04-17 20:00 分まとめ(33件)

カテゴリー等 サイト名等 記事タイトル・トレンドワード等 リンクURL 頻出ワード・要約等/検索ボリューム 登録日
IT ITmedia 総合記事一覧 [ITmedia News] NASA、「アルテミス計画」の有人月着陸船開発でSpaceXのみを選定 https://www.itmedia.co.jp/news/articles/2104/17/news048.html itmedianewsnasa 2021-04-17 19:31:00
IT MOONGIFT Codeist - Webのコードをすぐに試せるプレイグラウンド http://feedproxy.google.com/~r/moongift/~3/hPZZZPO-c7E/ CodeistWebのコードをすぐに試せるプレイグラウンドフロントエンド開発の便利な点は、Webブラウザじ実装されているJavaScriptエンジンでコードをすぐに実行、確認できることでしょう。 2021-04-17 21:00:00
AWS lambdaタグが付けられた新着投稿 - Qiita Lambda内Lambdaの呼び出しで Invalid type for parameter Payload https://qiita.com/hayatan-yuitan/items/a0e8b89743f369a6cfa4 Lambda内Lambdaの呼び出しでInvalidtypeforparameterPayloadInvalidtypeforparameterPayloadLambda内でLambdaを非同期で呼び出そうとして以下のような呼び出しでエラー発生。 2021-04-17 19:02:35
python Pythonタグが付けられた新着投稿 - Qiita yukicoder contest 291 参戦記 https://qiita.com/c-yan/items/a5fea7dac8fab5b119fd mnintinputprintpownm 2021-04-17 20:00:14
python Pythonタグが付けられた新着投稿 - Qiita Flaskを使用したTwitter ログイン連携メモ https://qiita.com/KWS_0901/items/ea46b3b66321b793b495 Google連携やFacebook連携を試したもののTwitter版大まかな処理の流れリクエストトークンを取得する。 2021-04-17 19:38:05
python Pythonタグが付けられた新着投稿 - Qiita altairでとあるアイドルグループのメンバー在籍期間のチャート化してみた https://qiita.com/bc_yuuuuuki/items/5ee6af39a3cce4eac575 問題と原因用意したデータの「Color」にはメンバーの担当カラーを設定していたのですが、グラフの色が用意した色になっていない。 2021-04-17 19:11:42
python Pythonタグが付けられた新着投稿 - Qiita Lambda内Lambdaの呼び出しで Invalid type for parameter Payload https://qiita.com/hayatan-yuitan/items/a0e8b89743f369a6cfa4 Lambda内Lambdaの呼び出しでInvalidtypeforparameterPayloadInvalidtypeforparameterPayloadLambda内でLambdaを非同期で呼び出そうとして以下のような呼び出しでエラー発生。 2021-04-17 19:02:35
Program [全てのタグ]の新着質問一覧|teratail(テラテイル) Java DBの情報更新が出来ないです。 https://teratail.com/questions/333750?rss=all JavaDBの情報更新が出来ないです。 2021-04-17 19:56:55
Program [全てのタグ]の新着質問一覧|teratail(テラテイル) Unity InputFieldに連続で文字を入力する方法について https://teratail.com/questions/333749?rss=all UnityInputFieldに連続で文字を入力する方法についてチャットを作り、問題なく動いてはいるのですが、チャットの文字を入力するオブジェクトにInputFieldを使いました。 2021-04-17 19:38:15
Program [全てのタグ]の新着質問一覧|teratail(テラテイル) 多数の静的ページをビューで表示する効率良いルーティングの書き方が知りたい https://teratail.com/questions/333748?rss=all 多数の静的ページをビューで表示する効率良いルーティングの書き方が知りたい質問させてください。 2021-04-17 19:37:42
Program [全てのタグ]の新着質問一覧|teratail(テラテイル) JavaScript 記述方法の名前がわからない https://teratail.com/questions/333747?rss=all JavaScript記述方法の名前がわからない前提・実現したいこと独学でJavaScriptを勉強しているのですが、この記述方法は何という名前なのでしょうか見ただけで深く理解できず、何となく使おうとしたらエラーが出るので正式名称で検索して調べたいです。 2021-04-17 19:23:36
Program [全てのタグ]の新着質問一覧|teratail(テラテイル) macOS10.11でnodebrewをインストールしたい https://teratail.com/questions/333746?rss=all macOSでnodebrewをインストールしたい前提・実現したいことmacOSnbsp・nodebrewをインストールし、nodeのバージョンを管理したい。 2021-04-17 19:20:59
Program [全てのタグ]の新着質問一覧|teratail(テラテイル) PythonのseleniumでChromeのstylesheetを無効化する https://teratail.com/questions/333745?rss=all PythonのseleniumでChromeのstylesheetを無効化するPythonのselenium環境を用いたスクレーピングを行っています。 2021-04-17 19:18:18
Program [全てのタグ]の新着質問一覧|teratail(テラテイル) 登録したaliasの動作エラーについて https://teratail.com/questions/333744?rss=all 登録したaliasの動作エラーについて前提・実現したいことディレクトリ移動を楽にするため、aliasを登録したのですが、下記のエラーが発生しました。 2021-04-17 19:11:38
Program [全てのタグ]の新着質問一覧|teratail(テラテイル) <swiper.js>ウィンドウ幅を変えても画像幅を固定しておきたい。 https://teratail.com/questions/333743?rss=all ltswiperjsgtウィンドウ幅を変えても画像幅を固定しておきたい。 2021-04-17 19:08:19
Program [全てのタグ]の新着質問一覧|teratail(テラテイル) 単一責任原則の考え方について https://teratail.com/questions/333742?rss=all 単一責任原則の考え方について人によって考え方が違うので当たり前かとは思うのですが様々な単一責任原則に従ったクラス設計やそれについての記事をみます。 2021-04-17 19:05:41
Ruby Rubyタグが付けられた新着投稿 - Qiita Postmanを使用してRailsAPIの確認(CRUD) https://qiita.com/takumi73/items/38ae3bafec82085b574d Postmanを使用してRailsAPIの確認CRUDはじめにRailsでrestfulなAPIを作成したので今回は、postmanで確認する方法を重点に置いて自分用メモとしてまとめていこうと思います※API作成手順は以下の記事を参考にさせて頂きました。 2021-04-17 19:07:08
海外TECH Ars Technica DC’s Rorschach: A detective walks into a world shaped by squids and superheroes https://arstechnica.com/?p=1755546 covid 2021-04-17 10:00:54
海外TECH DEV Community I analyzed my six years of food deliveries https://dev.to/shubhamjain/i-analyzed-my-six-years-of-food-deliveries-5fp4 I analyzed my six years of food deliveriesBefore food delivery apps came along ordering food online was a pain I started using Swiggy the Indian food delivery app in and because it made it way too easy to get food delivered my orders just went through the roof I thought it will be fun to analyze how much and what have I ordered There are two sections of this post a How I did it b The numbers and my analysis Depending on your interest you can skip either How I did it Swiggy doesn t have an API to get your personal data However it has a page where it lists your past orders Trouble is it will only show five orders at once and you have to click Show more orders to go further back Naturally you have to automate it somehow Figuring out the source of dataOrder Page XHRI first logged in to the web version of the app since it will be comparatively easier to analyze the requests there It seems the orders page makes an XHR request to the URL dapi order all order id ORDER ID to fetch the orders where ORDER ID is used for pagination Order Page ResponseThe response is an array of JSON objects with a lot of fields We don t need to figure out which parts of response we need to use because we can store it all and see to that later I will use Postgres to store this data because a it just works and b has great support for querying JSON Installing Postgres locally is really simple on Macs via the Postgres app Here s the schema I will use CREATE TABLE swiggy order id text PRIMARY KEY data jsonb Why do we just need two columns Because order id is enough to uniquely identify every order and in the data column we can dump the whole object As I said earlier Postgres makes it really easy to query JSON Getting the dataLet s get the data I will be using bash for this BASH ARGHHH WHY you may ask I used to have a similar aversion towards bash but in the past year I have realized it makes it really easy to do certain things once you get the hang of it It s perfectly fine if you want to use a different approach as the basic ideas would be very much portable Like using axios instead of cURL First the basic request We need to figure out if a simple request for getting orders would work at all The easiest way to do that is to Copy as cURL the request from the developer s console and run it in your terminal If it works that s great You can start removing the unneeded parameters like headers user agent and tracking cookies After I did the trimming the basic request to get orders boiled down to this curl sL next order id H cookie session tid SESSION ID where SESSION ID is the long parameter visible in the first screenshot Once the request works we can parse the JSON and iterate over the objects using jq IFS n for order in echo all orders jq c data orders do echo order done Why do we use IFS n Because by default bash will split tabs and spaces too and various names in the response like restaurant delivery person can have spaces Now we just need to store it in the DB And write code to fetch the next orders In all the whole script will be like this bin bash Your Swiggy Session ID check screenshot SESSION ID SESSION ID while true do all orders curl sL next order id H cookie session tid SESSION ID IFS n for order in echo all orders jq c data orders do We use to wrap order because it takes cares spaces in the data psql postgres shubhamjain localhost stats c INSERT INTO swiggy order id data VALUES echo order jq r order id order done Next order id would be order id of the last object in array next order id echo all orders jq order id done After running this you should see something like this At some point it will start failing which means it has reached the end and you can quit the script then Note None of this is the ideal way to do things I wasn t interested in programming properly only hacking together something cool Six years in numbersCool Now we have the data Let s jump to answering questions Q How much I have ordered A LOT I knew I was ordering a ton of times but I never put a number on it Actually doing that with this project I was taken aback realizing the number of orders I have made and the money I have spent SELECT COUNT EXTRACT year FROM date data gt gt order time timestamp as year FROM swiggy GROUP BY Total orders Year vs of ordersHow much I have spent SELECT SUM CAST data gt gt order total with tip AS DOUBLE PRECISION EXTRACT year FROM DATE data gt gt order time TIMESTAMP FROM swiggy GROUP BY Total spent ₹ Restaurant vs of ordersThat seems to a lot of money Enough to buy a decent second hand car at least Q Where do I order from Pareto Principle seems to apply very well here Most of my orders are for a cafe called Chai Shai I love ordering from thereーit has good snacks and everything is well packaged SELECT COUNT data gt gt restaurant name FROM swiggy GROUP BY ORDER BY DESC Restaurant vs money spent on orders Q When do I order It seems I order more during the morning and afternoon than in the evening That can be explained by the fact that I often don t feel that hungry in the evening and I prefer something light for dinner SELECT COUNT EXTRACT hour FROM TO TIMESTAMP data gt gt order time YYYY MM DD hh mi ss TIMESTAMP FROM swiggy GROUP BY Hour of the day vs of orders Q What do I order It seems I am fond of ordering for a quick bite and desserts than a full meal Desserts are something I should definitely cut down on SELECT cuisine COUNT FROM SELECT JSONB ARRAY ELEMENTS TEXT data gt restaurant cuisine AS cuisine FROM swiggy x GROUP BY ORDER BY DESC Cuisine vs of orders ConclusionIt was an interesting exercise to understand my habits over the years There are tons of ways I can dig more into the data but for now I will stop here Insight fatigue isn t great either I don t think ordering is necessarily bad but it s lazy Knowing the scale of my habit I know it would help me to make a little conscious effort to order less 2021-04-17 10:25:36
海外TECH DEV Community Introducing fcd: "faster cding" https://dev.to/siddharthshyniben/introducing-fcd-faster-cding-4k63 Introducing fcd quot faster cding quot Ever had to type out a long cd Sites Projects project find out the path is wrong rewrite it to cd Sites Sandbox project You just wasted a minute or two This inspired me to create a tool fcd fcd is a utility which helps you cd faster on macOS You can directly use it in place of cd like so fcd some path hereAnd what happens is the path to any folder with the same name as the basename of the input in the dirname of the input basically some path here gt some path here gets copied to your clipboard If this is confusing then just read the README of the repo And please leave a star if you find this useful SiddharthShyniben fcd Faster cd ing 2021-04-17 10:13:05
海外ニュース Japan Times latest articles Suga says Biden supports Tokyo Olympics but attendance uncertain https://www.japantimes.co.jp/news/2021/04/17/national/suga-biden-olympics/ Suga says Biden supports Tokyo Olympics but attendance uncertainWhen asked about whether the United States promised to send athletes to the games Suga simply reiterated that Biden has supported his determination to hold 2021-04-17 20:08:50
海外ニュース Japan Times latest articles Sorry folks, Kei Komuro is no Meghan Markle https://www.japantimes.co.jp/news/2021/04/17/national/media-national/kei-komuro-meghan-markle-royalty/ british 2021-04-17 20:00:18
海外ニュース Japan Times latest articles In a spasm of violence, Indianapolis faces its third mass shooting in 2021 https://www.japantimes.co.jp/news/2021/04/17/world/crime-legal-world/indianapolis-shootings/ In a spasm of violence Indianapolis faces its third mass shooting in It is a national embarrassment what s going on U S President Joe Biden said in a news conference Friday as he repeated his support for a 2021-04-17 19:20:24
海外ニュース Japan Times latest articles Human rights group chief says athletes have real concerns about Beijing Olympics https://www.japantimes.co.jp/sports/2021/04/17/olympics/winter-olympics/human-rights-group-beijing/ basic 2021-04-17 21:00:05
海外ニュース Japan Times latest articles Daiya Seto emerges from scandal with focus on preparing for Tokyo Games https://www.japantimes.co.jp/sports/2021/04/17/more-sports/swimming/seto-scandal-tokyo-games/ Daiya Seto emerges from scandal with focus on preparing for Tokyo GamesRegardless of what has gone on outside the pool Daiya Seto has remained one of swimming s top stars and an athlete capable of representing Japan 2021-04-17 20:00:35
海外ニュース Japan Times latest articles Keep calm and tuck in: Tokyo discovers British cuisine isn’t just pie in the sky https://www.japantimes.co.jp/life/2021/04/17/food/tokyo-british-cuisine-boom/ Keep calm and tuck in Tokyo discovers British cuisine isn t just pie in the skyCritics have missed or chosen to stubbornly ignore Britain s glorious culinary renaissance Here are some of Tokyo s latest openings where you can get a taste 2021-04-17 19:03:30
ニュース BBC News - Home Prince Philip's funeral to mark his 'unwavering loyalty' https://www.bbc.co.uk/news/uk-56779068 windsor 2021-04-17 10:08:19
ニュース BBC News - Home Covid-19: Vaccine passports 'unethical', church leaders warn https://www.bbc.co.uk/news/uk-56781724 covid 2021-04-17 10:41:19
LifeHuck ライフハッカー[日本版] iPhoneやiPadのデータ使用量を節約する「省データモード」の使い方 https://www.lifehacker.jp/2021/04/how-to-use-low-data-mode-iphone-ipad.html iphone 2021-04-17 20:00:00
北海道 北海道新聞 火災報知機のカバー、複数外れる 4人死亡の消火設備事故 https://www.hokkaido-np.co.jp/article/534411/ 二酸化炭素 2021-04-17 19:03:00
北海道 北海道新聞 カーリング、道銀が練習公開 世界選手権前に https://www.hokkaido-np.co.jp/article/534410/ 世界選手権 2021-04-17 19:03:00
仮想通貨 BITPRESS(ビットプレス) [WIRED] コインベースの上場にみるビットコインのこれから、そして「資産」としての価値 https://bitpress.jp/count2/3_9_12435 wired 2021-04-17 19:03:21
仮想通貨 BITPRESS(ビットプレス) [CoinDesk Japan] トルコが暗号資産の決済利用を禁止、ビットコインは下落 https://bitpress.jp/count2/3_9_12434 coindeskjapan 2021-04-17 19:01:03

コメント

このブログの人気の投稿

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