投稿時間:2021-04-25 07:12:04 RSSフィード2021-04-25 07:00 分まとめ(12件)

カテゴリー等 サイト名等 記事タイトル・トレンドワード等 リンクURL 頻出ワード・要約等/検索ボリューム 登録日
js JavaScriptタグが付けられた新着投稿 - Qiita React Kawaii がかわいい https://qiita.com/e99h2121/items/1a4b59dad06aa4411ad7 npminstallsavereactnativesvgnpminstallsavereactkawaiiかわいいのは題名のとおりさておいて、Reactってこういう感じなのかあというのが分かるところが面白かったかもしれない。 2021-04-25 06:17:39
Linux Ubuntuタグが付けられた新着投稿 - Qiita wsl2 Ubuntu20.4 postgresの導入 https://qiita.com/irukiti/items/8633afa635de6d03c2f7 wslUbuntupostgresの導入コマンド一覧sudoaptupdatesudoaptinstallpostgresqlpostgresqlcontribpostgres起動postgresユーザで接続sudoiupostgrespostgresに入れるか検証はいれたらqで終了psqlpostgresにuser追加し、権限とか聞かれるので確認createuserinteractivepsql内に入り、作成したパスワード変更passwordはdetabaseymlのdevelopmentに記載されているやつpsqlalterroleusernamewithpasswordpassworduser名でDB作成createdbusernamepsqlでユーザ経由で入れるか確認パスワード入れるpsqlUusernamedevelopmentのDB作成createdbdevelopmentdatabaseOusername認証の変更sudovietcpostgresqlmainpghbaconf変更前localallpostgrespeer変更後localallpostgresmd途中つまったら、適宜postgresqlを再起動させてください。 2021-04-25 06:45:59
海外TECH DEV Community JS interview in 2 minutes / == vs === https://dev.to/kozlovzxc/js-interview-in-2-minutes-vs-1f58 JS interview in minutes vs Question What is the difference between and operators Quick answer These are both comparison operators but the also compare types of operands Longer answer Javascript and basically typescript are languages with implicit type conversion This means they try to convert variables to proper types when performing operations let a let b console log a b So when comparing objects it will also try to convert them let a let b console log a b trueWe can reference this table for more examples Real life example It turned out really hard to provide some realistic example of a real life issue when you use instead of We can imagine a case when API returns a JSON object where some field can be in states present missing and null username admin roles admin username hacker roles null disabled username user It is weird but I actually had this case myself when API returned null instead of if object property was empty array So if you will write a condition using there will be a mistake both these cases will be triggered since undefined null is trueif obj prop undefined if obj prop null if obj prop yeah this example is still a bit artificial but if you can come up with something different please share it in the comments Btw I will post more fun stuff here and on Twitter let s be friends 2021-04-24 21:11:43
海外TECH DEV Community CSS Container Queries https://dev.to/link2twenty/css-container-queries-1205 CSS Container QueriesSomething new and exciting is coming to CSS and when I say is coming I mean it s not supported in any browsers yet and the spec is not finalised at the time of writing That all being said it s behind a flag in the next version of chrome and I have no doubt will be in all modern browsers in no time What are container queriesContainer queries are similar to media queries but with one major and crucial difference Media queries query the entire document and are used to modify content depending on those queries For instance if the document is over px you may want to move content in two columns rather than one This would look something like this main content column count column gap em media screen and min width px main content column count Container queries follow the same principle but rather than querying the entire document they instead query the container How do they help developersImagine the following scenario you ve got a contact card you want to display all over your site In some places it s in the main content but in other places you ve decided to display it in an aside On the same media query the aside could be px but the main section could be px leading to the cards needing to look different The solution is easy enough you need to have different classes for the cards with different media queries but there is a better way Container queries How do you use container queriesTo use container queries we have to tell the container the parent of the element we want to apply the query to that we care about its dimensions we do this with the new contain property noneIndicates the element renders as normal with no containment applied strictIndicates that all containment rules except style are applied to the element This is equivalent to contain size layout paint contentIndicates that all containment rules except size and style are applied to the element This is equivalent to contain layout paint sizeIndicates that the element can be sized without the need to examine its descendants sizes layoutIndicates that nothing outside the element may affect its internal layout and vice versa styleIndicates that for properties that can have effects on more than just an element and its descendants those effects don t escape the containing element Note that this value is marked at risk in the spec and may not be supported everywhere paintIndicates that descendants of the element don t display outside its bounds If the containing box is offscreen the browser does not need to paint its contained elements ーthese must also be offscreen as they are contained completely by that box And if a descendant overflows the containing element s bounds then that descendant will be clipped to the containing element s border box The documentation is a little lacking on Mozilla at the moment which is rare We want to use the inline size property which is described on Mozilla elsewhere asWhen we use media queries most of the time we care about the available width or inline size Practical examplesLet s take our contact card example from earlier and come up with some code to describe it lt div class site gt lt main class content gt lt div class contact card gt lt img class contact card profile image src profile png alt profile gt lt div class contact card profile information gt lt h gt Both Names lt h gt lt p gt Some info about me lt p gt lt div gt lt div gt lt main gt lt aside class side panel gt lt div class contact card gt lt img class contact card profile image src profile png alt profile gt lt div class contact card profile information gt lt h gt Both Names lt h gt lt p gt Some info about me lt p gt lt div gt lt div gt lt aside gt lt div gt The HTML is quite simplistic but I think it gets the point across we have a contact card its in two places with potentially drastically different widths Just some simple css to get it started site display flex max width px margin auto main content width background ccc aside side panel width background tomato Real css starts here main content aside side panel contain layout inline size contact card display flex flex direction column align items center width px background color white padding em box sizing border box border radius px margin em box shadow px px rgba px px rgba contact card profile image height px width px border radius px border px solid black contact card profile information margin left em contact card profile information h text align center margin font size em contact card profile information p text align center margin em container min width px contact card width px flex direction row align items flex start contact card profile information h text align left contact card profile information p text align left In this CSS we style the contact card and then we have a container query that changes the style of the card when we pass a width of px As you can see it s basically the same as a media query but is based on the container Here is how the code will render hopefully we can try it in more browsers one day soon Here s the code if for when it actually works jsfiddle Influence the specAs I said right at the start the spec isn t yet finalised if you want to look at what people are suggesting or if you want to make a suggestion yourself there is still time to do it Head over to the git issues board and have a look The endI m very excited about this I work mostly with React and I am really looking forward to components being able to change based on their parent s size Well that s it that s the post If you have any questions feel free to post them in comments I might not be able to answer them off the top of my head but let s learn together Thank you so much for reading ️️️ 2021-04-24 21:07:58
Apple AppleInsider - Frontpage News ACLU, EFF ask Supreme Court to review border device search policies https://appleinsider.com/articles/21/04/24/aclu-eff-ask-supreme-court-to-review-border-device-search-policies?utm_medium=rss ACLU EFF ask Supreme Court to review border device search policiesThe American Civil Liberties Union and Electronic Frontier Foundation have petitioned the U S Supreme Court to hear its arguments to try and force a review of policies that allow the warrantless searches of iPhones and other electronic devices at the U S border The petition on Friday to the Supreme Court takes the form of a writ of certiorari asking that it hears a challenge to policies of the Department of Homeland Security concerning device searching at airports and other border entry points in the United States The two groups insist the searches are a violation of privacy that isn t justified under the constitution The request is part of a series of actions relating to a lawsuit about warrantless phone and notebook searches by DHS agents reports Engadget In November a Boston federal district court ruled the policies on electronic device searches violated the Fourth Amendment and therefore required border officers to have some reasonable suspicion of wrongdoing before they can search a device Read more 2021-04-24 21:23:33
海外TECH Engadget Dutch politicians were tricked by a deepfake video chat https://www.engadget.com/netherlands-deepfake-video-chat-navalny-212606049.html alexei 2021-04-24 21:26:06
海外TECH CodeProject Latest Articles Creative Writer's Word-Processor https://www.codeproject.com/Articles/5246733/Creative-Writers-Word-Processor processora 2021-04-24 21:49:00
海外科学 NYT > Science U.S. Is Under Pressure to Release Vaccine Supplies as India Faces Deadly Surge https://www.nytimes.com/2021/04/24/climate/inda-covid-vaccines.html indian 2021-04-24 21:20:52
ニュース BBC News - Home Covid-19: 'Battle not over' amid jab campaign for under-50s https://www.bbc.co.uk/news/uk-56873026 people 2021-04-24 21:31:10
ニュース BBC News - Home Blades earn first win under Heckingbottom to keep Brighton in relegation mix https://www.bbc.co.uk/sport/football/56782073 Blades earn first win under Heckingbottom to keep Brighton in relegation mixSheffield United claim a first Premier League win since the departure of boss Chris Wilder to keep Brighton in the relegation mix 2021-04-24 21:39:25
LifeHuck ライフハッカー[日本版] 干さなくても、布団を毎日ふかふかに。アイリスオーヤマの「ふとん乾燥機」 https://www.lifehacker.jp/2021/04/233596roomie-irisoyama-hutonkansoki.html 布団乾燥機 2021-04-25 07:00:00
北海道 北海道新聞 米、アルメニア人虐殺を認定 トルコ反発、関係悪化も https://www.hokkaido-np.co.jp/article/537132/ 米大統領 2021-04-25 06:13: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件)