python |
Pythonタグが付けられた新着投稿 - Qiita |
【Notion API × Python】request モジュールで databases、pages、blocks から情報を取得 |
https://qiita.com/minami0810sts/items/2e5b02183a922f04cce3
|
blocks |
2023-08-03 00:48:45 |
python |
Pythonタグが付けられた新着投稿 - Qiita |
Llama2をDockerで実行する |
https://qiita.com/ryome/items/4122ab3744e3c3785c7f
|
言語モデル |
2023-08-03 00:30:05 |
python |
Pythonタグが付けられた新着投稿 - Qiita |
manim で区分求積のアニメーション |
https://qiita.com/phlogis/items/8c1399ceb346eb50b30b
|
googlecolab |
2023-08-03 00:06:08 |
js |
JavaScriptタグが付けられた新着投稿 - Qiita |
【TypeScript、JavaScript】配列操作一覧 |
https://qiita.com/M4s/items/d14fa1b4d6ae111c4f3f
|
const |
2023-08-03 00:47:31 |
Ruby |
Rubyタグが付けられた新着投稿 - Qiita |
Rubyのoptparseライブラリの使い方 |
https://qiita.com/mutsuki15/items/1ff156c7dd69e5e3f124
|
optparse |
2023-08-03 00:15:07 |
Docker |
dockerタグが付けられた新着投稿 - Qiita |
DockerでTerraform + Ansibleが動く環境を構築する |
https://qiita.com/engishoma/items/e690896b05b8f84f3620
|
dockercomposeymlversionse |
2023-08-03 00:19:52 |
Ruby |
Railsタグが付けられた新着投稿 - Qiita |
RSpecの基本 モデルスペック |
https://qiita.com/yami-yami/items/08b44348811766056334
|
rspec |
2023-08-03 00:12:57 |
海外TECH |
Ars Technica |
Musk’s Boring Company gets OK to dig 68 miles of tunnels under Las Vegas |
https://arstechnica.com/?p=1958286
|
boring |
2023-08-02 15:40:52 |
海外TECH |
MakeUseOf |
The 7 Best Places to Discover AI-Generated Music |
https://www.makeuseof.com/best-places-to-discover-ai-generated-music/
|
favorite |
2023-08-02 15:31:23 |
海外TECH |
MakeUseOf |
How to Fix the “This Non-Genuine Adobe App Will Be Disabled Soon” Pop-Up on Windows |
https://www.makeuseof.com/non-genuine-adobe-app-disabled-soon-windows/
|
haven |
2023-08-02 15:16:21 |
海外TECH |
MakeUseOf |
What Is Iconify and How to Integrate It in Vue Apps? |
https://www.makeuseof.com/integrate-iconify-in-vue-apps/
|
iconify |
2023-08-02 15:01:23 |
海外TECH |
DEV Community |
Implementing a Loading Overlay with next/router Events in Next.js |
https://dev.to/designly/implementing-a-loading-overlay-with-nextrouter-events-in-nextjs-17f9
|
Implementing a Loading Overlay with next router Events in Next jsRoute transitions significantly impact the user experience of your web application Smooth informative transitions keep your users engaged and informed Today we ll explore a practical aspect of improving this UX in Next js applications building a route change loading overlay using next router events Keep in mind this tutorial uses the next router package not the newer next navigation That being said this will only work with the old still in heavy use pages router not the new app router A tutorial on loaders routing events for the app router is forthcoming There is also a GitHub repo and demo companion site for this tutorial Links to both are that the bottom of this article So without further ado let s get coding Setting Up EnvironmentThe quickest way to get up and running would be to clone my repo But if you want to start from scratch just spin up a new Next js project using create next app latest with the following settings Typescript YesESLint YesTailwind CSS Yessrc directory YesApp Router Noimport alias Yesleave default import aliasThis will install all our dependencies You shouldn t need to install anything else Our Loader ComponentNow create a folder src components and in it a file called RouteLoader tsx import React useState useEffect from react import useRouter from next router const Loader gt lt div className fixed top left w screen h screen z flex items center justify center bg black gt lt div className animate spin rounded full h w border t border b border white gt lt div gt lt div gt export default function RouteLoader const router useRouter const loading setLoading useState lt boolean gt false useEffect gt const handleStart url string gt setLoading true const handleComplete url string gt setLoading false router events on routeChangeStart handleStart router events on routeChangeComplete handleComplete router events on routeChangeError handleComplete return gt router events off routeChangeStart handleStart router events off routeChangeComplete handleComplete router events off routeChangeError handleComplete router return loading lt Loader gt null Should be pretty self explanatory here We bind the routeChangeStart event to handleStart and routeChangeComplete and routeChangeError to handleComplete We also want to remove these listeners when the component is unmounted so we return a function that unbinds the events Basically what will happen is as soon as a route change is detected loading state will be set to true This will show our full screen loading overlay Once the page is done loading the handleComplete event will fire on success or error and loading will be set to false Finally in our app tsx file we ll modify it to import our loader component import styles globals css import type AppProps from next app import RouteLoader from components RouteLoader import Header from components Header import Inter from next font google const inter Inter subsets latin export default function App Component pageProps AppProps const classes inter className min h screen return lt main className classes join gt lt RouteLoader gt lt Header gt lt div className flex flex col gt lt Component pageProps gt lt div gt lt main gt That s it This is a very basic example You could create a much fancier loader using an animated SVG or GIF but it s generally good practice to make your loader very lightweight Otherwise you d need a loader for your loader GitHub RepoDemo SiteThank you for taking the time to read my article and I hope you found it useful or at the very least mildly entertaining For more great information about web dev systems administration and cloud computing please read the Designly Blog Also please leave your comments I love to hear thoughts from my readers I use Hostinger to host my clients websites You can get a business account that can host websites at a price of mo which you can lock in for up to months It s the best deal in town Services include PHP hosting with extensions MySQL Wordpress and Email services Looking for a web developer I m available for hire To inquire please fill out a contact form |
2023-08-02 15:33:26 |
Apple |
AppleInsider - Frontpage News |
AirTag 2 will launch in 2024 and work hand-in-hand with Apple Vision Pro |
https://appleinsider.com/articles/23/08/02/airtag-2-will-launch-in-2024-and-work-hand-in-hand-with-apple-vision-pro?utm_medium=rss
|
AirTag will launch in and work hand in hand with Apple Vision ProAnalyst Ming Chi Kuo has returned to his prediction of a second generation of AirTag in and is envisioning them working in tandem with Apple Vision Pro AirTagsBack in June Ming Chi Kuo made the hard to deny prediction that if AirTags were a success Apple would develop a second generation model Despite their problems AirTags have become an enormous hit so now Kuo is doubling down ーbut also getting more specific Read more |
2023-08-02 15:27:36 |
海外TECH |
Engadget |
The best smart plugs in 2023 |
https://www.engadget.com/best-smart-plug-131542429.html?src=rss
|
The best smart plugs in Smart plugs are among the simpler smart home devices giving you voice and app control over appliances like lamps fans humidifiers and basic coffee makers Some can even help you save on your energy bill too You can also create schedules and routines either through a plug s proprietary app or through your preferred smart home platform But much like other IoT devices which system plays nice with which plug depends on compatibility and each brand s app offers different features We tested out ten popular options to see which are worth buying What to consider when buying a smart plugBefore you buy one it helps to know what a smart plug can and can t do They work best with things that have an on off switch making them great for lamps and other lights If you want a plug in fan to move some air around before you get home a smart plug can help You can load a basic coffee maker with grounds and water the night before and wake up to a fresh pot in the morning And instead of an air purifier running all day you could set it to just run when you re away But any device that needs to be programmed further or requires a stand by mode isn t ideal Setup and useAdding a smart plug to your home is relatively simple You ll use the manufacturer s app to initially connect after which you can add the plug to a compatible smart home ecosystem Both the brand s app and your smart home app will let you name the plug set schedules and program “routines which control multiple smart devices at once But as you can guess a manufacturer s app only lets you control products from that brand If you want to operate a plug from TP Link s Kasa a bulb from GE s Cync and a camera from Wyze you ll need to use a smart home platform which means you ll need to consider compatibility CompatibilitySmart home devices connect through wireless protocols often using more than one to communicate with your phone smart speaker internet connection and in some cases one another The majority of smart plugs use WiFi but some newer plugs use a low power network standard called Thread It s more secure than WiFi tends to be more reliable and its mesh capabilities provide stronger coverage as more Thread devices are added These devices require a Thread border router such as an Apple HomePod or TV a fourth generation Amazon Echo or Google Nest Hub Matter is a new wireless standard intended to solve compatibility issues between different brands and manufacturers while also improving security and reliability Only a few such smart plugs are available right now and they currently work via WiFi Bluetooth and Thread networks These devices require a controller that stays at home like a smart speaker if you want to manage things when you re out and about If the device also uses Thread you might need a smart speaker that acts as a border router like the ones listed above If all that sounds complicated it is Matter promises simplicity but hasn t delivered just yet As for Bluetooth most plugs including all Matter plugs use the short range protocol to get the device set up for the first time Some can continue to run on Bluetooth in the absence of another option but the connection isn t as reliable and you won t be able to control the plug when you re away from home or perhaps even just on the other side of the apartment Because Matter is relatively new it may be easier to consider the manufacturer s system you d use the most There are four major “branded smart home platforms Amazon s Alexa Google Home Apple s HomeKit and Samsung s SmartThings The first two work with the widest range of brands and are compatible with both iOS and Android devices HomeKit not only limits app access to Apple devices but it s also compatible with fewer plugs You can also turn to open source software like Home Assistant or go with the larger functionality of IFTTT if you want to say tweet to turn your lights on For the purposes of our testing we stuck with the four big players Nearly every plug we looked at clearly stated which platforms it works with both on the packaging and retail product pages Of course there s no rule that says you have to stick with one home assistant You might have an Echo Dot in the basement a HomePod in the living room and a Google Nest Mini in the kitchen each controlling their compatible devices You only need to pair up the right smart home platform with the right device and then just remember which speaker controls what Photo by Amy Skorheim EngadgetSharingOnce a plug is set up with your platform and voice assistant of choice anyone can control the plug just by talking If someone else wants to control things with their phone things get more complicated Google makes it easiest allowing you to invite another person just by tapping the button within the Home app Whomever you invite will have full access to your connected devices including cameras so this is only for people you trust the most HomeKit makes it similarly easy to grant app access to someone else but as with most things Apple it only works for other iOS users Amazon only allows you to share access to your Echo not your connected home devices Many smart plug manufacturers allow you to share control through their app by inviting another person via email But this only grants access to devices of that brand Hopefully as Matter expands multi admin features will become more widespread How we tested the best smart plugsBefore we decided which smart plugs to test we considered brands Engadget staffers have had the best experiences with both in review capacity and personally We also checked out other online reviews We then looked at factors like price compatibility and relative popularity I got ahold of ten smart plugs from eight manufacturers and set up each one using its proprietary app then added it to all compatible smart home platforms Plugging in a cadre of lamps I tested the plugs using an iPhone Galaxy Se Echo Dot HomePod mini and Nest Mini I accessed the plugs via the apps and through voice commands and controlled them in my home and away from it I programmed schedules and routines and moved the plugs to different outlets including ones in the basement to gauge range Here s every smart plug tested before settling on our top picks Amazon Smart PlugEmporia Smart OutletGE Cync IndoorWyze PlugRoku Indoor Smart Plug SEBelkin Wemo Smart Plug with ThreadTP Link Kasa EPTP Link Kasa Ultra Mini EPTP Link Kasa KPM Matter Eve Energy Matter Best overall TP Link Kasa EPAll of the plugs eventually did what they said they would but each had a quirk or two that gave me pause except TP Link s Kasa EP From installation to implementation it was fuss free and reliable It s also one of the cheaper plugs on our list at just each but you ll usually find it in a four pack It works well with both iOS and Android and on all four smart home platforms The Kasa app has a clean intuitive design and includes the features you d expect like timers schedules a vacation mode and smart actions aka scenes TP Link makes a wide range of other smart devices so you could expand your smart home without having to leave the Kasa app The EP is an updated version of the HS that adds HomeKit compatibility so I was able to control it with both an iPhone and an Android phone If you also live in a blended OS home I recommend onboarding with the iPhone first After tapping the button in the Kasa iOS app a HomeKit pop up will prompt you to add the plug using the QR code from the box The code s also printed on the plug but that s harder to access Once set up in HomeKit it was easy to add the plug to the other smart home apps Google Home and SmartThings just need your TP Link log in details and Alexa uses the Kasa “skill Once you ve added one plug any future TP Link devices you incorporate should automatically show up in each app If you re only using an Android device the Kasa app will walk you through using a temporary Wi Fi network to get the plug online After setup I named the plug and assigned it a room making sure it was the same in each app to avoid confusing myself Then I programmed various routines and schedules and asked all three voice assistants to turn the light on and off everything worked without a hitch In the weeks of testing the EP never had a connection hiccup even after I relocated it to the basement which is the farthest point from my router My single complaint is that sharing with another user isn t supported within the Kasa app You can share your log in details with the other person as the app does support access from multiple devices on one account But Google Home feels like the best way to share smart home device control whether that s between iOS and Android devices or when everyone uses the same OS Best for homes with Alexa Amazon Smart PlugIf you have many Echo devices and use Alexa to answer your questions control your music and manage your timers Amazon s smart plug makes the most sense Your Echos and Alexa app already have your details so you won t have to create an account enter your WiFi password or switch to a different app which makes setup mindlessly simple In addition to naming your plug you ll also want to designate it as a light under Type in the settings menu That way when you say “Alexa turn all the lights off it will act accordingly I was impressed with the speed of the onboarding process and how seamlessly the plug blended into the ecosystem adding another IRL appendage to flex I still get a small thrill when I say “Alexa goodnight and all goes dark However you won t be able to use the Alexa smart plug with any other smart home app which is why it s best for those who ve already gone all in on an Amazon home The only other drawback and it s not a small one is the Alexa app s lack of sharing capabilities You can create households that let other people in your home access your Echo speakers through their phone but they can t see your smart home devices If you re the only one who needs app access and everyone else in your home is happy to interact via voice commands only this plug couldn t be simpler At it s not the cheapest smart plug but like all things Amazon it goes on sale fairly often Best Matter Plug TP Link Kasa KPMOnly a handful of Matter enabled smart plugs are currently available and the Kasa KPM is the best of what we tried It works with all four platforms installs easily and reliably maintains connections Most Matter devices need to be initialized with a QR code but this plug also supports Bluetooth onboarding which saves a step I set it up through the Kasa app first and because I already had another Kasa plug installed the process was simplified automatically prompting me to add the plug with a couple of taps Adding the device to Alexa Google Home and Samsung s SmartThings worked the same way with each app letting me know I had new devices available to add To add the plug to HomeKit I had to scan the included barcode The process didn t work at first and I ended up having to long press the button on the side to make it enter pairing mode Unlike some Matter plugs KPM doesn t require a Thread border router And because it s also a WiFi plug you don t need a Matter controller such as a smart speaker for access when you re away from home That said many of the negative reviews on Amazon have to do with the plug s poor HomeKit compatibility In addition to the setup hitch I mentioned the connection with the HomeKit app and Siri was extremely spotty until I added Apple s HomePod mini to the mix as a dedicated hub After that the reliability improved It s important to note that our best overall pick is cheaper and also works with all four platforms The higher price tag is likely due to the Matter logo on the side The protocol is still very new and honestly I d call the KPM plug more of a hybrid WiFi Bluetooth Matter plug which could be why it played nice with every platform The other Matter plug the Eve Energy Matter plug requires you to have a HomePod for HomeKit access a Nest Hub for Google Home connection and a SmartThings hub to make it work with Samsung s system The promise of Matter is faster and simpler connectivity requiring three hubs to work with various platforms seems to miss that point Honorable mentionsGE Cync IndoorMy main concern with the Cync plug is the way the scheduling works within the proprietary app Instead of programming when an outlet should turn on you tell it when it should turn off Despite my best efforts I could not figure out how to program the Cync connected lamp to come on at sunset as I did with every other plug Other than that the app is very elegant set up is easy and reliability is spot on It only works with Alexa and Google Home not HomeKit or SmartThings but at it s a couple bucks cheaper than the Wyze plug that has the same compatibility This article originally appeared on Engadget at |
2023-08-02 15:45:32 |
海外TECH |
Engadget |
Meta releases an open source AI kit that creates audio from text prompts |
https://www.engadget.com/meta-releases-an-open-source-ai-kit-that-creates-audio-from-text-prompts-152026368.html?src=rss
|
Meta releases an open source AI kit that creates audio from text promptsMeta is making it easier for artists and sound designers to produce audio using only AI The Facebook owner has released an open source AudioCraft kit that bundles three existing generative AI models for creating sounds from text descriptions AudioGen and MusicGen respectively produce sound effects and music while EnCodec compresses sounds to produce higher quality results A musician or sound designer might have everything they need to compose pieces The release includes pre trained AudioGen models for those who want to start quickly and tinkerers will have access to the entire AudioCraft code and model weighting The open source debut gives pros and researchers a chance to train the models using their own data Meta says All the pre trained models use either public or Meta owned material so there s no chance of copyright disputes The tech firm characterizes AudioCraft as a way to make generative AI audio simpler and more accessible Where AI produced images and text have been popular Meta believes sound has lagged quot a bit behind quot Existing projects tend to be complicated and frequently closed off In theory the new kit gives creators the opportunity to shape their own models and otherwise stretch what s possible This isn t the only open text to audio AI on the market Google opened up its MusicLM model in May Meta s system also isn t designed for everyday users ーyou ll still need to be technically inclined to use AudioCraft properly This is more for research the company says The developers are also trying to improve the performance and control methods for these models expanding their potential Even in its current state though AudioCraft may hint at the future of AI s role in music While you won t necessarily see artists using AI to completely replace their own creativity even experimenters like Holly Herndon are still highly involved they re getting more tools that let them create backing tracks samples and other elements with relatively little effort This article originally appeared on Engadget at |
2023-08-02 15:20:26 |
海外TECH |
Engadget |
Xbox gamers can now stream directly to Discord |
https://www.engadget.com/xbox-gamers-can-now-stream-directly-to-discord-150045129.html?src=rss
|
Xbox gamers can now stream directly to DiscordIt s about to get easier to stream your favorite console games Discord has announced it s rolling out Stream to Discord for Xbox allowing you to stream directly from your Xbox Series X S or Xbox One This news marks the first implementation of a console streaming directly to Discord which has only been available for PC and mobile gamers Xbox has typically received new Discord features before its competitor Playstation such as last year s update allowing gamers to connect directly to Discord Voice channels If you haven t already you ll need to connect your Xbox to Discord in the Connections menu on your desktop or mobile app ーjust click on the Xbox logo and sign into your Microsoft account You can stream right from a Voice channel by opening the Parties amp Chats tab on your Xbox choosing Discord and then picking the channel you want to join From there all you need to do is click quot Stream your game quot whenever you want to start broadcasting your game Stream to Discord for Xbox is also available in one on one or group DMs by clicking quot transfer to Xbox quot while on the call Then just like in a channel you can choose to stream your game to your friends Nitro subscribers will notice their streams appear in HD and up to p Stream to Discord is now available for Xbox Insiders and will be rolling out quot soon quot to all Xbox players The Xbox Insider Hub app is available for anyone to download through the Xbox store Discord also claims they quot are far from finished quot with their Xbox integration and will have more announcements later in the year This article originally appeared on Engadget at |
2023-08-02 15:00:45 |
金融 |
◇◇ 保険デイリーニュース ◇◇(損保担当者必携!) |
保険デイリーニュース(08/03) |
http://www.yanaharu.com/ins/?p=5290
|
損害保険ジャパン |
2023-08-02 15:01:53 |
金融 |
金融庁ホームページ |
審判期日の予定を更新しました。 |
https://www.fsa.go.jp/policy/kachoukin/06.html
|
期日 |
2023-08-02 16:00:00 |
ニュース |
BBC News - Home |
Jacob Crouch: Stepfather guilty of 'vicious' baby murder |
https://www.bbc.co.uk/news/uk-england-derbyshire-66307905?at_medium=RSS&at_campaign=KARANGA
|
fractures |
2023-08-02 15:35:18 |
ニュース |
BBC News - Home |
UK weather: Warnings issued over strong winds and thunderstorms |
https://www.bbc.co.uk/news/uk-66381122?at_medium=RSS&at_campaign=KARANGA
|
coast |
2023-08-02 15:34:33 |
ニュース |
BBC News - Home |
Rhodes fires: Free holiday for evacuated tourists, Greek PM says |
https://www.bbc.co.uk/news/world-europe-66374033?at_medium=RSS&at_campaign=KARANGA
|
rhodes |
2023-08-02 15:03:43 |
ニュース |
BBC News - Home |
Ex-Coronation Street star and baker in social media cake row |
https://www.bbc.co.uk/news/uk-england-leeds-66383812?at_medium=RSS&at_campaign=KARANGA
|
sweet |
2023-08-02 15:02:51 |
ニュース |
BBC News - Home |
Anti-vax protester guilty of harassing Matt Hancock |
https://www.bbc.co.uk/news/uk-politics-66384100?at_medium=RSS&at_campaign=KARANGA
|
health |
2023-08-02 15:30:53 |
ニュース |
BBC News - Home |
How to spot fake reviews online |
https://www.bbc.co.uk/news/uk-66387391?at_medium=RSS&at_campaign=KARANGA
|
online |
2023-08-02 15:17:07 |
ニュース |
BBC News - Home |
Tim Westwood: Police investigate a sixth report about ex-Radio 1 DJ |
https://www.bbc.co.uk/news/entertainment-arts-66386891?at_medium=RSS&at_campaign=KARANGA
|
offences |
2023-08-02 15:12:32 |
ニュース |
BBC News - Home |
Bibby Stockholm: Asylum barge not a death trap, minister Grant Shapps says |
https://www.bbc.co.uk/news/uk-england-dorset-66381331?at_medium=RSS&at_campaign=KARANGA
|
access |
2023-08-02 15:37:14 |
ニュース |
BBC News - Home |
Gianluigi Buffon: Italy legend retires aged 45 |
https://www.bbc.co.uk/sport/football/66378584?at_medium=RSS&at_campaign=KARANGA
|
football |
2023-08-02 15:40:29 |
ニュース |
BBC News - Home |
The most significant indictment explained... in 90 seconds |
https://www.bbc.co.uk/news/world-us-canada-66388065?at_medium=RSS&at_campaign=KARANGA
|
january |
2023-08-02 15:17:07 |
海外TECH |
reddit |
炫蛆tv之我和女同事的沙东旧事 |
https://www.reddit.com/r/Youmo/comments/15gba6v/炫蛆tv之我和女同事的沙东旧事/
|
eskintoryoumolinkcomments |
2023-08-02 15:04:19 |
海外TECH |
reddit |
陈乐欠摘了 |
https://www.reddit.com/r/Youmo/comments/15gbojv/陈乐欠摘了/
|
tznztoryoumolinkcomments |
2023-08-02 15:19:42 |
コメント
コメントを投稿