IT |
気になる、記になる… |
Apple、Apple IDの管理ページのデザインを刷新 |
https://taisy0.com/2021/11/05/148375.html
|
個人情報 |
2021-11-04 22:41:57 |
TECH |
Engadget Japanese |
日本製の盗聴器も検知できるように進化した、盗聴・盗撮器発見機 GRAY FOXX 『GF-7』 |
https://japanese.engadget.com/gray-foxx-gf-7-223553209.html
|
有名通販サイトなどで売っている海外製の発見機についても、日本製の盗聴器には反応しません。 |
2021-11-04 22:35:53 |
IT |
ITmedia 総合記事一覧 |
[ITmedia News] Google、韓国で代替アプリ内課金システム提示を可能に 「反Google法」成立を受け |
https://www.itmedia.co.jp/news/articles/2111/05/news067.html
|
google |
2021-11-05 07:41:00 |
Program |
[全てのタグ]の新着質問一覧|teratail(テラテイル) |
twitterソーシャルログインをキャンセルするとエラーになる |
https://teratail.com/questions/367829?rss=all
|
twitterソーシャルログインをキャンセルするとエラーになるrailsWebアプリにtwitterによるソーシャルログイン機能を実装しました。 |
2021-11-05 07:28:15 |
海外TECH |
Ars Technica |
7 good deals on fitness tech from this week’s early Black Friday sales |
https://arstechnica.com/?p=1810047
|
prices |
2021-11-04 22:05:10 |
海外TECH |
MakeUseOf |
"Online Service Experience Packs" Are Coming to Windows 11: What We Know So Far |
https://www.makeuseof.com/online-service-experience-packs-windows-11/
|
amp quot Online Service Experience Packs amp quot Are Coming to Windows What We Know So FarOnline Service Experience Pack is another new method to update your Windows Here s everything you need to know |
2021-11-04 22:50:12 |
海外TECH |
DEV Community |
MongoDB through Mongoose... |
https://dev.to/roopalisingh/mongodb-through-mongoose-3fbd
|
MongoDB through Mongoose Hi there In this guide we will be learning how to integrate MongoDB in your project using Mongoose We will be assuming that you have already setup your node js app or the backend of your app MongoDB is an open source document database and leading NoSQL database Mongoose is an Object Data Modelling ODM library for MongoDB and Node js Instead of connecting our node app directly to MongoDB we will use Mongoose Fasten your seat belt cause we are about to start our journey For this guide we will be storing user info in our database If you re working on complete MERN stack then all of these steps are meant to be perform in the backend of your app Start with installing Mongoose npm install mongoose Create a file userModel js In this file we will create a userSchema A schema is the structure of the database import mongoose from mongoose const userSchema new mongoose Schema It atomatically assigns a unique id so we don t need to define another id for it firstName type String required true lastName type String required false email type String required true unique true pin type Number required true timestamps true Timestamp of creating a record and last update of record Now we will call mongoose model on our schema A mongoose model is responsible for creating querying and reading documents from the mongoDB database const User mongoose model User userSchema export default User Your userModel js file should look like this now import mongoose from mongoose const userSchema new mongoose Schema firstName type String required true lastName type String required false email type String required true unique true pin type Number required true timestamps true const User mongoose model User userSchema export default User Now lets create another file named userRouter js to define our API routes for performing CRUD operations on it import express from express import User from userModel js express Router gt a function to make code Modular instead of creating all routes in server js we can define multiple files to have our routers const userRouter express Router nature of mongoose operation is async so we will define the async functions here export default userRouter Before defining our routes in the userRouter js we will first connect the mongoose to the database For this we need to add a few lines of code in the server js file import express from express import mongoose from mongoose mongoose connect process env MONGODB URL mongodb localhost your app name useNewUrlParser true useUnifiedTopology true useCreateIndex true Just two more lines in the server js to connect server js to userRouter js import userRouter from userRouter js app use api users userRouter The server js file should look like this now import express from express import dotenv from dotenv npm install dotenvimport mongoose from mongoose import userRouter from router userRouter js dotenv config to use env file contentconst app express app use express json app use express urlencoded extended true To connect mongoose to mongoDB databasemongoose connect process env MONGODB URL mongodb localhost your app name useNewUrlParser true useUnifiedTopology true useCreateIndex true To connect server js to userRouter jsapp use api users userRouter listen commandconst port process env PORT app listen port gt console log Serve at http localhost port So now everything is connected to everything It s time to go back to userRouter js file and define the routes to perform the CRUD operations import express from express import User from userModel js const userRouter express Router to read fetch all users userRouter get seed async request response gt there is no condition defined in find so it will fetch all users const allUsers await User find response send allUsers to create new user userRouter post register async request response gt A request body is data sent by the client to your API const newUser new User firstName request body firstName lastName request body lastName email request body email pin request body pin const createdUser await newUser save response send createdUser to update existing user first we need to find that user and then update its info userRouter post update async request response gt const editUser await User find email request body email When there are no matches find returns So we could not use the condition if editUser if editUser length response status send message No User Found else editUser firstName request body firstName editUser lastName request body lastName editUser pin request body pin const updatedUser await editUser save response status send updatedUser to delete a user first we need to find that user and then delete it userRouter delete delete async request response gt const deleteUser await User find email request body email if deleteUser length response status send message No User Found else const userDeleted await deleteUser deleteOne response status send message User removed export default userRouter We have successfully integrated Mongoose in our webapp Now we just need to make a request to our server For eg To fetch all users make a get request to api users seed There are several other functions with these such as sort findById findOne findByIdAndUpdate deleteMany updateMany and many more You could read more on this from Mongoose Docs |
2021-11-04 22:21:28 |
海外TECH |
DEV Community |
How to Use Liquibase to Update the Schema of Your JHipster Application |
https://dev.to/entando/how-to-use-liquibase-to-update-the-schema-of-your-jhipster-application-1cm3
|
How to Use Liquibase to Update the Schema of Your JHipster ApplicationHey my fellow developers Liquibase is an open source solution that helps you track version and deploy database changes It adds version control for changes to your database schema makes database upgrades repeatable across environments and supports rollbacks so you can undo changes when it s needed It s the solution chosen by JHipster as well as Entando to manage database updates In this blog post we ll explore the Liquibase architecture and how we can incrementally upgrade the database schema for our own JHipster and Entando applications Liquibase ArchitectureLiquibase defines a master file aka master xml in JHipster as well as changelog files that represent the incremental updates to your database schema A changelog file contains a changeSet e g add edit or delete a table while the master file defines the order in which the database updates are to be run Here are some examples of what a Liquibase architecture looks like from the official documentation The directory structure com example db changelog db changelog master xml db changelog xml db changelog xml db changelog xml DatabasePool java AbstractDAO java The master file lt xml version encoding UTF gt lt databaseChangeLog xmlns xmlns xsi xsi schemaLocation gt lt include file com example db changelog db changelog xml gt lt include file com example db changelog db changelog xml gt lt include file com example db changelog db changelog xml gt lt databaseChangeLog gt A sample changelog lt xml version encoding UTF gt lt databaseChangeLog xmlns xmlns xsi xsi schemaLocation gt lt changeSet author authorName id changelog gt lt createTable tableName TablesAndTables gt lt column name COLUMN type TEXT gt lt constraints nullable true primaryKey false unique false gt lt column gt lt createTable gt lt changeSet gt lt databaseChangeLog gt Your Liquibase survival kitEvery time you start your application Liquibase checks if it is synchronized with the latest configuration in your master file and deploys the new changesets if it s not up to date Liquibase uses the checksums of the previous changelogs to ensure their integrity and fires an alert if they have changed Here are some tips to follow to ensure your database upgrades go smoothly Avoid modifying a changelogYou should not change the content of a changelog once it has been executed on a database Instead perform a rollback or add a new changelog If the validation fails your database will not be able to start correctly Keep database changes in orderThe master file executes the changelogs in the order they are defined So if you have a changelog that modifies a table created in a previous changelog be sure to respect the order to have the proper plan executed It s recommended to keep a clear and maintainable file Keep changesets smallThe changeset is contained in a changelog and defines actions to perform in the database e g create drop alter tables etc By default JHipster creates one changeset per entity This is a good pattern to follow unless there s a reason to make updates to multiple tables in a single changelog Avoid creating BIG one shot changesets How to Update Your Schema in JHipster JHipster makes it simple and intuitive to generate entities using JDL Studio or via the command line Every time a new entity is created a new changeset is generated and the master file is updated However modifying an existing entity will simply update the original changelog If this changeset has already been run we break rule Consolidate schema changes in a single changesetWhen adding a new database entity it s quite common during local development to make several changes to the data model before arriving at the final schema In this case the easiest approach is to make updates to the entity as needed and only commit the final changelog that s generated once you ve finished development However a changelog that has already been applied to a given environment cannot be modified without risking potential data loss or other breaking changes The solution is to generate incremental changes using Maven and Gradle plugins Generate incremental changesets with pluginsMaven and Gradle plugins combined with the Liquibase Hibernate plugin can be used to generate incremental changesets without breaking rule JHipster provides the configuration to make it work out of the box with most databases but you may need to modify it in some circumstances Check the official guide for more information Below we ll cover a sample app from Entando that s using an H database Maven configuration lt plugin gt lt groupId gt org liquibase lt groupId gt lt artifactId gt liquibase maven plugin lt artifactId gt lt version gt liquibase version lt version gt lt configuration gt lt changeLogFile gt project basedir src main resources config liquibase master xml lt changeLogFile gt lt diffChangeLogFile gt project basedir src main resources config liquibase changelog maven build timestamp changelog xml lt diffChangeLogFile gt lt driver gt org h Driver lt driver gt lt url gt jdbc h file project build directory hdb db sample lt url gt lt defaultSchemaName gt lt defaultSchemaName gt lt username gt sample lt username gt lt password gt lt password gt lt referenceUrl gt hibernate spring com entando sample domain dialect org hibernate dialect HDialect amp amp hibernate physical naming strategy org springframework boot orm jpa hibernate SpringPhysicalNamingStrategy amp amp hibernate implicit naming strategy org springframework boot orm jpa hibernate SpringImplicitNamingStrategy lt referenceUrl gt lt verbose gt true lt verbose gt lt logging gt debug lt logging gt lt contexts gt test lt contexts gt lt diffExcludeObjects gt oauth access token oauth approvals oauth client details oauth client token oauth code oauth refresh token lt diffExcludeObjects gt lt configuration gt WorkflowUpdate your entity with JHipster using the command jhipster entity yourEntityNameDiscard the changes made by JHipster in the Entity changelog git checkout ENTITY CHANGELOG xmlRun mvnw liquibase diff for Maven or gradlew liquibaseDiffChangelog PrunList diffLog for GradleA new changelog will be generated that contains the diff between your updated Entity and the original database table In my application I have added a customer entity with a field “name Later on I want to add an “age field so I update it with JHipster jhipster entity customer The changelog is now updated with the “age field but because my first version has already been run against my database I will break rule I ll need to revert this file and replace it with the original version Next I can run mvnw liquibase diff I now have an incremental changelog that contains just the updates that I made Now I can add this new changelog to the master xml file Note This could not work if you re using an H database However you can easily create incremental changelogs manually by extracting the generated XML code from the changelog generated by JHipster Incremental changelogs in JHipster With the release of JHipster the incremental changelog option allows us to generate a separate changelog when modifying an Entity This means we don t need to rollback the original changelog anymore and we can generate incremental changelogs for our entities without breaking rule You can run JHipster with the incremental option jhipster incremental changelog It also works when you import a JDL e g jhipster jdl app jdl incremental changelog with entities You can check the “incrementalChangelog entry is set to “true in yo rc json Then create the entity as usual with jhipster entity customer Finally update the entity by running the same command to add a new field Two new changelogs are generated one for updating the entity and the second for injecting sample data for development Incremental changelogs work well when you don t need to execute a lot of changes for a given entity but multiplying the number of changelogs can lead to complex change management If there s no risk of breaking your existing database consider merging changelogs to simplify your project structure ConclusionUpgrading your database schema can be tricky especially when working with multiple environments In today s blog we learned how Liquibase helps you version control updates to your schema and how to generate incremental changesets for entities generated by JHipster Entando is an application composition platform for Kubernetes that adds support for generating micro frontends along with JHipster microservices Entando currently supports JHipster and will be updated to JHipster in the next Entando release |
2021-11-04 22:05:26 |
海外TECH |
Engadget |
Alexa now allows you to move music among different devices with your voice |
https://www.engadget.com/amazon-october-monthly-update-224116039.html?src=rss
|
Alexa now allows you to move music among different devices with your voiceEvery month Amazon pushes a slate of updates to its Alexa enabled devices One of the more noteworthy features Amazon added this month is the ability to move music between Echo devices using your voice If you want to do so between different speakers in your home say “Alexa pause to the one currently playing music and then say “Alexa resume music here to the device where you want to move your tunes to The feature also works with Echo Buds and Echo Auto allowing you to take your music on the go If you re a football fan with an Echo Show another new feature allows you to ask Alexa to play the Two Minute drill an NFL pregame show that will offer expert analysis on the next match your favorite team is about to play Amazon will release new episodes two days before a game Meanwhile Fire TV device owners now have access to TikTok You can say “Alexa play TikTok to open the app Lastly Amazon has added a new automotive hub within the Alexa app that will detail how you can use the digital assistant in your car Available in the US the interface allows you to see if your car can work with Alexa Additionally it will point you to automotive skills All told they re minor additions individually but should make Alexa more helpful to those who use the digital assistant every day |
2021-11-04 22:41:16 |
海外TECH |
CodeProject Latest Articles |
Event Sourcing on Azure Functions |
https://www.codeproject.com/Articles/5205463/Event-Sourcing-on-Azure-Functions
|
functions |
2021-11-04 22:49:00 |
金融 |
金融総合:経済レポート一覧 |
FX Daily(11月3日)~ドル円、FOMC後も114円絡みで反応は限定的 |
http://www3.keizaireport.com/report.php/RID/473874/?rss
|
fxdaily |
2021-11-05 00:00:00 |
金融 |
金融総合:経済レポート一覧 |
FRBのパウエル議長の記者会見~Maximum employment:井上哲也のReview on Central Banking |
http://www3.keizaireport.com/report.php/RID/473875/?rss
|
maximumemployment |
2021-11-05 00:00:00 |
金融 |
金融総合:経済レポート一覧 |
FRBは利上げを急がないが、物価見通しの不確実性は高まる方向:木内登英のGlobal Economy & Policy Insight |
http://www3.keizaireport.com/report.php/RID/473876/?rss
|
lobaleconomypolicyinsight |
2021-11-05 00:00:00 |
金融 |
金融総合:経済レポート一覧 |
金融機関の中途半端なアライアンスを回避するためには |
http://www3.keizaireport.com/report.php/RID/473879/?rss
|
中途半端 |
2021-11-05 00:00:00 |
金融 |
金融総合:経済レポート一覧 |
FOMC 想定通りテーパリングの実施を公表~テーパリングは2022年中頃完了、次の焦点は2022年下半期の利上げ:米国 |
http://www3.keizaireport.com/report.php/RID/473880/?rss
|
大和総研 |
2021-11-05 00:00:00 |
金融 |
金融総合:経済レポート一覧 |
高インフレは「一時的」~それでも高まる22年の利上げ開始シナリオ:Market Flash |
http://www3.keizaireport.com/report.php/RID/473882/?rss
|
marketflash |
2021-11-05 00:00:00 |
金融 |
金融総合:経済レポート一覧 |
米国 予想通りFRBは11月からのテーパリング開始を決定(21年11月2、3日FOMC)~利上げに関してFRB議長は辛抱強くなれると強調:Fed Watching |
http://www3.keizaireport.com/report.php/RID/473883/?rss
|
fedwatching |
2021-11-05 00:00:00 |
金融 |
金融総合:経済レポート一覧 |
日本版「私の年金」の実現を期待:ニッセイ年金ストラテジー |
http://www3.keizaireport.com/report.php/RID/473886/?rss
|
研究所 |
2021-11-05 00:00:00 |
金融 |
金融総合:経済レポート一覧 |
エンダウメントの運用モデルは成功したのか:ニッセイ年金ストラテジー |
http://www3.keizaireport.com/report.php/RID/473888/?rss
|
運用 |
2021-11-05 00:00:00 |
金融 |
金融総合:経済レポート一覧 |
Discriminatory versus uniform auctions:Evidence from JGB market |
http://www3.keizaireport.com/report.php/RID/473896/?rss
|
forma |
2021-11-05 00:00:00 |
金融 |
金融総合:経済レポート一覧 |
マーケットデータシート:主要市場動向 期間(2020年1月~2021年10月) |
http://www3.keizaireport.com/report.php/RID/473914/?rss
|
国際金融情報センター |
2021-11-05 00:00:00 |
金融 |
金融総合:経済レポート一覧 |
マーケットデータシート:政策金利(日本・米国・ユーロエリア・英国の政策金利の推移) |
http://www3.keizaireport.com/report.php/RID/473915/?rss
|
国際金融情報センター |
2021-11-05 00:00:00 |
金融 |
金融総合:経済レポート一覧 |
マーケットデータシート:主要商品相場における直近の価格推移 |
http://www3.keizaireport.com/report.php/RID/473916/?rss
|
国際金融情報センター |
2021-11-05 00:00:00 |
金融 |
金融総合:経済レポート一覧 |
組込型金融と決済領域における新たな動向(Buy Now,Pay Later・クレジットカード発行) |
http://www3.keizaireport.com/report.php/RID/473918/?rss
|
buynowpaylater |
2021-11-05 00:00:00 |
金融 |
金融総合:経済レポート一覧 |
再び国際金融センターの中心へ 日本の発展・巻き返しに必要な施策とは |
http://www3.keizaireport.com/report.php/RID/473921/?rss
|
巻き返し |
2021-11-05 00:00:00 |
金融 |
金融総合:経済レポート一覧 |
J-REIT不動産価格指数(2021年10月分) |
http://www3.keizaireport.com/report.php/RID/473924/?rss
|
jreit |
2021-11-05 00:00:00 |
金融 |
金融総合:経済レポート一覧 |
FOMC(11月2・3日)の注目点~11月後半からのテーパリング決定、インフレは依然「一時的」:マーケットレポート |
http://www3.keizaireport.com/report.php/RID/473930/?rss
|
発表 |
2021-11-05 00:00:00 |
金融 |
金融総合:経済レポート一覧 |
特別レポート| 米FRB、テーパリング(国債等の資産買取策縮小)を開始へ |
http://www3.keizaireport.com/report.php/RID/473931/?rss
|
三菱ufj |
2021-11-05 00:00:00 |
金融 |
金融総合:経済レポート一覧 |
【石黒英之のMarket Navi】テーパリング決定後も株高基調は継続へ~低金利長期化観測もプラスに... |
http://www3.keizaireport.com/report.php/RID/473932/?rss
|
marketnavi |
2021-11-05 00:00:00 |
金融 |
金融総合:経済レポート一覧 |
【エコシル】FRB、量的緩和縮小、利上げは時期尚早 |
http://www3.keizaireport.com/report.php/RID/473933/?rss
|
野村アセットマネジメント |
2021-11-05 00:00:00 |
金融 |
金融総合:経済レポート一覧 |
【注目検索キーワード】デジタルシフト |
http://search.keizaireport.com/search.php/-/keyword=デジタルシフト/?rss
|
検索キーワード |
2021-11-05 00:00:00 |
金融 |
金融総合:経済レポート一覧 |
【お薦め書籍】なぜウチの会社は変われないんだ! と悩んだら読む 大企業ハック大全 |
https://www.amazon.co.jp/exec/obidos/ASIN/4478114196/keizaireport-22/
|
選抜 |
2021-11-05 00:00:00 |
ニュース |
BBC News - Home |
David Fuller: Man admits 1987 murders and abusing corpses |
https://www.bbc.co.uk/news/uk-england-kent-59167648?at_medium=RSS&at_campaign=KARANGA
|
admits |
2021-11-04 22:24:04 |
ニュース |
BBC News - Home |
Lionel Blair: Veteran TV presenter and dancer dies at 92 |
https://www.bbc.co.uk/news/entertainment-arts-59171576?at_medium=RSS&at_campaign=KARANGA
|
presenter |
2021-11-04 22:20:32 |
ニュース |
BBC News - Home |
University strikes: Academics at 37 institutions support action |
https://www.bbc.co.uk/news/education-59171771?at_medium=RSS&at_campaign=KARANGA
|
action |
2021-11-04 22:37:11 |
ニュース |
BBC News - Home |
The double murderer who sexually abused the dead for decades |
https://www.bbc.co.uk/news/uk-58250043?at_medium=RSS&at_campaign=KARANGA
|
caroline |
2021-11-04 22:24:28 |
ニュース |
BBC News - Home |
Five goals and three red cards - Spurs edge thriller in Conte's first game |
https://www.bbc.co.uk/sport/football/59154773?at_medium=RSS&at_campaign=KARANGA
|
vitesse |
2021-11-04 22:13:55 |
ニュース |
BBC News - Home |
Celtic boost Europa League hopes with dramatic win at Ferencvaros |
https://www.bbc.co.uk/sport/football/59089559?at_medium=RSS&at_campaign=KARANGA
|
Celtic boost Europa League hopes with dramatic win at FerencvarosCeltic significantly strengthen their hopes of reaching the Europa League knockout rounds with a superb victory against Ferencvaros in Budapest |
2021-11-04 22:08:41 |
ニュース |
BBC News - Home |
Vardy misses penalty as Leicester held by Spartak Moscow |
https://www.bbc.co.uk/sport/football/59154401?at_medium=RSS&at_campaign=KARANGA
|
group |
2021-11-04 22:18:53 |
ビジネス |
ダイヤモンド・オンライン - 新着記事 |
AT&Tとベライゾン、5G運用開始を延期 米航空当局が懸念 - WSJ発 |
https://diamond.jp/articles/-/286729
|
atampampt |
2021-11-05 07:19:00 |
ビジネス |
ダイヤモンド・オンライン - 新着記事 |
グーグル、米取引所CMEに1140億円出資 クラウド移行で契約 - WSJ発 |
https://diamond.jp/articles/-/286731
|
移行 |
2021-11-05 07:08:00 |
ビジネス |
ダイヤモンド・オンライン - 新着記事 |
気候変動対策で年1.3兆ドル資金支援を 中印ら途上国が要求 - WSJ発 |
https://diamond.jp/articles/-/286732
|
気候変動 |
2021-11-05 07:07:00 |
サブカルネタ |
ラーブロ |
麺屋 九兵衛。。 |
http://feedproxy.google.com/~r/rablo/~3/YOqq_bMcMX0/single_feed.php
|
堺筋本町 |
2021-11-04 22:03:26 |
北海道 |
北海道新聞 |
伝統色に見る美 |
https://www.hokkaido-np.co.jp/article/608087/
|
雪化粧 |
2021-11-05 07:06:55 |
北海道 |
北海道新聞 |
RCEP発効へ 農業への影響見極めよ |
https://www.hokkaido-np.co.jp/article/608076/
|
東アジア |
2021-11-05 07:04:36 |
ニュース |
THE BRIDGE |
Mesh for Teams:メタバースと新たなミーティング体験に対するMicrosoftの答え(2) |
http://feedproxy.google.com/~r/SdJapan/~3/JyKe-LbNQ0g/mesh-for-teams-is-microsofts-metaverse-for-meetings-the-last-part
|
MeshforTeamsメタバースと新たなミーティング体験に対するMicrosoftの答え前回からのつづきMicrosoftやFacebook訳注旧社名・新社名はMetaなどの大手企業は、人々がオンライン上で出会い、働き、遊び、生活する、相互に接続されたコミュニティの仮想世界である「メタバース」を追い求めている。 |
2021-11-04 22:45:19 |
ニュース |
THE BRIDGE |
Mesh for Teams:メタバースと新たなミーティング体験に対するMicrosoftの答え(1) |
http://feedproxy.google.com/~r/SdJapan/~3/CuChuaLI0_8/mesh-for-teams-is-microsofts-metaverse-for-meetings-the-first-part
|
MeshforTeamsメタバースと新たなミーティング体験に対するMicrosoftの答えFacebook訳注旧社名・新社名はMetaがメタバースの未来を明確にした週間後、Microsoftは月の開発者イベント「Ignite」で、MicrosoftMeshforTeamsにおけるARVR拡張現実と仮想現実ミーティングのビジョンを提示した。 |
2021-11-04 22:30:55 |
コメント
コメントを投稿