投稿時間:2021-12-31 06:14:57 RSSフィード2021-12-31 06:00 分まとめ(22件)

カテゴリー等 サイト名等 記事タイトル・トレンドワード等 リンクURL 頻出ワード・要約等/検索ボリューム 登録日
TECH Engadget Japanese 2021年12月31日の話題、いきなり!ステーキの「肉マイレージマネー」が終了:今日は何の日? https://japanese.engadget.com/today-203003040.html 電子マネー 2021-12-30 20:30:03
AWS AWS Management Tools Blog Update your Amazon CloudWatch dashboards automatically using Amazon EventBridge and AWS Lambda https://aws.amazon.com/blogs/mt/update-your-amazon-cloudwatch-dashboards-automatically-using-amazon-eventbridge-and-aws-lambda/ Update your Amazon CloudWatch dashboards automatically using Amazon EventBridge and AWS LambdaAmazon CloudWatch lets customers collect monitoring and operational data in the form of logs metrics and alarms This allows for easy visualization and notifications regarding their workload health Amazon CloudWatch dashboards are customizable home pages in the CloudWatch console that you can use to monitor your resources in a single view even those resources that … 2021-12-30 20:58:01
python Pythonタグが付けられた新着投稿 - Qiita Python3.10で非同期処理を完了を待たないで実行 https://qiita.com/3w36zj6/items/f478a7838a9694ef59c9 Pythonで非同期処理を完了を待たないで実行完了を待たないで実行fireandforgetruninexecutorの引数はexecutorfuncargsになっているので、呼び出す関数を番目の引数、呼び出す関数に渡す引数を番目以降の可変長引数に渡します。 2021-12-31 05:21:53
AWS AWSタグが付けられた新着投稿 - Qiita AWS Lambdaで、クエリーパラメータから値を取得する https://qiita.com/hikotaro_san/items/0a8beced7863b724d6f9 AWSLambdaで、クエリーパラメータから値を取得するクエリーパラメータから値を取得するLambda関数に、以下のコードを追加します。 2021-12-31 05:56:00
Git Gitタグが付けられた新着投稿 - Qiita 【Git】VSCode上でgit commitを実行するとエラー発生。解決方法 https://qiita.com/Utsubo/items/c54cf38395825e5d817f 結果的には、コマンドラインでVSCodeを開くためのCodeコマンドがインストールされていなかったのが原因でした。 2021-12-31 05:25:10
海外TECH MakeUseOf How to Prevent Windows From Sleeping With Caffeine https://www.makeuseof.com/windows-caffeine-prevent-sleeping/ windows 2021-12-30 20:45:12
海外TECH MakeUseOf How to Bring Back the Windows 10 Context Menu to Windows 11 https://www.makeuseof.com/windows-11-bring-back-windows-10-context-menu/ menus 2021-12-30 20:15:12
海外TECH MakeUseOf How Much Does Spotify Pay Per Stream? https://www.makeuseof.com/how-much-spotify-pay-per-stream/ spotify 2021-12-30 20:00:43
海外TECH DEV Community Streaming Tweets with Go https://dev.to/fallenstedt/streaming-tweets-with-go-92p Streaming Tweets with GoBuilding with free APIs is a great way to teach yourself new skills in languages you like I ve always found APIs as an underrated way to learn something new Building with APIs brings challenges that force you to learn new parts of programming that video tutorials can not do Twitter s API s filtered stream endpoint allows you to filter the real time stream of public Tweets You can tap into twitter discussions by filtering tweets for specific attributes You can find the latest job postings monitor weather events or keep on top of trends In this article I will discuss how to create twitter rules and manage a stream with my open source library twitterstream This library was built for my project findtechjobs so I could find the latest tech jobs posted on twitter If you want a complete code example to get started head over to the examples on twitterstream Where do I start The first step is to create an app on Twitter Developers and obtain a set of consumer keys One you have an API key and an API secret key you can generate an access token with twitterstreamGenerate an Access TokenWe can use twitterstream to generate an access token This access token will be used to authenticate all network requests going forward In the code below we make a network request to twitter s oauth token endpoint with the The Basic HTTP Authentication Scheme Then we create an instance of twitterstream with our access token tok err twitterstream NewTokenGenerator SetApiKeyAndSecret YOUR KEY YOUR SECRET KEY RequestBearerToken Create an instance of twitter api api twitterstream NewTwitterStream tok AccessToken Set up Streaming RulesStreaming rules make your stream deliver relevant information The rules match a variety of twitter attributes such as message keywords hashtags and URLs Creating great rules is fundamental to having a successful twitter stream It s important to continue refining your rules as you stream so you can harvest relevant information Let s create a stream for software engineer job postings with twitterstream A valid job posting tweet should should be Posted in the english languageNot a retweetNot a reply to another tweetContain the word “hiring And contain the words “software developer or “software engineer The twitterstream package makes building rules easy We can use a NewRuleBuilder to create as many rules as the Twitter API allows for our consumer keys rules twitterstream NewRuleBuilder AddRule lang en is retweet is quote hiring software developer OR software engineer hiring software role Build res err api Rules Create rules false The first part is using twitterstream to create a NewRuleBuilder We pass in two arguments when we add our rule with AddRule The first is a long string with many operators Successive operators with a space between them will result in boolean AND logic meaning that Tweets will match only if both conditions are met For example cats dogs will match tweets that contain the words “cats and “dogs The second argument for AddRule is the tag label This is a free form text you can use to identify the rules that matched a specific Tweet in the streaming response Tags can be the same across rules Let s focus on the first argument Each operator does something unique The first is the single lang en which is BCP language identifier This filters the stream for tweets posted in the English language You can only use a single lang operator in a rule and it must be used with a conjunction Then we exclude retweets with is retweet We use NOT logic negation by including a minus sign in front of our operator The negation can be applied to words too For example cat meme grumpy will match tweets with the word cat meme and do not include the word “grumpy We also exclude quote tweets with is quote Quote tweets are tweets with comments and I ve found this operator very useful When I was building findtechjobs io I encountered a lot of people retweeting an article about automated hiring with their opinion These quote tweets cluttered my dataset with unrelated job postings I then narrow my stream of tweets to words that include hiring People who tweet about jobs would say “My team is hiring… or “StartupCo is hiring… Finally software developer OR software engineer is a grouping of operators combined with an OR logic Tweets will match if the tweet contains either of these words After we build our rules we create them with api Rules Create If you want to delete your rules you can use api Rules Delete with the ID of each rule you currently have You can find your current rules with api Rules Get You can learn more about rule operators here Additionally the endpoint that creates the rules is documented here Set the Unmarshal HookWe need to create our own struct for our tweets so we can unmarshal the tweet well Twitter s Filtered Stream endpoint allows us to fetch additional information for each tweet more on this later To allow us to find this data easily we need to create a struct that will represent our data model type StreamDataExample struct Data struct Text string json text ID string json id CreatedAt time Time json created at AuthorID string json author id json data Includes struct Users struct ID string json id Name string json name Username string json username json users json includes MatchingRules struct ID string json id Tag string json tag json matching rules Every tweet that is streamed is returned as a bytes by default We can turn our data into something usable by unmarshaling each tweet into the struct StreamDataExample It s important to set an unmarshal hook with SetUnmarshalHook so we can process bytes in a goroutine safe way api SetUnmarshalHook func bytes byte interface error data StreamDataExample if err json Unmarshal bytes amp data err nil fmt Printf failed to unmarshal bytes v err return data err If you are uncertain what your data model will look like you can always create a string from the slice of bytes api SetUnmarshalHook func bytes byte interface error return string bytes nil Starting a StreamAfter creating our streaming rules and unmarshal hook we are ready to start streaming tweets By default twitter returns a limited amount of information about each tweet when we stream We can request additional information on each tweet with a stream expansion streamExpansions twitterstream NewStreamQueryParamsBuilder AddExpansion author id AddTweetField created at Build StartStream will start the stream err api StartStream streamExpansions We first create some stream expansions with a NewStreamQueryParamsBuilder This builder will create query parameters to start our stream with Here we are adding two additional piece of information to each tweetAddExpansion author id will request the author s id for each tweet streamed This is useful if you are keeping track of users who are tweeting AddTweetField created at will request the time the tweet was tweeted This is useful if you need to sort tweets chronologically You can learn more about the available stream expansions hereThen we start the stream with our expansions using api StartStream This method will start a long running GET request to twitter s streaming endpoint The request is parsed incrementally throughout the duration of the network request If you are interested in learning more about how to consume streaming data from twitter then you should read their documentation Consuming Streaming Data Consuming the StreamEach tweet that is processed in our long running GET request is sent to a go channel We range over this channel to process each tweet and check for errors from twitter The stream will stop when we invoke api StopStream then we skip the remaining part of the loop return to the top and wait for aclose signal from the channel Start processing data from twitter after starting the stream for tweet range api GetMessages Handle disconnections from twitter if tweet Err nil fmt Printf got error from twitter v tweet Err Stop the stream and wait for the channel to close on the next iteration api StopStream continue result tweet Data StreamDataExample Here I am printing out the text You can send this off to a queue for processing Or do your processing here in the loop fmt Println result Data Text Twitter s servers attempt to hold the stream connection indefinitely The error from twitter is made available in the stream Disconnections can occur from several possible reasons A streaming server is restarted on the Twitter side This is usually related to a code deploy and should be generally expected and designed around Your account exceeded your daily monthly quota of Tweets You have too many active redundant connections More disconnect reasons can be found here Anticipating Disconnects from TwitterIt s important to maintain the connection to Twitter as long as possible because missing relevant information in your stream can create poor datasets It should be expected that disconnections will occur and reconnection logic be built to handle disconnections from twitterWe can build reconnection logic using twitterstream s api and a defer statement A full example of handling reconnects can be found here Below is a snippet This will run foreverfunc initiateStream fmt Println Starting Stream Start the stream And return the library s api api fetchTweets When the loop below ends restart the stream defer initiateStream defer initateStream Start processing data from twitter for tweet range api GetMessages if tweet Err nil fmt Printf got error from twitter v tweet Err api StopStream continue result tweet Data StreamDataExample fmt Println result Data Text fmt Println Stopped Stream After we have started the stream and before we start processing the tweets we defer the method itself This will handle reconnections to twitter whenever the messages channel closes Final ThoughtsI hope you find this library useful in streaming tweets from twitter Building this library was a challenge and I learned how Go s concurrency model works If you liked this post follow me on twitter as I document my journey in the software world 2021-12-30 20:29:58
Apple AppleInsider - Frontpage News iPhone 13 supply meeting demand, customers opting for higher-end models https://appleinsider.com/articles/21/12/30/iphone-13-supply-meeting-demand-customers-opting-for-higher-end-models?utm_medium=rss iPhone supply meeting demand customers opting for higher end modelsEstimated iPhone delivery times are increasingly pointed toward the lineup hitting supply demand balance according to investment bank JP Morgan iPhone Pro modelsIn a note to investors seen by AppleInsider JP Morgan lead analyst Samik Chatterjee analyzed iPhone and iPhone Pro lead times in the fifteenth week of availability Read more 2021-12-30 21:00:05
海外TECH Engadget Google Pixel 6 and 6 Pro update 'paused' to fix dropped calls https://www.engadget.com/google-pauses-pixel-6-pro-december-update-call-dropping-203048469.html?src=rss Google Pixel and Pro update x paused x to fix dropped callsBad news Pixel fans Google has confirmed it s pausing the Pixel and Pro December update over reports of call dropping and disconnecting As Droid Life reports the news explains why many Pixel owners haven t received the update over the past few weeks For the lucky few who managed to snag it and aren t having any issues Google says you can sit tight nbsp But for those those experiencing connectivity issues your only fix is to flash your phone to an earlier version of Android and perform a factory reset As always be sure to backup your device before attempting such a massive undertaking The December update was meant to add new features like ultra wideband on the Pixel Pro and Quick Tap to Snap for easily accessing Snapchat from your lockscreen Google says those features will make their way to the January fix nbsp The delay is something of a debacle for the company especially since the Pixel and Pro were meant to show off the combined power of Google s custom processor and software This probably isn t the best way to prove it could build the Android equivalent of an iPhone 2021-12-30 20:30:48
Linux OMG! Ubuntu! Firefox I Love You, But Shut Up — How to Disable Firefox Recommendations https://www.omgubuntu.co.uk/2021/12/disable-firefox-recommendations-mozilla-vpn Firefox I Love You But Shut Up ーHow to Disable Firefox RecommendationsBefore I get going let me say I think Firefox is a fantastic browser A ton of great people work on it It does some amazing things I d scare myself if I tried imagining what the modern web landscape would look like without it However…I m really sick of opening Firefox every morning and being smacked in the face by this I get it you have a VPN These days who doesn t But do I really need to be told about it every time I open the browser I m just a schmo trying to find out who s been eliminated from This post Firefox I Love You But Shut Up ーHow to Disable Firefox Recommendations is from OMG Ubuntu Do not reproduce elsewhere without permission 2021-12-30 20:13:09
海外科学 NYT > Science Deaths in 2021: Headline Names Against the Backdrop of Pandemic https://www.nytimes.com/2021/12/30/obituaries/deaths-in-2021-headline-names-against-the-backdrop-of-pandemic.html colin 2021-12-30 20:47:22
ニュース BBC News - Home Covid-19: Calls to give NHS staff priority access to lateral flow tests https://www.bbc.co.uk/news/uk-59826812?at_medium=RSS&at_campaign=KARANGA javid 2021-12-30 20:51:32
ニュース BBC News - Home Leicester City v Norwich City postponed because of Covid cases and injuries https://www.bbc.co.uk/sport/football/59833720?at_medium=RSS&at_campaign=KARANGA Leicester City v Norwich City postponed because of Covid cases and injuriesNorwich confirm their Premier League game at Leicester on Saturday is off after positive Covid cases and injuries within the Canaries squad 2021-12-30 20:28:15
ビジネス ダイヤモンド・オンライン - 新着記事 「駆け込み贈与」バブルに銀行・保険・証券が鼻息、贈与が絶好の営業チャンスである理由 - 有料記事限定公開 https://diamond.jp/articles/-/290175 生前贈与 2021-12-31 05:25:00
ビジネス ダイヤモンド・オンライン - 新着記事 2022年の「給料と雇用」、賃上げ率2%台乗せでも長期失業者が増えそうな理由 - 総予測2022 https://diamond.jp/articles/-/291175 人手不足 2021-12-31 05:20:00
ビジネス ダイヤモンド・オンライン - 新着記事 2022年の不動産価格、オフィス空室率上昇でも「底堅く推移」する理由 - 総予測2022 https://diamond.jp/articles/-/291174 商業施設 2021-12-31 05:15:00
ビジネス ダイヤモンド・オンライン - 新着記事 FRB「利上げ第1弾」は最速でいつ?日米欧2022年の金融政策を徹底予測 - 総予測2022 https://diamond.jp/articles/-/291173 中央銀行 2021-12-31 05:10:00
ビジネス ダイヤモンド・オンライン - 新着記事 トヨタがEV大攻勢でも、2022年は「ガソリン車大増産」が自動車産業の主戦場になる理由 - 総予測2022 https://diamond.jp/articles/-/291172 2021-12-31 05:05:00
北海道 北海道新聞 NPT会議、来夏の開催打診 2年超遅れ、核軍縮の停滞必至 https://www.hokkaido-np.co.jp/article/629076/ 感染拡大 2021-12-31 05:12:00
ビジネス 東洋経済オンライン ふるさと納税「強欲ポータルサイト」に高まる鬱憤 過熱するPR合戦に"流出自治体"や関係者は困惑 | 政策 | 東洋経済オンライン https://toyokeizai.net/articles/-/478689?utm_source=rss&utm_medium=http&utm_campaign=link_back 東洋経済オンライン 2021-12-31 05:30: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件)