投稿時間:2022-03-24 02:41:13 RSSフィード2022-03-24 02:00 分まとめ(51件)

カテゴリー等 サイト名等 記事タイトル・トレンドワード等 リンクURL 頻出ワード・要約等/検索ボリューム 登録日
Google カグア!Google Analytics 活用塾:事例や使い方 ゼレンスキー大統領の演説にでたオーディオブックは桃太郎と二匹のかえる https://www.kagua.biz/marke/podcast/20220324a2.html 安倍政権 2022-03-23 16:28:11
AWS AWS Architecture Blog Let’s Architect! Architecting for Blockchain https://aws.amazon.com/blogs/architecture/lets-architect-architecting-for-blockchain/ Let s Architect Architecting for BlockchainYou ve likely read about or heard someone talk about blockchain This distributed and decentralized ledger collects immutable blocks of information and helps secure your data without going through third party It is commonly used to maintain secure and decentralized records for registries consensus cryptocurrencies and the latest trend non fungible tokens NFTs This collection of content … 2022-03-23 16:53:06
AWS AWS Partner Network (APN) Blog How AWS IoT Greengrass and AWS Lambda Allow Legacy Hardware to be Cloud-Enabled https://aws.amazon.com/blogs/apn/how-aws-iot-greengrass-and-aws-lambda-allow-legacy-hardware-to-be-cloud-enabled/ How AWS IoT Greengrass and AWS Lambda Allow Legacy Hardware to be Cloud EnabledMuch of the hardware used on the factory floor today has been in place for many years and managing these devices from the internet often requires replacement of the hardware Utilizing AWS IoT Greengrass and AWS Lambda functions allow legacy hardware to be maintained while providing full internet connectivity and management This post shows how Q an AWS Industrial Software Competency Partner uses AWS IoT Greengrass to allow legacy label printers to be cloud enabled 2022-03-23 16:33:55
AWS AWS Compute Blog How to re-platform and modernize Java web applications on AWS https://aws.amazon.com/blogs/compute/re-platform-java-web-applications-on-aws/ How to re platform and modernize Java web applications on AWSThis post is written by Bill Chan Enterprise Solutions Architect According to a report from Grand View Research “the global application server market size was valued at USD billion in and is expected to expand at a compound annual growth rate CAGR of from to The report also suggests that … 2022-03-23 16:45:43
AWS AWS Compute Blog Choosing the right solution for AWS Lambda external parameters https://aws.amazon.com/blogs/compute/choosing-the-right-solution-for-aws-lambda-external-parameters/ Choosing the right solution for AWS Lambda external parametersThis post is written by Thomas Moore Solutions Architect Serverless When using AWS Lambda to build serverless applications customers often need to retrieve parameters from an external source at runtime This allows you to share parameter values across multiple functions or microservices providing a single source of truth for updates A common example is retrieving … 2022-03-23 16:32:11
AWS AWS How do I automatically create tables in Athena to search through CloudTrail logs? https://www.youtube.com/watch?v=SSB5q0lAP0Q How do I automatically create tables in Athena to search through CloudTrail logs For more details see the Knowledge Center article with this video Aashita shows you how to automatically create tables in Athena to search through CloudTrail logs Introduction Additional information Creating an Athena Table based on a CloudTrail trail Running a basic Athena query 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-03-23 16:34:03
AWS AWS How do I troubleshoot keyboard issues when using Amazon WorkSpaces? https://www.youtube.com/watch?v=NzGm37GBfEI How do I troubleshoot keyboard issues when using Amazon WorkSpaces For more details see the Knowledge Center article with this video Gaurav shows you how to troubleshoot keyboard issues when using Amazon WorkSpaces Introduction Additional information Common troubleshooting steps Troubleshooting international keyboards 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-03-23 16:33:05
AWS AWS Merging Business and Tech – Bridgewater’s Guide to Drive Agility | Amazon Web Services https://www.youtube.com/watch?v=zT_zKyWaybA Merging Business and Tech Bridgewater s Guide to Drive Agility Amazon Web ServicesAWS Conversations with Leaders Igor Tsyganskiy President Chief Technology Officer at Bridgewater Associates Bridgewater Associates the world s largest hedge fund and an early adopter of cloud technology experienced zero trading downtime in despite high market volatility This allowed the company which manages over billion to continue providing unique insights to its most sophisticated global institutional clients including pension funds central banks and governments Igor Tsyganskiy President CTO at Bridgewater spoke with AWS Enterprise Strategist Miriam McLemore about how Bridgewater has leveraged its partnerships and scaled its infrastructure to become agile and deliver for clients during tumultuous times Learn more about AWS Executive Insights at Subscribe 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-03-23 16:03:11
Ruby Rubyタグが付けられた新着投稿 - Qiita 【Ruby】requireとloadの違いについて https://qiita.com/m6mmsf/items/e7222c98a9fb9e7b873b requireとloadの違いまとめrequireは同じファイルは度のみロード。 2022-03-24 01:38:40
golang Goタグが付けられた新着投稿 - Qiita 【Go】Go 1.16以降のバージョンで「go get」でのdelveインストール時に「dlv: not found」になる https://qiita.com/someone7140/items/ccb4e6df6fe40d0a900c なお、Goからのgogetとgoinstallについての記事にある通り、でgoinstallを使うことが推奨されていて、になるとgogetは基本的には使えない設定変更すれば使えるみたいだけど模様です。 2022-03-24 01:36:17
Azure Azureタグが付けられた新着投稿 - Qiita Azure × FlashAir でリングフィットアドベンチャーの履歴を記録する(1)Blobにアップロード編 https://qiita.com/ussvgr/items/d77c208f68655e4882ea ざっと探した限りでは明言された仕様は見つかりませんでしたが、TLSまでしか対応していないようです。 2022-03-24 01:48:34
海外TECH Ars Technica Oil-refining giant Koch Industries invests nearly $1B in battery companies https://arstechnica.com/?p=1843072 battery 2022-03-23 16:28:01
海外TECH Ars Technica Starlink hikes prices to $599 up-front and $110 per month, blames inflation https://arstechnica.com/?p=1843065 price 2022-03-23 16:11:31
海外TECH MakeUseOf How to Do Freelancing Work With Your Smartphone https://www.makeuseof.com/freelancing-work-with-smartphone/ How to Do Freelancing Work With Your SmartphoneDon t have a laptop for freelancing work No problem A smartphone is still good enough for a lot of freelancing services Here s how to make money 2022-03-23 16:45:14
海外TECH MakeUseOf Urban Photography: 8 Tips to Better Capture a City https://www.makeuseof.com/urban-city-photography-tips/ amazing 2022-03-23 16:30:15
海外TECH MakeUseOf How to Clear the Cache on Your Xbox Series X|S https://www.makeuseof.com/how-to-clear-cache-xbox-series-x-s/ cache 2022-03-23 16:15:13
海外TECH MakeUseOf How to Fix "A Network Change Was Detected" Error on Linux https://www.makeuseof.com/fix-network-change-detected-error-linux/ How to Fix amp quot A Network Change Was Detected amp quot Error on LinuxIf you re browsing the internet and suddenly run into the amp quot Network change detected amp quot error don t fret Here s how you can easily fix the issue 2022-03-23 16:01:14
海外TECH DEV Community Machine Learning Application in the Manufacturing Industry https://dev.to/evgeniykrasnokutsky/machine-learning-application-in-the-manufacturing-industry-3261 Machine Learning Application in the Manufacturing IndustryManufacturers to keep up with the latest changes in technology need to explore one of the most critical elements driving factories forward into the future machine learning Let s talk about the most important applications and innovations that the ML technology is providing in Machine Learning vs AI What s the Difference Machine learning is a subfield of artificial intelligence but not all AI technologies count as machine learning There are various other types of AI that play a role in many industries such as robotics natural language processing and computer vision If you re curious about how these technologies affect the manufacturing industry check out our review below Basically machine learning algorithms utilize training data to power an algorithm that allows the software to solve a problem This data may come from real time IoT sensors on a factory floor or it may come from other methods Machine learning has a variety of methods such as neural networks and deep learning Neural networks imitate biological neurons to discover patterns in a dataset to solve problems Deep learning utilizes various layers of neural networks where the first layer utilizes raw data input and passes processed information from one layer to the next Image credit Factory in a BoxLet s start by imagining a box with assembly robots IoT sensors and other automated machinery At one end you supply the materials necessary to complete the product At the other end the product rolls off the assembly line The only intervention needed for this device is routine maintenance of the equipment inside This is the ideal future of manufacturing and machine learning can help us understand the full picture of how this can be achieved Aside from the advanced robotics necessary for automated assembly to work machine learning can help ensure the following tasks quality assurance NDT analysis localizing the causes of defects and more The factory in a box example can be thought of as a way of simplifying a larger factory but in some cases it s quite literal Nokia is utilizing portable manufacturing sites in the form of retrofitted shipping containers with advanced automated assembly equipment These portable containers can be used in any location necessary allowing manufacturers to assemble products on site instead of needing to transport the products longer distances instead Quality AssuranceUsing neural networks high optical resolution cameras and powerful GPUs real time video processing combined with machine learning and computer vision can complete visual inspection tasks better than humans can This technology ensures that the factory in a box is working correctly and that unusable products are eliminated from the system In the past machine learning s use in video analysis has been criticized for the quality of video used This is because from frame to frame images can be blurry and the inspection algorithm may be subject to more errors However with high quality cameras and greater graphical processing power neural networks can more efficiently search for defects in real time without human intervention Machine learning can help test the created products without damaging them using various IoT sensors An algorithm can search for patterns in the real time data that correlate with a defective version of the unit enabling the system to flag potentially unwanted products Non destructive testingAnother way that we can detect defects in materials is through non destructive testing This involves measuring a material s stability and integrity without causing damage For example an ultrasound machine can be used to detect anomalies like cracks in a material The machine can measure data that humans can analyze to look for these outliers by hand However outlier detection algorithms object detection algorithms and segmentation algorithms can automate this process by analyzing the data for recognizable patterns that humans may not be able to see with much greater efficiency Machine learning is also not subject to the same degree of error that humans are prone to Predictive MaintenanceOne of the core tenants of machine learning s role in manufacturing is predictive maintenance PwC reported that predictive maintenance will be one of the largest growing machine learning technologies in manufacturing having an increase of in market value from to With unscheduled maintenance having the potential to deeply cut into a business s bottom line predictive maintenance can enable factories to make appropriate adjustments and corrections before machinery can experience more costly failures We want to make sure that our factory in a box will have as much uptime with the fewest delays possible and predictive maintenance can make that happen Predictive maintenance is made possible through extensive IoT sensors that record vital information about the operating conditions and status of a machine This may include humidity temperature and more ML MODELS USED FOR PREDICTIVE MAINTENANCEA machine learning algorithm can analyze patterns in data collected over time and reasonably predict when the machine may need maintenance There are several approaches to achieve this goal Regression Models these predict the Remaining Useful Life RUL of the equipment This uses historical and static data and allows manufacturers to see how many days are left until the machine experiences a failure Classification Models these models predict failures within a predefined time span Anomaly Detection Models These flag devices upon detecting abnormal system behavior PROBLEM LOCALIZATIONThanks to the IoT sensors powering predictive maintenance machine learning can analyze the patterns in the data to see what parts of the machine need to be maintained to prevent a failure If certain patterns lead to a trend of defects it s possible that hardware or software behaviors can be identified as causes of those defects From here engineers can come up with solutions to correct the system to avoid those defects in the future This enables us to reduce the margin of error of our factory in a box scenario DIGITAL TWINSDigital twins are a virtual recreation of the production process based on data from IoT sensors and real time data They can be created as an original hypothetical representation of a system that doesn t yet exist or they could be a recreation of an existing system The digital twin is a sandbox for experimentation in which machine learning can be used to analyze patterns in a simulation to optimize the environment This helps support quality assurance and predictive maintenance efforts as well We can also use machine learning alongside digital twins for layout optimization This works when planning the layout of a factory or for optimizing the existing layout ML MODELS FOR ENERGY CONSUMPTION FORECASTINGIf we want to optimize every part of the factory we also need to pay attention to the energy that it requires The most common way to do this is to use sequential data measurements which can be analyzed by data scientists with machine learning algorithms powered by autoregressive models and deep neural networks Autoregressive models Great for defining trends cyclicity irregularity and seasonality of power consumption To improve accuracy data scientists can transform raw data into features that can help specify the task for prediction algorithms Deep neural networks Data scientists use these to process large datasets to find patterns of data consumption quickly These can be trained to automatically extract features from input data without feature engineering like autoregressive models Neural networks for sequential data RNN Recurrent neural networks LSTM Long short term memory GRU Gated recurrent unit Attention based neural networks to store information of previously inputted energy usage data using internal memory Generative DesignWe ve used machine learning to optimize the factory s production processes but what about the product itself BMW introduced the BMW iX Flow at CES with a special e ink wrap that can allow it to change the color or more accurately the shade of the car between black and white BMW explained that “Generative design processes are implemented to ensure the segments reflect the characteristic contours of the vehicle and the resulting variations in light and shadow Generative design is where machine learning is used to optimize the design of a product whether it be an automobile electronic device toy or other item With data and a desired goal machine learning can cycle through all possible arrangements to find the best design ML algorithms can be trained to optimize a design for weight shape durability cost strength and even aesthetic parameters Generative design process can be based on these algorithms Reinforcement learningDeep learningGenetic algorithms Improved Supply Chain Management Cognitive Supply ChainsLet s step away from the factory in a box example for a bit and look at a broader picture of needs in manufacturing Production is only one element The supply chain roles from a manufacturing center are also being improved with machine learning technologies such as logistics route optimization and warehouse inventory control These make up a cognitive supply chain that continues to evolve in the manufacturing industry WAREHOUSE INVENTORY CONTROLAI powered logistics solutions use object detection models instead of barcode detection thus replacing manual scanning Computer vision systems can detect shortages and overstock By identifying these patterns managers can be made aware of actionable situations Computers can even be left to take action automatically to optimize inventory storage At MobiDev we have researched a use case of creating a system capable of detecting objects for logistics Read more about object detection using small datasets for automated items counting in logistics DEMAND FORECASTINGHow much should a factory produce and ship out This is a question that can be difficult to answer However with access to appropriate data machine learning algorithms can help factories understand how much they should be making without overproducing How to implement an ML driven demand forecasting system Read in the article below 2022-03-23 16:44:39
海外TECH DEV Community How to install lemon rat in Termux https://dev.to/h4ck3r/how-to-install-lemon-rat-in-termux-10dp How to install lemon rat in Termux Lemon Rat TERMUXTermux is an Android terminal emulator which is based on linux environment You can perform many attacks ex openport attack ddos mitmf sql injection etc Termux support both rooted and unrooted devicesYou can termux as a root to perform extra attacks which requires root access UsageOpen the app you will see graphical interface Click on install packages it will download some basic packages make sure you are connected with internet Now you can use termuxBefore using it make sure you are connected with internet If u like my work just tap on this and buy me a coffeeBuy Me A Coffee what can you do with termux we can perform different attacks PentestingVulnerability ScanningEthical HackingWe can do most of things using termux Necessary PostLemon InstallApkmod Install StepsInstall lemon Ignore all errors dpkg configure aInstall apkmod Again Install lemon cd data data com termux cache apt archivesdpkg dev R lemon deb lemoncd lemoncd data data com termux files usr bincp r lemon data data com termux files usr bincd cd sharecp r lemon data data com termux files usr sharecp r doc data data com termux files usr sharecd lemonNow You Have Installed Successfully Fix Module Errorcd PREFIX share lemon amp amp apt install yarn amp amp yarn add expressjs A cloud based remote android managment suite powered by NodeJSFeaturesGPS LoggingMicrophone RecordingView ContactsSMS LogsSend SMSCall LogsView Installed AppsView Stub PermissionsLive Clipboard LoggingLive Notification LoggingView WiFi Networks logs previously seen File Explorer amp DownloaderCommand QueuingBuilt In APK BuilderType lemon to run 2022-03-23 16:43:00
海外TECH DEV Community What are the most common tools used by experienced developers for functional testing? https://dev.to/hsshah_/what-are-the-most-common-tools-used-by-experienced-developers-for-functional-testing-5em3 What are the most common tools used by experienced developers for functional testing We all agree that “testing is an integral part of the software development process Every application that is developed or being developed needs to pass through testing to offer optimal performance for the end users However until recently the reality was something else Organizations used to focus on crazily developing features rather than testing the integrity of the applications But as the app market competition became fierce IT enterprises started focussing on app stability than app features Following in the same footsteps I have initiated the same plan within my organization With the help of this article I would like to share my experiences on which tools worked best for us for functional testing Tools to be used for Functional TestingFunctional testing is carried out to test the software against its functional requirements specifications Such tests don t consider how a process occurs Instead it focuses on the intended result of the process Functional testing is a type of software testing that is subdivided into four different testing levels unit testing integration testing system testing and acceptance testing Unit testingUnit testing is essential for validating the functions of a specific part or unit Tools used for unit testing are Jest and Enzyme Features of JestOffers CLI for easy control of your testsProvides powerful syntax features that prove to be helpful during debuggingOffers interactive mode that automatically runs all affected tests for the code changes made in the last commit Features of EnzymeEspecially beneficial while working with React Enzyme Provides an API to Examine React Components It offers a shallow rendering that keeps tests simpler Integration testingThis type of testing is concerned with the software modules being logically integrated and tested as a group Selenium is used for performing integration testing Features of SeleniumSelenium supports parallel test execution that reduces the time taken in executing parallel tests The testing tool is open source and portable in nature Once the test cases are prepared Selenium offers OS flexibility as the test cases can be run from any operating system like Linux macOS Windows etc System testingThe goal of system testing is to test the integrity of the entire system for system failures or errors Our organization leverages Cypress to assist with system testing Features of CypressCypress offers behavioral control of functions servers responses and timers It offers flexibility to control stub and test edge cases without involving your server Testers don t have to manually introduce waits and sleep to the tests Cypress automatically waits for commands and assertions before moving on Acceptance testingThis testing type verifies the product s compliance with business requirements and functionality Acceptance testing is usually manual in nature and is performed by developers QA and stakeholders Usually it s done in the staging environment or any preproduction environment Once everyone is satisfied it s flagged as ready for prod ConclusionTesting tools are crucial for enhancing the effectiveness of any testing This article serves as a testing tool recommendation for conducting functional testing Do you have any other tools in mind Let us know about it in the comments below 2022-03-23 16:38:14
海外TECH DEV Community How to hide the password in helm which need to pass the value from values.yml https://dev.to/ramkrishna2k3/how-to-hide-the-password-in-helm-which-need-to-pass-the-value-from-valuesyml-48gp values 2022-03-23 16:36:39
海外TECH DEV Community DC motor control: Welcome to the jungle https://dev.to/luos/dc-motor-control-welcome-to-the-jungle-2794 DC motor control Welcome to the jungleGet your knowledge of DC motor control off the ground Learn more about direction control voltage PWM speed control etc Use this article as a map to find your way through the jungle Follow your guide Simon Baudry Simon FR on Luos Discord 2022-03-23 16:31:44
海外TECH DEV Community Google Cloud Certifications - A Beginner's Guide https://dev.to/economizeteam/google-cloud-certifications-a-beginners-guide-p6n Google Cloud Certifications A Beginner x s Guide What is a GCP Certification The Google Cloud Platform GCP certification is an official certification given by Google to individuals that verifies that a candidate possesses the necessary technical abilities knowledge and technological know how in cloud computing It will also greatly assist in obtaining higher employment positions in reputable companies Although the process of studying and obtaining GCP certification demands complete dedication on the part of the participants following successful completion and course completion it becomes significantly easier to always find get a well deserving position considering the bright up and coming future of cloud computing There are a variety of different certification paths that span the GCP environment according to the position you choose Each certification is valid for years from the competition date and must be renewed after expiration due to the ever changing nature of the industry Certification exams can be taken worldwide through independent testing centers or remotely online as long as you satisfy the examination criteria From foundational level to in depth professions like machine learning engineer and cloud security engineer certification examinations cover all levels and areas of knowledge There s a certification for everyone whether you re new to GCP or have been doing it for years The maximum cost for any certification is and is definitely worth it when compared to the competitive benefits provided Types of Google Cloud CertificationsGCP Certification Paths are learning methods designed by Google to enable students and future cloud enthusiasts in becoming professionally certified It allows them to display sound demonstration and working knowledge of the GCP environment according to their specified role Each certification s material costs benefits and training differ from each other as they all specialize in different aspects of GCP Foundational Certificate Cloud Digital LeaderThe Cloud Digital Leader certification is a generalized title that demonstrates basic knowledge and evaluation of use cases for the most popular GCP services The exam covers a variety of material such as multidisciplinary cloud knowledge with architecture governance and cost details Google Cloud knowledge with respect to hierarchy cost and compliance topics and overviews of Google products and services such as VMs containers serverless compute data management machine learning and more are all important topics one should know about before the exam This certification is best for GCP novices and individuals who want to expand their cloud computing knowledge It requires no practical experience and costs Associate Certificate Cloud EngineerThe Associate Google Cloud Certification is an Engineer level certification that students and professionals with little or no knowledge of the subject may obtain If your job entails managing a Google cloud environment on a daily basis the GCP Associate Cloud Engineer certification is a good fit This exam is meant to demonstrate your ability to construct and administer GCP infrastructures in a cost effective and secure manner Knowing how to use the command line is vital Setting up your GCP environment billing and accounts choosing and configuring a set of GCP services including cost planning and security settings deploying and managing a cloud solution including container monitoring and logging and managing running cloud services will all be covered in the exam This certification is best for administrators who will be possessing months of hands on experience with GCP It costs and is a demonstration of your ability to work with services in the GCP environment Professional Certificate Cloud Architect Data Engineer Cloud Developer Network Engineer Security Engineer Collaboration Engineer and Machine Learning EngineerThe Professional Cloud Certification is a second level certification that aids in the development and assessment of participants advanced architectural design knowledge and abilities Over the certification process of learning various implementation skills depending on work function are increased and the final test assists in determining the amount of advances and skills that have been obtained by professionals and students during the course duration The amount of professional experience needed for these certifications range from years and at least one year deploying and managing solutions from GCP All of the certifications cost and are made for professionals seeking to specialize in their domain using GCP GCP Certifications Free Training Resources and GuidesEach certification has its own unique Learning path and thus requires specific materials for preparation There are still quite a number of free resources on the internet most of which are supplemented by Google For any certification hands on GCP experience is key There are a few options when it comes to using GCP for free as Google always encourages users to familiarize themselves with the platform The Day Free trial Always Free Program and Free Cloud Credits are a few programs that enable you to use limited GCP services completely free Here are a few resources that will help you jumpstart your GCP Certification Qwiklabs Google Cloud Essentials GCP course materials at A Cloud GuruIvam Luz s GCP Documentation GuideAwesome GCP Certifications RepositoryYou can also earn a free skill badge from Google by completing lab training exercises These skill badges can be displayed on your profile and resume ConclusionAs companies continue to expand while using Google Cloud s services the industry demand for certified cloud professionals will keep growing Completing a certification from Google could give you the professional edge you need to exceed in your career With a GCP certification you have a verified ability to manage deploy configure optimize and effectively utilize all the required services for your cloud workloads If your organization relies on GCP and utilizes a significant amount of cloud workload Economize might be the right option for you Economize provides the most competitive cost streamlining for all your varied cloud computing needs Reduce and optimize your cloud service usage to obtain the most efficient GCP environment possible Learn how a multitude of different services and tools can enable you to gain valuable insights into your cost expenditure 2022-03-23 16:29:45
海外TECH DEV Community Do Arrays in Java Violate “Call by Value”? https://dev.to/jdeisenberg/do-arrays-in-java-violate-call-by-value-1fb5 Do Arrays in Java Violate “Call by Value “Any headline that ends in a question mark can be answered by the word no Betteridge s Law of HeadlinesWhen you first learned about methods in Java you might have read something like “arguments are always passed to parameters by value This means that a parameter is always a copy of the argument You can change the value of the parameter all you want and the original argument will remain unaffected In this code public class ByValue public static void printCube int n n n n n System out println The cube is n public static void main String args int n System out println Before call n is n printCube n System out println After call n is n The output shows that n in main remains unchanged Before call n is The cube is After call n is This is a good thing imagine calling printCube you certainly wouldn t want Java to change the literal to Further along in your adventures with Java you encountered arrays and may have seen a program like this import java util Arrays public class ByValue public static void cubeArray int arr for int i i lt arr length i arr i arr i arr i arr i public static void main String args int data System out println Before call data is Arrays toString data cubeArray data System out println After call data is Arrays toString data When you run this program you get this output Before call data is After call data is What s going on here The array contents have changed Is this an exception to “always call by value“ No it isn t The key point here is that arrays are references Here s what a memory diagram looks like when we enter the cubeArray method When doing the multplication arr i arr i arr i Java is changing element i in the memory that arr refers to it is not changing arr itself We can prove this by printing out the reference which will show the memory address of the arrays import java util Arrays public class ByValue public static void cubeArray int arr System out println At start of cubeArray arr is arr for int i i lt arr length i arr i arr i arr i arr i System out println At end of cubeArray arr is arr public static void main String args int data System out println Before call data is Arrays toString data reference data cubeArray data System out println After call data is Arrays toString data reference data When you print an array with System out println you will get something like I cb which means you have an array of integers I at memory location cb cb Running the program shows that the references have never changed but the referred to array has Before call data is reference I cbAt start of cubeArray arr is I cbAt end of cubeArray arr is I cbAfter call data is reference I cbSo in fact this program doesn t settle the question of call by value one way or the other since nothing here has changed the reference arr itself Let s put that to the test by doing something that will change arrーwe ll set arr to refer to a brand new array public class ByValue public static void cubeArray int arr System out println At start of cubeArray arr is arr for int i i lt arr length i arr i arr i arr i arr i make arr refer to a different area of memory arr new int System out println At end of cubeArray arr is arr public static void main String args int data System out println Before call data is Arrays toString data reference data cubeArray data System out println After call data is Arrays toString data reference data Here s the memory diagram just before we leave cubeArray If call by value really works everywhere the reference to data in main should not change Let s see the output Before call data is reference I cbAt start of cubeArray arr is I cbAt end of cubeArray arr is I eefaAfter call data is reference I cbThe third line of the output shows that we changed the arr reference the parameter in the cubeArray method but the fourth line shows that the original data reference in main was not affected The reference is indeed passed by value Thus the answer to the article headline Do Arrays in Java Violate “Call by Value The answer is “no “Java is always call by value 2022-03-23 16:28:13
海外TECH DEV Community Overview of Apache APISIX API Gateway Plugins https://dev.to/apisix/overview-of-apache-apisix-api-gateway-plugins-2m8o Overview of Apache APISIX API Gateway PluginsNowadays the role of an API Application programming interface gateway in building large scale cloud native Microservices APIs is becoming very important in every aspect of product development An API gateway introduces traffic management concerns allowing your Microservices to focus on delivering new features functionalities at hand A Plugin is a heart mechanism in API Gateway by using it we can create high performance systems under tight deadlines in more centralized way to handle new requirements Apache APISIX exposes a set of interfaces that allow us to bind plugins to the API Lets walk through some commonly used plugins Authentication Plugin ExampleThe API authentication process validates the identity of the client attempting to make a connection by using an authentication protocol The tradition mode of identity control in monolithic application was simply you figure out who the caller then pass credential information to other layers when API is called and store user information in a data repository If the same technique were to be applied to individual microservices it would be extremely inefficient and time consuming Having an independent security barrier ーor request handler ーfor each service to authenticate identity is unnecessary This would involve calling an Authentication Service to populate the object to handle the request and respond in every single instance On the other hand a modern API Gateway acts as a single entry point and can apply many different authentication mechanisms by default including HTTP Basic Auth API Keys based Auth OAuth OpenID Connect or JWT to validate the token on behalf of your API so a developer does not have to add any code in your API to process the authentication JWT JSON Web Token plugin is one strategy for API gateway authentication JWT simplifies authentication setup allowing you to focus more on coding and less on security Security Plugin ExampleAPI security refers to the practice of preventing or mitigating attacks on APIs In our modern era API security has become increasingly important There are many API security best practices such as making use of TLS encryption setting API Firewalls validating request data throttling for protection continuously monitoring auditing logging or a dedicated API Gateway deployment where you can secure the API traffic from beginning to end Also IP Restrictions can be enabled for security reasons wherein the users will be allowed to login only from a range of IP addresses as defined by the system or administrators If the user tries to log in outside the allowed range the system throws an error and login will not be possible IP Restriction Plugin restricts access to a service or a route by either whitelisting or blacklisting IP addresses Single IPs multiple IPs or ranges in CIDR notation like can be used Traffic Control Plugin ExampleThe quantity of API traffic and the quality of that traffic reflect as well as affect the quantity and quality of the company s business grow This means that managing the business requires an understanding of the data types and meaning of your API traffic API traffic management can improve the overall visibility of your system and allow you to better understand just what is going on throughout your organization And after you have a better sense of your system s activities you ll have an opportunity to use that information to solve problems directly With the help of API Gateway you can set automatic retries timeouts circuit breakers or rate limiting Rate limiting is a strategy for limiting network traffic It puts a cap on how often someone can repeat an action within a certain timeframe for instance trying to log into an account Limit count plugin is one type of request limiting plugins It limits request rate by a fixed number of requests in a given time window It means how many HTTP requests can be made in a given period of seconds minutes hours days months or years Monitoring Plugin ExampleAPI monitoring is the process of collecting and analyzing data about the performance of an API in order to identify problems that impact users If an application is running slowly you must first understand the cause before you can correct it Modern applications use many independent microservices instead of a few large ones and one poor performing service can adversely impact the overall performance of an application In addition isolating a single poor performing service among hundreds can be a challenge unless proper monitoring is in place This makes API monitoring and measuring API performance a crucial practice for modern multi cloud environments Prometheus plugin can fetch API metrics data and you can show metrics exported by the plugin in Grafana Observability Plugin ExampleAPI observability is the ability to understand system behavior and investigate the interactions between an application s components It provides comprehensive and actionable insights on top of monitored application data enabling faster API iteration more confident change management and production readiness HTTP logger is a plugin which pushes Log data requests to HTTP HTTPS servers or sends as JSON objects to Monitoring tools Serverless Plugin ExampleServerless is a cloud native development model that allows developers to build and run applications without having to manage servers There are two plug ins for serverless offered by Apache APISIX namely serverless pre function and serverless post function The former runs at the beginning of the specified phase while the latter runs at the end of the specified phase Breaking Down Other PluginsWhen using Apache APISIX you must be faced with multiple types of plugins and currently It has more than built in plugins broken down into several categories as we have seen It covers authentication security transformation traffic control serverless observability and other aspects to meet the common usage scenarios of all customers Here is the outline of some available Plugins actually they are more listed on Apache APISIX official website AuthenticationBasic Authentication basic auth Add basic Authentication to your API service or a route Key Authentication key auth Add a key authentication to your API service and a route Forward Authentication forward auth Implements a classic external authentication model We can implement a custom error return or user redirection to the authentication page if the authentication fails OpenID Connect openid connect Integrate Apache APISIX with a third party OpenID Connect HMAC Authentication hmac auth Add HMAC Authentication to your APIs LDAP Authentication ldap auth Integrate APISIX with a LDAP server SecurityCORS Enable CORS easily to allow developers to make requests from the browser URI Blocker uri blocker Intercepts user requests and blocks uri resources Consumer Restriction consumer restriction makes corresponding access restrictions to your services or routes based on different users selected CSRF Based on the Double Submit Cookie way protects your API from CSRF attacks ObservabilityOpen Telemetry Report Tracing data according to opentelemetry specification Datadog monitoring plugin built into Apache APISIX for seamless integration with Datadog Skywalking Provides tracing topology analysis and metrics from service TCP Logger tcp logger Send request and response logs to a TCP serverUDP Logger udp logger Send request and response logs to a UDP serverHTTP Logger http logger Sends Log data requests as JSON objects to Monitoring tools and other HTTP serversKafka logger kafka logger Provides the ability to push requests log data as JSON objects to your external Kafka clusters Traffic ControlLimit Request limit req Limits request rate using the leaky bucket method Concurrency Request Limiting limit conn Limits concurrent requests to your APIs Client Control Dynamically controls the behavior of Nginx to handle the client request Traffic Split traffic split Allows users to incrementally direct percentages of traffic between various upstream TransformationResponse rewrite response rewrite Rewrites response the content returned by the upstream as well as Apache APISIX itself Proxy Rewrite proxy rewrite Upstream proxy information rewriting plugin GRPC WEB grpc web Proxy plugin used to process gRPC Web client requests to gRPC Server Mocking It returns random mock data in the specified format and is no longer forwarded to the upstream ServerlessAzure Functions azure functions Serverless plugin built into Apache APISIX for seamless integration with Azure Serverless Function AWS Lambda aws lambda Serverless plugin built into Apache APISIX for seamless integration with AWS Lambda Plugin OrchestrationSometimes your service requires you to use many plugins together or create custom plugins in addition to Apache Apisix provides It offers two solutions for these cases respectively Plugin orchestration and Plugin Runtime to develop our custom ones Plugin orchestration is a form of low code that can help enterprises automate development reduce usage costs and increase operation and maintenance efficiency With the plugin orchestration capability in the low code API gateway Apache APISIX we can easily orchestrate plugins in a “drag and drop way and the orchestrated plugins can share contextual information to realize scenario based requirements Plugin developmentDuring technological selection the most important consideration for the development team is whether the chosen product matches the team s technology stack Apache APISIX has been supporting customized plugins since the day it was born With Apache APISIX we can write custom plugins in a programming language we are familiar with including Go Python Java JavaScript Lua PHP and more SummaryIn this post we learnt that Apache APISIX Plugins are additional components that can be plugged into your API Gateway walked through some plugins and now we know that plugins can be customized and orchestrated to exactly fit your needs and your technical constraints 2022-03-23 16:25:58
海外TECH DEV Community Utility-first CSS : on va dans le mur ? https://dev.to/enguerranws/utility-first-css-on-va-dans-le-mur--1lij Utility first CSS on va dans le mur Article publiéinitialement le mars corrigéet complétéTel le marronnier de l intégration web j ai vu réapparaitre régulièrement au fil des années l idée de replacer dans le HTML des attributs de mise en forme Au départ on avait les “vrais attributs de mise en forme HTML Rappelez vous valign align margin etc C était pratique mais ça c était en Et puis avec CSS Zen Garden on a découvert que séparer fond HTML et forme CSS c était quand même bien pratique le fait de découpler la mise en forme du HTML avait beaucoup d avantages Donc on a mis cette histoire de déclaration de la mise en forme dans le HTML de côté Bootstrap a relancél idée avec ses Utilities border top position absolute etc Et encore une fois ces Utilities bien qu utiles posaient des problèmes problème de séparation du fond et de la forme CSS est plus ou moins une librairies de styles et la mise en forme est faite dans le HTML problème de spécificité si je prends le border top de Bootstrap par exemple on tombe sur une règle de ce type border top px solid deee important Bon ça c est le problème de Bootstrap Mais quand même en empilant des classes qui n ont aucun rapport les unes avec les autres on a vite fait des créer des conflits de règles Exemple lt div class text center border danger sr only position relative border top ml px gt lt de quelle couleur sera la bordure du haut gt lt mais attend c est quoi sur la maquette ce bout de HTML gt problème de lisibilité en définissant les éléments d interface les unités d informations comme en empilement sans logique de classes de mise en forme on ne savait plus trop bien àquoi correspondait dans l interface l élément sur lequel on bossait problème de maintenance une évolution un bug àcorriger Imaginez revoir tous les boutons sur votre intégration pour leur apporter un border radius ou bien ajuster le padding ou un truc du genre Bon courage Alors bon ça nous faisait marrer de revoir des trucs comme ça Pour du prototypage ça fait le boulot mais pour de l intégration durable passons Mais ça c était avant et maintenant on a du neuf Utility First CSS En gros en pied de nez aux méthodos orientées composants OOCSS BEM etc qui place le composant d abord exemple lt a href class button gt lt span class button label gt Mon bouton lt span gt lt div gt Le logique Utility First CSS propose quelque chose comme lt a href class text center border blue background white padding text bold display ib gt lt span class button label gt Mon bouton lt span gt lt div gt Vous noterez le concept particulièrement novateur plus de problème de nommage y en a plusdonc si on ne nomme plus on va plus vite àtaper du codeMais aucun d aspect sémantique c est l idée Je m imagine reprendre une intéqui a étéinitialement faite comme ça et les questions qui me viendraient NB toutes mes remarques sont issues de mises en situation imaginaires avec des équipes en production plus de liens avec l architecture de l information définie dans la maquette comment savoir dans le code quelle unitéd information est représentée alors oui un bon découpage de templates peut faire le boulot mais d une façon ou d une autre a minima le debug ne sera pas une partie de plaisir c est subjectif mais je me dis et la lisibilitélà dedans Je reprends une tartine de HTML écrite comme ça gt Plus sérieusement le temps passéjuste àcomprendre quel élément est où fait quoi ne me semble pas du tout négligeable si on va plus vite àtomber l intégration d un élément je pense que sur le long terme on y passe beaucoup plus de temps cf plus haut mon exemple du bouton avec Bootstrap comment maintenir une cohérence dans l interface il arrive qu on m appelle pour me demander de resserrer les vis sur des intégrations qui ont étéfaites et oùil y a pas mal d incohérences sur les mêmes composants dans les maquettes tout du moins d une page àl autre du site Utility First est vouéàproduire des incohérences de ce genre un bouton àun endroit n a pas de lien avec un bouton àun autre endroit sauf si on a un système de vues bien découpé React Vue etc Plus généralement le concept de composants s est fait une place de choix dans tous les métiers de l interface UX designer UI designer dev front parlent déjàtous de composants d interface d unités d informations Depuis plusieurs années le dialogue s est simplifié de manière transverse chaque métier peut discuter avec les autres en parlant des mêmes choses des composants d interface Pourtant c est comme si en un intégrateur c était dit fuck allez vous faire foutre moi j aimais bien Bootstrap je vais faire les trucs àma sauce Designer “il faut qu on retouche le composant d avatar utilisateur Intégrateur “tu parles de lt div class margin text center border solid background white padding border radius gt Cette méthodo supprime tout l aspect nommage sémantique de classes CSS Pourtant on a besoin de cet aspect pour discuter pour s y retrouver pour définir des éléments réutilisables Alors qui fait le boulot si ce n est plus les classes La seule solution qui me vient àl esprit c est que c est le templating qui reprend ce boulot Effectivement si vous avez un composant React de notez qu au final j ai quand même dûnommer un composant… vous stockez toutes vos classes et vous créez vos conditions dans ce composant et l affaire est a priori réglée Bon le debug sera un peu moins simple quand même Mais àpart des systèmes de templating des moteurs de vues de ce genre qui déclarent des composants je m imagine mettre ça en place dans un Twig ou dans un WP J ai vraiment essayéde retourner le pour et le contre Les pours dans le cas des frameworks basés sur ces systèmes Tailwind par exemple on a pas besoin de bien connaître CSS pour faire de l intégration on peut avoir des profils plus variés qui peuvent faire évoluer l interface sur l intégration de départ on peut gagner un peu de temps On ne nomme pas c est effectivement un gain de temps en soi Mais le nommage comme je l ai dit on en a besoin Vous pouvez mettre le problème sous le tapis il n en reste pas moins qu il faudra trouver un nom àvotre bouton àun moment oùàun autre on répète moins de CSS mais on répète énormément de HTML Pour les contres j en vois un paquet je ne vais pas revenir sur ceux déjàévoqués mais en plus une logique Utility first ça peut se tenter sur un système de vues bien découpé React Vue etc On reporte juste le nommage ailleurs en fait Je pars quand même du principe que notre intégration en tout ou partie ne doit pas trop dépendre du moteur de vues ce qui produit le HTML pour au besoin faire évoluer toutes ces technos en gardant un maximum des éléments graphiques déjàintégréje ne suis pas non plus un grand fan du fait de devoir apprendre trop de choses concernant un framework ou une lib En l occurrence si on prend l exemple de Tailwind il y a pas mal de vocabulaire àapprendre pour commencer àbosser de façon efficace Je pars du principe que ce temps d apprentissage en dehors du langage est du temps potentiellement perdu Ce temps passé cette montée en compétence dépend complètement de l outil de son créateur de ses montées en version làoùconcernant un langage surtout côtéfront ce genre de choses est discuté débattu et ratifié sans oublier le Don t break the web Ànoter que la réflexion de base d Adam Wathan qui a conduit àla création de Tailwind CSS par exemple est pas inintéressante du tout j avais beaucoup appréciécet article mais ses conclusions sont très subjectives je trouve Notamment la section qui pose la question de revenir àdu CSS inline et dont le principal argument contre est que ça pose trop de possibilités alors qu un ensemble de classes connues limites les choix On pourrait rétorquer qu àce compte là on peut aussi définir des sets de valeurs en variables CSS ça reviendrait au même et ce serait probablement plus performant Pour aller plus loin j ai lu et d autres articles “défendant Utility First CSS je me suis dit qu il y avait déjàun souci j ai regardéce que faisait 2022-03-23 16:09:42
海外TECH DEV Community What is the difference using Twitter API on localhost vs server? https://dev.to/michael_scharen/what-is-the-difference-using-twitter-api-on-localhost-vs-server-433n What is the difference using Twitter API on localhost vs server I am following the article example artisansweb net tweet twitter php to send Tweets via the Twitter API The code below or slight variations of it is what I m using This all works very well in localhost However when transferred to my hosting site InfinityFree net I get a fatal error in the authentication I ve double and triple checked that the reference files env keys tokens amp vender abraham twitterouath twitteroauth are there in the same configuration as in my LAMP server I use the env file for other APIs without a problem Transferring to my hosting site infinityfree net I get this error shown in the image lt phprequire once vendor autoload php include loadenv php use Abraham TwitterOAuth TwitterOAuth define CONSUMER KEY ENV OAUTH CONSUMER KEY define CONSUMER SECRET ENV OAUTH CONSUMER KEY SECRET define ACCESS TOKEN ENV OAUTH ACCESS TOKEN define ACCESS TOKEN SECRET ENV OAUTH ACCESS TOKEN SECRET connection new TwitterOAuth CONSUMER KEY CONSUMER SECRET ACCESS TOKEN ACCESS TOKEN SECRET status Check out The Gifted A Positive Tale of Mutation post tweets connection gt post statuses update status gt status echo Tweet Program Ended 2022-03-23 16:06:18
海外TECH DEV Community How To Build A Decentralized Ecommerce Platform with React and Solidity: (PART ONE) https://dev.to/daltonic/how-to-build-a-decentralized-ecommerce-platform-with-react-and-solidity-part-one-21o6 How To Build A Decentralized Ecommerce Platform with React and Solidity PART ONE What you will be building see the live demo and GitHub repo for more info IntroductionThe demand for Web solutions is at an all time high but there isn t enough material available to usher in the army of developers required to fill the job openings To assist other web developers I ve created this tutorial to help you understand how to build a decentralized eCommerce platform that transacts Ethers You will be able to do the following by the end of this tutorial Build an eCommerce app Integrate Web Payment solution Incorporate Customer Chat functionality Interact with a Database using Firebase v Code and Deploy a Solidity Smart Contract Hookup Smart Contract with React App Lot s more This is tutorial is PART ONE of a two part series we will begin with developing the solidity smart contract So If you are pumped for this build then let s get coding… PrerequisiteFor PART ONE of this tutorial you will need the following items to build along with me NodeJs installed on your machine Yarn package manager installed Truffle installed Ganache installed Git CLI installed And an agile determination to learn Installing App DependenciesTo save you the pain of installing one dependency after another I ve prepared you a starter kit on my git repo Clone and install the dependencies with the instructions below And…don t forget to star the project On your terminal navigate to the location of your project and run the code below Make sure you have the above prerequisites installed already git clone fresherscd frehsers Navigate to the new folder yarn install Installs all the dependencies I recommend you use vs code for the tutorial it has everything you will need for coding If you ve done that you re awesome let s proceed to the next step… Coding the Smart ContractOpen the project in VS code and head on to the contracts directory you will see an existing contract named Migration sol Create a new solidity contract named Store sol Inside of the store define the following structures SPDX License Identifier MITpragma solidity contract Store All codes goes in here This is a typical structure of a solidity smart contract let s code this smart contract one step at a time Defining store variablesaddress public immutable storeOwner uint public storeAcc string public storeName uint public immutable feePercent uint public storeSales These are the variables our smart contract will use to perform store sales The store owner and fee percent variables are immutable once the smart contract is deployed it can no longer be changed in the course of the program Variables with address type mean that they can only hold data types of wallet address Whereas variables with uint or uint mean unsigned integers they can be used to hold only positive numbers with or without decimals Tracking users number of salesmapping address gt uint public salesOf The code above describes a solidity variable with a key value type of association It s similar to the python hash method in that it returns a value if the argument passed in the parameter finds a match Declaring Events within each saleevent Sale address indexed buyer address indexed seller uint amount uint timestamp event Withdrawal address indexed receiver uint amount uint timestamp Events are useful for storing the arguments passed into the smart contract on the blockchain network It s an essential ingredient for writing a professional smart contract Structuring the sales objectstruct SalesStruct address buyer address seller uint amount string purpose uint timestamp SalesStruct sales We re describing a structure for collecting sales data in the code above We want to collect the buyer and seller s addresses the number of ethers transacted the purpose of the transaction and the time the transaction was completed for each sale made through our smart contract Solidity provides us with a struct method which is the best practice for ensuring that these records are correctly entered Initializing the storeconstructor string memory storeName address storeOwner uint feePercent storeName storeName storeOwner storeOwner feePercent feePercent storeAcc These are the information passed during the deployment of the smart contract Performing sales paymentfunction payNow address seller string memory purpose public payable returns bool success Validating payments require msg value gt Ethers cannot be zerro require msg sender storeOwner Sale Not allowed Calculating up cost and fee uint fee msg value feePercent uint cost msg value fee Assigning sales and payment to store and product owner storeAcc msg value storeSales salesOf seller Cashing out to sales party withdrawMoneyTo storeOwner fee withdrawMoneyTo seller cost Recording sales in smart contract sales push SalesStruct msg sender seller cost purpose block timestamp Captures sales data on event emit Sale msg sender seller cost block timestamp return true This function collects payment from a buyer and sends the seller of the sales and to the store owner as the fee for utilizing their platform Sends ethers to a specified addressfunction payTo address to uint amount internal bool success payable to call value amount require success This is an internal method for transferring ethers to a specified address it works in conjunction with the withdrawal function It can only be called by another function within our smart contract Performs ethers transferfunction withdrawMoneyTo address receiver uint amount internal returns bool success require storeAcc gt amount Insufficent Fund payTo receiver amount storeAcc amount Captures transfer data on event emit Withdrawal receiver amount block timestamp return true This is a function that performs the sending of money to a specified address It makes sure that it checks for balances before carrying out the transaction Retreives all processed sales from smart contractfunction getAllSales public view returns SalesStruct memory return sales Lastly this function returns an array of all the sales that have taken place on our smart contract The full code looks like this… Now that we are done with coding this smart contract it s time to test it programmatically Setting up the Migration ScriptsBefore we proceed with testing out the smart contract let s set up the migration script in the migrations folder Head to the migrations folder and create a new file called deploy contracts js Paste the following codes inside the deploy contracts js file const Store artifacts require Store module exports async deployer gt const feeAccount await web eth getAccounts const name Fresher const feePercent await deployer deploy Store name feeAccount feePercent This will be necessary when we start testing out the smart contract Testing the Smart ContractSpin up Ganache and ensure that it s live and accessible Next locate the test folder and create a file called Store test js Paste the code snippet inside of it The above test is designed to check that our smart contract can perform sales An extra measure to ensure that your smart contract runs accordingly is to write a script that will interact with it Let s do that next Interacting with the Smart ContractThis is the best way to validate the functionalities of your smart contract We want to write a script to simulate the sales process Head to the scripts folder and create a file called performSales js Next paste the following codes inside of it Cool after creating and pasting the codes above run the following command on the terminal Please make sure that your ganache is up and running truffle migrate resetYou will observe the following result on your terminal If you reached here you re awesome let s run the perfomSales script by running this code on the terminal truffle exec scripts performSales jsYou should have something like this on your terminal…Fantastic we can be happy that our smart contract is certified and fully functional Let s deploy it to the rinkeby test net Deploying the Smart ContractTo do this deployment configure your truffle config file in the order below require dotenv config const HDWalletProvider require truffle hdwallet provider module exports Configure networks Localhost Kovan etc networks development host port network id Match any network id rinkeby provider gt new HDWalletProvider process env SECRET KEY process env ENDPOINT URL network id Rinkeby s id gas Rinkeby has a lower block limit than mainnet confirmations of confs to wait between deployments default timeoutBlocks of blocks before a deployment times out minimum default skipDryRun true Skip dry run before migrations default false for public nets contracts directory contracts contracts build directory src shared abis Configure your compilers compilers solc version optimizer enabled true runs Deploying to AlchemyAt the moment our smart contract can only run on our computer and no one else can connect to it We will use alchemy to make it available to everyone at no cost Sign up with them now or log in if you already have an account When you log in you will see the dashboard page which allows you to create a new blockchain application Creating an Alchemy AppClick on the CREATE APP button and enter the information shown in the image below making sure to include the Rinkeby test network After you ve created the app you can view its information by clicking on the app s name or the view the details button Copy the WSS URL as shown in the image below by clicking on the VIEW KEY button Amazing now proceed as shown in the images below to obtain your Rinkeby account Please keep in mind that we are not using the regular account address but rather the private key to that account ENDPOINT URL lt YOUR ALCHEMY WSS URL gt SECRET KEY lt YOUR METAMASK SECRET PHRASE gt DEPLOYER KEY lt YOUR METAMASK PRIVATE KEY gt Please do not use your real Metamask details these keys must be kept secret That s why we put them in the environment file and tell git to ignore them After you ve entered the above keys into their respective variables execute the commands below truffle migrate reset network rinkebyAs we can see below your smart contract will be deployed on the Rinkeby test net Wow you ve worked hard to get to this point You ve just finished deploying an eye catching smart contract to the Ethereum blockchain network We ll connect it to a ReactJs frontend in PART TWO of this tutorial ConclusionYou ve completed the first part of this tutorial next we ll learn how to connect the solidity smart contract we just deployed to our React frontend You can see the finished version of this application live here and you can also check out the git repo here which you should star I ll see you again in PART TWO of this tutorial About the AuthorGospel Darlington kick started his journey as a software engineer in Over the years he has grown full blown skills in JavaScript stacks such as React ReactNative VueJs and more He is currently freelancing building apps for clients and writing technical tutorials teaching others how to do what he does Gospel Darlington is open and available to hear from you You can reach him on LinkedIn Facebook Github or on his website 2022-03-23 16:03:24
海外TECH DEV Community How to add shapes in photoshop? https://dev.to/aguidehub/how-to-add-shapes-in-photoshop-1gf6 How to add shapes in photoshop Hi Friends Welcome To aGuideHub ️Learn how to draw shapes on your canvas and use live shape properties to interact with your shapesTable of contentsSelect a shape toolSet shape tool optionsDraw a shapeDraw a custom shapePhotoshop comes with the ability to draw and edit vector shapes easily You can also convert your vector shape to a raster or pixel based shape Original Post Step Select a shape toolFrom the toolbar click and hold the Shape tool group icon to bring up the various shape tool options ーRectangle Ellipse Triangle Polygon Line and Custom Shape Select a tool for the shape you want to draw Step Set shape tool optionsIn the shape tool options bar you can set Mode Set a mode for your Shape tool ーShape Path and Pixels Fill Choose a color to fill your shape Stroke Choose the color width and type of your shape stroke W amp H Manually set the width and height of your shape Path operations Use path operations to set the way your shapes interact with each other Path alignment Use path alignment to align and distribute your shape components Path arrangement Use path arrangement to set the stacking order of shapes you create Additional shape and path options Click the gear icon to access additional shape and path options to set attributes such as width and color of the on screen display of your path and constrain options while drawing shapes Step Draw a shapeClick and drag on the canvas with your selected shape tool to draw a shape This automatically creates a new shape layer in the Layers panel Hold the Shift key while drawing to make your shapes proportional With your shape layer selected use the Move tool to move your shape around and reposition on the canvas To easily scale transform or rotate your shape choose Edit gt Free Transform or press Control T Once you ve drawn a shape you can click anywhere on the canvas to bring up a Create Shape pop up dialog and modify your shape parameters Step Draw a custom shapeYou can draw custom shapes by using shapes from the Custom Shape pop up panel or save a shape or path to use as a custom shape Select the Custom Shape tool from the shape tools in the toolbar To view all the custom shapes that come with Photoshop click the gear icon on the right of the Custom Shape picker in the shape tool options bar You will see the list of available shapes Select any custom shape as desired Click and drag anywhere in the canvas to draw your custom shape and you choose the gradient pattern Thanks for reading… 2022-03-23 16:02:10
Apple AppleInsider - Frontpage News Arizona is first state to launch drivers' license in Apple Wallet https://appleinsider.com/articles/22/03/23/arizona-is-first-state-to-launch-drivers-licence-in-apple-wallet?utm_medium=rss Arizona is first state to launch drivers x license in Apple WalletArizona residents can now add their drivers license or state ID to Apple Wallet which lets them use an iPhone or Apple Watch to check in at selected TSA checkpoints As Apple continues to discuss bringing digital drivers licenses to US states Arizona has become the first to take the system live for its residents We re thrilled to bring the first driver s license and state ID in Wallet to Arizona today said Jennifer Bailey Apple s vice president of Apple Pay and Apple Wallet in a statement and provide Arizonans with an easy secure and private way to present their ID when traveling through just a tap of their iPhone or Apple Watch Read more 2022-03-23 16:19:33
海外TECH Engadget Arizona is the first state to allow driver’s licenses in Apple Wallet https://www.engadget.com/apple-wallet-drivers-license-state-id-arizona-161011872.html?src=rss Arizona is the first state to allow driver s licenses in Apple WalletIt took several months but Apple Wallet can finally hold your state driver s license Arizona residents can add their driver s license or state ID to Wallet on their iPhone or Apple Watch You re currently limited to presenting the digital cards at certain TSA checkpoints in Phoenix s Sky Harbor International Airport but this may save you the trouble of reaching for conventional IDs when your phone or smartwatch is at the ready Apple is also promising wider availability beyond the eight states already announced Colorado Hawaii Mississippi Ohio and Puerto Rico have also committed to supporting ID cards in Wallet The process remains as involved as Apple mentioned last year In Wallet on your iPhone you can add a driver s license or state ID by scanning the card taking a selfie and making head movements to prove the identification is yours When it s time to present your info to the TSA you ll provide consent through Face ID or Touch ID The TSA will also take your photo to verify cards You ll need at least an iPhone running iOS while you ll want an Apple Watch Series or newer using watchOS if you want the feature on your wrist nbsp Apple maintains that cards in Wallet can be more secure than their real world counterparts You only share necessary info and you don t need to show your device to an official All driver s license and state ID data is sent over an encrypted connection and the requirement for biometric authentication should prevent others from viewing your sensitive details Android has had the framework for digital driver s licenses as of version but it typically relies on third party apps Google hopes to standardize these IDs through an Android Ready SE Alliance it formed last year although that will likely take time as vendors come aboard For now Apple appears to have the edge when it comes to digitally stored credentials 2022-03-23 16:10:11
海外TECH Engadget An NFL football game is coming to Meta Quest and PlayStation VR https://www.engadget.com/nfl-vr-game-statuspro-160424318.html?src=rss An NFL football game is coming to Meta Quest and PlayStation VRThe NFL is making its first ever VR game And rather than work with longtime partner Electronic Arts on the project the league is partnering with StatusPro a startup that uses real time player data to “create authentic extended reality experiences quot The NFL promised to share more details on the game including release date information in the future What we know for now is that the game will come to Meta Quest and PlayStation VR and will allow fans to experience playing as a professional football player through a first person D perspective It will be interesting to see how StatusPro designs around some of the motion sickness issues that come with playing a VR game in first person Games like Half Life Alyx nbsp offer multiple locomotion options so that players can find one that doesn t leave them feeling nauseous Two of the game s options fall back on allowing individuals to teleport their avatar between on screen locations For most people those are ideal for preventing motion sickness but they also wouldn t make for a very fast paced and therefore immersive football game 2022-03-23 16:04:24
Cisco Cisco Blog Why Automation Will Unlock The Power of AI in Networking (Part 1) https://blogs.cisco.com/analytics-automation/why-automation-1 Why Automation Will Unlock The Power of AI in Networking Part You have probably heard about the old adage “Correlation does not imply causation This idea that one cannot deduce a causal relationship between two events merely because they occur in association has a cool latin name cum hoc ergo propter hoc “with this therefore because of this which hints at the fact that this adage 2022-03-23 16:54:22
Cisco Cisco Blog Digital Transformation and Cybersecurity in the Public Sector https://blogs.cisco.com/government/digital-transformation-and-cybersecurity-in-the-public-sector Digital Transformation and Cybersecurity in the Public SectorAcross the globe we re seeing the Public Sector amid a historical transition In most countries digital technologies are disrupting how agencies deliver services interact with citizens and collaborate In my work with Public Sector customers I ve seen the accelerated adoption of technologies such as hybrid cloud Internet of Things IoT and Artificial Intelligence to name 2022-03-23 16:52:44
海外科学 NYT > Science In Asia, Coronavirus Rules Fall Away, With a Big Caveat https://www.nytimes.com/2022/03/23/world/asia/covid-restrictions-china.html In Asia Coronavirus Rules Fall Away With a Big CaveatDaily life in the region was once regulated by a snarl of virus restrictions That is changing fast ーexcept in mainland China which is still rolling out lockdowns 2022-03-23 16:47:04
金融 金融庁ホームページ 金融庁職員の新型コロナウイルス感染について公表しました。 https://www.fsa.go.jp/news/r3/sonota/20220323.html 新型コロナウイルス 2022-03-23 18:00:00
金融 金融庁ホームページ 金融審議会「資金決済ワーキング・グループ」(第3回)議事録を公表しました。 https://www.fsa.go.jp/singi/singi_kinyu/shikinkessai_wg/gijiroku/20211126.html 金融審議会 2022-03-23 17:00:00
金融 金融庁ホームページ 金融審議会「資金決済ワーキング・グループ」(第4回)議事録を公表しました。 https://www.fsa.go.jp/singi/singi_kinyu/shikinkessai_wg/gijiroku/20211217.html 金融審議会 2022-03-23 17:00:00
金融 金融庁ホームページ 金融審議会「資金決済ワーキング・グループ」(第5回)議事録を公表しました。 https://www.fsa.go.jp/singi/singi_kinyu/shikinkessai_wg/gijiroku/20211228.html 金融審議会 2022-03-23 17:00:00
金融 金融庁ホームページ バーゼル銀行監督委員会による「人工知能と機械学習に関するニューズレター」について掲載しました。 https://www.fsa.go.jp/inter/bis/20220323/20220323.html 人工知能 2022-03-23 17:00:00
ニュース ジェトロ ビジネスニュース(通商弘報) チェンナイ近郊で、日本工業団地への日系企業進出が進む https://www.jetro.go.jp/biznews/2022/03/00cf39c624ab9641.html 工業団地 2022-03-23 16:40:00
ニュース ジェトロ ビジネスニュース(通商弘報) 日用品配送のゲティル、トルコで2社目のデカコーンへ https://www.jetro.go.jp/biznews/2022/03/b7d2f8c253aca6d7.html 配送 2022-03-23 16:30:00
ニュース ジェトロ ビジネスニュース(通商弘報) 2021年のドイツの機械輸出額、新型コロナ禍前に戻らず https://www.jetro.go.jp/biznews/2022/03/bd7276feb4148bd0.html 輸出額 2022-03-23 16:20:00
ニュース ジェトロ ビジネスニュース(通商弘報) トカエフ大統領、権威主義から民主主義への転換表明 https://www.jetro.go.jp/biznews/2022/03/645435f32d1dda6a.html 権威主義 2022-03-23 16:10:00
ニュース BBC News - Home People face biggest drop in living standards in 66 years https://www.bbc.co.uk/news/business-60846951?at_medium=RSS&at_campaign=KARANGA meaning 2022-03-23 16:38:14
ニュース BBC News - Home Russian veteran reformer Chubais quits job as Putin envoy https://www.bbc.co.uk/news/world-europe-60849918?at_medium=RSS&at_campaign=KARANGA russia 2022-03-23 16:18:17
ニュース BBC News - Home Doubt over PM claim that P&O sackings may be illegal https://www.bbc.co.uk/news/business-60849957?at_medium=RSS&at_campaign=KARANGA ferries 2022-03-23 16:50:59
ニュース BBC News - Home Olympic Park: Major gas leak incident at London Aquatics Centre https://www.bbc.co.uk/news/uk-england-60849142?at_medium=RSS&at_campaign=KARANGA stratford 2022-03-23 16:46:45
ニュース BBC News - Home Chelsea v Spurs WSL game called off after Covid outbreak https://www.bbc.co.uk/sport/football/59834649?at_medium=RSS&at_campaign=KARANGA spurs 2022-03-23 16:41:07
ビジネス ダイヤモンド・オンライン - 新着記事 ロシア株式市場、24日に一部再開へ 市場分割案も - WSJ発 https://diamond.jp/articles/-/299978 株式市場 2022-03-24 01:08:00
北海道 北海道新聞 G7、連携対応を確認 貿易相会合、ロシア侵略で https://www.hokkaido-np.co.jp/article/660401/ 連携 2022-03-24 01:24: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件)