Program |
[全てのタグ]の新着質問一覧|teratail(テラテイル) |
一部アプリケーション(MQL5)からのGASの呼出しが404エラーとなる |
https://teratail.com/questions/348077?rss=all
|
一部アプリケーションMQLからのGASの呼出しがエラーとなる前提・実現したいことMT、MTというFX自動売買用のツールからGASで作成したウェブアプリケーションへHttpsリクエストでアクセスし、スプレッドシートの値を取得するというシステムを構築しております。 |
2021-07-07 02:58:37 |
Program |
[全てのタグ]の新着質問一覧|teratail(テラテイル) |
指定したディレクトリ内のファイル、ディレクトリを読み込み、階層関係に対応したい |
https://teratail.com/questions/348076?rss=all
|
指定したディレクトリ内のファイル、ディレクトリを読み込み、階層関係に対応したい前提・実現したいことAndroidnbspStudioでAndroidアプリを開発しています。 |
2021-07-07 02:50:42 |
Program |
[全てのタグ]の新着質問一覧|teratail(テラテイル) |
iMacros、特定コマンドの時間指定について |
https://teratail.com/questions/348075?rss=all
|
iMacros、特定コマンドの時間指定について前提・実現したいことiMacrosの特定の動作を決まった時間に行うようにしたいです。 |
2021-07-07 02:21:30 |
Program |
[全てのタグ]の新着質問一覧|teratail(テラテイル) |
jarファイル内のプロパティファイルを参照する方法について |
https://teratail.com/questions/348074?rss=all
|
jarファイル内のプロパティファイルを参照する方法について前提・実現したいことjarファイル内に存在するプロパティファイルの読み込みを行いたいです。 |
2021-07-07 02:18:55 |
Program |
[全てのタグ]の新着質問一覧|teratail(テラテイル) |
haskellでライフゲームを作りたい |
https://teratail.com/questions/348073?rss=all
|
その後nextでその座標を中心に周りを更新するという事を考えました。 |
2021-07-07 02:17:25 |
Docker |
dockerタグが付けられた新着投稿 - Qiita |
DockerでNode.js環境構築する際、コンテナ生成時にpackage.jsonからパッケージを展開する方法 |
https://qiita.com/YamaDash82/items/78b8caee64cf575fdbdc
|
エラーは発生しましたが、dokcerpsaコマンドを確認すると、コンテナは生成されていました。 |
2021-07-07 02:05:21 |
海外TECH |
Ars Technica |
Bitcoin power plant is turning a 12,000-year-old glacial lake into a hot tub |
https://arstechnica.com/?p=1778369
|
cryptocurrency |
2021-07-06 17:38:49 |
海外TECH |
Ars Technica |
Microsoft’s Surface Duo falls even lower, now almost $1000 off |
https://arstechnica.com/?p=1778306
|
android |
2021-07-06 17:24:38 |
海外TECH |
DEV Community |
There Is No Pot Of Gold At The End Of The Rainbow |
https://dev.to/kotzendekrabbe/there-is-no-pot-of-gold-at-the-end-of-the-rainbow-5955
|
There Is No Pot Of Gold At The End Of The RainbowRecently I watched a short video with Simon Sinek about finding the balance He talked about how people looking for the perfect partner doesn t exist the perfect job doesn t exist or the perfect company doesn t exist That you can t have impact and happiness every day that it s about finding the balance There will always be some bad days or days where you don t have the energy to give You have to have bad days to appreciate the good ones Simon added in the video that people are looking for the pot of gold at the end of a rainbow but there is no pot at the end of a rainbow There are a lot of books and speakers who are telling that there is so people start to find it However it s not about finding the pot of gold at the end of a rainbow it s about the adventure and who we take with us on the journey That is the best part The video reminded me of a situation where a colleague asked me Which was the best company you ever worked at And my answer was There is no perfect company or job Every company has issues and you need to find out what kind of issues you can live or work with So I truly agree with Simon that there is no perfect job or company And especially not for everyone because we are humans and so we are different Everyone of us needs something else Stop telling talent marketing liesWhich brings me to a topic I have been working on for a while now Helping our Recruiting department to build trustworthy talent marketing for developers In marketing it s normal to window dress products or stories That s why a lot of companies use stories people want to hear instead of what their values actually are How their culture is They tell the story of the pot of gold at the end of the rainbow instead of telling the talents hey wanna join me for an adventure I heard there is a pot of gold at the end of the rainbow I m not sure if we re gonna find it but let s go It s not important if you find the pot of gold or not it s about the relationship the journeys the experience you make with each other while you are looking for it For Employer Branding and Talent Marketing this would mean for example Instead of saying We are a diverse and inclusive company say We are committed to become a diverse and inclusive workplace and therefore we are looking for people who are helping us to bring this vision to life If a company tells shiny stories which are not the truth to attract talents those talents may join the company because they tell them what they want to hear But those talents that join will recognize sooner or later that it all was just window dressing And in the best case they quit In the worst case scenario they stay at the company without believing in the company without passion and happiness Which leads to employees who don t bring their best to the table Don t sell candidates a dummy and have them quit months later Find candidates who are willing to join your adventure Who wants to go with you on the journey to find the pot of gold at the end of the rainbow no matter if you find the pot of gold or not Photo by Austin Chan on Unsplash |
2021-07-06 17:26:00 |
海外TECH |
DEV Community |
Django full CI-CD flow to AWS with GitHub Actions and S3 |
https://dev.to/vlntsolo/django-full-ci-cd-flow-to-aws-with-github-actions-and-s3-2enp
|
Django full CI CD flow to AWS with GitHub Actions and SThis guide covers all steps needed for setting up your CI CD workflow for Django project with Amazon Beanstalk and GitHub Actions under the hood Link to sample project TOCAWS Beanstalk environmentS configurationIAM user accessGitHub workflow settingsPreparing Django settingsFirst runComposing postdeploy commands hooks Before we start what is CI CD flow in the first place Despite the fact that Django code doesn t require any build step compared to compiled apps you might find it quite frustrating to repeat a manual re upload each time you need to deploy a new feature or a bug fix Because of this CI CD Continuous integration and Continuous delivery workflows were invented CI CD workflows or pipelines allow us to safely build test and deploy web applications in a relatively short period of time usually in a matter of minutes So what about Django If you have a python application codebase hosted on a GitHub it would be enormously convenient to push it to the hosting environment right after you update the repository And that is exactly what we re going to do using GitHub Actions which is publicly available for free since late Let s dive in AWS Beanstalk environmentBefore we start configuring everything we need to be sure we have our environment warm and ready If you already have an AWS account go to the Console and search for Beanstalk If not create one here You will be asked to add billing information in order to proceed In the Beanstalk dashboard make sure you have selected the most suitable region where services to be deployed in the right top corner Check Environments and choose Create a new environment Then on the dialogue page choose Web server environment Fill in the details and focus on Platform section Here we need to select Python platform last version and last Amazon Linux available Leave Sample application and hit Create environment In a few moments you should be able to open your environment URL address and see a sample page Copy the name of the application and the environment displayed in the top left corner if you open the environment page The last thing to do here is to set up the database for Django Go to Configuration → Database and select preferred options It this example I picked a PostgreSQL since this my usual choice but you can stick with MySQL or even Oracle if you want Alert Database server created this way is suited for testing purposes only It will be strictly attached to the environment The database will be deleted if you remove or recreate the Beanstalk environment In production you should use RDS or Aurora standalone servers inside your VPC Now that we ve got a managed python environment and the database we need to prepare a file storage for our future application builds S configuration 🪣We need to set up a custom S bucket as a temporary storage for our builds before they will be pushed to the Beanstalk Search for S in AWS console or switch to it from the menu Then select Create bucket Type in some unique name and select your region Leave the checkbox on Block all public access and proceed with Apply The next thing we need to do is to generate programmatic access credentials which will be used by GitHub Action to deploy our Django app IAM user access Search for IAM users in the AWS console and select Add user On the permissions page select Attach existing policies directly Search for SFullAccess and select the checkbox Repeat the same steps for AdministratorAccess AWSElasticBeanstalk and hit Add user Finally copy Access key ID and Secret from the last step Make sure to save this info somewhere safe since user secret will be shown only once Looks like we re done with AWS and ready to proceed with GitHub GitHub workflow settings Go back to your Django project and create a folder called github And one more folder inside it called workflows GitHub Actions config should be placed inside and formatted with YAML syntax See my example below Location github workflows custom config ymlname CI CD pipeline to AWSenv EB S BUCKET NAME YOUR BUCKET NAME FROM Step EB APPLICATION NAME YOUR APP NAME FROM Step EB ENVIRONMENT NAME YOUR ENVIRONMENT NAME FROM Step DEPLOY PACKAGE NAME django app github sha zip AWS REGION NAME YOUR AWS REGION us east eu central etc on push branches master Use your own branch here Might be staging or testing jobs build runs on ubuntu latest steps name Git clone on our repo uses actions checkout v name Create zip deployment package run zip r env DEPLOY PACKAGE NAME x git name Configure AWS credentials uses aws actions configure aws credentials v with aws access key id secrets aws access key id aws secret access key secrets aws secret access key aws region env AWS REGION NAME name Copying file to S run aws s cp env DEPLOY PACKAGE NAME s env EB S BUCKET NAME name Print nice message on success finish run echo CI part finished successfuly deploy runs on ubuntu latest needs build steps name Configure AWS credentials uses aws actions configure aws credentials v with aws access key id secrets aws access key id aws secret access key secrets aws secret access key aws region env AWS REGION NAME name Create new EBL app ver run aws elasticbeanstalk create application version application name env EB APPLICATION NAME source bundle SBucket env EB S BUCKET NAME SKey env DEPLOY PACKAGE NAME version label github sha name Deploy new app run aws elasticbeanstalk update environment environment name env EB ENVIRONMENT NAME version label github sha name Print nice message on success finish run echo CD part finished successfuly Let s go through the surface of the config blocks and check their purpose More details can be found here env block serves as a list of shortcuts for variables inside the config We define our non sensitive data here jobs block defines what actually will be done build block is just a job name and includes a list of steps to perform in our building process For a pure Django app this means only zipping the working directory and pushing it to the S bucket steps block lists names and actual commands to execute on the virtual machine You might easily add another job name called testing and run manage py test step within it needs block is a prerequisite for further execution In our case we re making sure that our file transfer was completed successfully before we send commands to the Beanstalk on block specifies the trigger event like our push as well as the target branch If you come up with several Beanstalk environments QA testing staging production etc you d need to place new config yml files for them and change env vars and branch accordingly You might also notice that we didn t define secrets aws access key id or secrets aws secret access key yet Let s fix that Open your GitHub repo or create one for your project and go to Settings → Secrets → New repository secret Paste your IAM user key and secret there like this Repeat the same step for aws secret access key and it s value That s it Preparing Django settings Remember we ve connected a Relational database to our Beanstalk environment at Step But where are the connection parameters and db user credentials With integrated database Beanstalk exposes env variables which can be used right away main django app settings pyimport osALLOWED HOSTS YOUR ENVIRONMENT HOST DATABASES default ENGINE django db backends postgresql psycopg NAME os environ RDS DB NAME USER os environ RDS USERNAME PASSWORD os environ RDS PASSWORD HOST os environ RDS HOSTNAME PORT os environ RDS PORT rest of the settingsDon t forget to add your environment URL and main domain to allowed hosts list At this point we need to make sure that Beanstalk python platform will be ready to establish a connection with PostgreSQL Let s tell it to install some extras for us Create a folder in your project root called ebextensions and place there a file packages config packages yum amazon linux extras commands postgres activate command sudo amazon linux extras enable postgresql postgres install command sudo yum install y postgresql develNow we need to add Django config to inform Beanstalk s WSGI server about our main app and settings Create another file inside ebextensions folder called django config option settings aws elasticbeanstalk container python WSGIPath main django app wsgi application aws elasticbeanstalk application environment DJANGO SETTINGS MODULE main django app settings PYTHONPATH var app current PYTHONPATH aws elasticbeanstalk environment proxy staticfiles static staticChange main django app to your Django application name Last row aws elasticbeanstalk environment proxy staticfiles tells which folder to serve through the reverse proxy and which relative URL to use Finally freeze your local python environment with pip freeze gt requirements txt it will be the primary source for Beanstalk to configure EC environment First run Push any changes to your specified branch and visit Actions tab If your actions completed successfully you will see the green mark If something went wrong open the logs and resolve the errors inside Got errors after successful GitHub Actions run Visit Elastic Beanstalk environment and check the Logs Hopefully you ll see something like this Composing postdeploy commands hooks There s still few commands that should be executed after deploy We need to migrate our changes to the Beanstalk database migration files created by makemigrations command should be a part of your codebase We need to collect static files no need to keep your static files in a codebase This problem could be solved with Beanstalk postdeploy hooks File names could be totally custom but file extension is important All sh files will be executed in alphanumerical order In your project root create a folder platform with the following structure platform └ーhooks └ーpostdeploy django sh bin bashsource var app venv bin activate amp amp collecting static filespython manage py collectstatic noinput log which migrations have already been appliedpython manage py showmigrations migrate the restpython manage py migrate noinput another command to create a superuser write your own You ve got the idea Now you can figure out how to create the superuser account ️Important notes Review IAM user access policy For the tutorial purpose I ve granted full access to S and Beanstalk Make sure that you grant only required permissions for GitHub Actions client in order to prevent unpleasant consequences in case of secret key leakage Add lifecycle rules to S bucket and Application versions storage By default S doesn t delete application versions or any other files from the buckets Use lifecycle rules in both S and Beanstalk to keep only needed app versions AWS Beanstalk health checking system might not work properly severe health status because of Django ALLOWED HOSTS restriction in headers I don t know the right way of handling this issue you can either ignore status warnings or set ALLOWED HOSTS at your own risk If you re going to use PostgreSQL don t forget to install the package with pip install psycopg binary and freeze the requirements txt Useful links How to split Django settings for different environmentsHow to configure Django Q with Supervisor on AL BeanstalkDeploying a Django application to Elastic BeanstalkWorkflow syntax for GitHub ActionsHope you ve enjoyed following this guide Stay tuned and next time I might cover how to set up a full stack Django based project with truly seamless dev experience This article was originally published in my blog post |
2021-07-06 17:24:27 |
海外TECH |
Engadget |
DOD cancels $10 billion JEDI contract at center of Microsoft and Amazon feud |
https://www.engadget.com/department-of-defense-cancels-jedi-contract-172009337.html?src=rss
|
DOD cancels billion JEDI contract at center of Microsoft and Amazon feudThe Department of Defense is canceling its billion Joint Enterprise Defense Infrastructure JEDI cloud contract The Pentagon said it “initiated contract termination procedures in a press release it shared on Tuesday noting “the Department has determined that due to evolving requirements increased cloud conversancy and industry advances the JEDI Cloud contract no longer meets its needs With JEDI the Defense Department had planned to modernize its IT infrastructure but the contract hadn t moved forward since the Pentagon awarded it to Microsoft in on account of a legal challenge from Amazon One month after JEDI went to Redmond Amazon filed a formal challenge with the US Court of Federal Claims alleging the Pentagon showed “unmistakable bias when it evaluated the two companies When the lawsuit was eventually unsealed later that same year it came out that Amazon believed it lost the contract due to interference from former President Donald Trump According to the company Trump “used his power to screw Amazon out of the JEDI Contract as part of his highly public personal vendetta against Mr Bezos Amazon and The Washington Post Following an internal audit the Pentagon s inspector general released a report that said it found no evidence that the Trump Administration had interfered with the procurement process At the same time it noted that several White House officials did not cooperate with the probe As such it could not definitively determine whether the administration had affected the process nbsp nbsp nbsp nbsp nbsp Shortly after the Defense Department announced it wasn t moving forward with JEDI Microsoft published a blog post on the decision “We understand the DOD s rationale and we support them and every military member who needs the mission critical st century technology JEDI would have provided The DOD faced a difficult choice continue with what could be a years long litigation battle or find another path forward the company said “The security of the United States is more important than any single contract and we know that Microsoft will do well when the nation does well Microsoft went on to say the episode highlights the need for lawmakers to look at the challenge process quot The months since DOD selected Microsoft as its JEDI partner highlights issues that warrant the attention of policymakers when one company can delay for years critical technology upgrades for those who defend our nation the protest process needs reform quot it said nbsp nbsp We ve reached out to Amazon for its response to the development and we ll update this article when we hear back from the company Alongside the cancelation the Pentagon announced a new multi vendor contract called the Joint Warfighter Cloud Capability JWCC The agency plans to collect proposals from both Amazon and Microsoft It contends they re the two vendors best suited to meet its needs though it also plans to see if other companies can help it modernize its IT infrastructure The Defense Department told CNBC nbsp and other outlets during a call that it expects to award the first direct JWCC contracts in with the procurement process to open more broadly as soon as It also said the litigation with Amazon wasn t the primary reason for the cancelation of JEDI “The mission needs have been our primary driver on this John Sherman the DOD acting chief information officer said nbsp |
2021-07-06 17:20:09 |
Cisco |
Cisco Blog |
Overcoming the next hurdle to get to 800G pluggable optics: Cisco Optics Podcast Episode 7 notes |
https://blogs.cisco.com/sp/overcoming-the-next-hurdle-to-get-to-800g-pluggable-optics-cisco-optics-podcast-episode-7-notes
|
Overcoming the next hurdle to get to G pluggable optics Cisco Optics Podcast Episode notesJoin us for Episode of the Cisco Optics Podcast where we continue a conversation with Dr Mark Nowell Cisco Fellow in Cisco s Optics and Optical Systems Group |
2021-07-06 17:04:08 |
ニュース |
BBC News - Home |
Rape victims still face police phone trawl, says commissioner |
https://www.bbc.co.uk/news/education-57738550
|
baird |
2021-07-06 17:01:26 |
ニュース |
BBC News - Home |
Fishmongers' Hall: Steven Gallant to be freed from prison |
https://www.bbc.co.uk/news/uk-england-london-57742691
|
knifeman |
2021-07-06 17:26:23 |
ニュース |
BBC News - Home |
Barty cruises into Wimbledon semi-finals for first time |
https://www.bbc.co.uk/sport/tennis/57737313
|
finals |
2021-07-06 17:40:35 |
ニュース |
BBC News - Home |
Some firms to insist customers and staff still wear face masks |
https://www.bbc.co.uk/news/business-57677159
|
choice |
2021-07-06 17:45:20 |
ビジネス |
ダイヤモンド・オンライン - 新着記事 |
「責任感が欠如していると、 人任せになる」というが、 はたして本当か? - 組織が変わる |
https://diamond.jp/articles/-/273557
|
慢性疾患ってうちの会社のことすべて見抜かれている」「『他者と働く』が慢性疾患の現状認識ツールなら、『組織が変わる』は慢性疾患の寛解ツールだ」「言語化できないモヤモヤの正体が形になって現れる体験は衝撃でした」職場に活気がない、会議で発言が出てこない、職場がギスギスしている、仕事のミスが多い、忙しいのに数字が上がらない、病欠が増えている、離職者が多い……これらを「組織の慢性疾患」と呼び、セルフケアの方法を初めて紹介した宇田川氏。 |
2021-07-07 02:40:00 |
ビジネス |
ダイヤモンド・オンライン - 新着記事 |
企業の不況耐性指数「無収入寿命」を あっという間に伸ばす裏技とは? - 売上最小化、利益最大化の法則 |
https://diamond.jp/articles/-/273677
|
|
2021-07-07 02:35:00 |
ビジネス |
ダイヤモンド・オンライン - 新着記事 |
アメリカは世界一の原油産出国、なぜ一気に増えた? - 経済は統計から学べ! |
https://diamond.jp/articles/-/275198
|
統計 |
2021-07-07 02:30:00 |
ビジネス |
ダイヤモンド・オンライン - 新着記事 |
野付半島はなぜ「伸びる」のか - 地図なぞり |
https://diamond.jp/articles/-/275599
|
野付半島はなぜ「伸びる」のか地図なぞり「どこかに行ってしまいたい」。 |
2021-07-07 02:25:00 |
ビジネス |
ダイヤモンド・オンライン - 新着記事 |
ハーバード伝説の授業、 10年のマーケットサイクルと 5年の人間の記憶サイクルとは? - ハーバード式不動産投資術 |
https://diamond.jp/articles/-/275726
|
|
2021-07-07 02:20:00 |
ビジネス |
ダイヤモンド・オンライン - 新着記事 |
約3800社もある上場企業の中から どうやって株価の上昇が期待できる 有望銘柄を探し出せばいいのか? - 黒字転換2倍株で勝つ投資術 |
https://diamond.jp/articles/-/275903
|
約社もある上場企業の中からどうやって株価の上昇が期待できる有望銘柄を探し出せばいいのか黒字転換倍株で勝つ投資術四半期ベースで営業利益・経常利益が黒字転換する企業は、一体どれくらいあるかご存じでしょうかたとえば、年月末時点でスクリーニングしたところ、約社のうち社でした。 |
2021-07-07 02:15:00 |
ビジネス |
ダイヤモンド・オンライン - 新着記事 |
「U2が稼いだ54億円」と「ビヨンセが稼いだ62億円」はどこから来たか? - ROCKONOMICS 経済はロックに学べ! |
https://diamond.jp/articles/-/276022
|
|
2021-07-07 02:10:00 |
ビジネス |
ダイヤモンド・オンライン - 新着記事 |
【マンガ】30歳「総務歴7年」の女性は会社のお荷物か? 転職できるか? - マンガ転職の思考法 |
https://diamond.jp/articles/-/276064
|
|
2021-07-07 02:05:00 |
コメント
コメントを投稿