IT |
ITmedia 総合記事一覧 |
[ITmedia News] 南硫黄島近くの新島は括弧型、国土地理院が大きさや形を解析 |
https://www.itmedia.co.jp/news/articles/2108/18/news159.html
|
itmedia |
2021-08-18 20:24:00 |
TECH |
Techable(テッカブル) |
自社サイトの閲覧者を可視化し、B2B企業の営業を効率化する「Quicker」 |
https://techable.jp/archives/160096
|
quicker |
2021-08-18 11:00:38 |
AWS |
AWS Japan Blog |
インターシステムズ Amazon HealthLakeとFHIR Works on AWS向けHL7変換サービスを発表 |
https://aws.amazon.com/jp/blogs/news/healthshare-message-transformation-service-for-amazon-healthlake/
|
AmazonHealthLakeAPIを使用すると、組織は既に保持している業界標準のFastHealthcareInteroperabilityResourcesHLFHIRによる医療データを、クラウド内の安全なデータレイクに簡単に保存できます。 |
2021-08-18 11:52:41 |
python |
Pythonタグが付けられた新着投稿 - Qiita |
Local Outlier Factor (LOF) の算出方法、スクラッチでの実装 |
https://qiita.com/tchih11/items/b4962b82f9ccfaba937f
|
AとB、AとE、それぞれについて上記のつの距離を計算し、それぞれのreachabilitydistancekを算出します。 |
2021-08-18 20:44:59 |
python |
Pythonタグが付けられた新着投稿 - Qiita |
リスト内包表記についての覚え |
https://qiita.com/omossan7182t/items/1064885048838312f6f9
|
原型シーケンスやイテレート可能なオブジェクトの要素を検討して、追加するかどうか判定を差し挟んでからリストに追加したい場合があるかもしれない。 |
2021-08-18 20:21:35 |
Program |
[全てのタグ]の新着質問一覧|teratail(テラテイル) |
venvにおけるライブラリの管理方法について |
https://teratail.com/questions/354999?rss=all
|
venvにおけるライブラリの管理方法について仮想環境を作成する為、pythonnbspmnbspvenvnbspvenvコマンドを打ち込み、その後pipnbspinstallnbspライブラリ名の形でライブラリをインストールしました。 |
2021-08-18 20:56:32 |
Program |
[全てのタグ]の新着質問一覧|teratail(テラテイル) |
Lisp m*nの乗算関数multiの作成 |
https://teratail.com/questions/354998?rss=all
|
Lispmnの乗算関数multiの作成前提・実現したいことClispでmnの乗算をチャーチ数を用いて作成しています発生している問題・エラーメッセージfuncallnbspnにおいて関数を渡したいのですが、方法が分かりません。 |
2021-08-18 20:54:46 |
Program |
[全てのタグ]の新着質問一覧|teratail(テラテイル) |
OpenAI Gym MultiDiscreteのaction |
https://teratail.com/questions/354997?rss=all
|
OpenAIGymMultiDiscreteのactionOpenAInbspGymのMultiDiscreteを使用したいのですが、うまく動作しません。 |
2021-08-18 20:47:55 |
Program |
[全てのタグ]の新着質問一覧|teratail(テラテイル) |
フォルダ内を一括処理して違うフォルダに入れたい |
https://teratail.com/questions/354996?rss=all
|
フォルダ内を一括処理して違うフォルダに入れたい前提・実現したいことフォルダ内の画像を一括処理で平滑化し新しいフォルダに保存させたいのですが、どうすればよいかわかりません。 |
2021-08-18 20:46:08 |
Program |
[全てのタグ]の新着質問一覧|teratail(テラテイル) |
LINE Messaging APIを使ってるときWebhook周りでエラーが起こった |
https://teratail.com/questions/354995?rss=all
|
LINEMessagingAPIを使ってるときWebhook周りでエラーが起こったこちらののLINE公式アカウントにLINEでテキストメッセージを送り、送信した内容と同じメッセージが返ってくることを確認します。 |
2021-08-18 20:40:43 |
Program |
[全てのタグ]の新着質問一覧|teratail(テラテイル) |
vscode ファイル 読み込めない |
https://teratail.com/questions/354994?rss=all
|
vscodeファイル読み込めない前提・実現したいこと・問題ファイルが認識されません・手順アヤメデータをネットから拾い、windowsのメモ機能にコピペしてファイルとして保存しました。 |
2021-08-18 20:38:50 |
Program |
[全てのタグ]の新着質問一覧|teratail(テラテイル) |
jpgファイルをリネームしたい |
https://teratail.com/questions/354993?rss=all
|
jpgファイルをリネームしたい前提・実現したいことあるディレクトリにあるjpgファイルをリネームしてSにアップロードしたい。 |
2021-08-18 20:34:39 |
Program |
[全てのタグ]の新着質問一覧|teratail(テラテイル) |
VAEの訓練データでのエラーについての解決方法を求めています。 |
https://teratail.com/questions/354992?rss=all
|
VAEの訓練データでのエラーについての解決方法を求めています。 |
2021-08-18 20:25:04 |
Program |
[全てのタグ]の新着質問一覧|teratail(テラテイル) |
なぜメモリが足りなくなるとフリーズするのでしょうか |
https://teratail.com/questions/354991?rss=all
|
理由 |
2021-08-18 20:19:20 |
Program |
[全てのタグ]の新着質問一覧|teratail(テラテイル) |
【firebase/firestore】リスナーのデタッチの確認方法について |
https://teratail.com/questions/354990?rss=all
|
onSnapshotを使用すると、リスナーのデタッチをすると思うんですが、きちんとデタッチできているか確認したいです。 |
2021-08-18 20:10:52 |
Program |
[全てのタグ]の新着質問一覧|teratail(テラテイル) |
EZRインストール時のパッケージ "effects" "insight" のインストールエラー |
https://teratail.com/questions/354989?rss=all
|
EZRインストール時のパッケージquoteffectsquotquotinsightquotのインストールエラー前提・実現したいこと実現したいことEZRnbspをインストールしたい環境macOSnbspBignbspSurnbspversionnbspnbspストレージnbspGBnbsp利用可能RStudionbspVersionnbspversionstringnbspRnbspversionnbspnbspnbspnicknamenbspnbspnbspnbspnbspnbspnbspKicknbspThingsnbspnbspnbspXQuartznbspnbspxorgservernbsp統計ソフトnbspEZRnbspのインストールをしたいと考えています。 |
2021-08-18 20:03:05 |
技術ブログ |
Developers.IO |
Pythonでリアクティブプログラミングしてみる |
https://dev.classmethod.jp/articles/try-rxpy/
|
ingisadeclarativeprogramm |
2021-08-18 11:01:00 |
海外TECH |
Ars Technica |
Not-a-Linux distro review: SerenityOS is a Unix-y love letter to the ‘90s |
https://arstechnica.com/?p=1787896
|
prime |
2021-08-18 11:10:42 |
海外TECH |
DEV Community |
Page Object Model in Cypress |
https://dev.to/automationbro/page-object-model-in-cypress-h9i
|
Page Object Model in CypressIn this tutorial we will cover how to setup Page Object Model in Cypress We will also cover why Cypress team suggests not to use Page Object Model What is Page Object Model POM POM is a popular design pattern that helps in reducing code duplication and improves test maintenance You do that by storing page related elements in a separate file which gets called by your tests Why NOT to use POM per Cypress In an article published by Cypress team back in they pointed out that instead of using POM you should rather use App Actions What are App Actions Instead of interacting through the UI App Actions lets you dispatch actions directly through the application internal logic by using the window Cypress object This way you end up saving a lot more time by setting your app in a certain state rather than getting to that state via UI For ex Use App actions to set your app in a logged in state if you need a user that needs to do something after it s logged in Traditionally you would use UI to first login and then execute your test My OpinionI personally feel you can use both use Page objects to store page related details and also access Application code to speed up your tests as well if that is an option for you Cypress works best if you have access to your code base and you are testing application in the pre PROD mode dev qa stage For example in my test app it s a Wordpress application and I don t have access to the application code so I cant use App actions but I can still go ahead and use POM How to setup POM in Cypress Setting up POM in Cypress is pretty straightforward you just need to setup a class that contains your web elements and page methods Let s take a look at an example In the screenshot above I have created a HomePage class with getter functions that are calling the web elements using Cy get And it also has a page method that is going to the base url of the website Calling Page class in the testsNow to access the Page related elements and methods you can simply import it your test file and call the relevant method HomePage visitPage HomePage getStartedBtn click ConclusionSetting up POM is a common design pattern in the test automation industry so as long as you implement it correctly I personally don t see any harm in NOT using POM At the same time I agree with Cypress team regarding App Actions as that can significantly improve your tests speed as well as stability Check out the video below to learn more about how to setup POM in Cypress Subscribe to my mailing list to get access to more content like this as well as free access to a Private Facebook communityYou can follow my content here as well TwitterLinkedIn I love coffees And if this post helped you out and you would like to support my work you can do that by clicking on the button below and buying me a cup of coffee You can also support me by liking and sharing this content Thanks for reading |
2021-08-18 11:45:16 |
海外TECH |
DEV Community |
😱 Make a Random Meme API With Node.js and Puppeteer |
https://dev.to/maxprogramming/make-a-random-meme-api-with-node-js-and-puppeteer-4h4b
|
Make a Random Meme API With Node js and Puppeteer Hello thereToday s article is all about how you can make a Random Meme API using Node js and web scraping We ll be using Fastify for our API and we ll be using Puppeteer to scrape the web and get the random meme This random meme API was inspired by the same kind of API here But I wanted to build it using Node js and Puppeteer We ll be scraping Memedroid using the Puppeteer NPM package Initializing the projectFirst of all we ll need to create a folder with the name we want and we ll need to initialize our Node js app in that folder We do it using this command npm init yThen we need two dependencies to install simply install puppeteer and fastify npm i puppeteer fastify Using Fastify for APIAfter we have our project set up and our dependencies installed we re good to go with writing the code Create an index js file and import fastify with this code to create the server const fastify require fastify logger true const start async gt try await fastify listen catch err fastify log error err process exit start Once this thing is done when we run the app using node index our app will be running on port But let s create the base route for it fastify get async request reply gt reply send hello world Getting the random meme using PuppeteerHere comes the fun part now We ll open the web browser and get all the images from memedroid and we ll do all of it through code With the puppeteer package Chromium also comes installed to scrape the web That s why it might have taken time for you to get installedTo skip Chromium download you can use puppeteer core package and add the path to your Chrome file following the docs We ll create a function to get all memes and then we ll pick a random one in the route async function getAllMemes const URL const browser await puppeteer launch headless true launch browser const page await browser newPage open a page await page goto URL go to the page We simply launch the browser and open the page for memedroid in this code Now let s get all the lt img gt tags which are in the lt div gt with the class of item aux container That s where all the memes live in As in the above image inside of each lt article gt tag the div with that class exists so we simply get it using the eval method on the page This method takes two arguments SelectorCallback function with the element s const allImages await page eval div item aux container img src imgs gt We will map over the images in the callback function and we ll return only the URL of the image from getting the src attribute And this is how we do it We check if the src attribute starts with http and ends with jpeg and we return that if it does const allImages await page eval div item aux container img src imgs gt imgs map img gt if img getAttribute src startsWith http amp amp img getAttribute src endsWith jpeg return img getAttribute src Unfortunately that also returns to us null if that s not the case so we filter out the nulls using the filter method const imgs allImages filter img gt img null Once all that work is done we close the browser and return the array of images this is how the whole function looks like async function getAllMemes const URL const browser await puppeteer launch headless true const page await browser newPage await page goto URL const allImages await page eval div item aux container img src imgs gt imgs map img gt if img getAttribute src startsWith http amp amp img getAttribute src endsWith jpeg return img getAttribute src const imgs allImages filter img gt img null NEW LINES await browser close return imgs Using Fastify to send the random memeFinally we will pick a random meme and send it to the user using this codefastify get async request reply gt const memes await getAllMemes const randomNumber Math round Math random memes length reply send memeUrl memes randomNumber Now whenever the user visits localhost they get this We have our app done Thanks for reading You can find all the code here I hope you liked it Comment down your thoughts There is always room for improvement so let me know your suggestions on this project Connect with me on my YouTube channel and my Twitter Until next time keeping awesome ️ |
2021-08-18 11:27:51 |
Apple |
AppleInsider - Frontpage News |
T-Mobile data breach hit 47.8 million accounts, most not current customers |
https://appleinsider.com/articles/21/08/18/t-mobile-data-breach-hit-478-million-accounts-most-not-current-customers?utm_medium=rss
|
T Mobile data breach hit million accounts most not current customersOf the total million people whose data was stolen in the T Mobile server attack more than million of them are former and prospective T Mobile customers ーand the company claims no financial information was compromised T MobileFollowing the reported hack of T Mobile where information regarding million customers was stolen the company has issued a preliminary report Saying that it s investigation is urgently continuing the Additional Information report reveals that more users were affected than previously believed Read more |
2021-08-18 11:40:19 |
海外TECH |
Engadget |
ASUS updates its ROG Phone series with Qualcomm’s newest mobile processor |
https://www.engadget.com/asus-rog-phone-5s-pro-114320612.html?src=rss
|
ASUS updates its ROG Phone series with Qualcomm s newest mobile processorASUS is updating its range of ROG gaming phones at a fast clip to keep up with the latest processor advancements The new ROG Phone S and S Pro the fifth and latest additions to the high end lineup pack Qualcomm s fresh Snapdragon G chipset a beefed up version of the base found inside predecessor the ROG Phone It s not the first phone to get the processor though That accolade went to the Xiaomi Mi Mix In fact we knew the was coming to the ROG phone Qualcomm listed ASUS gaming handset as a partner earlier this summer along with devices from Vivo Honor and Motorola The processor itself promises a clock speed boost from a peak GHz to nearly GHz courtesy of its Kryo CPU architecture It also boasts a percent AI improvement with up to TOPS AI performance All of which is to say it s a natural fit for a premium gaming phone ASUSBeyond the upgraded chipset the new ROG phones sport the same inch Hz display mAh battery and triple rear cameras with a megapixel main sensor as their predecessor Additional updates include a more responsive Hz touch sampling rate which still doesn t match the Hz responsiveness of Lenovo s Legion Phone Duel and a max GB and GB storage on the S Pro You can also expect ultrasonic sensors for the AirTrigger buttons and grip press detection According to Gizmochina the two phones are currently only available to pre order in ASUS native Taiwan ahead of an August th shipping date The S costs based on RAM and storage and the S Pro costs |
2021-08-18 11:43:20 |
海外TECH |
Engadget |
The Morning After: Fortnite’s new game mode sounds a lot like ‘Among Us’ |
https://www.engadget.com/the-morning-after-fortnites-new-game-mode-looks-a-lot-like-among-us-111550717.html?src=rss
|
The Morning After Fortnite s new game mode sounds a lot like Among Us Epic Games latest addition to Fortnite is called Imposters and it helps players scratch their Among Us itch without well playing Among Us Each match features two teams of eight agents and two imposters There s a new level to play ーone that looks incredibly similar in structure to an existing Among Us level Hmmm This is Fortnite s second attempt at an Among Us ish nbsp mode ーremember last year s The Spy Within ーbut it s a smart move because it doesn t center on gunplay or shooting skills For those reasons Among Us swiftly became one of my favorite games to play online during the pandemic with non gamer friends Anything but more Zoom quizzes right As an imposter aka the fun part of the game you can make agents and imposters temporarily look like Fortnite s mascot Peely as well as teleport everyone to a different location on the map And like in Among Us you have the power to freeze any assignments other players are working on The developers of Among Usreacted as you might expect ーMat SmithSwiss university claims it broke the record for Pi calculation trillion digits of Pi Most people know the value of Pi as but it s gotten longer and longer over the years Now a team from the University of Applied Sciences Graubünden in Switzerland claims it has broken the world record for computing the mathematical constant If confirmed it d blow the current record holder Timothy Mullican out of the water He calculated up to trillion digits and was recognized for his work last year The team in Switzerland however reached trillion digits Guinness has yet to confirm the new record but after it does the university plans to publish the new and expanded value of Pi Continue reading Activision drops Call of Duty Vanguard teaser ahead of official revealIt will launch within Warzone on August th Activision has released a teaser trailer for its upcoming Call of Duty installment Vanguard It features elements clearly indicating the game is set during World War II It shows old weapons a German forest and a beach littered with the remains of planes from the era Activision plans to officially launch Vanguard during an in game event within Call of Duty Warzone its free to play battle royale title The event Battle of Verdansk starts at AM PT PM ET on August th ーthat s tomorrow nbsp Continue reading Watch these robots tackle parkourBoston Dynamics robots are learning parkour now Boston DynamicsThe now Hyundai owned robot company has shared a new video showing its humanoid bots successfully completing a parkour routine that included vaulting beams and even a backflip Watch here Google Pixel a review The a G wasn t broken so Google didn t fix itIt s a lot of the same stuff Terrence O Brien EngadgetBefore the Pixel breaks cover how about a newer midrange Pixel phone Yes as predicted Google s Pixel a has appeared and we ve given it a full review If you liked what you heard about its predecessor the Pixel a G then there are not many surprises It s largely the same phone but this time packing water resistance Terrence O Brien tests everything out ーincluding what seems to be a very impressive battery life Continue reading Scuf Gaming s new Xbox Series X S controllers might beat Microsoft s ownThey re not cheap though Kris Naudus EngadgetWelcome to the world of luxury gamepads Scuf a brand that once collaborated with Microsoft on an official high end gamepad has now tackled the Xbox Series X S with the new Instinct and Instinct Pro controllers They bring back fan favorite features like an interchangeable faceplate while also improving the buttons and switches Kris Naudus tests out some luxurious controllers aimed at the professional gamer ーor at least the very serious ones nbsp Continue reading Watch the trailer for the new Star Wars anime anthologyIt hits Disney on September nd LucasfilmDisney previously offered a behind the scenes look at its anime series and now it has revealed the first trailer You can watch it in either the original Japanese with subtitles or an English dub Expect to see droids lightsabers Stormtroopers and more The nine episode run starts next month Watch here The best Nintendo Switch accessories you can buyWe cover the Switch Lite too So you have a Switch You ve got the games but you need a case Or another controller or simply more storage space Don t worry we ve got you covered Here s the best ways to upgrade Nintendo s hybrid console ーbefore that OLED option even lands Continue reading The big news you might have missedNura s newest wireless earbuds are only available through a subscriptionQualcomm unveils its first G capable reference droneTimbuk made some dedicated gamer bags with Astro Loupedeck Live is a compelling alternative to Elgato s Stream DeckEngadget Deals Apple s MacBook Pro M is off right now at Amazon Carpool Karaoke is returning from a pandemic hiatus and moving to Apple TV |
2021-08-18 11:15:50 |
海外TECH |
Engadget |
BlackBerry QNX flaw left cars and medical devices vulnerable to attack |
https://www.engadget.com/blackberry-qnx-cars-medical-devices-vulnerable-110746229.html?src=rss
|
BlackBerry QNX flaw left cars and medical devices vulnerable to attackA major vulnerability affecting older versions of BlackBerry s QNX operating system could allow hackers to gain control of a variety of products including cars and medical devices Apparently some older versions of QNX have a BadAlloc vulnerability which gives bad actors a way to attack systems remotely The infiltrators could then execute a denial of service attack or execute arbitrary code BlackBerry the FDA and US Homeland Security s Cybersecurity and Infrastructure Security Agency CISA have issued advisories about the flaw According to Politico though BlackBerry originally didn t want to go public about it and kept it a secret for months The company reportedly told CISA that it didn t believe its OS was affected by BadAlloc which is a group of memory allocation vulnerabilities Microsoft found in April affecting a wide range of industrial medical and enterprise networks A number of companies publicly revealed being affected by the flaw shortly after Microsoft s report came out but BlackBerry wasn t one of them Politico says it was CISA that confirmed that some older QNX versions are indeed affected by BadAlloc and it was the agency that eventually convinced the company to go public Apparently the agency was worried that most QNX users wouldn t even know their systems are affected because BlackBerry licenses the OS to manufacturers The company originally wanted to privately reach out to those customers about the issue but that means end users won t find out unless manufacturers tell them as well In the end CISA was able to convince BlackBerry that a public announcement is the best course of action In its notice BlackBerry said it s quot not aware of any exploitation of this vulnerability quot Both the company and CISA are advising organizations using QNX for their products to roll out updates that will patch the flaw regardless The FDA also issued a warning specifically for medical devices running the OS though it said it wasn t aware of any confirmed events related to BadAlloc |
2021-08-18 11:07:46 |
ニュース |
BBC News - Home |
I don't believe Taliban pledge on women's rights, Priti Patel says |
https://www.bbc.co.uk/news/uk-58250211
|
afghans |
2021-08-18 11:29:38 |
ニュース |
BBC News - Home |
Sean Lock: Comedian and 8 Out of 10 Cats captain dies aged 58 |
https://www.bbc.co.uk/news/entertainment-arts-58254859
|
captain |
2021-08-18 11:48:30 |
ニュース |
BBC News - Home |
Gurkha back at Downing Street hunger strike after being taken ill |
https://www.bbc.co.uk/news/uk-england-hampshire-58254634
|
health |
2021-08-18 11:48:52 |
ニュース |
BBC News - Home |
Scottish public spending deficit doubles to £36bn |
https://www.bbc.co.uk/news/uk-scotland-58256028
|
covid |
2021-08-18 11:35:51 |
ニュース |
BBC News - Home |
The Hundred: Pick your men's team of the tournament |
https://www.bbc.co.uk/sport/cricket/58249126
|
hundred |
2021-08-18 11:19:04 |
ニュース |
BBC News - Home |
Covid rules: What are the restrictions in your area? |
https://www.bbc.co.uk/news/uk-54373904
|
coronavirus |
2021-08-18 11:37:39 |
サブカルネタ |
ラーブロ |
KÜCHE@自宅(つけ麺KURO) |
http://feedproxy.google.com/~r/rablo/~3/GmI1IMyyQhM/single_feed.php
|
東淀川区 |
2021-08-18 14:00:00 |
北海道 |
北海道新聞 |
10月電気料金、全社値上げ LNG上昇、ガス4社も |
https://www.hokkaido-np.co.jp/article/579528/
|
電気料金 |
2021-08-18 20:14:00 |
仮想通貨 |
BITPRESS(ビットプレス) |
GMOコイン、8/18より現物取引サービスにて「ステラルーメン(XLM)」の取扱開始 |
https://bitpress.jp/count2/3_10_12708
|
現物取引 |
2021-08-18 20:53:26 |
IT |
週刊アスキー |
キミのネタがスタンプに!?“『三國志 覇道』夏の大喜利コンテスト”を開催 |
https://weekly.ascii.jp/elem/000/004/066/4066336/
|
戦略シミュレーションゲーム |
2021-08-18 20:15:00 |
コメント
コメントを投稿