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

カテゴリー等 サイト名等 記事タイトル・トレンドワード等 リンクURL 頻出ワード・要約等/検索ボリューム 登録日
js JavaScriptタグが付けられた新着投稿 - Qiita 【Firebase】TSyringeを使ってFirebase FunctionsにDIを導入した時のまとめ https://qiita.com/takagimeow/items/90adb513406ac315d6d6 firebase 2023-01-06 00:23:54
Ruby Rubyタグが付けられた新着投稿 - Qiita 【Ruby on Rails】devise_invitableを使った既存ユーザーへの招待機能の実装 https://qiita.com/asumi0848/items/b60c47bd5ca0e6deb535 deviseinvitable 2023-01-06 00:19:55
Ruby Railsタグが付けられた新着投稿 - Qiita 【Ruby on Rails】devise_invitableを使った既存ユーザーへの招待機能の実装 https://qiita.com/asumi0848/items/b60c47bd5ca0e6deb535 deviseinvitable 2023-01-06 00:19:55
海外TECH Ars Technica Long COVID stemmed from mild cases of COVID-19 in most people https://arstechnica.com/?p=1907864 illness 2023-01-05 15:34:19
海外TECH MakeUseOf The 8 Best Free Offline GPS Navigation Apps for Android https://www.makeuseof.com/tag/top-3-free-offline-gps-apps-android/ android 2023-01-05 15:45:16
海外TECH MakeUseOf The 14 Best Alexa Commands and Questions to Begin the New Year https://www.makeuseof.com/best-alexa-commands-questions-new-year/ assistant 2023-01-05 15:30:15
海外TECH MakeUseOf 9 Bad Computer Habits You Need to Quit Right Now https://www.makeuseof.com/bad-computer-habits-to-quit-right-now/ habits 2023-01-05 15:15:16
海外TECH DEV Community CSS Grid Layout and Responsive Design https://dev.to/blst-security/css-grid-layout-and-responsive-design-h6c CSS Grid Layout and Responsive Design The Importance of CSS Grid LayoutThere are a few key reasons why CSS Grid Layout is so important It helps to create responsive designs CSS Grid Layout is great for creating responsive designs It allows designers to control how elements resize and rearrange themselves on different screen sizes This means that your website or app will look great on any device whether it s a phone tablet or desktop computer It s easy to use CSS Grid Layout is easy to learn and use Even if you re not a designer you can still create simple layouts using CSS Grid All you need is a basic understanding of HTML and CSS It s supported by all major browsers CSS Grid Layout is supported by all major browsers including Google Chrome Mozilla Firefox Safari and Microsoft Edge This means that your designs will look consistent across all browsers and devices It s flexible CSS Grid Layout is extremely flexible You can use it to create a wide variety of layouts from simple two column designs to more complex multicolumn layouts You can also use CSS Grid to create responsive designs that adapt to different screen sizes It s well documented There are a wealth of resources available on CSS Grid Layout from tutorials and articles to video courses and books If you want to learn more about CSS Grid you ll be able to find everything you need to get started How to Use CSS Grid Layout Creating a Grid ContainerThe first step to using CSS Grid Layout is to create a grid container This can be done by setting the display property to grid or inline grid Grid The grid container will be a block level element Inline grid The grid container will be an inline level element Once you ve set the display property you need to define the grid template columns and rows You can do this by using the grid template columns and grid template rows properties grid template columns This property defines the number and size of columns in the grid grid template rows This property defines the number and size of rows in the grid You can also use the shorthand property grid template to set both the columns and rows at once Adding Items to the GridOnce you ve created your grid container and defined your columns and rows you can start adding items To do this you ll need to use the grid column and grid row properties grid column This property defines in which column an item will be placed grid row This property defines in which row an item will be placed The Benefits of Responsive Design User ExperienceOne of the biggest benefits of responsive design is improved user experience A website that is optimized for multiple screen sizes will be much easier to use and navigate than a traditional website This is because users will be able to view all of the content on your site without having to scroll or zoom Additionally responsive design makes it easy for users to find the information they re looking for as all of the content will be organized in an easily accessible format Better Search Engine OptimizationAnother benefit of responsive design is better search engine optimization Search engines like Google prefer websites that are optimized for multiple devices as this provides a better user experience for searchers Additionally responsive design makes it easier for search engines to crawl and index your website which can lead to higher search engine rankings Reduced Development CostsFinally responsive design can save you money in the long run Developing a separate website for each device can be time consuming and expensive By using responsive design you can create one website that will work on all devices saving you both time and money That s it Responsive Design is an important concept that can be more easily mastered by using CSS Grid So go ahead and start using it today Star our Github repo and join the discussion in our Discord channel to help us make BLST even better Test your API for free now at BLST 2023-01-05 15:18:47
海外TECH DEV Community GraphQL errors: the Good, the Bad and the Ugly https://dev.to/escape/graphql-errors-the-good-the-bad-and-the-ugly-2ah0 GraphQL errors the Good the Bad and the UglyWe at Escape have been using GraphQL for our apps for a long time before many quality tutorials were available Because we lacked experience we made design mistakes on many aspects of our GraphQL API This article reviews the evolution of how we return errors from our API for consumption by the frontend and other internal services emphasizing what could be improved on each step To illustrate this article we will take the example of an account creation mutation type Mutation register email String password String User type User id ID email String The register mutation takes an email and a password and returns the newly created user Because the user creation might fail we need to tell our API consumer for instance the frontend that something went wrong and what exactly went wrong There are many ways to do it and some work better than others The Ugly the errors fieldA GraphQL response is a JSON object with up to two keys data and errors We implemented error responses leveraging the latter For instance considering our register mutation from before several errors could be raised The email already existsThe email uses a banned email providerThe password is too shortUnexpected runtime errors e g a database connection failed The specification indicates that errors is an array of objects with a message field but allows additional details in an extensions field We used extensions code to convey a machine interpretable response errors User friendly error message message Please provide a professional email address extensions Machine friendly error code code PROFESSIONAL EMAIL REQUIRED Several problems emerge from this approach The most annoying one is that errors is an array the consumer has to iterate over it to collect the errors What to do if the array contains several errors but none that can be handled by our frontend This led to hard to maintain switch inside for loops with fallback cases afterwards On the plus side all of our errors are returned using the same mechanism leading to a simpler implementation on the backend but we have a lot of room for improvement The Bad an Error typeGraphQL has a neat type system with a feature named Union types It allows returning several object types from the same resolver Let s refactor our resolver a bit to include an error type type Mutation register email String password String RegisterResult union RegisterResult User Errortype User id ID email String type Error message String register may now return a user or an error Our type definition is getting significantly more complicated but that s for good The registration query would now look like this mutation register email gautier example com password psswrd typename Query different fields depending on the response type on User id on Error message In case the user provides a password that is too short the response payload would look like this data register This allows the consumer to know which fields are available typename Error message Password too short This approach requires us to classify errors in two categories the ones we want in the response errors field and the ones we return as an Error type There are two concepts to account for when making this distinction Some errors can be returned for both queries and mutations others are exclusive to this specific mutation Some errors are actionable some are not We consider errors that can be returned for queries too because we want to keep queries short This is short and neatquery User might not exist but let s ignore it for now user id posts title This is bloated and cumbersomequery user id typename on User posts Consider possible errors on all fields even the nested ones typename on Post title on Error message on Error message Therefore errors such as User not found Unauthorized or runtime errors should still be returned in the errors response field to have query and mutation responses handled the same way Furthermore actionable errors are part of the normal execution flow It makes sense for a registration to fail and having an error response type associated to it Let s take our list of errors from above and categorize them The email already exists specific to this resolver and actionable →Error typeThe email uses a banned email provider same →Error typeThe password is too short same →Error typeUnexpected runtime errors can happen for both queries and mutations and hardly actionable for frontend users →errors fieldThese categories are quite simple to use in the frontend if typename is Error display the error above the form otherwise show a generic “Something went wrong please try again error This error should be next to the password field but the frontend has no way to know where to place it This solution is however less flexible than the previous one we can only send one actionable error at a time even when multiple errors could be returned at the same time We might also want to be able to place the error message right next to its related form input The Good structured errorsThe API might return different kinds of errors with specific data attached Let s create structured errors for our actionable errors from before The goal is to replace the generic Error type with more specific domain errors type Mutation register email String password String RegisterResult Use different types for all possible actionable errorsunion RegisterResult User ValidationError ProfessionalEmailRequiredtype User id ID email String Malformed inputstype ValidationError Allow several errors at the same time fieldErrors FieldError type FieldError path String message String Business specific errors e g banned email providers type ProfessionalEmailRequired provider String When creating our error types we took into consideration that some errors might be multiple for instance the validation step might throw several errors at the same time email already used password too short etc That is why the error contains an array of fieldErrors By requesting all the possible errors it is now possible for the frontend to display contextualized errors i e errors next to their input mutation register email gautier example com password psswrd typename Query different fields depending on the response type on User id on ValidationError fieldErrors path message on ProfessionalEmailRequired provider data register typename ValidationError Error messages specific to each input fieldErrors path email message This account already exists path password message Password too short The frontend is now able to show several contextualized errors at the same time This architecture will also make some future considerations easier to implement especially internationalization in We are currently refactoring our API to use structured errors It represents a substantial amount of work but we are now able to display more precise error messages especially for complex inputs and flows Structured errors help us improve the user experience of our products HTTP errorsWe spent a while talking about error types but let s get back to the errors field to conclude Sending errors in here allows keeping queries short and clear and we still use it for Not found and Unauthorized errors With a twist The GraphQL over HTTP specification states the following The server SHOULD use the status code independent of any GraphQL request error or GraphQL field error raised We decided to ignore this recommendation and attach semantic HTTP error codes to queries with errors Yoga s error masking makes it really simple to transform JS error objects into GraphQL errors with the right HTTP code attached const yoga createYoga schema maskedErrors maskError error message const cause error as GraphQLError originalError Transform JS error objects into GraphQL errors if cause instanceof UnauthorizedError return new GraphQLError cause message extensions http status if cause instanceof NotFoundError return new GraphQLError cause message extensions http status Default to with a generic message return new GraphQLError message extensions http status This enables the frontend to show the correct HTTP error page in case of a GraphQL error without even parsing the response Read moreWe are not the first ones to write about returning GraphQL errors you might be interested in these articles documentations too OK Error Handling in GraphQL by Sasha SolomonGraphQL error handling to the max with Typescript codegen and fp ts The GuildErrors plugin for Pothos GraphQL Closing wordsThis is the end of this we do it that way article we hope you enjoyed this format that allows to peep inside our development practices at Escape We are continuously discovering new ways to design GraphQL APIs and we will keep writing about the different steps we took until reaching the state of the art Please share your thoughts where you found this article we have a lot to learn from your experiences 2023-01-05 15:18:39
海外TECH DEV Community New Year, New Headers. https://dev.to/jarvisscript/new-year-new-headers-11aj New Year New Headers It s a new new year Good time to update stuff like header and cover images on your socials Here s my previous standard header If I m blogging on a project I often use a screen shot as a cover but this was my standard header for other type of blog posts It s a list of my contact information It mimics an editor But I made it real wide and the sides get cut off Here just the center part showed on screen I did this in so past due for a change This was my cover It s a photo I took and added a bit of text to it I liked this and may re edit it So here s my newest one All my contact information I changed the color and order of them In addition I resized it to better fit on DEV and other sites I used Photoshop for this but there are many options I experimented with Canva but it looked too generic So I went to Photoshop and edited the old header image Header and Cover image sizesYou can help your branding if you use the same Cover image across your various social media accounts Each company has different image size and aspect ratios so you have to play with them to get it right Here s a table of cover image sizes SitePixelAspect RatioDEVpx X px Mastodonpx x px Twitterpx x px LinkedInpx x px Size is not the only consideration Some sites have avatars that overlap the header image For example on Twitter you need to keep text out of lower left corner or it will be covered by profile image I know there are templates out there that adjust for this I had PSD files that have margins set up for facebook and twitter They showed where an avatar or frame overlapped the cover image and what was a safe area to use But those templartes were out of date The size requirements have since changed What do you think Are you making any update for the new year Are yiu changing your resume or portfolio What do you prefer just text or text over a photo Is the BB one professional JarvisScript git push 2023-01-05 15:00:59
Apple AppleInsider - Frontpage News Daily Deals Jan. 5: iPad 9th Gen for $299, Apple Watch SE for $219 & more https://appleinsider.com/articles/23/01/05/daily-deals-jan-5-ipad-9th-gen-for-299-apple-watch-se-for-219-more?utm_medium=rss Daily Deals Jan iPad th Gen for Apple Watch SE for amp moreThe best deals we discovered today include off Powerbeats Pro Wireless Earbuds off a Samsung Galaxy Z Flip off a SanDisk Extreme PRO Portable SSD and a Hisense inch K Smart Fire TV for Get a Apple iPad for The AppleInsider team scopes out deals at online stores to develop a list of unbeatable deals on the top tech gadgets including deals on Apple devices TVs accessories and other items We share the best deals in our Daily Deals list to help you save money Read more 2023-01-05 15:27:37
Apple AppleInsider - Frontpage News OWC's Thunderbolt Go Dock has built-in power supply & 11 ports https://appleinsider.com/articles/23/01/05/owcs-thunderbolt-go-dock-has-built-in-power-supply-11-ports?utm_medium=rss OWC x s Thunderbolt Go Dock has built in power supply amp portsThe OWC Thunderbolt Go Dock claims to be the world s first Thunderbolt dock with a built in power supply complete with ports and W power delivery OWC Thunderbolt Go Dock with built in power supplyCES is underway and OWC is rushing out of the gate with the Thunderbolt Go Dock It is an port Thunderbolt dock with a built in power supply Read more 2023-01-05 15:03:46
海外TECH WIRED Banning TikTok Hurts Higher Education https://www.wired.com/story/state-tiktok-ban-higher-education/ communication 2023-01-05 15:25:14
金融 RSS FILE - 日本証券業協会 第12回日本証券サミット(ニューヨーク) https://www.jsda.or.jp/about/international/20230104161801.html 証券 2023-01-05 16:30:00
金融 RSS FILE - 日本証券業協会 PSJ予測統計値 https://www.jsda.or.jp/shiryoshitsu/toukei/psj/psj_toukei.html 統計 2023-01-05 16:00:00
ニュース BBC News - Home Prince Harry accuses Prince William of physical attack in book - report https://www.bbc.co.uk/news/uk-64170469?at_medium=RSS&at_campaign=KARANGA guardian 2023-01-05 15:35:42
ニュース BBC News - Home Employers could sue unions under planned anti-strike laws https://www.bbc.co.uk/news/uk-politics-64173772?at_medium=RSS&at_campaign=KARANGA minimum 2023-01-05 15:43:19
ニュース BBC News - Home Pope praises 'wise, tender' Benedict at solemn burial https://www.bbc.co.uk/news/world-europe-64174160?at_medium=RSS&at_campaign=KARANGA benedict 2023-01-05 15:20:54
ニュース BBC News - Home Six women arrested after boy, one, dies at Dudley nursery https://www.bbc.co.uk/news/uk-england-birmingham-64178388?at_medium=RSS&at_campaign=KARANGA manslaughter 2023-01-05 15:25:48
ニュース BBC News - Home Barber shop owner jailed for using Covid grants to fund terrorists https://www.bbc.co.uk/news/uk-england-london-64177264?at_medium=RSS&at_campaign=KARANGA syria 2023-01-05 15:17:34
ニュース BBC News - Home Is the US Speaker stalemate any closer to a resolution? https://www.bbc.co.uk/news/world-us-canada-64170729?at_medium=RSS&at_campaign=KARANGA votes 2023-01-05 15:17:01
ニュース BBC News - Home Enzo Fernandez: Benfica boss criticises Chelsea pursuit of Argentina midfielder https://www.bbc.co.uk/sport/football/64170614?at_medium=RSS&at_campaign=KARANGA fernandez 2023-01-05 15:20:59
ニュース BBC News - Home Frank Lampard: Everton boss says he is 'not seeking reassurances' over his job https://www.bbc.co.uk/sport/football/64178432?at_medium=RSS&at_campaign=KARANGA Frank Lampard Everton boss says he is x not seeking reassurances x over his jobEverton boss Frank Lampard says he is not hunting around for any reassurances with his side in th place in the Premier League table 2023-01-05 15:44:14
ニュース BBC News - Home England midfielder Nobbs joins Villa from Arsenal https://www.bbc.co.uk/sport/football/64172965?at_medium=RSS&at_campaign=KARANGA aston 2023-01-05 15:24:30
北海道 北海道新聞 NY株、一時400ドル超安 米景気の先行きに懸念 https://www.hokkaido-np.co.jp/article/783999/ 景気 2023-01-06 00:39:00
北海道 北海道新聞 コロナ薬、用途拡大に意欲 塩野義社長、発症予防も https://www.hokkaido-np.co.jp/article/783997/ 共同通信 2023-01-06 00:28:00
北海道 北海道新聞 極寒に街ゆがむ 十勝管内で蜃気楼 https://www.hokkaido-np.co.jp/article/783981/ 冷え込み 2023-01-06 00:20:14
北海道 北海道新聞 詐欺容疑で男逮捕、受け子か 札幌東署 https://www.hokkaido-np.co.jp/article/783996/ 埼玉県狭山市 2023-01-06 00:15:06
北海道 北海道新聞 <開幕戦まで83日>稲葉GM「勝利が恩返し」 日本ハム球団竣工式 市民も期待 https://www.hokkaido-np.co.jp/article/783960/ 北海道日本ハム 2023-01-06 00:11:02
北海道 北海道新聞 政府、少子化対策で新会議 首相、6日にも指示 https://www.hokkaido-np.co.jp/article/783995/ 少子化対策 2023-01-06 00:02:00
IT 週刊アスキー LGがCESで新デザインのモバイルノートPCを発表 = 超薄型に「光るタッチパッド」も https://weekly.ascii.jp/elem/000/004/119/4119573/ lggram 2023-01-06 00:10:00

コメント

このブログの人気の投稿

投稿時間:2021-06-17 22:08:45 RSSフィード2021-06-17 22:00 分まとめ(2089件)

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

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