AWS |
AWS News Blog |
AWS Week in Review – April 4, 2022 |
https://aws.amazon.com/blogs/aws/aws-week-in-review-april-4-2022/
|
AWS Week in Review April This post is part of our Week in Review series Check back each week for a quick round up of interesting news and announcements from AWS Welcome to the April edition of the AWS Week in Review This week alongside the main launches I also captured a couple of new capabilities such as a … |
2022-04-04 20:26:52 |
AWS |
AWS Desktop and Application Streaming Blog |
Disaster Recovery considerations with Amazon AppStream 2.0 |
https://aws.amazon.com/blogs/desktop-and-application-streaming/disaster-recovery-considerations-with-amazon-appstream-2-0/
|
Disaster Recovery considerations with Amazon AppStream Introduction In this blog we show you how you can architect your Amazon AppStream environment for disaster recovery DR Part of architecting a resilient highly available AppStream solution is the consideration that failures do occur These failures can be caused by natural disasters technical failures and human interactions resulting in a regional outage … |
2022-04-04 20:53:21 |
AWS |
AWS |
AWS Supports You | Understanding and Reducing Your EC2 Costs |
https://www.youtube.com/watch?v=flEnJ44N-J8
|
AWS Supports You Understanding and Reducing Your EC CostsWe would love to hear your feedback about our show Please take our survey here AWS Supports You Understanding and Reducing Your EC Costs gives viewers on the twitch tv aws channel an overview of how to identify cost allocation across AWS services using Cost Explorer and how to best optimize your EC performance to save costs This series showcases best practices and troubleshooting tips from AWS Support This episode originally aired on April th Intro Tools and Services to Manage AWS Costs AWS Cost Explorer Overview AWS Cost Explorer Demo Cost Optimization Overview Q amp A Recommended Links Click here to learn more about the different support offerings from AWS Some previous episodes on cloud costs Estimated AWS Spend createEstimateSavings Plans Reserved Instances AWS Autoscaling Computer Optimizer Trusted Advisor AWS Cost Explorer Right Sizing EC Spot Pricing Trusted Advisor to Optimize Costs Trusted Advisor Priority 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 |
2022-04-04 20:00:27 |
python |
Pythonタグが付けられた新着投稿 - Qiita |
tkinter.filedialogで取得したパスのセパレータを信用してはいけない |
https://qiita.com/poslogithub/items/08a2a58acbea84feada7
|
tkinterfiledialogで取得したパスのセパレータを信用してはいけないWindowsでのお話です。 |
2022-04-05 05:30:28 |
海外TECH |
MakeUseOf |
How to Use Tinder Like a Pro |
https://www.makeuseof.com/how-to-use-tinder/
|
tinder |
2022-04-04 20:45:13 |
海外TECH |
MakeUseOf |
5 Reasons Why Google Drive Is a Security Risk |
https://www.makeuseof.com/why-google-drive-is-a-security-risk/
|
private |
2022-04-04 20:30:15 |
海外TECH |
DEV Community |
Getting the database url at run time |
https://dev.to/eriftekhar/getting-the-database-url-at-run-time-3aji
|
Getting the database url at run timeThere is a springboot application which connects to the oracle data The url for the database is configured asspring datasource url jdbc oracle thin DESCRIPTION LOAD BALANCE OFF FAILOVER ON ADDRESS PROTOCOL TCP HOST domainName com PORT ADDRESS PROTOCOL TCP HOST domainName com PORT CONNECT DATA SERVICE NAME xyz This url is configured so that when one host is down then the application connects to second database The url to the database is printed in the application healthcheck as shown belowHello version build datasource oracle jdbc OracleDriverdb url jdbc oracle thin DESCRIPTION LOAD BALANCE OFF FAILOVER ON ADDRESS PROTOCOL TCP HOST domainName com PORT ADDRESS PROTOCOL TCP HOST domainName com PORT CONNECT DATA SERVICE NAME xyz db status okMy question is how can I get just the host name of the database being used that means how can I get the host currently being used domainName or domainName by the application and display it on healthcheck For example as shown below Hello version build datasource oracle jdbc OracleDriverdb url jdbc oracle thin domainName com coldvdb status ok LVZ count The java code I used for this healthcheck is as shown below GetMapping path healthcheck produces MediaType APPLICATION JSON VALUE public String getServiceStatus String activeProfiles environment getActiveProfiles final BeanWrapper accessor PropertyAccessorFactory forBeanPropertyAccess dataSource final String driverClassName String valueOf accessor getPropertyValue driverClassName String url null if activeProfiles equals external tomcat url String valueOf accessor getPropertyValue url else try String dataSourceProperties nameService getDataSource url dataSourceProperties catch SQLException ex throwables printStackTrace log error ex getMessage ex String version buildProperties getVersion String buildTimestamp String valueOf buildProperties getTime BigDecimal count nameService getCount Table name of database StringBuilder result new StringBuilder Hello append nversion t append version append nbuild t append buildTimestamp append ndatasource t append driverClassName append ndb url t append url append ndb status tok append count intValue append return result toString NameService java Override public String getDataSource throws SQLException return getDataSourceProperties public String getDataSourceProperties String dataSourceProperties new String HikariDataSource dataSource getDataSourceFromHibernateEntityManager if dataSource getJdbcUrl null dataSourceProperties dataSource getJdbcUrl dataSourceProperties dataSource getDataSourceClassName return dataSourceProperties |
2022-04-04 20:42:28 |
Apple |
AppleInsider - Frontpage News |
Apple, Netflix bail out of bidding war for Will Smith biopic amid controversy |
https://appleinsider.com/articles/22/04/04/apple-tv-halts-bidding-war-for-will-smith-biopic-amid-controversy?utm_medium=rss
|
Apple Netflix bail out of bidding war for Will Smith biopic amid controversyApple TV and Netflix have pulled out of the bidding war on the Will Smith biopic after the actor slapped comedian Chris Rock at the Oscars Credit The New York TimesApple was among several companies fighting to secure rights to a film about Smith s life based on his best selling autobiography published in However The Sun reports that Apple has removed its bid for the film Read more |
2022-04-04 20:14:19 |
海外TECH |
Engadget |
We have three years to curb emissions to avoid climate catastrophe, UN report finds |
https://www.engadget.com/we-have-three-years-to-curb-emissions-to-avoid-climate-catastrophe-un-report-finds-204058474.html?src=rss
|
We have three years to curb emissions to avoid climate catastrophe UN report findsThe world needs to cut carbon emissions by a quarter by the year to avoid the most catastrophic impacts of climate change according to the latest report from the United Nations Intergovernmental Panel on Climate Change IPCC Governments and industries must make sure to level carbon emissions by Even then the world will need to invest in CO removal factories and other technologies to remove carbon dioxide from the sky With all these measures in place the world can still expect a bare minimum temperature increase of degrees Celsius over the next few decades still a grim outcome that will eviscerate most of the world s coral reefs and make many low lying regions uninhabitable The lead author of the report Sarah Burch tweeted that even the degrees Celsius target is unlikely a sentiment that other climate scientists have expressed In order to reach that goal virtually every industry and country would have to make rapid emissions cuts “The average annual greenhouse gas emissions over the last years were THE HIGHEST IN HUMAN HISTORY We are not on track to limit warming to less than degrees tweeted Burch But the report also expressed a few reasons to be optimistic First governments and the private sector at the very least know what they need to do as far as curbing their energy use The question remains whether stakeholders will actually stick to their emissions targets and make the drastic changes needed to avoid the worst case scenario “Having the right policies infrastructure and technology in place to enable changes to our lifestyles and behavior can result in a reduction in greenhouse gas emissions by This offers significant untapped potential wrote IPCC Working Group III Co Chair Priyadarshi Shukla in the report Second even though average annual global greenhouse gas emissions between to were the highest in human history the rate of growth has slowed Countries have adopted policies that have decreased deforestation and ramped up the use of renewable energy The costs of solar wind energy and lithium ion batteries have also decreased by over the past decade making it a more viable option than ever before The report warned that by solar and wind power will need to supply the majority of the world s energy And the report also echoed the consensus shared by most climate scientists that the world must immediately and rapidly curb its use of fossil fuels “Coal has to go Coal without carbon capture and storage has to go down by by That s…really fast noted Burch But attaining global consensus to cut down on fossil fuels is easier said than done China the world s largest greenhouse gas emitter increased its domestic coal use in the wake of Russia s invasion of Ukraine which ramped up energy commodity prices Leaders in the EU and US have expressed concerns that global demand for coal will only increase with countries needing to burn more coal due to higher natural gas prices |
2022-04-04 20:40:58 |
海外TECH |
Engadget |
State Department’s new bureau makes cybersecurity a part of foreign policy |
https://www.engadget.com/state-department-bureau-of-cyberspace-and-digital-policy-201748901.html?src=rss
|
State Department s new bureau makes cybersecurity a part of foreign policyThe Department of State has cut the ribbon on the Bureau of Cyberspace and Digital Policy CDP which is now in operation The move makes cybersecurity a more formal area of focus for US foreign policy following a swathe of attacks linked to Russia and China Secretary of State Antony Blinken announced the CDP in October The bureau comprises three policy units International Cyberspace Security International Information and Communications Policy and Digital Freedom The office will eventually be led by an Ambassador at Large who will require Senate confirmation Jennifer Bachus a career member of the Senior Foreign Service is running the bureau on an acting basis as senior official and principal deputy assistant secretary The bureau could help the US address cybersecurity threats both by itself and through partnerships with allies A spate of major hacks have been attributed to state linked actors from Russia and China over the last several years including several Microsoft Exchange cyberattacks for which the Biden administration pinned the blame on China Others include the SolarWinds attack over which the US has sanctioned multiple Russian companies individuals and entities In February FBI Director Christopher Wray said the agency had more than active investigations related to thefts of US tech or information that were allegedly carried out by China He claimed the country had a quot massive sophisticated hacking program that is bigger than those of every other major nation combined Shortly before Russia invaded the country in February Ukraine s government blamed it for a cyberattack against its websites President Biden signed an executive order last May that sought to bolster the country s cybersecurity infrastructure He followed that up in January with an EO that contained more concrete directives concerning the Defense Department the intelligence community and national security systems |
2022-04-04 20:17:48 |
海外科学 |
NYT > Science |
California’s Drought Is Worse Than We Thought |
https://www.nytimes.com/2022/04/04/opinion/environment/california-drought-wildfires.html
|
thoughtour |
2022-04-04 20:35:30 |
海外科学 |
NYT > Science |
How Covid and Diabetes Collide in a Public Health Train Wreck |
https://www.nytimes.com/2022/04/03/health/diabetes-covid-deaths.html
|
How Covid and Diabetes Collide in a Public Health Train WreckAfter older people and nursing home residents no group perhaps has been harder hit by the pandemic than people with diabetes Experts hope policymakers will take notice and finally get serious about tackling the nation s diabetes crisis |
2022-04-04 20:22:54 |
ニュース |
BBC News - Home |
Village head and family killed by Russia - Ukraine |
https://www.bbc.co.uk/news/world-europe-60989632?at_medium=RSS&at_campaign=KARANGA
|
russia |
2022-04-04 20:00:48 |
ニュース |
BBC News - Home |
Channel 4 privatisation to go ahead |
https://www.bbc.co.uk/news/entertainment-arts-60985496?at_medium=RSS&at_campaign=KARANGA
|
industry |
2022-04-04 20:46:14 |
ニュース |
BBC News - Home |
Ukraine round-up: Evidence of alleged Russian atrocities mounts near Kyiv |
https://www.bbc.co.uk/news/world-europe-60987358?at_medium=RSS&at_campaign=KARANGA
|
invasion |
2022-04-04 20:40:24 |
ニュース |
BBC News - Home |
Fact-checking Russian claims about Bucha killings |
https://www.bbc.co.uk/news/60981238?at_medium=RSS&at_campaign=KARANGA
|
bucha |
2022-04-04 20:46:03 |
ニュース |
BBC News - Home |
Crystal Palace 3-0 Arsenal: Gunners miss chance to move into top four with defeat |
https://www.bbc.co.uk/sport/football/60896557?at_medium=RSS&at_campaign=KARANGA
|
Crystal Palace Arsenal Gunners miss chance to move into top four with defeatArsenal miss the chance to back move into the top four of the Premier League as they are stunned by Patrick Vieira s Crystal Palace at Selhurst Park |
2022-04-04 20:56:10 |
ビジネス |
ダイヤモンド・オンライン - 新着記事 |
伊藤忠が「三菱商事の元子会社」に出資でコンサル参戦、極秘企画でアクセンチュアに対抗 - 勝ち組に死角! コンサル大乱戦 |
https://diamond.jp/articles/-/300066
|
伊藤忠が「三菱商事の元子会社」に出資でコンサル参戦、極秘企画でアクセンチュアに対抗勝ち組に死角コンサル大乱戦巨大商社の間で、数奇な運命をたどるコンサルティング会社がある。 |
2022-04-05 05:25:00 |
ビジネス |
ダイヤモンド・オンライン - 新着記事 |
武田薬品の次期社長レースで女性外国人幹部が急浮上!日本人最有力候補危うし? - 人事コンフィデンシャル |
https://diamond.jp/articles/-/300952
|
最高経営責任者 |
2022-04-05 05:20:00 |
ビジネス |
ダイヤモンド・オンライン - 新着記事 |
丸井がエポスカード特許訴訟ではまった罠、「社員の発明対価」の備えを怠った企業の末路 - 丸井 レッドカード |
https://diamond.jp/articles/-/300569
|
|
2022-04-05 05:15:00 |
ビジネス |
ダイヤモンド・オンライン - 新着記事 |
旧日産系マレリ「救済スポンサー」にインド自動車部品大手が急浮上、米ファンドと応札か - 日産マレリ劇場、開幕 |
https://diamond.jp/articles/-/301010
|
自動車部品 |
2022-04-05 05:07:00 |
ビジネス |
ダイヤモンド・オンライン - 新着記事 |
『鬼滅の刃』大ヒットの東宝は業績好調か?「オルタナティブデータ」で検証 - トップアナリスト「緊急提言」 |
https://diamond.jp/articles/-/300625
|
投資判断 |
2022-04-05 05:05:00 |
ビジネス |
電通報 | 広告業界動向とマーケティングのコラム・ニュース |
「2021年日本の広告費」特別対談。DXの時代と、広告の社会的責任 |
https://dentsu-ho.com/articles/8141
|
日本の広告費 |
2022-04-05 06:00:00 |
ビジネス |
電通報 | 広告業界動向とマーケティングのコラム・ニュース |
パーパス時代の鍵とは?企業PR×ウェブコンテンツの可能性 |
https://dentsu-ho.com/articles/8132
|
newspicksstudios |
2022-04-05 06:00:00 |
北海道 |
北海道新聞 |
上海、都市封鎖を継続 解除時期不明、新型コロナ |
https://www.hokkaido-np.co.jp/article/665465/
|
新型コロナウイルス |
2022-04-05 05:12:00 |
北海道 |
北海道新聞 |
<社説>キーウ近郊虐殺 戦争犯罪の徹底追及を |
https://www.hokkaido-np.co.jp/article/665425/
|
戦争犯罪 |
2022-04-05 05:05:00 |
北海道 |
北海道新聞 |
阪神、矢野監督が最後まで指揮 藤原オーナーが明言 |
https://www.hokkaido-np.co.jp/article/665464/
|
藤原崇起 |
2022-04-05 05:02:00 |
ビジネス |
東洋経済オンライン |
「発達障害」増加の裏で教師の休職続出が止まない 精神疾患の休職者は1990年から20年間で5倍に | 「発達障害」は学校から生まれる | 東洋経済オンライン |
https://toyokeizai.net/articles/-/578546?utm_source=rss&utm_medium=http&utm_campaign=link_back
|
東洋経済オンライン |
2022-04-05 05:20:00 |
GCP |
Cloud Blog |
Calling Google APIs from serverless (Part I: Cloud APIs) |
https://cloud.google.com/blog/topics/developers-practitioners/calling-google-apis-serverless-part-i-cloud-apis/
|
Calling Google APIs from serverless Part I Cloud APIs IntroductionAs Google Cloud users you may already be familiar with Google App Engine Cloud Functions or Cloud Run our serverless platforms allowing technical practitioners to focus on building solutions not what they run on Google as a whole has many divisions which provide developer tools beyond these platforms so a common question which arises is How do you call Google APIs from serverless We ll tackle this query in two phases starting with how to access Cloud APIs from serverless Most Cloud APIs have their own product client libraries you ll use from serverless and even non serverless platforms Below we ll demonstrate a sample app calling Cloud APIs from serverless to kick off this conversation Non Cloud Google APIs operate differently You ll likely have to use a platform client library as individual products may not have their own client libraries One key difference that sets Cloud and non Cloud APIs apart is that their security models differ depending on who owns the data your apps try to access and this is where we ll dive in API securityMost Cloud APIs have their own product client libraries and use a combination of service accounts for authentication and Cloud IAM permissions for authorization To ease the onboarding process all Cloud compute platforms including serverless provide default service accounts which are granted a wide variety of permissions Once you ve finished prototyping and moving to production follow the best practice of least privilege with user managed service accounts providing only the permissions needed for your app to function properly The sample app doesn t show these steps for simplicity but they should be employed for your apps To simplify the onboarding process we ll use the default service accounts for the sample app When you eventually switch to user managed service accounts your code doesn t need to change as the Application Default Credentials ADC library looks for the most appropriate service account to use With that in mind let s take a look at the sample app The applicationThe app demonstrates use of the Cloud Translation API one of our AI ML building block APIs now part of our Vertex AI offering If Google Translate had an API Cloud Translation would be it This API is used to implement a minimal Google Translate from English to Spanish The app prompts for the text to translate calls Cloud Translation to do the heavy lifting then displays the results in the browser Python and Node js versions of the app are available in its open source repo At the heart of the application is its translate function shown in pseudocode below The heart of the application the translate functionUse of Cloud APIs requires several lines of code At the top is the import require that connects your app to the Cloud Translation client library The very next line instantiates an API client with which to connect to the API Here the service account credentials ADC are checked whether the default service account demonstrated here or the user managed service account you ll use for your app Once an API client has been created you can access any API functionality the service account has permissions for in this case we have one call to the API near the middle to perform the actual translation That s it Both apps feature less than lines of actual code All other lines are used only for application purposes When we cover non Cloud Google APIs in the next post you ll observe code that looks similar The client libraries and auth types will change but the flow will roughly be the same import the library create an API client use the client object to access API functionality Choose a serverless platform to deploy the sample app to Once deployed to the cloud accessing it to make one translation of hello world results in program output like what you see below The output will look identical for all three platforms but the screenshot featured is the Cloud Run version My Google Translate MVP app Cloud Run edition While this app demonstrates accessing Cloud APIs from serverless it has been written with another purpose it can be deployed to App Engine Cloud Functions or Cloud Run with no code changes The differences are managed in the configuration For users new to our serverless platforms this will help you learn them better gain a greater understanding of how they re similar and different from each other and lastly how to write code that can run on any of them in case you pick one but then decide later another one is a better fit This means you can t make a mistake and pick the wrong platform when you can shift between them Also see this companion post covering the same sample app but from the perspective of the configuration changes necessary to get it to run on another Cloud serverless platform Next stepsIn addition to the code the repo also links you to various codelabs self paced hands on tutorials that guide you in building and deploying this app to any of the serverless platforms or running locally in either Python or Node js An active Google Cloud billing account is required to deploy to the cloud but you shouldn t incur charges if you run it briefly and stay within each product s Always Free tier More information can be found in the Cost section in the README Once you know how to call one Cloud API accessing others will be quite similar See you next time when we ll cover how to access non Cloud Google APIs from serverless Related ArticleImage archive analysis and report generation with Google APIsFile backup isn t the most exciting topic while analyzing images with AI ML is more interestingーso combining them probably isn t a workf Read Article |
2022-04-04 20:30:00 |
コメント
コメントを投稿