投稿時間:2023-04-11 22:18:05 RSSフィード2023-04-11 22:00 分まとめ(26件)

カテゴリー等 サイト名等 記事タイトル・トレンドワード等 リンクURL 頻出ワード・要約等/検索ボリューム 登録日
IT InfoQ Twitter Open-Sources Recommendation Algorithm https://www.infoq.com/news/2023/04/twitter-algorithm/?utm_campaign=infoq_content&utm_source=infoq&utm_medium=feed&utm_term=global Twitter Open Sources Recommendation AlgorithmTwitter recently open sourced several components of their system for recommending tweets for a user s Twitter timeline The release includes the code for several of the services and jobs that run the algorithm as well as code for training machine learning models for embedding and ranking tweets By Anthony Alford 2023-04-11 13:00:00
IT SNSマーケティングの情報ならソーシャルメディアラボ【Gaiax】 【LinkedIn広告】始め方とターゲティング方法を解説! https://gaiax-socialmedialab.jp/post-106319/ facebook 2023-04-11 12:00:38
AWS AWS Networking and Content Delivery Choosing the right health check with Elastic Load Balancing and EC2 Auto Scaling https://aws.amazon.com/blogs/networking-and-content-delivery/choosing-the-right-health-check-with-elastic-load-balancing-and-ec2-auto-scaling/ Choosing the right health check with Elastic Load Balancing and EC Auto ScalingCustomers frequently use Elastic Load Balancing ELB load balancers and Amazon EC Auto Scaling groups ASG to build scalable resilient workloads When configured correctly Amazon ELB health checks help make your workload more resilient to failures in your workload components behind the load balancer However you may need to make tradeoffs for handling different failure … 2023-04-11 12:39:53
python Pythonタグが付けられた新着投稿 - Qiita Blender で外部ファイルのコレクションにリンクするスクリプト https://qiita.com/muratagawa/items/33c8724d81397b24f7cb blend 2023-04-11 21:40:52
js JavaScriptタグが付けられた新着投稿 - Qiita sha256.js【JavaScript】 https://qiita.com/7mpy/items/cb50b73104a40bf23826 obscure 2023-04-11 21:57:36
js JavaScriptタグが付けられた新着投稿 - Qiita TypeScript5.0がリリースされたのでリリースノートを読んでみる https://qiita.com/takekou/items/50fe8b257e86470dfcba announcingtypescript 2023-04-11 21:17:18
Ruby Rubyタグが付けられた新着投稿 - Qiita aws-sdk-s3でIAM-ROLEを使って操作する https://qiita.com/interu/items/66cd1b08821a7b3a2dc6 lientawssclientnewregion 2023-04-11 21:15:24
AWS AWSタグが付けられた新着投稿 - Qiita ECRのプッシュコマンドでエラーが出た https://qiita.com/YuyaIsh/items/4c54883ff857423104f1 passworddockerloginuserna 2023-04-11 21:21:22
Ruby Railsタグが付けられた新着投稿 - Qiita Bootstrapで作ったヘッダーの検索ボタンでホバーしたときの文字色を変更する https://qiita.com/kanerin1004/items/89319002051d105b9bd2 bootstrap 2023-04-11 21:57:23
技術ブログ Developers.IO 従業員エンゲージメントを支える10個の要素 – 1. 期待の把握 https://dev.classmethod.jp/articles/engagement-expectation/ employeeengagement 2023-04-11 13:00:05
海外TECH MakeUseOf How to Watch US TV Shows Online From Other Countries https://www.makeuseof.com/how-to-watch-us-tv-online/ online 2023-04-11 12:15:17
海外TECH DEV Community Kotlin CRUD Rest Api using Spring Boot, Hibernate, Postgres, Docker and Docker Compose https://dev.to/francescoxx/kotlin-crud-rest-api-using-spring-boot-hibernate-postgres-docker-and-docker-compose-1cnl Kotlin CRUD Rest Api using Spring Boot Hibernate Postgres Docker and Docker ComposeLet s create a CRUD Rest API in Kotlin using Spring bootGradleHibernatePostgresDockerDocker ComposeIf you prefer a video version All the code is available in the GitHub repository link in the video description IntroHere is a schema of the architecture of the application we are going to create We will create endpoints for basic CRUD operations CreateRead allRead oneUpdateDeleteHere are the steps we are going through Create a Spring Boot project using Spring InitializrConfigure the database connectionCreate User kt UserRepository kt and UserService ktDockerize the applicationCreate docker compose yml to run the database and the applicationTest the application with Postman and TableplusWe will go with a step by step guide so you can follow along Requirements Kotlin installedDocker installed and running Optional Postman and Tableplus to follow along but any testing tool will workOptional VS Code with the following extensions Java Extension PackSpring Boot Extension Pack Create a new Kotlin projectThere are many ways to create a new Kotlin project but I will use the Spring Initializr in VS Code To do this you need to have the Java Extension Pack and the Spring Boot Extension Pack installed Open VS Code and click on the Create Java Project button This will open a prompt at the top of the screen Click on the following in order Spring bootGradle it might change in the future Kotlincom example just click enter demo just click enter Jar Java This will open another prompt Click on the following in order Spring Web dependency to create a Rest API Spring Data JPA dependency to use Hibernate PostgreSQL Driver dependency to connect to Postgres Then you should select the folder where you want to create the project select a folder and clock on Generate into this folder Now click the button at the bottom right of the screen to open the project in a new window We are done with the creation of the project Now we can start coding the application ‍Code the applicationThere are two steps to code the application Configure the database connectionCreate the User entity the UserRepository and the UserService Configure the database connectionOpen the application properties file in the src main resources folder it should be empty Add the following content spring datasource url DB URL spring datasource username PG USER spring datasource password PG PASSWORD spring jpa hibernate ddl auto updatespring jpa properties hibernate dialect org hibernate dialect PostgreSQLDialectExplanation spring datasource url the url of the database spring datasource username the username of the database spring datasource password the password of the database spring jpa hibernate ddl auto the way we want to update the database We will use update to create the tables if they don t exist and update them if they do spring jpa properties hibernate dialect the dialect of the database We will use PostgreSQL We will use the environment variables later and it will be a bit tricky Create the resource structureCreate a new folder called users in the demo folder or whatever you named your project Create three files in this folder User ktUserRepository ktUserController ktYour folder shold look like this Now let s populate the files User ktThe User kt file will contain the entity of the user Open the file and add the following content change the package name to match your project package com example demo usersimport jakarta persistence Entity Table name users data class User Id GeneratedValue strategy GenerationType IDENTITY val id Long val name String val email String Explanation Entity decorator to tell Hibernate that this class is an entity Table decorator to tell Hibernate the name of the table in the database users in this case Id decorator to tell Hibernate that this field is the primary key GeneratedValue decorator to auto increment the id whenever we create a new user An user will have three fields id name and email UserRepository ktThe UserRepository kt file will contain the interface to interact with the database Open the file UserRepository kt and add the following content change the package name if you used a different one package com example demo usersimport org springframework data repository CrudRepositoryinterface UserRepository CrudRepository lt User Long gt Explanation interface UserRepository the interface that will contain the methods to interact with the database It will be of type CrudRepository This is a generic interface that contains the basic methods to interact with the database It will have a type User and an Int the type of the primary key UserController ktThe UserController kt file will contain the Rest API Open the file UserController kt and add the following content change the package name if you used a different one package com example demo usersimport org springframework beans factory annotation Autowiredimport org springframework http HttpStatusimport org springframework http ResponseEntityimport org springframework web bind annotation RestController RequestMapping api users class UserController Autowired private val userRepository UserRepository GetMapping fun getAllUsers List lt User gt userRepository findAll toList PostMapping fun createUser RequestBody user User ResponseEntity lt User gt val createdUser userRepository save user return ResponseEntity createdUser HttpStatus CREATED GetMapping id fun getUserById PathVariable id userId Int ResponseEntity lt User gt val user userRepository findById userId orElse null return if user null ResponseEntity user HttpStatus OK else ResponseEntity HttpStatus NOT FOUND PutMapping id fun updateUserById PathVariable id userId Int RequestBody user User ResponseEntity lt User gt val existingUser userRepository findById userId orElse null if existingUser null return ResponseEntity HttpStatus NOT FOUND val updatedUser existingUser copy name user name email user email userRepository save updatedUser return ResponseEntity updatedUser HttpStatus OK DeleteMapping id fun deleteUserById PathVariable id userId Int ResponseEntity lt User gt if userRepository existsById userId return ResponseEntity HttpStatus NOT FOUND userRepository deleteById userId return ResponseEntity HttpStatus NO CONTENT Explanation RestController decorator for Spring RequestMapping to tell Spring the base url of the Rest API In this case it will be api users Autowired to tell Spring to inject the UserRepository Then we have the five methods to interact with the database getAllUsers to get all the users createUser to create a new user getUserById to get a user by id updateUserById to update a user by id deleteUserById to delete a user by id Our Rest API is ready to get Dockerized DockerizationNow the fun part Dockerization In this project I decided to build the Kotlin project directly inside the Docker image Another option would be to build the project locally and then copy the jar file to the Docker image DockerfileCreate a new file called Dockerfile in the root of the project Add the following content explanation is in the comments Start with a base image containing Java runtimeFROM amazoncorretto alpine jdk Create a directoryWORKDIR app Copy all the files from the current directory to the imageCOPY build the project avoiding testsRUN gradlew clean build x test Expose port EXPOSE Run the jar fileCMD java jar build libs demo SNAPSHOT jar ️The unusual part here are the ARG lines They are used to pass arguments to the Docker image They are defined in the docker compose yml file docker compose ymlLet s create the docker compose yml file at the root of the project Add the following content explanation is in the comments version services kotlinapp container name kotlinapp build this is the build context context dockerfile Dockerfile args these are the arguments that are passed to the dockerfile DB URL DB URL PG USER PG USER PG PASSWORD PG PASSWORD ports port exposed to the host machine environment these are the environment variables that are passed to the dockerfile DB URL jdbc postgresql db postgres PG USER postgres PG PASSWORD postgres depends on this is the dependency on the db service db db container name db image postgres environment environment variables for the Postgres container POSTGRES USER postgres POSTGRES PASSWORD postgres POSTGRES DB postgres ports port exposed to the host machine volumes volume used to persist data pgdata var lib postgresql datavolumes volume creation pgdata Build and run the projectNow we can build and run the project Run the Postgres databaseFirst we need to run the Postgres database docker compose up d dbTo check if it s running you can use the following command docker compose logsand thedocker ps aIf the output is like the following one you are good to go You should see something like that you are good to go As additional test you can connect to the database using TablePlus or any other database client You can create a new connection using the following parameters Host localhostPort Database postgresUser postgresPassword postgresThen click on the Test Connection button The database is connected but emptt for now ️Build the projectLet s build the project inside the Docker image docker compose buildAnd the output should be something like that ‍ ️Run the projectNow we can run the project docker compose up kotlinappAnd this should be the output Test the projectNow we can test the project We will use Postman but you can use any other tool Create a userTo create a new user make a POST request to localhost api users The body of the request should be like that name aaa email aaa mail The output should be something like that Let s create two more users make a POST request to localhost api users name bbb email bbb mail name ccc email ccc mail Get all usersTo get all users make a GET request to localhost api users The output should be something like that Get a userTo get a user make a GET request to localhost api users id For example GET request to localhost api users The output should be something like that Update a userTo update a user make a PUT request to localhost api users id For example PUT request to localhost api users The body of the request should be like that name Francesco email francesco mail The output should be something like that Delete a userTo delete a user make a DELETE request to localhost api users id For example DELETE request to localhost api users On Postman you should see something like that Final testAs a final test we can check the database using TablePlus ConclusionWe made it We have built a CRUD rest API in Kotlin using Spring bootGradleHibernatePostgresDockerDocker ComposeIf you prefer a video version All the code is available in the GitHub repository link in the video description That s all If you have any question drop a comment below Francesco 2023-04-11 12:19:24
海外TECH DEV Community How Do Smart Home Automation Systems Work? https://dev.to/invent_colabs/how-do-smart-home-automation-systems-work-1j5f How Do Smart Home Automation Systems Work You ve probably heard of a smart home automation system by now Maybe you ve even seen one in action These systems are designed to control various devices and appliances in your home with the touch of a button or a voice command But how do they work And what can you do with them In this article we ll walk you through how smart home automation systems work and give examples of what you can do with them or with the help of a home management app development company What Is Home Automation Home automation is the term used to describe the process of automating the tasks traditionally done by humans in the home This includes turning on lights locking doors and adjusting the thermostat Smart home automation system takes this a step further by adding features that allow you to control your home using a computer or mobile device You can use these devices to activate or deactivate home automation tasks or to control more complex systems like security cameras and home theatres Working Process of Home Automation System Your home automation system will work by connecting to your home s Wi Fi network Once it s set up you ll be able to control all of your devices from one central location The first thing you ll need to do is install the automation hub This is the central unit that will control all of the devices in your home It attaches to your home s Wi Fi network and communicates with all other devices connected to your home automation system Once the hub is installed you can start adding devices The easiest way to do this is by using a home management app Just open the app and add as many or as few devices as you like and you can always change them later if you want Components of Home Automation SystemYour home automation system will comprise three main components the hub the sensors and the devices The hub is the brains of the operation The central control unit processes all of the data from the sensors and sends commands to the devices It s usually a small sleek box that you can hide away in a corner or on a shelf The sensors are what collect data about what s happening in your home They can monitor things like motion temperature or humidity levels or they can be activated by you to trigger actions like turning on a light or playing music The devices are the actual pieces of hardware that you control with your home automation system This could be anything from a light switch to a thermostat to a TV remote Features of Home Automation SystemHome automation systems are designed to make your home more comfortable and secure They allow you to control and monitor lighting temperature security audio visual devices and more from a central location These systems are helpful for those who want to save energy and money and those who frequently have mobility issues or are away from home Some popular features include thermostat control security system integration lighting control and automated scheduling Regarding thermostat control you can adjust the temperature in certain rooms based on the occupancy level or different times of the day It s also possible to have your system turn on lights when you enter a room or dim turn off lights when you leave For home security purposes sensors can be placed throughout your home that detects motion or changes in air pressure levels You will be alerted should anything suspicious occur while you are away Lastly automated scheduling allows you to create a routine that turns on off appliances at specific times of the day without having to do it yourself each time manually This feature comes in handy if you forget things like turning off electronics at night or leaving the house Setting Up a Smart Home SystemOne of the advantages of a smart home automation system is the flexibility it provides Setting up the system is a relatively simple task and you can customize the settings to your liking Here s how it works First you ll need to install the main components This includes a hub that acts as the brain of your smart home It typically comes with sensors and devices for temperature control or lighting control You also need to connect this hub to your existing Wi Fi network so that you can control everything remotely Then you add other devices such as switches motion detectors doorbells cameras and more Once these are set up they connect to your hub and offer additional functionality like voice commands and automation triggers Finally you can start programming custom rules so that each device performs its tasks at specific times or when certain conditions are met such as turning on lights when motion is detected in a room As you can see setting up a smart home system is not all that complicated and can be done in just a few steps Working With a Home Management App Development Company and ServicesOnce you re ready to start you ll need to find a home management app development company These people create custom systems and applications specifically designed to meet your needs It s important to look for a company that understands your individual needs has a strong reputation and comes highly recommended Make sure they can provide services like installation maintenance network integration and system customization according to your requirements Working with a home automation app development company could be beneficial if you opt for a cloud based system since it can give you access to their storage servers This way all your data will be safe and secure Once you find the right development team they ll work with you to ensure everything is up and running the way it should They can help you configure settings ensure all devices are connected properly and test functionality before launching your system Key TakeawayIf you re thinking of installing a smart home system in your own home now you know a little bit more about what goes on behind the scenes Of course there s a lot more to these systems than meets the eye and if you re interested in learning more we suggest talking to professional home management app development services They ll be able to answer any questions you have and help you make the best decisions for your home Explore More How to Develop House Cleaning Service App in Dubai 2023-04-11 12:00:29
Apple AppleInsider - Frontpage News Inside Apple Upper East Side: An Apple Store mixed with timely architecture https://appleinsider.com/articles/23/04/11/inside-apple-upper-east-side-an-apple-store-mixed-with-timely-architecture?utm_medium=rss Inside Apple Upper East Side An Apple Store mixed with timely architectureThere is a building that looks like an old fashioned bank on Madison Ave in the Upper East Side of New York The biggest giveaway that it is an Apple Store is a flag fluttering in the breeze outside Here s what the inside of Apple Upper East Side looks like Apple Upper East Side exteriorApple Upper East Side keeps the traditional architecture of the previously placed bank from the s and reinforces any areas of sections that have seen wear and tear due to age and time Read more 2023-04-11 12:47:51
Apple AppleInsider - Frontpage News Apple's AirPods maker has been cut out of AR headset assembly https://appleinsider.com/articles/23/04/11/apples-airpods-maker-has-been-cut-out-of-ar-headset-assembly?utm_medium=rss Apple x s AirPods maker has been cut out of AR headset assemblyApple s production partner for the long rumored VR and AR headset has changed with long time AirPods assembler Pegatron out in favor of Luxshare A render of a potential Apple headset AppleInsider Apple was expected to introduce its AR VR headset during WWDC but at the end of March it had reportedly pushed back the mass production schedule by one or two months It now seems that the delay is due to changes in assembly partner Read more 2023-04-11 12:29:55
Apple AppleInsider - Frontpage News Apple's Smart Ring may be able to spot when snap your fingers https://appleinsider.com/articles/23/04/11/apples-smart-ring-may-be-able-to-spot-when-snap-your-fingers?utm_medium=rss Apple x s Smart Ring may be able to spot when snap your fingersSkin to skin detection could mean a future Apple Smart Ring can be controlled with the swipe of a thumb plus it could spot when you re playing rock paper scissors Genki s Wave for Work smart ringApart from a joke that went viral about Apple s smart rings detecting infidelity this is one potential device that hasn t received much attention from the rumor mill lately Yet Apple has been researching smart rings plus accessories for it ーand now it s been granted another related patent Read more 2023-04-11 12:01:12
Cisco Cisco Blog 2023 #WeAreCisco #LoveWhereYouWork Contest https://feedpress.me/link/23532/16065884/2023-wearecisco-lovewhereyouwork-contest categories 2023-04-11 12:00:52
医療系 医療介護 CBnews 福祉用具貸与の契約、押印不要-厚労省が再周知 https://www.cbnews.jp/news/entry/20230411200611 介護保険 2023-04-11 23:00:00
ニュース BBC News - Home CBI boss sacked over misconduct claims https://www.bbc.co.uk/news/business-65238672?at_medium=RSS&at_campaign=KARANGA business 2023-04-11 12:33:45
ニュース BBC News - Home Huge security operation for Joe Biden visit to Belfast https://www.bbc.co.uk/news/uk-northern-ireland-65234789?at_medium=RSS&at_campaign=KARANGA rishi 2023-04-11 12:36:02
ニュース BBC News - Home Anne Keast-Butler to be first female director at GCHQ https://www.bbc.co.uk/news/uk-65240759?at_medium=RSS&at_campaign=KARANGA butler 2023-04-11 12:36:01
ニュース BBC News - Home Charley Bates: Man found guilty of Radstock teen's murder https://www.bbc.co.uk/news/uk-england-somerset-65200239?at_medium=RSS&at_campaign=KARANGA bates 2023-04-11 12:10:33
ニュース BBC News - Home Nicola Bulley: Police divers carry out work for coroner in River Wyre https://www.bbc.co.uk/news/uk-england-lancashire-65238743?at_medium=RSS&at_campaign=KARANGA mother 2023-04-11 12:25:58
ニュース BBC News - Home Interest rates likely to fall to pre-Covid levels, IMF predicts https://www.bbc.co.uk/news/business-65237286?at_medium=RSS&at_campaign=KARANGA inflation 2023-04-11 12:41:22
ニュース BBC News - Home Millie Bobby Brown announces she's engaged to Jake Bongiovi https://www.bbc.co.uk/news/entertainment-arts-65240158?at_medium=RSS&at_campaign=KARANGA bobby 2023-04-11 12:12:36
ニュース BBC News - Home Good Friday Agreement: Is Biden Northern Ireland trip a missed opportunity? https://www.bbc.co.uk/news/uk-northern-ireland-65235507?at_medium=RSS&at_campaign=KARANGA stormont 2023-04-11 12:18:34

コメント

このブログの人気の投稿

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