投稿時間:2021-09-04 00:17:43 RSSフィード2021-09-04 00:00 分まとめ(26件)

カテゴリー等 サイト名等 記事タイトル・トレンドワード等 リンクURL 頻出ワード・要約等/検索ボリューム 登録日
python Pythonタグが付けられた新着投稿 - Qiita 画像認識(自分で画像用意)での備忘録 https://qiita.com/Tak_py/items/7952af95910ae79b6458 正解ラベルの作成特徴量変数の数に応じて、npzerosnponesで作成機械学習でyとして代入するためには、とを結合したものにしなければならない。 2021-09-03 23:39:50
python Pythonタグが付けられた新着投稿 - Qiita 【備忘録】Pythonの基本ルール https://qiita.com/pukuku/items/219f112de65e70e8f7d5 【備忘録】Pythonの基本ルールはじめに某スクールにてPythonの勉強をしています。 2021-09-03 23:14:51
Program [全てのタグ]の新着質問一覧|teratail(テラテイル) SeqGANの実装にて、TypeError: __init__() got multiple values for argument 'g_lr' の解決策 https://teratail.com/questions/357651?rss=all SeqGANの実装にて、TypeErrorinitgotmultiplevaluesforargumentxglrxの解決策前提・実現したいこと以下のGithubのmainipynbに沿ってSeqGANの実装を進めています。 2021-09-03 23:59:08
Program [全てのタグ]の新着質問一覧|teratail(テラテイル) UnityのShader Graph、透明部分が潰れてしまいます。 https://teratail.com/questions/357650?rss=all 背景が透明部分はそのままにしておきたいのですが、どういじればよいか全くわかりません。 2021-09-03 23:55:23
Program [全てのタグ]の新着質問一覧|teratail(テラテイル) javaの回転アニメーションが元の位置に戻ってしまう https://teratail.com/questions/357649?rss=all rotateanimation 2021-09-03 23:53:44
Program [全てのタグ]の新着質問一覧|teratail(テラテイル) monacoeditor のプログラミング言語を動的に変更したい https://teratail.com/questions/357648?rss=all monacoeditorのプログラミング言語を動的に変更したい前提・実現したいこと掲題の通りです。 2021-09-03 23:34:16
Program [全てのタグ]の新着質問一覧|teratail(テラテイル) Python Decil分析 quantileメソッドの使い方 https://teratail.com/questions/357647?rss=all PythonDecil分析quantileメソッドの使い方以下のコードで行われたDecil分析の結果を出力したいのですが、どのようなコードを追記したらいいのでしょうか。 2021-09-03 23:10:27
Docker dockerタグが付けられた新着投稿 - Qiita Docker上にTruffle環境を構築する https://qiita.com/oishii_pg_gohan/items/62d1b15bf0ba242c3ca8 Docker上にGanache環境を構築する方法はこちらバージョン※執筆時点の筆者の環境です・Docker・Ubuntu・Ganache・Truffle・Nodejs・npm手順Truffleのインストール※Ganacheとの連携まで載せたかったですが、ボリュームが微妙なので、続きは次回の記事にて。 2021-09-03 23:45:35
Ruby Railsタグが付けられた新着投稿 - Qiita Rails HTTPメソッドとREST APIについて https://qiita.com/Hashimoto-Noriaki/items/6b83ee8f6cf6a79c4b49 DElETEstaffs削除したいstaffのIDがわかっているのでデータを送ることはしません。 2021-09-03 23:52:47
技術ブログ Developers.IO SlackのBirthdayBotアプリをミュートする https://dev.classmethod.jp/articles/disable-the-birthdaybot-app-in-slack/ birthday 2021-09-03 14:32:26
海外TECH Ars Technica Amid backlash, Apple will change photo-scanning plan but won’t drop it completely https://arstechnica.com/?p=1791903 photos 2021-09-03 14:09:05
海外TECH DEV Community HTTP Toolkit for Performance Engineers ⚡ https://dev.to/qainsights/http-toolkit-for-performance-engineers-4abi HTTP Toolkit for Performance Engineers In this blog post we are going to deep dive into the HTTP Toolkit and its features As a performance engineer it is our responsibility to learn various tools and technologies Based on the issue you need to leverage the right tool to fix the problems just like plumbers Let us see HTTP Toolkit for Performance Engineers What is HTTP Toolkit It is an open source tool to debug test intercept HTTP S requests It can intercept desktop browsers such as Chrome Firefox Edge etc Android apps Python Java Ruby and all terminal based apps and Electron apps If you are interested to learn about MITM you can check my below YouTube series MITM YouTube PlaylistHow to install HTTP Toolkit HTTP Toolkit works on Windows Mac and Linux Head to website and download the relevant package to install it Download HTTP Toolkit for Performance EngineersAfter successful installation you can launch HTTP Toolkit Below is the user interface of HTTP Toolkit HTTP Toolkit InterfaceFirst Interception using HTTP ToolkitLet us intercept HTTP traffic in the HTTP Toolkit In this example let us use the Firefox browser to intercept traffic HTTP Toolkit intercepts HTTP and HTTPS traffic The HTTP Toolkit acts as a proxy between the client and server and captures the traffic Once the requests have been captured you can view modify and deep dive into it Launch HTTP ToolkitClick on InterceptClick on Firefox as shown below Intercept TrafficThis will launch Firefox and open automatically as shown below If you are getting below message then the HTTP Toolkit is working fine Testing the proxyNow it is time to record our business actions in the browser For demonstration purpose let us use web app Once the app is launched perform the below transactions LoginSend to AliceDeposit to External AccountSign outOnce the recording is done you can close the Firefox window Congratulations You have intercepted the traffic on HTTP Toolkit Viewing the intercepted trafficTo view the intercepted traffic go back to HTTP Toolkit click on View In right side you can see the list of HTTP requests in a table format View HTTP RequestsTo view more details about the HTTP request click on the row On the right side you can view the selected request response and body as shown below View HTTP Request and ResponseFeatures such as performance and cURL are paid Filter the trafficAs you aware HTTP Toolkit captures all the traffic between the client and server We need to remove the noises from the captured traffic HTTP Toolkit comes with filtering At the bottom you can filter out using various tags such as status code method hostname headers and more e g if we want to filter only bank of anthos traffic we could enter the following filter hostname bank of anthos xyzFilteringIt supports multiple filters as well Rewriting the intercepted trafficHTTP Toolkit supports rewriting the HTTP requests responses and mocking This will help us to test various parameters for debugging purpose To demonstrate the rewrite let us redirect from to If you are launching a bank of anthos app it will throw the response of example com As we are using the free version we are kind of limited in terms of rewrite options First we need to create a rule by going to Mock tab Click on Add a new rule to rewrite requests and responses Create a rule Configure the below rule and hit Save button Save a ruleThe above rule pauses the interception if the URL is We need to edit the request response manually to resume Go to Intercept and launch the Firefox browser Then open app The browser will not open bank of anthos website If you go to HTTP Toolkit it will prompt you to take the action as shown below Pause the captureTo rewrite the response edit the URL to and then click on Resume ResumeNow if you switch back to Firefox browser you can see the example com response instead of bank of anthos response Rewrite responseAlso in the HTTP Toolkit response body as well you can see the example com response Validate the responseCongratulations You have learned how to capture intercept and modify the request response using HTTP Toolkit ConclusionThe HTTP Toolkit is a great utility for debugging test intercepting traffic It has a simple user interface easy to learn and supports various technologies and platforms If you want to become a power user you need to subscribe to the pro features Alternatively you can use MITMProxy which can be ideal for your use 2021-09-03 14:48:13
海外TECH DEV Community Django - Reset Password https://dev.to/earthcomfy/django-reset-password-3k0l Django Reset PasswordHello everyone In addition to login and logout views django s auth app has views that can let users reset their password if they forget it Let s go ahead and see how we can add this functionality into our app Workflow User clicks on forgot password link This will take them to a page where they will be prompted to enter their email address This view is going to be handled by extending from the built in PasswordResetView PasswordResetView This view displays the form where the user will submit his her email address gt checks if a user with the provided email address exists in the database or not gt generates a password reset link that is going to be used only once gt and finally sends that link to the user s email address Note Django doesn t throw in an error if the provided email address isn t associated with any user but won t send the email and you might be wondering why The reason is to prevent information leaking to potential attackers If you don t like this feature and would rather let your users know when they have entered a correct email address and when not you can always inherit from the PasswordResetForm class and customize it a bit So why not just use this view instead of making our own by extending from it Let s walthrough the code and talk about it below views pyfrom django urls import reverse lazyfrom django contrib auth views import PasswordResetViewfrom django contrib messages views import SuccessMessageMixinclass ResetPasswordView SuccessMessageMixin PasswordResetView template name users password reset html email template name users password reset email html subject template name users password reset subject success message We ve emailed you instructions for setting your password if an account exists with the email you entered You should receive them shortly If you don t receive an email please make sure you ve entered the address you registered with and check your spam folder success url reverse lazy users home template name if not given any django defaults to registration password reset form html to render the associated template for the view but since our template is going to be in our users app template directory we needed to explicitly tell django email template name The template used for generating the body of the email with the reset password link subject template name The template used for generating the subject of the email with the reset password link success message The message that will be displayed upon a successful password reset request success url If not given any django defaults to password reset done after a successful password request But I think it makes sense to just redirect the user to the home page without providing any additional template We haven t set up our app to send emails yet but we will do that later gt Map this view to our main project s url patterns user management urls pyfrom django urls import pathfrom users views import ResetPasswordViewurlpatterns path password reset ResetPasswordView as view name password reset gt Now let s provide the templates associated with the view Create the following templates inside users templates users directory password reset html extends users base html block content lt div class form content my p gt lt div class container gt lt div class row justify content center gt lt div class col lg gt lt div class card shadow lg border rounded lg mt mb gt lt div class card header justify content center gt lt div id error div gt lt div gt lt h class font weight light my text center gt Forgot Password lt h gt lt div gt if form errors lt div class alert alert danger alert dismissible role alert gt lt div id form errors gt for key value in form errors items lt strong gt value lt strong gt endfor lt div gt lt button type button class close data dismiss alert aria label Close gt lt span aria hidden true gt amp times lt span gt lt button gt lt div gt endif lt div class card body gt lt form method POST gt csrf token lt div class form row gt lt div class col md offset md gt lt div class form group gt lt label class small mb for id email gt Email lt label gt lt input type email name email class form control autocomplete email maxlength required id id email placeholder Enter email gt lt div gt lt div gt lt div gt lt div class form row gt lt div class col md offset md gt lt div class form group mt mb gt lt button type submit class col md btn btn dark gt Submit lt button gt lt div gt lt div gt lt div gt lt form gt lt div gt lt div class card footer text center gt lt div class small gt lt a href url users register gt Create A New Account lt a gt lt br gt lt br gt lt a href url login gt Back To Login lt a gt lt br gt lt div gt lt div gt lt div gt lt div gt lt div gt lt div gt lt div gt endblock content password reset email html autoescape off To initiate the password reset process for your user email Django Registration Login App Account click the link below protocol domain url password reset confirm uidb uid token token If clicking the link above doesn t work please copy and paste the URL in a new browser window instead Sincerely The Developer endautoescape password reset subject txtDjango Registration Login App Password Reset gt Modify the dead link inside login html to point to password reset login html lt a href url password reset gt lt i gt Forgot Password lt i gt lt a gt Okay after the password reset request is done the user will be redirected to the home page with a message informing him her to go and check their email address Notice that as I ve mentioned earlier this message will be displayed even if a user requesting the password reset doesn t exist User goes to his her email and checks for a message Let s say all went well and he she has an instruction for setting their password It should look something like this User clicks on the generated link and he she will be provided with a form for entering a new password PasswordResetConfirmView is the view responsible for presenting this password reset form and validating the token i e whether or not the token has expired or if it has been used already gt Map this PasswordResetConfirmView to our main project s url patterns user management urls pyfrom django urls import pathfrom django contrib auth import views as auth viewsurlpatterns path password reset confirm lt uidb gt lt token gt auth views PasswordResetConfirmView as view template name users password reset confirm html name password reset confirm What s in the URL s parameter uidb The user s id encoded in base token Password recovery token to check that the password is valid gt Now let s provide the template for this view Go ahead and create password reset confirm html inside our users app templates directory password reset confirm html extends users base html block title Password Reset endblock title block content lt div class form content my p gt lt div class container gt lt div class row justify content center gt lt div class col lg gt if validlink lt div class card shadow lg border rounded lg mt mb gt lt div class card header justify content center gt lt h class font weight light my text center gt Reset Your Password lt h gt lt div gt if form errors lt div class alert alert danger alert dismissible role alert gt lt div id form errors gt for key value in form errors items lt strong gt value lt strong gt endfor lt div gt lt button type button class close data dismiss alert aria label Close gt lt span aria hidden true gt amp times lt span gt lt button gt lt div gt endif lt div class card body gt lt form method POST gt csrf token lt div class form row gt lt div class col md offset md gt lt div class form group gt lt label class small mb for id new password gt New Password lt label gt lt input type password name new password autocomplete new password class form control required id id new password placeholder Enter password gt lt span gt lt span gt lt div gt lt div gt lt div gt lt div class form row gt lt div class col md offset md gt lt div class form group gt lt label class small mb for id new password gt New Password Confirmation lt label gt lt input type password name new password autocomplete new password required id id new password class form control placeholder Confirm password gt lt div gt lt div gt lt div gt lt div class form row gt lt div class col md offset md gt lt div class form group mt mb gt lt button type submit class col md btn btn dark id reset gt Reset Password lt button gt lt div gt lt div gt lt div gt lt form gt lt div gt lt div gt else lt div class alert alert warning gt The password reset link was invalid possibly because it has already been used Please request a new password reset lt div gt endif lt div gt lt div gt lt div gt lt div gt endblock content If the password reset is successful PasswordResetCompleteView will present a view letting the user know that his her password is successfully changed gt Map this view to our main project s url patterns user management urls pyfrom django urls import pathfrom django contrib auth import views as auth viewsurlpatterns path password reset complete auth views PasswordResetCompleteView as view template name users password reset complete html name password reset complete gt Provide the template for the PasswordResetCompleteViewpassword reset complete html extends users base html block content lt div class container my p gt lt div class row justify content center gt lt div class col lg gt lt div class card shadow lg border rounded lg mt mb gt lt div class alert alert info gt Your password has been set You may go ahead and lt a href url login gt Login Here lt a gt lt div gt lt div gt lt div gt lt div gt lt div gt endblock content Set up sending email in DjangoWe have configured everything that django needs to let users reset their password but we aren t actually sending the email to the user so let s go ahead and do that Option The recommended way to allow our app to send emails is by enabling two factor authentication FA for your Google account Follow this link to set this up Option But if you don t want to enable FA then simply go here and allow less secure apps for your Google account Alright next go to settings py and add the following settings py email configsEMAIL BACKEND django core mail backends smtp EmailBackend EMAIL HOST smtp gmail com EMAIL USE TLS TrueEMAIL PORT EMAIL HOST USER str os getenv EMAIL USER EMAIL HOST PASSWORD str os getenv EMAIL PASSWORD EMAIL BACKEND is the SMTP backend that Email will be sent through EMAIL HOST is the host to use for sending email EMAIL USE TLS Whether to use a TLS secure connection when talking to the SMTP server This is used for explicit TLS connections generally on port EMAIL PORT Port to use for the SMTP server defined in EMAIL HOST EMAIL HOST USER and EMAIL HOST PASSWORD are username and password to use for the SMTP server respectively To keep them safe put them in env file and retrieve them here as we have seen how to do in the last part of the series Is it working as it should Start the development server and run the usual command python manage py runserver in your terminal Go to localhost and see if it s working Facing any issues feel free to ask me Thanks for your time You can find the finished app in github See you next time with another part of the series 2021-09-03 14:11:53
Apple AppleInsider - Frontpage News Apple's hand-painted 'Privacy' murals take one week, four artists https://appleinsider.com/articles/21/09/03/apples-hand-painted-privacy-murals-take-one-week-four-artist?utm_medium=rss Apple x s hand painted x Privacy x murals take one week four artistsAn Apple artist has shared how she and colleagues hand paint the giant building sized Privacy iPhone ads ーplus how involved the process is and how she got to do it It took four artists one week to paint this giant muralHailey Badovinac is an artist who paints large murals She is one of many artists hired to paint Apple s building sized ads about privacy on iPhone Read more 2021-09-03 14:27:27
Apple AppleInsider - Frontpage News Apple backs down on CSAM features, postpones launch https://appleinsider.com/articles/21/09/03/apple-backs-down-on-csam-features-postpones-launch?utm_medium=rss Apple backs down on CSAM features postpones launchFollowing widespread criticism Apple has announced that it will not be launching its child protection features as planned and will instead take additional time to consult Apple s new child protection featureIn an email sent to AppleInsider and other publications Apple says that it has taken the decision to postpone its features following the reaction to its original announcement Read more 2021-09-03 14:34:23
海外TECH Engadget Bosch's stink-removal gadget just swaps one smell for another https://www.engadget.com/bosch-freshup-clothes-refreshing-ionizing-wand-140044262.html?src=rss Bosch x s stink removal gadget just swaps one smell for anotherAccording to the National Park Service washing machines are bad for our planet so bad in fact that they can use up to gallons of water per load That s not ideal given the prevalence of droughts as climate change intensifies its work to wipe humanity from the face of the planet That s why Bosch the German multinational which makes uh pretty much everything has created FreshUp It s a tool designed to “refresh your clothes without the need to dump them into your washing machine The idea is to remove odors from clothes that are otherwise clean in the sense that they re not visibly stained You know an evening gown or tuxedo that looks a million dollars but smells like the bottom of a well visited ashtray or that t shirt that goes perfectly with your outfit but smells a little bit sweaty In those situations you d grab this doodad rub it over the required garment and step out smelling fresh as a daisy FreshUp is a lozenge shaped device measuring inches long with a inch treatment area on its underside Once charged and turned on you press this against your dry clothes so that the process of breaking down the smell can begin It works as an ionizer creating a plasma which Bosch says dissolves the connections between odor molecules There s a beautiful design on the top that s designed to resemble an interlacing series of magnetic field lines This is backlit in white and turns purple when it s actually treating your clothes with its ionization Despite the overall vibe that this is a product that fell out of a Sharper Image catalog twenty years ago it s impeccably designed Thankfully there are no “but wait there s more innovations to add to the list of jobs this thing can do The battery takes around four hours to charge and will give you an hour of processing before it needs to go back on the wire Bosch also chose a micro USB port for charging rather than USB C which is you know a choice you can make in But it s not ideal if you re trying to minimize cable clutter and are looking to ditch the older standard as soon as possible As soon as you ve treated a garment with FreshUp you ll be acutely aware of the ionization in the air It offers a similar smell to the taste you get in your mouth when you ve bitten your tongue That iron in the blood scent that clings to your hand when you ve held onto some loose change while waiting for a vending machine And it doesn t just sit on your clothes but hangs in the air where on very dry summer days you ll want to make sure you leave your windows open to encourage airflow In its sales pitch Bosch says that FreshUp was designed to eliminate what it describes as a “chair drobe You know that pile of clothes in your bedroom that maybe you drape over the back of a chair or stuff on the bottom of your wardrobe because they re too clean to wash I m not a regular chair drobe ist but the fan housing of my rowing machine is sturdy enough to drape clothes over on the rare occasions they wind up in this state Bosch adds that after treatment “even tough odors such as cigarette smoke and body odor are removed leaving clothes as if they have been hung outside to dry Daniel CooperAnd here s where I ve really earned my wages over the last month or so because I ve spent a chunk of this summer sniffing awful things Not to mention of course wearing already worn clothes and spending way too long with my nose in my own armpit I ve been testing a high intensity exercise bike and trying to be as active as possible all the while getting my clothes covered in cigarette smoke and frying oil Consider this a content warning for what is about to follow as well as a polite request for danger pay There were plenty of smells that the FreshUp was able to dispel without breaking much of a sweat including the cigarette smoke and fried food It s in this regard that makes me think that FreshUp is perfect for traveling when you want to make sure that you re looking and smelling your best If your top smells like the inside of an ashtray just waft this thing over it hang it up for an hour or two and boom you re away But no matter how much I rubbed this thing over the armpits of my well worn t shirts after I should make clear the fabric had dried out I could never banish the smell of my sweat I tried everything including leaving a t shirt hanging up for a day or two and then treating it again then leaving it to hang for another couple of hours and nothing The scent wasn t eliminated although I will say that it was moderated somewhat but not enough to make you not deeply self conscious about how you smell But I did wonder if this was a “me problem rather than Bosch s and so grabbed clothes from other family members One of my relatives who went for a run handed me a pair of their socks which stank so bad that they probably violated chemical weapons laws And again I d like to reiterate that the time I spent dry retching was all in the service of good journalism Once dried out I treated those socks and found that again FreshUp hadn t destroyed the smell but it had reduced the urge to heave That broadly speaking means that this is not going to be your savior if you re schlepping around in a warm country But if you aren t cursed with the blight of free flowing underarms or in Richard Nixon s case upper lip then I think FreshUp may have a place for you I can think of some times where after a long evening on assignment I d love to give my clothes an emergency refresh If you re doing two or three smart events back to back and can t visit a dry cleaners then FreshUp is probably a good shout but the use cases are limited But don t expect the results to be as good as washing because fundamentally nothing is going to be able to replace your washing machine just yet And then there s the price which at £ is a little high for a device that can t revolutionize how you do laundry At least not yet 2021-09-03 14:00:44
海外科学 NYT > Science Reuniting an Orphan Elephant and Her Mom, Perhaps, With DNA and Luck https://www.nytimes.com/2021/09/03/science/elephant-orphan-dna.html Reuniting an Orphan Elephant and Her Mom Perhaps With DNA and LuckNania beat the odds to survive separation from her forest elephant family in Burkina Faso Her caretakers hope DNA testing may help return her to the wild with her family 2021-09-03 14:53:11
海外科学 NYT > Science Edmond H. Fischer, 101, Who Helped Discover How Cells Talk, Dies https://www.nytimes.com/2021/09/02/science/edmond-h-fischer-dead.html Edmond H Fischer Who Helped Discover How Cells Talk DiesHe and a colleague identified a mechanism by which cells communicate a Nobel winning breakthrough that paved the way for disease fighting drugs 2021-09-03 14:37:05
金融 金融庁ホームページ 顧客本位の業務運営に関する原則」等に基づく取組方針を公表した金融事業者リスト(令和3年6月末時点)について公表しました。 https://www.fsa.go.jp/news/r3/kokyakuhoni/202109/fd_2021.html 金融事業 2021-09-03 15:00:00
ニュース BBC News - Home Not enough benefit to offer all teens Covid jabs https://www.bbc.co.uk/news/health-58438669?at_medium=RSS&at_campaign=KARANGA covid 2021-09-03 14:33:10
ニュース BBC News - Home EU and AstraZeneca reach deal to end vaccine row https://www.bbc.co.uk/news/world-europe-58426880?at_medium=RSS&at_campaign=KARANGA action 2021-09-03 14:19:05
ニュース BBC News - Home Hamilton breaks down as Leclerc fastest in Dutch GP practice https://www.bbc.co.uk/sport/formula1/58437937?at_medium=RSS&at_campaign=KARANGA lewis 2021-09-03 14:19:40
ニュース BBC News - Home Tokyo Paralympics: Great Britain win three golds and pass 100-medal mark https://www.bbc.co.uk/sport/disability-sport/58431290?at_medium=RSS&at_campaign=KARANGA paralympics 2021-09-03 14:34:48
ニュース BBC News - Home Tokyo Paralympics: Who are Great Britain's medal winners? https://www.bbc.co.uk/sport/disability-sport/58267875?at_medium=RSS&at_campaign=KARANGA paralympics 2021-09-03 14:35:24
ニュース BBC News - Home Which country has won most golds? https://www.bbc.co.uk/sport/disability-sport/58267874?at_medium=RSS&at_campaign=KARANGA britain 2021-09-03 14:56:33
仮想通貨 BITPRESS(ビットプレス) [Bloomberg] SBIが国内初の暗号資産ファンド、11月にも募集-最大数百億円規模 https://bitpress.jp/count2/3_9_12753 bloombergsbi 2021-09-03 23:12:04

コメント

このブログの人気の投稿

投稿時間:2021-06-17 05:05:34 RSSフィード2021-06-17 05:00 分まとめ(1274件)

投稿時間:2021-06-20 02:06:12 RSSフィード2021-06-20 02:00 分まとめ(3871件)

投稿時間:2020-12-01 09:41:49 RSSフィード2020-12-01 09:00 分まとめ(69件)