投稿時間:2023-05-06 01:14:38 RSSフィード2023-05-06 01:00 分まとめ(16件)

カテゴリー等 サイト名等 記事タイトル・トレンドワード等 リンクURL 頻出ワード・要約等/検索ボリューム 登録日
python Pythonタグが付けられた新着投稿 - Qiita 【Python】可変長引数の型って何をつけたら良いの? https://qiita.com/kissy24/items/79fd3691bb77ec5ea2cb 可変長引数 2023-05-06 00:05:25
Git Gitタグが付けられた新着投稿 - Qiita 【Git & GitHub 初心者が躓いたポイントまとめ】 https://qiita.com/tomo178/items/eebf921448a5e015eb47 gitampgithub 2023-05-06 00:53:09
海外TECH Ars Technica Scientists say they have found more moons with oceans in the Solar System https://arstechnica.com/?p=1937036 uranian 2023-05-05 15:18:41
海外TECH MakeUseOf How to Reset the Touch Keyboard Default Open Position in Windows 11 https://www.makeuseof.com/reset-touch-keyboard-default-open-position-windows-11/ windows 2023-05-05 15:15:16
海外TECH DEV Community React story: useRef vs useState https://dev.to/shishsingh/react-story-useref-vs-usestate-3a6n React story useRef vs useStateBefore we start deep diving into the difference lets examine the fundamentals associated with it Controlled componentsWhen form states are handled by component s state it is called controlled components In most of the case it is the ideal way to going ahead Even React official documentation recommends the same Current values are retrieved through props and then changes are made through callbacks Uncontrolled componentsContrary to controlled this is components are not handled by react Rather this is handled by the DOM itself In order to access any values that has been entered we use Refs Understanding with examples useRef Uncontrolled React useRef will allow you to write forms without re render the component for each user input optimising the application at the expense of real time controls enabling disabling the form submit button based on the user input and previews export default function App const inputElement useRef const onInputSubmit e gt e preventDefault alert The name you entered was inputElement current value return lt div className App gt lt form onSubmit onInputSubmit gt lt label gt Enter your name lt input type text ref inputElement gt lt label gt lt button type submit gt Enter lt button gt lt form gt lt div gt There is no state management by React We simply add a ref attribute in the input element to get access to its value inputElement current value useState Controlled React useState will allow you to re render the component for each user input losing slenderness to build more complex forms with real time controls export default function App const name setName useState const onInputSubmit e gt e preventDefault alert The name you entered was name return lt div className App gt lt form onSubmit onInputSubmit gt lt label gt Enter your name lt input type text value name onChange e gt setName e target value gt lt label gt lt button type submit gt Enter lt button gt lt form gt lt div gt We can see that React s useState Hook is used to track and handle changes to the input value As the onChange handler updates the state name constantly whenever the user makes changes to the input the input component is controlled Its state is the single source of truth of the input s value DifferencesBoth preserves data during rendering and update but only useState with its updater function causes re render useRef have current property keeping actual values while useState returns array of two elements First holds the state and second holds the state updater function Only useRef can be used in yet another field of application to gain direct access to React components or DOM elements useRef s current property is mutable but useState s state variable not Another important difference is controlled components are controlled by parent components while uncontrolled ones are controlled by DOM ReferencesCoverConcept examples Parent Definition Official DocsConceptual Definition Differences 2023-05-05 15:44:02
海外TECH DEV Community Angular Architecture - Abstraction layers https://dev.to/digitaldino/angular-architecture-abstraction-layers-2bpi Angular Architecture Abstraction layers Angular Architecture Organizing modules Dino Dujmovic・Apr ・ min read angular architecture frontend Now that we have explored how modular design can be achieved in a standalone Angular application let s take a closer look at how our application operates and functions by examining it through the lens of abstraction layers Abstraction LayersThe concept behind this pattern is to divide the application into discrete layers and establish communication protocols between them The pattern aims to split the application into three distinct layers namely Core LayerAbstraction LayerPresentation Layer Core Layer Angular Architecture Core Module Dino Dujmovic・Apr ・ min read angular architecture frontend webdev The Core Layer is the central implementation hub for the core application logic including all data manipulation and external communication This layer also includes essential business logic such as API calls for data retrieval It s main parts are services for making API calls and or state management which in case of Angular could be NgRx NgXs custom implementation using Subjects or other API Services have sole purpose to facilitate communication with API endpoints and nothing more Movie Service example used only for defining API callsState Management Solution serves as a centralized immutable data store for the application By incorporating an Abstraction Layer we can render our components independent of both the State Management Solution and API Data Services This approach makes it much easier to migrate to other data management solutions in the future as we won t need to modify the Presentational Layer i e the Components Movie State example using Ngxs Abstraction layerThe abstraction layer sits between the presentation and the core layer and handles communication between them Since the goal is not to inject API and state providers directly in the presentation layer rather we can inject the facade service and use it to interact with the core layer So abstraction layer is implemented as Angular providers services named facades example movies facade ts exposes streams of state and interfaceis used to store and dispatch actions observable emissions and expose observables and signals for components to use Movies Facade exports observables subscribes to store and dispatches store actions Presentation layerThe presentation layer UI layer is where all Angular components reside Its primary responsibility is to present the application s UI and delegate user actions to the core layer through the abstraction layer Inside of presentation layer we have Smart container components can pass data down to dumb componentshave facade s and other services injectedcommunicate with core layer through facadesreact to events from dumb componentsare usually page components meaning they are routable but it is not case Movies Page smart component injects facade and knows about the state Angular Architecture Page Modules Dino Dujmovic・Apr ・ min read angular architecture frontend Dumb presentational components recieve their data through Input and pass events and data through Output do not contain any application logicmostly kept in SharedModule or at specific module components folderMovie Card presentational component used only to show data passed from parent component Angular Architecture Shared Module Dino Dujmovic・Apr ・ min read angular architecture frontend webdev References dev academy com angular architecturemedium com getrohith sathyablog brecht io scalable angular 2023-05-05 15:26:17
Apple AppleInsider - Frontpage News Apple Music Live's second season kicks off with Ed Sheeran https://appleinsider.com/articles/23/05/05/apple-music-lives-second-season-kicks-off-with-ed-sheeran?utm_medium=rss Apple Music Live x s second season kicks off with Ed SheeranThe second season of Apple Music Live a live performance series featuring music stars is almost here and it will kick off with Ed Sheeran Apple Music Live season two debuts with Ed SheeranSheeran will open the series at the Eventim Apollo in London He will present his latest album pronounced subtract and perform it in its entirety for the first time Read more 2023-05-05 15:29:26
海外TECH Engadget Humanity's historical fascination with wearable wheels https://www.engadget.com/human-historical-fascination-wearable-wheels-rollerskates-transportation-154332171.html?src=rss Humanity x s historical fascination with wearable wheelsBipedal locomotion is the worst You take a step forward and you end up standing there legs akimbo until you repeat the process with your other foot And then do it again and again and again ーback and forth left and right like a putz until you reach your destination hopefully somewhere to sit Even worse walking requires real physical effort For our distant ancestors migrating into colder climates slogging through mud and snow and across ice on foot quickly ate into their already tight caloric budgets limiting the distances they could hunt and travel Sure the advent of wheels in the fourth millennia BC drastically improved our transportation options but it would be nearly another years before we d think to strap them to our feet A study by a team out of Oxford University and published in Biological Journal of the Linnean Society of London suggests that the practice of ice skating potentially emerged in Finland based on evidence from a set of bone “skates dated to around BC The team argued that the region s large number of interconnected waterways which froze over every winter was the only place in the ancient world cold enough and flat enough to make strapping horse shins to the bottoms of our feet make caloric sense In fact the research team found that these skates ーeven if they were only a quarter as efficient and quick as modern models ーoffered a ten percent energy savings versus traveling the same route by foot which added an extra km total distance to travel each day “Ice skates were probably the first human powered locomotion tools to take the maximum advantage from the biomechanical properties of the muscular system even when traveling at relatively high speeds the team argued “The skating movement pattern required muscles to shorten slowly so that they could also develop a considerable amount of force The practice also appears in western China In March archaeologists discovered year old skates made from oxen and horse bone in the country s Xinjiang Uyghur Autonomous Region The dig team led by archaeologist Ruan Qiurong of the Xinjiang Institute of Cultural Relics and Archeology argued that their skates bear striking similarities to those found previously in Europe suggesting a potential knowledge exchange between the two Bronze Age civilizations It wouldn t be until the mid s that the wheeled variety made their first appearance Those early bespoke prototypes served in London stage shows as props to simulate ice skating winter scenes though the identity of their creators has been lost to history th century Belgian clock and instrument maker John Joseph The Ingenious Mechanic Merlin is credited with devising the first inline roller skate a two wheeled contraption he dubbed “skaites and unveiled in the s One of his ingenious novelties was a pair of skaites contrived to run on wheels Thomas Busby s Concert Room and Orchestra Anecdotes mentioned in “when not having provided the means of retarding his velocity or commanding its direction he impelled himself against a mirror of more than five hundred pounds value dashed it to atoms broke his instrument to pieces and wounded himself most severely By the middle of the th century roller skating had migrated out of the art house scene and into the public consciousness London s first public roller rink The Strand opened in and set off a decades long love affair with the English populace As the burgeoning sport grew in popularity the skates themselves quickly evolved to flatten the learning curve in taking up the activity Merlin s early two wheel inline design gave way to the classic four wheel side by side aka “quad build we all remember from the Disco Era New York City s James Leonard Plimpton is credited with their invention in Not only did Plimpton s skates offer a more stable rolling platform they were the first to incorporate “trucks the cushioned pivoting axles that virtually all modern skates and skateboards use A dozen years later someone finally got around to inventing proper wheel bearings That someone being William Brown of Birmingham England He patented the first modern ball bearing design in and quickly followed that with a larger design for bicycles in These patents directly led to today s ball bearing technology which we can find in everything from skateboards to semi tractor trailers On modern skates the rotating wheel and the stationary axel are separated by two hollow disc shaped devices called bearings These bearings are designed so that the inner and outer surfaces which each sit in contact with the wheel and axle can spin freely They can do this because of a ring of small spherical metal balls sandwiched between the two plates which roll and rotate without generating significant amounts of friction or heat thanks to inventor Levant M Richardson who patented the use of harder steel bearings in allowing the spinning wheels to do the same The advent of this tech meant we no longer had to smear our axles with animal grease so that in and of itself right there is a win for humanity saving us from a future where every indoor roller derby meet would smell of cooked pork fat With bearings in your wheels it s far easier to pick up velocity and achieve a higher top speed so rather than let the public go “full Merlin at the local rink the toe stop was invented in It remains a common fixture on modern quad skates as well as a select number of inlines though those more commonly rely on heel stops instead Despite their origins in the th century The Peck amp Snyder Company holds the patent for inline skates two wheeled ones at that from From the dawn of the th century roller skating has been an intractable part of American culture despite generational swings in the pastime s popularity The sport rolled right over from the UK in the early s and experienced an initial surge in popularity until the Great Depression hit in the s To keep the interest of an economically stricken public Chicago based sports promoter Leo Selzer invented roller derby in Selzer had originally owned a string of movie theaters in Oregon but got into live event promotions when they became losing propositions during the economic downturn which coincided with a national endurance competition fad think marathon dancing and pole sitting competitions Derby as we know it today grew out of Selzer s early roller marathon idea His inaugural Transcontinental Roller Derby in lasted several days and drew a crowd of more than spectators In Selzer tweaked the competition s format to allow for more physicality between contestants and modern roller derby was born Derby and skating in general fell off during WWII though many derby stars served abroad as USO entertainers for the troops It saw a massive resurgence in the Post War s and s when ーjust like with Rock amp Roll and the Blues ーwhite folks helped themselves to the already established Black skating culture Skating fell off a bit in the s but reemerged stronger than ever in the Disco Era when white folks came back around and did the same to queer culture At the tail end of the s the industry once again reinvented itself with the introduction of inline skates In Scott and Brennan Olsen happened upon an old pair of inline prototypes in Minneapolis that had been developed a decade earlier by the Chicago Roller Skate Company Competitive ice hockey players themselves the two immediately saw its potential as an off season training aid By this point inline skate designs had been patented for decades The tech itself was known but nobody had managed to make the wheeled boots commercially viable ーuntil the brothers Olsen founded the Rollerblade company in You d think that we d have learned from Icarus but no in Roger Adams had the bright idea for Heelys skates that were actually shoes but with small wheels mounted in the heels Not to be outdone Razor debuted the Jetts Heel Wheels ーimaging just the back half of a set of quad skates but they re driven by an electric motor that hits mph for up to minutes ーin And in our wheeled footwear aspirations came full circle with the release of Moonwalkers quad skates that are worn like skates but are powered like Jetts and are designed for stepping not pushing and gliding Designed “to make you feel like you re on a moving walkway these devices can reportedly accelerate your strides up to percent and adapt to your gait as you use them This article originally appeared on Engadget at 2023-05-05 15:43:32
海外TECH Engadget This is your last chance to claim games like 'God of War' from the PS Plus Collection https://www.engadget.com/this-is-your-last-chance-to-claim-games-like-god-of-war-from-the-ps-plus-collection-151810855.html?src=rss This is your last chance to claim games like x God of War x from the PS Plus CollectionIf you have a PlayStation Plus subscription and the ability to log in to a PlayStation a console that s far easier to come by these days it s worth bearing in mind that Sony is offering access to a bunch of great PS games at no extra cost You ll need to act pretty quickly to snag them if you haven t already though as the PS Plus Collection is going away on May th That means this weekend is your last chance to snap up notable first party and third party games from the collection In a similar fashion to the monthly games that Sony offers all PS Plus members you ll have access to titles that you claim from the collection on both PS and PS as long as you remain a subscriber nbsp You ll need to claim them on a PS console rather than on PS or the web version of the PlayStation Store To do so go to the Benefits section of the PS Plus tab The games in the PS Plus Collection are Batman Arkham KnightBattlefield BloodborneCall of Duty Black Ops III Zombies Chronicles Edition Crash Bandicoot N Sane TrilogyDays GoneDetroit Become HumanFallout Final Fantasy XV Royal EditionGod of War Infamous Second SonThe Last GuardianThe Last of Us RemasteredMonster Hunter WorldMortal Kombat XRatchet and ClankResident Evil BiohazardUncharted A Thief s EndUntil DawnThere s something for just about everyone on that list though it got a little shorter last May when Sony removed Persona The Last of Us God of War Bloodborne and Uncharted A Thief s End are among the most highly regarded PlayStation titles even if versions of all those except Bloodborne are nowavailableon PC Some of the games such as God of War and Ratchet and Clank have been updated to optimize them for PS It s worth noting that most of the games in the collection are also available to PS Plus Premium and Extra subscribers so it s a better deal if you re on the Essential plan However Sony has started rotating some of its first party games out of the Premium and Extra catalogs Claiming the games from the PS Plus Collection now will ensure you have permanent access to them ーas long as you keep paying for your subscription of course This article originally appeared on Engadget at 2023-05-05 15:18:10
Cisco Cisco Blog Delivering Superior Calling Experience to Over 40M Users via Webex for BroadWorks https://feedpress.me/link/23532/16107943/delivering-superior-calling-experience-to-over-40m-users-via-webex-for-broadworks Delivering Superior Calling Experience to Over M Users via Webex for BroadWorksThe Webex for BroadWorks offer provides a best in class all in one calling messaging and meetings collaboration experience to over M users today and is one of Cisco s fastest growing offers 2023-05-05 15:00:50
海外科学 NYT > Science W.H.O. Ends Covid World Health Emergency Designation https://www.nytimes.com/2023/05/05/health/covid-who-emergency-end.html W H O Ends Covid World Health Emergency DesignationThe decision has little practical effect but is a significant moment in the struggle against a virus that has killed millions and upended lives throughout the world 2023-05-05 15:21:44
ニュース BBC News - Home Local elections 2023: Labour and Lib Dems take seats from Tories https://www.bbc.co.uk/news/uk-politics-65485099?at_medium=RSS&at_campaign=KARANGA losses 2023-05-05 15:19:35
ニュース BBC News - Home Ex-Uber security chief sentenced over covering up hack https://www.bbc.co.uk/news/technology-65497186?at_medium=RSS&at_campaign=KARANGA accounts 2023-05-05 15:41:29
ニュース BBC News - Home Drought prompts French ban on garden swimming pools https://www.bbc.co.uk/news/world-europe-65494306?at_medium=RSS&at_campaign=KARANGA crisis 2023-05-05 15:00:41
ニュース BBC News - Home Lucy Letby trial: Baby's death was unexpected shock, nurse tells jury https://www.bbc.co.uk/news/uk-england-merseyside-65494165?at_medium=RSS&at_campaign=KARANGA child 2023-05-05 15:38:48
ニュース BBC News - Home Local elections 2023: Historic win as Greens march into rural Tory areas https://www.bbc.co.uk/news/uk-politics-65496534?at_medium=RSS&at_campaign=KARANGA election 2023-05-05 15:35:05

コメント

このブログの人気の投稿

投稿時間:2021-06-17 05:05:34 RSSフィード2021-06-17 05:00 分まとめ(1274件)

投稿時間:2021-06-20 02:06:12 RSSフィード2021-06-20 02:00 分まとめ(3871件)

投稿時間:2020-12-01 09:41:49 RSSフィード2020-12-01 09:00 分まとめ(69件)