投稿時間:2022-11-21 01:14:27 RSSフィード2022-11-21 01:00 分まとめ(18件)

カテゴリー等 サイト名等 記事タイトル・トレンドワード等 リンクURL 頻出ワード・要約等/検索ボリューム 登録日
IT 気になる、記になる… 「iPhone 15」、背面はエッジ部分が丸みを帯びたデザインに?? https://taisy0.com/2022/11/21/165213.html iphone 2022-11-20 15:25:10
Ruby Rubyタグが付けられた新着投稿 - Qiita デプロイをした後の運用方法 https://qiita.com/keita1115/items/68e8f45c4dbe7cdad247 environmentsshisshpractic 2022-11-21 00:04:09
golang Goタグが付けられた新着投稿 - Qiita GO言語で並列実行するサンプルコード。ワーカーのキャンセル機能付き https://qiita.com/fetaro/items/6cda68d5849f21c5c13d pkgerrorstyperesultstru 2022-11-21 00:34:50
Azure Azureタグが付けられた新着投稿 - Qiita AzureFunctionsとAzureReposを使って開発環境構築を行う https://qiita.com/itita/items/d102fc969e3d87e73d28 windows 2022-11-21 00:33:55
Azure Azureタグが付けられた新着投稿 - Qiita BLOBの種類 https://qiita.com/ss12345/items/60387d2c8c2299bf546c azure 2022-11-21 00:23:53
Ruby Railsタグが付けられた新着投稿 - Qiita デプロイをした後の運用方法 https://qiita.com/keita1115/items/68e8f45c4dbe7cdad247 environmentsshisshpractic 2022-11-21 00:04:09
海外TECH DEV Community The Queue Data Strucure and How to Implement a Queue in Ruby https://dev.to/jaredm/the-queue-data-strucure-and-how-to-implement-a-queue-in-ruby-433 The Queue Data Strucure and How to Implement a Queue in RubyIf you don t already know what a queue is it s quite simple I m sure all of us have been in queues before like at the grocery store or bank The person in the front of the line is helped first then the second person then third and so forth The exact same concept is what defines a queue in computer science The queue data structure always behaves like a real queue The element that was inserted first will always be removed from the queue first A common term for this is First in First Out FIFO How can we implement a queue in Ruby You can use an array as a queue in ruby if you use certain Array methodsArray unshiftArray popExample queue Array newqueue unshift apple queue unshift orange queue unshift banana queue is apple orange banana queue last peek returns dog queue pop banana queue pop orange queue is apple Here we use Array unshift to add an element to the queue Array pop removes the first element from the queue and Array last peeks at the first element There are some other useful methods like Array size and Array empty that are commonly used by developers for queues Built in Queue ClassIf you are a syntax sugar eater like myself Ruby lyfe you will be happy to learn that Ruby has a built in Queue class Unlike the array implementation from before the Ruby Queue class is thread safe and commonly used for coordinating work in multi threaded programs It is especially useful in threaded programming when information must be exchanged safely between multiple threads Ruby s Queue has many methods that are more are less the same as Array It has similar methods to add elements to the back of the queue such as push enq and lt lt the shovel It also has similar methods as the Array class to remove elements from the queue like pop deq and shift Create a new QUEUE qqueue Queue new queue push queue push   Prints the element             puts queue pop                 puts queue popYou can see here that the Queue methods are basically exactly the same as Array but there is some builtin magic behind the scenes in order for multi threading to work For instance jn the example above calling pop again to the empty queue will put your current thread to sleep amp wait until something is added to the queue The SizedQueueThe SizedQueue in Ruby is the same as the regular Queue class but with a size limit hence the name Whenever the queue is full the push and lt lt methods will suspend the current thread until and item is taken off the queuequeue SizedQueue new queue push oranges queue push apples queue push blue queue push orange queue push green At this point the SizedQueue is fullqueue push throw expection data structures queues queue rb in push No live threads left Deadlock fatal threads sleeps current xfff main thread xfff lt Thread xfffef sleep forever gt rb thread t xfff native xdddc int data structures queues queue rb in push data structures queues queue rb in lt main gt from data structures queues queue rb in lt main gt One useful thing about the sized queue is that you can choose to raise an exception passing true as an argument like so queue push throw expection true data structures queues queue rb in push queue full ThreadError from data structures queues queue rb in lt main gt And that s it If you want leave a comment and I will add some more Ruby implementations of the queue data structure I hope this helped for my peeps out there studying Data Structures and Algorithms HAPPY CODING 2022-11-20 15:42:59
海外TECH Engadget Hitting the Books: How Dave Chappelle and curious cats made Roomba a household name https://www.engadget.com/hitting-the-books-youre-not-expected-to-understand-this-torie-bosch-princeton-university-press-153022111.html?src=rss Hitting the Books How Dave Chappelle and curious cats made Roomba a household nameAutonomous vacuum maker iRobot is a lot like Tesla not necessarily by reinventing an existing concept ーvacuums robots and electric cars all existed before these two companies came on the scene ーbut by imbuing their products with that intangible quirk that makes people sit up and take notice Just as Tesla ignited the public s imagination as to what an electric car could be and do iRobot has expanded our perception of how domestic robots can fit into our homes and lives nbsp More than two dozen leading experts from across the technology sector have come together in You Are Not Expected to Understand This How Lines of Code Changed the World nbsp to discuss how seemingly innocuous lines of code have fundamentally shaped and hemmed the modern world In the excerpt below Upshot Deputy Editor Lowen Liu explores the development of iRobot s Roomba vacuum and its unlikely feline brand ambassadors Hachette Book GroupExcerpted with permission from You Are Not Expected to Understand This How Lines of Code Changed the World edited by Torie Bosch Published by Princeton University Press Copyright All rights reserved The Code That Launched a Million Cat Videos nbsp by Lowen LiuAccording to Colin Angle the CEO and cofounder of iRobot the Roomba faced some early difficulties before it was rescued by two events The disc shaped robot vacuum had gotten off to a hot start in late with good press and a sales partner in the novelty chain store Brookstone Then sales started to slow just as the company had spent heavily to stock up on inventory The company found itself on the other side of Black Friday in with thousands upon thousands of Roombas sitting unsold in warehouses nbsp Then around this time Pepsi aired a commercial starring comedian Dave Chappelle In the ad Chappelle teases a circular robot vacuum with his soft drink while waiting for a date The vacuum ends up eating the comedian s pantsーschlupp Angle remembers that at a team meeting soon after the head of e commerce said something like “Hey why did sales triple yesterday The second transformative moment for the company was the rapid proliferation of cat videos on a new video sharing platform that launched at the end of A very specific kind of cat video felines pawing suspiciously at Roombas leaping nervously out of Roombas paths and of course riding on them So many cats riding on so many Roombas It was the best kind of advertising a company could ask for it not only popularized the company s product but made it charming The Roomba was a bona fide hit nbsp By the end of iRobot had sold million vacuums leading the charge in a booming robot vacuum market The Pepsi ad and the cat videos appear to be tales of early days serendipity lessons on the power of good luck and free advertising They also appear at first to be hardware storiesーstories of cool new objects entering the consumer culture But the role of the Roomba s software can t be underestimated It s the programming that elevates the round little suckers from being mere appliances to something more Those pioneering vacuums not only moved they decided in some mysterious way where to go In the Pepsi commercial the vacuum is given just enough personality to become a date sabotaging sidekick In the cat videos the Roomba isn t just a pet conveyer but a diligent worker fulfilling its duties even while carrying a capricious passenger on its back For the first truly successful household robot the Roomba couldn t just do its job well it had to win over customers who had never seen anything like it nbsp Like many inventions the Roomba was bred of good fortune but also a kind of inevitability It was the brainchild of iRobot s first hire former MIT roboticist Joe Jones who began trying to make an autonomous vacuum in the late s He joined iRobot in and over the next decade as it worked on other projects the company developed crucial expertise in areas of robotics that had nothing to do with suction it developed a small efficient multithreaded operating system it learned to miniaturize mechanics while building toys for Hasbro it garnered cleaning know how while building large floor sweepers for SC Johnson it honed a spiral based navigation system while creating mine hunting robots for the US government It was a little like learning to paint a fence and wax a car and only later realizing you ve become a Karate Kid nbsp The first Roombas needed to be cheapーboth to make and relatively to sellーto have any chance of success reaching a large number of American households There was a seemingly endless list of constraints a vacuum that required hardly any battery power and navigation that couldn t afford to use fancy lasersーonly a single camera The machine wasn t going to have the ability to know where it was in a room or remember where it had been Its methods had to be heuristic a set of behaviors that combined trial and error with canned responses to various inputs If the Roomba were “alive as the Pepsi commercial playfully suggested then its existence would more accurately have been interpreted as a progression of instantsーdid I just run into something Am I coming up to a ledge And if so what should I do next All conditions prepared for in its programming An insect essentially reacting rather than planning nbsp And all this knowledge limited as it was had to be stuffed inside a tiny chip within a small plastic frame that also had to be able to suck up dirt Vacuums even handheld versions were historically bulky and clumsy things commensurate with the violence and noise of what they were designed to do The first Roomba had to eschew a lot of the more complicated machinery relying instead on suction that accelerated through a narrow opening created by two rubber strips like a reverse whistle nbsp But the lasting magic of those early Roombas remains the way they moved Jones has said that the navigation of the original Roomba appears random but isn tーevery so often the robot should follow a wall rather than bounce away from it In the words of the original patent filed by Jones and Roomba cocreator Mark Chiappetta the system combines a deterministic component with random motion That small bit of unpredictability was pretty good at covering the floorーand also made the thing mesmerizing to watch As prototypes were developed the code had to account for an increasing number of situations as the company uncovered new ways for the robot to get stuck or new edge cases where the robot encountered two obstacles at once All that added up until just before launch the robot s software no longer fit on its allotted memory Angle called up his cofounder Rodney Brooks who was about to board a transpacific flight Brooks spent the flight rewriting the code compiler packing the Roomba s software into percent less space The Roomba was born In Joe Jones moved on from iRobot and in he founded a company that makes robots to weed your garden The weeding robots have not as yet taken the gardening world by storm And this brings us to perhaps the most interesting part of the Roomba s legacy how lonely it is nbsp You d be in good company if you once assumed that the arrival of the Roomba would open the door to an explosion of home robotics Angle told me that if someone went back in time and let him know that iRobot would build a successful vacuum he would have replied “That s nice but what else did we really accomplish A simple glance around the home is evidence enough that a future filled with robots around the home has so far failed to come true Why Well for one robotics as any roboticist will tell you is hard The Roomba benefited from a set of very limited variables a flat floor a known range of obstacles dirt that is more or less the same everywhere you go And even that required dozens of programmed behaviors nbsp As Angle describes it what makes the Roomba s success so hard to replicate is how well it satisfied the three biggest criteria for adoption it performed a task that was unpleasant it performed a task that had to be done relatively frequently and it was affordable Cleaning toilets is a pain but not done super frequently Folding laundry is both but mechanically arduous Vacuuming a floor thoughーwell now you re talking nbsp Yet for all the forces that led to the creation of the Roomba its invention alone wasn t a guarantee of success What is it that made those cat videos so much fun It s a question that lies close to the heart of the Roomba s original navigation system part determinism part randomness My theory is that it wasn t just the Roomba s navigation that endeared it to fansーit was how halting and unpredictable that movement could be The cats weren t just along for an uneventful ride they had to catch themselves as the robot turned unexpectedly or hit an object One YouTuber affectionately described the vacuum as “a drunk coming home from the bar According to this theory it s the imperfection that is anthropomorphic We are still more likely to welcome into our homes robots that are better at slapstick than superhuman feats It s worth noting that the top of the line Roomba today will map your rooms and store that map on an app so that it can choose the most efficient lawnmower like cleaning path In these high end models the old spiral navigation system is no longer needed Neither is bumping into walls nbsp Watching one of these Roombas clean a room is a lot less fun than it used to be And it makes me wonder what the fate of the Roomba may have been had the first ever robot vacuum launched after the age of smartphones already armed with the capacity to roll through rooms with precise confidence rather than stumble along It s not always easy after all to trust someone who seems to know exactly where they are going 2022-11-20 15:30:22
海外TECH Engadget The Instant Vortex Plus air fryer is on sale for only $100 before Black Friday https://www.engadget.com/the-instant-vortex-plus-air-fryer-is-on-sale-for-only-100-before-black-friday-153013650.html?src=rss The Instant Vortex Plus air fryer is on sale for only before Black FridayAir fryers have been having a moment and today there s no shortage of machines to choose from Earlier this year we set out to find the best air fryers available now and we came across a handful of models that impressed us Our top pick of the bunch the Instant Vortex Plus is one of the best for most people ーand now you can pick it up at its lowest price yet Amazon has the six quart Instant Vortex Plus for only which is percent off its regular rate This air fryer comes from the makers of the Instant Pot so you can safely assume this machine doesn t stop at air frying alone It has six cooking modes ーair fry roast broil bake reheat and dehydrate ーand it has a temperature range of to degrees Fahrenheit That should let you cook all kinds of foods in it and with the six quart machine you ll have enough room to cook quite a bit of food at once In our testing we found that the Vortex Plus took little to no time to preheat and we liked its intuitive controls and easy to clean basket The Vortex Plus has two additional features that help it stand out from other air fryers in this price range It has a ClearCook window on the front of its basket which essentially just lets you see inside the machine while it s cooking Most other pod shaped air fryers don t have this and it could come in handy if you like to make sure your food is cooked precisely a certain way There s also the brand s odor ease technology that uses built in replaceable air filters to remove smells during cooking We found that it didn t completely eliminate smells but compared to other bigger machines the Vortex Plus output seemed less smokey overall The discounted Vortex Plus joins a number of other Instant Pot gadgets on sale for Black Friday There s the previous generation of that air fryer on sale for which may be a better deal for you if you can forgo the ClearCook window and the smell eliminating feature There s also the Instant Vortex Plus XL that s percent off and down to It s an eight quart machine with two cooking drawers allowing you to prepare two different foods at the same time ーand both drawers have their own ClearCook windows If you like the idea of a dual zone machine and our pick of the Ninja Foodi XL is a bit too expensive for you Instant Pot s version could be a good alternative Buy Instant Vortex Plus previous gen at Amazon Buy Instant Vortex Plus XL at Amazon Get the latest Black Friday and Cyber Monday offers by following EngadgetDeals on Twitter and subscribing to the Engadget Deals newsletter 2022-11-20 15:30:13
海外TECH Engadget Sonos' Black Friday sale takes 20 percent off its soundbars and smart speakers https://www.engadget.com/sonos-black-friday-sale-20-percent-off-soundbars-speakers-150038156.html?src=rss Sonos x Black Friday sale takes percent off its soundbars and smart speakersSonos has rolled out its Black Friday sale for the year taking percent off a range of its wireless soundbars speakers and subwoofers It s still Sonos so some of the discounted devices are still on the expensive side But deals of any kind on Sonos speakers are uncommon making this a good opportunity to save if you ve been looking to expand an existing Sonos system or try out the company s connected audio gear for the first time Shop Sonos Black Friday saleHere s a full list of the deals available in the sale which runs through November th The top end Sonos Arc soundbar has dropped from its usual to The compact Sonos Beam Gen soundbar has dropped from to The Sonos Sub Gen subwoofer has dropped from to The Sonos One smart speaker has dropped from to The Sonos One SL a variant of the One without built in microphones has dropped from to The Sonos Roam SL a mic less version of the Roam portable speaker has dropped from to All of these devices deliver a relatively clean and balanced sound profile but the main appeal of any Sonos speaker remains the ability to easily link it to other Sonos devices in one connected audio system We gave the Arc a review score of back in It s the company s largest soundbar and its most expansive particularly with Dolby Atmos content The Beam also supports Atmos but since it s smaller and lacks the Arc s upward firing drivers it can t deliver quite as much detail or bass power Like the Arc it s also limited to one HDMI eARC port It s easier to fit alongside a smaller TV though We gave it a score of last year Not included in the sale is the entry level Ray soundbar that one is more compact and a step down sonically but it s priced at The Sub meanwhile is a powerful wireless subwoofer that greatly improves any Sonos soundbar s bass performance though it comes at a high cost even at this deal price Again Sonos sells a more compact and affordable option in the Sonos Sub Mini but that model isn t included in the sale We gave the Sonos One a score of when it launched back in it remains a solid audio focused alternative to smart speakers from Amazon and Google albeit a bit less adept at voice control Both the One and the One SL can be used as surrounds when paired with a Sonos soundbar too The Roam Roam SL and Move meanwhile are the only truly wireless speakers Sonos makes as well as the only Sonos devices to support Bluetooth audio The Move sounds better but the Roam is significantly more compact We gave the Move a review score of in and the Roam a score of last year There are plenty other soundbars portable speakers and smart speakers that cost less or perform just as well without locking you into one ecosystem and it s worth remembering that Sonos hiked the prices of some of these devices last year Still this sale makes the company s lineup a little more approachable Get the latest Black Friday and Cyber Monday offers by following EngadgetDeals on Twitter and subscribing to the Engadget Deals newsletter 2022-11-20 15:00:38
海外TECH CodeProject Latest Articles Asynchronous Multicast Delegates in C++ https://www.codeproject.com/Articles/1160934/Asynchronous-Multicast-Delegates-in-Cplusplus callable 2022-11-20 15:05:00
海外科学 NYT > Science ¿Los árboles hablan bajo tierra? Para los científicos, eso está en disputa https://www.nytimes.com/es/2022/11/20/espanol/arboles-comunicacion-hablan.html ¿Los árboles hablan bajo tierra Para los científicos eso estáen disputaDesde Ted Lasso hasta las charlas TED la teoría de la “red de los bosques estáen todas partes y algunos científicos sostienen que es exagerada y no estáprobada 2022-11-20 15:23:31
ニュース @日本経済新聞 電子版 競争激化の年末商戦 25日にブラックフライデー https://t.co/0jguGrXLgq https://twitter.com/nikkei/statuses/1594355054328557574 年末商戦 2022-11-20 15:40:41
ニュース BBC News - Home Club Q Colorado shooting: Suspect named after five killed in attack at nightclub https://www.bbc.co.uk/news/world-us-canada-63693310?at_medium=RSS&at_campaign=KARANGA colorado 2022-11-20 15:41:40
ニュース BBC News - Home Jeremy Hunt has no plan for growth, says CBI boss https://www.bbc.co.uk/news/business-63694717?at_medium=RSS&at_campaign=KARANGA inflation 2022-11-20 15:32:58
ニュース BBC News - Home Labour would abolish the House of Lords https://www.bbc.co.uk/news/uk-politics-63692981?at_medium=RSS&at_campaign=KARANGA chamber 2022-11-20 15:04:08
ニュース BBC News - Home Chelsea 3-0 Tottenham: Manager Emma Hayes returns as Blues go top of WSL https://www.bbc.co.uk/sport/football/63612798?at_medium=RSS&at_campaign=KARANGA bridge 2022-11-20 15:14:43
サブカルネタ ラーブロ スパイスラーメン 点と線. 下北沢店@下北沢 http://ra-blog.net/modules/rssc/single_feed.php?fid=204879 西葛西 2022-11-20 15:00:57

コメント

このブログの人気の投稿

投稿時間: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件)