AWS |
AWS Machine Learning Blog |
Prepare training and validation dataset for facies classification using Snowflake integration and train using Amazon SageMaker Canvas |
https://aws.amazon.com/blogs/machine-learning/prepare-training-and-validation-dataset-for-facies-classification-using-snowflake-integration-and-train-using-amazon-sagemaker-canvas/
|
Prepare training and validation dataset for facies classification using Snowflake integration and train using Amazon SageMaker CanvasThis post is co written with Thatcher Thornberry from bpx energy nbsp Facies classification is the process of segmenting lithologic formations from geologic data at the wellbore location During drilling wireline logs are obtained which have depth dependent geologic information Geologists are deployed to analyze this log data and determine depth ranges for potential facies of interest from … |
2023-05-17 18:57:32 |
海外TECH |
Ars Technica |
New animal family tree places us closer to weird disk-shaped organisms |
https://arstechnica.com/?p=1939927
|
nervous |
2023-05-17 18:38:14 |
海外TECH |
MakeUseOf |
8 Ways AI Chatbots Are Impacting Content Creation |
https://www.makeuseof.com/ways-ai-chatbots-impact-content-creation/
|
chatbots |
2023-05-17 18:45:18 |
海外TECH |
MakeUseOf |
How the Amazon Echo Link Can Bring Any Stereo System Into the Alexa Age |
https://www.makeuseof.com/amazon-echo-link-overview/
|
smart |
2023-05-17 18:30:18 |
海外TECH |
MakeUseOf |
5 Common Issues With File History on Windows 10 and How to Troubleshoot Them |
https://www.makeuseof.com/common-issues-file-history-windows-10/
|
encounter |
2023-05-17 18:15:18 |
海外TECH |
DEV Community |
Make images responsive to light/dark mode on GitHub |
https://dev.to/mateusabelli/make-images-responsive-to-lightdark-mode-on-github-3gbg
|
Make images responsive to light dark mode on GitHub IntroductionHello there today I d like to share with you something that I ve been using lately on my READMEs to have my images responsive the light or dark modes It s a very simple feature on GitHub but not many people know about it DemonstrationHere is the result on my new open source project pr tracker How to use itTo use this feature you are going to need to have two images or URL pointing at your light and dark image versions In my example I had the following github ├ーdemo dark png├ーdemo light pngwith MarkdownIf you prefer to add your images with Markdown all you need to do is to append gh dark mode only or gh light mode only at the end of the URL Like this Demo Light github demo dark png gh dark mode only Demo Dark github demo light png gh light mode only with HTMLOr you can use the lt picture gt tag with the new media feature specifying the value prefers color scheme dark or prefers color scheme light like this lt picture gt lt source srcset github demo dark png media prefers color scheme dark gt lt source srcset github demo light png media prefers color scheme light prefers color scheme no preference gt lt img src github demo light png gt lt picture gt SourcesI didn t figured this on my own the first time I learned about this feature was through the github readme stats project under the responsive card theme section it showed examples that I ve used in my profile README and I ve been also using on repositories as well The cover image used belongs to the first link below Useful links QuestionsHave you ever seen this feature before Have you ever used this before Do you have plans to apply this feature somewhere Thanks for reading Have a nice day |
2023-05-17 18:26:06 |
海外TECH |
DEV Community |
Build a Blog using Next.JS and DEV.to |
https://dev.to/martinp/build-a-blog-using-nextjs-and-devto-15a5
|
Build a Blog using Next JS and DEV toIn this article you will learn how to build a Next JS blog by fetching your Posts directly from DEV to I received an incredible feedback from my Post Use Notion as a database for your Next JS Blog thanks from all of you I even saw the Post on the front page of daily dev Today I wanted to share with you how I built my Personal Blog under an hour by using the DEV to API Let s get started Create a new Next JS AppStart by using the create next app utility using your favorite package manager npx create next app latest yarn create next app pnpm create next appCheck for everything We want linting typings and obviously the App Router I also highly recommend to use the src folder Install dependenciesYou will need dependencies remark We will use it to parse our Posts Markdownremark html A Remark plugin to transform our Markdown into HTMLrehype A library to process and extend HTMLrehype highlight A Rehype plugin to plug highlight js to highlight our coderehype slug A Rehype plugin that adds ids to our Post titles anchors jsdevtools rehype toc A Rehype plugin that generates a table of content based on our Post titlesrehype stringify A Rehype plugin that transform our Rehype output into a Stringremark rehype A Remark plugin to use Remark and Rehype in symbioseunified The library to make easy to use all thoses plugins together npm install remark remark html rehype rehype highlight rehype slug jsdevtools rehype toc rehype stringify remark rehype unified yarn add remark remark html rehype rehype highlight rehype slug jsdevtools rehype toc rehype stringify remark rehype unified Fetch from DEV toDEV to provide a wonderful Public API that does not require any authentication you can find the official documentation here In our case we will need two things Fetching our Posts api articles username lt username gt Fetching a specific Post api articles lt username gt lt post slug gt Add environment variablesIt is a good practice to avoid hardcoding values in case you want to change your username or open source your blog Add your DEV to username in env local to avoid hardcoding it DEVTO USERNAME martinp Add typingsLet s add some typings to type the response of the DEV to API in src lib devto types ts src lib devto types tsexport type User user id number name string username string twitter username string null github username string null website url string null profile image string profile image string export type Post type of string id number title string description string readable publish date string slug string path string url string comments count number collection id number null published timestamp string positive reactions count number cover image string null social image string canonical url string created at string edited at string crossposted at string null published at string last comment at string reading time minutes number tag list string tags string user User export type PostDetails Post amp body html string body markdown string tags string I manually made thoses types and they maybe does not exactly match the actual API feel free to update them Create the fetching functionsNext create a new file src lib devto fetch ts it will contains the functions that will fetch the API It is a good practice to separate them from your App to make them easily reusable src lib devto fetch tsimport notFound from next navigation import Post PostDetails from types export async function fetchPosts Promise lt Post gt const res await fetch process env DEVTO USERNAME next revalidate if res ok notFound return res json export async function fetchPost slug string Promise lt PostDetails gt const res await fetch process env DEVTO USERNAME slug next revalidate if res ok notFound return res json Notice that we add the parameter revalidate By default the fetch function extended by Next JS will cache everything It will make your Blog blazingly fast but we also want to keep our Blog up to date With this parameter we tell Next JS to revalidate the cache every hours notFound acts like a return and will show the not found tsx page More information here Create the render functionNow let s create a function to render the content of your Posts by using Remark Rehype and all the plugins src lib markdown tsimport toc from jsdevtools rehype toc import rehypeHighlight from rehype highlight import rehypeSlug from rehype slug import rehypeStringify from rehype stringify import remarkRehype from remark rehype import remarkParse from remark parse import unified from unified export function renderMarkdown markdown string Promise lt string gt return unified use remarkParse use remarkRehype use rehypeHighlight ignoreMissing true use rehypeSlug use rehypeStringify use toc headings h h h process markdown then res gt res toString Create the pagesNow that you have everything in place to fetch your posts it is time to create the pages The Posts pageIt can t be simpler simply use your fetchPosts function and show them src app blog page tsximport fetchPosts from lib devto fetch export default async function Page const posts await fetchPosts return lt div className grid grid cols md grid cols gap py gt posts map post gt lt Link href blog post slug gt post title lt Link gt lt div gt The Post pageCreate a new page with a dynamic segment for our slug src app blog slug page tsx Use the parameters to fetch the post and use the renderMarkdown function to transform your Markdown into HTML You can also add generateMetadata to set the title and the description using the data of your Post src app blog slug page tsximport highlight js styles github dark css Import your favorite highlight js themeimport fetchPost fetchPosts from lib devto fetch import renderMarkdown from lib markdown export async function generateMetadata params params slug string const title description await fetchPost params slug return title description export default async function Page params params slug string const body markdown await fetchPost params slug const content await renderMarkdown body markdown return lt gt lt article gt lt div dangerouslySetInnerHTML html content gt lt article gt lt gt Notice that you are calling twice the fetchPost method so are you fetching twice No It uses the cache you can verify it when running the dev server you should see cache HIT And you know what is reaaaally cool Navigate to the list of your posts and hover the links you should see in your console your blog slug pages pre rendering to predict the user navigation Going furtherUse next sitemap to generate your SitemapAdd vercel analytics to gather analytics from your blogUse tailwindcss typography to easily style the content of your postsI hope that this post motivated you to build an incredible blog Share your work in the comment section Oh and if you want more content like this follow me DEV toTwitter |
2023-05-17 18:04:10 |
Apple |
AppleInsider - Frontpage News |
Your ISP's Wi-Fi router is probably cheating you out of some Internet speed |
https://appleinsider.com/articles/23/05/17/your-isps-wi-fi-router-is-probably-cheating-you-out-of-some-internet-speed?utm_medium=rss
|
Your ISP x s Wi Fi router is probably cheating you out of some Internet speedDespite Wi Fi performance still lagging far behind Ethernet performance in homes it appears there s hope for the future from what some might consider an unlikely source ーthe internet service providers Netgear Orbi ProIn an in depth look at Wi Fi performance in homes all across the globe Ookla found that overall Wi Fi performance is still trailing what homes are getting from ethernet connections In fact the disparity between the two can be between around to Read more |
2023-05-17 18:28:51 |
海外TECH |
Engadget |
Astronomers identify volcano-covered planet that could have water on its surface |
https://www.engadget.com/astronomers-identify-volcano-covered-planet-that-could-have-water-on-its-surface-185050937.html?src=rss
|
Astronomers identify volcano covered planet that could have water on its surfaceAstronomers have found a planet they believe is blanketed by active volcanoes In a study published Tuesday in the journal Nature a multi national team of scientists said they discovered an Earth sized exoplanet they believe may have water on part of its surface The boringly named LP d sadly no one thought to call it Mustafar is located about light years from Earth in the Crater constellation LP d orbits a red dwarf it is tidally locked to meaning the planet doesn t have a day and night cycle like Earth Instead one part of LP d is constantly scorched by sunlight while the other is always in darkness “The day side would probably be too hot for liquid water to exist on the surface But the amount of volcanic activity we suspect occurs all over the planet could sustain an atmosphere which may allow water to condense on the night side Björn Benneke one of the astronomers who studied the planet told NASA s Jet Propulsion Laboratory The LP system contains at least two other planets called LP b and c The latter is two and a half times larger than Earth and more than seven times its mass It also affects the orbit of LP d making it travel along an elliptical path around the system s sun That path means LP d is deformed every time it completes an orbit “These deformations can create enough internal friction to substantially heat the planet s interior and produce volcanic activity at its surface according to NASA “A big question in astrobiology the field that broadly studies the origins of life on Earth and beyond is if tectonic or volcanic activity is necessary for life study co author Jessie Christiansen said “In addition to potentially providing an atmosphere these processes could churn up materials that would otherwise sink down and get trapped in the crust including those we think are important for life like carbon NASA ESA and CSA already plan to turn the James Webb Space Telescope s infrared imaging instruments on LP c The team that discovered LP d thinks the exoplanet would make for an “exceptional candidate for atmospheric studies by the mission Notably the retired Spitzer Space Telescope helped spot LP d before NASA decommissioned it in This week the US Space Force awarded a grant to explore the feasibility of bringing the telescope out of retirement This article originally appeared on Engadget at |
2023-05-17 18:50:50 |
海外TECH |
Engadget |
You can preorder Analogue’s TurboGrafx-inspired Duo console this Friday |
https://www.engadget.com/you-can-preorder-analogues-turbografx-inspired-duo-console-this-friday-182539002.html?src=rss
|
You can preorder Analogue s TurboGrafx inspired Duo console this FridayAnalogue s universally compatible TurboGrafx console the Duo will finally be available for preorders later this week on May th The company made the reveal on Twitter and also noted that preorders begin sharply at AM PDT These kinds of niche gaming consoles tend to sell out of preorders quickly so set your alarm There s a spot of bad news to go along with the announcement The Analogue Duo was first revealed all the way back in and was set to launch for The updated price tag is now For the price you do get an all in one system that promises to play every single TurboGrafx PC Engine title thanks to dual media readers that play both the originally manufactured cartridges and the compact discs that came later The console even runs games that require the Arcade RAM add on that comprised the unsuccessful SuperGrafx console that was only released in Japan The Duo includes some modern bells and whistles like an HDMI port p resolution an SD card slot two USB ports for wired controllers and Bluetooth for wireless accessories The console doesn t come with a controller though it works with plenty of budget friendly offerings by BitDo and others To the uninitiated the TurboGrafx called the PC Engine in Japan was a competitor to the NES and SNES that saw some success in its home country but only modest sales in the US Despite never reaching the heights of Sega and Nintendo the console holds a place in the hearts of retro gamers thanks to a robust library of hundreds of titles Just like all Analogue consoles the Duo isn t an emulation machine as it features near identical internal components that integrate with physical media The company has made popular recreations of many iconic consoles including the Pocket device that plays games from nearly every retro portable console This article originally appeared on Engadget at |
2023-05-17 18:25:39 |
海外TECH |
Engadget |
BlizzCon returns as an in-person event later this year |
https://www.engadget.com/blizzcon-returns-as-an-in-person-event-later-this-year-180934125.html?src=rss
|
BlizzCon returns as an in person event later this yearFour years after the last in person edition a full on version of BlizzCon has been scheduled for later this year Blizzard s fan convention will take place at its long standing Anaheim Convention Center home on November rd and th More details will be revealed next month including ticket information though hotel blocks are already open As always some of the panels will be livestreamed including the opening ceremony A lot has changed since BlizzCon Of course the COVID pandemic upended everything and BlizzCon has beenonhiatus save for a virtual edition that took place in early ever since nbsp In the interim Blizzard has faced accusations of fostering a toxic work culture BlizzCon is saddled with its own baggage and the company has yet to detail the safety policies that will be in place at this year s event Reports also suggest there may be an exodus of Blizzard developers due to the publisher s return to office policy Nevertheless the studio will surely have news and updates to share for its various franchises at BlizzCon including Warcraft Overwatch and Diablo BlizzCon will likely host some esports events as well This article originally appeared on Engadget at |
2023-05-17 18:09:34 |
海外科学 |
NYT > Science |
This Spider Is Imperfect, and That May Be the Secret of Its Survival |
https://www.nytimes.com/2023/05/17/science/jumping-spider-mimic-ant.html
|
This Spider Is Imperfect and That May Be the Secret of Its SurvivalA colorful jumping spider mimics multiple species of ants and its repertoire of impressions seems to help it scare off one of its fiercest predators |
2023-05-17 18:16:02 |
海外科学 |
NYT > Science |
Canada’s Wildfires Have Been Disrupting Lives. Now, Oil and Gas Take a Hit. |
https://www.nytimes.com/2023/05/17/climate/canada-wildfires-fracking-oil-gas.html
|
menace |
2023-05-17 18:23:15 |
海外科学 |
NYT > Science |
Heat Will Likely Soar to Record Levels in Next 5 Years, WMO Says |
https://www.nytimes.com/2023/05/17/climate/record-heat-forecast.html
|
Heat Will Likely Soar to Record Levels in Next Years WMO SaysThe World Meteorological Organization forecast “far reaching repercussions for health food security water management and the environment |
2023-05-17 18:10:38 |
海外科学 |
NYT > Science |
EPA Announces Crackdown on Toxic Coal Ash From Landfills |
https://www.nytimes.com/2023/05/17/climate/epa-coal-ash-landfills.html
|
health |
2023-05-17 18:37:04 |
海外TECH |
WIRED |
The US Post Office Is Spying on the Mail. Senators Want to Stop It |
https://www.wired.com/story/usps-mail-surveillance-letter/
|
lawmakers |
2023-05-17 18:05:38 |
ニュース |
BBC News - Home |
Harry and Meghan in 'near catastrophic' car chase - spokesperson |
https://www.bbc.co.uk/news/world-us-canada-65625886?at_medium=RSS&at_campaign=KARANGA
|
awards |
2023-05-17 18:37:50 |
ニュース |
BBC News - Home |
Ivan Toney banned: Brentford striker suspended for eight months over betting |
https://www.bbc.co.uk/sport/football/65626690?at_medium=RSS&at_campaign=KARANGA
|
Ivan Toney banned Brentford striker suspended for eight months over bettingBrentford striker Ivan Toney is banned from football for eight months after he accepted breaking Football Association betting rules |
2023-05-17 18:20:11 |
ニュース |
BBC News - Home |
Prince Harry case told MGN knew about phone hacking |
https://www.bbc.co.uk/news/uk-65626056?at_medium=RSS&at_campaign=KARANGA
|
practices |
2023-05-17 18:43:03 |
ビジネス |
ダイヤモンド・オンライン - 新着記事 |
中国の回復早くも変調、世界経済の先行きに暗雲 - WSJ PickUp |
https://diamond.jp/articles/-/323048
|
wsjpickup |
2023-05-18 03:50:00 |
ビジネス |
ダイヤモンド・オンライン - 新着記事 |
原油相場は買い材料も売り相場もめじろ押し、4月高値から下落の行く末は? - マーケットフォーカス |
https://diamond.jp/articles/-/323049
|
一進一退 |
2023-05-18 03:45:00 |
ビジネス |
ダイヤモンド・オンライン - 新着記事 |
FRB利上げ休止の賛否、連銀総裁らが論戦 - WSJ PickUp |
https://diamond.jp/articles/-/323042
|
wsjpickupfrb |
2023-05-18 03:40:00 |
ビジネス |
ダイヤモンド・オンライン - 新着記事 |
CO2回収、導入済みの発電所が示す「教訓」 - WSJ PickUp |
https://diamond.jp/articles/-/323040
|
wsjpickup |
2023-05-18 03:35:00 |
ビジネス |
ダイヤモンド・オンライン - 新着記事 |
組織を創造的なものに生まれ変わらせる「属人化」のススメ - Virtical Analysis |
https://diamond.jp/articles/-/322959
|
全てを説明しようとして論理化を急ぐのではなく、個人に根差した感性の中に面白さを見いだし、大切に扱うことの重要性について考えます。 |
2023-05-18 03:30:00 |
ビジネス |
ダイヤモンド・オンライン - 新着記事 |
LINEの「HRBP(HRビジネスパートナー)」が事業成長のために行っていること - HRオンライン |
https://diamond.jp/articles/-/322678
|
そして、そのアプリを運営・開発するLINE株式会社においては、サービスの継続成長を人事・組織面から戦略的に支える「HRBPHRビジネスパートナー」が欠かせない存在になっている。 |
2023-05-18 03:25:00 |
ビジネス |
ダイヤモンド・オンライン - 新着記事 |
【世界の成功者が明かす】「一流になる人」と「二流で終わる人」の決定的な差 - 定番読書 |
https://diamond.jp/articles/-/322429
|
違い |
2023-05-18 03:20:00 |
ビジネス |
ダイヤモンド・オンライン - 新着記事 |
MARCHに続く人気大学! 成蹊大学のキャンパスはどんな雰囲気? - 大学図鑑!2024 有名大学82校のすべてがわかる! |
https://diamond.jp/articles/-/323056
|
|
2023-05-18 03:15:00 |
ビジネス |
ダイヤモンド・オンライン - 新着記事 |
「あの人がいると職場の空気が良くなる」と言われる人が無意識にやっているたった1つのこととは? - 1秒で答えをつくる力 お笑い芸人が学ぶ「切り返し」のプロになる48の技術 |
https://diamond.jp/articles/-/323038
|
|
2023-05-18 03:10:00 |
ビジネス |
ダイヤモンド・オンライン - 新着記事 |
【精神科医が教える】 なにをやってもうまくいかないとき… 「ドツボにハマる人」と「好転する人」のたった1つの違い - 精神科医Tomyが教える 40代を後悔せず生きる言葉 |
https://diamond.jp/articles/-/321410
|
【精神科医が教える】なにをやってもうまくいかないとき…「ドツボにハマる人」と「好転する人」のたったつの違い精神科医Tomyが教える代を後悔せず生きる言葉【大好評シリーズ万部突破】誰しも悩みや不安は尽きない。 |
2023-05-18 03:05:00 |
コメント
コメントを投稿