投稿時間:2021-07-30 02:16:38 RSSフィード2021-07-30 02:00 分まとめ(21件)

カテゴリー等 サイト名等 記事タイトル・トレンドワード等 リンクURL 頻出ワード・要約等/検索ボリューム 登録日
Google Official Google Blog We’re here, we’re loud, we’re disabled and proud http://feedproxy.google.com/~r/blogspot/MKuf/~3/8_6zN8e2auY/ We re here we re loud we re disabled and proudI discovered Disability pride only after going to a youth Disability conference where I learned ー for the first time ーhow it felt to be a part of the majority in the room Now I try to create that experience for more disabled people In addition to my marketing role where I work on naming our products I m also a lead on Google s Disability Alliance employee resource group that is made up of thousands of Googlers As part of this community we advocate build awareness and share advice around Disability topics with the goal of creating innovative and inclusive products programs and practices We help people understand the larger Disability community s principle of “Nothing about us without us and for any new product or program at Google we encourage everyone to think about “Nothing without us at all Through building community and sharing our stories we show that we can live full lives not despite our disabilities but because we have accepted those disabilities with love For Disability Pride Month Googlers are celebrating their disabilities as part of their identities I m honored to have Parinita Das and Lio Benz share their stories with us Parinita in her home in Hyderabad India Parinita Das she her You ve been at Google for over years What s been your favorite experience  Parinita  The open and inclusive culture is the most valuable experience I ve cherished at Google over the years It has taught me to be accepting of myself and others which in turn has helped me grow into a better person What is your perspective on Disability pride and culture Parinita  I m an upper limb amputee and I m able to go about my day independently with most activities using a bionic arm Only about of total amputations are upper limb amputations and a functional prosthetic arm costs twice as much of a lower limb prosthesis While technology focuses on making life limitless for amputees I m disheartened to see the lack of sensitization in people In my view the biggest barrier for people with disabilities PwD is the lack of a psychologically safe world I dream of a world where there s more inclusion in our hearts so that we don t perceive PwDs as broken Once we provide PwDs with the psychological safety that they not only need but deserve the sky can be the limit to what we can achieve In India where I live we first need to develop psychological safety for PwDs so more people will self identify themselves as having disabilities Once the community grows there ll be more opportunities to build allyship support each other and show the world what we re really capable of On a personal level I m a relatively new amputee who s still learning to navigate this world that s not built for PwDs I take pride in the fact of how far I ve come on this journey and I feel confident that life is limitless for me Lio in their home in London United Kingdom Lio Benz they them Tell us about your role at Google Lio I m an interaction designer on the Google Play team in London What I enjoy most about my work is transforming complex data sets into easy to understand interactions and data visualizations that developers use to improve their apps and games for millions of people around the world What is your perspective on Disability pride and culture Lio My autistic neurotype defines my experience of the world and what I can and can t do In my community we call this being ActuallyAutistic In our society that doesn t meet autistic needs I am disabled and I take pride in my disability When I claimed the word “disabled people reacted with skepticism because I don t “look autistic to them Being autistic is still stereotyped as white and cis male so people outside that stereotype have more difficulty receiving a diagnosis For children who are diagnosed Applied Behavior Analysis ABA therapy can be traumatising especially when it involves electric shocks As adults many of us are detained in mental health hospitals and only of us are in ANY kind of employment Yet a lot of research still focuses on finding causes and “cures instead of how we can lead fulfilling lives We need allies to listen to Actually Autistic voices and bring intersectional perspectives to the places where decisions are being made 2021-07-29 16:30:00
Program [全てのタグ]の新着質問一覧|teratail(テラテイル) 金融商品の説明からの情報抽出 https://teratail.com/questions/351916?rss=all 2021-07-30 01:49:43
Program [全てのタグ]の新着質問一覧|teratail(テラテイル) WordPressのタクソノミーページにおける指定したカスタムフィールドのキー及び値をもつカスタム投稿が属するターム一覧の表示方法 https://teratail.com/questions/351915?rss=all wordpress 2021-07-30 01:42:56
Program [全てのタグ]の新着質問一覧|teratail(テラテイル) QUERY関数のエラー表示を直したい! https://teratail.com/questions/351914?rss=all QUERY関数のエラー表示を直したい前提・実現したいこと注文をフォームから受け付けており、リンクされたスプレッドシートaposフォームの回答aposのデータを隣に追加したシートにも指定した名前別で表示させたい指定する名前は反映させたいシート上のセルにプルダウンで選択できるようにしています反映させたいシートのセルaaposフォームの回答aposのd列名前発生している問題・エラーメッセージERROR数式の解析エラーです。 2021-07-30 01:08:07
海外TECH Ars Technica Google Play gets mandatory app privacy labels in April 2022 https://arstechnica.com/?p=1783845 google 2021-07-29 16:08:25
海外TECH DEV Community Journey from Mongoose to Prisma ORM for MongoDB! https://dev.to/somsubhra1/journey-from-mongoose-to-prisma-orm-for-mongodb-3j21 Journey from Mongoose to Prisma ORM for MongoDB Prisma is a next Generation ORM for NodeJS amp TypeScript Environments It has multiple databases support such as MySQL SQLite PostgreSQL MSSQL and also MongoDB Source PrismaSo in this post let s talk about the all new Prisma MongoDB Connector it s operations and what made me switch from Mongoose to Prisma for MongoDB ConnectionLet s start by establishing the connection to our MongoDB Server In your Prisma schema file we need to change the provider datasource db provider mongodb url env DATABASE URL The prisma schema file allows us to specify how we want Prisma to connect to our database We need to tell it what kind of provider we would like to use in this case mongodb and a url to connect to this is pointing to an environment variable as we want to keep it secret We will use a MongoDB connection string as the DATABASE URL which can be found in the prisma env file Next we need to setup the generator block like below generator client provider prisma client js previewFeatures mongoDb Since Prisma MongoDB Connector is still in preview we need to explicitly specify the previewFeatures key Defining ModelsSo now that connection has been successfully established to MongoDB Server let s now create models for our database collection A typical MongoDB document looks like this id oid dcbeffcad email somsubhra email com name Somsubhra So now how to define a model like this in Prisma Inside Prisma schema file we can define our models model User id String id default dbgenerated map id db ObjectId email String unique name String Comparing it with mongoose models in Mongoose ODM we would have written something like const mongoose require mongoose const Schema mongoose Schema const UserSchema new Schema name String email type String unique true module exports User mongoose model user UserSchema In Prisma we may also generate ObjectIds manually by using the bson package import ObjectId from bson const id new ObjectId Queries amp Database OperationsNow let s understand how to write queries and operations to MongoDB using Prisma in comparison to Mongoose Fetching Single recordFetching a single record in prisma is done using the where property but in mongoose it has findById method Prismaconst user await prisma user findUnique where id Mongooseconst result await User findById ebaed Fetching selected values for single recordFetching selected values for single record is easier than ever in Prisma ORM by using just a single query function to do the select operation whereas in Mongoose after finding the record we need to chain the output with select This increases the time complexity and also slows down the process Prismaconst user await prisma user findUnique where id select name true Mongooseconst user await User findById ebaed select name email Fetching relationsIn Prisma we use the include property but in Mongoose we would have to use the populate method Prismaconst posts await prisma user findUnique where id include post true Mongooseconst userWithPosts await User findById id populate posts Filtering with valuesIn Prisma we filter records using the where property whereas in Mongoose we use the find Prismaconst posts await prisma post findMany where title contains Hello World Mongooseconst user await Post find title Hello World Relation Filtering PrismaPrisma can filter a list based on a criteria that applies not only to the models of the list being retrieved but to a relation of that model const posts await prisma user findMany where Post some title contains Hello MongooseMongoose doesn t offer this feature for relation filters We may achieve similar functionality by adding an additional step to filter the results returned by the query but that would result in increased query times and load for large databases Pagination PrismaCursor style pagination const page prisma post findMany before id last Offset pagination const cc prisma post findMany skip first MongooseMongoose also has similar implementation for pagination const posts await Post find skip limit Creating Records Prismaconst user await prisma user create data email user email com Mongooseconst user await User create name John email user email com Updating RecordsPrisma updates the record directly with the values passed in data property in comparison with mongoose where we need to use set operator Prismaconst user await prisma user update data name John where id Mongooseconst updatedUser await User findOneAndUpdate id id set name John Deleting Single Record Prismaconst user await prisma user delete where id Mongooseawait User findByIdAndDelete id Deleting Multiple Records Prismaconst users await prisma user deleteMany where id in Mongooseawait User deleteMany id in Advantages of Prisma over MongooseSo now that we know the differences in operations between Prisma amp Mongoose let s now focus on the advantages Prisma provides over Mongoose Prisma allows TypeSafe Database access Prisma has an auto generated query builderSupport for multiple databases This is a huge advantage to developers when moving between SQL and NoSQL Databases since only the Schema file needs to be changed All other operations queries remain same Supports multiple RDBMSRobust migration capabilitiesPrisma lets you filter a list based on a criteria that applies not only to the models of the list being retrieved but to a relation of that model Mongoose doesn t offer a dedicated API for relation filters You can get similar functionality by adding an additional step to filter the results returned by the query Prisma Studio tool that helps to manage data easily Disadvantages of PrismaOn the other side Prisma has a few disadvantages over Mongoose as well Support for multiple model files not available All models need to be written in schema prisma file which makes the file cluttered and hard to debug and read Prisma MongoDB support is currently in previewCurrently no embedded collection support Error handling is incomplete The Migrate and Introspection workflows are currently not supported id and auto increment are not currently supported Should you be using Prisma over Mongoose Prisma is a modern ORM which has its own tradeoffs If you are building a server side application with REST APIs and GraphQL Prisma would be a great choice It also makes lives of developers easier Prisma gives a significant productivity boost for the most common database workflows If these factors don t matter much to you and you want to have more control over database operations then my suggestion will be to go with Mongoose for the time being Contribute to PrismaPrisma MongoDB Connector is still in preview and development If you want to contribute to the Prisma check out their GitHub Repository by clicking here 2021-07-29 16:51:25
海外TECH DEV Community How Unix commands works https://dev.to/____marcell/how-unix-commands-works-4jic How Unix commands worksIf after using these commands for years you ever wondered how they work this is a high level exploration of someone who just had the some thoughts some days ago this is the result of my exploration I hope you learn something from it and get more interested in OS development in general first of all a little bit of history all theses programs are originally part of the gnu os the first atempt to create a free os they were written in the mid eighties and are older than Linux itself they were developed for unix than ported to Linux and are posix compliant ls in particular is part of coreutils a separate module of the gnu os you can see coreutils source code here Most of gnu os was developed by Richard Stallman the original neckbeardGNU Coreutils is used by most Linux distribution and you can even use it on Mac OS and Windows in Mac Os you can even replace the propietary coreutils As you might know Linux is not a OS Linux is just a kernel you need higher level programs to use your system that s why people sometimes refer to Linux as GNU Linux because it s the kernel with the other utilities necessary to realistically use the system in your day to day activities otherwise you would have to implement everything yourself I m gonna focus on how ls is implemented on top of the kernel if you wanna know what happens right after you type ls in your terminal you should read this amazing explanation How ls worksYou can see ls source code here this blog posts focuses on explaining ls but all other core utilities work in a similar fashion let s get to it the core functionality of ls are actived using two lower level functions opendir and readdir opendir opens a directory which is really just a file in Linux like everything else and readdir reads this file line by line each line as you might have guessed is the directory contents plus and which is used by the system to reference this directory and where this directory is if you search for these functions in src ls c you would find this DIR dirp struct dirent next dirp opendir name line for opendir while next readdir dirp line if next for readdirAs you might have guessed this while loop is ls s core functionality it s the part that reads the file entries in the dir and prints them out or do whatever it needs to do depending on the options that you pass to ls all other stuff in the source code is error handling parsing and applying options ls has a ton a options that accumulated over the years if we remove all these options we could implement ls with just a few lines of code so let s do that include lt stdio h gt include lt dirent h gt int main DIR folder struct dirent entry folder opendir if folder NULL return while entry readdir folder printf s entry gt d name printf n closedir folder return if we compile and run our ls version we get thisas you can see the output it s pretty similar to gnu ls already the only difference in this case is that ls is color coding different file types in my system and ls by default don t display and Ok now we have a pretty good understanding of how ls is implemented and the main libraries that it uses stdio h and dirent h but where does these libraries come from we need to dig deeper glibc and system callsstdio h and dirent h and pretty much anyother c library installed in your system lives in usr include stdio and dirent in particular are installed when you install glibc yet another gnu project printf comes from stdio opendir and readdir comes from dirent just like ls these functions are abstraction to make it easier to do the things that you want to do in your system actually everything is a abstraction all the way down ls is a application that uses glibc glibc itself make some system calls as you can see in the graph we don t necessarily need to use glibc to implement ls we could make the system calls ourselves let s do that include lt linux fs h gt u Buff int fd memset Buff x sizeof Buff mm segment t old fs get fs set fs KERNEL DS fd sys open etc Info O RDONLY if fd gt sys read fd Buff printk string s n Buff sys close fd set fs old fs Kernel level and User levelThe ls clone that we wrote is running on user level all the functions that we used opendir readdir and printf are user level functions a lot of things are restricted at user level functions at user level call other functions at kernel level this is what we call a system call so the function opendir for example eventually will call sys open which is a system call that it self calls do sys open which is a kernel level function the kernel is actually what comunicates with devices and the cpuThe kernel is a program that is always in memory and facilitates the comunication between the hardware and applications one of these utilities is the functions that we just used we could go deeper and explore how do sys open is implemented at kernel level but that s propably another post As you can see it s a lot harder to understand the sys call version and you do very little with a lot of code as you get closer to the kernel you have to deal with internal calls of the system that s the reason why the kernel exists it s a abstraction on top of the machine so you don t have to deal with all this low level stuff you can see in the code that we have to make a lot of different system calls just to read a directory if you wanna go deeper and learn even more about how linux works I recommend this book this book I m reading it and it s pretty good 2021-07-29 16:39:09
海外TECH DEV Community Realtime Rails with websockets https://dev.to/ndrean/realtime-rails-with-websockets-1jk3 Realtime Rails with websocketsYet another tuto on Rails framework ActionCable I focus on going quickly to the relevant paths to achieve running a rails app with a realtime feature packaged as a standalone process Instead of a traditional chat app this one simulates managing realtime inventories It has a button that on click increments a counter and broadcasts the decremented total this simulates a customer fulling his basket and decreasing accordingly the visible stock to any other connected customer We will setup the backend and the frontend The frontend requires the installation of the npm package actioncable and the backend to enable the middleware action cable engine npm actioncableRails guidesThe frontend is managed by React and the Websockets are managed by the integrated framework ActionCable The process is the following on the frontend implement a component with a button that triggers a POST request to a Rails backend endpoint a Rails controller method responds to this route It should save the new value customer to the database calculate the new stockbroadcast the total to a dedicated websocket channelin the frontend React component we update the state of the stock on each page refresh a GET request to the database when receiving data through the dedicated websocket channel The frontend component Button jsx looks like Button jsximport React useState useEffect from react import csrfToken from rails ujs other imports const Button gt const counter setCounter useState to be completed const handleClick async e gt e preventDefault await fetch incrmyprod method POST headers headers Accept application json Content Type application json X CSRF Token csrfToken body JSON stringify object return lt gt lt button onClick handleClick gt Click me lt button gt counters amp amp lt h gt PG counter counters counter lt h gt lt gt The backendWe run gt rails g channel counter and have a counter model app channels application cable counter channel rbIn our routes we link the frontend URI to an action app config routes rbget incrmyprod to counters set counters mount ActionCable server gt cable In the controller s counters method set counters we will broadcast the new data to the dedicated websocket channel app controllers counters controller rbdef set counters data data counter params counter ActionCable server broadcast counters channel data as json endIn the dedicated channel we broadcast this data when received to all subscribed consummers app channels counter channel rbclass CounterChannel lt ApplicationCable Channel def subscribed stream from counters channel end def receive data rebroadcasting the received message to any other connected client ActionCable server broadcast counters channel data end def unsubscribed Any cleanup needed when channel is unsubscribed stop all streams endend The frontend We installed npm i g actioncable Since we ran rails g channel counter we have the files javascript channels consumer js index js counter channels js app javascript channels counter channel jsimport consumer from consumer const CounterChannel consumer subscriptions create channel CounterChannel connected disconnected received data Called when there s incoming data on the websocket for this channel export default CounterChannel In the Button component we will mutate the state of the counter On page refresh we fetch from the database and mutate the state for rendering and when we receive data on the websocket channel we also mutate the state for rendering To do this we pass a function to the CounterChannel received that mutates the state If we don t have any data then we mutate the state with a GET request This is done wition a useEffect hook We can complet the Button component with import CounterChannel from channels counter channel js const Button gt const counters setCounters useState useEffect gt async function initCounter try let i CounterChannel received counter gt if counter i return setCounters counter if i const counter await fetch getCounters cache no store setCounters countPG Number countPG catch err console warn err throw new Error err initCounter the rest of the component above Standalone setupRails guide standaloneFor the frontend run npm i g actioncableFor the backend enable the middleware and config config application rbrequire action cable engine module myapp class Application lt Rails Application config action cable url ENV fetch CABLE FRONT URL ws localhost origins ENV fetch CABLE ALLOWED REQUEST ORIGINS http localhost split origins map url url config action cable allowed request origins origins endendThe Redis instance has or not a config file config cabledevelopment adapter redis url lt ENV fetch REDIS CABLE redis secretpwd localhost gt channel prefix cable devproduction adapter redis url lt ENV fetch REDIS CABLE redis redis gt channel prefix cable prod cable config rurequire relative config environment Rails application eager load run ActionCable serverThen run for example with overmind the Procfile with overmind start Procfileassets bin webpack dev serverweb bundle exec rails serverredis server redis server redis redis confworker bundle exec sidekiq C config sidekiq ymlcable bundle exec puma p cable config ruHappy coding 2021-07-29 16:12:20
Apple AppleInsider - Frontpage News CES 2022 to debut new digital initiative for NFTs and crypto https://appleinsider.com/articles/21/07/29/ces-2022-to-debut-new-digital-initiative-for-nfts-and-crypto?utm_medium=rss CES to debut new digital initiative for NFTs and cryptoThe Consumer Technology Association announced a new initiative at CES that will exhibit and highlight non fungible tokens NFTs and other blockchain based technologies CES to feature increased coverage of blockchain NFTs and ICOsThe initiative will include digital asset exhibits as well as talks that discuss the rise of non fungible tokens NFTs initial coin offerings ICOs and other blockchain businesses and technologies Read more 2021-07-29 16:29:20
海外TECH Engadget Nikola founder Trevor Milton indicted on fraud charges https://www.engadget.com/nikola-trevor-milton-fraud-sec-161621959.html?src=rss Nikola founder Trevor Milton indicted on fraud chargesTrevor Milton the founder and former executive chairman of electric vehicle company Nikola has been charged with two counts of securities fraud and one count of wire fraud by a federal grand jury Milton has been accused of lying about “nearly all aspects of the business to boost Nikola s stock The indictment claims Milton made it seem Nikola was much further along than it actually was in terms of having fully functional EVs It asserts he had a hand in creating a video that made it seem a Nikola One prototype was able to move by itself when it was actually rolling down a slope Milton falsely claimed the company had “billions and billions and billions and billions of dollars worth of preorder reservations and that the company was producing its own hydrogen at four times less than market rates according to the indictment He s also accused of falsely claiming that Nikola had developed quot game changing quot battery technology that it was developing and making several key components for its EVs in house and that quot the total cost of ownership of Nikola s trucks was percent below that of diesel vehicles quot Prosecutors claim Milton who resigned in September in the face of a Securities and Exchange Commission SEC probe targeted and misled amateur investors or quot retail investors quot According to the indictment some of those investors lost hundreds of thousands of dollars At Nikola s peak valuation Milton held around billion worth of stock as CNBC notes The grand jury argues that Milton should surrender property “traceable to the commission of said offenses That could include the over billion Milton made when the company went public in June The SEC also filed civil securities fraud charges against Milton on Thursday The agency asked a district court to force Milton to forfeit quot ill gotten gains quot and to pay a fine It also called for a lifetime ban on Milton serving as an officer at a company that issues securities 2021-07-29 16:16:21
海外科学 NYT > Science Russia Docks New Space Station Module: Live Video Stream https://www.nytimes.com/2021/07/29/science/russia-module-space-station.html Russia Docks New Space Station Module Live Video StreamThe Nauka Multipurpose Laboratory Module met up with the orbiting outpost on Thursday morning adding science capabilities to Russia s part of the station 2021-07-29 16:58:38
ニュース BBC News - Home Jabs prevented 60,000 Covid deaths and 22m cases - Van-Tam https://www.bbc.co.uk/news/newsbeat-58014546 cases 2021-07-29 16:54:31
ニュース BBC News - Home Covid-19: Jabs prevented 60,000 deaths analysis suggests, as pings hit new record https://www.bbc.co.uk/news/uk-58016293 coronavirus 2021-07-29 16:13:58
ニュース BBC News - Home Storm Evert: South West braces for 75mph winds and heavy rain https://www.bbc.co.uk/news/uk-england-cornwall-58010633 heavy 2021-07-29 16:43:37
ニュース BBC News - Home Erasmus records hour-long video demanding 'equal chance' from Lions Test officials https://www.bbc.co.uk/sport/rugby-union/58012090 Erasmus records hour long video demanding x equal chance x from Lions Test officialsSouth Africa boss Rassie Erasmus records an hour long video monologue railing against the refereeing in his side s first Test defeat by the British and Irish Lions 2021-07-29 16:09:36
ニュース BBC News - Home Priest sets up record total as Rockets beat Spirit in women's Hundred https://www.bbc.co.uk/sport/cricket/58015669 Priest sets up record total as Rockets beat Spirit in women x s HundredTrent Rockets pick up their first win in the women s Hundred as they smash the highest score in the competition so far against London Spirit at Lord s 2021-07-29 16:51:06
ニュース BBC News - Home Hamilton and Vettel speak out over Hungary anti-LGBTQ+ law https://www.bbc.co.uk/sport/formula1/58015479 grand 2021-07-29 16:18:49
ニュース BBC News - Home Tokyo Olympics medals table https://www.bbc.co.uk/sport/olympics/57836709 tokyo 2021-07-29 16:30:15
ニュース BBC News - Home Covid vaccine: How many people in the UK have been vaccinated so far? https://www.bbc.co.uk/news/health-55274833 adult 2021-07-29 16:45:32
北海道 北海道新聞 五輪マラソン・競歩 1、4日リハーサルで交通規制 道警は1日3400人で警備 https://www.hokkaido-np.co.jp/article/572745/ 交通規制 2021-07-30 01:14:00
北海道 北海道新聞 道内まん延防止、8月2~31日適用へ 緊急事態に4府県追加 https://www.hokkaido-np.co.jp/article/572702/ 新型コロナウイルス 2021-07-30 01:05:29

コメント

このブログの人気の投稿

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