python |
Pythonタグが付けられた新着投稿 - Qiita |
[Python] 要素のスワップについてのメモ |
https://qiita.com/zhengxi__/items/ced17fbb41bfd6759cae
|
つまではスタックを用いた高速な処理を行うよう最適化されている。 |
2022-03-26 23:51:35 |
python |
Pythonタグが付けられた新着投稿 - Qiita |
【Python】取得したSQLite3のデータを辞書型に整える方法 |
https://qiita.com/div_naoki/items/8191896ea8577a0213aa
|
複数データを辞書型にするfor文で辞書型に変換し、リストに追加していきます。 |
2022-03-26 23:27:29 |
python |
Pythonタグが付けられた新着投稿 - Qiita |
備忘録 : ABC243に参加したよ |
https://qiita.com/zhengxi__/items/7b33e43fdb7456e05581
|
考えたこと「どちらにも含まれている数字」の集合からそれぞれの条件で分類する話だったので、とりあえず積集合でどちらにも含まれているものを取り出し、「積集合に含まれているかどうか→位置が一致しているかどうか」で判定すれば良さそう。 |
2022-03-26 23:09:44 |
AWS |
AWSタグが付けられた新着投稿 - Qiita |
AWS Cloud9でCodeCommitを利用する |
https://qiita.com/zumastee/items/a8283542103b68e0f9a7
|
AWSCloudでCodeCommitを利用する背景・目的AWSCloudを試してみたで作成したCloud環境に、CodeCommit環境を構築する。 |
2022-03-26 23:20:31 |
Docker |
dockerタグが付けられた新着投稿 - Qiita |
WSL2でDockerが動いてGUIも使える環境を作る(その1) |
https://qiita.com/fjij/items/12889aaa26e03e0288e1
|
管理者でTerminalを開いて、カーネルのupdateとwslの再起動を行います。 |
2022-03-26 23:37:05 |
Docker |
dockerタグが付けられた新着投稿 - Qiita |
CentOS8に「docker-compose」をインストールする方法 |
https://qiita.com/yasushi-jp/items/8281540d0a874cfafa2b
|
chmodxusrlocalbindockercompose実行結果rootcentoschmodxusrlocalbindockercomposerootcentosdockercomposevのコマンドで、インストールされたdockercomposeのバージョンを確認します。 |
2022-03-26 23:24:42 |
golang |
Goタグが付けられた新着投稿 - Qiita |
Goを始める時に役立つ資料 |
https://qiita.com/kxkx5150/items/e06d49a63b9aaebe41d9
|
Goを始める時に役立つ資料何か言語を学びたいので、学びながら良かった記事をまとめていきます。 |
2022-03-26 23:51:39 |
技術ブログ |
Developers.IO |
Amazon Cognito user poolのユーザーサインアップで”An error was encountered with the requested page.”となる際の対処 |
https://dev.classmethod.jp/articles/amazon-cognito-user-pool-user-sign-up-for-an-error-was-encountered-with-the-requested-page/
|
anerrorwasencountered |
2022-03-26 14:53:20 |
海外TECH |
MakeUseOf |
The 4 Best Software to Help You Restore Old Photos |
https://www.makeuseof.com/restore-old-photos-best-software/
|
photos |
2022-03-26 14:45:13 |
海外TECH |
MakeUseOf |
How to Perform Effortless Windows Backups With Veeam Agent |
https://www.makeuseof.com/windows-veeam-agent-backup/
|
current |
2022-03-26 14:15:14 |
海外TECH |
MakeUseOf |
AWS vs. Azure vs. Google Cloud: Which Is the Best Cloud Platform for You? |
https://www.makeuseof.com/aws-vs-azure-vs-google-cloud/
|
AWS vs Azure vs Google Cloud Which Is the Best Cloud Platform for You Amazon Web Services Microsoft Azure and Google Cloud are the top three cloud computing providers without question but which one comes out on top |
2022-03-26 14:15:14 |
海外TECH |
DEV Community |
Learn coding by playing games 🎮 |
https://dev.to/dhanushnehru/learn-coding-by-playing-games-484l
|
Learn coding by playing games When beginners usually start to code sometimes may get stuck or confused with some concepts But there are many sites which help to learn some fundamentals of programming by playing games which can be fun amp also makes coding a lot interesting This blog lists the various sites where we can learn coding by playing online games CheckIO and Empire of CodeStrategy games that can teach you JavaScript or Python Code Wars Helps you improve your skills by training in challenges with others They offer a huge variety of languages including JavaScript Swift PHP Python etcUntrustedImprovises your javascript skills by solving problemsElevator SagaTests your JavaScript knowledge with challenges related to moving an elevator and transporting people in the most efficient manner possibleVim AdventuresVim is a highly configurable text editor used by programmers If you want to learn how to use Vim then check thisCode HuntYou can learn Java etc In a funny game wayRobocodeYou ll learn programming skills by building virtual robot battle tanks in Java or NETSQL Murder MysteryThis exercise is meant more as a way to practice SQLFlexboxfroggy levels to learn how CSS Flexbox worksCyber DojoCyber Dojo has practice exercises and challenges for dozens of coding languages including Ruby JavaScript PHP Python and moreCodinGameCoding game offers up fun free games to help learn more than programming languagesCSS DinnerIt has levels that will teach you the basics of how CSS selectors work CodecombatAnyone can learn Python JavaScript CoffeeScript etcRuby warriorLearn ruby with this awesome gameCodeMonkeyIt teaches coding using CoffeeScript a real programming language to teach you to build your own games in HTML Flexbox defenceAnother great one to practice Flexbox skillsThanks for reading If you like this content amp if you feel it may help someone share it ️If you know any games that would help in learning to code drop below Twitter Post |
2022-03-26 14:16:54 |
海外TECH |
DEV Community |
Fall in Love with Your Environment Setup in |
https://dev.to/sandeepk27/fall-in-love-with-your-environment-setup-275b
|
Fall in Love with Your Environment Setup inA Python developer s guide to the optimal setup for collaboration production readiness and time savingWhat exactly do I mean by “environment setup I mean having all the tools you need to efficiently perform the following tasks Version control your codeRun scripts from command lineEdit and debug your codeManage the Python version you use to run your codeManage the Python package versions you use to run your codeWhy is environment setup important Having a good setup is crucial for a number of reasons Team CollaborationWhen multiple people are working on the same code base it is hard to collaborate if environment setup is not uniform among all team members Code that works on one team member s machine may break when another team member tries running it on their machine if they are using different versions of python or python packages Production ReadinessThe problem extends beyond team collaboration to production If the production environment is different from the machine you ve been developing on code may break once deployed In programming it is crucial to control as many external variables as possible so that production behavior is as predictable as possible Time SavingWhen you are first getting started on a new project or testing someone else s code you can waste a lot of time preparing your machine to run their code if environment setup is not straightforward And time wasted is not limited to the beginning of a project ーif setup is not standardized developers will continue to lose time troubleshooting version incompatibility errors that could have easily been avoided I hear you but what do I need to do Environment setup can be confusing and complicated I have struggled through the process many times myself The variety of options available for accomplishing the key tasks of environment setup see the What exactly do I mean by “environment setup Section above can be overwhelming To save you time effort and frustration I have listed the tools I have found most helpful as well as their key features below I have tested these tools across operating systems to ensure optimal setup no matter your OS Read on for all things needed to create a great environment setup on your machine and reference the python dev setup repo for install instructions tips Version Control Your CodeRecommend GitGit is the powerful software behind GitHub and Bitbucket It is helpful for more than just basic version control it is also key to Team collaboration ーYou can make test changes to the code on your local machine before pushing them to the team shared remote code base Additionally you can create branches off the master branch so that your development work doesn t impact the rest of the team or the code in production Lastly you can easily merge other team member s branches into your own branch or the master branch when development is complete Release Management ーThe branching system is also key for release management Depending on project requirements different enhancements may have different timelines for when they should be deployed to production By isolating new features in separate branches you can easily deploy each feature independently To get started using Git Install Git ーMac Linux WindowsConfigure SSH Auth so that you don t need to enter your username password every time you pull push to your GitHub Bitbucket repo ーMac Linux WindowsReference this list of useful git commandsDownload the archive branch sh script and add it to the root of your project to automate the tedious process of archiving an inactive git branch That s all for the day will continue in the next post comment below if you have questions to ask To know about me |
2022-03-26 14:11:50 |
海外TECH |
DEV Community |
🐧Terminal commands that I use every time. |
https://dev.to/theabhayprajapati/terminal-commands-that-i-use-every-time-53ho
|
Terminal commands that I use every time Your macOS Windows Linux the most basic commands are gonna be the same when every I start with new projects I have to move in to right ️folder and then I use it cdas simple C hange D irectory when every you have to move in another folder the cd come very handy it can take you under and folder or outside a foldercd inside dirif you want to go backcd simple hack if you know the name of the previous directory uses them with cd cd back moreback anothemoreback now I am at anothermorebacksame work with cd inside directorycd inside moreinside inside anotherinside insidels list files or directoriesallthe directories in that current directory with be printed out from files folder but without hidden foldersls a want to see hidden folders amp files use this Now you know about changing directories and seeing the list of folders and files in a directory but how will you see which directory are you in check print working directorypwdvery handy if you got stuck code code foldernameatom atom foldernameIf you use the text editors as I do then this terminal command will make your life ease writing the name of text editor mostly you can access them without any GUI is used to do any stuff in the current directoryand foldername is used to do inside the given filenamenode filenameI love writing javascript it s simple and easy for writing pseudocode if you have node installed you can use node filename to run inside the terminal without using the browser very handy for js guyswhich lsif you want where your specific command is stored in computer SSD type which command and name of the commandwhich can be any command ls cd nano PWD any commandand you will get the destination of the file thank you for joining me if you know come better command let me knowConnect onTwitter Abhayprajapati GitHub TheabhayPrajapati |
2022-03-26 14:08:46 |
海外TECH |
DEV Community |
ETL Testing |
https://dev.to/hamdanbrolly1/etl-testing-7c2
|
ETL TestingOnline Training Classroom Virtual ClassesETL Testing Training with placement assistance testers placed in companies in last yearsReal time expert trainersIndutry oriented training with corporate casestudiesFree Aptitude classes amp Mock interviews |
2022-03-26 14:06:00 |
海外TECH |
DEV Community |
Issue with multiple buttons in Formik form |
https://dev.to/atosh502/issue-with-multiple-buttons-in-formik-form-59om
|
Issue with multiple buttons in Formik formHere s an example codesandbox with a Formik hidenavigation amp theme darkThe form has two buttons a Submit button that submits the form and navigates to the next page and a Copy button that copies the link typed by the user The problem When the Copy button is pressed the form is submitted and the page redirects to the next page We only want the form to be submitted when the Submit button is pressed The solution By default any button without a type attribute defaults to type submit This causes the form to be submitted when the Copy button is pressed To resolve this we need to explicitly pass the type attribute as button ie type button for the Copy button |
2022-03-26 14:05:32 |
海外TECH |
DEV Community |
lodash - package Laravel |
https://dev.to/morcosgad/lodash-package-laravel-4kin
|
lodash package LaravelI found a great package in the framework of laravel and it is by default in the framework and indeed we use a lot of its functions without our knowledge of this package called lodash so today I wanted to share its docs with you to benefit from it as much as possible I hope you enjoyed with me and I adore you who search for everything new |
2022-03-26 14:05:17 |
海外TECH |
DEV Community |
Your inbox is not a digital safe |
https://dev.to/jmau111/your-inbox-is-not-a-digital-safe-5921
|
Your inbox is not a digital safeThe false impression of safety can have devastating consequences Whether you are an activist or not dedicated mail services and privacy measures are good practices not shields to make war The Protonmail scandalLast year I ve read about Protonmail a secure email company based in Switzerland that gave the IP address of a French activist to Swiss authorities after a request from Europol While Protonmail does not log its users IP addresses authorities can ask them to cooperate at any time Any company must comply with the law Even if the ProtonMail user notification policy requires a user to be notified if a third party makes a request for their private data and such data is to be used in a criminal proceeding they delayed the notification by several months in this case Source TechcrunchIn other words the end ultimately justifies all means and companies may change their conditions at any time You don t create a Protonmail account to communicate stealthily and outrun authorities The company provides an interesting end to end encryption not undercover mailboxes for criminal activities They have great products The problem is not Protonmail but mass surveillance and the sacrifice of individual freedom in western democracies I m not even talking about Snowden revelations and the supposed secret backdoors but just current laws There are very dangerous people out there and authorities won t stop hunting them Who decides who s dangerous or not Which activities are criminal What can make you a person of interest are more relevant questions to me While there are certainly objective criteria such as whether or not you put other people s life in danger or if you are stealing money or confidential information it s ultimately their decision What are NSL National Security Letters NSL are requests by US three letter agencies such as the FBI that do not require prior approval from a judge These requests forbid the recipient of an NSL from disclosing the FBI had requested the information FISA can also force companies to remain silent even if their privacy policy explicitly forbids it That s why some users check that point before choosing a mail provider but as we saw if that s necessary a federal or an international organization can send a request to the local authorities to bypass any restrictions Again the end justifies the means like this UE Draft Law on the collection and storage of identification that suggested operators of end to end encrypted systems undermine encryption to provide access to user communications Fortunately many organizations and cybersecurity experts protested and managed to halt legislation but some politicians seriously put it forward as a measure against terrorism and cyber threats while it would only aggravate the threat Email companies also have their threat modelEmail companies are constantly under attack by various threat actors Their threat model may look like that ThreatRemediationsniffingSSL TLSphishing virusesdigital signatures CIA triadcompromised accounts leaked passwordsFA MFA secret phrasesmass surveillance advanced attackersencryption bits EEEcompromised devices zombie computerssocial engineeringlost secret phrases or FA MFA devices or FA Man In The Middle or not muchDDoS malicious payloadsI use when the provider cannot guarantee a protection but only mitigate the damage If you care about privacy it s best if you can think about your own threat model too FA is classic login password Privacy measures can look suspiciousYou may raise the curiosity by taking pretty basic measures to protect your privacy For many people and organizations having a Protonmail account is sufficient to look suspicious The same people might approve the nothing to hide argument Depending on your goals such privacy measure might not be the best move |
2022-03-26 14:03:24 |
海外TECH |
DEV Community |
How to Parse a CSV File in 4 Lines of PHP? |
https://dev.to/nidup/how-to-parse-a-csv-file-in-4-lines-of-php-enk
|
How to Parse a CSV File in Lines of PHP CSV is a standard format to integrate data in applications when doing so we often have to import data based on this format PHP comes with native functions to open a file and parse CSV rows Let s take the file classic composers csv and its content as an example First name Last name Born Died Carl Philipp Emanuel Bach March December Johann Stamitz June March Joseph Haydn March May Johann Christian Bach September January We can also look at it as a table First nameLast nameBornDiedCarl Philipp EmanuelBach March December JohannStamitz June March JosephHaydn March May JohannChristian BachSeptember January We can parse and display each line using simple lines of PHP code open the file in read mode file fopen data classic composers csv r browse each csv linewhile row fgetcsv file false print the line content var dump row close the filefclose handle Here is the output of the execution array gt string First name gt string Last name gt string Born gt string Died array gt string Carl Philipp Emanuel gt string Bach gt string March gt string December and more linesThat s it for this simple example using native functions If you want to go further with CSV manipulation in PHP you can explore this comprehensive guide on reading and writing CSV files in PHP It explores modern libraries to parse CSV explain how to read a one million line CSV file using a minimum of memory and share advanced tips and tricks |
2022-03-26 14:02:43 |
ニュース |
BBC News - Home |
P&O Ferries ship detained over crew training concerns |
https://www.bbc.co.uk/news/business-60881550?at_medium=RSS&at_campaign=KARANGA
|
staff |
2022-03-26 14:47:05 |
ニュース |
BBC News - Home |
In pictures: Taylor Hawkins, a drummer who 'served the song' |
https://www.bbc.co.uk/news/in-pictures-60885675?at_medium=RSS&at_campaign=KARANGA
|
hawkins |
2022-03-26 14:04:45 |
ニュース |
BBC News - Home |
England inflict heavy defeat on Scotland in Six Nations opener |
https://www.bbc.co.uk/sport/rugby-union/60886521?at_medium=RSS&at_campaign=KARANGA
|
scotland |
2022-03-26 14:49:50 |
北海道 |
北海道新聞 |
トリガー解除 地方に暗雲 発動なら税収減 道は270億円 知事「国の補填必要」 |
https://www.hokkaido-np.co.jp/article/661609/
|
解除 |
2022-03-26 23:29:59 |
北海道 |
北海道新聞 |
イモトアヤコさんが感染 新型コロナウイルス |
https://www.hokkaido-np.co.jp/article/661660/
|
新型コロナウイルス |
2022-03-26 23:27:00 |
北海道 |
北海道新聞 |
世界フィギュア男子で宇野初V |
https://www.hokkaido-np.co.jp/article/661654/
|
世界選手権 |
2022-03-26 23:15:00 |
北海道 |
北海道新聞 |
女性や子どもを無差別攻撃 駐日米大使がロシア批判 |
https://www.hokkaido-np.co.jp/article/661650/
|
岸田文雄 |
2022-03-26 23:04:00 |
コメント
コメントを投稿