投稿時間:2022-02-01 02:43:32 RSSフィード2022-02-01 02:00 分まとめ(54件)

カテゴリー等 サイト名等 記事タイトル・トレンドワード等 リンクURL 頻出ワード・要約等/検索ボリューム 登録日
AWS AWS Architecture Blog Scaling DLT to 1M TPS on AWS: Optimizing a Regulated Liabilities Network https://aws.amazon.com/blogs/architecture/scaling-dlt-to-1m-tps-on-aws-optimizing-a-regulated-liabilities-network/ Scaling DLT to M TPS on AWS Optimizing a Regulated Liabilities NetworkSETL is an open source distributed ledger technology DLT company that enables tokenisation digital custody and DLT for securities markets and payments In mid they developed a blueprint for a Regulated Liabilities Network RLN that enables holding and managing a variety of tokenized value irrespective of its form In a December collaboration with Amazon … 2022-01-31 16:23:01
AWS AWS Compute Blog Using the circuit breaker pattern with AWS Step Functions and Amazon DynamoDB https://aws.amazon.com/blogs/compute/using-the-circuit-breaker-pattern-with-aws-step-functions-and-amazon-dynamodb/ Using the circuit breaker pattern with AWS Step Functions and Amazon DynamoDBThis post is written by Anitha Deenadayalan Developer Specialist SA DevAx Modern applications use microservices as an architectural and organizational approach to software development where the application comprises small independent services that communicate over well defined APIs When multiple microservices collaborate to handle requests one or more services may become unavailable or exhibit a high latency … 2022-01-31 16:48:56
python Pythonタグが付けられた新着投稿 - Qiita Python で list_by_resource_group() を利用してリソースグループ内のリソース一覧を取得してみました https://qiita.com/turupon/items/0cc2a4a7fa5b680dcd71 Pythonでlistbyresourcegroupを利用してリソースグループ内のリソース一覧を取得してみました概要AzureSDKforPythonを利用して、とあるサブスクリプションのリソースグループ一覧の取得と、「listbyresourcegroup」を利用して、指定したリソースグループにあるリソース一覧を取得するPythonプログラムです。 2022-02-01 01:00:52
js JavaScriptタグが付けられた新着投稿 - Qiita [JS]HTML要素の取得や書き換えをする https://qiita.com/Shi-raCanth/items/ecc7de8b835f852d5a8a JSHTML要素の取得や書き換えをするHTML要素の取得や書き換えをすることで、イベント発火させると表示されている文字を変更することができるようになります。 2022-02-01 01:23:22
js JavaScriptタグが付けられた新着投稿 - Qiita ローカルストレージは安全に使用できるのか? https://qiita.com/bricolageart/items/03328b8d92254d0aaa47 ローカルに保存されたデータをデベロッパが管理できないローカルストレージでは、サーバー側のストレージ、つまりデベロッパがコントロールできるデータベースがありません。 2022-02-01 01:01:51
Ruby Rubyタグが付けられた新着投稿 - Qiita Rails のポリモーフィック関連でカラムの値とは異なるモデルを使用する https://qiita.com/kurashita/items/cbc11d81db0448ce363f Railsのポリモーフィック関連でカラムの値とは異なるモデルを使用する背景あまりないかもしれませんが、例えばメインのRailsアプリで運用されてるDBにサブのRailsアプリからもアクセスしたいような場合に同じテーブルを違うネームスペースのクラスから扱いたい場合があります。 2022-02-01 01:47:57
Ruby Rubyタグが付けられた新着投稿 - Qiita injectメソッド https://qiita.com/IshidaKeisuke/items/9e56a5313ae780ec7f11 シンボルで書くとスッキリしますね実際に問題を解いてみましょう選択肢➀この選択肢は、今回の記事を読んでいけば分かるとおもいます。 2022-02-01 01:38:49
AWS AWSタグが付けられた新着投稿 - Qiita ARNって何だ? URIとURNと比較してみる https://qiita.com/toycode/items/2b387bb53a442ebd6319 最後にARNは特にURIに準拠と謳っている訳ではないので、URIやURNと比較すること自体意味はないのかもしれませんが、構文がこれらを想起させるので、何がどう違うのかなと見て来ました。 2022-02-01 01:41:43
Azure Azureタグが付けられた新着投稿 - Qiita Python で list_by_resource_group() を利用してリソースグループ内のリソース一覧を取得してみました https://qiita.com/turupon/items/0cc2a4a7fa5b680dcd71 Pythonでlistbyresourcegroupを利用してリソースグループ内のリソース一覧を取得してみました概要AzureSDKforPythonを利用して、とあるサブスクリプションのリソースグループ一覧の取得と、「listbyresourcegroup」を利用して、指定したリソースグループにあるリソース一覧を取得するPythonプログラムです。 2022-02-01 01:00:52
Git Gitタグが付けられた新着投稿 - Qiita 【git・GitHub 再入門】 https://qiita.com/Ueken3pei/items/88614182523c40c505e7 margeの種類fastforward早送りマージmasterから分岐したdevelopブランチに変更を加えて、masterには変化がない状態でマージをしたとき、masterはdevelopのブランチに移動するだけで完了する。 2022-02-01 01:35:24
Ruby Railsタグが付けられた新着投稿 - Qiita Rails のポリモーフィック関連でカラムの値とは異なるモデルを使用する https://qiita.com/kurashita/items/cbc11d81db0448ce363f Railsのポリモーフィック関連でカラムの値とは異なるモデルを使用する背景あまりないかもしれませんが、例えばメインのRailsアプリで運用されてるDBにサブのRailsアプリからもアクセスしたいような場合に同じテーブルを違うネームスペースのクラスから扱いたい場合があります。 2022-02-01 01:47:57
Ruby Railsタグが付けられた新着投稿 - Qiita injectメソッド https://qiita.com/IshidaKeisuke/items/9e56a5313ae780ec7f11 シンボルで書くとスッキリしますね実際に問題を解いてみましょう選択肢➀この選択肢は、今回の記事を読んでいけば分かるとおもいます。 2022-02-01 01:38:49
技術ブログ Developers.IO [レポート]クロスアカウントのCI/CDパイプラインを自動化 #DOP402 #reinvent https://dev.classmethod.jp/articles/reinvent-2021-report-dop402/ dopreinvent 2022-01-31 16:19:44
海外TECH MakeUseOf 10 Reasons You Should Switch to Firefox https://www.makeuseof.com/reasons-you-should-switch-to-firefox/ firefox 2022-01-31 16:48:31
海外TECH MakeUseOf How to Create Column Charts in Google Sheets https://www.makeuseof.com/how-to-create-column-charts-google-sheets/ sheets 2022-01-31 16:45:12
海外TECH DEV Community 5 Facebook Groups for Artificial Intelligence Enthusiasts https://dev.to/imagescv/5-facebook-groups-for-artificial-intelligence-enthusiasts-3gje Facebook Groups for Artificial Intelligence EnthusiastsFacebook is a great place to connect with people who share your interests If you re interested in Artificial Intelligence then you ll love these amazing Facebook groups These groups are a great place to learn more about AI ask questions and connect with other enthusiasts Artificial Intelligence amp Deep Learning K membersThe definitive and most active FB Group on A I Neural Networks and Deep Learning All things new and interesting on the frontier of A I and Deep Learning Neural networks will redefine what it means to be a smart machine in the years to come Data Science Machine Learning Artificial intelligence Deep Learning K membersThis is a serious group for finding solutions and understanding related to Machine Learning Artificial Intelligence and Deep Learning Artificial intelligence Machine learning Deep learning K membersThis group is created for people interested in artificial intelligence Machine learning and deep learning Everyone is welcome to joinArtificial intelligence is the general name of the technology the development of machines which are created entirely by artificial means and can exhibit behaviors like human beings without taking advantage of any living organism Artificial Intelligence K membersThis group is created with an intention to promote the real world happenings of Artificial intelligence AI People should know the inventions amp discoveries amp happenings around them in the field of AI After all it is necessary to know about the latest inventions amp discoveries happenings for humanity need Comfort amp Luxuries Artificial Intelligence and Machine LearningK membersThis group is for AI Artificial Intelligence amp ML Machine Learning Beginners Here We cover all the Important Concepts of AI amp ML From Scratch to Advanced amp here we Share our knowledge and Documents important links which is very useful for all of us present in this group As AI continues to grow in importance there are some great Facebook groups that can help you stay up to date on the latest developments Whether you re an expert or just starting out your exploration of this emerging field these Facebook Groups are a must for anyone interested in artificial intelligence images cv provide you with an easy way to build image datasets K categories to choose fromConsistent folders structure for easy parsingAdvanced tools for dataset pre processing image format data split image size and data augmentation Visit images cv to learn more 2022-01-31 16:31:19
海外TECH DEV Community Adding a environment .env file to ReactJS project https://dev.to/rajeshroyal/adding-a-env-file-to-reactjs-project-2h31 Adding a environment env file to ReactJS projectNote this feature is available with react scripts and higher WARNING Do not store any secrets such as private API keys in your React app Environment variables are embedded into the build meaning anyone can view them by inspecting your app s files So why not I just use a js ts json file well something is better than having nothing Sometimes we need to have multiple development environments dev stag prod and according to these environments you want to choose your variables that s where env files can be useful There are two ways you can use environment files in you react js project Method If your project is built with CRA create react app then it becomes very easy Read the official documentation Adding Custom Environment Variables to CRA project Long story short Create a env file at the root of your project Variable name must start with REACT APP Use it anywhere in react process env REACT APP VAR NAMEQuick sneak peak Method For custom ReactJS setups please refer to this stackoverflow This link lands you directly to the working solution Adding an env file to React Project  NOTE Need to restart application after adding variable in env file    That s all for today see you soon Oh I forget to tell you that you can still make that heart red in top left corner or save this for later Tada ‍ ️ 2022-01-31 16:28:23
海外TECH DEV Community 03 Understanding Blockchain with `ethers.js`: 4 Tasks of interacting with smart contract https://dev.to/yakult/03-understanding-blockchain-with-ethersjs-4-tasks-of-interacting-with-smart-contract-3ef6 Understanding Blockchain with ethers js Tasks of interacting with smart contractIn third part of this ethers js tutorial we will use ethers js to interact with smart contract What we do here is a little beyond the scope of learning ethers js Write a ERC token smart contract with OpenZeppelinDeploy the smart contract to Hardhat local testnetInteract with smart contract using Ethers js Task Write ERC token smart contractWe will write an ERC token smart contract using a popular and verified solidity library OpenZeppelin Task Install OpenZeppelinIn the hardhat project directory install OpenZepplin yarn add openzeppelin contracts Task Write smart contract in SolidityThere is a Greeter sol and related test script test index ts and deploy script scripts deploy ts in the project We will leave them there Add contracts classtoken sol SPDX License Identifier Unlicensepragma solidity import openzeppelin contracts token ERC presets ERCPresetMinterPauser sol contract ClassToken is ERCPresetMinterPauser constructor uint initialSupply ERCPresetMinterPauser ClassToken CLT mint msg sender initialSupply We create an ERC token smart contract inherit ERCPresetMinterPauser of OpenZeppelin The token name is ClassToken symbol is CLT Initial supply of this token will be set in deployment script Initial supply of CLT will be sent to mint to deployer s address Compile smart contract by running yarn hardhat compile Task Write Unit Test for smart contractUnit test of smart contract is a must We should cover smart contract with unit test as much as possible The following script is included here to illustrate that we can t skip this step Add test ClassToken ts import expect from chai import ethers from hardhat describe ClassToken function it Should have the correct initial supply async function const initialSupply ethers utils parseEther const ClassToken await ethers getContractFactory ClassToken const token await ClassToken deploy initialSupply await token deployed expect await token totalSupply to equal initialSupply Run test yarn hardhat testUnit test passed We will try to deploy it to a local testnet Task Deploy smart contract to local testnetWe will deploy smart contract both to in process and stand alone local testnet to display usage and difference between these two Task Write deployment scriptAdd scripts deploy classtoken ts import ethers from hardhat async function main const initialSupply ethers utils parseEther const ClassToken await ethers getContractFactory ClassToken const token await ClassToken deploy initialSupply await token deployed console log ClassToken deployed to token address main catch error gt console error error process exitCode The intialSupply is set to be CLS deploy on in process local testnet yarn hardhat run scripts deploy classtoken ts ClassToken deployed to xFbDBafecbfdFfaaIf you run the script again you will find the smart contract is always deployed to the same address as in process is new every time Run a stand alone local testnetRun a stand alone local testnet at another terminal yarn hardhat node Deploy ClassToken to stand alone local testnetDeploy smart contract yarn hardhat run scripts deploy classtoken ts network localhost ClassToken deployed to xFbDBafecbfdFfaaIf you run the script again you will find the smart contract is deployed to a new address yarn hardhat run scripts deploy classtoken ts network localhost ClassToken deployed to xefECEFeBbEbbFWe will use the smart contract instance at xefECEFeBbEbbF Task Interact with smart contract from console Task Get smart contract instanceRun console connecting to stand alone localhost yarn hardhat console network localhostGet Smart contract const address xefECEFeBbEbbF const token await ethers getContractAt ClassToken address Task Get to know properties smart contractDocs can be found at Contract propertiestoken interafacetoken providertoken signertoken signer address xfFdeaadFFceaBcffFb Task Get data from smart contractparseEther ethers utils parseEtherformatEther ethers utils formatEtherawait token totalSupply then r gt console log formatEther r await token symbol CLTawait token name ClassToken Task Token balance of deployerdeployer xffdeaadffceabcfffb await token balanceOf deployer then r gt console log formatEther r Task Transfer Token from deployer to otherWe will transfer CLS token by calling transfer of ERC standard You can also send ERC token using MeteMask in two steps add token using token address contract address send some amount of it to other s address to address xFbfAfeadaBeEacC await token transfer to address parseEther await token balanceOf to address then r gt console log formatEther r Now only user with the correct private key of the address can use this token in address xFbfAfeadaBeEacC Task Connect wallet and transfer tokenNote you can refer to the second part of this tutorial Understanding Blockchain with ethers js Tasks of wallet to know more about wallet usage Task Create wallet account not in hardhat defaultprivateKey xfedfacaacecdaadbbcecfddbbd wallet new ethers Wallet privateKey wallet address xFbfAfeadaBeEacC Task Send ethers from account for gas fee usageIf adress xFbfAfeadaBeEacC has no test ETH it will not have the ability to send transactions Do remember to send some ETH to this address for gas usage If it has test ETH you can skip this step Task signer await ethers provider getSigner send address await signer getAddress to address wallet addressnonce await signer getTransactionCount gas price await signer getGasPrice gas limit ethers utils hexlify value ethers utils parseUnits tx from send address to to address value value nonce nonce gasLimit gas limit gasPrice gas price await signer sendTransaction tx await ethers provider getBalance wallet address then result gt ethers utils formatEther result Task Connect wallet to providerConnect wallet to providerwalletsigner wallet connect ethers provider walletsigner address still be the one Task Set walletsigner as signer of ClassTokennewinstance await token connect walletsigner newinstance signer address xFbfAfeadaBeEacC Task We can send CLT from this addressdeployer xffdeaadffceabcfffb await newinstance transfer deployer parseEther Do read the return of this contract method call Let s check whether we get the correct result await token balanceOf deployer then r gt console log formatEther r await token balanceOf to address then r gt console log formatEther r After going through tasks in this tutorial you can begin to use Ethers js in Web development Ethers js as well as web js is very important as it stands at the overlapped space between blockchain and web App If you find this note useful please follow my twitter fjun 2022-01-31 16:28:04
海外TECH DEV Community 02 Understanding Blockchain with `ethers.js`: 4 Tasks of wallet https://dev.to/yakult/02-understanding-blockchain-with-ethersjs-4-tasks-of-wallet-nn5 Understanding Blockchain with ethers js Tasks of walletEthers js provide abilities to deal with Ethereum blockchain wallet You can find Ethers js documents about Wallet here Get a better understanding with the following tasks Task Create wallet from mnemonic and privateKey Task Create wallet from mnemonicmnemonic myth like bonus scare over problem client lizard pioneer submit female collect check whether it is valid mnemonicethers utils isValidMnemonic mnemonic wallet ethers Wallet fromMnemonic mnemonic Task Address Public key and Private keywallet address xFbfAfeadaBeEacC wallet privateKey xfedfacaacecdaadbbcecfddbbd wallet publicKey xeacfcadffbabffeabebbdedffebcebeaeecbcabceecdebbfba This is the address with path m We can also get mnemonic of wallet if it is created from mnemonic wallet mnemonic phrase myth like bonus scare over problem client lizard pioneer submit female collect path m locale en Task Create wallet from privateKeyWe can also create wallet from privateKey Wallet created in this way has no mnemonic property privateKey xfedfacaacecdaadbbcecfddbbd wallet new ethers Wallet privateKey wallet address xFbfAfeadaBeEacC wallet mnemonic null Task create addresses with mnemonicWe will use Ethers js utility for HD Wallet HDNode to do this Task Create HDNode instance from mnemonicmnemonic myth like bonus scare over problem client lizard pioneer submit female collect hdnode ethers utils HDNode fromMnemonic mnemonic Task Get addressesbasepathstr m for i i lt i console log hdnode derivePath basepathstr i toString address result xFbfAfeadaBeEacCxFFcfFDEEacbcBEEFCfxdBdeffbDfeAbAeb The first is with path m The second is with path m The third is with path m Task Get address with pathWe can also get wallet address with path mnemonic myth like bonus scare over problem client lizard pioneer submit female collect wallet ethers Wallet fromMnemonic mnemonic m wallet address xFFcfFDEEacbcBEEFCf Task Sign message with wallet Task Prepare wallet as a signermnemonic myth like bonus scare over problem client lizard pioneer submit female collect wallet ethers Wallet fromMnemonic mnemonic m Task sign messagemessage solidity class sig await wallet signMessage message xdceaebbbdeeceedeeebcffddeffbedcebecdfacafdaabfbab The signature is result to signing xEthereum Signed Message n message length message Ethers js docs explains A signed message is prefixd with xEthereum Signed Message n and the length of the message using the hashMessage method so that it is EIP compliant If recovering the address in Solidity this prefix will be required to create a matching hash Task verify messageethers utils verifyMessage message sig xFFcfFDEEacbcBEEFCf Task sign message hashWe can hash the message by ourselves and sign messagehash instead We got the same signature messageHash ethers utils hashMessage message sig await wallet signMessage messageHash xfcfcecbdcebfafddbdfabedfeabafadbddfccdabeffcdcab Task Understanding signatureGet the r s v of the signature which is r s v const r sig slice const s x sig slice const v x sig slice Task Send transaction from wallet Task Create wallet get wallet account not in hardhat defaultprivateKey xfedfacaacecdaadbbcecfddbbd wallet new ethers Wallet privateKey wallet address xFbfAfeadaBeEacC wallet provider null Task send ethers from account to test accountYou can send Test Ethers to test wallet address for gas fee usage using MetaMask Or you can do it in the console as we do in previous part of this tutorial signer await ethers provider getSigner send address await signer getAddress to address wallet addressnonce await signer getTransactionCount gas price await signer getGasPrice gas limit ethers utils hexlify value ethers utils parseUnits tx from send address to to address value value nonce nonce gasLimit gas limit gasPrice gas price await signer sendTransaction tx await ethers provider getBalance wallet address then result gt ethers utils formatEther result Task Try to send from wallet wronglyLet us try to call sendTransaction from signer which is different with the send address send address wallet addressto address await signer getAddress nonce await signer getTransactionCount gas price await signer getGasPrice gas limit ethers utils hexlify value ethers utils parseUnits tx from send address to to address value value nonce nonce gasLimit gas limit gasPrice gas price await signer sendTransaction tx We got a Error Error from address mismatch Task Send from wallet as a signer connect walletFirst connect wallet to provider The return of connect is the wallet instance which can be a signer walletsigner await wallet connect ethers provider walletsigner address xFbfAfeadaBeEacC Task Send from wallet as a signerSecond sendTransaction with walletsigner to address await signer getAddress nonce await walletsigner getTransactionCount gas price await signer getGasPrice gas limit ethers utils hexlify value ethers utils parseUnits tx from send address to to address value value nonce nonce gasLimit gas limit gasPrice gas price await walletsigner sendTransaction tx await ethers provider getBalance wallet address then result gt ethers utils formatEther result If you find this note useful please follow my twitter fjun 2022-01-31 16:27:00
海外TECH DEV Community 01 Understanding Blockchain with `ethers.js`: 4 Tasks of Basics and Transfer https://dev.to/yakult/01-understanding-blockchain-with-ethersjs-4-tasks-of-basics-and-transfer-5d17 Understanding Blockchain with ethers js Tasks of Basics and TransferAs a web developer you can play with Ethereum blockchain using Ethers js to get a deeper understanding This parts tutorial lists tasks for you Ethers js is a Javascript API for Ethereum blockchain which can work with Mainnet testnet such as Ropsten Rinkeby local testnet Layer and sidechains We will use Hardhat Ethereum development environment to set up a playground in a simple way It provides all the components we need Local Testnet Hardhat Network based on ethereumjs vmInteractive Console Hardhat consoleSolidity Development Tools HardhatEthers js Ethereum Javascript APIHardhat brings in ethers js with plugin hardhat ethers Ethers js documents Task Setup ethers js playground with HardhatYou need to have node js and yarn installed in your computer Task Install HardhatRun in command line mkdir playeth amp amp cd playethyarn add hardhat Task Init Hardhat projectyarn hardhat Choose Option Create an advanced sample project that uses TypeScript A sample hardhat project will be created Task Run a stand alone local testnetIn another terminal run a stand alone local testnet Hardhat Network by running yarn hardhat nodeMore about in process and stand alone mode of Hardhat Network can be found here Task Enter Hardhat consoleRun Hardhat console connecting to blockchain testnet localhost yarn hardhat console network localhostCheck ethers js version and get the current blocknumber in console ethers version ethers await ethers provider getBlockNumber Now you have an ethers js playground with an interactive console and a local testnet Task Have a look at blockchainCurrently Hardhat console is connected to a local blockchain testnet at http localhost Let s have a look at the blockchain with Ethers js Ethers js provide Provider and Signer for interaction with blockchain Its document explains A Provider in ethers is a read only abstraction to access the blockchain data A Signer in ethers is an abstraction of an Ethereum Account which can be used to sign messages and transactions and send signed transactions to the Ethereum Network to execute state changing operations Task check connectionWe can access provider ether provider a ethers js wrapped Ethereum RPC provider const provider ethers providerethers provider connection url http localhost Task check network of providerawait provider getNetwork chainId name unknown Ethereum network with chainId is local testnet at Task get signerThe big diffence between ethers js and web js is that it seperate signer from provider Provider can only read data from blockchain while signer can send transactions to change data on blockchain Ethers js docs explain signer const signer await provider getSigner this is a JsonRpcSignerawait signer getAddress xfFdeaadFFceaBcffFb Task get all the accounts with Hardhat consoleHardhat console is running with test accounts accounts await ethers getSigners accounts length for const account of accounts console log account address Result xfFdeaadFFceaBcffFbxCdcACdbeddcCxCCdDdBafabddedFABCxFbfEBcfEEfEb There is a sample hardhat plugin accounts you can run it in command line yarn hardhat accounts Task Get ETH balance of an addressWe can use getBalance to get ETH balance of an address reference link Since we only need to read data from blockchain we will use provider instead of signer Task getBalancefirstaddress accounts addressbalance await provider getBalance firstaddress BigNumber value The return result is BigNumber which means ethers Every accountshave test ethers in Hardhat local testnet Task formatEtherWe can use ethers js utilities for Display Logic and Input to display it in a friendly manner ethers utils formatEther balance Task parseEtherWe can also transfer from string to Bignumber easily ethers utils parseEther BigNumber value Task Send ETH from one address to another Task Send ETH using MetaMaskYou can use MetaMask to transfer test ethers between accounts Switch network to Localhost in MetaMaskImport account with privateKeyTransfer test ETH from Account to Account Note Remember change chainId from to in MetaMask Accounts xfFdeaadFFceaBcffFbprivateKey xacbecaebaabdffbacbcbedefcaedbffff Accounts xCdcACdbeddcCYou can check the results in console provider ethers provideracccount xCdcACdbeddcC await provider getBalance acccount then r gt console log ethers utils formatEther r Send ETH from one address to another can be done by call sendTransaction Ether js docs is here Detailed explanation of Transaction can be found in Andreas M Antonopoulos s book Mastering Etereum Task Prepare for sendTransactionsigner await ethers provider getSigner send address await signer getAddress accounts await ethers getSigners to address accounts addressnonce await signer getTransactionCount gas price await signer getGasPrice gas limit ethers utils hexlify value ethers utils parseUnits Task Format transactiontx from send address to to address value value nonce nonce gasLimit gas limit gasPrice gas price Task Call sendTransactionSend transaction await signer sendTransaction tx Task Check resultsprovider ethers providerawait provider getBalance to address then r gt console log ethers utils formatEther r await provider getBalance send address then r gt console log ethers utils formatEther r The balance of send address is a little than because it paid some ether as gas fee for the transactions When sendTransaction called it returns details of the transaction hash xfdfefafeefeecbdfdeeacba type accessList null blockHash xfaebdbcafdbaadacbfbdbebded blockNumber transactionIndex confirmations from xfFdeaadFFceaBcffFb gasPrice BigNumber value gasLimit BigNumber value to xCdcACdbeddcC value BigNumber value nonce data x r xaeacbabaffefddedbbfcece s xfafafedaaaadfacaecb v creates null chainId wait Function anonymous You can also have a look at the termial running yarn hardhat node Transaction details are logged on the screen Transaction xfdfefafeefeecbdfdeeacba From xffdeaadffceabcfffb To xcdcacdbeddcc Value ETH Gas used of Block xfaebdbcafdbaadacbfbdbebdedIf you find this note useful please follow my twitter fjun 2022-01-31 16:23:45
海外TECH DEV Community 2 Day 100 Days of Code https://dev.to/invalidlenni/2-day-100-days-of-code-446c Day Days of Code Day of DaysOfCode started with refresh my PHP knowledge I made the documentation wiki of the DiscordCustomRPC py repository a little more understandable I also updated the Python rewrite of the AntiScamBot backend but it s not yet merged 2022-01-31 16:22:49
海外TECH DEV Community Create JMeter Golden Image using Packer on AWS https://dev.to/aws-builders/create-jmeter-golden-image-using-packer-on-aws-35ac Create JMeter Golden Image using Packer on AWSIn the last post we saw about deploying JMeter on AWS using HashiCorp Terraform I have also posted a YouTube video about it Terraform helps to create and manage the infrastructure quickly and efficiently When you use the JMeter module it basically installs Java JMeter and JMeter plugins on the fly on an EC instance How about creating an image with JMeter and dependencies for multiple platforms Enter HashiCorp Packer In this blog post we will see how to Create JMeter Golden Image using Packer on AWS What is a Packer Packer is an open source tool from HashiCorp that enables you to create identical machine images for multiple platforms from a single source template Packer helps to collaborate between multiple teams to create manage and consume golden images What is a Golden Image The Golden Image is nothing but a template It is a template for a Virtual Machine server desktop or container The other names of golden image are master image clone image etc The Golden Image will have all the necessary software libraries configuration settings and other dependencies to get started PrerequisitesThe following are the prerequisites to create a golden image for JMeter on AWS using Packer PackerAWS Console access w relevant privilegesGetting StartedPackerHead to packer io to install Packer based on your operating system In this demo I am going to use WSL for Linux curl fsSL sudo apt key add sudo apt add repository deb arch amd lsb release cs main sudo apt get update amp amp sudo apt get install packerTo install auto complete enter packer autocomplete install To verify the installation enter packer versionAWS CLI ConfigureInstall the AWS CLI and configure the access ID secret key default region and output Packer JMeter RepoClone the Packer JMeter repo into your folder git clone cd into Packer JMeter file or Packer JMeter shellBefore building the packer make sure all the configurations are properly entered in jmeter amazon pkr hclIf you would like to customize the region JMeter version JMeter plugins and more you can make changes at jmeter amazon pkr hcl JMeter Packer GitHub RepoBuilding the ImageBefore building the image it is recommended to inspect the packer file Enter packer inspect jmeter amazon pkr hclThe following would be the output Packer Inspect HCL mode gt input variables var jmeter cmdrunner version var jmeter plugins manager version var jmeter version gt local variables gt builds gt lt unnamed build gt sources amazon ebs jmeter provisioners shell post processors lt no post processor gt To format enter packer fmt To validate enter packer validate Finally to build the image enter packer build Packer will validate all the configurations create a temporary key pair temporary security group temporarily spins up a t small EC instance to create the image During the image creation process Packer will download and install Java JMeter and JMeter Plugins on the EC instance Typically it will take minutes to create the image If any error occurs it will be displayed on the terminal The output of this process will be AMI ID and the region Here is the partial output amazon ebs jmeter output will be in this color gt amazon ebs jmeter Prevalidating any provided VPC information gt amazon ebs jmeter Prevalidating AMI Name jmeter amazon ebs jmeter Found Image ID ami ebdf gt amazon ebs jmeter No volumes to clean up skipping gt amazon ebs jmeter Deleting temporary security group gt amazon ebs jmeter Deleting temporary keypair Build amazon ebs jmeter finished after minutes seconds gt Wait completed after minutes seconds gt Builds finished The artifacts of successful builds are gt amazon ebs jmeter AMIs were created us east ami bcdcbCongratulations You have created a golden image for JMeter Spin up an EC instance on AWS The next step is to create an EC instance on AWS using this golden image Head to AWS console and select the right region In this case it would be Ohio Navigate to EC gt AMIs section Select the AMI click on Launch instance from Image Launch Instance from ImageFollow the wizard to configure the instance family storage security group tags and more Finally click on Review and Launch Validate the AMIAfter the successful launch of EC instance ssh into it to validate the JMeter Copy the public IP of the EC instance to SSH into the instance ssh i lt key pem gt ec user lt public ip gt To validate the JMeter folder enter ls To validate the JMeter plugins status enter the following commands from the home directory sudo chmod x apache jmeter bin PluginsManagerCMD sh sudo apache jmeter bin PluginsManagerCMD sh statusThe output will display the installed JMeter plugins Deregister and DeleteOnce the validation is done do not forget to terminate the instance To deregister the AMI go to EC gt AMIs select the AMI to deregister then go to Actions gt Deregister AMI Deregister AMIThese AMIs are created using EBS backed volume Amazon EBS backed AMI The root device for an instance launched from the AMI is an Amazon Elastic Block Store Amazon EBS volume created from an Amazon EBS snapshot For EBS backed AMI there are charges on instance usage EBS volume usage storing the AMI as an EBS snapshot In the Packer file you can see the name of the AMI is amzn ami kernel hvm x gp The cost of gp at this time of writing is  per GB month of provisioned storage It is critical to delete the unwanted EBS snapshots from EC gt Snapshots under Elastic Block Store section Select the snapshot go to Actions gt Delete snapshot Delete EBS snapshotConclusionCreating a golden image using Packer helps to collaborate with multiple teams manage the image for a quick and easy deployment for performance testing Packer helps to create images across multiple platforms gels with the CI CD pipeline and is easy to learn and implement 2022-01-31 16:16:07
Apple AppleInsider - Frontpage News New Mac mini with M1 Pro and M1 Max - everything we know https://appleinsider.com/articles/22/01/31/new-mac-mini-with-m1-pro-and-m1-max---everything-we-know?utm_medium=rss New Mac mini with M Pro and M Max everything we knowApple is expected to release a new Mac mini during a spring event in with a complete redesign the M Pro and M Max processors and more ports Here s everything we know so far and exclusive renders of the desktop The new Mac mini could use a new two tone design and plexiglass like top coverThe Mac mini was among the first Macs to receive an M processor but that was in the consumer focused model Apple has continued to sell high end variants of the Intel Mac mini since but that is likely about to change Read more 2022-01-31 16:15:44
Apple AppleInsider - Frontpage News Deal alert: Apple's 16-inch MacBook Pro is $200 off, in stock right now https://appleinsider.com/articles/22/01/20/deal-alert-apples-16-inch-macbook-pro-is-200-off-in-stock-right-now?utm_medium=rss Deal alert Apple x s inch MacBook Pro is off in stock right nowAppleInsider readers can snag exclusive pricing on Apple s Late inch MacBook Pro with five popular configurations in stock and ready to ship including the standard model for off retail Plus save on AppleCare Exclusive deals on every inch MacBook ProAfter selling out quickly during the holiday season Apple Authorized Reseller Adorama has several inch MacBook Pro models back in stock including the standard configuration in your choice of finish Priced at with promo code APINSIDER using the activation instructions below this exclusive offer delivers the best MacBook Pro deal thanks to the discount and savings on AppleCare with the coupon Plus it beats Apple s own backorder delay by well over a month Read more 2022-01-31 16:08:01
Apple AppleInsider - Frontpage News BlackBerry sells mobile patents to patent troll for $600M https://appleinsider.com/articles/22/01/31/blackberry-sells-mobile-patents-to-patent-troll-for-600m?utm_medium=rss BlackBerry sells mobile patents to patent troll for MBlackBerry has sold a collection of legacy patents covering mobile technologies for M a deal that will likely result in increased legal drama for smartphone producers like Apple in the future Announced on Monday BlackBerry has agreed to a patent sale agreement which has the former smartphone giant handing over its non core patent assets to Catapult IP Innovations for million The transaction will grant BlackBerry million in cash and a promissory note for million as well as a license back for the patents The collection of patents relate to mobile devices messaging and wireless networking IPs BlackBerry specifically says that the sale will not affect customers using its products or services Read more 2022-01-31 16:04:59
Cisco Cisco Blog The Future of Work Part 3: Reimagine Security https://blogs.cisco.com/networking/the-future-of-work-part-3-reimagine-security The Future of Work Part Reimagine SecurityThe ideal security experience is an easy to manage platform that combines wired wireless and WAN connections with zero trust authentication and privacy protections for hybrid work 2022-01-31 16:32:52
海外TECH CodeProject Latest Articles Private Transactions on DeFi: Confidential Smart Contracts on Ethereum https://www.codeproject.com/Articles/5323744/Private-Transactions-on-DeFi-Confidential-Smart-Co Private Transactions on DeFi Confidential Smart Contracts on EthereumIn this article we are going to learn some features of Ethereum Smart Contracts that need a redesign how Confidential Smart Contracts address them in their solution 2022-01-31 16:18:00
海外TECH CodeProject Latest Articles Improving Elasticsearch-based autocomplete https://www.codeproject.com/Articles/5323717/Improving-Elasticsearch-based-autocomplete elasticsearch 2022-01-31 16:09:00
金融 金融庁ホームページ 金融機関における貸付条件の変更等の状況について更新しました。 https://www.fsa.go.jp/ordinary/coronavirus202001/kashitsuke/20200430.html 金融機関 2022-01-31 17:00:00
金融 金融庁ホームページ 「新型コロナウイルス感染症関連情報」特設ページを更新しました。 https://www.fsa.go.jp/ordinary/coronavirus202001/press.html 新型コロナウイルス 2022-01-31 17:00:00
金融 金融庁ホームページ 非常勤職員(金融サービス相談員)を募集しています。 https://www.fsa.go.jp/common/recruit/r3/sousei-10.html 金融サービス 2022-01-31 17:00:00
金融 金融庁ホームページ 貸金業関係資料集を更新しました。 https://www.fsa.go.jp/status/kasikin/20220131/index.html 関係 2022-01-31 17:00:00
金融 金融庁ホームページ 「ソーシャルプロジェクトのインパクト指標等の検討に関する関係府省庁会議」(第1回)の議事要旨について公表しました。 https://www.fsa.go.jp/singi/social_impact/siryou/20220131.html 関係 2022-01-31 17:00:00
ニュース @日本経済新聞 電子版 うまい棒でも2円高く 値上げ「過去とは次元が違う」 https://t.co/GsQMpzzI7b https://twitter.com/nikkei/statuses/1488184962792968192 過去 2022-01-31 16:18:38
ニュース @日本経済新聞 電子版 北京五輪アプリに懸念も 米など「情報漏洩の恐れ」 https://t.co/7eLqxuKvZn https://twitter.com/nikkei/statuses/1488184961731416068 北京五輪 2022-01-31 16:18:38
ニュース @日本経済新聞 電子版 やまぬ弾圧、消えた村 ミャンマー・クーデターから1年 https://t.co/PExrewUC6Q https://twitter.com/nikkei/statuses/1488184959420747776 弾圧 2022-01-31 16:18:38
ニュース ジェトロ ビジネスニュース(通商弘報) 輸入取引に課する統計税を2024年末まで延長 https://www.jetro.go.jp/biznews/2022/02/4b91e92ed1cecfbd.html 輸入 2022-01-31 16:40:00
ニュース ジェトロ ビジネスニュース(通商弘報) 生き残りをかけトレンドを追求するフラワーショップ https://www.jetro.go.jp/biznews/2022/02/431618567b967209.html 生き残り 2022-01-31 16:30:00
ニュース ジェトロ ビジネスニュース(通商弘報) 米ロサンゼルス港と中国・上海港、「太平洋横断グリーン輸送回廊」実現に向けて協業を発表 https://www.jetro.go.jp/biznews/2022/02/4ce6d174024acaad.html 輸送 2022-01-31 16:20:00
ニュース ジェトロ ビジネスニュース(通商弘報) 2021年の新車販売台数は前年比39%増、日本車が首位堅持するも中国車が躍進 https://www.jetro.go.jp/biznews/2022/02/646c4b089ba4233a.html 新車販売台数 2022-01-31 16:10:00
ニュース BBC News - Home Sue Gray: Failure of leadership over Downing Street lockdown parties https://www.bbc.co.uk/news/uk-politics-60203287?at_medium=RSS&at_campaign=KARANGA events 2022-01-31 16:34:55
ニュース BBC News - Home Mason Greenwood: Police given more time to question footballer over rape claim https://www.bbc.co.uk/news/uk-england-manchester-60200565?at_medium=RSS&at_campaign=KARANGA manchester 2022-01-31 16:10:51
ニュース BBC News - Home Education Secretary Nadhim Zahawi tests positive for Covid https://www.bbc.co.uk/news/uk-england-coventry-warwickshire-60201218?at_medium=RSS&at_campaign=KARANGA isolates 2022-01-31 16:47:05
ニュース BBC News - Home Talks between Arsenal and Barcelona over loan for Gunners' striker Aubameyang break down https://www.bbc.co.uk/sport/football/60186125?at_medium=RSS&at_campaign=KARANGA Talks between Arsenal and Barcelona over loan for Gunners x striker Aubameyang break downNegotiations between Arsenal and Barcelona over the signing of Gunners forward Pierre Emerick Aubameyang have broken down 2022-01-31 16:35:17
ニュース BBC News - Home Tottenham add Juventus duo as record signing Ndombele exits https://www.bbc.co.uk/sport/football/60199176?at_medium=RSS&at_campaign=KARANGA bentancur 2022-01-31 16:29:41
ニュース BBC News - Home What are the Covid rules in England, Scotland, Wales and Northern Ireland? https://www.bbc.co.uk/news/explainers-52530518?at_medium=RSS&at_campaign=KARANGA covid 2022-01-31 16:40:02
ニュース BBC News - Home What are the latest rules for face coverings and masks? https://www.bbc.co.uk/news/health-51205344?at_medium=RSS&at_campaign=KARANGA england 2022-01-31 16:55:08
ビジネス ダイヤモンド・オンライン - 新着記事 人生で落ち込んだときに読むといい本「一生使える一冊」 - 独学大全 https://diamond.jp/articles/-/294179 読書 2022-02-01 01:55:00
ビジネス ダイヤモンド・オンライン - 新着記事 【少額からFIREも目指せる】スマホ証券を使い倒そう! - そのままやるだけ! お金超入門 https://diamond.jp/articles/-/294813 所得控除 2022-02-01 01:50:00
ビジネス ダイヤモンド・オンライン - 新着記事 芥川賞を「大河ドラマ」として楽しめる本がある。 - タイム・スリップ芥川賞 https://diamond.jp/articles/-/294628 タイム・スリップ芥川賞芥川賞って、興味ありますあるという方、『タイム・スリップ芥川賞』という本が発売されたことをご報告いたします。 2022-02-01 01:45:00
北海道 北海道新聞 濃厚接触受験生の陰性確認免除 保健所業務逼迫した場合 https://www.hokkaido-np.co.jp/article/640125/ 文部科学省 2022-02-01 01:17:00
北海道 北海道新聞 <Fノート>新庄監督 特注衣装に込めた思いとは https://www.hokkaido-np.co.jp/article/639968/ 新庄剛志 2022-02-01 01:06:21
北海道 北海道新聞 韓国でRCEP発効 日本と初の経済連携協定 https://www.hokkaido-np.co.jp/article/640124/ 経済連携 2022-02-01 01:01:00
海外TECH reddit SNP leader ejected from parliament for saying Boris Johnson misled MPs https://www.reddit.com/r/unitedkingdom/comments/sh4qqo/snp_leader_ejected_from_parliament_for_saying/ SNP leader ejected from parliament for saying Boris Johnson misled MPs submitted by u ClumperFaz to r unitedkingdom link comments 2022-01-31 16:07:34

コメント

このブログの人気の投稿

投稿時間:2021-06-17 22:08:45 RSSフィード2021-06-17 22:00 分まとめ(2089件)

投稿時間:2021-06-20 02:06:12 RSSフィード2021-06-20 02:00 分まとめ(3871件)

投稿時間:2021-06-17 05:05:34 RSSフィード2021-06-17 05:00 分まとめ(1274件)