IT |
気になる、記になる… |
Googleの折りたたみ式スマホ「Pixel Fold」の発売は来年との情報 |
https://taisy0.com/2022/09/02/160877.html
|
google |
2022-09-02 10:26:51 |
IT |
ITmedia 総合記事一覧 |
[ITmedia News] 周囲に音漏れしにくいBluetoothマイク「mutalk」、予約開始 オフィスでのWeb会議などで利用見込む |
https://www.itmedia.co.jp/news/articles/2209/02/news177.html
|
bluetooth |
2022-09-02 19:02:00 |
TECH |
Techable(テッカブル) |
流れ星・猫をなでるだけ。スマホで“観測対象”を触って眠れるアプリ「睡眠観測」が気になる |
https://techable.jp/archives/185105
|
観測対象 |
2022-09-02 10:00:54 |
python |
Pythonタグが付けられた新着投稿 - Qiita |
[OMNI3D] Virtual Depthによる単眼距離推定の安定化 |
https://qiita.com/minh33/items/3897d5be3012a6325dd4
|
omnid |
2022-09-02 19:57:50 |
python |
Pythonタグが付けられた新着投稿 - Qiita |
[ROS] Pythonで色付き点群をpublish |
https://qiita.com/KEROLL5/items/a0f0ec67eb17d321c546
|
pythonimportsenso |
2022-09-02 19:33:20 |
js |
JavaScriptタグが付けられた新着投稿 - Qiita |
【jQuery】append()にクソ長文字列を書くのをやめませんかみたいな話 |
https://qiita.com/simoyama2323/items/1e93f9c242692c26166c
|
ltdividconte |
2022-09-02 19:30:05 |
AWS |
AWSタグが付けられた新着投稿 - Qiita |
AWS Organizationsのサービスコントロールポリシーの設定テストをしてみた |
https://qiita.com/duelist2020jp/items/763b8c364f70ab708ea9
|
awsorganizations |
2022-09-02 19:21:48 |
AWS |
AWSタグが付けられた新着投稿 - Qiita |
他のAWSサービスやエンドポイントサービスと接続 |
https://qiita.com/jaken1207/items/9ab8a91e6ac3ec38d393
|
通信 |
2022-09-02 19:16:02 |
海外TECH |
MakeUseOf |
How Scoping Works in JavaScript |
https://www.makeuseof.com/javascript-scoping-how-works/
|
javascript |
2022-09-02 10:30:13 |
海外TECH |
MakeUseOf |
How to Use Lyrics to Search for a Song on Apple Music |
https://www.makeuseof.com/how-to-search-songs-with-lyrics-apple-music/
|
favorite |
2022-09-02 10:16:13 |
海外TECH |
MakeUseOf |
How to Install and Use the DotClear Blogging Platform on Your Raspberry Pi |
https://www.makeuseof.com/how-to-install-dotclear-on-raspberry-pi/
|
commercial |
2022-09-02 10:01:13 |
海外TECH |
DEV Community |
Responsive Images for web |
https://dev.to/aneeqakhan/responsive-images-for-web-2n9g
|
Responsive Images for webRecently I learned a new thing about responsive images and want to share it here As we all know we can create responsive images through CSS and media queries but lt picture gt element allow us to show multiple images according to the browser viewport With CSSFirst let s see an example of responsive image using CSS lt img src src desktop img png alt desktop class responsive width gt and give it css properties responsive width height auto As you can see image will get adjusted according to the width of the screen but this solution is not very convenient on smaller screens if the image is designed for large screens and also if the image contains text then that information can get lost With Picture element lt picture gt element gives us flexibility to use different images for different screens The lt picture gt element contains two tags one or more lt source gt tags and one lt img gt tag The lt source gt tag contains media and srcset properties The browser will check the media query which matches the current viewport width and display that image specified in srcset property Lets see its example lt picture gt lt source media min width px srcset src desktop img png gt lt source media min width px srcset src mobile img png gt lt img src src mobile img png alt desktop style width gt lt picture gt Here I m showing a desktop img for the viewports having a width greater and equal to px and mobile img for the viewports having a width greater and equal to px And also I gave the default image in lt img gt tag It ll show this image if none of the media query conditions are fulfilled You can read more about the lt picture gt tag hereThank you for reading Feel free to connect on Twitter |
2022-09-02 10:35:53 |
海外TECH |
DEV Community |
Astro, React and SolidJS Dancing Together |
https://dev.to/mbarzeev/astro-react-and-solidjs-dancing-together-56oc
|
Astro React and SolidJS Dancing TogetherJoin me in this week s post as I take Astro React and SolidJS to the dance floor together building a simple application which has components written in different technologies yet sharing the same state Recently there is a lot of buzz over Astro with a lot of promises of better performance and smooth UI frameworks integration so I decided to have a look at it and see if these promises hold I really like the idea of Astro s “islands and what is even more appealing to me is the fact that you can compose different technologies in these islands and have full interaction between them So just to make things clearer here are my goals for this one Have an Astro application up and runningHave a Counter display component made with reactHave a Counter controller component with “ and “ buttons made with solidJSThey will all be on the same page sharing the same state so incrementing or decrementing on the Counter controller will affect the Counter displayThese component will reside in “islands and will hydrate on page loadSome heavy lifting here so put your weight lifting belts on and let s startI start with by creating a new Astro project using the CLI toolyarn create astroI m choosing “just the basics as my project s type nice coloring going on in the terminal BTW and I prefer not to use TypeScript at the moment god knows we have enough challenges ahead no need to make it worse And…that s it I can launch the site now using yarn dev and indeed the site pops up in my browser See what we gotVSCode does not handle astro files well so we need to install a plugin for it This plugin seems to do the job well enough We have our “index astro file which holds the main page of the site we have the “layout astro which is the mainAstro component that actually holds the HTML document that has a “slot to which the content is appended and we have a “Card astro component file I m currently less interested in how astro composes its parts I might need to dive into it later on but now that I got my project set I would like to start integrating frameworks to it starting with React Integrating ReactFollowing the docs I m adding the React integration to my application yarn astro add reactAstro then installs the required dependencies and makes some modifications to the Astro config file declaring that React is now integrated Now I can create my React CounterDisplay component import React from react const CounterDisplay gt return lt div gt lt div gt export default CounterDisplay And in my index astro file I will import my component and use it import Layout from layouts Layout astro import CounterDisplay from components CounterDisplay lt Layout title Welcome to Astro gt lt main gt lt CounterDisplay gt lt main gt lt Layout gt I ve removed all the other OOTB components from it It works My page looks like this now hold your gasps Right It is time to move to the other SolidJS component which will display the two buttons for incrementing and decrementing the counter Integrating SolidJSSame as with the React integration above I m using the astro “add command to generate the integration yarn astro add solidNow that I have the integration ready let s write our CounterController component import solid js const CounterController gt return lt div gt lt button gt lt button gt lt button gt lt button gt lt div gt export default CounterController You are probably wondering why I m importing solid js there but not importing solid js will result in a parsing error error Failed to parse source for import analysis because the content contains invalid JS syntax If you are using JSX make sure to name the file with the jsx or tsx extension If you know of any other solution to bypass please share in the comments below And I add it to the index astro file as I did for the React Component import Layout from layouts Layout astro import CounterDisplay from components CounterDisplay import CounterController from components CounterController lt Layout title Welcome to Astro gt lt main gt lt CounterDisplay gt lt CounterController gt lt main gt lt Layout gt And now my page looks like this Yes it is butt ugly but we have a page which holds components each written in a different technology with so little effort Still my page does not do anything interesting Clicking on the buttons does not do anything to the Counter display Let s see how we can use a shared state for that Sharing a stateI would really like to use SolidJS s signals or store for that but since I m about to share a state between different technologies it is advised that I will use the nano stores I will install the nanostores and the the packages for React and SolidJSyarn add nanostores nanostores react nanostores solidI then create a file called counter js under a “stores directory and put this content in it import atom from nanostores export const counter atom you can read about “atoms here Now that we have the store set let s first use it in our React component which displays the counter value import React from react import useStore from nanostores react import counter from stores counter const CounterDisplay gt const counterValue useStore counter return lt div gt counterValue lt div gt export default CounterDisplay Cool my page now shows “ as the Counter value It s time to make the buttons do what they should I m adding the Solid hook for fetching the store and click event handlers to the CouterController component import solid js import useStore from nanostores solid import counter from stores counter const CounterController gt const counterValue useStore counter return lt div gt lt button onClick gt counter set counterValue gt lt button gt lt button onClick gt counter set counterValue gt lt button gt lt div gt export default CounterController Refreshing the page and…nothing happens when I click Why Well this is where the “islands concept comes into play Astro s IslandsAstro prepares a static markup content from the astro files but once it reaches the browser there is no JS running to make the page s components interactive In order to instruct it to hydrate on the client we need to add the “client directives to our components and tell Astro how we would like to hydrate it or more accurately when This is a very powerful feature which allows better control over the performance of your page load and JS execution I will add the instruction to hydrate my components upon page load lt Layout title Welcome to Astro gt lt main gt lt CounterDisplay client load gt lt CounterController client load gt lt main gt lt Layout gt And now indeed when I click the buttons the counter acts accordingly Hey we got our app working The hooks issueI can t be all that good right You can see that both my component are declared like this const CounterController gt export default CounterController And this format causes Astro to through this error Warning Invalid hook call Hooks can only be called inside of the body of a function component This could happen for one of the following reasons You might have mismatching versions of React and the renderer such as React DOM You might be breaking the Rules of Hooks You might have more than one copy of React in the same appSee for tips about how to debug and fix this problem Following the instruction on this GitHub thread what you need to do in order to solve it is to export a named function instead like so import React from react import useStore from nanostores react import counter from stores counter export default function CounterDisplay const counterValue useStore counter return lt div gt counterValue lt div gt This BTW only happens for React The SolidJS component does not have this issue Wrapping upSo what have we got We have an application with components each built with a different technology but sharing the same state We can also control when we want them to hydrate when they reach the browser By enabling that Astro gives us the option to slowly migrate from one technology to the other or even have several UI frameworks co exist on the same page app This is very powerful and an ability FE developers have been needing for a long time I m very curious to see how it will evolve and affect other technologies which have overlapping features out there The code discussed in this post can be found in this GitHub repo As always if you have any questions or comments be sure to leave them in the comments section below Hey If you liked what you ve just read check out mattibarzeev on Twitter Photo by Yomex Owo on Unsplash |
2022-09-02 10:08:20 |
海外TECH |
DEV Community |
AMA with Jeremy Ravenel, CEO of naas.ai |
https://dev.to/aviyel/ama-with-jeremy-ravenel-ceo-of-naasai-26jc
|
AMA with Jeremy Ravenel CEO of naas aiData has undoubtedly become the new oil Whether it s FAANG companies or startups building products it plays a huge role in both the functioning and marketing aspects of product building Aviyel is organizing an AMA for the community about Building on Data with one of the best open source data projects Naas ai We will be joined by their CEO Jeremy Ravenel What s Naas ai Notebooks as a service Naas is an open source platform that allows anyone touching data analysts scientists and engineers to create powerful data solutions combining automation analytics and AI from the comfort of their Jupyter notebooks Templates enable the user to create automated data jobs and reports in minutes Drivers act as connectors to push and or pull data from databases APIs and Machine Learning algorithms and more Features transform Jupyter in a production ready environment with scheduling asset sharing and notifications About the SpeakerJeremy is a data strategy leader and mentor with years of experience in Data driven roles and now is the CEO of Naas ai He s also a Stanford Lead Alumni and a veteran of many data driven companies with his products being used by Fortune companies like Amazon and Tesla Join us on September th as we talk about The Open Source Data Solutions Platform Block your seats here Wouldn t be able to make it Feel free to drop the questions you have in the discussion thread below |
2022-09-02 10:01:34 |
Apple |
AppleInsider - Frontpage News |
Apple settles copyright suit with Tin Pan Alley music heirs |
https://appleinsider.com/articles/22/09/02/apple-settles-copyright-suit-with-tin-pan-alley-music-heirs?utm_medium=rss
|
Apple settles copyright suit with Tin Pan Alley music heirsApple s iTunes Store is the last to settle a copyright dispute with the heirs to a series of early th century Tin Pan Alley songs following previous cases against Microsoft Amazon and Google The companies had each been accused of selling what were described as bootleg digital versions of songs written by Harold Arlen Harry Warren and Ray Henderson The songwriters heirs case included hits from the period including Stormy Weather and That s Amore According to Reuters the suits were filed in The suits accused the companies of simply duplicating previously released recordings and selling them as if they were the rightful owner and for lower prices than authorized versions Read more |
2022-09-02 10:11:12 |
Apple |
AppleInsider - Frontpage News |
USB4 Version 2.0 to offer up to 80 Gbps data transfer |
https://appleinsider.com/articles/22/09/01/usb4-version-20-to-offer-up-to-80-gbps-data-transfer?utm_medium=rss
|
USB Version to offer up to Gbps data transferThe USB C cable is getting yet another standard called USB Version which enables up to Gbps data transfer speeds with specific cabling USB Version adds yet another standard to keep up withThe USB Version standard will continue to rely upon USB Type C connectors This announcement is targeted at developers who will prepare for the incoming architecture change Read more |
2022-09-02 10:47:08 |
医療系 |
医療介護 CBnews |
オミクロン株対応ワクチン、12歳以上を対象に-厚労省案を分科会が了承 |
https://www.cbnews.jp/news/entry/20220902192733
|
予防接種 |
2022-09-02 19:40:00 |
医療系 |
医療介護 CBnews |
加齢に伴い認知症発症リスクを上昇させる因子発見-千葉大が研究成果を発表 |
https://www.cbnews.jp/news/entry/20220902190144
|
研究グループ |
2022-09-02 19:15:00 |
金融 |
ニッセイ基礎研究所 |
原油価格100ドル割れは続くか?~不透明感が増す原油相場 |
https://www.nli-research.co.jp/topics_detail1/id=72227?site=nli
|
nbsp今後の中心的な原油相場見通しとしては、「米戦略備蓄放出の終了月」、「EUによるロシア産原油禁輸月に猶予期間終了・石油製品は来年月に猶予期間終了」、「天然ガス価格の高騰冬場にかけて」によって次第に需給のタイト化が意識されることで、今年の終盤にバレルドルを回復し、以降はドルを中心とする推移が続くと見込んでいる。 |
2022-09-02 19:10:06 |
ニュース |
BBC News - Home |
Queen to miss Braemar Highland games |
https://www.bbc.co.uk/news/uk-scotland-62766252?at_medium=RSS&at_campaign=KARANGA
|
mobility |
2022-09-02 10:32:06 |
ニュース |
BBC News - Home |
Cressida Dick: Sadiq Khan wrongly ousted Met chief - report |
https://www.bbc.co.uk/news/uk-england-london-62766240?at_medium=RSS&at_campaign=KARANGA
|
london |
2022-09-02 10:53:13 |
ニュース |
BBC News - Home |
Soul Cap: Afro swimming cap approved after Olympic ban |
https://www.bbc.co.uk/news/newsbeat-62765571?at_medium=RSS&at_campaign=KARANGA
|
maker |
2022-09-02 10:15:01 |
ニュース |
BBC News - Home |
Police apologise over Becky Godden murder mistakes |
https://www.bbc.co.uk/news/uk-england-wiltshire-62764539?at_medium=RSS&at_campaign=KARANGA
|
family |
2022-09-02 10:44:21 |
ニュース |
BBC News - Home |
T20 World Cup: Jason Roy dropped by England, Chris Woakes & Mark Wood in |
https://www.bbc.co.uk/sport/cricket/62764910?at_medium=RSS&at_campaign=KARANGA
|
T World Cup Jason Roy dropped by England Chris Woakes amp Mark Wood inOpener Jason Roy is left out of England s squad for the Twenty World Cup in Australia but bowlers Mark Wood and Chris Woakes are fit to return |
2022-09-02 10:05:44 |
ビジネス |
不景気.com |
山形の雑貨販売「ベル」が自己破産申請、負債2億円 - 不景気com |
https://www.fukeiki.com/2022/09/bell-yamagata.html
|
山形地方裁判所 |
2022-09-02 10:03:10 |
北海道 |
北海道新聞 |
村上、最年少50号本塁打 日本選手は02年の松井以来 |
https://www.hokkaido-np.co.jp/article/725481/
|
日本選手 |
2022-09-02 19:24:00 |
北海道 |
北海道新聞 |
プロの技 紙で縁日再現 札幌 大丸藤井でイベント |
https://www.hokkaido-np.co.jp/article/725480/
|
大丸藤井 |
2022-09-02 19:24:00 |
北海道 |
北海道新聞 |
英国伝統の料理、物価高が直撃 ロシアの侵攻影響、廃業店も |
https://www.hokkaido-np.co.jp/article/725479/
|
英国 |
2022-09-02 19:22:00 |
北海道 |
北海道新聞 |
松島、姫野ら代表候補に復帰 ラグビー、大分で合宿 |
https://www.hokkaido-np.co.jp/article/725471/
|
大分県別府市 |
2022-09-02 19:13:00 |
北海道 |
北海道新聞 |
囲碁の最年少プロ棋士、敗れる 小3藤田初段が記念対局 |
https://www.hokkaido-np.co.jp/article/725469/
|
史上最年少 |
2022-09-02 19:09:00 |
北海道 |
北海道新聞 |
丸太100本以上落下 釧路新道入り口、一時通行止めに |
https://www.hokkaido-np.co.jp/article/725449/
|
通行止め |
2022-09-02 19:01:06 |
北海道 |
北海道新聞 |
メロン250個盗まれる 出荷量日本一の茨城・鉾田 |
https://www.hokkaido-np.co.jp/article/725465/
|
茨城県鉾田市子生 |
2022-09-02 19:06:00 |
北海道 |
北海道新聞 |
俳優の古谷一行さん死去 金田一耕助役など熱演、78歳 |
https://www.hokkaido-np.co.jp/article/725424/
|
古谷一行 |
2022-09-02 19:02:16 |
北海道 |
北海道新聞 |
札幌五輪招致機運醸成へ JOCが「アスリートカード」製作 イベントなどで配布 |
https://www.hokkaido-np.co.jp/article/725462/
|
五輪招致 |
2022-09-02 19:05:00 |
北海道 |
北海道新聞 |
円安止まらず140円台 年明けから25円下落 |
https://www.hokkaido-np.co.jp/article/725460/
|
東京外国為替市場 |
2022-09-02 19:03:00 |
北海道 |
北海道新聞 |
首相、公明に教団問題を陳謝 自民の所属議員調査が期限 |
https://www.hokkaido-np.co.jp/article/725457/
|
山口那津男 |
2022-09-02 19:01:00 |
IT |
週刊アスキー |
コーエーテクモゲームスが「東京ゲームショウ 2022」の番組スケジュールを公開! |
https://weekly.ascii.jp/elem/000/004/104/4104131/
|
liveintgs |
2022-09-02 19:50:00 |
IT |
週刊アスキー |
2つの車両が追いかけっこ⁉ 小田急電鉄、3日間限定の特別企画「箱根で活躍したVSEと赤い1000形 夢の紅白追いかけっこリレー!」を実施 |
https://weekly.ascii.jp/elem/000/004/104/4104129/
|
小田急電鉄 |
2022-09-02 19:30:00 |
コメント
コメントを投稿