AWS |
AWS Architecture Blog |
Field Notes: Automate Disaster Recovery for AWS Workloads with Druva |
https://aws.amazon.com/blogs/architecture/field-notes-automate-disaster-recovery-for-aws-workloads-with-druva/
|
Field Notes Automate Disaster Recovery for AWS Workloads with DruvaThis post was co written by Akshay Panchmukh Product Manager Druva and Girish Chanchlani Sr Partner Solutions Architect AWS The Uptime Institute s Annual Outage Analysis report estimated that of outages or service interruptions in businesses cost between and million while about cost more than million To guard against this it … |
2021-09-03 19:25:19 |
AWS |
AWS |
Splunk Observability Cloud on AWS: Real-time visibility & analytics for DevOps | Amazon Web Services |
https://www.youtube.com/watch?v=WFM_V8rklMY
|
Splunk Observability Cloud on AWS Real time visibility amp analytics for DevOps Amazon Web ServicesSplunk and AWS are uniquely positioned to help organizations achieve digital transformation success with their highly integrated data driven cloud adoption and modernization offerings Splunk Observability Cloud provides full stack visibility into all data of any AWS infrastructure service application and end user experience for a holistic analytics powered single source of truth Deliver products faster and reduce mean time to respond MTTR with Splunk s full fidelity transaction monitoring AI driven directed troubleshooting and automated response Learn more about Splunk on AWS Subscribe More AWS videos More AWS events videos ABOUT AWSAmazon Web Services AWS is the world s most comprehensive and broadly adopted cloud platform offering over fully featured services from data centers globally Millions of customers ーincluding the fastest growing startups largest enterprises and leading government agencies ーare using AWS to lower costs become more agile and innovate faster AWS AmazonWebServices CloudComputing |
2021-09-03 19:22:51 |
技術ブログ |
Developers.IO |
Amazon FSx for NetApp ONTAPを試してみた |
https://dev.classmethod.jp/articles/amazon-fsx-for-netapp-ontap/
|
amazon |
2021-09-03 19:05:35 |
海外TECH |
DEV Community |
Authentication in Go |
https://dev.to/karankumarshreds/authentication-in-go-2630
|
Authentication in Go How authentication worksA client sends the authentication request to the server with the credentials The server validates the credentials with the database entry If the match is successful it writes something called cookie in the response This cookie will be sent back from the client in the subsequent requests to the server which is used by the servers to validate if the cookie attached is valid on the basis of the one sent in the first place SessionsA session is a way to record users authentication related payload in a cookie over a period of time Here s a diagram from book Handson restful services with Go When the user logs in in by sending valid credentials the server attaches the cookie in the response Then the client uses that cookie saved in the browser or client service to make future requests When a client makes a logout request by sending a API on the server the server destroys the session in the response The server can also place an expiration on cookies so that the session expires after a certain time if there is no activity The working code for this can be found on GitHubLet us use gorilla mux package to implement this workflow We will use the packages github com gorilla mux github com gorilla sessions Let us create a cookie store first from the sessions package store the secret key in env variable in productionvar store sessions NewCookieStore byte my secret key This secret key is supposed to be a secret for the server The cookie session is encrypted and decrypted using this key This is how the server validates if the user client is logged in with proper payload on the cookie or not First we will create three routes to implement the authentication example login logout healthcheck a test route that will be used by the logged in user Lets create the login handler I will add relevant comments for code explanation func loginHandler w http ResponseWriter r http Request if r Method POST http Error w Method Not Supported http StatusMethodNotAllowed return ParseForm parses the raw query from the URL and updates r Form err r ParseForm if err nil http Error w Please pass the data as URL form encoded http StatusBadRequest return Get username and password from the parsed form username r Form Get username password r Form Get password Check if user exists storedPassword exists users username if exists It returns a new session if the sessions doesn t exist session store Get r session id if storedPassword password session Values authenticated true Saves all sessions used during the current request session Save r w else http Error w Invalid Credentials http StatusUnauthorized w Write byte Login successfully Now let us create the logout handler which will cater to the GET request In this handler we will set the authenticated flag on the request session to falsefunc logoutHandler w http ResponseWriter r http Request Get registers and returns a session for the given name and session store session store Get r session id Set the authenticated value on the session to false session Values authenticated false session Save r w w Write byte Logout Successful Now let us implement the test handler which is serving the protected route healthcheck func healthcheck w http ResponseWriter r http Request session store Get r session id authenticated session Values authenticated if authenticated nil amp amp authenticated false w Write byte Welcome return else http Error w Forbidden http StatusForbidden return Now let us use the gorilla mux library to hook up all the handlers in our main function func main r mux NewRouter r HandleFunc login loginHandler Methods POST r HandleFunc logout logoutHandler Methods GET r HandleFunc healthcheck healthcheck Methods GET modifying default http import struct to add an extra property of timeout good practice httpServer amp http Server Handler r Addr WriteTimeout time Second log Fatal httpServer ListenAndServe Now let us login with postman on the login route and see if we are able to do so We can see we are able to login with response and cookies are also set If we check the cookie set by the server we will see the name of the cookie is session id which we set from the server side Now let us make another request to see if we are able to validate the authenticated user by hitting the protected route healthcheck Yes we are Now let us hit the logout route and seeYes we can logout Now last thing let us try to hit the healthcheck again and we should be FORBIDDEN to do so And yes it works Congratulations you have successfully created a session based authentication system using Go and Mux package In the upcoming blog we will learn how to make use of Redis to persist the user sessions Till then stay tuned The working code for this can be found on GitHub |
2021-09-03 19:24:53 |
海外TECH |
DEV Community |
LeetCode Sep' 21 Challenge Series | Day 2 | Contains Duplicate III |
https://dev.to/geetcloud/leetcode-sep-21-challenge-series-day-2-contains-duplicate-iii-4a01
|
LeetCode Sep x Challenge Series Day Contains Duplicate III Contains Duplicate III ProblemGiven an integer array nums and two integers k and t return true if there are two distinct indices i and j in the array such that abs nums i nums j lt t and abs i j lt k Example Input nums k t Output trueExample Input nums k t Output trueExample Input nums k t Output falseHint Time complexity O n log k This will give an indication that sorting is involved for k elements Hint Use already existing state to evaluate next state Like a set of k sorted numbers are only needed to be tracked When we are processing the next number in array then we can utilize the existing sorted state and it is not necessary to sort next overlapping set of k numbers again Let s startAs usual our main goal is to solve the problem and at the same time achieve the best time complexity with minimal space complexity If you are a beginner to problem solving or trying data structure problems I suggest you start with a brute force approach and then try to optimize your solution to the best time space complexity AnalysisGiven an integer array nums and two integers k and t return true if there are two distinct indices i and j in the array such that abs nums i nums j lt t and abs i j lt k Before jumping into a solution or pseudocode read the problem statement a couple of times and make sure to understand it well Based on the problem statement we understand that we need to find two distinct indices i and j such that abs nums i nums j lt t and abs i j lt k This time the problem is a moderate one and not as easy as the Day problem So I m going to use the hints provided I have shared the two hints provided with the problem Based on the first hint it is understood that we need to sort the elements first and then using the sorted list we need to find if there are two distinct indices i e satisfying the provided condition With sorting and iterating through all the array elements we can achieve the solution by O n log k complexity With second hint we understood that we need to maintain the sorted elements with its state in a data structure in such a way that we don t have to sort next overlapping elements again From points to we can definitely choose TreeSet data structure in Java which will be a best candidate for this problem solution And with all these points we also got a hint that this problem falls under Sliding Window Pattern A sliding window is a sublist or subarray that runs over an underlying data structure The data structure is iterable and ordered such as an array or a string At a high level you can think of it as a subset of the two pointers method TreeSet in JavaA TreeSet is a sorted collection that extends the AbstractSet class and implements the NavigableSet interface It stores unique elementsIt doesn t preserve the insertion order of the elementsIt sorts the elements in ascending orderIt s not thread safeIn our solution we are going to mainly use the below two important methods of Tree Set ceiling gt This method returns the least element in this set greater than or equal to the given element or null if there is no such element floor gt This method returns the greatest element in this set less than or equal to the given element or null if there is no such element So with all these hints and analysis let s start writing our algorithm or pseudocode Algorithm PseudocodeCreate a TreeSet to store the visited or tracked elements in the array Iterate each element in the array and get the below two valueslow gt highest element in the set lesser than the current element nums i hight gt smallest element in the set greater than the current element nums i if low null amp amp long nums i low lt t high null amp amp long high nums i lt t return trueThis means we found the two indices that meet the required conditions if the conditions are not satisfied insert the current element nums i in the tracking treeSet if we reach i gt k element we can remove the first element since the two indices which we need to identify has to be within lt k indices Let s start writing the solution Loop through the elements in the array If we find the two indices that matches the required condition by comparing the low amp high values in the treeSet That s it That is our answer Given Array contains Duplicate Solution in Java class Solution public boolean containsNearbyAlmostDuplicate int nums int k int t TreeSet lt Integer gt visitedSet new TreeSet lt gt for int i i lt nums length i Integer low visitedSet floor nums i Integer high visitedSet ceiling nums i if low null amp amp long nums i low lt t high null amp amp long high nums i lt t return true visitedSet add nums i if i gt k visitedSet remove nums i k return false ComplexityTime Complexity gt O n log k Space Complexity gt O k ConclusionThis problem is a very good example of Sliding Window Pattern Do check out more examples in this category for further learning Since our solution s complexity is O n log k this is not the best optimized solution Based on my research and analysis I found that we could achieve O n complexity for this problem using bucket sort But it s a little complex solution based on my understanding So I am leaving it to readers of this article to try out the O n bucket sort solution as an exercise Provide your experience on solving this problem in O n complexity in the comment section of this article if interested Let s learn from each other ReferencesThe LeetCode Problem in this article LeetCode September Challenge Thanks for reading this post I hope this article is informative and helpful in some way If it is please like and share Follow me on Twitter LinkedIn for related content Happy learning |
2021-09-03 19:10:48 |
Apple |
AppleInsider - Frontpage News |
Arizona vehicle testing site purchased by firm thought to be linked to Apple |
https://appleinsider.com/articles/21/09/03/arizona-vehicle-testing-site-purchased-by-firm-thought-to-be-linked-to-apple?utm_medium=rss
|
Arizona vehicle testing site purchased by firm thought to be linked to AppleAmid Apple Car rumors an automotive testing site in Arizona reportedly used by Apple has been purchased by the mysterious firm who has leased the site for years Credit AppleInsiderThe acre site is located near Phoenix Arizona and was formerly used by Chrysler as a vehicle proving ground Delaware based company Route Investment Partners LLC has purchased the site for million in cash AZ Big Media reported Friday Read more |
2021-09-03 19:44:15 |
Apple |
AppleInsider - Frontpage News |
Apple Wallet ID, 'iPhone 13' satellite support, AirPods Max long-term on the AppleInsider podcast |
https://appleinsider.com/articles/21/09/03/apple-wallet-for-id-iphone-13-satellite-support-and-airpods-max-long-term-review-on-the-appleinsider-podcast?utm_medium=rss
|
Apple Wallet ID x iPhone x satellite support AirPods Max long term on the AppleInsider podcastOn the AppleInsider podcast this week future iPhone models may use satellites for emergency SOS Apple buys classical music service Primephonic Apple Wallet to store drivers licences and other digital ID plus App Store policy changes This week analyst Ming Chi Kuo stated in a note to investors that the iPhone could support low earth satellite communications based on Qualcomm s work with Globalstar Future iPhone models with this feature would be able to send emergency SOS messages even when cellular service is unavailable According to Bloomberg Apple has had teams working on satellite technology since However Bloomberg also stated these satellite features are unlikely to be ready before Read more |
2021-09-03 19:47:21 |
ニュース |
BBC News - Home |
Flu jabs in England and Wales delayed due to HGV driver shortage |
https://www.bbc.co.uk/news/business-58442611?at_medium=RSS&at_campaign=KARANGA
|
driver |
2021-09-03 19:39:50 |
ニュース |
BBC News - Home |
Diamond League: Christine Mboma wins 200m as Dina Asher-Smith third in Brussels |
https://www.bbc.co.uk/sport/av/athletics/58443441?at_medium=RSS&at_campaign=KARANGA
|
Diamond League Christine Mboma wins m as Dina Asher Smith third in BrusselsNamibian Christine Mboma wins the women s m in a time of seconds as Great Britain s Dina Asher Smith finishes in third at the Diamond League in Brussels |
2021-09-03 19:25:52 |
ビジネス |
ダイヤモンド・オンライン - 新着記事 |
大手コンサル会社が「絶対に採用しない人材」とは?【コンサル・見逃し配信】 - 見逃し配信 |
https://diamond.jp/articles/-/281358
|
配信 |
2021-09-04 04:55:00 |
ビジネス |
ダイヤモンド・オンライン - 新着記事 |
医療崩壊を止めるために絶対やるべき3つのこと、救急医が緊急提言 - DOL特別レポート |
https://diamond.jp/articles/-/281294
|
事業継続計画 |
2021-09-04 04:52:00 |
ビジネス |
ダイヤモンド・オンライン - 新着記事 |
スティーブ・ジョブズにビートルズ…人が「プロセス」にお金を払う理由 - 「プロセスエコノミー」が来る! |
https://diamond.jp/articles/-/280759
|
スティーブ・ジョブズにビートルズ…人が「プロセス」にお金を払う理由「プロセスエコノミー」が来るマッキンゼー、Google、リクルート、楽天など、もの職を経て、現在はシンガポール・バリ島を拠点にリモートで活動するIT批評家の尾原和啓氏。 |
2021-09-04 04:50:00 |
ビジネス |
ダイヤモンド・オンライン - 新着記事 |
自宅でできる!ゴルファーのための筋トレメニュー7選<前編> - 男のオフビジネス |
https://diamond.jp/articles/-/280957
|
連載 |
2021-09-04 04:45:00 |
ビジネス |
ダイヤモンド・オンライン - 新着記事 |
コロナ禍で音楽フェスに冷たい視線、 バックミュージシャンの心の内とは - 井の中の宴 武藤弘樹 |
https://diamond.jp/articles/-/281310
|
不織布マスク |
2021-09-04 04:40:00 |
ビジネス |
ダイヤモンド・オンライン - 新着記事 |
甲子園優勝校 智弁和歌山はなぜ、医学部受験でも強いのか - from AERAdot. |
https://diamond.jp/articles/-/280900
|
fromaeradot |
2021-09-04 04:35:00 |
ビジネス |
ダイヤモンド・オンライン - 新着記事 |
日本の港を船で旅して集める「御船印」の魅力を徹底解説!【地球の歩き方】 - 地球の歩き方ニュース&レポート |
https://diamond.jp/articles/-/280959
|
日本の港を船で旅して集める「御船印」の魅力を徹底解説【地球の歩き方】地球の歩き方ニュースレポート神社やお寺が頒布する御朱印の船バージョン、御船印ごせんいんを知っていますか全国を超える船会社が、船内や港で発行している印のことなんです。 |
2021-09-04 04:30:00 |
ビジネス |
ダイヤモンド・オンライン - 新着記事 |
糖代謝異常や糖尿病を患う妊婦の子どもは、近視や遠視が多くなる研究報告 - ヘルスデーニュース |
https://diamond.jp/articles/-/280964
|
diabetologia |
2021-09-04 04:25:00 |
ビジネス |
ダイヤモンド・オンライン - 新着記事 |
副操縦士よりも機長の方が墜落事故を起こしやすい意外な理由とは? - EI(エモーショナル・インテリジェンス) |
https://diamond.jp/articles/-/280128
|
副操縦士 |
2021-09-04 04:20:00 |
ビジネス |
ダイヤモンド・オンライン - 新着記事 |
ひろゆきが語る「真面目系クズ」のメリット、デメリット - 1%の努力 |
https://diamond.jp/articles/-/280680
|
youtube |
2021-09-04 04:15:00 |
ビジネス |
ダイヤモンド・オンライン - 新着記事 |
「タダで何かをもらっておいて、文句を言うな」という考えが根本的に間違っている理由 - 独学大全 |
https://diamond.jp/articles/-/266158
|
読書 |
2021-09-04 04:10:00 |
ビジネス |
ダイヤモンド・オンライン - 新着記事 |
「本音が言えない職場」をつくるヤバい上司の正体 - だから、この本。 |
https://diamond.jp/articles/-/279904
|
|
2021-09-04 04:05:00 |
ビジネス |
東洋経済オンライン |
菅首相が総裁選不出馬、風雲急告げる後継レース 複数候補の立候補前提に自民各派は対応急ぐ | 国内政治 | 東洋経済オンライン |
https://toyokeizai.net/articles/-/452941?utm_source=rss&utm_medium=http&utm_campaign=link_back
|
国内政治 |
2021-09-04 04:30:00 |
Azure |
Azure の更新情報 |
General availability: Azure Files now supports SMB 3.1.1 |
https://azure.microsoft.com/ja-jp/updates/azure-files-smb-3-1-1/
|
General availability Azure Files now supports SMB Server Message Block SMB is the most secure and highly performant version of SMB With SMB support for Azure Files you now can require AES GCM for Windows version H and newer clients |
2021-09-03 19:30:32 |
Azure |
Azure の更新情報 |
SMB Multichannel for Azure Files is generally available |
https://azure.microsoft.com/ja-jp/updates/smb-multichannel-azure-files-generally-available/
|
SMB Multichannel for Azure Files is generally availableServer Message Block SMB Multichannel enables you to improve the IO performance of your SMB client x increasing performance and decreasing total cost of ownership |
2021-09-03 19:30:25 |
Azure |
Azure の更新情報 |
General availability: Azure Files supports storage capacity reservations for premium, hot, and cool tiers |
https://azure.microsoft.com/ja-jp/updates/azure-files-storage-capacity-reservations/
|
General availability Azure Files supports storage capacity reservations for premium hot and cool tiersStorage capacity reservations for Azure Files enable you to significantly reduce the total cost of ownership of storage by pre committing to storage utilization To achieve the lowest costs in Azure you should consider reserving capacity for all production workloads |
2021-09-03 19:30:12 |
コメント
コメントを投稿