AWS |
AWS |
How do I set up Google as a federated identity provider in an Amazon Cognito user pool? |
https://www.youtube.com/watch?v=pKA8qXINjkU
|
How do I set up Google as a federated identity provider in an Amazon Cognito user pool Skip directly to the demo For more details see the Knowledge Center article with this video Shwetha shows you how to set up Google as a federated identity provider in an Amazon Cognito user pool Introduction Create a Google API Console project Configure the OAuth consent screen Get OAuth client credentials Configure Google as a federated IdP in your user pool Construct the endpoint URL Test the endpoint URL ClosingSubscribe More AWS videos More AWS events videos ABOUT AWSAmazon Web Services AWS is the world s most comprehensive and broadly adopted cloud platform offering over fully featured services from data centers globally Millions of customers ーincluding the fastest growing startups largest enterprises and leading government agencies ーare using AWS to lower costs become more agile and innovate faster AWS AmazonWebServices CloudComputing |
2022-04-07 18:46:10 |
js |
JavaScriptタグが付けられた新着投稿 - Qiita |
コピペで完結 超簡単 JavaScript クイズ 記述式 |
https://qiita.com/kubochiro/items/5ab87ce421a3e9d452d3
|
javascript |
2022-04-08 03:13:20 |
Docker |
dockerタグが付けられた新着投稿 - Qiita |
【React】create-react-up時のNeed to install the following packages: create-react-appを出力させない方法【Docker】 |
https://qiita.com/P-man_Brown/items/6210e7c6a28a36e516d0
|
createreactup |
2022-04-08 03:19:52 |
海外TECH |
Ars Technica |
Higher W boson mass hints at chinks in Standard Model’s armor |
https://arstechnica.com/?p=1846105
|
advise |
2022-04-07 18:01:52 |
海外TECH |
MakeUseOf |
7 Ways to Prolong Your Smartphone's Life |
https://www.makeuseof.com/prolong-your-smartphones-life/
|
biennial |
2022-04-07 18:45:14 |
海外TECH |
MakeUseOf |
Improve Your Self-Care Routine With the Finch App |
https://www.makeuseof.com/finch-self-care-widget-pet-app/
|
unique |
2022-04-07 18:30:14 |
海外TECH |
MakeUseOf |
How to Connect Bluetooth Headphones to Your Xbox One |
https://www.makeuseof.com/connect-bluetooth-headphones-xbox-one/
|
bluetooth |
2022-04-07 18:30:15 |
海外TECH |
MakeUseOf |
How to Fix the File Size Exceeds Limit Error 0x800700DF in Windows 10 |
https://www.makeuseof.com/windows-10-file-size-limit-error-0x800700df-fix/
|
How to Fix the File Size Exceeds Limit Error xDF in Windows If you try to shift some hefty files in Windows you may end up breaking it in the process Don t worry it s easy to fix the xDF error |
2022-04-07 18:15:13 |
海外TECH |
DEV Community |
List vs Tuple - When To Use Each? |
https://dev.to/cscarpitta/list-vs-tuple-when-to-use-each-4e99
|
List vs Tuple When To Use Each In Python lists and tuples are two built in data types Conceptually they are very similar but there is some difference First the lists are mutable This means that once you have defined a list you can modify it For example gt gt gt l a b c gt gt gt l x gt gt gt print l a x c You can modify the list without any problems On the contrary tuples are immutable After creating a tuple you cannot modify it If you try to modify a tuple you will get an error as shown in the following example l a b c l x Traceback most recent call last File lt stdin gt line in lt module gt TypeError tuple object does not support item assignmentTuples have an advantage over lists They are more memory efficient and time efficient than the lists This means that using a tuple to store a set of items will require less memory than using a list to store the same set of items Also creating a tuple requires less time than creating a list The following table summarizes the differences ListsTuplesDefined using square bracketsDefined using rounded brackets️Lists are mutableTuples are immutableUse more memory️Use less memorySlower️Faster ConclusionsTuples are more memory and time efficient but cannot be modified Therefore if you have data that don t need to be changed you should use tuples Instead if you need to change data you are forced to use lists |
2022-04-07 18:16:47 |
海外TECH |
DEV Community |
Understanding Spring4Shell RCE from an engineer’s perspective |
https://dev.to/cjddww/understanding-spring4shell-rce-from-an-engineers-perspective-4iod
|
Understanding SpringShell RCE from an engineer s perspective What happened On March A very old RCE remote code execution loophole tracked as CVE was exposed in a series of Tweets It affects most java projects using JDK This loophole enables attackers to exploit the server by executing a command on a server carried in a HTTP request Who should worry about this vulnerability If your project meets all conditions below then you should take a serious look into this JDK Imported spring webmvc dependencyDeployed as WAR but not JARApache Tomcat as the Servlet container the only container confirmed exploit currently How did this happen Before explaining more details let s first start with a simple API defined in SpringMVC controller Controllerpublic class DemoController PostMapping animals ResponseBody public Map lt String Object gt importAnimalIntoZoo Animal animal HashMap lt String Object gt response new HashMap lt gt response put data animal return response read more |
2022-04-07 18:16:11 |
海外TECH |
DEV Community |
Building a Full Stack NFT Market Place with Near Protocol and React.js |
https://dev.to/kels_orien/building-a-full-stack-nft-market-place-with-near-protocol-and-reactjs-ak9
|
Building a Full Stack NFT Market Place with Near Protocol and React jsFor this guide I decided to build an NFT Market Place using Near Protocol although there is a much faster way of setting up a near project using create near app I wanted to put the pieces together to make it easier to understand Near Protocol OverviewNear Protocol is a Layer one L developer friendly proof of stake public blockchain Near Protocol compared to Ethereum has significantly lower Gas fees thanks to a more efficient contract execution model It also uses Nightshade a dynamic approach to Sharding Benefits of Near Protocol NEAR allows transactions to be processed for an extremely low fee Near Protocol is significantly faster than Ethereum Layer OneNear features human readable addresses for contracts and accountsThe use of Rust or AssemblyScript for smart contracts on the Near platform made it easy for developers to write code Developers and users can move assets quickly thanks to the ETH Near Rainbow Bridge Project OverviewThis tutorial comprises of three sections as follows Part Setting up the NFT Contract Backend and Frontend Part Setting up the Market Place Backend and Frontend We are going to build a Market place for both frontend and backend Part The repository for part one of this project is located here PrerequisitesNodejs is a JavaScript runtime environment built on Chrome V engine NEAR Wallet Account NEAR Wallet is a secure wallet and account manager for your accounts on the NEAR blockchain A Near wallet allows you to interact with applications on Near and securely store tokens and NFTs For this tutorial we are using a testnet wallet Rust Toolchain Rust Toolchain is a particular version of a collection of programs needed to compile a Rust application it includes but is not limited to the compiler rustc the dependency manager and build tool cargo the documentation generator rustdoc and the static and or dynamic libraries NEAR CLI is a NodeJS command line interface that utilizes near api js to connect to and interact with the NEAR blockchain Getting StartedNear Protocol uses rust programming language for it s smart contracts We are going to start with a rust contract template From your CLI create a folder directory named nft marketplace part Enter your project root directory cd nft marketplace part Clone the following rust template into your nft market place part root folder directory git clone Rename the file rust template to nft contractupdate your Cargo toml file package name rust template name nft contract version authors Near Inc lt hello near org gt authors Your name lt youraddress mail com gt edition lib crate type cdylib crate type cdylib rlib dependencies near sdk pre serde json profile release codegen units Tell rustc to optimize for small code size opt level z lto truedebug falsepanic abort overflow checks trueBy changing name we ll be changing the compiled wasm file s name after running the build script For Windows it s the build bat for OS X and linux build shFrom this near protocol nft tutorial in github Copy the src directory of nft contract folder and copy it into your new own nft contract folder Your nft contract folder directory should look like this nft contract build sh build bat Cargo lock Cargo toml README md test sh src approval rs enumeration rs events rs internals rs lib rs metadata rs mint rs nft core rs royalty rsapproval rs contains functions that controls the access and transfers of non fungible tokens enumeration rs contains the methods to list NFTs tokens and their owners lib rs Holds the smart contract initialization functions metadata rs Defines the token and metadata structure mint rs Contains token minting logicnft core rs Core logic that allows you to transfer NFTs between usersroyalty rs Contains payout related functions Logging into near accountWe are going to login into near account from CLI near loginThis is take you to the Near Wallet again where you can confirm the creation of a full access key Follow the instructions from the login command to create a key on your hard drive The key will be located in your operating system s home directory in a folder called near credentials Build the contractFrom nft contract directory via CLIFor Windows users type build batFor Mac and Linux users build sh Creating a subaccountif you have followed the prerequisites recommended you already have a near wallet account created and NEAR CLI installed with full access key on your machine The next step is to create a subaccount and deploy the contract to it To create subacccount from nft contract directory via CLI run near create account nft contract youraccountname testnet masterAccount youraccountname testnetyouraccountname is the name of the testnet wallet that should have been created by you earlier After creating the account you can view the state with the following command near state nft contract youraccountname testnetYour account state should look like this Note your codehash the numbers are all ones s this means that no contract has been deployed to this account this will change when the contract is deployed Deploy the contractnear deploy accountId nft contract youraccountname testnet wasmFile res nft contract wasmCheck your account state again you can see that your hash changed from only ones this is a code hash of a deployed smart contract Initialize Your contractTo initialize our contract from CLI For Mac and Linux Users near call nft contract youraccountname testnet new default meta owner id nft contract youraccountname testnet accountId nft contract youraccountname testnetFor Windows Users Windows command prompt doesn t accept single quotes so we have to escape them with the backward slash See below near call nft contract youraccountname testnet new default meta owner id nft contract youraccountname testnet accountId nft contract youraccountname testnetAfter initializing to view metadata via CLI use commandnear view nft contract youraccountname testnet nft metadata Minting TokenFor Mac and Linux users near call nft contract youraccountname testnet nft mint token id token metadata title My Non Fungible Team Token description The Team Most Certainly Goes media receiver id youraccountname testnet accountId youraccountname testnet amount For Windows users near call nft contract youraccountname testnet nft mint token id token metadata title My Cat Fungible Meme Token description Grumpy Cat media receiver id youraccountname testnet accountId youraccountname testnet amount You can check the collectibles section of your testnet wallet for your freshly minted NFT View NFT Information via CLI For Mac and Linux users near view nft contract youraccountname testnet nft token token id token For Windows users near view nft contract youraccountname testnet nft token token id token Transferring NFTsTo transfer an NFT create another testnet wallet accountTo transfer run command via CLI near call nft contract youraccountname testnet nft transfer receiver id yoursecondaccountname testnet token id token memo Go Team accountId youraccountname testnet depositYocto In this call yoctoNEAR is deposited for security so that the user will be redirected to the NEAR wallet Windows users should remember to add backslash before every quote mark like we did previously Creating the FrontendYou can follow this nice tutorial to add react with parcel bundler on your nft marketplace part src directory Create a src folder directory inside the nft marketplace part and move your index html and index js inside it From the nft marketplace part directory via CLI install npm install near api js regenerator runtime react scriptsupdate your the scripts sections of your package json scripts start parcel src index html build react scripts build test react scripts test eject react scripts eject Entry pointUpdate our src index js file with the following code We are starting with an asynchronous JavaScript function that sets up the required parameters that are passed to the React app Let s breakdown the code above starting with the imports We imported from config js This file contains details of the different networks near api js We import all the functions of this dependency to nearAPIconst keyStore new nearAPI keyStores BrowserLocalStorageKeyStore Creates a keystore for signing transactions using the user s key which is located in the browser s local storage after the user logs in const near await nearAPI connect keyStore nearConfig initializing the connection to the NEAR testnet const walletConnection new nearAPI WalletConnection near Initializes wallet connectioninitContract then currentUser nearConfig walletConnection near gt ReactDOM render lt App currentUser currentUser nearConfig nearConfig walletConnection walletConnection near near gt document getElementById root The initContract method is called and data is passed to the App js Component App Component Let s start be discussing the imports Modal is a component overlay that will enable us to add a form inside it useModal uses useState to open and close modal Now let s discuss the functions signIn Remember we passed a walletConnection object to App js Component once logged in the object will be tied to the logged in user and they ll use that key to sign in transactions and interact with the contract signOut allows user to sign out of wallet account sendMeta is a function call to the contract method new default meta to set metadata remember we used this method to set metadata when we used CLI displayAllNFT is a function call to nft tokens for owner method in the contract account which retrieves all nfts from the collectibles section of the wallet account mintAssetToNFT is a function call to mint an assets picture video using the nft mint method from the contract Create file names config js Modal js useModal js Close js and App css in your nft marketplace part src directory with the following code config js useModal js Modal js Close js App cssFor this file you can find the CSS code hereTo run React app from CLI From nft marketplace part directory use command npm start |
2022-04-07 18:12:43 |
海外TECH |
DEV Community |
Not sure how to get involved and become an open source contributor? It can be as easy as saying hello! |
https://dev.to/danglewood/not-sure-how-to-get-involved-and-become-an-open-source-contributor-it-can-be-as-easy-as-saying-hello-26ih
|
Not sure how to get involved and become an open source contributor It can be as easy as saying hello Found CEO Didier Lopes has a special place in his heart for Python Open Source Fintech and Memes How about an open source and finance themed meme generator dashboard for Jupyter Notebooks We re always looking to incorporate the open source community contributions No contribution is too small Say hello on our Community Discord Server Checkout the repository |
2022-04-07 18:08:16 |
海外TECH |
Engadget |
Smart reveals the production version of its compact electric SUV |
https://www.engadget.com/smart-number-1-ev-production-model-184859916.html?src=rss
|
Smart reveals the production version of its compact electric SUVSmart is finally ready to show the production version of its Concept electric SUV and you ll be glad to hear that the distinctive design largely remains intact The newly unveiled Smart looks much like the prototype compact SUV inside and out including the frameless windows and quot floating halo quot glass roof You mainly give up usual concept car excesses like the scissor doors and giant inch wheels you ll have to make do with inchers and there s a standard three seat bench in the back instead of two chairs More importantly the performance appears healthy for an EV this size While the miles of maximum range according to the WLTP test cycle isn t exceptional it comes from a kWh battery that charges rather quickly You can reportedly bring the Smart from a percent charge to percent in under minutes if you use a kW DC charger and even a kW AC supply will accomplish the same feat in less than three hours You could plug in at the end of a long day knowing that you ll have plenty of range in the morning The mini ute should be reasonably quick too with the equivalent of HP and ft lbs of torque The MPH top speed isn t blistering but it easily puts the MPH of Smart s EQ Forfour to shame The in cabin tech will also seem familiar if you ve seen the concept The finished Smart includes a inch infotainment screen a inch digital instrument cluster and a inch heads up display You can also expect driver assistants including for the highway and stop and go traffic over the air updates and a quot digital key quot option to share your EV with friends Smart hasn t narrowed down the release window or pricing but said last fall that it would sell the in China in It s headed to Europe as well We wouldn t count on a North American debut when Smart backed out of the region years ago With that said this is the closest Smart has come to appealing to the continent s SUV centric tastes ーit s something you could imagine on American roads however unlikely that may be |
2022-04-07 18:48:59 |
海外科学 |
NYT > Science |
Astronomers Find What Might Be the Most Distant Galaxy Yet |
https://www.nytimes.com/2022/04/07/science/astronomers-distant-galaxy.html
|
Astronomers Find What Might Be the Most Distant Galaxy YetIs the object a galaxy of primordial stars or a black hole knocking on the door of time The Webb space telescope may help answer that question |
2022-04-07 18:54:09 |
海外科学 |
BBC News - Science & Environment |
Shock result in particle experiment could spark physics revolution |
https://www.bbc.co.uk/news/science-environment-60993523?at_medium=RSS&at_campaign=KARANGA
|
modern |
2022-04-07 18:26:24 |
金融 |
金融庁ホームページ |
金融庁職員の新型コロナウイルス感染について公表しました。 |
https://www.fsa.go.jp/news/r3/sonota/20220407.html
|
新型コロナウイルス |
2022-04-07 18:30:00 |
ニュース |
BBC News - Home |
US Senate confirms Ketanji Brown Jackson to top court |
https://www.bbc.co.uk/news/world-us-canada-61026996?at_medium=RSS&at_campaign=KARANGA
|
black |
2022-04-07 18:18:05 |
ニュース |
BBC News - Home |
Grenfell Tower inquiry: Ex-minister unaware red tape cuts affected fire safety |
https://www.bbc.co.uk/news/uk-61027161?at_medium=RSS&at_campaign=KARANGA
|
safety |
2022-04-07 18:28:28 |
ニュース |
BBC News - Home |
Shock result in particle experiment could spark physics revolution |
https://www.bbc.co.uk/news/science-environment-60993523?at_medium=RSS&at_campaign=KARANGA
|
modern |
2022-04-07 18:26:24 |
ニュース |
BBC News - Home |
Man City: Der Spiegel alleges three-year Premier League investigation |
https://www.bbc.co.uk/sport/football/61017887?at_medium=RSS&at_campaign=KARANGA
|
Man City Der Spiegel alleges three year Premier League investigationAn investigation into potential rule breaking at Manchester City is focused on three issues of alleged wrongdoing German newspaper Der Spiegel claims |
2022-04-07 18:47:01 |
ビジネス |
ダイヤモンド・オンライン - 新着記事 |
中外製薬が社員の働きがいを高めた「やっぱり、人」という変わらぬ想い - 働きがいのある企業の秘密2022 |
https://diamond.jp/articles/-/300740
|
中外製薬が社員の働きがいを高めた「やっぱり、人」という変わらぬ想い働きがいのある企業の秘密がん領域製品で国内Noのシェア年を有し、医療用医薬品に特化した中外製薬。 |
2022-04-08 03:55:00 |
ビジネス |
ダイヤモンド・オンライン - 新着記事 |
2008年金融危機、今のインフレへの教訓は - WSJ PickUp |
https://diamond.jp/articles/-/301221
|
wsjpickup |
2022-04-08 03:45:00 |
ビジネス |
ダイヤモンド・オンライン - 新着記事 |
FRB発の資産圧縮タントラム、長引く可能性 - WSJ PickUp |
https://diamond.jp/articles/-/301222
|
wsjpickupfrb |
2022-04-08 03:40:00 |
ビジネス |
ダイヤモンド・オンライン - 新着記事 |
9割のゴルファーが知らない「体のクセ」という最強の武器 - ニュース3面鏡 |
https://diamond.jp/articles/-/301220
|
割のゴルファーが知らない「体のクセ」という最強の武器ニュース面鏡コロナ禍でゴルフは三密を避けて運動できるスポーツとして人気がありますが、実際にプレーするとなれば、なかなか上達しにくく、「難しい」というイメージが先行してしまいます。 |
2022-04-08 03:35:00 |
ビジネス |
ダイヤモンド・オンライン - 新着記事 |
気候・環境の非常事態の時代、大学に潜む真のリスクとは - Virtical Analysis |
https://diamond.jp/articles/-/301062
|
気候・環境の非常事態の時代、大学に潜む真のリスクとはVirticalAnalysis気候変動問題は、その多くが人間活動に由来するものであり、持続可能な環境づくりは人類共通の喫緊かつ最重要の課題である、という認識はもはや世界のコンセンサスだ。 |
2022-04-08 03:25:00 |
コメント
コメントを投稿