投稿時間:2023-03-07 14:24:50 RSSフィード2023-03-07 14:00 分まとめ(30件)

カテゴリー等 サイト名等 記事タイトル・トレンドワード等 リンクURL 頻出ワード・要約等/検索ボリューム 登録日
IT 気になる、記になる… Microsoft、Windows Insider Programに「Canary」チャネルを追加 https://taisy0.com/2023/03/07/169348.html canary 2023-03-07 04:27:05
IT InfoQ New JavaScript Incremental Computing Library Delivers Better UX for Single-Page Apps https://www.infoq.com/news/2023/03/incremental-computing-signia/?utm_campaign=infoq_content&utm_source=infoq&utm_medium=feed&utm_term=global New JavaScript Incremental Computing Library Delivers Better UX for Single Page AppsThe team behind the collaborative whiteboard tldraw recently published a library that brings incremental computing to JavaScript Signia seeks to overcome fundamental performance limitations of tldraw s chosen UI and reactive framework and ultimately provide better interactive apps with better user experience Signia can however be used standalone or in conjunction with any UI framework By Bruno Couriol 2023-03-07 04:13:00
IT ITmedia 総合記事一覧 [ITmedia News] IT技術者の“二つ名”を提案するAIサービス 「エンジニアリングの頂点に君臨するカリスマ的存在」など https://www.itmedia.co.jp/news/articles/2303/07/news120.html chatgpt 2023-03-07 13:36:00
IT ITmedia 総合記事一覧 [ITmedia Mobile] 「povo 2.0」に新トッピング「SNSデータ使い放題(7日間)」、3月下旬以降 https://www.itmedia.co.jp/mobile/articles/2303/07/news118.html facebook 2023-03-07 13:29:00
IT ITmedia 総合記事一覧 [ITmedia News] 映画「シン・仮面ライダー」とうとう完成 上映時間は2時間1分13秒 製作委員会「御期待ください」 https://www.itmedia.co.jp/news/articles/2303/07/news116.html itmedia 2023-03-07 13:27:00
IT ITmedia 総合記事一覧 [ITmedia Mobile] KDDIがメタバース/Web3サービス「αU(アルファユー)」開始 仮想空間でライブやショッピングを楽しめる https://www.itmedia.co.jp/mobile/articles/2303/07/news117.html itmediamobilekddi 2023-03-07 13:26:00
IT ITmedia 総合記事一覧 [ITmedia News] KDDIのメタバース「αU」はGoogle Cloud採用 2社が覚書締結 https://www.itmedia.co.jp/news/articles/2303/07/news109.html cloud 2023-03-07 13:19:00
IT ITmedia 総合記事一覧 [ITmedia ビジネスオンライン] 東京駅に「コーヒーサブスク店」 昼カフェ、夜バーの“二毛作” https://www.itmedia.co.jp/business/articles/2303/07/news108.html itmedia 2023-03-07 13:16:00
IT ITmedia 総合記事一覧 [ITmedia Mobile] IIJmio、中古美品「iPhone 13 mini」「iPhone 12 mini」発売 「iPhone SE(第2世代)」は値下げ https://www.itmedia.co.jp/mobile/articles/2303/07/news115.html ITmediaMobileIIJmio、中古美品「iPhonemini」「iPhonemini」発売「iPhoneSE第世代」は値下げインターネットイニシアティブIIJは月日より、中古美品「iPhonemini」「iPhonemini」を発売する。 2023-03-07 13:16:00
IT ITmedia 総合記事一覧 [ITmedia PC USER] デル、13世代Coreプロセッサを搭載した省スペース型デスクトップPC https://www.itmedia.co.jp/pcuser/articles/2303/07/news114.html inspiron 2023-03-07 13:01:00
python Pythonタグが付けられた新着投稿 - Qiita Pythonで正規表現にマッチした文字列をひとつずつ置換する方法 https://qiita.com/takadowa/items/bdec34d7e69370579b15 aaaltlthogegtgtbbbltltfu 2023-03-07 13:45:53
python Pythonタグが付けられた新着投稿 - Qiita 【Python】配列や辞書をフィルタリングする組み込み関数 filter() https://qiita.com/pokeneko/items/2974686f61d40a052f5c menulistapplejuiceoran 2023-03-07 13:10:21
js JavaScriptタグが付けられた新着投稿 - Qiita Elixir Desktop で JavaScript 側をデバッグする(console.log の表示など) https://qiita.com/RyoWakabayashi/items/8f4fae93fc2b5fef1f92 https 2023-03-07 13:46:08
js JavaScriptタグが付けられた新着投稿 - Qiita トラックパッド判定で GSAP の ScrollSmoother.js ぽい慣性スクロールを実装するメモ https://qiita.com/googflog/items/aa3d9e45bdfb9e7ca634 トラックパッド判定でGSAPのScrollSmootherjsぽい慣性スクロールを実装するメモGSAPのScrollSmootherjsはブラウザネイティブのスクロールバーで慣性スクロールを実装できるとても素晴らしいライブラリなのですが、同じような実装が出来ないものかと試してみたものです。 2023-03-07 13:34:18
GCP gcpタグが付けられた新着投稿 - Qiita IBM Cloud x GCP IPsecVPN/BGP接続 https://qiita.com/khoshina/items/e250e11db48278655edf cloud 2023-03-07 13:47:37
技術ブログ Developers.IO [GAS]n時間後に削除されるトリガーを作成する方法 https://dev.classmethod.jp/articles/gas-delete-trigger-n-hours/ macosmontereygoogle 2023-03-07 04:43:59
技術ブログ Developers.IO Global Accelerator + EC2でエンドポイントを設定できないときの原因を調べてみた https://dev.classmethod.jp/articles/global-accelerator-ec2-endpoint-incompatibility/ globalaccelerator 2023-03-07 04:38:22
海外TECH DEV Community .NET Console Application with injectable commands https://dev.to/keestalkstech/net-console-application-with-injectable-commands-27ni NET Console Application with injectable commandsConsole applications are alive and kicking Setting them up might be a bit hard In this article I ll explore how to create a NET console application that provides commands using the new System CommandLine package This will provide arguments to command mapping out of the box I ll be showing how to combine it with dependency injection for even more power GoalsNuGet PackagesProject structureFake weather serviceCommandsCurrent Temperature CommandForecast CommandDependency injectionFinal thoughts GoalsWe want to create a CLI application with the following goals System CommandLine ーthis is a fairly new project by NET that helps to create better CLI applications It offers the ability to add commands arguments and options to your application It comes with a help feature and it will do the command line argument mapping for you Dependency Injection ーwhy go anywhere without it Dependency injection has made ASP NET way more composable I wrote an entire article on how to add it to console applications as well We ll be reusing some of the code Environment variable injection support ーsome of the configuration should be overridable using environment variables We re making a CLI so what s a better way to describe it than showing what the help should look like Description Weather information using a fake weather service Usage MyCli command options Options version Show version information h help Show help and usage informationCommands current Gets the current temperature forecast Get the forecast Almost always wrong Note if you want to use command line argument when executing a dotnet run you can use to feed the arguments to the application instead of the NET CLI so dotnet run help in this case NuGet PackagesIf you say NET you say NuGet packages We ll be using the following packages Install Package System CommandLine Version beta Install Package Microsoft Extensions Configuration Version Install Package Microsoft Extensions Configuration EnvironmentVariables Version Install Package Microsoft Extensions DependencyInjection Version Install Package Microsoft Extensions DependencyInjection Abstractions Version Install Package Microsoft Extensions Options Version Install Package Microsoft Extensions Options ConfigurationExtensions Version The System CommandLine package is still in beta I expect it to be released soon but things might still change Project structureI m using the following project structure ├ーsrc │└ーMyCli │├ーCommands ││├ーCurrentCommand cs││└ーForcastCommand cs│├ーServices ││├ーFakeWeatherService cs││└ーFakeWeatherServiceSettings cs│└ーProgram cs└ーMyCli sln Fake weather serviceWhat is injection without a good service Let s create a fake weather service that returns the temperature based on a randomizer namespace MyCli Services public class FakeWeatherServiceSettings public string DefaultCity get set Zwolle NLD public int DefaultForecastDays get set public class FakeWeatherService public FakeWeatherService IOptions lt FakeWeatherServiceSettings gt settings Settings settings Value throw new ArgumentNullException nameof settings public FakeWeatherServiceSettings Settings get public Task lt string gt GetTemperature string city null if city null city Settings DefaultCity var report In city it is now Random Shared Next degrees celcius return Task FromResult report public Task lt string gt Forecast int days string city null if city null city Settings DefaultCity var reports new List lt string gt Report for city for the next days days for var i i lt days i var date DateTime Now AddDays i ToString yyyy MM dd var report date Random Shared Next degrees celcius reports Add report return Task FromResult reports ToArray CommandsCommands are implementations of the System CommandLine Command class To make them injectable we create classes that are derived from the Command class see dependency injection section Current Temperature CommandTo get our current temperature command we ll need to do the following Call the base constructor with the name and description of the command This will be used by the help feature Inject the FakeWeatherService as it does the actual work Use the FakeWeatherService Settings to get the default value for the city option Map it all together using a SetHandler The option in automatically mapped to the city parameter of the Execute method Now the implementation is very easy using MyCli Services using System CommandLine namespace MyCli Commands class CurrentCommand Command private readonly FakeWeatherService weather public CurrentCommand FakeWeatherService weather base current Gets the current temperature weather weather throw new ArgumentNullException nameof weather var cityOption new Option lt string gt city gt weather Settings DefaultCity The city AddOption cityOption this SetHandler Execute cityOption private async Task Execute string city var report await weather GetTemperature city Console WriteLine report What I like about the setup is that we can add optional arguments with defaults Here we get the default value from an object from our dependency injection When we do a current help we can a nice description and the actual injected value Description Gets the current temperature Usage MyCli current options Options city lt city gt The city default Amsterdam NLD h help Show help and usage information Forecast CommandThe same goes for the forecast command but now we have options city and days using Microsoft Extensions Options using MyCli Services using System CommandLine namespace MyCli Commands class ForecastCommand Command private readonly FakeWeatherService weather public ForecastCommand FakeWeatherService weather base forecast Get the forecast Almost always wrong weather weather throw new ArgumentNullException nameof weather var cityOption new Option lt string gt city gt weather Settings DefaultCity The city var daysOption new Option lt int gt days gt weather Settings DefaultForecastDays Number of days AddOption cityOption AddOption daysOption this SetHandler Execute cityOption daysOption private async Task Execute string city int days var report await weather Forecast days city foreach var item in report Console WriteLine item Dependency injectionNow let s tie it all together using dependency injection We need to do the following Setup a ServiceCollection to store our dependencies Setup the configuration to use environment variables and read them into our WeatherServiceSettings object Add the commands CurrentCommand and ForecastCommand to the service collection Add the WeatherService to the service collection Create a System CommandLine RootCommand and tie it to the registered Command implementation Invoke the root command with the given command line arguments This leads to the followingProgram cs code using Microsoft Extensions Configuration using Microsoft Extensions DependencyInjection using MyCli Commands using MyCli Services using System CommandLine static void ConfigureServices IServiceCollection services build config var configuration new ConfigurationBuilder AddEnvironmentVariables Build settings services Configure lt FakeWeatherServiceSettings gt configuration GetSection Weather add commands services AddTransient lt Command CurrentCommand gt services AddTransient lt Command ForecastCommand gt add services services AddTransient lt FakeWeatherService gt create service collectionvar services new ServiceCollection ConfigureServices services create service providerusing var serviceProvider services BuildServiceProvider entry to run appvar commands serviceProvider GetServices lt Command gt var rootCommand new RootCommand Weather information using a fake weather service commands ToList ForEach command gt rootCommand AddCommand command await rootCommand InvokeAsync args To make dependency injection work we do a GetServices to retrieve all the commands and add them to the root command Final thoughtsAnd that s all now you have a CLI that supports commands and a help feature out of the box I ve added the code to GitHub so check it out github com KeesCBakker dotnet cli di poc 2023-03-07 04:11:57
海外科学 NYT > Science New Japanese Rocket Is Destroyed During First Test Flight to Space https://www.nytimes.com/2023/03/06/science/japan-rocket-h3-launch.html country 2023-03-07 04:03:18
金融 ニッセイ基礎研究所 APRA(豪)やACPR(仏)が2023年の監督・政策上の優先事項を公表 https://www.nli-research.co.jp/topics_detail1/id=74086?site=nli ・保険の入手可能性、手頃な価格、持続可能性における課題に対処するための継続的な作業年の主な政策上の優先事項・APRA規制対象事業体の財務及び運営上のレジリエンスを強化し、退職年金加入者の成果を改善するための主要な改革を完了する。 2023-03-07 13:36:31
金融 ニッセイ基礎研究所 国民年金保険料の納付率向上に向けて、自動引去りの推進が課題~年金改革ウォッチ 2023年3月号 https://www.nli-research.co.jp/topics_detail1/id=74085?site=nli 国民年金保険料の納付率向上に向けて、自動引去りの推進が課題年金改革ウォッチ年月号要旨ポイント解説国民年金保険料の納付率向上の現状と課題年金事業管理部会で示された日本年金機構の年度の計画案では、国民年金保険料の納付率向上策が取り上げられた。 2023-03-07 13:10:31
金融 日本銀行:RSS 消費活動指数 http://www.boj.or.jp/research/research_data/cai/index.htm 消費活動 2023-03-07 14:00:00
ニュース BBC News - Home Eurovision 2023: Tickets for Liverpool shows go on sale on Tuesday https://www.bbc.co.uk/news/entertainment-arts-64784428?at_medium=RSS&at_campaign=KARANGA eurovision 2023-03-07 04:41:26
ビジネス ダイヤモンド・オンライン - 新着記事 プーチン氏の「エネルギー秘密兵器」は元米銀行員 - WSJ発 https://diamond.jp/articles/-/319059 銀行員 2023-03-07 13:15:00
ビジネス 東洋経済オンライン 「想像していた老後と違う」嘆く人に欠けてる視点 お金を使わず楽しく生きるのに最適な方法とは | 健康 | 東洋経済オンライン https://toyokeizai.net/articles/-/655552?utm_source=rss&utm_medium=http&utm_campaign=link_back 東洋経済オンライン 2023-03-07 14:00:00
IT 週刊アスキー 新横浜プリンスホテル×相鉄コラボ! 21000系車両のトレインケーキやそうにゃん宿泊プランを販売 https://weekly.ascii.jp/elem/000/004/127/4127551/ 新横浜プリンスホテル 2023-03-07 13:50:00
IT 週刊アスキー カイロソフトの『開店デパート日記2』がSteamにて配信中! https://weekly.ascii.jp/elem/000/004/127/4127581/ pcsteam 2023-03-07 13:45:00
IT 週刊アスキー スシロー、「特ネタ大とろ」大きさはそのまま赤皿で提供! https://weekly.ascii.jp/elem/000/004/127/4127565/ 通常 2023-03-07 13:40:00
IT 週刊アスキー ほっかほっか亭、「シン・クロカラ」こと「黒唐揚シリーズ」を3月23日発売 https://weekly.ascii.jp/elem/000/004/127/4127564/ 仮面ライダー 2023-03-07 13:20:00
IT 週刊アスキー サブウェイ、春限定サンド「ザクタルチキン」2種 野菜タルタルのザクザク感がアップ! https://weekly.ascii.jp/elem/000/004/127/4127567/ 限定 2023-03-07 13:20:00

コメント

このブログの人気の投稿

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