IT |
ITmedia 総合記事一覧 |
[ITmedia ビジネスオンライン] 日本は周回遅れ? ウォルマートを成長させた「データ整備」と「物流改善」の極意 |
https://www.itmedia.co.jp/business/articles/2308/01/news049.html
|
浮き彫り |
2023-08-02 06:30:00 |
IT |
ITmedia 総合記事一覧 |
[ITmedia News] X(旧Twitter)、反ヘイト団体CCDHを本当に提訴 「データを不正に収集した」 |
https://www.itmedia.co.jp/news/articles/2308/02/news078.html
|
itmedianewsx |
2023-08-02 06:28:00 |
海外TECH |
MakeUseOf |
12 Great Udemy Courses That Can Help Creators Improve Their Content |
https://www.makeuseof.com/udemy-courses-for-content-creators/
|
Great Udemy Courses That Can Help Creators Improve Their ContentWhether you re a newbie or an experienced content creator everyone can benefit from learning something new Level up with these Udemy courses |
2023-08-01 21:45:24 |
海外TECH |
MakeUseOf |
5 Things to Do if Your Nintendo Account Gets Hacked |
https://www.makeuseof.com/what-to-do-if-nintendo-account-gets-hacked/
|
nintendo |
2023-08-01 21:01:23 |
海外TECH |
DEV Community |
Plan Your Dream Trip with Wanderkit.net: A Behind-the-Scenes Look |
https://dev.to/levischouten/plan-your-dream-trip-with-wanderkitnet-a-behind-the-scenes-look-3g47
|
Plan Your Dream Trip with Wanderkit net A Behind the Scenes LookHey there I m excited to share my latest project wanderkit net where you can create personalised travel itineraries using AI Whether you re a seasoned explorer or a newbie to travel planning Wanderkit is here to make your trip unforgettable The Magic Behind Wanderkit The Technologies I UsedNow let me show you the tools that made Wanderkit possible Next js Powering a Smooth ExperienceWanderkit runs on Next js a cool framework that ensures everything works smoothly and lets us build things quickly With Vercel hosting we could easily put it all together and launch the site without any trouble I experimented with using Next js with the app directory and will be writing a separate blog on my findings MongoDB Our Trusty Database PartnerStoring data is essential and that s where MongoDB comes in It s easy to set up and lets us make changes without having to deal with any database migrations So I can focus on developing OpenAI The Magic of Personalised RecommendationsOpenAI is used for generating the actual itineraries It was the most developed well documented and stable option Stripe Safe and Easy PaymentsMaking payments should be worry free and Stripe is the go to for secure transactions It s a well known payment system that keeps your financial info safe and makes paying for your trip a breeze I will be writing a separate blog on integrating Stripe with Next js Mailersend Staying ConnectedCommunication is key and Mailersend helps us stay in touch with you Sending emails and updates is simple thanks to this handy tool It came with a generous free tier and an easy setup Tailwind CSS Making Things Look AwesomeFor a stylish look we used Tailwind CSS It helps us create a beautiful design with ease I have absolutely fallen in love with the utility approach of Tailwind CSS I like having my CSS close to my HTML allowing me to see how everything is styled in one go It s fast no CSS in JS overhead Easy setup And it comes with an amazing build in design system especially the colours Start Your Adventure with wanderkit netNow that you know the magic behind Wanderkit come and check it out at Wanderkit Your dream itinerary is just a few clicks away As we keep improving the site we d love to hear your feedback and ideas for new features If you re curious about the nitty gritty take a peek at our project s code on GitHub We re excited to have you join us on this amazing journey of travel and technology Get ready to plan the trip of a lifetime with wanderkit net Happy travels adventurers ️My personal website www levischouten net |
2023-08-01 21:42:39 |
海外TECH |
DEV Community |
Keyed Services in .NET8's Dependency Injection |
https://dev.to/xelit3/keyed-services-in-net8s-dependency-injection-2gni
|
Keyed Services in NET x s Dependency Injection IntroductionSince the beginning AspNetCore provided a simple but effective dependency injection container by default without the need of configuring it manually This amazing built in implementation has worked like a charm in most of the common scenarios However not everything was covered as easy as pie by default As a counterexample if we needed to deal with more than one implementation pointing to the same interface we needed some kind of workaround to overcome this challenge Previous contextHaving said that we would be able to use a Factory method or a custom implementation resolver among others or directly using a different DI container provider like Autofac but the one that I used the most until now was using a custom delegate and a simple enum with the different implementations With this aim in mind this is how it looked an implementation having this kind of Service Resolver Services definitionLet s imagine that we have a couple of implementations fulfilling the same contract definition public interface IService public Task lt string gt DoSomethingAsync public class ServiceImplementationA IService public Task lt string gt DoSomethingAsync gt Task FromResult Hello there from Service A public class ServiceImplementationB IService public Task lt string gt DoSomethingAsync gt Task FromResult Hello there from Service B Custom delegate and EnumWith this scenario we will need something in charge of resolving this within the needed part of the project Controller Service and this will have the shape of a custom delegate considering the members of an enum that has the different implementations defined in the project public enum ServiceImplementation A B public delegate IService ServiceResolver ServiceImplementation implementationType DI Container configurationOnce we have this delegate defining what we need for resolving our different implementations let s see how to properly set up everything within the DI container builder Services AddTransient lt ServiceImplementationA gt builder Services AddTransient lt ServiceImplementationB gt builder Services AddTransient lt ServiceResolver gt serviceProvider gt implType gt return implType switch ServiceImplementation A gt serviceProvider GetService lt ServiceImplementationA gt ServiceImplementation B gt serviceProvider GetService lt ServiceImplementationB gt gt throw new ArgumentException Invalid service type ️Note that we are using a pattern matching implementation for resolving the different types however this could also be done with a traditional switch case builder Services AddTransient lt ServiceResolver gt serviceProvider gt implType gt switch implType case ServiceImplementation A return serviceProvider GetService lt ServiceImplementationA gt case ServiceImplementation B return serviceProvider GetService lt ServiceImplementationB gt default throw new ArgumentException Invalid service type Resolving itHaving this in a minimal API as a quick example this would look like the example below once we needed to resolve our different services app MapGet test a async ServiceResolver serviceResolver gt var service serviceResolver ServiceImplementation A var data await service DoSomethingAsync return Results Ok data WithName TestEndpoint A WithOpenApi app MapGet test b async ServiceResolver serviceResolver gt var service serviceResolver ServiceImplementation B var data await service DoSomethingAsync return Results Ok data WithName TestEndpoint B WithOpenApi ️Note that we directly inject the ServiceResolver delegate and we request the concrete service through our initially defined enum type Running itWith the API running once we try to execute it this is what we have back in both endpoints The invocation shown in the screenshot above was using HttpRepl dotnet tool more info here What s new in NET Accordingly to one of the latest tweets from David Fowler NET will introduce a new feature called Keyed Services that will allow to define keyed elements within the DI Container This feature will be available to any kind of AspNetCore application and the key can be anything This feature isn t delivered yet in any of the current NET preview releases so it may vary on final release So the example shown above would look like this DI Container configurationConfiguring it is quite straightforward it s required to use the concrete extension method according to the life scope that we want to specify for the given implementation so here we have some of the equivalent methods to the one that we already know RegularKeyedAddTransient lt TService TImplementation gt AddKeyedTransient lt TService TImplementation gt object key AddScoped lt TService TImplementation gt AddKeyedScoped lt TService TImplementation gt object key AddSingleton lt TService TImplementation gt AddKeyedSingleton lt TService TImplementation gt object key Following the previous example equally registering ours as Transient ones builder Services AddKeyedTransient lt IService ServiceImplementationA gt ServiceImplementation A builder Services AddKeyedTransient lt IService ServiceImplementationB gt ServiceImplementation B Resolving itHere we have a couple of simple mechanisms for helping us to inject the concrete type One is using the decorator FromKeyedServices very useful especially in Minimal API s The other one is using a concrete new service provider type called IKeyedServiceProvider Using FromKeyedServices app MapGet test a async FromKeyedServices ServiceImplementation A IService serviceImplA gt var data await serviceImplA DoSomethingAsync return Results Ok data WithName TestEndpoint A WithOpenApi app MapGet test b async FromKeyedServices ServiceImplementation B IService serviceImplB gt var data await serviceImplB DoSomethingAsync return Results Ok data WithName TestEndpoint B WithOpenApi Using IKeyedServiceProvider public class AnotherServiceConsumingA private readonly IService service public AnotherServiceConsumingA IKeyedServiceProvider keyedServiceProvider service keyedServiceProvider GetRequiredKeyedService lt IService gt ServiceImplementation A ConclusionThis new feature is a simple but effective built in way for resolving these particular situations in our code base easily without the need of using external libraries or workarounds and the two flavours provided for resolving it in the consumer classes provides all that we need so looking forward to the final implementation delivered in the upcoming NET previews ️As commented this is based on a preliminar information still not available on current NET previews so the final approach could vary significantly from this post If you liked it please give me a and follow me ResourcesYou can check it out the current approach code here Useful linksDavid Fowler s tweetAspNetCore Dependency Injection |
2023-08-01 21:29:31 |
海外TECH |
DEV Community |
Implementing To-Do List using JavaScript: |
https://dev.to/iamcymentho/implementing-to-do-list-using-javascript-32a7
|
Implementing To Do List using JavaScript Let s go through the steps of implementing a basic To Do List with code blocks for each step Set Up the HTML Structure Style the To Do List Optional Handle Task Addition Display Tasks This step is already covered by the code in step Handle Task Completion Handle Task Deletion Store Tasks in Local Storage Optional Refactor and Improve Optional Refactor your code to make it more organized and reusable Consider adding features like task priority due dates or task categories Test the To Do List Test the To Do List thoroughly to ensure that adding completing and deleting tasks work as expected Test for edge cases and handle errors gracefully Deploy Optional If you want to share your To Do List with others consider deploying it to a web hosting service or using a code sharing platform By following these steps and code blocks you ll have a functional To Do List application with basic task addition completion and deletion functionalities Happy coding |
2023-08-01 21:01:36 |
Apple |
AppleInsider - Frontpage News |
tvOS 17 & watchOS 10 public beta 2 now available |
https://appleinsider.com/articles/23/08/01/tvos-17-watchos-10-public-beta-2-now-available?utm_medium=rss
|
tvOS amp watchOS public beta now availableApple has released the second public betas for watchOS and tvOS watchOS public beta Apple s upcoming operating systems are set to bring a host of new features that will enhance the user experience across various apps People who are interested in downloading the latest operating systems can do so via the Apple Beta Software Program Read more |
2023-08-01 21:28:58 |
Apple |
AppleInsider - Frontpage News |
JP Morgan gives Apple a price target of $235 for December 2024 |
https://appleinsider.com/articles/23/08/01/jp-morgan-gives-apple-a-price-target-of-235-for-december-2024?utm_medium=rss
|
JP Morgan gives Apple a price target of for December Apple seems well positioned to drive higher confidence as an earnings compounder according to JP Morgan which has raised its price target to for the end of iPhone PlusJP Morgan continues to remain bullish about Apple s future having previously cited a robust shareholder return for Despite global economic headwinds and other factors Apple remained resilient through the March quarter and expects to show strength in the upcoming third quarter report Read more |
2023-08-01 21:20:45 |
海外TECH |
Engadget |
Zen moving game 'Unpacking' comes to Android and iOS on August 24th |
https://www.engadget.com/zen-moving-game-unpacking-comes-to-android-and-ios-on-august-24th-214513079.html?src=rss
|
Zen moving game x Unpacking x comes to Android and iOS on August thIf your idea of relaxation involves opening cardboard boxes you re in for a good time Humble Games and Witch Beam have confirmed that Unpacking is coming to iOS and Android on August th You can pre order the iOS version for today This has been a long time in coming given that the game first arrived on consoles and PCs in but it may be worthwhile if you re new to the concept Unpacking is at its heart a hybrid puzzle and home decoration game You have to find space for items as an unseen person moves into a new abode There s no time limit or other pressure and it can be very soothing as you set up a child s bedroom or the family kitchen However it s particularly clever for the way it tells its story You re learning about a woman s life by seeing where she goes and what she brings with her rather than dialog As the title is almost entirely wordless it s accessible to a wide range of people The game isn t changing significantly with the move to mobile However the developers argue Unpacking is perfect for touch as you can drag objects with your finger and sense the world through haptic feedback Whether or not that s true the portability may be appealing This may be the most appropriate game to play when you ve just moved to a new place ーyou can fire it up while your usual gaming hardware is still packed away This article originally appeared on Engadget at |
2023-08-01 21:45:13 |
海外TECH |
Engadget |
A new Samba de Amigo game is coming to Apple Arcade this month |
https://www.engadget.com/a-new-samba-de-amigo-game-is-coming-to-apple-arcade-this-month-211127732.html?src=rss
|
A new Samba de Amigo game is coming to Apple Arcade this monthSamba de Amigo is coming to Apple Arcade Sega s classic maraca shaking rhythm franchise is seeing a renaissance this year as the new installment arrives on Apple platforms and Nintendo Switch on the same day A VR port for Meta Quest announced in early June is also scheduled to launch sometime this fall “Shake it with your maracas and groove to hit songs from the world s most popular genres the game s App Store description reads Exclusive songs for the Apple version include “The Edge of Glory by Lady Gaga “Daddy by Psy of “Gangnam Style fame and “The Walker by Fitz and the Tantrums The Apple Arcade version s title Samba de Amigo Party To Go emphasizes its portable nature The Switch version is called Samba de Amigo Party Central while the Meta Quest version is simply Samba de Amigo Neither Sega nor Apple has said much about how gameplay details may differ between Apple s variant and the other platforms except that the Apple Arcade version will exclusively have the series first story mode “Embark on a quest with Amigo to return lost music to the world the blurb reads Sega AppleApple Arcade subscribers can shake it with Samba on iPhone iPad Mac and Apple TV The App Store listing doesn t precisely say how controls work but using your phone as a faux maraca with touchscreen controls as a fallback would be a logical guess However it does mention that external controllers are also supported The Switch version uses Joy Cons and the Quest version relies on its Touch Controllers Samba de Amigo Party To Go is scheduled to hit the App Store on August th Apple Arcade costs per month after a one month free trial and none of its games have in app purchases The Switch version also due August th is priced at and the Quest VR variant will be You can brush up on your Dreamcast era moves while watching the trailer for the Switch version below This article originally appeared on Engadget at |
2023-08-01 21:11:27 |
ニュース |
BBC News - Home |
The Hundred 2023: Trent Rockets begin title defence with thrilling win over Southern Brave in men's opener |
https://www.bbc.co.uk/sport/cricket/66374013?at_medium=RSS&at_campaign=KARANGA
|
The Hundred Trent Rockets begin title defence with thrilling win over Southern Brave in men x s openerTrent Rockets start their title defence with a thrilling six run win over Southern Brave in the opening game of The Hundred men s competition |
2023-08-01 21:17:55 |
ニュース |
BBC News - Home |
Netball World Cup 2023 results: England 89-28 Fiji - Red Roses dominate to seal semi-final spot |
https://www.bbc.co.uk/sport/netball/66370156?at_medium=RSS&at_campaign=KARANGA
|
Netball World Cup results England Fiji Red Roses dominate to seal semi final spotEngland produce their best performance of the Netball World Cup so far to beat Fiji and confirm their place in the semi finals |
2023-08-01 21:35:48 |
ビジネス |
東洋経済オンライン |
ロシア国防相を金総書記が歓待した戦略的理由 北朝鮮とロシア、それぞれの思惑を専門家に聞く | 韓国・北朝鮮 | 東洋経済オンライン |
https://toyokeizai.net/articles/-/691514?utm_source=rss&utm_medium=http&utm_campaign=link_back
|
祖国解放 |
2023-08-02 06:30:00 |
ビジネス |
プレジデントオンライン |
これができないと孤独な人生が待ち受ける…タダで幸せと健康が手に入るのに多くの人が実践できないこと - 人に感謝できない人はどんどん孤立してマイナスのサイクルに陥る |
https://president.jp/articles/-/72132
|
人間関係 |
2023-08-02 07:00:00 |
コメント
コメントを投稿