IT |
気になる、記になる… |
Appleシリコン搭載の「iMac 32インチ」の発売は来年か |
https://taisy0.com/2021/07/24/143421.html
|
apple |
2021-07-24 00:29:16 |
Program |
[全てのタグ]の新着質問一覧|teratail(テラテイル) |
pythonでビットマスクを作りたい |
https://teratail.com/questions/350963?rss=all
|
pythonでビットマスクを作りたいpythonでbit操作の勉強をしています。 |
2021-07-24 09:12:25 |
Program |
[全てのタグ]の新着質問一覧|teratail(テラテイル) |
npm scriptsでscriptsを複数実行すると動作しない |
https://teratail.com/questions/350962?rss=all
|
npmscriptsでscriptsを複数実行すると動作しないワードプレスのカスタムブロックを作りたくてwpscriptというパッケージをインストールしました。 |
2021-07-24 09:09:27 |
Program |
[全てのタグ]の新着質問一覧|teratail(テラテイル) |
Pythonを使いtwitter上でユーザー名に特定のキーワードが入っているアカウントのみにいいねをしたい |
https://teratail.com/questions/350961?rss=all
|
Pythonを使いtwitter上でユーザー名に特定のキーワードが入っているアカウントのみにいいねをしたいPython・tweepyを使いtwitter上でユーザー名に特定のキーワードが入っているアカウントのみにいいねをしたいと考えています。 |
2021-07-24 09:04:43 |
Linux |
Ubuntuタグが付けられた新着投稿 - Qiita |
パスワードなしで sudo で apt を実行できるようにする (ubuntu 21.04) |
https://qiita.com/m-tmatma/items/04b54062116c4080ab93
|
このためetcsudoersを直接編集する方法ではなく、etcsudoersd以下に新しいファイルを作成して行います。 |
2021-07-24 09:10:03 |
Docker |
dockerタグが付けられた新着投稿 - Qiita |
Django本番環境をNginx+GunicornでDocker上に構築 |
https://qiita.com/sindicum/items/620ba2984b6729e3a576
|
環境ソフトバージョンOSMacOSCatalinadockerenginedockercomposeDjangoGruncornNginxディレクトリ構成├ーappDjangoアプリ├ーconfigDjango設定関係│├ーlocalsettingspy│├ーsettingspy│├ーDockerfile├ーdockercomposeyml├ーdockerenv├ーgunicornconf├ーmanagepy└ーrequirementstxtDjango設定ファイル開発環境用にlocalsettingspyファイルを作成し、SECRETKEY、DEBUG、ALLOWEDHOSTSのデフォルト設定はそちらに移行。 |
2021-07-24 09:13:55 |
技術ブログ |
Developers.IO |
Windows版「rm -rf /*」の「cmd /c rd /s /q c:\」を実行してみた |
https://dev.classmethod.jp/articles/tried-rd-root-on-windows-server/
|
amazon |
2021-07-24 00:10:00 |
海外TECH |
DEV Community |
How to Get Better with Git |
https://dev.to/anaveecodes/how-to-get-better-with-git-25d1
|
How to Get Better with GitGit is a version control tool that any developer would benefit from learning Using git allows you to save your code as you make changes and you can see what changes have been made over time When working with other developers knowing git makes it easy to collaborate on projects This includes open source and side projects as well as when you are working on a dev team Over the years I ve had practice using Git I feel pretty good with the basics such as setting up new projects on GitHub creating branches resolving conflicts and contributing to open source or other team projects I tend to stick to the git commands most familiar to me without trying new concepts so I m ready to step things up What s your git level Knowing your git level of knowledge is the first step to improve your skills Samuel Faure wrote How to Learn Git Slowly where he outlines six levels of knowledge Refer to Samuel s guide as it can serve as a roadmap for your git level up strategy Here are some ideas and free git resources to help you boost your git know how E BooksE books can serve as resources you come back to whenever you want to review a concept or look something up The Pro Git book written by Scott Chacon and Ben Straub is a good resource for a variety of git concepts Get step by step guidance with the Introduction to Git and Github e book created by Bobby Iliev Git Cheat SheetsKeep git cheat sheets handy as you work You might also want to create one of your own This Simple Guide to Git gives you the most common commands you need to get started Check your knowledge by going through these Git Commands You Should Know Git CoursesDedicate some time to complete a git course and keep applying your knowledge through the course material or with your side projects Check out these courses which vary in length depending on how you want to structure your learning The Ultimate Git Day Challenge from Udemy by Brian Gorman is great for those who are new to git and want to get a step by step overview of getting setup with git on Github or Bitbucket The Gymnasium has an Introduction to Git and GitHub course by Jeff Ausura that you can complete in about an hour or less If you have a block of hours to spare check out Git Become an Expert in Git amp GitHub in Hours from Udemy by Jad Khalili to get intensive git training in a short amount of time Version Control with Git through Coursera offered by Atlassian is a week course that takes you through creating a repository creating branches merging workflows and more If you are new to the open source world learn How to Contribute to an Open Source project on GitHub with Kent C Dodds Observe various git commands in action with the Practical Git For Everyday Professional Use course taught by Trevor Miller Interactive ResourcesOne of the best ways to learn something is to practice it so give these two resources a try With Git Immersion you ll complete short challenges on your local computer as you learn basic git commands Learning Git Branching guides you through visuals as you use git commands and create branches Pair program with othersIf you have a mentor or work with a team of developers take some time to pair program Not only will you improve your coding skills you ll have a chance to see the other developer s techniques with git To them their methods might come naturally so they may not think what they are doing is anything special Watch developer live streams or tutorialsYou typically watch a live coding session for the actual content but there is also another layer of learning by noticing how the developer works with git and uses various commands and shortcuts ConclusionWhen you understand git you find this common ground among many kinds of developers who also use git Taking the time to practice git and dive deeper into the various levels of knowledge will help you become a better developer and teammate Being well versed with git could help you stand out when applying for jobs and well as making you better prepared when being onboarded to a new company or team What s your git story Are you new or a pro with git Any helpful tips you can share Photo courtesy of Lagos Techie on Unsplash |
2021-07-24 00:44:25 |
海外TECH |
DEV Community |
5 Helpful Python Math Module Methods |
https://dev.to/ayabouchiha/5-helpful-python-math-module-methods-44gf
|
Helpful Python Math Module MethodsHi my name is Aya Bouchiha today we are going to discuss methods from the math module that you will probably use in your next project If you are a javascript developer I recommend to you this article Your Complete Guide To Math Object in Javascript math floor math floor rounds a number down to the nearest integer import mathprint math floor print math floor print math floor print math floor math ceil math ceil rounds a number up to the next largest integer import mathprint math ceil print math ceil print math ceil print math ceil math trunc math trunc returns the integer part of a number by deleting any fractional digits If you re confiused with math trunc math floor and math ceil you need to know that math trunc plays exactly the role of math floor when the giving number is positive and It play the role of math ceil if the giving number is negative import mathprint math trunc print math trunc print math trunc print math trunc math sqrt math sqrt returns the square root of the giving positive number import mathprint math sqrt print math sqrt print math sqrt print math sqrt math degrees math degrees this method returns the degrees of a given angle in radians import mathpi math pi print math degrees print math degrees pi print math degrees pi print math degrees pi Referencewww wschools comHope you enjoyed reading this post Have a nice day email developer aya b gmail comtelegram Aya Bouchiha |
2021-07-24 00:38:10 |
海外TECH |
DEV Community |
60+ Laravel Collection Methods [In Under 15 Minutes] 🚀 |
https://dev.to/cleancodestudio/60-laravel-collection-methods-in-under-15-minutes-1cf7
|
Laravel Collection Methods In Under Minutes ltag user id follow action button background color d important color ffffff important border color d important Clean Code StudioFollow Clean Code StudioClean Code Clean Life Simplify collection collect id gt name gt john age gt home owner gt true kids gt type gt User class id gt name gt sarah age gt home owner gt false kids gt type gt User class id gt name gt tim age gt home owner gt false kids gt type gt User class id gt name gt sam age gt home owner gt true kids gt type gt User class id gt name gt ray age gt home owner gt false kids gt type gt User class Maxreturns the maximum value of a given key collection gt max age Output minreturns the minimum value of a given key collection gt min kids Output avg and averagereturns the average value of a given key collection gt avg age Output collection gt average age Output medianreturns the median value of a given key collection gt median id Output modereturns the mode most often value of a given key collection gt mode kids Output gt sumreturns the sum value of a given key collection gt sum kids Output sortBysorts the collection by the given key keeping the original array keys collection gt sortBy age Output Collection id gt name gt ray age gt home owner gt false kids gt type gt User class id gt name gt sarah age gt home owner gt false kids gt type gt User class id gt name gt tim age gt home owner gt false kids gt type gt User class id gt name gt john age gt home owner gt true kids gt type gt User class id gt name gt sam age gt home owner gt true kids gt type gt User class sortByDescsorts the collection descending by the given key keeping the original array keys collection gt sortByDesc age Output Collection id gt name gt sam age gt home owner gt true kids gt type gt User class id gt name gt john age gt home owner gt true kids gt type gt User class id gt name gt tim age gt home owner gt false kids gt type gt User class id gt name gt sarah age gt home owner gt false kids gt type gt User class id gt name gt ray age gt home owner gt false kids gt type gt User class nthcreates a new collection consisting of every n th element collection gt nth Output Collection id gt name gt john age gt home owner gt true kids gt type gt User class id gt name gt tim age gt home owner gt false kids gt type gt User class id gt name gt ray age gt home owner gt false kids gt type gt User class firstretrieves the first element of the collection or optionally the first element that meets the condition from a callback function collection gt first Output id gt name gt john age gt home owner gt true kids gt type gt User class collection gt first element gt element gt id gt Output id gt name gt sarah age gt home owner gt false kids gt type gt User class lastretrieves the last element of the collection or optionally the last element that meets the condition from a callback function collection gt last Output id gt name gt ray age gt home owner gt false kids gt type gt User class collection gt last element gt element gt id lt Output id gt name gt sam age gt home owner gt true kids gt type gt User class Laravel From The Ground Up |
2021-07-24 00:22:59 |
海外TECH |
DEV Community |
La Herencia en CSS |
https://dev.to/lupitacode/la-herencia-en-css-6md
|
La Herencia en CSS¡Hola gente bonita Hay una última manera en la que un elemento puede recibir estilos la herencia La cascada se confunde frecuentemente con el concepto de herencia Aunque los dos temas están relacionados debes entender cada uno por separado Si quieres conocer sobre la cascada te invito a leer mi articulo de este tema La Cascada en CSS Quées y cómo funciona Lupita Code ・Jun ・ min read css html codenewbie spanish ¿Quées la herencia Vamos a comenzar por una analogía que me gusta usar mucho Muchas veces los niños y niñas heredan rasgos de sus padres el color de los ojos el color del cabello la estatura etc A veces heredamos rasgos de antepasados más lejanos como abuelos o bisabuelos La metáfora de las relaciones familiares también forma parte de la estructura del HTML Y al igual que las personas las etiquetas HTML pueden heredar propiedades CSS de sus antepasados Los descendientes piense en hijos y nietos heredan propiedades de los ancestros piense en padres y abuelos La herencia es el proceso por el cual algunas propiedades CSS aplicadas a una etiqueta se pasan a las etiquetas anidadas Si un elemento no tiene un valor en cascada para una determinada propiedad puede heredar uno de un elemento antecesor Es común aplicar la propiedad font family al elemento lt body gt Todas las etiquetas descendientes de la etiqueta lt body gt es decir las que están dentro de la etiqueta lt body gt heredarán esta fuente y no es necesario aplicarla explícitamente a cada elemento de la página NOTA Cualquier etiqueta dentro de otra etiqueta es descendiente de esa etiqueta por ejemplo una etiqueta lt p gt dentro de la etiqueta lt body gt es descendiente de lt body gt mientras que la etiqueta lt body gt es un ancestro de la etiqueta lt p gt La herencia también funciona a través de múltiples generaciones Si una etiqueta como lt em gt o lt strong gt aparece dentro de una etiqueta lt p gt entonces las etiquetas lt em gt y lt strong gt también heredan las propiedades de cualquier estilo aplicado a la etiqueta lt body gt La siguiente imagen muestra cómo la herencia fluye hacia abajo en el árbol del DOM Las propiedades heredadas se transfieren por el árbol DOM desde los nodos padres a sus descendientes Como puedes notar en la estructura del árbol cada elemento solo tiene un padre directo No todas las propiedades se heredanLa herencia no es todopoderosa no todas las propiedades se heredan Por defecto sólo algunas las que son principalmente propiedades que pertenecen al texto color font font family font size font weight font variant font style line height letter spacing text align text indent text transform white space y word spacing También se heredan algunas otras como las propiedades de la lista list style list style type list style position y list style image Las propiedades del borde de la tabla border collapse y border spacing también se heredan Tenga en cuenta que éstas controlan el comportamiento de los bordes de las tablas NO las propiedades para especificar los bordes de los elementos que no son tablas No queremos que un lt div gt pasara su borde a todos los elementos descendientes ¿Verdad Como podemos ver la herencia no siempre se aplica y eso NO es necesariamente algo malo Para algunas propiedades la herencia tendría un efecto negativo en la apariencia de una página Los márgenes el padding y los bordes entre otras propiedades no son heredados por las etiquetas y no es deseable que lo hagan ¿Por que Mira el siguiente ejemplo lt p gt Lorem ipsum lt em gt dolor lt em gt sit amet lt p gt p padding left px border left solid red Observa que la etiqueta lt p gt tienen un borde a la izquierda Sin embargo la etiqueta lt em gt dentro de lt p gt no tienen ningún borde adicional Este comportamiento tiene sentido se vería raro o extraño si hubiera un borde adicional y px de espacio a la izquierda de cada etiqueta lt em gt dentro de un párrafo Por este motivo es que la propiedad border no se hereda ¿Por que es importante la herencia Aunque esto pueda parecer confuso la herencia es un gran ahorro de tiempo Imagina que no se pasan las propiedades CSS a las etiquetas anidadas y que tienes un párrafo lt p gt que contiene otras etiquetas como una etiqueta lt strong gt una etiqueta lt em gt para enfatizar el texto y una etiqueta lt a gt para añadir un enlace Si creas un estilo que haga que el texto del párrafo sea blanco y de px sería raro y extraño que todo el texto dentro de las etiquetas lt em gt lt strong gt y lt a gt tuvieran su estilo normal tal y como se muestra en la siguiente imagen de muestra En ese caso tendrías que crear otro estilo para dar formato a la etiqueta lt em gt lt strong gt y lt a gt para que coincida con la apariencia de la etiqueta lt p gt Quétedioso ¡Por eso esta la herencia y por eso es importante Libros de CSS consultados para este tema CSS in DepthCSS The Missing ManualCSS The Definitive GuideGracias por leer ️Mis redes sociales donde comparto notas de código ️YoutubeInstagramTwitterFacebookCodepen️MediumTik Tok |
2021-07-24 00:13:36 |
海外科学 |
NYT > Science |
Montana’s Famed Trout Under Threat as Drought Intensifies |
https://www.nytimes.com/2021/07/23/science/drought-montana-fly-fishing.html
|
Montana s Famed Trout Under Threat as Drought IntensifiesThe state is imposing more restrictions on fishing this year as the combination of extreme conditions including low river levels fish die offs and the crush of anglers poses long term problems |
2021-07-24 00:53:04 |
海外科学 |
NYT > Science |
Israeli Data Suggests Possible Waning in Effectiveness of Pfizer Vaccine |
https://www.nytimes.com/2021/07/23/science/covid-vaccine-israel-pfizer.html
|
Israeli Data Suggests Possible Waning in Effectiveness of Pfizer VaccineThe new numbers still show overwhelmingly strong protection against severe disease but diminished effectiveness against infection |
2021-07-24 00:27:03 |
ニュース |
BBC News - Home |
Covid-19: Air travel takes off on busiest weekend since pandemic |
https://www.bbc.co.uk/news/uk-57948383
|
airline |
2021-07-24 00:22:55 |
ニュース |
BBC News - Home |
Latitude festival: Magical, emotional... and a little bit frightening |
https://www.bbc.co.uk/news/entertainment-arts-57946872
|
capacity |
2021-07-24 00:02:07 |
ニュース |
BBC News - Home |
Escape to Victory: The Ipswich footballers who made a cult classic |
https://www.bbc.co.uk/news/uk-england-suffolk-57840345
|
caine |
2021-07-24 00:32:34 |
ニュース |
BBC News - Home |
Clubbing and Covid passports: 'Protect vulnerable people' or 'against civil liberties'? |
https://www.bbc.co.uk/news/newsbeat-57901082
|
newsbeat |
2021-07-24 00:27:59 |
ビジネス |
ダイヤモンド・オンライン - 新着記事 |
来週(7/26~30)の日経平均株価の予想レンジは、 2万7000~2万8500円! 米国株高と「ダブルボトム」 が意識されて2万8000円を超えれば“調整”は終了か!? - 来週の日経平均株価の予想レンジを発表! |
https://diamond.jp/articles/-/277681
|
来週の日経平均株価の予想レンジは、万万円米国株高と「ダブルボトム」が意識されて万円を超えれば“調整は終了か来週の日経平均株価の予想レンジを発表来週の日経平均株価の予想レンジを発表投資情報サービス会社・ラカンリチェルカの村瀬智一さんが、今週の市況を振り返って分析。 |
2021-07-24 09:35:00 |
ビジネス |
ダイヤモンド・オンライン - 新着記事 |
中国人研究者のビザ不正、米司法省が訴追取り下げ - WSJ発 |
https://diamond.jp/articles/-/277693
|
取り下げ |
2021-07-24 09:24:00 |
LifeHuck |
ライフハッカー[日本版] |
トレーニングをしながら正確にセット数を数える方法 |
https://www.lifehacker.jp/2021/07/238328how-to-count-reps-and-sets-of-an-exercise.html
|
正確 |
2021-07-24 10:00:00 |
北海道 |
北海道新聞 |
【道スポ】檀崎、コンサドーレ復帰 進化した姿披露 入籍も発表 |
https://www.hokkaido-np.co.jp/article/570500/
|
道スポ |
2021-07-24 09:16:00 |
北海道 |
北海道新聞 |
五輪、メダル期待の柔道始まる 競技本格化、バドや卓球も |
https://www.hokkaido-np.co.jp/article/570499/
|
東京五輪 |
2021-07-24 09:14:00 |
北海道 |
北海道新聞 |
旭川で田んぼアート見ごろ |
https://www.hokkaido-np.co.jp/article/570335/
|
田んぼアート |
2021-07-24 09:13:45 |
コメント
コメントを投稿