投稿時間:2023-06-28 14:20:23 RSSフィード2023-06-28 14:00 分まとめ(22件)

カテゴリー等 サイト名等 記事タイトル・トレンドワード等 リンクURL 頻出ワード・要約等/検索ボリューム 登録日
IT ITmedia 総合記事一覧 [ITmedia PC USER] 米Seagate、PCIe Gen5接続に対応したNVMe SSD「FireCuda 540」 https://www.itmedia.co.jp/pcuser/articles/2306/28/news136.html firecuda 2023-06-28 13:34:00
IT ITmedia 総合記事一覧 [ITmedia News] 元AV女優・上原亜衣さん、自身のAIグラビア写真集発売 Kindleの絵画ランキングで1位に https://www.itmedia.co.jp/news/articles/2306/28/news133.html aiuehararebirth 2023-06-28 13:02:00
AWS AWS Japan Blog 【開催報告】Amazon Kendra で簡単に自然言語を使った「検索」システムを構築 https://aws.amazon.com/jp/blogs/news/amazon-kendra-seminar-20230607/ nbspamazonk 2023-06-28 04:03:23
python Pythonタグが付けられた新着投稿 - Qiita #03 J-STAGEから論文タイトルで検索をしてcsvファイルでDL https://qiita.com/ytsuchiya/items/61acea47c18d235534ed jstage 2023-06-28 13:52:56
python Pythonタグが付けられた新着投稿 - Qiita tkinterでDateEntryを作ってみました https://qiita.com/inabahimeko/items/a4212b9c8c5543d5a054 importcustomtkinter 2023-06-28 13:45:03
Ruby Rubyタグが付けられた新着投稿 - Qiita Railsの日付型をバリデーションするためにいろいろ調べた話 https://qiita.com/goosys/items/0b15b3c308543889b9df error 2023-06-28 13:24:43
Linux Ubuntuタグが付けられた新着投稿 - Qiita AWS上のUbuntuインスタンスに接続する方法 - 初学者向け https://qiita.com/TakanoriVega/items/9b8dfdd9d4414c8e4927 amazonwebservicesaws 2023-06-28 13:39:22
AWS AWSタグが付けられた新着投稿 - Qiita AWS上のUbuntuインスタンスに接続する方法 - 初学者向け https://qiita.com/TakanoriVega/items/9b8dfdd9d4414c8e4927 amazonwebservicesaws 2023-06-28 13:39:22
Ruby Railsタグが付けられた新着投稿 - Qiita Railsの日付型をバリデーションするためにいろいろ調べた話 https://qiita.com/goosys/items/0b15b3c308543889b9df error 2023-06-28 13:24:43
技術ブログ Developers.IO Making CI/CD pipeline for various stages of environment (dev/stg/prod) for React APP using Github Actions https://dev.classmethod.jp/articles/making-ci-cd-pipeline-for-various-stages-of-environment-dev-stg-prod-for-react-app-using-github-actions/ Making CI CD pipeline for various stages of environment dev stg prod for React APP using Github ActionsIntroduction Hemanth of Alliance Department here In this blog I made CI CD pipeline for various stages of en 2023-06-28 04:23:45
海外TECH DEV Community Configure based on the following images https://dev.to/josueparra2892/configure-based-on-the-following-images-1i6 Configure based on the following images Tutorial Elastic Compute Cloud EC Creating EC instances from zero What is EC In a few words EC or Amazon Elastic Compute Cloud is a virtual machine that contains an AMI image with a selected OS with all the needed configurations with EC you could create instances related to specific tasks or resources for example you could easily configure an EC with an AMI for data processing for GPU computing or simple ones to just run web applications EC could be seen as a virtual server where you are able to run your applications In its features we could find Global infrastructurePay as you use itStorageNetworkingOptimizationMaintenanceetc If you want to learn more about the specifications you can visit the official page of AWS EC Creating an EC instanceCool now that we know a bit about what this service is the next step is to start with our practical example Steps to follow Configure VPC Configure a public subnet Configure the internet gateway Create the EC instance Configure a VPCA VPC is a private network that we have in our cloud is similar to having a physical network like you could do in your office to connect your servers but now at the logic level in the cloud Let us start The first thing is to go to our AWS console and in the services choose VPC to go to the VPC dashboard There we going to see the option create VPC Click it to start creating a new one It will display a form like the following I will share with you the configurations used to create the new one First part Give a name example VPCMediumTutorialGive the CIDR range In this case we can use The option for IPv Choose No IPv CIDR blockTenancy Keep it with the default valueScroll down to the following section The following options should be enabled Enable DNS hostnamesEnable DNS resolutionIn tags you can define a tag to identify the VPC by example the env for deployments etc In this case I used medium tutorial as a valueThen click on create a message will be displayed Now you can see the VPC details in Your VPCs panel Choose the created one and a page like this will be shownConfigure the public subnetWhat is a public subnet A public subnet is a subnet within a VPC that has an Internet Gateway route and whose instances have a publicly accessible IP address from the Internet Public subnets are commonly used to host internet facing resources such as web servers or public databases Once we have created our VPC is time to add a public subnet to do that you can take base the following steps In the left pane choose subnets that will take you to the following page Click on create then Choose the VPC that we created in the previous section Then start to add the configurations for the public subnet like is shown in the image below As you can see we choose the same availability zone of our VPC and for the CIDR we will define for this tutorial Click on create One success message will be displayed and then you going to be able to see the public subnet in the table That is for this step Configure the internet gatewayThe AWS Internet Gateway is an Amazon Web Services AWS service that provides a secure and scalable connection between a Virtual Private Cloud VPC and the public Internet Essentially the Internet Gateway is a virtual gateway that allows bidirectional network traffic between the resources in a VPC and the Internet In the left pane choose internet gateways and then provide a name and make click on create Now we need to attach it to our created VPC To do that we need to go to actions and then attach to VPC as is shown in the images below Once you attached the internet gateway to the created VPC we need to go to the subnet and make a couple of configurations more In the subnets table choose the one that we created select the details section make click on the route table That action will take you to the following view where you should click on create a route table add the following and click on create Now we need to add the new route table to our public subnet To do that go to Edit subnet association and edit it In the same view choose routes we need to add a new internet routingClick on edit routes and add the following Create the EC instanceNavigate to EC service dashboardGo to Instances in the left panel It will take you to the instances view Once there click on the launch instance option A new view is loaded here is where we going to configure our EC instance Give a name medium tutorial for example Select the AMI in this case we will use Amazon Linux Network settingsClick on edit in order to add our configurations based on the VPC with internet access Here we going to choose the one that we created Create a new security groupAdd the security rulesYou can take as an example the image below In this case we going to add the configurations needed for ssh connection based on your IP addressHTTP connection from anywhere Create a key pair Use the name medium tutorial and click create It will download a pem file that we going to need to connect by ssh Add user data on advanced detailsHere we going to add the instructions to create a simple server that shows the instance IP to do that you need to go to advanced details and include the lines below in the user data field bin bash Utiliza esto para tus datos de usuario Instala httpd Version Linux sudo suyum update yyum install y httpdsystemctl start httpdsystemctl enable httpdecho lt h gt Hello from hostname f lt h gt gt var www html index htmlReady now just make click on create Now to these the instance you can click over the instance Id then copy and paste the Public IPv DNS in a browser and you will be able to see something like the following Bonus How to configure the VPC Subnet and internet gateway in an easier way Go to VPC dashboardClick on create VPC Configure based on the following images As you can see we are adding all the needed basic configurations to generate the VPC our public subnet and the internet gateway In addition you can see the configuration in the diagram that is generated based on your selections After adding those configurations just click on create and ready your VPC is ready to use You can use this option to create the EC instance and it should work and as you can see is easier that the first option that we see in this tutorial 2023-06-28 04:45:42
海外TECH DEV Community AWS Elastic Load Balancer and Auto Scaling Groups https://dev.to/josueparra2892/aws-elastic-load-balancer-and-auto-scaling-groups-3hkm AWS Elastic Load Balancer and Auto Scaling Groups AWS Elastic Load Balancer and Auto Scaling Groups Amazon Web Services tutorial ーELB and ASGIn this tutorial we will review two essential AWS services that help us with our application scalability ELB elastic load balancer and ASG Auto scaling groups Note If you are new with the scaling concept I recommend you take a look at this article where I talk about scalability ー IntroductionFirst let us talk about what a load balancer is “A load balancer is a device or software that distributes network traffic among multiple servers or computing resources to improve the performance scalability availability and reliability of an online service or application A load balancer acts as an intermediary between clients and servers and uses routing algorithms to distribute network traffic across multiple servers or application instances depending on the number of requests that the service is receiving Imagine the following scenario You have an e commerce application and you detect the dates with more traffic could be black Friday for example then you and your team decide to generate multiples instances of your application in different servers and the next step how are we going to work with those deployments as one the answer is implementing a load balancer to distribute the request along the different instances Cool now we understand what is a load balancer and when we could implement it but how we can implement a load balancer there are a lot of services frameworks and approaches to work with a load balancer for example if we are using a cloud like AWS we are able to use a service named ELB which is one that we going to use in this tutorial What is ELB ELB stands for “Elastic Load Balancer which is an AWS cloud service that helps us to implement a load balancer in our solutions Elastic Load Balancing ELB automatically distributes incoming application traffic across multiple targets and virtual appliances in one or more Availability Zones AWS offers three different types of load balancers Application Load BalancerGateway Load BalancerNetwork Load BalancerIn this tutorial we going to focus on the Application load balancer option In the following image you can see how it works from a general perspective Your client makes a request to your application The listeners in your load balancer receive requests matching the protocol and port that you configure The receiving listener evaluates the incoming request against the rules you specify and if applicable routes the request to the appropriate target group You can use an HTTPS listener to offload the work of TLS encryption and decryption to your load balancer Healthy targets in one or more target groups receive traffic based on the load balancing algorithm and the routing rules you specify in the listener Hands on …and let start with an example to learn how to use ELBFor this tutorial we are going to need Two EC instances configured with internet access ーIf you are new and want to learn how to make this step you can follow this tutorial josueparra tutorial elastic compute cloud ec ddddaConfigure an ELB to distribute the traffic between the EC instances Creating the EC instancesAt the time to create your instance you should use the following configurations The instance type could be t micr AMI Amazon LinuxYour instance should have internet access As part of the Advanced details in the field of user data You need to use add the following lines The configuration above will help us to create a basic service that displays the instance IP address bin bash Utiliza esto para tus datos de usuario Instala httpd Version Linux sudo suyum update yyum install y httpdsystemctl start httpdsystemctl enable httpdecho Hello from hostname f gt var www html index htmlNote you should create instances for this tutorial but in a real world application you can define as much as you need Example Instance Instance Important considerations at a time to build our ELBThe following points are very important to make the ELB works correctlyThe VPC should be the same in your instances and in your ELB configurationYou need at least availability zones each one with its subnets with internet accessYour instances should be configured in the same VPC Configure ELB Elastic Load Balancing To do this step you first have to navigate to the “load balancing menu in the left panel inside of the EC dashboard Then make click on “load Balancer it going to take you to the following screen Once there you should click on create “load balancer then you going to see something like the following As I mentioned before we going to review in this tutorial the option of “Application Load Balancer it will help us to distribute the request using the ELB between the EC instances Then you need to click on create of the first option “Application Load Balancer After you clicked you will see a configuration page there we going to configure all the needed parameters for our load balancer The first step is to provide a name and we going to keep the internet access and the IPv options selected like in the image below The next step is to configure the network mapping Here we going to configure the VPC and the availability zones For the VPC you can select one of the ones that you already have configured and then select the AZ and the subnet related to it The next step is to configure the security group in this case we going to see that is one selected by default but we need to create a new one used only by our ALB Application Load Balancer To do that you need to make click on “Create new security group we need to add Inbound rules you can take as example the image below Ready your security group configurations are done just click on “Create security group Go back to the load balancer configuration page and choose your new security group as part of its configurations Then the following step is one of the most important because there we going to configure all the instances that will be used by our load balancer For the “Listener and routing configuration we going to follow a couple of steps The first one is to create a new “target group configured for instances you can take as a reference the images below As you can see we only modified those values then you can click on “next to proceed to add the instancesonce selected click on include as pendingthen click on create Once configured the target group you should go back to the load balancer configuration page and select the created target group Scroll down to see the summary and then click on create To test our Load balancer we need to use the DNS name that comes on the load balancer detailsCopy and paste in a browser and then EC instance should responseMaybe the result will the same many times but if you test doing the request with some tool to help you to get the limit of request the load balancer will make its work and distribute the request Pretty easy right Now you know how to configure manually a load balancer and how to configure the instances that it will run maybe you are wondering but what happens if we don t want to create or delete the instances and make it automatically the answer is use an Auto Scaling Group ASG that will help you to create instances as the demand needs and also it will automatically decrease the number of instances In the next section of this tutorial we going to see how to use and configure an Auto Scaling group ASG stands for “Auto Scaling Group and is a service that helps us to scale our application automatically monitoring our EC containers and increasing or decreasing the instances as needed based on the traffic and request on your instances Benefits and featuresFault tolerance Detect when an instance is unhealthy terminate it and launch an instance to replace it Availability Ensure that your application always has the right amount of capacity to handle the current traffic demand Cost management Save money by dynamically launching instances when they are needed and terminating them when they aren t One example could be the following If an application experiences a sudden increase in workload Amazon Auto Scaling can automatically add more computing resources to ensure that the application continues to function smoothly Similarly if the workload decreases Amazon Auto Scaling can automatically reduce the number of computing resources to avoid unnecessary costs Knowing that is time to build our ASG and see it in action Configuring ASGThe first step to configure a ASG is to go to the ASG dashboard you can access making click in the “Auto Scaling Groups in the left menu And then select “create auto scaling group Doing that you will see the following page Here we going to start with the configurations As you can see there are steps to follow and I will guide you on each one of them Step Here we need to provide a name and create the launch template for our instances In order to create the template you should make click on “Create launch template There you can take as a base the following configurations just focus in the edited sections for this tutorial For the network settings you need to provide a valid security group You could use the same that we used in the previous sections Once you have the configurations make click on create launch templateThen go back to the ASG view there you need to choose the created templateclick on next select your VPC and at least subnets with internet access here you can use the configured in the previous section Click on next In this step you need to specify which load balancer the ASG will use then you can select the one that we created in the previous sections Click on next The fourth step is to configure the ASG size defining the number of instances to use You can use the following configurations Click on next until step we going to omit the others configurations in this tutorial Then click on create As you can see we have a new ASG created If you go to the EC instances you also will see instances created by default and automatically Wait a bit until the instances are running in order to test the results We need to go to our Load Balancer and get the DNS to make the request in a browser At time to load the page you will see in the screen the IP related to the instance that is getting your request Ready as you can see we now you know how to start configuring a load balancer for your system and make an auto scaling group to make the scaling automatically I recommend to you to use the ASG because it will help you to manage the instances adding or removing them as needed 2023-06-28 04:42:29
海外TECH DEV Community Golang context https://dev.to/josueparra2892/golang-context-4n8g Golang context Golang contextThe official documentation mention provides the following description “Package context defines the Context type which carries deadlines cancellation signals and other request scoped values across API boundaries and between processes In other words the context helps us to define scopes in our different processes and control when each one needs to be completed or terminated according to the parent process results One common example of the use of context is when we are working with APIs then we define or the used framework the parent context that should be shared along the request process In that kind of context we have all the information related to the request one good example is the gin gonic framework where its developers make very good use of the context along with the requests Another example is the use of goroutines in that case we could implement the context and some of its main functions to ensure to termination of the subprocess and reduce resource costs Contexts are particularly useful in situations where you need to perform multiple operations concurrently and you want centralized control over their execution For example contexts can be used to Set deadlines for trades and cancel them if they take too long Propagate shared values such as authentication or configuration information Provide abort signals to goroutines and functions that use the context Provide diagnostic information such as traces and logs In Golang is an important tool for concurrent programming and helps us provide additional information through function calls and goroutines safely and efficiently Context TODO“Code should use context TODO when it s unclear which Context to use or it is not yet available because the surrounding function has not yet been extended to accept a Context parameter Context Background“context Background returns a non nil empty Context It is never canceled has no values and has no deadline It is typically used by the main function initialization and tests and as the top level Context for incoming requests Context FunctionsIn this section I will show you some of the most used context functions context WithCancel and context WitTimeout both are similar helping us to close the subprocess from the parent context WithCancelcontext WithCancel is a function in Golang that is used to create a new context from a parent context and a cancel function that is used to cancel the child context and all its related goroutines The context WithCancel function takes a parent context as an argument and returns two values a child context and a cancel function The child context is a new context that is derived from the parent context and includes additional information such as a cancellation signal The cancel function is used to cancel the child context and all related goroutines Here is one example package mainimport context fmt func main gen generates integers in a separate goroutine and sends them to the returned channel The callers of gen need to cancel the context once they are done consuming generated integers not to leak the internal goroutine started by gen gen func ctx context Context lt chan int dst make chan int n go func for select case lt ctx Done return returning not to leak the goroutine case dst lt n n return dst ctx cancel context WithCancel context Background defer cancel cancel when we are finished consuming integers for n range gen ctx fmt Println n if n break WithTimeoutcontext WithTimeout is a function in Golang that is used to create a new context from a parent context with a timeout duration The timeout duration specifies how long the context and all its related goroutines should wait before canceling automatically The context WithTimeout function takes a parent context and a timeout duration as arguments and returns two values a child context and a cancel function The child context is a new context that is derived from the parent context and includes additional information such as a deadline for canceling the context The cancel function is used to cancel the child context and all related goroutines Here is one example package mainimport context fmt time const shortDuration time Millisecondfunc main Pass a context with a timeout to tell a blocking function that it should abandon its work after the timeout elapses ctx cancel context WithTimeout context Background shortDuration defer cancel select case lt time After time Second fmt Println overslept case lt ctx Done fmt Println ctx Err prints context deadline exceeded output context deadline exceededAnother example package mainimport context fmt time func main Create a parent context using context Background ctx context Background Create a child context with a timeout of seconds using context WithTimeout ctx cancel context WithTimeout ctx time Second defer cancel Simulate a long running task that takes seconds to complete go longRunningTask ctx Wait for the child context to be canceled or to timeout select case lt ctx Done fmt Println ctx Err case lt time After time Second fmt Println Task took too long to complete fmt Println Done func longRunningTask ctx context Context fmt Println Task started Simulate a task that takes seconds to complete select case lt time After time Second fmt Println Task completed case lt ctx Done fmt Println ctx Err output Task started context deadline exceededDone Program exited ConclusionIn conclusion the Golang context package provides a powerful mechanism for managing and communicating between goroutines Allowing you to manage deadlines cancellations and request scope values across API boundaries and between processes By using the context package you can write concurrent code that is efficient safe and easy to reason with Provides a standardized way to propagate request scoped values such as authentication tokens or tracking information across multiple API functions and boundaries It allows you to manage the lifetime of goroutines in a clean and consistent way making it easy to prevent resource leaks and manage system resources efficiently Overall the context pack is an essential part of writing scalable robust and efficient concurrent applications in Golang Information is taken from the official web seite 2023-06-28 04:40:04
海外TECH DEV Community The Fastest Way to Build an Android QR Code Scanner using Java https://dev.to/iamparkereric/the-fastest-way-to-build-an-android-qr-code-scanner-using-java-3bo7 The Fastest Way to Build an Android QR Code Scanner using JavaQR codes are becoming increasingly popular because they facilitate fast data retrieval smooth financial transactions and exciting new possibilities for personalization Using a QR code scanner helps quickly access URLs product information event details and special offers The two main features of any reliable QR code scanner app are the camera preview and the scanning of QR codes While dozens of QR code scanner applications are available on the Google Play Store making your own QR code scanner is a much better option What if we told you it could be done with just a few easy steps In this blog we will be sharing the quickest way to build an Android QR code scanner You will discover how to implement camera preview and QR code scanning SDK in a step by step manner PrerequisitesTo implement the QR code scanner on Android the following libraries are required You are free to substitute your own libraries in their place Camera Preview SDKCameraXSince the Android Camera API is exceptionally challenging for beginners Google released CameraX to streamline the development of camera applications The codelab tutorial is an excellent introduction to CameraX InstallationYou ll have to add the camera permission in AndroidManifest xml lt uses feature android name android hardware camera any gt lt uses permission android name android permission CAMERA gt In app build gradle add the dependency dependencies def camerax version implementation androidx camera camera camera camerax version implementation androidx camera camera lifecycle camerax version implementation androidx camera camera view alpha Dynamsoft Camera Enhancer vDynamsoft Camera Enhancer like CameraX is a wrapper for the Android Camera API It has all the functionality of a regular camera plus frame filtering to improve the quality of your shots To evaluate CameraX we also employ Dynamsoft Camera Enhancer InstallationAdd the custom maven repository in settings gradle add the custom maven repository dependencyResolutionManagement repositoriesMode set RepositoriesMode FAIL ON PROJECT REPOS repositories maven url Now in app build gradle add the dependency dependencies implementation com dynamsoft dynamsoftcameraenhancer aar QR Code Scanning SDKDynamsoft Barcode Reader vA barcode SDK that supports all standard linear barcode and D barcode formats InstallationAdd the custom maven repository in settings gradle dependencyResolutionManagement repositoriesMode set RepositoriesMode FAIL ON PROJECT REPOS repositories maven url In app build gradle add the dependency dependencies implementation com dynamsoft dynamsoftbarcodereader aar Additionally a license key is required to activate the barcode SDK BarcodeReader initLicense DLSeyJoYWkchhaVDbRlIjoiMjAwMDAxLTENDkMjkOTIMzUiLCJvcmdhbmlYXRpbJRCIIjIwMDAwMSIsInNlcNpbQYXNzdyZCIIndTcGRVmWDJrcEQYUoifQ new DBRLicenseVerificationListener Override public void DBRLicenseVerificationCallback boolean isSuccessful Exception e Develop Android Camera Preview within Minutes Implement Camera Preview with CameraX in Three Simple StepsThe default CameraX documentation is written in Kotlin However we will be using Java here Build the user interface layout containing the CameraX preview view lt xml version encoding utf gt lt androidx constraintlayout widget ConstraintLayout xmlns android xmlns app xmlns tools android layout width match parent android layout height match parent tools context CameraXActivity gt lt androidx camera view PreviewView android id id camerax viewFinder android layout width match parent android layout height match parent gt lt androidx constraintlayout widget ConstraintLayout gt Now let s check and request camera permissions Override protected void onCreate Bundle savedInstanceState super onCreate savedInstanceState setContentView R layout dce main previewView findViewById R id dce viewFinder cameraEnhancer new CameraEnhancer this cameraEnhancer setCameraView previewView cameraEnhancer addListener this Override protected void onResume super onResume try cameraEnhancer open catch CameraEnhancerException e e printStackTrace Override protected void onPause super onPause try cameraEnhancer close catch CameraEnhancerException e e printStackTrace All in OneWe ll construct an entrance activity for launching CameraX and Dynamsoft Camera Enhancer package com example qrcodescanner import android content Intent import android os Bundle import android view View import androidx appcompat app AppCompatActivity public class EntryChoiceActivity extends AppCompatActivity Override protected void onCreate Bundle savedInstanceState super onCreate savedInstanceState setContentView R layout entry choice findViewById R id camerax entry point setOnClickListener new View OnClickListener Override public void onClick View v Intent intent new Intent EntryChoiceActivity this CameraXActivity class startActivity intent findViewById R id dce entry point setOnClickListener new View OnClickListener Override public void onClick View v Intent intent new Intent EntryChoiceActivity this DceActivity class startActivity intent How to Turn Android Camera into QR Code ScannerTo scan a QR code we must continuously retrieve the camera s preview frames and send them to the QR code detector Setting the Camera Frame CallbackImageAnalysis class can be used to receive the camera frames when using CameraX ImageAnalysis analysisUseCase new ImageAnalysis Builder build analysisUseCase setAnalyzer cameraExecutor imageProxy gt image processing Must call close to keep receiving frames imageProxy close cameraProvider bindToLifecycle this cameraSelector previewUseCase analysisUseCase In comparison Dynamsoft Camera Enhancer is significantly simpler The callback function resembles that of Android Camera public class DceActivity extends AppCompatActivity implements DCEFrameListener Override public void frameOutputCallback DCEFrame dceFrame long l image processing Different data types are returned by their response functions For subsequent use data type conversion is required How to Decode QR Codes When using CameraX ByteBuffer is firstly converted to byte and then the decodeBuffer method is called analysisUseCase setAnalyzer cameraExecutor imageProxy gt TextResult results null ByteBuffer buffer imageProxy getPlanes getBuffer int nRowStride imageProxy getPlanes getRowStride int nPixelStride imageProxy getPlanes getPixelStride int length buffer remaining byte bytes new byte length buffer get bytes try results reader decodeBuffer bytes imageProxy getWidth imageProxy getHeight nRowStride nPixelStride EnumImagePixelFormat IPF NV catch BarcodeReaderException e e printStackTrace Must call close to keep receiving frames imageProxy close When using Dynamsoft Camera Enhancer we get Bitmap from the DCEFrame and then the decodeBufferedImage method is called public void frameOutputCallback DCEFrame dceFrame long l TextResult results null try results reader decodeBufferedImage dceFrame toBitmap catch BarcodeReaderException e e printStackTrace How to Use Zoom and Torch to Enhance the Frame QualityThe accuracy of barcode recognition is always dependent on the quality of the input image The image can be enlarged by zooming the camera if the QR code is very small If the input image is too poorly lit we can activate the flashlight to enhance it Both CameraX and Dynasoft Camera Enhancer have supported the camera control in full Android Camera ZoomUsing the finger pinch gesture the zoom can be triggered Hence firstly we ll build the gesture detector and take over the onTouchEvent method public class ZoomController public final static String TAG ZoomController private float currentFactor f private float minZoomRatio f maxZoomRatio f private ZoomStatus zoomStatus private ScaleGestureDetector scaleGestureDetector private ScaleGestureDetector OnScaleGestureListener scaleGestureListener new ScaleGestureDetector OnScaleGestureListener Override public boolean onScale ScaleGestureDetector detector Log i TAG onScale detector getScaleFactor currentFactor detector getScaleFactor currentFactor if currentFactor lt minZoomRatio currentFactor minZoomRatio if currentFactor gt maxZoomRatio currentFactor maxZoomRatio if zoomStatus null zoomStatus onZoomChange currentFactor return true Override public boolean onScaleBegin ScaleGestureDetector detector return true Override public void onScaleEnd ScaleGestureDetector detector public ZoomController Activity activity scaleGestureDetector new ScaleGestureDetector activity scaleGestureListener public interface ZoomStatus void onZoomChange float ratio public void addListener ZoomStatus zoomStatus this zoomStatus zoomStatus public void initZoomRatio float minZoomRatio float maxZoomRatio this minZoomRatio minZoomRatio this maxZoomRatio maxZoomRatio public boolean onTouchEvent MotionEvent event return scaleGestureDetector onTouchEvent event Overridepublic boolean onTouchEvent MotionEvent event zoomController onTouchEvent event return super onTouchEvent event When the gesture is detected we ll get the scale factor and use that as the zoom ratio Setting camera zoom ratio with CameraXif camera null camera getCameraControl setZoomRatio ratio Setting camera zoom ratio with Dynamsoft Camera Enhancertry cameraEnhancer setZoom ratio catch CameraEnhancerException e e printStackTrace Android Camera TorchTo instantly turn on the flashlight we keep an eye on the light value the light sensor gives us public class AutoTorchController implements SensorEventListener public final static String TAG AutoTorchController private SensorManager sensorManager private TorchStatus torchStatus public interface TorchStatus void onTorchChange boolean status public AutoTorchController Activity activity sensorManager SensorManager activity getSystemService SENSOR SERVICE public void onStart Sensor lightSensor sensorManager getDefaultSensor Sensor TYPE LIGHT if lightSensor null sensorManager registerListener this lightSensor SensorManager SENSOR DELAY NORMAL public void onStop sensorManager unregisterListener this Override public void onSensorChanged SensorEvent event if event sensor getType Sensor TYPE LIGHT if event values lt if torchStatus null torchStatus onTorchChange true else if torchStatus null torchStatus onTorchChange false Override public void onAccuracyChanged Sensor sensor int accuracy public void addListener TorchStatus torchStatus this torchStatus torchStatus Toggling camera torch with CameraXif camera null camera getCameraControl enableTorch status Toggling camera torch with Dynamsoft Camera Enhancerif status try cameraEnhancer turnOnTorch catch CameraEnhancerException e e printStackTrace else try cameraEnhancer turnOffTorch catch CameraEnhancerException e e printStackTrace 2023-06-28 04:33:53
海外TECH DEV Community AWS DATABASE ENGINES https://dev.to/aws-builders/aws-database-engines-1onp AWS DATABASE ENGINESWHAT IS A DATABASE ENGINEA database engine is an fundamental software that a database management system uses to function by creating reading updating and deleting data from the database The database engine does the real work of organizing the information and allows you to work with tables Database engine represents a fundamental building block of your database AMAZON RELATIONAL DATABASE SERVICE Amazon RDS It is a managed Relational Database Service provided by Amazon Web Services AWS that supports the most popular varieties of database engines It is a type of database that stores data in tables with rows and columns It also stores and organizes large amount of data that applications can draw upon to help them perform various tasks Relational database is provided by Amazon RDS is cost effective with resizable capability Amazon RDS is very useful for some ICT startups that have a functional database infrastructure already in use and are interested in the cloud technologies DATABASE ENGINES SUPPORTED BY AMAZON RDSThese include MySQL It is a free popular and open source relational database engine that is widely used in web applications MySQL is one of the most popular database engines in the world It is free and open source It s commonly fast very sturdy and can coexist with many different operating systems Generally the solutions obtained from MySQL are used for databases which requires only a straightforward read write activities as well as strong performance Aurora It is one of the engines supported by Amazon RDS that is fully managed relational database engines which works well with MySQL and PostgreSQL It is designed to be highly scalable and available delivering fast performance with automatic backups and failover Unlike Amazon RDS Amazon Aurora is designed specifically for the cloud It combines the performance and availability of customary operational databases with the simplicity personalized and cost effectiveness of open source databases MariaDB It is a fast popular open source relational database management system which is a scalable relational database management system that s also an improved version of MySQL created by the original developers of MySQL The performance is enhanced with augmented security and more storage engines PostgreSQL This is a powerful advanced enterprise highly stable open source object relational database system that gives support to SQL Its broad features makes it a good fit for web applications data warehousing and business intelligence which has earned it a strong reputation for reliability feature robustness and performance Oracle It is a universally used commercial relational database management system RDBMS engine from the American software and hardware Various editions of Oracle such as Oracle Standard Edition One Oracle Standard Edition Two and Oracle Enterprise Edition are supported by Oracles Microsoft SQL Server It is a commercial relational database engine developed by Microsoft which is widely used in enterprise applications for managing vast amounts of data Amazon RDS for SQL Server makes it easy to set up operate and scale SQL Server deployments in the cloud SQL server is Microsoft s owned database engine that supports a broad variety of transactions As with Oracle it s generally best suited for larger companies with massive fixed datasets who already use Microsoft SQL as a core part of their business but not a good choice for startups USE CASES OF AMAZON RDSSome of the most common use cases of AWS RDS include the following Web applications Amazon Relational Database can be used to power web applications to fulfill the needs of very demanding applications giving them a scalable and highly accessible database backend with high throughput massive storage scalability and further high availability These applications are built on platforms like WordPress Drupal Joomla and many others Web and mobile applications Amazon RDS offer a scalable and secure database solution for web and mobile apps making it the perfect choice for businesses looking to launch apps fast and effectively Mobile applications Amazon RDS Supports developers of mobile applications that has need for a database platform with high throughput and availability so that they can endlessly update these applications providing them a highly available scalable database service for applications that need to store and retrieve data in real time Mobile application companies can use Amazon RDS to provide a better performance cost effective highly secure and increased availability for their social and mobile games Disaster recovery It can be used to design test set up and manage standby databases and read replicas in different regions or availability zones providing a dependable disaster recovery solution for critical applications in order to maintain business continuity E commerce Amazon Relational Database System offers small medium and large e commerce businesses a flexible safe highly scalable and cost effective database solution for online sales and retailing It enables the company s database to store and manage product catalogs order histories and customer data for e commerce websites and applications Using Amazon RDS can simplify administrative database tasks thereby saving time and money With Amazon RDS companies can add millions of new items to their database every month leading to overall customer satisfaction and sales increase Analytics and business intelligence It can store and manage huge volumes of data for data analysis and business intelligence applications thereby ensuring that there is a fast and reliable access to data used for reporting and analysis in business DevOps It can be combined with other AWS services to automate database distribution and management as part of the DevOps process Travel applications Amazon RDS offers applications such as Airbnb a simplified time consuming database administrative tasks and automated database replication Mobile apps like Airbnb also take advantage of RDS scalable storage capability Streaming applications Applications like Netflix works with RDS because of its storage scalability and availability of Amazon RDS which allows them to handle high demand daily Data warehousing Amazon RDS offers a scalable and safe data warehousing solution to businesses that needs to store and analyze very large volumes of data in the cloud 2023-06-28 04:26:35
海外TECH DEV Community 🔴 Build a Whatsapp Clone (Realtime Chat) using Next.js, Socket.io, Tailwind CSS, Node.js, Express and Prisma https://dev.to/koolkishan/build-a-whatsapp-clone-realtime-chat-using-nextjs-socketio-tailwind-css-nodejs-express-and-prisma-1j0k Build a Whatsapp Clone Realtime Chat using Next js Socket io Tailwind CSS Node js Express and PrismaFeatures of the WhatsApp Clone This comprehensive WhatsApp clone comes packed with a range of awesome features to give you an authentic messaging experience Here are some highlights Login with Google using Firebase Seamlessly sign in with your Google account via Firebase integration Switch between multiple databases using Prisma Customize your database preferences to suit your needs effortlessly Send and Receive Messages using Sockets Real time messaging capabilities using Socket io for instant communication Voice Call and Video Call Feature Enjoy crystal clear voice and video calls within the app Voice Notes with Live Audio Waveforms Send and receive voice notes accompanied by live audio waveforms for an enhanced messaging experience Support for Emoji Express yourself with a wide range of emojis to add fun and emotions to your conversations Send Images Share images with your friends and loved ones effortlessly Online Offline Functionality Easily identify the online and offline status of your contacts Search Messages Quickly find specific messages using the search functionality Capture Photo From Camera Take instant photos using your device s camera and send them instantly Message Read Status Know when your messages have been read by your recipients Message Time Stay updated with the time stamps of messages for better organization And many more awesome features await you in this WhatsApp clone Check out the full Hour Video on my youtube channel For more such Full Stack Clones subscribe to my youtube channel 2023-06-28 04:08:39
ニュース BBC News - Home Riots erupt after French police kill teen in car https://www.bbc.co.uk/news/world-europe-66038227?at_medium=RSS&at_campaign=KARANGA traffic 2023-06-28 04:18:40
ニュース Newsweek ゴルフ・PGAツアーとサウジ系ファンドの「政略結婚」...スポーツも政治も「金満サウジ」に迎合する https://www.newsweekjapan.jp/stories/world/2023/06/post-102023.php 今、私たちが目にしているのは、サウジアラビアの影響力のピークであって、新たなグローバルパワーの台頭ではないのだろう。 2023-06-28 13:40:20
IT 週刊アスキー 新横浜プリンスホテル、トレインビューの部屋で新幹線ジオラマ風アートスイーツプレートを楽しめるプランを販売 https://weekly.ascii.jp/elem/000/004/142/4142914/ 新横浜プリンスホテル 2023-06-28 13:50:00
IT 週刊アスキー 無数の星々が奏でる新体験! 赤レンガ・アートプラネタリウム「星と歩くⅡ」 https://weekly.ascii.jp/elem/000/004/142/4142915/ 横浜赤レンガ倉庫 2023-06-28 13:10:00
マーケティング AdverTimes 神戸ジャズ100周年、駅構内をジャズで彩る https://www.advertimes.com/20230628/article424709/ 旅客鉄道 2023-06-28 04:01:49
海外TECH reddit [Post Game Thread] Light That Baby Up! Angels defeat White Sox! https://www.reddit.com/r/angelsbaseball/comments/14kzoh9/post_game_thread_light_that_baby_up_angels_defeat/ Post Game Thread Light That Baby Up Angels defeat White Sox White Sox Angels First Pitch PM at Angel Stadium Team Starter TV Radio White Sox Michael Kopech ERA NBCSCH WMVP Angels Shohei Ohtani ERA BSW KLAA KWKW ES Game Preview r angelsbaseball Discord Reddit Stream for this post Line Score Game Over R H E LOB CWS LAA Box Score LAA AB R H RBI BB SO BA CF Moniak DH Ohtani B Drury SS Velazquez A B Moustakas LF Ward RF Renfroe B Rengifo C Wallach B Fletcher Da LAA IP H R ER BB SO P S ERA Ohtani Webb Devenski Estévez CWS AB R H RBI BB SO BA LF Benintendi SS Anderson Ti CF Robert Jr RF Jiménez E DH Vaughn C Grandal PR Frazier B Remillard B Burger B Sheets PR Haseley C Zavala B Andrus CWS IP H R ER BB SO P S ERA Kopech Toussaint Santos López R Scoring Plays Inning Event Score B Shohei Ohtani homers on a fly ball to right center field B White Sox challenged play at st call on the field was overturned David Fletcher grounds out second baseman Elvis Andrus to first baseman Gavin Sheets Luis Rengifo scores Chad Wallach to nd T Gavin Sheets singles on a line drive to right fielder Hunter Renfroe Clint Frazier scores Jake Burger to rd B Shohei Ohtani homers on a fly ball to left center field B Mike Moustakas singles on a sharp ground ball to center fielder Luis Robert Jr Andrew Velazquez scores T Andrew Vaughn singles on a line drive to right fielder Hunter Renfroe Eloy Jimenez scores Highlights Description Length Video Bullpen availability for Chicago June vs Angels Video Bullpen availability for Los Angeles June vs White Sox Video Fielding alignment for Chicago June vs Angels Video The distance behind Shohei Ohtani s home run Video Visualizing Shohei Ohtani s swing using bat tracking technology Video Breaking down Michael Kopech s pitches Video Breaking down Shohei Ohtani s pitches Video Shohei Ohtani s outing against the White Sox Video Breaking down Shohei Ohtani s home run Video A deep dive into Shohei Ohtani s home run Video Shohei Ohtani homers to right field to start the game Video Shohei Ohtani crushes a homer Creator Cuts Video David Fletcher extends the lead in the th inning Video Take a look at Ohtani s th home run using Data Viz Video Renfroe makes the catch than gets Grandal at first Video Elvis Andrus nabs David Fletcher after review in th Video Michael Kopech fans three in outing against Angels Video Gavin Sheets rips an RBI single to right in the th Video Shohei Ohtani goes yard again in the th Video Mike Moustakas hits RBI single to center in the th Video Michael Kopech strikes out Mickey Moniak swinging Video Shohei Ohtani strikes out hits two over the fence Video Carlos Estevez In play run s to Andrew Vaughn Video Elvis Andrus grounds into a double play shortstop Andrew Velazquez to second baseman David Fletcher to first baseman Mike Moustakas Jake Burger out at nd Elvis Andrus out at st Video Shohei Ohtani goes with two solo home runs in win Video Decisions Winning Pitcher Losing Pitcher Save Ohtani ERA Kopech ERA Estévez SV ERA Game ended at PM submitted by u angelsbaseball to r angelsbaseball link comments 2023-06-28 04:34:49

コメント

このブログの人気の投稿

投稿時間: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件)