投稿時間:2021-11-28 22:25:23 RSSフィード2021-11-28 22:00 分まとめ(28件)

カテゴリー等 サイト名等 記事タイトル・トレンドワード等 リンクURL 頻出ワード・要約等/検索ボリューム 登録日
Program [全てのタグ]の新着質問一覧|teratail(テラテイル) Rspec validateの中でparameterを使用しているときのモデルspecについて https://teratail.com/questions/371377?rss=all Rspecvalidateの中でparameterを使用しているときのモデルspecについてRailsnbspAPIを使用してアプリを作成しています。 2021-11-28 21:48:44
Program [全てのタグ]の新着質問一覧|teratail(テラテイル) pythonでimport sys のコードが動かない https://teratail.com/questions/371376?rss=all pythonでimportsysのコードが動かないmacbookで競プロの問題を解いている最中に起こった現象なのですが、状況を箇条書きにするといかになります。 2021-11-28 21:43:42
Program [全てのタグ]の新着質問一覧|teratail(テラテイル) c++において下位クラスから上位クラスのメンバ変数にアクセスする方法 https://teratail.com/questions/371375?rss=all Personクラスはint型の変数moneyとstring型の変数nameをそれぞれつずつ持ち、つのメンバ関数pfを持ち、Roomクラスはつのint型メンバ変数point、つのPersonクラスのメンバ変数pnbspp、つのメンバ関数rfを持ちます。 2021-11-28 21:37:54
Program [全てのタグ]の新着質問一覧|teratail(テラテイル) Flaskで画像が保存出来ません… https://teratail.com/questions/371374?rss=all 画像は保存されていません。 2021-11-28 21:23:00
Program [全てのタグ]の新着質問一覧|teratail(テラテイル) Excelで漢字+時間の文字列で時間だけを抽出したい https://teratail.com/questions/371373?rss=all Excelで漢字時間の文字列で時間だけを抽出したいExcelで漢字と時間が同一セル内に入力されている場合に時間のを抽出する方法は有りますでしょうか。 2021-11-28 21:20:16
Program [全てのタグ]の新着質問一覧|teratail(テラテイル) GAS Spreadsheetサービス new演算子 https://teratail.com/questions/371372?rss=all GASSpreadsheetサービスnew演算子ご覧いただきありがとうございます。 2021-11-28 21:18:10
Linux Ubuntuタグが付けられた新着投稿 - Qiita Ubuntu/Anaconda環境でGDALとopencvを使おうとしたときにハマったことメモ https://qiita.com/tsuhiro_kttn/items/a0576c575072e6b266b1 EAEAnotebookwhichjupyterjupyterパスはhomeubuntujupyterとなっていて、そもそも仮想環境内でjupyterが使えていないことに気づきました。 2021-11-28 21:09:46
AWS AWSタグが付けられた新着投稿 - Qiita AWS HTTPS通信でアクセス / CloudFront https://qiita.com/haruki_uejima/items/51d87a73504063290e87 カスタムエラーページの生成Sと組み合わせた構成例XX系はCloudFront側ですべてをハンドリングしていないかつ、クライアント要求のエラーのため、オリジン側で対処Webサーバ側でXXエラー時のページ設定XX系はオリジン側のエラーのため、CloudFront側で対処XXのカスタムエラーページをSに設定XXはオプション※エラーキャッシュ期間ErrorCachingMinimumTTLはデフォルト分オリジンオリジンの読み取りタイムアウトCloudFrontがカスタムオリジンからの応答を待つ時間を指定デフォルトのタイムアウトは秒秒の範囲キープアライブタイムアウト接続を閉じる前にCloudFrontがカスタムオリジンサーバーとの持続的接続を維持する最大時間を指定デフォルトは、秒秒の範囲CloudFrontオリジンフェイルオーバーによる高可用性オリジングループを作成し、プライマリオリジン·セカンダリオリジンを指定エラーHTTPステータスコードを返した場合や接続タイムアウトした場合にバックアップオリジンにルーティングカスタムエラーページでもオリジンフェイルオーバー可能地域制限地域指定によるアクセス制御接続されるクライアントの地域情報を元にエッジでアクセス判定Blacklist、Whitelistで指定可能ディストリビューション全体に対して適用される署名付きURLCookieを利用したプライベートコンテンツ配信RestrictedViewerAccessを有効にするだけで、署名のないアクセスを全てブロック単一コンテンツアクセスの場合は、署名付きURLの利用が推奨複数コンテンツアクセスの場合は、署名付きCookieの利用が推奨オリジンサーバの保護オリジンがSの場合OriginAccessIdentityOAIを使用。 2021-11-28 21:46:40
AWS AWSタグが付けられた新着投稿 - Qiita 何となくわかった気になる週刊AWS - 2021/11/15週 https://qiita.com/NaGym_t/items/7909a1067a23d059f54a 新コンソールになったことにより、以下のことができるようになりました。 2021-11-28 21:33:52
Docker dockerタグが付けられた新着投稿 - Qiita bundle installが原因でdocker-composeが立ち上がらなかった話 https://qiita.com/daigo01090118/items/ed82ba303679a5b3b60f dockercomposerunwebbundleinstallその後コマンドdockercomposeupを入力してくださいこれでlocalhostにアクセスすることで表示されるはずなのですが、実際にアクセスしてみると、エラーになるはずです。 2021-11-28 21:35:50
Docker dockerタグが付けられた新着投稿 - Qiita Dockerコンテナ内にあるファイルのバックアップ方法 https://qiita.com/The-town/items/758c487246a8ac89582f Dockerボリューム内にあるファイルをバックアップする以下のdockerrunコマンドを実行することで、Dockerボリューム内にあるファイルをOS上のディレクトリにバックアップできます。 2021-11-28 21:10:47
Ruby Railsタグが付けられた新着投稿 - Qiita 【Railsチュートリアル】ユーザー検索機能の実装 https://qiita.com/supyolo888/items/3653c0b118900060db5e 【Railsチュートリアル】ユーザー検索機能の実装はじめに前回の記事【Railsチュートリアル】いいね機能の実装に引き続きRailsチュートリアル第版sampleappの機能拡張を進めていく。 2021-11-28 21:43:13
Ruby Railsタグが付けられた新着投稿 - Qiita bundle installが原因でdocker-composeが立ち上がらなかった話 https://qiita.com/daigo01090118/items/ed82ba303679a5b3b60f dockercomposerunwebbundleinstallその後コマンドdockercomposeupを入力してくださいこれでlocalhostにアクセスすることで表示されるはずなのですが、実際にアクセスしてみると、エラーになるはずです。 2021-11-28 21:35:50
技術ブログ Developers.IO リザーブドインスタンスや Savings Plans を購入した後に料金が改定されたらどうなるか https://dev.classmethod.jp/articles/reserved-instances-savings-plans-price-revision/ savingsplans 2021-11-28 12:52:59
海外TECH Ars Technica This decorated mammoth ivory pendant is 41,500 years old https://arstechnica.com/?p=1816250 europe 2021-11-28 12:15:01
海外TECH MakeUseOf “NFT” Is Collins Dictionary's Word of the Year for 2021 https://www.makeuseof.com/nft-is-collins-dictionary-word-of-the-year-2021/ “NFT Is Collins Dictionary x s Word of the Year for The term NFT which led to the virtual asset craze is Collins Dictionary s word of the year Find out what made it beat other words to the prize 2021-11-28 12:17:34
海外TECH DEV Community Make onboarding simple using VS Code Remote Containers https://dev.to/b3ncr/make-onboarding-simple-using-vs-code-remote-containers-2emg Make onboarding simple using VS Code Remote ContainersNote this article was written before the Docker Desktop license change but I still think it s a valuable technique I believe that the Docker Desktop license will still be good value for money compared with the time it takes to setup a dev environment Over the last few weeks our team has grown rapidly Each time a new engineer joins the team or an existing engineer gets a new machine we dig out the laptop onboarding guide and spend a chunk of time installing the right frameworks and tools to get our teammate up and running This can be fairly painful the onboarding doc isn t always updated links die and toolchains evolve To add to this we have a mix of Apple Windows and Linux users which means we might be trying to support someone using a platform we re not familiar with Another issue we have is that our squad is responsible for multiple services These have slightly different dependencies Different versions of NodeJS Python Serverless Framework or CDK different test runners etc Add consultancy into the mix and we might have people working on several services at multiple clients and managing the dependency mix gets difficult Wouldn t it be useful if we had some light weight isolated operating systems Something we could run on any machine and that we can configure separately without them impacting each other Luckily for us Docker exists and can do exactly this Even better Microsoft have created the Visual Studio Code Remote Containers extension which lets you use a Docker container as a full featured development environment within VS Code This is how we solved some of the problems we came up against using Dev Container and Serverless framework Not using dev containersThe first problem we have is that not everyone on our team wants to use VS Code Because of this everything we change to enable dev containers needs to also work natively and with our CI CD pipeline This baiscally boils down to replacing localhost with the container hostname which is available by default in a Docker container const hostname process env HOSTNAME localhost Using DockerWe use LocalStack for integration testing so we need to be able to run containers from within our dev container It s possible to install a container engine within a container and create child containers but it s complex and there s a simpler solution We can use Docker on the host machine to create sibling containers by installing the Docker CLI and mounting var run docker sock The devcontainer json settings file has a mounts property which can be used to have some control over the dev container file system mounts source var run docker sock target var run docker sock type bind Docker Sock PermissionsIf you re using a non root user inside your dev container and you probably should then you need to give that user permissions to use docker sock You could run this as sudo and it will persist until you rebuild the container or it can be automated using a post run command in the devcontainer json file which means no one has to remember to do it postCreateCommand sudo chown vscode vscode var run docker sock Using AWS and GitWe need to use the AWS CLI and Github We could duplicate the credentials and keys in our dev container file system but they would not persist if we had to rebuild the container and aren t reusable between different projects We can share the host s ssh keys and AWS credentials by mounting the host file system in the container again using the mounts property in devcontainer json mounts source localEnv HOME localEnv USERPROFILE aws target home vscode aws type bind source localEnv HOME localEnv USERPROFILE ssh target home vscode ssh type bind Filesystem Performance IssuesWe re using the serverless webpack plugin but we were getting errors during packaging Serverless Packing external modules Error Error npm install failed with code at ChildProcess lt anonymous gt workspace node modules serverless webpack lib utils js at ChildProcess emit events js at ChildProcess EventEmitter emit domain js at maybeClose internal child process js at Process ChildProcess handle onexit internal child process js The error message doesn t give any pointers to what s going wrong but there were some clues when we tried to clean up the webpack folder Running ls from inside the container showed it to be enpty but it wouldn t allow us to delete it because it wasn t empty on the host This is because the default source code mount uses the cached consistency model The cached consistency model is more appropriate for files which the host modifies There s a good description of the different modes in this StackOverflow answer Our solution was to use a volume for the webpack and node modules folders as volumes are the preferred mechanism for persisting data generated by and used by Docker containers mounts property to the rescue again mounts source node modules target containerWorkspaceFolder node modules type volume source webpack target containerWorkspaceFolder webpack type volume These folders will be owned by root so we ll use the postCreateCommand again to change their ownership back to vscode postCreateCommand sudo chown vscode vscode node modules amp amp sudo chown vscode vscode webpack Finally we need to modify the webpack config slightly It s not possible for the container to delete the volume so we ve set the webpack output path to a sub folder in the webpack config js output libraryTarget commonjs path path join dirname webpack build filename name js Another option would be to use a delegated mount which are more appropriate when the container s view of the filesystem is authoritive or clone the whole repo into a container volume Docker NetworkingAs I mentioned earlier we re using LocalStack for integration testing and we have a bash script which uses docker compose to manage that container Docker compose creates a network for the workload this allows all the containers in the workload to communicate easily but it isolates them from other workloads and individual containers This meant that Serverless offline and the tests which were running in the dev container couldn t access the database running in LocalStack Docker containers can be attached to more than one network at a time so we ve solved this by creating a dedicated network and attaching the dev container and LocalStack container to it There are another couple of properties in the settings file which can help us with this We can ensure the network exists before we start the dev container using the initializeCommand property and use runArgs to provide additional arguments to the dev container we append true to the initializeCommand to ensure the command succeeds if the network already exists initializeCommand docker network create payment network true runArgs network payment network This is only half the job We also need to attach the LocalStack container to the network and we still can t use localhost for addressing This is another area where we ve had to consider the CI CD pipeline and users who don t want to use VS Code In our test setup shell script we inspect an environment variable which will only be present in our dev container and combine settings from more than one YAML file by using the f parameter We can set environment variables in the dev container using the containerEnv property in devcontainer json if z LOCALSTACK HOST then docker compose f docker compose yml up d localstackelse docker compose f docker compose yml f docker compose devcontainer yml up d localstackfi docker compose ymlversion services localstack image localstack localstack environment DEFAULT REGION eu west DEBUG true LAMBDA EXECUTOR docker volumes var run docker sock var run docker sock ports docker compose devcontainer ymlversion services localstack container name paymentslocalstack environment HOSTNAME EXTERNAL paymentslocalstacknetworks default external name payment network containerEnv LOCALSTACK HOST paymentslocalstack LOCALSTACK PORT Specifying the container name in the devcontainer compose file means we ve got a consistent hostname we can use to address the LocalStack container and we expose that inside the dev container using an environment variable Another thing to remember about container networking is that containers on the same network don t need to use the mapped external port That s only required for the host to container communication We ve also added this as an environment variable so we can use it in our tests The final issue we had with networking was LocalStack specific Many AWS services publish metadata which includes the host name i e SQS queue URLs This metadata is fundamental to how they operate We need to tell LocalStack the new hostname by setting the HOSTNAME EXTERNAL environment variable in that container which you can see in the second docker compose yaml file SummaryNow we ve got a repeatable way to onboard new team members no one should ever install the wrong version of Python again Instead of taking hours or even days to get their system setup possibly being guided by someone else on the squad new team members can get themselves up and running in minutes Hopefully some of these fixes will be useful for you when you setup a dev container for your project The next step for us is to investigate how we can use this with GitHub Code Spaces 2021-11-28 12:12:41
Apple AppleInsider - Frontpage News Amazon Cyber Monday deals are live: Up to 70% off Beats, routers, OLED TVs, Apple hardware, Sony headphones https://appleinsider.com/articles/21/11/28/amazon-cyber-monday-deals-are-live-up-to-70-off-beats-routers-oled-tvs-apple-hardware-sony-headphones?utm_medium=rss Amazon Cyber Monday deals are live Up to off Beats routers OLED TVs Apple hardware Sony headphonesAmazon s Cyber Monday deals start now with discounts of up to off everything from K OLED TVs to Apple AirPods Find out which deals are a must with even better than Black Friday pricing Amazon Cyber Monday Sale starts nowHundreds of Cyber Monday deals have launched at Amazon ahead of what could be the biggest shopping day of the year offering shoppers significant savings in nearly every vertical The AppleInsider Deals Team has been hard at work analyzing the latest offers to handpick the very best bargains from the flash sale Read more 2021-11-28 12:57:29
Apple AppleInsider - Frontpage News B&H issues triple-digit price cuts on Apple's MacBook Air, 24-inch iMac this weekend only https://appleinsider.com/articles/21/11/27/bh-issues-triple-digit-price-cuts-on-apples-macbook-air-24-inch-imac-this-weekend-only?utm_medium=rss B amp H issues triple digit price cuts on Apple x s MacBook Air inch iMac this weekend onlyBlack Friday deals are still going strong with new bargains added to the mix that end Sunday driving prices down to as low as for models with GB of RAM Exclusive Black Friday weekend dealsIn addition to hundreds of Black Friday deals that have been extended to run through the weekend B amp H has issued three new promotions that offer readers extensive price drops on popular M MacBook Air and inch iMac models Each configuration has GB of memory double that of the standard model Read more 2021-11-28 12:56:47
海外ニュース Japan Times latest articles Moderna says new vaccine for omicron may be ready in early 2022 https://www.japantimes.co.jp/news/2021/11/28/world/science-health-world/moderna-omicron-vaccine/ Moderna says new vaccine for omicron may be ready in early Moderna s chief medical officer says the company should know about the ability of the current vaccine to provide protection in the next couple of weeks 2021-11-28 21:07:13
ニュース BBC News - Home Covid: Sajid Javid defends 'swift action' on Omicron variant https://www.bbc.co.uk/news/uk-59449480?at_medium=RSS&at_campaign=KARANGA christmas 2021-11-28 12:35:47
ニュース BBC News - Home Omicron Netherlands: 13 air passengers test positive for new variant https://www.bbc.co.uk/news/world-europe-59451103?at_medium=RSS&at_campaign=KARANGA omicron 2021-11-28 12:53:51
ニュース BBC News - Home Storm Arwen: More than 60,00 remain without power https://www.bbc.co.uk/news/uk-scotland-59451287?at_medium=RSS&at_campaign=KARANGA facilities 2021-11-28 12:29:12
ニュース BBC News - Home Customers spend second night snowed-in at pub https://www.bbc.co.uk/news/uk-england-york-north-yorkshire-59446663?at_medium=RSS&at_campaign=KARANGA heavy 2021-11-28 12:17:50
ニュース BBC News - Home Migrant crisis: Lack of co-operation will lead to worse scenes in Channel, warns Priti Patel https://www.bbc.co.uk/news/uk-59448398?at_medium=RSS&at_campaign=KARANGA secretary 2021-11-28 12:38:09
LifeHuck ライフハッカー[日本版] Ankerの多機能ドッキングステーションが大幅値下げ中!【Amazonブラックフライデー】 https://www.lifehacker.jp/2021/11/244211amazon-blackfriday-sale-anker-dock.html amazon 2021-11-28 21:30:00
北海道 北海道新聞 中国、ネット広告も規制強化 学習塾の宣伝は禁止 https://www.hokkaido-np.co.jp/article/616588/ 規制強化 2021-11-28 21:16:00
海外TECH reddit 60% in Japan see drinking with colleagues to deepen ties as "unnecessary" https://www.reddit.com/r/japan/comments/r439nu/60_in_japan_see_drinking_with_colleagues_to/ in Japan see drinking with colleagues to deepen ties as quot unnecessary quot submitted by u bjohn to r japan link comments 2021-11-28 12:28:42

コメント

このブログの人気の投稿

投稿時間: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件)