python |
Pythonタグが付けられた新着投稿 - Qiita |
WSLgとOpenCVを使って動画と画像を表示する |
https://qiita.com/nashinium/items/f583dfae254725931e96
|
RunaoutPromptSelectmediatypewhichyouwanttodisplayvforvideopforPicturegtgt次のように画像、又は動画が表示されればOK。 |
2021-10-09 20:15:46 |
js |
JavaScriptタグが付けられた新着投稿 - Qiita |
javascriptのyieldとジェネレータ関数について |
https://qiita.com/kyabetsuda/items/fa9317b2126d28b94299
|
functiontestGeneratorvalconsolelogvalyieldconsolelogvalletgtestGeneratorgnextgnext結果さらにジェネレータ関数next引数とすることで渡すこともできます渡した引数はyield時に取り出すことができます。 |
2021-10-09 20:26:09 |
Program |
[全てのタグ]の新着質問一覧|teratail(テラテイル) |
参考サイト通りにしたがPWAできない |
https://teratail.com/questions/363611?rss=all
|
|
2021-10-09 20:59:01 |
Program |
[全てのタグ]の新着質問一覧|teratail(テラテイル) |
AWS SageMaker Studioへのオンボードについて |
https://teratail.com/questions/363610?rss=all
|
AWSSageMakerStudioへのオンボードについてAWSnbspSageMakerを使用したいのですが、IDEであるAWSnbspSageMakernbspStudioへのオンボードができず困っています。 |
2021-10-09 20:53:14 |
Program |
[全てのタグ]の新着質問一覧|teratail(テラテイル) |
ハッシュ化したパスワードを認証する |
https://teratail.com/questions/363609?rss=all
|
|
2021-10-09 20:45:46 |
Linux |
Ubuntuタグが付けられた新着投稿 - Qiita |
カーネルについて |
https://qiita.com/pyon_kiti_jp/items/94b2358511c7013516e1
|
OS起動時にカーネルに組み込まれたモジュールの一覧を表示するコマンドがある。 |
2021-10-09 20:45:57 |
AWS |
AWSタグが付けられた新着投稿 - Qiita |
【一発合格】AWS認定ソリューションアーキテクトアソシエイト合格までにしたこと |
https://qiita.com/tukky/items/81167bfdb7816df6a5a7
|
講座を購入すると、講座で使用しているスライドをすべてPDFでダウンロードすることができるため、空き時間の学習にも困りません。 |
2021-10-09 20:58:31 |
AWS |
AWSタグが付けられた新着投稿 - Qiita |
AWSを使ってReact・Django(DRF)のウェブアプリをデプロイしたい |
https://qiita.com/shitikakei/items/09bc75e7e2d06dc87735
|
自動化ツールを使う場合、envは基本的にはリソースに含まれないはずなのでAWSSystemManagerのParameterStoreやCodeBuildの環境変数設定画面を用いて環境変数を設定する上記で設定した環境変数をbuildspecymlなどを使って、ビルドする際にenvとして書き出すSPA、つまるところクロスオリジンにする場合、ローカルと違ってフロントからサーバーへのRequestもHttpsで行わないとblockedmixedcontentエラーになるよって独自ドメインはフロントとサーバーのつで必要となり、サーバー側の独自ドメインはElasticIPとで名前解決の紐付けを行うサーバーがDjangoの場合、SameSite周りの設定がsettigspy経由だとうまく行かない場合がある同様に、ifsettingsDEBUGが本番環境だと動作しないことがあるよって、開発環境でifsettingsDEBUGでSameSiteの設定を変えていたMiddlewareをsamesiteNone及びsecureTrueで固定するように変更する上記の点さえ把握してれば、あとはネットの海を漁れば以降のことは見なくてもできると思います。 |
2021-10-09 20:14:24 |
技術ブログ |
Developers.IO |
SNMP 프로토콜로 원격 호스트의 정보를 가져와 보기 |
https://dev.classmethod.jp/articles/try-to-communicate-with-the-snmp-protocol-on-the-ec2-instance/
|
SNMP 프로토콜로원격호스트의정보를가져와보기안녕하세요클래스메소드김재욱 Kim Jaewook 입니다 이번에는EC 인스턴스에net snmp 서비스를설치하고 SNMP 통신을해봤습니다 SNMP란 SNMP Simple Net |
2021-10-09 11:56:27 |
海外TECH |
Ars Technica |
Millionaire Twitch streamers react to their leaked earnings |
https://arstechnica.com/?p=1802529
|
earnings |
2021-10-09 11:10:38 |
海外TECH |
DEV Community |
Button Hover Animation |
https://dev.to/gw78ah/button-hover-animation-47k3
|
animation |
2021-10-09 11:55:11 |
海外TECH |
DEV Community |
10 Awesome Github Repositories Every Web Developer Should Know. |
https://dev.to/mutafakir/10-awesome-github-repositories-every-web-developer-should-know-23nj
|
Awesome Github Repositories Every Web Developer Should Know AwesomeWithout a doubt Awesome is the most popular repositories for everything from software development to hardware to business It currently has over stars on Github and one could spend days or nights browsing it If I want to learn something new it s my one stop shop Link to Repository List of Advanced JavaScript QuestionsLydia Hallie wonderful person by the way check her out on Instagram made this repository stars If you want to test your JavaScript knowledge and or prepare for a job interview this is an excellent resource Lydia is always asking new questions thus this repo is always developing Link to Repository JavaScript Algorithms and Data StructuresJavaScript Algorithms stars has a ton of JavaScript based examples of both common and uncommon algorithms and data structures Because the examples are classified as beginner or intermediate the framework is excellent So whether you re interested in security sorting graphs or machine learning among other topics you ll find something to your liking Link to Repository Clean Code JavaScriptWriting clean code is an useful skill for practically every developer and it is required in many projects and businesses This repository stars adapts Robert C Martin s Clean Code ideas for JavaScript so you can use them in your future work Link to Repository free for devThis amazing repository stars was designed to assist developers in accessing free software SaaS PaaS IaaS and similar products Isn t it nice to be able to use great software for free That s fantastic Email CI CD monitoring DNS hosting and a slew of other services are available Link to Repository Tech Interview HandbookIf you want to prepare for a job interview in the tech industry and you should this repository is the place to go It has stars on Github and can assist you with How to prepare for coding interviewsInterview cheatsheetAlgorithm tips best practice questionsInterview formats…and moreCheck it out before heading to the next interview Link to Repository Effective Engineer ーNotesSomeone who is known as a “Effective Engineer is someone who gets things done But how do you go about becoming one You can get help from this Github repository stars The following are some of the topics covered How to optimize your learningHow to prioritizeMeasuring your improvementLink to Repository List of Free Learning ResourcesOn Github this repository has a huge stars making it one of the most popular curators It has a large number of free programming books screencasts podcasts and even online courses of various kinds You ve come to the right place if you re looking for educational materials Link to Repository Big List of Naughty StringsYou can put as much effort into testing your code and programs as you want but when real people are involved believe me when I say that they will do things you never imagined especially when it comes to user input This repository stars has a long list of Strings that have been known to cause problems when used as input So whether you re looking to impress your QA pals or use it to test your program this may be quite beneficial Link to Repository Awesome First PR OpportunitiesThe last repository I d like to suggest is excellent for getting started with Open Source Contributing to OSS is a fantastic opportunity to become engaged in the community build your portfolio try new things improve your programming skills and perhaps find a new job But as I ve learned from personal experience getting started is difficult This repository contains a list of Open Source projects with beginner friendly issues that you can work on It aided me in getting started with OSS and should do the same for you Link to Repository I hope you find these repositories as awesome as I do and I really hope that some of them will help you on your journey as a web developer |
2021-10-09 11:40:09 |
海外TECH |
DEV Community |
Pagination in Javascript and React, with a custom usePagination() hook |
https://dev.to/damiisdandy/pagination-in-javascript-and-react-with-a-custom-usepagination-hook-1mgo
|
Pagination in Javascript and React with a custom usePagination hookThis guide is to help you understand the concept of pagination and how to implement it in react the concepts in this tutorial can be applied to any javascript project What is Pagination Pagination is the process of separating print or digital content into discrete pages For print documents and some online content pagination also refers to the automated process of adding consecutive numbers to identify the sequential order of pages Concept behind it Let s say you have a total of items on a page and you want to only display items at a time per page This means we are going to have a total of pages and if we want to display items per page this means a total of you guessed it pages This formular is rather simple totalPages totalContent contentPerPage Implementing it in Javascript slice Calculating the content per page is rather easy but how do we display certain content based on what page we are on We simply need to understand the relationship between the page and the index of our content Let first understand the slice Array method The slice method returns a shallow copy of a portion of an array into a new array object selected from start to end end not included where start and end represent the index of items in that array The original array will not be modified For example let s say we have an array called scouts and we want to select only a portion of this array based on the array s index const scouts levi hange erwin petra oruo miche scouts slice output erwin petra oruo scouts slice output hange erwin We all know javascript follows a zero based index so the first parameter is the index from which we want to start the slice from and the second parameter is the index right after where we want the slice to end e g if we want to we use slice as seen in the first example Mapping page number to indexAll we need to do is know what the startIndex and lastIndex should be based on the page number this relationship is quite simple As you can tell from the diagram above the last index is simply the current page multiplied by the given content by page while the first index is the content by page subtracted from the last index assuming we are on page oneconst page const contentPerPage const lastIndex page contentPerPage const firstIndex lastIndex contentPerPage scouts slice firstIndex lastIndex scouts slice gt levi hange erwin page scouts slice gt petra oruo miche Wow that was easy Custom usePagination hook Now that we ve learned the concept behind it let s implement this in react and create our custom hook to help us automate this process This hook takes in an object that takes in the properties contentPerPage which is how many items should be displayed at a time and count which is the total number of items given Array length It also returns an object with the following properties page current page we are ontotalPages total number of pages generatedfirstContentIndex first index for the slice methodlastContentIndex last index for the slice methodnextPage function to navigate one page fowardprevPage function to navigate one page backwardsetPage function to go to a certain pageThe type definitions are as follows interface UsePaginationProps contentPerPage number count number interface UsePaginationReturn page number totalPages number firstContentIndex number lastContentIndex number nextPage gt void prevPage gt void setPage page number gt void type UsePagination UsePaginationProps gt UsePaginationReturn In your React project create a folder called hooks and create a file called usePagination this is where our custom hook will reside Type the following within itimport useState from react const usePagination UsePagination contentPerPage count gt const page setPage useState number of pages in total total items content on each page const pageCount Math ceil count contentPerPage index of last item of current page const lastContentIndex page contentPerPage index of first item of current page const firstContentIndex lastContentIndex contentPerPage change page based on direction either front or back const changePage direction boolean gt setPage state gt move forward if direction if page is the last page do nothing if state pageCount return state return state go back else if page is the first page do nothing if state return state return state const setPageSAFE num number gt if number is greater than number of pages set to last page if num gt pageCount setPage pageCount if number is less than set page to first page else if num lt setPage else setPage num return totalPages pageCount nextPage gt changePage true prevPage gt changePage false setPage setPageSAFE firstContentIndex lastContentIndex page export default usePagination We are managing the current page value with useState also notice that pageCount is also equal to the value of the last page I ve made the code above as explanatory as I can Implementation We simply import the hook then input the needed properties const firstContentIndex lastContentIndex nextPage prevPage page setPage totalPages usePagination contentPerPage count people length Then we simply slice our data with the firstContentIndex and lastContentIndex lt div className items gt people slice firstContentIndex lastContentIndex map el any gt lt div className item key el uid gt lt div gt lt div gt Below is a simple functionality to help us generate our buttons then we add their corresponding onClick handlers lt div className pagination gt lt p className text gt page totalPages lt p gt lt button onClick prevPage className page gt amp larr lt button gt ts ignore Array totalPages keys map el gt lt button onClick gt setPage el key el className page page el active gt el lt button gt lt button onClick nextPage className page gt amp rarr lt button gt lt div gt We are done As you can see below our usePagination hook works as planned Thank you for reading If you have any questions additions or subtractions please comment below The full source code to with project with a functioning todo application is linked below damiisdandy use pagination a react usePagination hook |
2021-10-09 11:37:09 |
海外TECH |
DEV Community |
Learn about the Google Cloud Platform ✔️ |
https://dev.to/deepakguptacoder/learn-about-the-google-cloud-platform-416b
|
Learn about the Google Cloud Platform ️ IntroductionGoogle Cloud Platform is a way to access Google sinfrastructure to create your own serverAnd applications simplified answer Google Cloud Platform GCP a collection cloud computing services that was launched by Google on April GCP offers a variety of tools and services that help with managing infrastructures configuring networks and provisioning servers What is the importance of GCP is the third largest Cloud Service Provider CSP behind Amazon s AWS and Microsoft Azure There are some point of GCP ScalabilityGCP however allows for extreme ease of scaling up or down Downscaling is one of the biggest drawbacks to cloud computing PricingIn its pricing philosophy Google has four key elements Google s GCP services are priced at the lowest price on the cloud market compared to other providers Sub hour billingThe bill is only made for the requested time GCP for example doesn t round the hour to the next hour if services are requested for half an hours unlike other CSPs Sustained Use DiscountGoogle offers a discount if you use the product for a sustained period of time GCPThis allows you to specify the exact amount CPU power and memory required for your application and be billed accordingly GCP also offers a variety of cloud services that can be used to build applications manage infrastructures provision servers and store data GCP is accessible by cloud administrators and developers via dedicated or public networks Integrated Services Multiple APIs AI ML IoT and Compute Engine Databases Big Data analytics Developer tools Security Storage can all be used simultaneously Quick Collaboration GCP allows quick collaboration for all users Multiple users can simultaneously access and edit the project files For unused data the redundant backup facility can be accessed Employees can work anywhere and have full access to all information from any device Data is also stored in the cloud so employees can work remotely Full control and flexibility in technology and data management for users I hope this is help to you learn a Googlecloud platform |
2021-10-09 11:32:01 |
海外TECH |
DEV Community |
Top 10 Vscode Theme |
https://dev.to/gw78ah/top-10-vscode-theme-40ae
|
Top Vscode ThemeLooking for a new Visual Studio Code theme Developers can be finicky about what themes round out their perfect code editor and IDE setups Picking the right theme after getting the nuts and bolts functionality down pat can top off a customized coding environment Luckily for Visual Studio Code users there are some options to choose from in the VS Code Marketplace That s a lot though so we are kindly helping you make your decision by presenting the top theme extensions as measured by the number of installations Here s a summary of the current extensions that have been installed more than million times of which there are six Read More Top Vscode Themes |
2021-10-09 11:11:48 |
海外TECH |
DEV Community |
20 Best CSS3 Library For Developers. |
https://dev.to/gw78ah/20-best-css3-library-for-developers-lf
|
Best CSS Library For Developers Beautiful CSS was once a time consuming task for web developers The CSS libraries have made it easier quicker and more efficient to create responsive websites and web apps Are you still searching for the best CSS libraries available Are you curious to find out which library is best This article contains top CSS libraries that will inspire you Read More Best CSS Library For Developers |
2021-10-09 11:02:48 |
海外TECH |
DEV Community |
Build a good looking <input> with Tailwind CSS |
https://dev.to/sidcraftscode/build-a-good-looking-input-with-tailwind-css-384
|
Build a good looking lt input gt with Tailwind CSSTailwind CSS is a utility based framework Which is great in many ways However Tailwind CSS does not have a default set of components for you to get started with This is a series that will show you how to build various common UI components with Tailwind CSSToday we re going to be learning how to make a good looking text input with Tailwind CSSFirst we can start by creating an lt input gt element lt input type text placeholder Enter some text gt lt input gt We should definitely add some margins to the element lt input type text class m placeholder Enter some text gt lt input gt As you can see our input looks pretty blank This is because Tailwind CSS removes default browser styles We can give our input a default look by installing the tailwindcss forms plugin Use npm or yarn to install the plugin in your project Using npmnpm install tailwindcss forms Using Yarnyarn add tailwindcss formsThen add the plugin to your tailwind config js file tailwind config jsmodule exports theme plugins require tailwindcss forms We should give our input a border radius lt input type text class rounded lg m placeholder Enter some text gt lt input gt The border is pretty dark so we should give it a lighter shade of gray lt input type text class border gray rounded lg m placeholder Enter some text gt lt inpuIt would also be nice to add some shadow to our lt input gt lt input type text class shadow sm border gray rounded lg m placeholder Enter some text gt lt input gt Now we can add the focus styles We change the ring width to when it is focused and change the border and ring colors lt input type text class shadow sm border gray rounded lg m focus ring focus ring indigo focus border indigo placeholder Enter some text gt lt input gt Here s what our input should look like now Thanks for reading and I ll be releasing some more posts soon |
2021-10-09 11:02:33 |
海外TECH |
DEV Community |
Announcing a new series: Building good looking UI components with Tailwind CSS |
https://dev.to/sidcraftscode/announcing-a-new-series-building-good-looking-ui-components-with-tailwind-css-4ko3
|
Announcing a new series Building good looking UI components with Tailwind CSSTailwind CSS is a utility based framework Which is great in many ways However Tailwind CSS does not have a default set of components for you to get started with I have decided to build a series that will show you how to build good looking UI components with Tailwind CSS |
2021-10-09 11:02:19 |
海外TECH |
DEV Community |
First Experience with Hacktoberfest (2021) |
https://dev.to/anuragyadav365/first-experience-with-hacktoberfest-2021-4k
|
First Experience with Hacktoberfest Introduction and Background My name is Anurag Yadav I am currently pursuing my Bachelor of Engineering in CSE department from Chandigarh University Chandigarh India I am not an expert in any language but a person who is eager to learn new things instead of just sitting and getting bored Back in when I was in my first year of graduation I came to know about Hacktoberfest what it is what s the benefit of taking part in Hacktoberfest and moreover heard the concept of open source Why I didn t participated in Hactoberfest To be honest back then I didn t knew what opensource is and how it is making a great impact in every technical field So I had no confidence as well as no knowledge about Github and open source I just make up my mind to wait for the next big Hactoberfest and till then learn the concepts of Github Open Source and How to be a part of any open source community Finally️ Hacktoberfest Is Here Let s go pack my bagpacks for this amazing vacationSo after a long awaiting period Hacktoberfest is finally here In I had learned how to use Github and collaborate with some of good developers on some open source projects So now I am confident of myself that I can contribute to Hactoberfest this time How I Contributed The task was basically simple thatFor being a part of Hacktoberfest one needs to sign up on official Hacktoberfest WebsiteSecondly contribute to any Hactoberfest Marked repository finalizing at least PR s I managed to find more than projects I could contribute to to be honest most of them were aimed at beginner s level My ContributionsAwesome Login Pages Created a Markdown based Readme Contributors sectionRhythm Finder Python Customized the web application via adding a suitable background for applicationOpen Source Contribution Created some good Java and C programming based coding solutions Amazing Sites Added some awesome websites for beginners to learn development What s there for you Dear Reader I have spent quite a long time every day looking for some good repositories to contribute to so here I am listing some of them For information if you are beginners and are not much aware about contributing to some open source software development then no worries the below listed repositories doesn t need any expertism to contribute Hactoberfest Swag ListDS AlgoOpen Source ContributeAwesome SitesOpen DrinksCoursifyLogin PagesThese repositories are just for new comers who want to contribute towards Hacktoberfest but are not able to find out any good repository Final Thoughts Want to see how much I contributed Check out here Anurag Yadav s Github RepositoryThanks to DigitalOcean Appwrite Github Intel DeepSource for organizing the HacktoberFest event I am having a great experience and learning alot about working with Github and open source Waiting for the results of this Hactoberfest In future Next year I will contribute more meaningful code |
2021-10-09 11:01:51 |
海外科学 |
NYT > Science |
Kyrsten Sinema Wants to Cut $100 Billion in Proposed Climate Funds, Sources Say |
https://www.nytimes.com/2021/10/08/climate/arizona-senator-sinema.html
|
Kyrsten Sinema Wants to Cut Billion in Proposed Climate Funds Sources SayThe Arizona senator who started in politics as an environmentalist is one of two centrist Democrats who could make or break a spending bill at the center of President Biden s legislative agenda |
2021-10-09 11:25:59 |
ニュース |
BBC News - Home |
Gas prices: Energy price cap call for small and medium firms |
https://www.bbc.co.uk/news/business-58852612?at_medium=RSS&at_campaign=KARANGA
|
crisis |
2021-10-09 11:48:30 |
ニュース |
BBC News - Home |
Chris Packham calls on Royal Family to rewild estates |
https://www.bbc.co.uk/news/uk-58855168?at_medium=RSS&at_campaign=KARANGA
|
animals |
2021-10-09 11:33:00 |
北海道 |
北海道新聞 |
110m障害の金井がラストラン 歯科医志望で現役引退 |
https://www.hokkaido-np.co.jp/article/598333/
|
今季限り |
2021-10-09 20:17:36 |
北海道 |
北海道新聞 |
イラン初代大統領が死去 バニサドル氏、革命で就任 |
https://www.hokkaido-np.co.jp/article/598338/
|
革命 |
2021-10-09 20:05:00 |
北海道 |
北海道新聞 |
10日夜から道内荒天 強風、大雨に注意 札幌管区気象台 |
https://www.hokkaido-np.co.jp/article/598337/
|
札幌管区気象台 |
2021-10-09 20:05:00 |
コメント
コメントを投稿