IT |
気になる、記になる… |
ソニー、「LinkBuds S」のLE Audio対応を来春に延期 |
https://taisy0.com/2022/11/28/165505.html
|
bluetooth |
2022-11-28 10:07:34 |
IT |
ITmedia 総合記事一覧 |
[ITmedia News] Twitterで「北京」「上海」などを「最新」で検索すると妖しい投稿だらけに |
https://www.itmedia.co.jp/news/articles/2211/28/news171.html
|
itmedianewstwitter |
2022-11-28 19:05:00 |
IT |
情報システムリーダーのためのIT情報専門サイト IT Leaders |
デジタルアーツ、クラウド型Webセキュリティ「i-FILTER@Cloud」にフィッシング対策機能を追加 | IT Leaders |
https://it.impress.co.jp/articles/-/24105
|
デジタルアーツ、クラウド型Webセキュリティ「iFILTERCloud」にフィッシング対策機能を追加ITLeadersデジタルアーツは年月日、Webセキュリティクラウドサービス「iFILTERCloud」にフィッシング対策機能「クレデンシャルプロテクション」を追加したと発表した。 |
2022-11-28 19:36:00 |
python |
Pythonタグが付けられた新着投稿 - Qiita |
機械学習初心者(?)がSUUMO賃貸データを使って行った機械学習モデルによる分析とアプリ作成でやったことをまとめた。 |
https://qiita.com/tomyu/items/aa565490f48612e00535
|
suumo |
2022-11-28 19:31:00 |
js |
JavaScriptタグが付けられた新着投稿 - Qiita |
Socket.IOでコンソールベースのチャットを作成する |
https://qiita.com/yukikmt/items/971c7fd03742fb5c9c98
|
socketio |
2022-11-28 19:47:51 |
Ruby |
Rubyタグが付けられた新着投稿 - Qiita |
devise導入していれば使えるauthenticate_user!について |
https://qiita.com/Naaa0/items/4d813e190dc8099d688e
|
authenticateuser |
2022-11-28 19:10:44 |
Ruby |
Rubyタグが付けられた新着投稿 - Qiita |
railsにおけるテーブル修正の流れ |
https://qiita.com/Naaa0/items/6c9eaa08eaff8c1f5aef
|
rails |
2022-11-28 19:01:22 |
Linux |
Ubuntuタグが付けられた新着投稿 - Qiita |
Ubuntuでbluetoothがactiveにならない |
https://qiita.com/noradogg/items/c2c57159406601a0c5a7
|
lstatusbluetoothbluetooth |
2022-11-28 19:41:39 |
Ruby |
Railsタグが付けられた新着投稿 - Qiita |
devise導入していれば使えるauthenticate_user!について |
https://qiita.com/Naaa0/items/4d813e190dc8099d688e
|
authenticateuser |
2022-11-28 19:10:44 |
Ruby |
Railsタグが付けられた新着投稿 - Qiita |
railsにおけるテーブル修正の流れ |
https://qiita.com/Naaa0/items/6c9eaa08eaff8c1f5aef
|
rails |
2022-11-28 19:01:22 |
技術ブログ |
Mercari Engineering Blog |
サービス成長のための社内ツール開発事例の紹介 |
https://engineering.mercari.com/blog/entry/20221125-2149454652/
|
hellip |
2022-11-28 11:00:34 |
技術ブログ |
Developers.IO |
AWS SecurityHub 基礎セキュリティのベストプラクティスコントロール修復手順 [IAM.1] IAM ポリシーでは、完全な「*」管理者権限を許可しないでください |
https://dev.classmethod.jp/articles/securityhub-repair-procedure-iam-1/
|
awssecurityhub |
2022-11-28 10:57:31 |
技術ブログ |
Developers.IO |
ラスベガス最寄空港がre:Invent 2022モードに仕上がっていました |
https://dev.classmethod.jp/articles/the-nearest-airport-to-las-vegas-was-finished-in-reinvent-2022-mode/
|
awsreinvent |
2022-11-28 10:47:53 |
技術ブログ |
Developers.IO |
[アップデート]Amazon EventBridgeルール作成をよりシンプルにする機能が追加されました |
https://dev.classmethod.jp/articles/amazon-eventbridge-capabilities-build-rules/
|
cloudf |
2022-11-28 10:35:05 |
技術ブログ |
Developers.IO |
ONTAP REST APIでAmazon FSx for NetApp ONTAPの操作をしてみた |
https://dev.classmethod.jp/articles/amazon-fsx-for-netapp-ontap-operation-with-ontap-rest-api/
|
fsxforont |
2022-11-28 10:33:21 |
技術ブログ |
Developers.IO |
AWS SecurityHub 基礎セキュリティのベストプラクティスコントロール修復手順 [EC2.1] Amazon EBS スナップショットはパブリックにしないでください。これは、誰でも復元可能であるかどうかを基に判断されます。 |
https://dev.classmethod.jp/articles/securityhub-repair-procedure-ec2-1/
|
AWSSecurityHub基礎セキュリティのベストプラクティスコントロール修復手順ECAmazonEBSスナップショットはパブリックにしないでください。 |
2022-11-28 10:31:39 |
技術ブログ |
Developers.IO |
[アップデート]RDS for MySQL で書き込みスループットが最大2倍になりました #reinvent |
https://dev.classmethod.jp/articles/update-rds-optimized-writes/
|
rdsformysq |
2022-11-28 10:29:59 |
技術ブログ |
Developers.IO |
การสร้าง CData API Server ใน Amazon Linux 2 |
https://dev.classmethod.jp/articles/cdata-api-server-on-amazon-linux-2/
|
amazon |
2022-11-28 10:29:46 |
技術ブログ |
Developers.IO |
AWS SecurityHub 基礎セキュリティのベストプラクティスコントロール修復手順 [EC2.19] セキュリティグループは、リスクの高いポートへの無制限アクセスを許可してはいけません |
https://dev.classmethod.jp/articles/securityhub-repair-procedure-ec2-19/
|
awssecurityhub |
2022-11-28 10:22:55 |
技術ブログ |
Developers.IO |
[小ネタ]gcloud CLIコマンドには現行バージョンに加えて「alpha」と「beta」が存在する |
https://dev.classmethod.jp/articles/gcloud-cli-has-3-release-level/
|
shirota |
2022-11-28 10:02:10 |
海外TECH |
MakeUseOf |
10 Tips For Safe & Secure Shopping Online This Holiday Season |
https://www.makeuseof.com/tag/10-tips-safe-secure-shopping-online-holiday-season/
|
Tips For Safe amp Secure Shopping Online This Holiday SeasonThe Holidays are almost upon us once again And that can only mean one thing yep its time to buy gifts at the last minute again But how do you avoid criminals while buying online |
2022-11-28 10:16:15 |
海外TECH |
DEV Community |
Creating Simple Authentication With Rio |
https://dev.to/retterio/creating-simple-authentication-with-rio-33g7
|
Creating Simple Authentication With RioWe will have classes Authenticator and User Authenticator will be used for login and sending OTP mail User will be used for keep user info for each user Lets begin Authenticator ClassAuthenticator will get an email on initial payload On init we will save that email to state And sendOTP will generate otp and send it to the email from state DependenciesWe will use mailjet to send otp mails and zod for models node mailjet zod ModelsTurn this zod models into Rio models by following instructions on this link classes Authenticator types tsimport z from zod export const initInputModel z object email z string email export const loginModel z object otp z number Optionalexport const privateState z object email z string email otp z number export type InitInputModel z infer lt typeof initInputModel gt export type Login z infer lt typeof loginModel gt export type PrivateState z infer lt typeof privateState gt Template ymlYou have to convert zod models above to rio models to use as an input model As you can see we have models for init and login function init handler index init inputModel AuthInitInputModelgetInstanceId index getInstanceIdgetState index getStatemethods method login type WRITE inputModel LoginModel handler index login method sendOTP type WRITE handler index sendOTP Index tsWe will use mailjet to send mails So let s configure mailjet import mailjet from node mailjet const mailjetClient new mailjet apiKey YOUR API KEY apiSecret YOUR API SECRET Init FunctionWe are getting email here and saving it to state later we will get email from state export async function init data Data Promise lt Data gt data state private email data request body email return data GetInstanceId FunctionMaking instanceId same as email this way we will not create a billion instances export async function getInstanceId data Data Promise lt string gt return data request body email sendOTP FunctionThen lets create a function that handles sending mails This function gets email from state And generating a six digit otp export async function sendOTP data Data Promise lt Data gt try const email data state private const otp Math floor Math random await mailjetClient post send version v request Messages From Email bahadir rettermobile com Name Bahadır To Email email Subject Greetings from Retter TextPart OTP Validation Email HTMLPart OTP otp CustomID AppGettingStartedTest data state private otp otp data response statusCode body emailSent true catch error console log error data response statusCode body error error message return data Login FunctionFirst checking if received otp is a match If not just throws an error const otp recivedOtp data request body as Loginconst otp email data state private as PrivateStateif recivedOtp otp throw new Error OTP is wrong After checking otp We are looking for an instance in User class with our email lookup key If can t find it we are initializing a new instance Checking if maybe initialization failed Giving email inside body because when user class initializing it will set email lookup key with this email and we will keep that email in state Get existing USER INSTANCElet getUser await rdk getInstance classId User body email lookupKey name email value email if getUser statusCode gt CREATE USER INSTANCE gt User class will connect email as lookup key itself getUser await rdk getInstance classId User body email if getUser statusCode gt throw new Error Couldnt create user instance After that generating custom token and Using instanceId as userId and returning it inside body const customToken await rdk generateCustomToken userId getUser body instanceId identity enduser data state private relatedUser getUser body instanceIddata state private otp undefineddata response statusCode body customToken Authorizer FunctionHere we are allowing init and get Allowing getting state if developer because state keeps ours otp For login and sendOTP checking if we have instanceId æction is CALL export async function authorizer data Data Promise lt Response gt const methodName identity instanceId action data context switch methodName case INIT case GET return statusCode case STATE if identity developer return statusCode case login case sendOTP if instanceId amp amp action CALL return statusCode return statusCode User Class DependenciesI used uuid library to generate userId s Instance id s will be created with this uuid zod ModelsTurn this zod models into Rio models by following instructions on this link classes User types tsimport z from zod export const privateState z object email z string email userId z string export const userInitModel z object email z string email export type PrivateState z infer lt typeof privateState gt export type UserInitModel z infer lt typeof userInitModel gt Template ymlYou have to convert zod models above to rio models to use as an input model We have input model for init function here init handler index init inputModel UserInitInputModelgetState index getStategetInstanceId index getInstanceIdmethods method getProfile type READ handler index getProfile Index ts GetInstanceId FunctionGenerating userId and making it instance id import v as uuidv from uuid export async function getInstanceId Promise lt string gt return uuidv Init FunctionSaving email and userId to state And setting lookup key so we can find this instance with email export async function init data Data Promise lt Data gt const email data request body as UserInitModel data state private email userId data context instanceId as PrivateState await rdk setLookUpKey key name email value email return data GetProfile FunctionThis function just returns state because user data is in state export async function getProfile data Data Promise lt Data gt data response statusCode body data state private return data Authorizer FunctionState keeps user data so we don t want everyone to access it And allowing getProfile if it fulfills the requirements export async function authorizer data Data Promise lt Response gt const identity methodName instanceId userId data context if identity developer amp amp methodName getState return statusCode if identity enduser amp amp methodName getProfile amp amp userId instanceId return statusCode return statusCode Here is the all code for the project Now you have an idea of how to create an authentication system Im glad if I helped Thanks ReferencesRio DocsZod GithubMailjet GithubUuid Github |
2022-11-28 10:38:33 |
海外TECH |
DEV Community |
Generate REQUEST bodies automatically to accelerate API debugging |
https://dev.to/ismailkamil/generate-request-bodies-automatically-to-accelerate-debugging-4dl5
|
Generate REQUEST bodies automatically to accelerate API debuggingWhen developing APIs debugging is always a boring problem Postman can help send requests but when the API body is complicated constructing a JSON body would be difficult Junit also works but all requests must be constructed yourself in testing classes Complex bodies make many backends abandon unit tests and output an untested API to frontend developers and QA engineers The above case demonstrates that the code quality declines without a good tool And now I found that a tool named Apidog can generate the request body automatically when debugging The tool can construct a correct request JSON itself How to mock itThis approach works for API first teams APIs are designed before developing so while debugging you have an API specification Import the API specifications into Apidog How to Open an API and make sure the request has a JSON XML body specification Switch to the Run tab and click the Generate Automatically button OK You ve got a mock JSON according to the request specification And now click send to send the request like what we did in Postman but more efficiently Most features in Postman are also supported in Apidog Our team have used Apidog to debug APIs instead of Postman for weeks What s moreNotice the mock data It was generated automatically according to the field name A field named city are mocked with a city name a field named photoUrl is mocked with a photo URL and all mock data follows JSON schema specified in the API Just like what I wrote in How to mock complex JSON And that s not the end Hover on the arrow beside Generate Automatically you ll see three menu items Default value first means the mock JSON would be filled by the default value specified in each field of the API first Example value first means the mock JSON would be loaded by the example request JSON first But what is Refresh when sending request It s just the literal meaning Each time the request is sent the body is generated again Interesting isn t it Customize itUntil now everything looks great But what if some of my fields are not expected to change How can I make some fields fixed and some mocked Click the Dynamic Value button and you ll find a new world All Faker js syntaxes are supported and you can select any of them directly You can even select a function to mutate the mock value like md substr or base etc Then it will be inserted into the request body just like this You can decide which field is fixed and which is mocked by Faker js When sent all faker fields will change to the actual data below That s it And it changes each time sending Apidog is a great tool that makes our team build APIs faster I like it Download Apidog here |
2022-11-28 10:18:59 |
海外TECH |
DEV Community |
Free your mind and start creating useful automations with Znote 🤖 |
https://dev.to/alagrede/free-your-mind-and-start-creating-useful-automations-with-znote-27pc
|
Free your mind and start creating useful automations with Znote Originally posted on my blog Are you more automatic or manual Hi all Continuing my contribution to the developer community as app maker today I propose to discuss how to effectively automate tasks So How many repetitive manual actions do you do each day Probably a lot And why Because automating your scattered actions is long and difficult Don t have time to build and automate a complete process Neither do I Let me highlight an easy way to quickly automate actions without headache with Znote The approach is Incremental Automation Write your process down in a note and start coding parts of your tasks Thus you can alternate between manual and automated actions I don t know about you but personally I m more comfortable learning by testing and prototyping For me the best way to achieve this was to use a Javascript playground using Markdown ConceptI adapted Znote to do like Jupyter did with Python but transposed to the JS world Plus a super smooth integration between Node and the JS client as well as the entire ecosystem of NPM libraries for easily viewing code results and taking notes between code blocks Thanks to this architecture I am able to gradually and painlessly automate an entire process Manipulate data across multiple applications You can smoothly alternate manual and automatic actions store the results and explain the actions to be taken and push your automation as far as you want Back to our problemLet s now see with a concrete example how to proceed to build a ready to use automation The best way to do this is to start solving your own problems So let me expose our first use case Our use caseWhen I have new registered users I had to regularlyconnect to my remote database with SSH manually extract the users with an SQL query copy the results locally and compare with the existing users Once the new users were identified I sent a welcome email to each new member to get their feedback Make an SQL query on a remote database Make an SQL queryasync function getSQL sqlQuery host port user password database const Sequelize require sequelize const sequelize new Sequelize user password database dialect mysql one of mysql mariadb postgres mssql host host port port sequelize authenticate const results metadata await sequelize query sqlQuery sequelize close return results Make an SQL query with SSHasync function getRemoteSQL sqlQuery const spawn require child process connect to server don t forget to copy your ssh key on the remote server const ssh spawn ssh L localhost user XXX ovh net await sleep wait connection make SQL query replace with your credentials const data await getSQL sqlQuery localhost USER PASSWORD DATABASE quit ssh kill return data You can now just do anywhere in my notes an SQL query against your remote databaseconst users await getRemoteSQL select purchase email from license printJSON users Identify new usersThen we want to identify all new users since the query was last run function getNewUsers incomingData filename key const fs require fs let refData try refData JSON parse fs readFileSync filename utf map element gt key element catch err const delta incomingData forEach obj gt if refData indexOf key obj delta push obj printJSON delta return delta Send mailFinally we can send a mail to each new user With Google you need to generate a dedicated credential function sendMail recipients const nodemailer require nodemailer const transporter nodemailer createTransport service gmail auth user XX gmail com your gmail pass XXX app credential here const result await transporter sendMail from Anthony lt XX gmail com gt sender address to recipients list of receivers subject Just to know if everything is fine Subject line text Hi Being very concerned about the quality of Znote app I thank you for any feedback you could give me allowing me to improve my software plain text body html Being very concerned about the lt b gt quality lt b gt of Znote app I thank you for any feedback you could give me allowing me to improve my software html body printJSON result Plug everything in It remains to describe our process by calling the different functions get all users in remote databaseconst allUsers await getRemoteSQL select purchase email from license show new users since last execution timeconst newUsers getNewUsers allUsers Users alagrede Desktop users json it gt it purchase email write all users in filefs writeFileSync Users alagrede Desktop users json JSON stringify allUsers send mailsendMail newUsers map e gt e purchase email Tada To summarizeYou now have a bunch of reusable functions and an automated process Since functions can be reused on other notes you can capitalize on your existing work and continue to create additional processes Then export your script ready to run it in a cron Thanks for reading ️ There are a ton of other ways to do it better but I hope this example inspired you Go furtherI will continue to add some examples when you need them Meanwhile start turning your daily tasks into something easy and repeatable and your job will be more fun ️Don t forget to check our documentation website If you haven t downloaded Znote yet it s download this app here |
2022-11-28 10:14:43 |
海外TECH |
WIRED |
177 Absolute Best Cyber Monday Deals Right Now (2022) |
https://www.wired.com/story/best-cyber-monday-deals-2022-2/
|
airpods |
2022-11-28 10:54:00 |
医療系 |
医療介護 CBnews |
飲酒の人体への影響、ガイドライン作成の論点に-生活習慣病や肝疾患など「長期的な疾病リスク」も |
https://www.cbnews.jp/news/entry/20221128183816
|
厚生労働省 |
2022-11-28 19:05:00 |
金融 |
金融庁ホームページ |
合同会社等の社員権の取得勧誘にご注意ください! |
https://www.fsa.go.jp/ordinary/chuui/syainnken.html
|
合同会社 |
2022-11-28 12:00:00 |
ニュース |
BBC News - Home |
China Covid: BBC journalist detained by police during protests |
https://www.bbc.co.uk/news/world-asia-china-63779176?at_medium=RSS&at_campaign=KARANGA
|
government |
2022-11-28 10:19:42 |
ニュース |
BBC News - Home |
Bob Dylan apologises for machine-printed 'signatures' |
https://www.bbc.co.uk/news/entertainment-arts-63779904?at_medium=RSS&at_campaign=KARANGA
|
signatures |
2022-11-28 10:45:46 |
ニュース |
BBC News - Home |
Gunmen storm Ecuador hospital to try to kill teen |
https://www.bbc.co.uk/news/world-latin-america-63778819?at_medium=RSS&at_campaign=KARANGA
|
hostage |
2022-11-28 10:11:52 |
ニュース |
BBC News - Home |
Bridgend: Two babies' bodies found and three arrested |
https://www.bbc.co.uk/news/uk-wales-63777041?at_medium=RSS&at_campaign=KARANGA
|
community |
2022-11-28 10:22:56 |
ニュース |
BBC News - Home |
Insulation: Households could save £300 in new insulation scheme |
https://www.bbc.co.uk/news/business-63776183?at_medium=RSS&at_campaign=KARANGA
|
bands |
2022-11-28 10:39:22 |
ニュース |
BBC News - Home |
Grant Shapps denies Tory split over onshore wind farms |
https://www.bbc.co.uk/news/uk-politics-63779169?at_medium=RSS&at_campaign=KARANGA
|
england |
2022-11-28 10:30:20 |
ニュース |
BBC News - Home |
Odell Beckham Jr: Wide receiver removed from plane before take-off at Miami Airport |
https://www.bbc.co.uk/sport/american-football/63778568?at_medium=RSS&at_campaign=KARANGA
|
miami |
2022-11-28 10:06:45 |
ニュース |
BBC News - Home |
BBC journalist arrested covering China Covid protests |
https://www.bbc.co.uk/news/world-asia-china-63781250?at_medium=RSS&at_campaign=KARANGA
|
covid |
2022-11-28 10:47:23 |
ニュース |
BBC News - Home |
Blank paper becomes the symbol of protests |
https://www.bbc.co.uk/news/world-asia-china-63778871?at_medium=RSS&at_campaign=KARANGA
|
scraps |
2022-11-28 10:23:07 |
ニュース |
BBC News - Home |
What is China's zero Covid policy and what are its rules? |
https://www.bbc.co.uk/news/59882774?at_medium=RSS&at_campaign=KARANGA
|
lockdown |
2022-11-28 10:41:48 |
北海道 |
北海道新聞 |
自公、税制改正へ調整開始 防衛費確保、NISA焦点 |
https://www.hokkaido-np.co.jp/article/766714/
|
税制改正 |
2022-11-28 19:17:00 |
北海道 |
北海道新聞 |
野村証券、店舗ATM全廃 来年3月末、利用減少で |
https://www.hokkaido-np.co.jp/article/766709/
|
野村証券 |
2022-11-28 19:11:00 |
北海道 |
北海道新聞 |
マイナカード申請60%超 7568万件 |
https://www.hokkaido-np.co.jp/article/766706/
|
総務省 |
2022-11-28 19:08:00 |
北海道 |
北海道新聞 |
「風流踊」30日にも登録決定 ユネスコ会合が開幕 |
https://www.hokkaido-np.co.jp/article/766701/
|
無形文化遺産 |
2022-11-28 19:05:00 |
北海道 |
北海道新聞 |
同時検査キット市販を了承 コロナ・インフル、厚労省 |
https://www.hokkaido-np.co.jp/article/766697/
|
新型コロナウイルス |
2022-11-28 19:01:00 |
仮想通貨 |
BITPRESS(ビットプレス) |
コインチェック・クリプタクト、12/1に「2022年暗号資産の今を知る〜税制改正に向けた現状〜」開催 |
https://bitpress.jp/count2/3_15_13465
|
税制改正 |
2022-11-28 19:17:30 |
IT |
週刊アスキー |
中京テレビ、「バーチャルマーケット2022 Winter」でメタバースの魅力が楽しめる体験会を実施 |
https://weekly.ascii.jp/elem/000/004/115/4115044/
|
winter |
2022-11-28 19:40:00 |
IT |
週刊アスキー |
サンコー、小籠包のような加湿器「351 山来 小籠包加湿器」を発売 |
https://weekly.ascii.jp/elem/000/004/115/4115052/
|
電源 |
2022-11-28 19:40:00 |
コメント
コメントを投稿