python |
Pythonタグが付けられた新着投稿 - Qiita |
【Python】MACDをバックテストしてみた |
https://qiita.com/Fujinoinvestor/items/780b138e441531860e60
|
|
2021-04-11 17:56:18 |
Program |
[全てのタグ]の新着質問一覧|teratail(テラテイル) |
ビルドエラーを解決したい。 |
https://teratail.com/questions/332686?rss=all
|
ビルドエラーを解決したい。 |
2021-04-11 18:00:14 |
Program |
[全てのタグ]の新着質問一覧|teratail(テラテイル) |
EXCEL 整数ではない大量データをまとめてグラフ化 |
https://teratail.com/questions/332685?rss=all
|
EXCEL整数ではない大量データをまとめてグラフ化件ほどあるデータをグラフ化したいが、整数でないスコアデータを大まかにまとめたい。 |
2021-04-11 17:59:47 |
Program |
[全てのタグ]の新着質問一覧|teratail(テラテイル) |
Routing Errorを解決したい |
https://teratail.com/questions/332684?rss=all
|
RoutingErrorを解決したいNonbsproutenbspmatchesnbspGETnbspquotprototypescommentsquotとエラーが出てしまい困っております。 |
2021-04-11 17:59:37 |
Program |
[全てのタグ]の新着質問一覧|teratail(テラテイル) |
ファイル読み込み 改行"\n"を識別できない |
https://teratail.com/questions/332683?rss=all
|
ファイル読み込み改行quotnquotを識別できない実現したいこと現在、テキストファイルを読み込み、Tilemapでタイルを動的に配置するということをしております。 |
2021-04-11 17:59:21 |
Program |
[全てのタグ]の新着質問一覧|teratail(テラテイル) |
csvファイルからloadする場合のcsvのLocalizationのやり方 |
https://teratail.com/questions/332682?rss=all
|
↓しかし、csvファイルを作成しvarnbspcsvArraynbspStringnbspnbspでcsvファイルの内容を読み込むようなコードの場合、このcsvファイルの中身はどのように多言語対応できるようにすれば良いのでしょうか。 |
2021-04-11 17:58:40 |
Program |
[全てのタグ]の新着質問一覧|teratail(テラテイル) |
Firefox 開発者ツールでボックスモデルの表示の仕方を教えて下さい。 |
https://teratail.com/questions/332681?rss=all
|
boxnbspmodel |
2021-04-11 17:56:07 |
Program |
[全てのタグ]の新着質問一覧|teratail(テラテイル) |
phpで作成したアプリをHerokuにデプロイできない |
https://teratail.com/questions/332680?rss=all
|
phpで作成したアプリをHerokuにデプロイできない前提・実現したいことPHPで非同期通信のTodonbspListアプリを作成しました。 |
2021-04-11 17:44:36 |
Program |
[全てのタグ]の新着質問一覧|teratail(テラテイル) |
背景動画をスマホ表示の時に全体的に映るようにしたい |
https://teratail.com/questions/332679?rss=all
|
背景動画をスマホ表示の時に全体的に映るようにしたいファーストビューの背景動画をスマホで見た時もう少し全体が映るようにしたいです。 |
2021-04-11 17:20:28 |
Program |
[全てのタグ]の新着質問一覧|teratail(テラテイル) |
cakephp2.xでのログイン認証 |
https://teratail.com/questions/332678?rss=all
|
|
2021-04-11 17:15:38 |
Program |
[全てのタグ]の新着質問一覧|teratail(テラテイル) |
android studio layoutのxmlに関して |
https://teratail.com/questions/332677?rss=all
|
androidstudiolayoutのxmlに関して前提・実現したいことkotlinスタートブックを元にサンプルプログラムにお気に入り機能を追加実装中です。 |
2021-04-11 17:15:01 |
Program |
[全てのタグ]の新着質問一覧|teratail(テラテイル) |
ローディング画面終了後、ScrollRevealが効かない(画面幅のリサイズを行うと効く) |
https://teratail.com/questions/332676?rss=all
|
ローディング画面終了後、ScrollRevealが効かない画面幅のリサイズを行うと効く前提・実現したいことローディング画面終了後、画面幅をリサイズしないでも、ScrollRevealが効くようにしたい。 |
2021-04-11 17:11:16 |
Program |
[全てのタグ]の新着質問一覧|teratail(テラテイル) |
投稿内容を一覧表示画面に表示させたいです |
https://teratail.com/questions/332675?rss=all
|
投稿内容を一覧表示画面に表示させたいです前提・実現したいこと初学者です。 |
2021-04-11 17:06:53 |
Program |
[全てのタグ]の新着質問一覧|teratail(テラテイル) |
クラスルームの授業で質問をスクリプトで投稿したいと考えています。 |
https://teratail.com/questions/332674?rss=all
|
クラスルームの授業で質問をスクリプトで投稿したいと考えています。 |
2021-04-11 17:00:33 |
Ruby |
Rubyタグが付けられた新着投稿 - Qiita |
Rubyの環境構築の備忘録(アプリケーション導入編) |
https://qiita.com/masashikuwahara/items/d877f0c270d56410b88f
|
Rubyの環境構築の備忘録アプリケーション導入編VSCodeVisualStudioCodeのインストールVSCodeダウンロードページからエディタをダウンロード↓エディタをアプリケーションフォルダに移動↓Dockに配置↓エディタを起動↓システム環境設定を開き、セキュリティとプライバシーをクリック↓一般タブを開き、画面下部の「ダウンロードしたアプリケーションの実行許可」にあるこのまま開くをクリックテキストエディタの拡張機能導入日本語設定起動したウィンドウ画面左側の、アイコンメニュー内にある四角のアイコンをクリック↓左上の「SearchExtensionsinMarketplace」に「JapaneseLanguagePackforVisualStudioCode」と入力JapaneseLanguagePackforVisualStudioCodeを選択し、installまたはインストールをクリックする右下のRestartNowをクリックして再起動すると、日本語設定になっているHTMLとCSSの自動補完機能の追加起動したウィンドウ画面左側の、アイコンメニュー内にある四角のアイコンをクリック↓左上の「Marketplaceで拡張機能を検索する」に「HTMLSnippets」と入力↓HTMLSnippetsを選択し、installまたはインストールをクリックする↓インストールが完了して、アンインストールの表示がされれば完了Rubyの構文チェック機能を追加起動したウィンドウ画面左側の、アイコンメニュー内にある四角のアイコンをクリック↓左上の検索欄に「Ruby」と入力↓Rubyを選択し、installまたはインストールをクリックする↓インストールが完了して、アンインストールの表示がされれば完了全角スペースのチェック機能の追加起動したウィンドウ画面左側の、アイコンメニュー内にある四角のアイコンをクリック↓左上の検索欄に「zenkaku」と入力↓zenkakuを選択し、installまたはインストールをクリックする↓インストールが完了して、アンインストールの表示がされればインストール完了↓commandshiftpのつのキーを同時入力し、コマンドパレットという設定ファイルの検索画面を開く「gtEnablezenkaku」と入力して選択する↓commandQのつのキーを同時入力し、VSCodeを終了する。 |
2021-04-11 17:18:59 |
AWS |
AWSタグが付けられた新着投稿 - Qiita |
fargateコンテナに入りたい時はECSexecを使おう |
https://qiita.com/shotaoni/items/ddb49b52d3ed89e0a635
|
これで、お目当てのコンテナに入ることができますawsecsexecutecommandclusterあなたのクラスターtaskあなたのtaskidcontainerコンテナの名前interactivecommandbinshコンテナにインストールされているシェルしか使えないので注意しましょう。 |
2021-04-11 17:07:27 |
Docker |
dockerタグが付けられた新着投稿 - Qiita |
fargateコンテナに入りたい時はECSexecを使おう |
https://qiita.com/shotaoni/items/ddb49b52d3ed89e0a635
|
これで、お目当てのコンテナに入ることができますawsecsexecutecommandclusterあなたのクラスターtaskあなたのtaskidcontainerコンテナの名前interactivecommandbinshコンテナにインストールされているシェルしか使えないので注意しましょう。 |
2021-04-11 17:07:27 |
Ruby |
Railsタグが付けられた新着投稿 - Qiita |
Rubyの環境構築の備忘録(アプリケーション導入編) |
https://qiita.com/masashikuwahara/items/d877f0c270d56410b88f
|
Rubyの環境構築の備忘録アプリケーション導入編VSCodeVisualStudioCodeのインストールVSCodeダウンロードページからエディタをダウンロード↓エディタをアプリケーションフォルダに移動↓Dockに配置↓エディタを起動↓システム環境設定を開き、セキュリティとプライバシーをクリック↓一般タブを開き、画面下部の「ダウンロードしたアプリケーションの実行許可」にあるこのまま開くをクリックテキストエディタの拡張機能導入日本語設定起動したウィンドウ画面左側の、アイコンメニュー内にある四角のアイコンをクリック↓左上の「SearchExtensionsinMarketplace」に「JapaneseLanguagePackforVisualStudioCode」と入力JapaneseLanguagePackforVisualStudioCodeを選択し、installまたはインストールをクリックする右下のRestartNowをクリックして再起動すると、日本語設定になっているHTMLとCSSの自動補完機能の追加起動したウィンドウ画面左側の、アイコンメニュー内にある四角のアイコンをクリック↓左上の「Marketplaceで拡張機能を検索する」に「HTMLSnippets」と入力↓HTMLSnippetsを選択し、installまたはインストールをクリックする↓インストールが完了して、アンインストールの表示がされれば完了Rubyの構文チェック機能を追加起動したウィンドウ画面左側の、アイコンメニュー内にある四角のアイコンをクリック↓左上の検索欄に「Ruby」と入力↓Rubyを選択し、installまたはインストールをクリックする↓インストールが完了して、アンインストールの表示がされれば完了全角スペースのチェック機能の追加起動したウィンドウ画面左側の、アイコンメニュー内にある四角のアイコンをクリック↓左上の検索欄に「zenkaku」と入力↓zenkakuを選択し、installまたはインストールをクリックする↓インストールが完了して、アンインストールの表示がされればインストール完了↓commandshiftpのつのキーを同時入力し、コマンドパレットという設定ファイルの検索画面を開く「gtEnablezenkaku」と入力して選択する↓commandQのつのキーを同時入力し、VSCodeを終了する。 |
2021-04-11 17:18:59 |
技術ブログ |
Developers.IO |
테라폼으로 AWS 서비스 구축하기 2장. EC2 RDS S3 구축하기 – 2 |
https://dev.classmethod.jp/articles/build-multiple-services-with-terraform-04/
|
테라폼으로AWS 서비스구축하기장 EC RDS S 구축하기 시작하며이전글에선VPC 부분의설정을했습니다 이번엔나머지부분을작성합니다 작업환경 Ubuntu WSL Visual Studio Code Terraform 구성도VP |
2021-04-11 08:14:43 |
海外TECH |
DEV Community |
Awesome 404 Page Templates for your Websites |
https://dev.to/code2rithik/awesome-404-page-templates-for-your-websites-33jc
|
Awesome Page Templates for your WebsitesThere are different HTTP response status codes Especially the one Now we wouldn t want our pages to look dull right So here are some cool page templates for your website Neon PageCompatible browsers Chrome Edge Firefox Opera SafariResponsive YesDependencies None Flashlight PageCompatible browsers Chrome Edge Firefox Opera SafariResponsive YesDependencies jQuery js Space PageCompatible browsers Chrome Edge Firefox Opera SafariResponsive YesDependencies jQuery js Console Style PageCompatible browsers Chrome Edge Firefox Opera SafariDependencies None Sassy UI StudyCompatible browsers Chrome Edge Firefox Opera SafariResponsive YesDependencies None Makes Bear SadCompatible browsers Chrome Edge Firefox Opera SafariResponsive YesDependencies React JS React dom JS Space Page Compatible browsers Chrome Edge Firefox Opera SafariResponsive YesDependencies bootstrap css gsap js Scary InvestigationCompatible browsers Chrome Edge Firefox Opera SafariResponsive YesDependencies anime js Monument Valley Inspiration PageCompatible browsers Chrome Edge Firefox Opera SafariDependencies None Maze PageCompatible browsers Chrome Edge Firefox Opera SafariDependencies jQuery js x Thank You for Reading this Blog If you liked it do share it with your friends and remember Keep Coding Y All |
2021-04-11 08:48:42 |
海外TECH |
DEV Community |
Conditional logic with CSS – The CSS custom property trick. |
https://dev.to/siddharthshyniben/conditional-logic-with-css-the-css-custom-property-trick-44hb
|
Conditional logic with CSS The CSS custom property trick The whole world of conditional logic and bulk toggling in CSS only exists because of one tiny footnote in the CSS spec That line is Note While must represent at least one token that one token may be whitespace That means foo is valid Now this doesn t read as some massive revelation that unlocks huge doors but it is Now we have the capability to make conditional statements all in CSS Here s a demo Open the pen in a new tab and resize to see the full effect Let me explain There is a breakpoint setup here at px This is where the variable color changes from initial to an empty spaceWhen the browser window is wider than px the value of color is initialThat makes the variable color when small contain two values initial and red which is invalidSo when we actually set the color and call that variable like background color var color when small var color when big the second value the fallback is used because the first is invalid When the browser window is narrower than px the value of color is a space That makes the variable color when small contain the value space red which is validSo when we actually set the color and call that variable like background color var color when small var color when big the first value is usedSo now we can flip the color between two values by changing a placeholder variable I hope that clicks for you When we see this as simply changing a single value it s almost like ok you ve found a really complex way to change some padding but you could have just changed the padding in the media query But the trick is that now we have this placeholder variable that has changed and we can key into that to change unlimited other values We could have a single media query or set of media queries in our CSS that only toggles these placeholder variables and we use elsewhere to toggle values That could be nice and clean compared to sprinkling media queries all over the CSS It s a proper toggle in CSS like a form of IF THEN logic that we haven t quite had before For example imagine we had a border for our earlier coloured div Instead of changing the border directly in the media query we can use the custom property again to change the border Here is an example Open the pen in a new tab and resize to see the full effect If we were creating a complex card this could come in handy This is not just for media queries CSS trickery master Lea Verou has set her sights on this too What if I told you you could use a single property value to turn multiple different values on and off across multiple different properties and even across multiple CSS rules It s the same trick This opens up a lot of possibilities in CSS We could do AND OR XOR NOR etc with this trick But I m leaving that for you to find Thanks for reading |
2021-04-11 08:31:25 |
海外TECH |
DEV Community |
Are you procrastinating? |
https://dev.to/aahnik/are-you-procrastinating-236e
|
Are you procrastinating Are you procrastinating This playlist gives you the ultimate tools to take control of your life Watch the videos Rewatch Implement Think Reflect Watch again Iterate Be patient and you will be able to kill the monster Link to the playlist on YouTube |
2021-04-11 08:31:17 |
海外TECH |
DEV Community |
Solution: Deepest Leaves Sum |
https://dev.to/seanpgallivan/solution-deepest-leaves-sum-1936
|
Solution Deepest Leaves SumThis is part of a series of Leetcode solution explanations index If you liked this solution or found it useful please like this post and or upvote my solution post on Leetcode s forums Leetcode Problem Medium Deepest Leaves Sum Description Jump to Solution Idea Code JavaScript Python Java C Given the root of a binary tree return the sum of values of its deepest leaves Examples Example Input root null null null null null Output Visual Example Input root null null null null Output Constraints The number of nodes in the tree is in the range lt Node val lt Idea Jump to Problem Description Code JavaScript Python Java C When asked to find information about a particular row of a binary tree the normal thought is to use a breadth first search BFS approach A BFS approach usually involves the use of a queue data structure q so that we deal with the nodes of the tree in the proper order The trick is to deal with a single row at a time by making note of the length of the queue qlen when we start the row Once we ve processed that many nodes we know we ve just finished the current row and any remaining entries in q are from the next row This can be accomplished easily with a nested loop In this case processing a node simply means accumulating the running total ans for the row and then moving any children of the node onto the end of the queue When we start a new row we can reset ans back to and then just keep processing rows until q is empty The last value of ans should be our final answer so we should return ans Alternately we can use a depth first search DFS approach with recursion to traverse the binary tree If we pass the row depth lvl as an argument to our recursive function dfs we can use it to update the values in an array of row sums sums by using lvl as an index sums lvl Then we can simply return the last value of sums as our answer Implementation There are only minor differences between the four languages Javascript Code Jump to Problem Description Solution Idea w BFS var deepestLeavesSum function root let q root ans qlen curr while q length qlen q length ans for let i i lt qlen i curr q shift ans curr val if curr left q push curr left if curr right q push curr right return ans w Recursive DFS var deepestLeavesSum function root let sums const dfs node lvl gt if lvl sums length sums lvl node val else sums lvl node val if node left dfs node left lvl if node right dfs node right lvl dfs root return sums sums length Python Code Jump to Problem Description Solution Idea w BFS class Solution def deepestLeavesSum self root TreeNode gt int q ans qlen curr root while len q qlen ans len q for in range qlen curr q pop ans curr val if curr left q append curr left if curr right q append curr right return ans w Recursive DFS class Solution def deepestLeavesSum self root TreeNode gt int sums def dfs node TreeNode lvl int if lvl len sums sums append node val else sums lvl node val if node left dfs node left lvl if node right dfs node right lvl dfs root return sums Java Code Jump to Problem Description Solution Idea w BFS class Solution public int deepestLeavesSum TreeNode root Queue lt TreeNode gt q new LinkedList lt gt q add root int ans qlen while q size gt qlen q size ans for int i i lt qlen i TreeNode curr q poll ans curr val if curr left null q add curr left if curr right null q add curr right return ans w Recursive DFS class Solution List lt Integer gt sums new ArrayList lt gt public int deepestLeavesSum TreeNode root dfs root return sums get sums size public void dfs TreeNode node int lvl if lvl sums size sums add node val else sums set lvl sums get lvl node val if node left null dfs node left lvl if node right null dfs node right lvl C Code Jump to Problem Description Solution Idea w BFS class Solution public int deepestLeavesSum TreeNode root queue lt TreeNode gt q q push root int ans qlen while q size gt qlen q size ans for int i i lt qlen i TreeNode curr q front q pop ans curr gt val if curr gt left q push curr gt left if curr gt right q push curr gt right return ans w Recursive DFS class Solution public vector lt int gt sums int deepestLeavesSum TreeNode root dfs root return sums back void dfs TreeNode node int lvl if lvl sums size sums push back node gt val else sums lvl node gt val if node gt left dfs node gt left lvl if node gt right dfs node gt right lvl |
2021-04-11 08:28:44 |
海外TECH |
DEV Community |
Web Application Penetration Test Checklist | Part - 02 |
https://dev.to/rahulmishra05/web-application-penetration-test-checklist-part-02-1igc
|
Web Application Penetration Test Checklist Part In this article I am going to share a checklist which you can use when you are doing a penetration test on a website you can also use this list as a reference in bug bounties This list is made for intermediates so they can look it for reference Before starting this list I want to make a request that this is my advice that you should complete the previous checklist so in this process you will not get confused You are not genius Remember this thing so if you don t understand something just Google about it and so some research I also don t know everything and there could be things that I have missed so don t worry and keep learning The listTest for credentials transported over encryption When you submit your login registration data try intercepting the request and changing the requests method POST to GET and GET to POST If any points of time you find the data submitted by user are transported without encryption you can make this as low level bug Test for default credentials on admin page console or any sign in panel Try submitting default username passwords like admin admin admin passwordBypassing the authentication Forced browsing Directly visiting the section of the website which requires authentication For example if you have to login at to visit but if you can visit directly just by typing this URL in the browser without authenticating then this will be known as forced browsing Parameter modification Try changing response which comes from the server for example if your server response then try changing the parameter auth false to auth true Session ID brute forcing SQL injection Check for broken access control Remember password checking Check that is password being stored in the cookies or being constantly transferred in every request of the website The credentials should only be sent I login phase Check for directory traversal includes file input You have to check each and every input which your website and its directories take from user You can referrer to this article Checking for privilege escalation You can check for this at some places like if user can make payment adding something sending message to someone You can intercept request of two different sets of account and try modifying parameters like grp id and role if they exist You can referrer to this article Check for IDOR Insecure Direct Object Reference You can try for getting access to other user data by changing parameters in URL Check for bypassing session management object Set cookies are secure or not Are cookies transmitted in encrypted manner Make sure cookies are not same every time when your browse website Sometimes website can leak their token structure information try to find it Session ID predictability Brute forcing session ID Check for CSRF Check for XSS stored reflected blind Check for SQL injection blind In band Out band Error based etc Check for XML injection Check for file upload Check for open redirection or client side open redirection You can referrer to this article Checking for web sockets vulnerabilities Check for code execution You can referrer to this article Check for SSRF Server Side Request Forgery Check fir command injection You can referrer to this article Checking for business logic flaws You can referrer to this article Checking for LDAP injection You can referrer to this article Check for HTTP request smuggling So this was all about some more things to check while doing penetration test on a website or in a bug bounty program Hope you liked it and learned something new from it If you have any doubt question quires related to this topic or just want to share something with me than please feel free to contact me My personal blogThe Hacked Site Contact MeTwitter LinkedIn Telegram Instagram Write a mailrahulmishra gmail com Other linksGitHub HackerRank Tryhackme |
2021-04-11 08:09:09 |
海外ニュース |
Japan Times latest articles |
Suga-Biden statement to express concern about human rights in China |
https://www.japantimes.co.jp/news/2021/04/11/national/politics-diplomacy/suga-biden-us-japan-summit/
|
joint |
2021-04-11 18:38:58 |
海外ニュース |
Japan Times latest articles |
Russian troop movements and talk of intervention cause jitters in Ukraine |
https://www.japantimes.co.jp/news/2021/04/11/world/ukraine-war-russia-troops/
|
governments |
2021-04-11 18:00:23 |
海外ニュース |
Japan Times latest articles |
Olympic organizers to secure hotel rooms for athletes with COVID-19 |
https://www.japantimes.co.jp/sports/2021/04/11/olympics/summer-olympics/olympics-athletes-coronavirus-hotel/
|
Olympic organizers to secure hotel rooms for athletes with COVID The organizing committee for the Tokyo Olympics and Paralympics is planning to secure a hotel with about rooms for athletes with minor or no |
2021-04-11 18:28:15 |
海外ニュース |
Japan Times latest articles |
Hideki Matsuyama seizes Masters lead with stunning bogey-free 65 |
https://www.japantimes.co.jp/sports/2021/04/11/olympics/summer-olympics/olympics-golf/hideki-matsuyama-takes-masters-lead/
|
Hideki Matsuyama seizes Masters lead with stunning bogey free Back to back birdie putts gave the world No a chance to become the first Japanese golfer to win a U S major heading into Sunday s final |
2021-04-11 17:55:45 |
海外ニュース |
Japan Times latest articles |
Here’s how to say ‘sorry’ to your kids |
https://www.japantimes.co.jp/life/2021/04/11/lifestyle/saying-sorry-to-your-kids/
|
advice |
2021-04-11 19:00:03 |
コメント
コメントを投稿