海外TECH |
MakeUseOf |
Should You Buy an Apple Watch? 5 Questions to Ask Before Doing So |
https://www.makeuseof.com/should-you-buy-an-apple-watch/
|
important |
2022-07-09 20:45:13 |
海外TECH |
DEV Community |
What I've been doing in 2022 (so far) |
https://dev.to/andypiper/what-ive-been-doing-in-2022-so-far-28ma
|
What I x ve been doing in so far Preamble my contentIt has been a while since I ve written a general what I m working on post so I m fixing that now It has been a busy year I last published a newsletter in March and I didn t get back to writing primarily technical writing until the start of I ve also diversified my writing between my own site occasionally Medium technical developer focused posts on DEV and elsewhere Truth be told I m not completely sure how to manage the spread whilst also maintaining a consistent way to share with an audience apart from the fact that I Tweet a lot of course In an effort to bring things together at least from an audience perspective I plan to cross post this extended update on a number of those channels and think about how to continue from there One thing I ve tried to keep at regularly is our podcast Games at Work dot biz If you ve not come across that yet the show is available via all of the major podcast services and directly on our website Each week my two good friends Michael Martine and Michael Rowe join me to talk about various tech topics mostly relating to virtual worlds and gaming now usually called the Metaverse social web collaboration and other fun snippets We ve actually been running for over years now and before that had another podcast that itself ran for episodes it has been a lot of fun The episode we just recorded as I type this talked about retail brands exploring the Metaverse which brought back strong vibes of my days exploring and working in Second Life at IBM in the mid s We d love to hear what you think of the show if you like it please leave a podcast review and tell a friend A personal and health updateLast year I took weeks out completely disconnected from the online world for mental health and personal reasons It was much needed and I think it has enabled me to get much better perspective in various parts of my life Since the start of in particular I ve been thinking of what I m doing online in Open Source and across different communities as a bit of a reset or back to my roots I ll come back to mention side projects and interests later in this post but I felt really energised at the start of the year and consistently blogged something technical at least once a week though January and February over on DEV DEV is a community that I ve been spending a lot of time in during the past couple of years and I m happy to be connected there as a moderator and community helper I want to get back to writing more frequently More recently in the past month I finally had a procedure to fix the heart anomaly that I shared on my blog back in The pandemic thoroughly messed up the waiting times for this of course I m in complete awe of the medical science that enabled the operation a keyhole procedure on a day surgery basis with minimal lasting visible signs of entry despite the complicated internal navigation involved I appear to be doing pretty well although the SVT itself was always a random occurrence so it s difficult to know whether the outcome is confirmed but having read the notes from the operation I know they performed regression tests to check that they did what they intended Absolutely thankful for our NHS and for scientific advancement Another item on the personal side of this update is that we had a chance to do a couple of trips away The first of these was a day trip down to Italy where we travelled by train on Eurostar to Paris and on Trenitalia via a stop in Milan down to Puglia On return we had tickets for Electromagnetic Field EMFCamp a camping festival celebrating all things geek and tech around maker culture open standards electronica and community It was my first time at EMF but I m hoping to be able to go again when it returns in two years time Speaking gigs current and futureAs the world has started to open back up for reasons good or bad I ve been excited to get back to one of my favourite activities public speaking I gave a number of talks over Zoom towards the end of last year both professionally to our Twitter Developer Communities in different places around the world and personally where requested to provide my experiences in fields like advocacy and community Andy Piper andypiper I m excited to be working on some really Interesting New Things for Developers on Twitter In the coming weeks I ll be hosting Spaces to connect you with our product eng and design teams to talk about the ideas Conversation starters for just one part of this work PM Feb During March I hosted eight Spaces on Twitter as open community feedback conversations about some new ideas we re working on for the developer platform new ways to add content to Tweets similar to the current cards that appear when links are shared but more customisable and the ability to have more control over timelines This is part of an effort to continue to build in the open and I m excited to be able to run sessions like this In May we held our first in person TwitterDev community meetup in years at the Twitter office in London that was a huge buzz it is always a privilege to talk to our developer community More of these to come As I mentioned above next week I ll be in Dublin on my own time giving a talk about MicroPython at the EuroPython conference I also acted as a content reviewer for the event and I m looking forward to it lots of good stuff on the schedule EuroPython europython Checkout andypiper s talk at EuroPython in their words Run Python everywhere Exploring the world of MicroPython microcontrollers LEGO bricks and blinky LEDs ep europython eu session try so… AM Jun I m also excited to have been invited to join Isaac Levin as a guest on his excellent Coffee amp Open Source show watch out for that coming up in the next couple of months There s another unconfirmed podcast opportunity on the horizon as well I m open to other podcast guest invitations and speaking invitations time and work permitting The day jobI touched on a few of the things that I ve been working on at Twitter in the previous sections and I expect to be particularly focused on preparing for Chirp our developer conference in the months between now and the event itself in November It s an exciting time for the Twitter Developer Platform and I ve written a number of pieces to help folks to learn more about Twitter API v in other locations There have been a raft of updates and announcements since the end of the year from OAuth to Chirp and the Chirp Developer Challenge completely new concepts we are exploring expansion of our Twitter Developer Insiders program and the announcement of the Student Ambassador program In case you missed it the Twitter API Playground has been a particularly popular addition to the range of tools demos and samples to help to get started with the latest API version Side projects aka what I ve really been doing My outside work interests recently have covered a whole range of different areas of tinkering and it has occasionally been difficult to keep up with my own thoughts and excitement There s a lot of time slicing involved I started to put a bit more time into my Fediverse presence particularly around EMFCamp you ll find me andypiper mastodon social if that s your preference It s not completely identical to my Twitter feed but there is some bridging involved There s definitely a new swirl of possibility around federated networks GeekMomProjects geekmomprojects Business in the front Party in the back My bedazzled ESP C arrived today and does this when I plug it in ️️ AM Jan MicroPython has led me along a number of different paths since it runs on a whole variety of different hardware In February a tiny ESP C powered board covered in RGB LEDs caught the attention of the maker community and I subsequently wrote a small blog series and created a project around it fivebyfive on GitHub It also highlighted a few learning opportunities around MicroPython on the ESP C which have been addressed in the current release The worldwide chip shortage has meant that the RP chips from the Raspberry Pi folks have been more available than some alternatives so I ve been playing with a lot of boards based on those but until about a week ago connectivity was more of an issue than with the Espressif chips On another side of the hardware arena I ve long been curious about the RC a Zilog Z based homebrew self assembly computer with a variety of different options My friend Chris Swan was able to give me some advice on what pieces I might want to look into and I ordered an RC Pro kit I then met the creator Spencer at EMFCamp and put together the smaller RC Micro Andy Piper andypiper I soldered a thing My rc Micro lives and yes ZxSpectROM it booted connectable via FTDI thank you emfcamp PM Jun I also had a play with the RC a way to emulate the system on an RP board That all sparked the start of Yet Another Idea which I ve still got the blueprints for in my head but haven t yet moved very far forward on Why am I doing this Well I grew up on bit computers similar to this back in the s and it is fun to dig in on the electronics side again Not a completely successful enterprise so far but I m working on it Talking of retro technology I ve also continued to enjoy building or customising consoles of a bygone era The Miyoo Mini v is a really nice little handheld with a gorgeous screen with a number of custom OS options I also want to get back to my MiSTer setup at some point to give all of the cores a refresh to their current releases and to actually get it hooked up to the TV Apart from the retro stuff I was also relatively early on in the waves of recipients of the Steam Deck So not only am I dividing my attention between a number of side projects I m also jumping between gaming devices and platforms and eras There are a number of other gadgets that have arrived in the past months but one I ll call out is the ClockworkPi DevTerm a s TRS lookalike slab portable that is clipped together in parts and can take a number of different cores or processor boards I picked mine up with the R core a RISC V Allwinner D chip which is experimental in the context of trying to run a Linux distribution There are other options available I have a CM adapter on the way This is another community that I ve enjoyed interacting with as we learn new things together and share our experiences Oh and I picked up a Bluetooth thermal printer with the face of a cat Because Dan Hon Dan Hon hondanhon IT ARRIVED PM Apr also subscribe to Dan s newsletter He s good Finally I connected with a new group Together We Open Source and have been following the meetups there helping people get comfortable with OSS contributions It feels like a bit of a full circle experience for me to revisit my roots and share what I ve learned What s nextI don t plan to broadly expand the various side projects I listed out above but I m enjoying the things I m contributing to I also have a couple of lists full of the next thing I want to build Mostly I want to stay connected with others and to learn and share what I m doing back to where I started in communities and Open Source I m going to think more about where and how I share my content ramblings thoughts This is intended to be a one off multi channel post but maybe I ll do something similar again at some point ThankYouI have had a really strange very challenging couple of years If you re reading this and you ve read this far it s probably because you subscribed to my content at some point which means I ve been interesting to you at some level Thank you for your attention and interest and your support I hope I ve helped you or inspired you somehow along the way I d love to hear what you think about anything from the stuff I ve been working on to our podcast or just to tell me to stop continue Tweet less often drink more water delete as appropriate If you re so inclined I have a page on Ko fi as well where you can contribute to my habit of buying random dev boards on AliExpress All ok almost all of my interesting links are here Until next time |
2022-07-09 20:43:02 |
海外TECH |
DEV Community |
How to use Resize Observer with React |
https://dev.to/murashow/how-to-use-resize-observer-with-react-5ff5
|
How to use Resize Observer with ReactIn the first part of the Web APIs series Quick guide to Resize Observer we ve learnt what the Resize Observer API is and how to use it with vanilla JavaScript But what to do when it comes to using with React Today we are going to see how to do it quick amp easy and will create a custom hook which you can use in your projects The APILet s repeat what we know already ResizeObserver is used to observe changes to Element s size to create our own observer instance we call the ResizeObserver constructor passing the callback function that will be fired every time when the size changes const myObserver new ResizeObserver entries ResizeObserverEntry observer ResizeObserver gt for let entry of entries Do something with an entry see in next section to start stop watching the Element s size we shall invoke observe unobserve instance s methods const myElement document getElementById my element myObserver observe myElement Start watchingmyObserver unobserve myElement Stop watchingeach observed entry contains entry s element sizes info interface ResizeObserverEntry readonly target Element readonly borderBoxSize ReadonlyArray lt ResizeObserverSize gt readonly contentBoxSize ReadonlyArray lt ResizeObserverSize gt readonly devicePixelContentBoxSize ReadonlyArray lt ResizeObserverSize gt readonly contentRect DOMRectReadOnly May be deprecated don t use it interface ResizeObserverSize readonly blockSize number readonly inlineSize number The TaskNext we want to use our knowledge to get the sizes in any React app There is no better solution than creating a React Hook which could be used across all project in any component So let s try to define what exactly we want from the hook It should be universal and its usage must be as simple as const size giveMeMySize As you ve probably seen I hope in the previous section one ResizeObserver instance is able to handle any amount of elements If we want to keep our app performant the hook should use only single observer instance inside In order make the hook handy to use it should deal with mutations itself and automatically stop observing on unmount Keep in mind that although the ResizeObserver API already has broad support it is still in Editor s Draft and isn t supported by all browsers It s better to provide a fallback for it The SolutionOur requirements look good and pretty strict uh But don t worry we can deal with all of them using the beautiful and very easy to use useResizeObserver hook from the beautiful react hook library by Jared Lunde According to it s documentation and my tests and usage as well it meets all our requirements Uses a single ResizeObserver for tracking all elements used by the hooks This approach is astoundingly more performant than using a ResizeObserver per element which most hook implementations do Uses juggle resize observer as a ponyfill when ResizeObserver isn t supported by the current browser automatically unobserves the target element when the hook unmounts you don t have to wrap your callback in useCallback because any mutations are handled by the hook Feels promising why don t we use it right now The HookWe are ready to create our hook finally First of all install the useResizeObserver hook npm install react hook resize observer Oryarn install react hook resize observerThen let s define how our hook will look like useElementSize tsimport MutableRefObject useLayoutEffect useRef useState from react import useResizeObserver from react hook resize observer interface Size width number height number export default function useElementSize lt T extends HTMLElement HTMLDivElement gt MutableRefObject lt T null gt Size const target useRef lt T null gt null const size setSize useState lt Size gt width height return target size As you see we ve created the useElementSize function which we can provide a generic type of our Element It creates the target reference to connect to the React element inside a component and the size for the current Element s size state which implements the Size interface Keep in mind that while Element is resizing its dimensions can be and usually are decimal numbers We can round them of course const setRoundedSize width height Size gt setSize width Math round width height Math round height Next we need to set the initial size of the Element This is where the React useLayoutEffect hook fits perfectly It fires before the browser paint allowing us to get the Element s dimensions using its getBoundingClientRect method useLayoutEffect gt target current amp amp setRoundedSize target current getBoundingClientRect target And last but not least let s put some magic not there with the help of the useResizeObserver hook that will trigger the size update each time the target s size changes useResizeObserver target entry gt const inlineSize width blockSize height entry contentBoxSize setRoundedSize width height And the usage Let s try to repeat the exercise from the first part Quick guide to Resize Observer of the series let me remind you the task Say we have a box of strawberries and getting them bigger makes us really happy and vice versa I won t go into detailed explanations because as you remember our goal was to create a hook that is very easy to use You can check the code and how it works all together below How do you think it worked out Hope you enjoyed this guide stay tuned for more |
2022-07-09 20:40:46 |
金融 |
ニュース - 保険市場TIMES |
アクサ生命、『ユニット・リンク』シリーズに2種類の特別勘定を追加 |
https://www.hokende.com/news/blog/entry/2022/07/10/060000
|
アクサ生命、『ユニット・リンク』シリーズに種類の特別勘定を追加商品力を強化アクサ生命は月日、顧客の資産形成をサポートするため、月日より、死亡保障と資産形成を両立させた『ユニット・リンク』シリーズに種類の特別勘定を追加すると発表した。 |
2022-07-10 06:00:00 |
ニュース |
@日本経済新聞 電子版 |
業師の宇良が描く理想の相撲 体重増やし真っすぐ前へ
https://t.co/jwI6S7vJ62 |
https://twitter.com/nikkei/statuses/1545861258389647360
|
真っすぐ |
2022-07-09 20:03:39 |
ニュース |
@日本経済新聞 電子版 |
離婚、再出発は財産分与から 住宅ローン「重荷」も
https://t.co/bFYot9CEMh |
https://twitter.com/nikkei/statuses/1545861257432948736
|
住宅ローン |
2022-07-09 20:03:39 |
ニュース |
@日本経済新聞 電子版 |
宝塚の遅咲き演出家、売れっ子への道 小池修一郎さん
https://t.co/hW6sFRcp3N |
https://twitter.com/nikkei/statuses/1545861256397357056
|
売れっ子 |
2022-07-09 20:03:38 |
ニュース |
@日本経済新聞 電子版 |
日産新型軽EV「サクラ」、急勾配もアクセル半踏みで前進
https://t.co/MIxR7qBOXI |
https://twitter.com/nikkei/statuses/1545860534624747520
|
日産 |
2022-07-09 20:00:46 |
ニュース |
@日本経済新聞 電子版 |
「柿ピー」誕生にGHQの影? ピーナツ高騰が生んだ名物
https://t.co/5X0whzs6A0 |
https://twitter.com/nikkei/statuses/1545860533517033472
|
高騰 |
2022-07-09 20:00:46 |
ニュース |
BBC News - Home |
Ex-health secretaries Sajid Javid and Jeremy Hunt join Tory leadership race |
https://www.bbc.co.uk/news/uk-politics-62110114?at_medium=RSS&at_campaign=KARANGA
|
boris |
2022-07-09 20:46:48 |
ビジネス |
ダイヤモンド・オンライン - 新着記事 |
「インバウンド再開は恐怖でしかない」ホテル人事担当者のホンネ満載!覆面座談会 - ホテルの新・覇者 |
https://diamond.jp/articles/-/305775
|
受け入れ |
2022-07-10 05:25:00 |
ビジネス |
ダイヤモンド・オンライン - 新着記事 |
自動車メーカーの「下請けイジメ」を示す衝撃データ大公開!搾取構造が浮き彫りに - 決算書100本ノック!2022夏 |
https://diamond.jp/articles/-/305327
|
自動車メーカーの「下請けイジメ」を示す衝撃データ大公開搾取構造が浮き彫りに決算書本ノック夏自動車産業は裾野が広く、完成車メーカーを頂点とするサプライヤーピラミッドを形成している。 |
2022-07-10 05:20:00 |
ビジネス |
ダイヤモンド・オンライン - 新着記事 |
新決済インフラ「ことら」社長が語る、お金にまつわる「ちょっとしたフリクション」撲滅の意義 - 金融DX大戦 |
https://diamond.jp/articles/-/305409
|
|
2022-07-10 05:15:00 |
ビジネス |
ダイヤモンド・オンライン - 新着記事 |
三井不動産の最高益の立役者は「仕込み力」、大量在庫が需要増で評価一変 - 決算書100本ノック!2022夏 |
https://diamond.jp/articles/-/305326
|
三井不動産 |
2022-07-10 05:10:00 |
ビジネス |
ダイヤモンド・オンライン - 新着記事 |
「自分で勉強する子」の親がやっている意外なこと【見逃し配信】 - 見逃し配信 |
https://diamond.jp/articles/-/306191
|
関連 |
2022-07-10 05:05:00 |
ビジネス |
ダイヤモンド・オンライン - 新着記事 |
生活保護は恥ではなく「権利」、“絵に描いた餅”にしないためにできること - 生活保護のリアル~私たちの明日は? みわよしこ |
https://diamond.jp/articles/-/306187
|
生活保護は恥ではなく「権利」、“絵に描いた餅にしないためにできること生活保護のリアル私たちの明日はみわよしこ生活保護の制度がある日本では、誰でも「健康で文化的といえる生活」を営めるはずだ。 |
2022-07-10 05:02:00 |
北海道 |
北海道新聞 |
「爆弾」製造試行錯誤か 安倍元首相銃撃事件 |
https://www.hokkaido-np.co.jp/article/703854/
|
安倍元首相 |
2022-07-10 05:42:00 |
北海道 |
北海道新聞 |
スリランカ大統領辞任へ 経済危機、抗議デモ激化で |
https://www.hokkaido-np.co.jp/article/703853/
|
抗議デモ |
2022-07-10 05:22:12 |
北海道 |
北海道新聞 |
利権、しがらみなくす 大村小太郎氏 諸派・新人 |
https://www.hokkaido-np.co.jp/article/703821/
|
大通公園 |
2022-07-10 05:21:00 |
北海道 |
北海道新聞 |
豊かさ実感する国に 船橋利実氏 自民・新人 |
https://www.hokkaido-np.co.jp/article/703834/
|
札幌市中央区 |
2022-07-10 05:20:00 |
北海道 |
北海道新聞 |
技術開発伝え続けた 浜田智氏 N党・新人 |
https://www.hokkaido-np.co.jp/article/703833/
|
技術開発 |
2022-07-10 05:19:00 |
北海道 |
北海道新聞 |
<社説>きょう投開票 民主主義守る行動必要 |
https://www.hokkaido-np.co.jp/article/703816/
|
国政選挙 |
2022-07-10 05:01:00 |
ビジネス |
東洋経済オンライン |
ウエルシア、「都市店攻略」へ横たわる2つの難題 都市型のコクミン買収に錯綜する期待と不安 | 専門店・ブランド・消費財 | 東洋経済オンライン |
https://toyokeizai.net/articles/-/602704?utm_source=rss&utm_medium=http&utm_campaign=link_back
|
kokum |
2022-07-10 06:00:00 |
ビジネス |
東洋経済オンライン |
安倍氏銃撃で誰もが思った「要人警護」の不十分さ 「シークレットサービス」とは何が違うのか | 政策 | 東洋経済オンライン |
https://toyokeizai.net/articles/-/602942?utm_source=rss&utm_medium=http&utm_campaign=link_back
|
安倍晋三 |
2022-07-10 05:40:00 |
ビジネス |
東洋経済オンライン |
写真共有「みてね」はミクシィの成長柱になれるか アプリのユーザー数は国内外で1500万近くに | インターネット | 東洋経済オンライン |
https://toyokeizai.net/articles/-/602627?utm_source=rss&utm_medium=http&utm_campaign=link_back
|
東洋経済オンライン |
2022-07-10 05:20:00 |
コメント
コメントを投稿