投稿時間:2022-05-26 19:33:53 RSSフィード2022-05-26 19:00 分まとめ(33件)

カテゴリー等 サイト名等 記事タイトル・トレンドワード等 リンクURL 頻出ワード・要約等/検索ボリューム 登録日
IT 気になる、記になる… 2022年のiPhoneの生産台数はほぼ横ばいか https://taisy0.com/2022/05/26/157353.html apple 2022-05-26 09:32:58
IT ITmedia 総合記事一覧 [ITmedia Mobile] 緑のnanoSIMカード×ドコモケータイで「位置情報」の取得に問題発生 SIMカードの交換で対応(一部はソフト更新でも対処) https://www.itmedia.co.jp/mobile/articles/2205/26/news185.html ITmediaMobile緑のnanoSIMカード×ドコモケータイで「位置情報」の取得に問題発生SIMカードの交換で対応一部はソフト更新でも対処NTTドコモが月下旬から発行を開始した最新のnanoSIMカードをAndroidベースのドコモケータイで利用すると、位置情報に関わるサービスに不具合を起こすことが判明した。 2022-05-26 18:15:00
IT ITmedia 総合記事一覧 [ITmedia ビジネスオンライン] UCC上島珈琲、消費者の志向の変化に対応 コーヒーの新フレーバー発売やTikTokキャンペーン実施 https://www.itmedia.co.jp/business/articles/2203/17/news041.html itmedia 2022-05-26 18:08:00
python Pythonタグが付けられた新着投稿 - Qiita Pythonで一様乱数の配列を生成するときの速度比較 https://qiita.com/kotoha_37/items/172af90f102a12f0d4ac 一様分布 2022-05-26 18:37:24
python Pythonタグが付けられた新着投稿 - Qiita scipy.stats: 幾何平均と調和平均 gmean, hmean https://qiita.com/WolfMoon/items/726a7570040dd1d10132 romscipystatsimportgmeanx 2022-05-26 18:10:32
python Pythonタグが付けられた新着投稿 - Qiita 分かった気になる「メルケプストラム」 https://qiita.com/5rQntdiU57zH2Lg/items/c7b9814256c127a13386 表示 2022-05-26 18:04:49
python Pythonタグが付けられた新着投稿 - Qiita 2点間距離の計算速度(pythonコード比較)(3次元空間のみ) https://qiita.com/TheJuniorTheSenior/items/b76fed3832c149907b82 jupyternotebook 2022-05-26 18:01:11
js JavaScriptタグが付けられた新着投稿 - Qiita GatsbyJSのメモ書き https://qiita.com/kazu_developer/items/ad9dce8209e3e218b3b2 gatsbyjs 2022-05-26 18:46:28
Ruby Rubyタグが付けられた新着投稿 - Qiita 【脱駆け出しエンジニア】binding.pryについて https://qiita.com/michikun06/items/5f4007c848451f33af30 bindingpry 2022-05-26 18:41:36
AWS AWSタグが付けられた新着投稿 - Qiita AWS WAFで日本以外からのアクセスをブロックする https://qiita.com/yuta_vamdemic/items/57a9ed3a960e167f307d awswaf 2022-05-26 18:45:31
Ruby Railsタグが付けられた新着投稿 - Qiita 【脱駆け出しエンジニア】binding.pryについて https://qiita.com/michikun06/items/5f4007c848451f33af30 bindingpry 2022-05-26 18:41:36
技術ブログ Developers.IO 【レポート】今ある資産で素早く SaaS ビジネスを〜Amazon AppStream 2.0 を活用した既存パッケージの SaaS 化〜(AWS-35) #AWSSummit https://dev.classmethod.jp/articles/aws-summit-japan-online-2022-aws-35/ amazonappstream 2022-05-26 09:50:13
技術ブログ Developers.IO Sumo Logic セキュリティApp紹介 vol.1 https://dev.classmethod.jp/articles/sumo-logic_security-app-vol-1/ logic 2022-05-26 09:42:39
技術ブログ Developers.IO 【レポート】AWS で実現するインダストリアルデータプラットフォーム(AWS-39) #AWSSummit https://dev.classmethod.jp/articles/aws-summit-japan-online-2022-aws-39/ awsawssummit 2022-05-26 09:18:26
技術ブログ Developers.IO オープンソースソフトウェアと AWS〜 使う、作る、育てる 〜(AWS-49) #AWSSummit https://dev.classmethod.jp/articles/aws-summit-japan-online-2022-aws-49/ awsawssummit 2022-05-26 09:12:05
海外TECH DEV Community Nexus Repository Manager : What is it & how to configure it on a Digital Ocean Droplet? https://dev.to/kcdchennai/nexus-repository-manager-what-is-it-how-to-configure-it-on-a-digital-ocean-droplet-20ma Nexus Repository Manager What is it amp how to configure it on a Digital Ocean Droplet IntroductionIf you are working on a big project which would take long time repository manager is the thing which can save you a lot of time and effort Let s say you are building a Java Maven application It uses Maven Central Repository for resolving dependencies Now if you want to use a package not provided by Java by default you need to get it from Maven Central With repository managers these packages are stored in the repository manager itself so you don t have to look for different packages at different places What is a Repository Manager A Repository manager is a dedicated server location which is used to manage all the repositories an development team will need throughout the development cycle We can consider Repository Manager as a Warehouse for parts Just as a Warehouse serves as a centralized location for storage of parts and manages receiving sending and everything in between a Repository Manager manages all the parts involved in the software development process Repository v s Repository ManagerA Repository is a storage location where components like artifacts binaries or containers are retrieved so they can be installed or used whereas a Repository Manager is a dedicated application which manages all of your internal or proxy repositories Why do you need it Let s say you work in a company which is working upon multiple projects Few of which are build using Java NET and Python Each of these will produce different types of artifacts Now you ll need different software to store each of them A Repository manager solves this problem and provides a centralized platform to store all the components involved in the software development process Few of the other features of a repository manager are Saving time and bandwidth due to reduced number of downloads off remote repositories Backup and RestoreCleanup PoliciesSearch FunctionalityMulti format support Why Nexus Repository Manager Nexus Repository Manager is a FREE to use artifact repository manager by Sonatype It supports a wide variety of formats like APT NuGET Maven and Docker List of all supported formats can be found here Now that you know what Nexus Repository Manager is let me show you how to configure it on a cloud server We ll configure Nexus on Digital Ocean Droplet cloud server for this blog but you can do the same on almost any other cloud service Click here to get a FREE credit on Digital Ocean for days Configuring Nexus on Digital Ocean Droplet STEP Create a Droplet cloud server I ve chosen Ubuntu LTS but you are free to use distribution of your choice You can choose the datacenter region which is nearest to your location In my case it s Bangalore You can use Password Authentication less secure or SSH keys more secure for authentication Note Make sure you choose GB vCPUs droplet because Nexus takes up a ton of memory and has high CPU usage at times STEP Log in to the droplet using it s public IP addressIf you used SSH key Authentication you won t be prompted for password but if you used Password Authentication you need to enter your password to authenticate yourself Note The default user for any digital ocean droplet is root ssh root lt IP address gt STEP Install Java version and networking tools Nexus repository manager requires Java version to be installed to run We ll use netstat utility to check which port our application is listening to for which we need net tools package to be installed To install Java version and net tools use the command apt install openjdk jre headless yapt install net toolsTo check if Java is properly installed use the command java versionThe above command must give the output openjdk version OpenJDK Runtime Environment build u b ubuntu b OpenJDK Bit Server VM build b mixed mode STEP Download Nexus Repository Manager and untar it To download Nexus Repository manager in opt use command cd optwget To untar it use the command tar zxvf nexus unix tar gzAfter executing the above commands when executing the command ls list files and directories it must have new directories namely nexus and sonatype work root ubuntu s vcpu gb intel blr opt lsdigitalocean nexus nexus unix tar gz sonatype work STEP Create a new user nexus give it appropriate permissions and change nexus configuration to run as a nexus user Note Services should not run with Root user permissions Best Practice Create a new user for each service To create a new user nexus use the command adduser nexusIt will ask for user information and password To skip filling some values press Enter key root ubuntu s vcpu gb intel blr adduser nexusAdding user nexus Adding new group nexus Adding new user nexus with group nexus Creating home directory home nexus Copying files from etc skel New password Retype new password passwd password updated successfullyChanging the user information for nexusEnter the new value or press ENTER for the default Full Name Nexus Room Number Work Phone Home Phone Other Is the information correct Y n YChange the ownership of directories nexus and sonatype work from root to nexus To do so use the command cd optchown R nexus nexus nexus chown R nexus nexus sonatype work To check if the ownership was changed use the command ls lIt must output drwxr xr x root root Apr digitaloceandrwxr xr x nexus nexus Apr nexus drwxr xr x nexus nexus Apr sonatype workTo change nexus configuration to run as a nexus user open the file nexus rc using vim nexus bin nexus rcReplace it s contents with run as user nexus STEP Login as nexus and start nexus serviceTo switch user from root to nexus use the command su lt user name gt su nexusNow to start nexus use the command opt nexus bin nexus startIt must give the output nexus ubuntu s vcpu gb intel blr opt nexus bin nexus startStarting nexusTo check if it started successfully or not type ps aux grep nexusIt must give the output nexus ubuntu s vcpu gb intel blr ps aux grep nexusroot pts S su nexusnexus pts S bashnexus pts Sl usr lib jvm java openjdk amd jre bin java server Dinstallj jvmDir usr lib jvm java openjdk amd jre Dexej moduleName opt nexus bin nexus XX UnlockDiagnosticVMOptions Dinstallj launcherId Dinstallj swt false Dijv Dijv Dijv Dijv Dijv Xmsm Xmxm XX MaxDirectMemorySize m XX UnlockDiagnosticVMOptions XX LogVMOutput XX LogFile sonatype work nexus log jvm log XX OmitStackTraceInFastThrow Djava net preferIPvStack true Dkaraf home Dkaraf base Dkaraf etc etc karaf Djava util logging config file etc karaf java util logging properties Dkaraf data sonatype work nexus Dkaraf log sonatype work nexus log Djava io tmpdir sonatype work nexus tmp Dkaraf startLocalConsole false Djdk tls ephemeralDHKeySize Djava endorsed dirs lib endorsed Dij vpt true classpath opt nexus installj ijruntime jar opt nexus lib boot nexus main jar opt nexus lib boot activation jar opt nexus lib boot jakarta xml bind api jar opt nexus lib boot jaxb runtime jar opt nexus lib boot txw jar opt nexus lib boot istack commons runtime jar opt nexus lib boot org apache karaf main jar opt nexus lib boot osgi core jar opt nexus lib boot org apache karaf specs activator jar opt nexus lib boot org apache karaf diagnostic boot jar opt nexus lib boot org apache karaf jaas boot jar com installj runtime launcher UnixLauncher start ddc org sonatype nexus karaf NexusMainnexus pts R ps auxnexus pts S grep color auto nexusIn my case the process with process ID By default it is accessible on the port We can check it using the command netstat lpntIt would give the output nexus ubuntu s vcpu gb intel blr netstat lpnt Not all processes could be identified non owned process info will not be shown you would have to be root to see it all Active Internet connections only servers Proto Recv Q Send Q Local Address Foreign Address State PID Program nametcp LISTEN javatcp LISTEN javatcp LISTEN tcp LISTEN tcp LISTEN We can confirm from the above output that java nexus service is accessible at port If it doesn t show up in your case give it some time atleast min before restarting the service Accessing Nexus from Browser We can access Nexus from Browser but for that we need to configure the firewall of our droplet to allow incoming requests to port To do so Click on the dropletOpen Networking sectionScroll down to the bottom and click on Edit button under FirewallClick on Create FirewallName the Firewall ruleUnder inbound rules rules for incoming requests create a new Custom rule Let the protocol be TCP and change the port to Remove All IPv and All IPv from sources and put your Public IP address in that field because you don t want your nexus service to be accessible to anyone You can get your Public IP address from the URL Now to access it from your browser open up your browser and in the address bar type lt Droplet s IPv gt for example it s in my case where is my Droplet s IPv and is the port number Congratulations You re all set to use Nexus in your Browser ConclusionIf you learnt something new from this blog make sure you give it a like share and follow me on the platform Also feel free to connect with me on Twitter Thank you for reading 2022-05-26 09:12:02
海外TECH DEV Community Booster authorization in a nutshell https://dev.to/boostercloud/booster-authorization-in-a-nutshell-5beo Booster authorization in a nutshell OverviewAfter several successful projects using The Booster Framework with a variety of clients and internal projects a common recurring question is How does Booster handle Authorization In this article I will shed some light on this topic by dissecting Booster s approach towards authorization Standards standards standardsBy design The Booster Framework is a role based authorized framework which means that commands and read operations are performed by specific roles created by the user i e Admin Customer User you name it If you want to keep your API open you can use the predefined all role but that would be a bad idea A better practice would be to limit the access to your API If you want to know more about how to define roles in Booster click here One widely adopted and standard way of transmitting secure information and authorizing users is the usage of JWT Tokens In this article I don t want to dig deeper into the details of the JWT standard but long story short you will need a JWT auth provider or create your own which generates valid tokens for your users Inside of those tokens includes the user roles you need as claims in your Booster application In the early stages of Booster development and since we were using AWS as our first cloud provider Booster offered endpoints to create update and login users using AWS Cognito When you created a user you had to specify that user s role as a part of the associated information When the user signed in Cognito returned a JWT token with all the information associated with the user including the role Then you had to use that token in the Authorization header in your API requests as a bearer token and Booster internally called Cognito again to verify if the token was valid and if it contained the right role to perform the API call That approach worked for a while until some Booster users didn t want to use Cognito Some wanted to use their auth while others were using a different auth provider like Auth Firebase Cognito Okta or whatever Once again the standards to the rescue Even if we were using JWT Booster was tightly coupled to Cognito to verify the token and get the information associated with it We decided to extract that part and use a standard token verification inside the Booster core which works with the JWT tokens no matter which provider you are using Side note We removed the Cognito dependency from Booster but if you still want to use it you can include the AWS Auth Rocket which provides the most common Cognito features out of the box for Booster applications Token verifiersThe JWT standard works by signing tokens using private and public key pairs using asymmetric cryptography and different algorithms mostly RSA or ECDSA So basically the public key is well known by the clients but the private key must be secret and will only be available on the server side Ok but what do I need to use an auth in Booster In Booster you will need to specify token verifiers You can use more than one depending on the use case but for the moment let s focus on using one Booster configure production config BoosterConfig void gt config tokenVerifiers jwksUri issuer rolesClaim firebase groups In the example above we are using Firebase as a provider for a demo app The jwksUri property contains the public URL where Firebase exposes the public keys as JSON web keys the issuer specifies who is emitting tokens and the rolesClaim value is the claim where Firebase adds the roles Let s create a configuration using the Cognito provider Booster configure production config BoosterConfig void gt config tokenVerifiers jwksUri https cognito idp region amazonaws com userPoolId well known jwks json issuer https cognito idp region amazonaws com userPoolId rolesClaim cognito groups The same here nothing weird except provider specific configuration That s great but what if I want to test my roles as a part of the development process and I don t want to stick without any auth provider In Booster you can use the awesome local provider for testing purposes and configure it alongside a local token verifier Your local kingdomFirst we need to generate our public and private keys for our local JWT auth token generator For that you can use this online tool Attention Don t use those keys in any production environment After that save both keys into proper files like private key and public key since you will need them later on To generate tokens for different users with different roles let s create a simple node js script mkdir testToken cd testToken npm init y npm install jsonwebtokenMove the private key you saved into the project into a folder inside your project i e keys folder Then copy the following code into the index js and change it accordingly depending on your needs const fs require fs const jwt require jsonwebtoken const path require path const privateKey fs readFileSync path join dirname keys private key function forUser email role const keyid booster const issuer booster return jwt sign id email demoRole role email privateKey algorithm RS subject email issuer keyid expiresIn console log Here is your admin user token forUser test boostercloud com Admin The code above is self explanatory but basically it s using the jsonwebtoken library to sign tokens with the private key and it s adding some data like the email and the role in the demoRole property Finally let s run it node index jsHere is your admin user token eyJhbGciOiJSUzINiIsInRcCIIkpXVCIsImtpZCIImJvbNZXIifQ eyJpZCIInRlcRAYmvcRlcmNsbVkLmNvbSIsImRlbWSbxlIjoiQWRtaWiLCJlbWFpbCIInRlcRAYmvcRlcmNsbVkLmNvbSIsImlhdCIMTYMjEMDENiwiZXhwIjoxNjUyMTkwMTULCJpcMiOiJibzdGVyIiwicViIjoidGVzdEBibzdGVyYxvdWQuYtIn HMBm MPVA QHKrhMTW zmHBFCTplOOfSDNrUUONzOU dgKgNNRV NXNem yksnUVIhhLffmRNljBtIGQ HaiVQSMnNqyJCQRCArkKxyuEQdRTNtLPS xetnkAJYzIlnOKRNeQphplaeyEMCSirjR AWoohoo you have created a valid JWT token to use in Booster In order to use that token in Booster in the API request headers you will need to config the public key in your token verifier Booster configure production config BoosterConfig void gt config tokenVerifiers publicKey fs readFileSync path join dirname keys public key issuer booster rolesClaim demoRole The code above will use the publicKey property instead of the jwksUri since we don t have a public URL with the keys as many providers offer Take into account that we are using the same issuer we used to sign in the token Extra extra Some users asked about token validations that will check other data encoded inside the token and grant or deny access based on that For this purpose Booster config has a property function called extraValidation which receives the decoded token as a parameter allowing the users to do things like this Booster configure production config BoosterConfig void gt config tokenVerifiers publicKey fs readFileSync path join dirname keys public key issuer booster rolesClaim demoRole extraValidation decodedToken gt if decodedToken payload trust throw We don t trust on you ConclusionsAs you have seen Booster provides a standard and easy way of authenticating requests based on user roles which will cover most of the common use cases since the JWS is widely adopted For those use cases that won t fit with the defaults Booster provides a way of extending the framework thanks to the usage of rockets but that s another story If you want to know more about how to create rockets please refer to the official documentation Last but not least if you have any questions about Booster or any other topic related we would be happy to hear your thoughts on our community channel 2022-05-26 09:01:46
金融 ニュース - 保険市場TIMES セゾン自動車火災保険、LINE上で保険証券を一括管理、「ほけん note」リリース https://www.hokende.com/news/blog/entry/2022/05/26/190000 セゾン自動車火災保険、LINE上で保険証券を一括管理、「ほけんnote」リリース保険証券をスマホのカメラで読み込むだけセゾン自動車火災保険株式会社以下、セゾン自動車火災保険は年月日、「ほけんnote」をリリースしたことを発表した。 2022-05-26 19:00:00
海外ニュース Japan Times latest articles Local opposition and regulations slow Japan’s return to nuclear https://www.japantimes.co.jp/news/2022/05/26/business/energy-shortages-nuclear-restart-debate/ Local opposition and regulations slow Japan s return to nuclearRising energy prices stemming from the war in Ukraine have stirred debate over nuclear power but the government would have to bypass its own rules 2022-05-26 18:31:02
海外ニュース Japan Times latest articles Yuka Saso to defend U.S. Open title under Japanese flag https://www.japantimes.co.jp/sports/2022/05/26/more-sports/golf/saso-major-defense-japan/ Yuka Saso to defend U S Open title under Japanese flag Hopefully people will not think that I abandoned the Philippines because I love the Philippines I also love Japan It s still the same me it s 2022-05-26 18:18:23
海外ニュース Japan Times latest articles Biden’s diplomatic brinkmanship on Taiwan’s ‘strategic ambiguity’ https://www.japantimes.co.jp/opinion/2022/05/26/commentary/world-commentary/taiwan-strategic-ambiguity/ taiwan 2022-05-26 18:32:29
ニュース BBC News - Home Energy bills to be cut by hundreds as part of £10bn support package https://www.bbc.co.uk/news/business-61584546?at_medium=RSS&at_campaign=KARANGA firms 2022-05-26 09:31:39
ニュース BBC News - Home Cost of living: 'My daughter won't ask me for money for sanitary products' https://www.bbc.co.uk/news/business-61527384?at_medium=RSS&at_campaign=KARANGA suggests 2022-05-26 09:04:03
ニュース BBC News - Home Monkeypox: First case confirmed in Wales https://www.bbc.co.uk/news/uk-wales-61591647?at_medium=RSS&at_campaign=KARANGA general 2022-05-26 09:37:23
ニュース BBC News - Home Energy prices: What is a windfall tax and how would it work? https://www.bbc.co.uk/news/business-60295177?at_medium=RSS&at_campaign=KARANGA companies 2022-05-26 09:11:01
北海道 北海道新聞 野党、細田氏の議長資質に疑問 セクハラ疑惑「自ら説明必要」 https://www.hokkaido-np.co.jp/article/685800/ 週刊文春 2022-05-26 18:06:00
北海道 北海道新聞 サントリーもビール値上げ 最大10%、大手4社動き https://www.hokkaido-np.co.jp/article/685799/ 最大 2022-05-26 18:04:00
北海道 北海道新聞 「海産総選挙」の商標権取得 噴火湾とようら観光協会 全国規模の開催想定 https://www.hokkaido-np.co.jp/article/685798/ 胆振管内 2022-05-26 18:03:00
北海道 北海道新聞 北海道内1950人感染 2日ぶり2千人下回る 新型コロナ https://www.hokkaido-np.co.jp/article/685732/ 北海道内 2022-05-26 18:00:47
IT 週刊アスキー 「パックマン」の名作から14タイトルを収録!家庭用ゲーム『PAC-MAN MUSEUM+』が本日発売 https://weekly.ascii.jp/elem/000/004/092/4092716/ museum 2022-05-26 18:15:00
IT 週刊アスキー 荒れ果てた砂漠の街を、きみの力で変えていこう DMM GAMES「きみのまち サンドロック」Steam版の早期アクセスを開始 https://weekly.ascii.jp/elem/000/004/092/4092715/ dmmgames 2022-05-26 18:10:00
IT 週刊アスキー 次は『ドラクエVIII』コラボだ!『DQウォーク』の公式動画スマートウォーク#45が公開 https://weekly.ascii.jp/elem/000/004/092/4092718/ dqviii 2022-05-26 18:10:00
IT 週刊アスキー ブラック確定チケットや10連召喚チケットなど豪華報酬をGET! DMM GAMES「千年戦争アイギス」シリーズにて8.5周年記念キャンペーン開催 https://weekly.ascii.jp/elem/000/004/092/4092720/ dmmgames 2022-05-26 18:10: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件)