IT |
気になる、記になる… |
LINEMO、「スマホプラン」に新規契約で5,000円相当のPayPayポイントが貰えるキャンペーンを開催中(6月20日まで) |
https://taisy0.com/2022/06/17/158189.html
|
linemo |
2022-06-17 08:01:17 |
ROBOT |
ロボスタ |
横浜「動くガンダム」が再オープン!特別演出の継続、『水星の魔女』の前日譚上映、世界のガンダム立像と連動、ガンプラ新商品など |
https://robotstart.info/2022/06/17/gundam-yokohama-reopen.html
|
横浜「動くガンダム」が再オープン特別演出の継続、『水星の魔女』の前日譚上映、世界のガンダム立像と連動、ガンプラ新商品などシェアツイートはてブ株式会社EvolvingGは、年月日土より「GUNDAMFACTORYYOKOHAMA」以下、GFYを再オープンすることを発表した。 |
2022-06-17 08:01:38 |
IT |
情報システムリーダーのためのIT情報専門サイト IT Leaders |
丸紅ネットワークソリューションズ、IAMサービスを体系化、ID管理、認証/SSO、代理ログインの各製品を提供 | IT Leaders |
https://it.impress.co.jp/articles/-/23343
|
丸紅ネットワークソリューションズ、IAMサービスを体系化、ID管理、認証SSO、代理ログインの各製品を提供ITLeaders丸紅ネットワークソリューションズは年月日、IAMIDとアクセス権限の管理サービス「IAMソリューション」を提供すると発表した。 |
2022-06-17 17:42:00 |
python |
Pythonタグが付けられた新着投稿 - Qiita |
深層学習で区間推定(分布推定) |
https://qiita.com/chicken_data_analyst/items/9bd8f40e8d1da161a4d3
|
ngboost |
2022-06-17 17:51:54 |
python |
Pythonタグが付けられた新着投稿 - Qiita |
Effective Python 第2版 を自分なりにまとめてみる part3 |
https://qiita.com/Takayoshi_Makabe/items/01d151ff92b98e83231d
|
brettslatkin |
2022-06-17 17:46:35 |
python |
Pythonタグが付けられた新着投稿 - Qiita |
PythonによるRNA-Seq (バルク) データ解析 ~階層的クラスタリングとヒートマップの作成~ |
https://qiita.com/shyu_manabe/items/35ea921470146483e53e
|
rnaseq |
2022-06-17 17:02:38 |
golang |
Goタグが付けられた新着投稿 - Qiita |
2021/06〜2022/05 GoタグLGTMランキングTOP30 |
https://qiita.com/h-kawaguchi/items/27506a32f590baee9f2b
|
goタグlgtmランキングtop |
2022-06-17 17:32:55 |
技術ブログ |
Developers.IO |
Windows環境にTerraformをインストールしてみた |
https://dev.classmethod.jp/articles/kidapan-terraform-install/
|
teraaform |
2022-06-17 08:49:05 |
技術ブログ |
Developers.IO |
รีเซต Administrator Password สำหรับwindows server 2019 ด้วย EC2Rescue |
https://dev.classmethod.jp/articles/reset-administrator-password-for-windows-server-2019-with-ec2rescue/
|
รีเซตAdministrator Password สำหรับwindows server ด้วยECRescueสวัสดีครับผมไลท์ครับวันนี้จะมาแนะนำขั้นตอนการรีเซตAdministrator Password สำหรับwindows server ด้วยECR |
2022-06-17 08:46:59 |
海外TECH |
DEV Community |
These 5 C# Guidelines (Revealed by a SENIOR DEVELOPER) will Change your Coding Style |
https://dev.to/dotnetsafer/these-5-c-guidelines-revealed-by-a-senior-developer-will-change-your-coding-style-3jfp
|
These C Guidelines Revealed by a SENIOR DEVELOPER will Change your Coding StyleLearning how to code can be challenging but following the advice of more experienced developers can help you master the fundamentals of coding quickly and easily These five C guidelines revealed by a senior developer will change the way you write your code this article will show you how to start coding like a pro today These guidelines are provided by Milan Jovanović Senior Software Engineer at HTEC Group a huge technology company that has raised a whopping M in its latest round of investment alone Define temporary variables in LINQ Query syntaxThis first guideline Milan comments that there is the possibility of defining temporary variables in LINQ Query syntax It is curious because he has been talking to developers and many of them were completely unaware of this feature And for this reason he has decided to explain it Using the let keyword you can define a temporary value in your LINQ queries You can use it for further calculation or return this value as a result from user in dbContext Set lt User gt AsNoTracking where user Id userIdlet name user FirstName user LastName let hasFirstName string IsNullOrEmpty user FirstName let hasLastName string IsNullOrEmpty user LastName select new user Id Name name ProfileComplete hasFirstName amp amp hasLastName Another point he makes is that when writing EF Core Entity queries the clause used let is also translated into proper SQL In addition it advises to test it and inspect the generated SQL Not everything is supported like with in memory LINQ Here you can read his explanation Define temporary variables in LINQ Query syntax Switch statement to compute a valueHe has also decided to share a best practice when writing clean code in C I personally have seen quite a few cases like this and that s why I recommend you to check it out Milan tells us that from C onwards you can use switch expressions to replace the switch instruction Bad way switch DateTime Now DayOfWeek case DayOfWeek Monday case DayOfWeek Tuesday case DayOfWeek Wednesday case DayOfWeek Thursday case DayOfWeek Friday return Not Weekend case DayOfWeek Saturday case DayOfWeek Sunday return Weekend default throw new ArgumentOutOfRangeException Good way DateTime Now DayOfWeek switch not DayOfWeek Saturday or DayOfWeek Sunday gt Not Weekend DayOfWeek Saturday or DayOfWeek Sunday gt Weekend gt throw new ArgumentOutOfRangeException In addition he says that there is room for improvement Also beginning with C we can add logical pattern matching operators into the mix for even more flexibility Here you can read his explanation Switch statement to compute a value Create a lazy thread safe Singleton implementationHere the questions arise as to how to create a lazy thread safe Singleton implementation According to Milan there are a variety of ways to do this but you should always rely on locking to prevent simultaneous access to make the implementation for thread safe Milan warns that this practice would require a fairly advanced knowledge of locking mechanisms However we can utilize the Lazy class to lazily instantiate an instance of a class public sealed class Singleton private static readonly Lazy lt Singleton gt LazyInstance new Lazy lt Singleton gt gt new Singleton private Singleton public static Singleton Instance gt LazyInstance Value Finally he comments that concurrency is not important Lazy is also thread safe by default so you don t have to think about concurrency Here you can read his explanation Create a lazy thread safe Singleton implementation Create and use local functionsFor those who do not know what a local function is local functions allow you to declare a method inside the body of a previously defined method This feature was added in C and Milan has decided to explain it in a clear way Local functions are only visible inside the scope of their containing member Usually you would define and use them inside of another function public IEnumerable lt string gt CapitalizeFirstLetter IEnumerable lt string gt enumerable if enumerable Any throw new ArgumentException The sequence is empty return enumerable Select CapitalizeFirstLetterLocal static string CapitalizeFirstLetterLocal string input gt input switch null or gt throw new ArgumentNullException nameof input gt string Concat input ToString ToUpper input AsSpan Another thing Milan adds is that there is also the possibility for local functions to be static as long as they do not have access to the instance members It is interesting to combine local functions with iterators Iterators are lazy be design But you may want to perform an argument check eagerly which is where local functions can be helpful Here you can read his explanation Create and use local functions Combine local functions with iterator blocksLet s continue with the local functions This time Milan wanted to share that there is the possibility to achieve lazy evaluation with iterator blocks while having an eager argument check Notice that the local function uses the yield return statement which executes when enumeration happens If the iterator block is inside of ReadFileLineByLine directly you will get the exception only when enumerating the results public IEnumerable lt string gt ReadFileLineByLine string fileName if string IsNullOrEmpty fileName throw new ArgumentNullException nameof fileName return ReadFileLineByLineImpl IEnumerable lt string gt ReadFileLineByLineImpl foreach var line in File ReadAllLines fileName yield return line This good practice makes it possible to detect exceptions before they occur The exception will throw as soon as ReadFileLineByLine is invoked Here you can read his explanation Combine local functions with iterator blocksThanks again to Milan Jovanović for sharing these guidelines and bringing value to the great and wonderful community of C developers If you liked them I would recommend you to follow him on Linkedin because he is always active and uploads a lot of valuable C content |
2022-06-17 08:03:52 |
海外TECH |
DEV Community |
Run Docker based GitHub runner containers on Azure Container Instances (ACI) |
https://dev.to/pwd9000/running-docker-based-github-runner-containers-on-azure-container-instances-aci-4odf
|
Run Docker based GitHub runner containers on Azure Container Instances ACI OverviewAll the code used in this tutorial can be found on my GitHub project docker github runner windows or docker github runner linux Welcome to Part of my series Self Hosted GitHub Runner containers on Azure In the previous part of this series we looked at how we can use CI CD in GitHub using GitHub Actions to build our docker containers and then push the docker images to an Azure Container Registry ACR we created in Azure Following on from the previous part we will now look at how we can use Azure Container Instances ACI to run images from the remote registry I will cover two scenarios first how we can run self hosted GitHub runner as as an Azure Container Instances ACI from our images using using Azure CLI and second how we can use CI CD workflows in GitHub using GitHub Actions to deploy our ACIs Pre RequisitesThings we will need are Create an ACI deployment Resource GroupGrant access to our Service Principal we created in the previous step to create ACIsFor this step I will use a PowerShell script Prepare RBAC ACI ps running Azure CLI to create a Resource Group and grant access to our GitHub Service Principal App we created in the previous post Log into Azure az login Setup Variables aciResourceGroupName Demo ACI GitHub Runners RG appName GitHub ACI Deploy Previously created Service Principal See part of blog series region uksouth Create a resource group to deploy ACIs toaz group create name aciResourceGroupName location region aciRGId az group show name aciResourceGroupName query id output tsv Grant AAD App and Service Principal Contributor to ACI deployment RGaz ad sp list display name appName query appId o tsv ForEach Object az role assignment create assignee role Contributor scope aciRGId As you can see the script has created an empty resource group called Demo ACI GitHub Runners RG and gave our GitHub service principal Contributor access over the resource group Deploy ACI Azure CLINext we will deploy a self hosted GitHub runner as an Azure Container Instance ACI using Azure CLI Get the relevant image details from the Azure Container Registry For this step I will use a PowerShell script Deploy ACI ps az login Variables randomInt Get Random Maximum aciResourceGroupName Demo ACI GitHub Runners RG Resource group created to deploy ACIs aciName gh runner linux randomInt ACI name unique acrLoginServer registryName azurecr io The login server name of the ACR all lowercase Example myregistry azurecr io acrUsername servicePrincipalClientId The clientId from the JSON output from the service principal creation See part of blog series acrPassword servicePrincipalClientSecret The clientSecret from the JSON output from the service principal creation See part of blog series image acrLoginServer pwd github runner lin image reference to pull pat githubPAT GitHub PAT token githubOrg Pwd ML GitHub Owner githubRepo docker github runner linux GitHub repository to register self hosted runner against osType Linux Use Windows if image is Windows OSaz container create resource group aciResourceGroupName name aciName image image registry login server acrLoginServer registry username acrUsername registry password acrPassword environment variables GH TOKEN pat GH OWNER githubOrg GH REPOSITORY githubRepo os type osType NOTE Remember when we ran our docker containers in part one and two of this series we had to pass in some environment variables using the e option to specify the PAT Personal Access Token GitHub Organisation and Repository to register the runner against We pass these values in using the environment variables parameter as show above See creating a personal access token on how to create a GitHub PAT token PAT tokens are only displayed once and are sensitive so ensure they are kept safe The minimum permission scopes required on the PAT token to register a self hosted runner are repo read org Tip I recommend only using short lived PAT tokens and generating new tokens whenever new agent runner registrations are required After running this command under the GitHub repository settings you will see a new self hosted GitHub runner This is our Azure Container Instance You will also see the ACI under the resource group we created earlier You can simply re run the above script to add more runners and ACIs To stop and remove the ACI container you can run az container delete resource group aciResourceGroupName name aciNameNext we will look at how we can use CI CD in GitHub to deploy ACIs using GitHub Actions Deploy ACI GitHub CI CDBecause we have our repository already set up with the relevant Service Principal and GitHub Secrets from the previous blog post We can create a GitHub Workflow to deploy our Azure Container Instances deployACI Lin ymlname Deploy GHRunner Linux ACIon workflow dispatch env RUNNER VERSION ACI RESOURCE GROUP Demo ACI GitHub Runners RG ACI NAME gh runner linux DNS NAME LABEL gh lin GH OWNER Pwd ML GH REPOSITORY docker github runner linux Change here to deploy self hosted runner ACI to another repo jobs deploy gh runner aci runs on ubuntu latest steps checkout the repo name Checkout GitHub Action uses actions checkout main name Login via Azure CLI uses azure login v with creds secrets AZURE CREDENTIALS name Deploy to Azure Container Instances uses azure aci deploy v with resource group env ACI RESOURCE GROUP image secrets REGISTRY LOGIN SERVER pwd github runner lin env RUNNER VERSION registry login server secrets REGISTRY LOGIN SERVER registry username secrets REGISTRY USERNAME registry password secrets REGISTRY PASSWORD name env ACI NAME dns name label env DNS NAME LABEL environment variables GH TOKEN secrets PAT TOKEN GH OWNER env GH OWNER GH REPOSITORY env GH REPOSITORY location uksouth The workflow above mainly uses the azure aci deploy v GitHub Action You can also set parameters such as cpu and memory to spec out the container instance Check out the documentation of this extension here ACI deploy GitHub Action NOTE I have added the custom PAT token as a GitHub Secret on the repository GH TOKEN secrets PAT TOKEN We can manually trigger and run the workflow After the workflow has run you should see the self hosted GitHub runner against the repository you specified in the workflow environment variables You will also be able to see the ACI created under the resource group we created earlier To stop and remove the ACI container you can run the following Azure CLI command az container delete resource group aciResourceGroupName name aciNameWe have successfully deployed self hosted GitHub runners using Azure Container Instances In the next part of this series we will look at how we can run and auto scale our self hosted GitHub runners on Azure Container Apps ACA with KEDA I hope you have enjoyed this post and have learned something new You can find the code samples used in this blog post on my GitHub project docker github runner windows or docker github runner linux ️ AuthorLike share follow me on GitHub Twitter LinkedIn Marcel LFollow Microsoft DevOps MVP Cloud Solutions amp DevOps Architect Technical speaker focussed on Microsoft technologies IaC and automation in Azure Find me on GitHub |
2022-06-17 08:00:45 |
ニュース |
@日本経済新聞 電子版 |
東京都、新たに1596人感染 7日平均で前週の92.5%
https://t.co/0i4ViJRZJv |
https://twitter.com/nikkei/statuses/1537709453575098368
|
東京都 |
2022-06-17 08:11:17 |
ニュース |
BBC News - Home |
Gatwick cuts summer flights after staff shortages |
https://www.bbc.co.uk/news/uk-61835843?at_medium=RSS&at_campaign=KARANGA
|
reliable |
2022-06-17 08:47:44 |
ニュース |
BBC News - Home |
Gatwick: Passenger with restricted mobility dies leaving flight |
https://www.bbc.co.uk/news/uk-england-sussex-61837369?at_medium=RSS&at_campaign=KARANGA
|
gatwick |
2022-06-17 08:22:06 |
ニュース |
BBC News - Home |
NBA Finals: Stephen Curry's highlights as Warriors win title |
https://www.bbc.co.uk/sport/av/basketball/61838741?at_medium=RSS&at_campaign=KARANGA
|
NBA Finals Stephen Curry x s highlights as Warriors win titleWatch Stephen Curry s highlights as he leads the Golden State Warriors to the NBA title with a point MVP performance in their win over the Boston Celtics to clinch the series |
2022-06-17 08:23:32 |
ビジネス |
ダイヤモンド・オンライン - 新着記事 |
コラントッテ、株主優待を新設し、配当+優待利回り 6%超に! 100株以上の保有で「磁気ネックレス」など を扱う自社通販サイトで使える「割引クーポン」を贈呈 - 株主優待【新設・変更・廃止】最新ニュース |
https://diamond.jp/articles/-/305048
|
|
2022-06-17 17:50:00 |
ビジネス |
不景気.com |
日本ペイントHDが希望退職者を募集、人員数定めず - 不景気com |
https://www.fukeiki.com/2022/06/nippon-paint-cut-job.html
|
希望退職 |
2022-06-17 08:53:56 |
ビジネス |
不景気.com |
三菱製紙の希望退職者募集に61名が応募、ほぼ想定通り - 不景気com |
https://www.fukeiki.com/2022/06/mitsubishi-paper-mills-cut-61-job.html
|
三菱製紙 |
2022-06-17 08:40:28 |
北海道 |
北海道新聞 |
東証、下げ幅2年3カ月ぶり 1週間で、1800円超 |
https://www.hokkaido-np.co.jp/article/694746/
|
日経平均株価 |
2022-06-17 17:06:48 |
北海道 |
北海道新聞 |
宝酒造が715品目値上げ 清酒や焼酎、一部は再改定 |
https://www.hokkaido-np.co.jp/article/694795/
|
本みりん |
2022-06-17 17:21:00 |
北海道 |
北海道新聞 |
8.5メートル ザトウクジラ漂着 羅臼の海岸に死骸 町「珍しい」 |
https://www.hokkaido-np.co.jp/article/694794/
|
麻布町 |
2022-06-17 17:20:00 |
北海道 |
北海道新聞 |
大漁旗贈りウルグアイ激励 19年ラグビーW杯会場の釜石 |
https://www.hokkaido-np.co.jp/article/694792/
|
釜石 |
2022-06-17 17:06:00 |
北海道 |
北海道新聞 |
柔道、五輪金の大野らを派遣 GSウランバートル大会 |
https://www.hokkaido-np.co.jp/article/694791/
|
全日本柔道連盟 |
2022-06-17 17:05:00 |
仮想通貨 |
BITPRESS(ビットプレス) |
【暗号資産交換業者登録】登録完了済・登録申請中、および休止・終了企業のリリースまとめ |
https://bitpress.jp/count2/3_8_6488
|
【暗号資産交換業者登録】登録完了済・登録申請中、および休止・終了企業のリリースまとめ金融庁暗号資産交換業者登録一覧PDFビットプレス暗号資産交換業者一覧・比較コーナー暗号資産交換業者・登録完了済みの企業からのリリース・コメント登録完了済の業者からの「登録に関してのリリース・コメント」。 |
2022-06-17 17:37:45 |
仮想通貨 |
BITPRESS(ビットプレス) |
メルコイン、2022/6/17付で暗号資産交換業の登録を完了(関東財第00030号) |
https://bitpress.jp/count2/3_11_13254
|
関東 |
2022-06-17 17:35:29 |
仮想通貨 |
BITPRESS(ビットプレス) |
金融庁、2022/6/17付で暗号資産交換業者1社を新規登録(メルコイン) |
https://bitpress.jp/count2/3_17_13253
|
金融庁 |
2022-06-17 17:31:00 |
IT |
週刊アスキー |
シリーズ最新作はオバケ蹴散らし“3+1”アクション!『モンスターストライク ゴーストスクランブル』が7月19日配信決定 |
https://weekly.ascii.jp/elem/000/004/095/4095086/
|
xflag |
2022-06-17 17:45:00 |
IT |
週刊アスキー |
最先端のゲーム・VR・ITを体験しよう! HAL東京、夏のオープンキャンパス |
https://weekly.ascii.jp/elem/000/004/095/4095083/
|
体験入学 |
2022-06-17 17:30:00 |
コメント
コメントを投稿