投稿時間:2021-11-20 17:18:53 RSSフィード2021-11-20 17:00 分まとめ(26件)

カテゴリー等 サイト名等 記事タイトル・トレンドワード等 リンクURL 頻出ワード・要約等/検索ボリューム 登録日
TECH Engadget Japanese RockStar Games、「GTA:トリロジー」の品質問題を謝罪。近日中に修正アップデートを約束 https://japanese.engadget.com/rockstar-apologize-broken-gta-remaster-070555018.html rockstargames 2021-11-20 07:05:55
python Pythonタグが付けられた新着投稿 - Qiita 類似語を二次元グラフ化 ~word2vec & fastText~ https://qiita.com/hima2b4/items/0123158097c7840f7b4e こちらのコードをベースにtSNEでも二次元化してみようできればすべての類似語もグラフに表示させようということで、実行してみたのがこの記事です。 2021-11-20 16:58:51
js JavaScriptタグが付けられた新着投稿 - Qiita 【DOM操作(後編)】JavaScriptのaddEventListenerについて、「・・したら」をまとめてみた https://qiita.com/yasu-hoshi/items/8d5f7684b4b48b88fd4d 先ほど作成したlistのテキストを編集listtextContent勉強する確認してみようconsoleloglistltligt勉強するltligt・appendChaild指定した親要素の子要素の最後に追加されるulの要素取得consttodoListdocumentquerySelectorul先ほどのltligt勉強するltligtをtodoListに追加todoListappendChildlistこれらの処理によって追加ボタンをクリックするとこのようにリストが追加されます②ボタンをクリックするとリストが削除先ほどとは別で次のようにボタンとリストを用意ltbuttongt削除ltbuttongtltulgtltligt買い物に行くltligtltulgtconsttodoListdocumentquerySelectoruldocumentquerySelectorbuttonaddEventListenerclickgtここから下を解説constmessageconfirm削除してもいいですかifmessagelistremoveelsereturnブラウザはこんな感じ‍️一つずつ見て行きましょう‍️・confirm画面上にダイアログ表示キャンセルとOKで確認constmessageconfirm削除してもいいですかifmessageここにOKの時の処理elseここにキャンセルの時の処理・remove対象のノードを削除できます。 2021-11-20 16:59:33
js JavaScriptタグが付けられた新着投稿 - Qiita 「GithubのHTMLをダウンロードせずにプレビューするアプリ」作ってみた!! https://qiita.com/daisu_yamazaki/items/033eaff1bd5cc5e6db86 「GithubのHTMLをダウンロードせずにプレビューするアプリ」作ってみた今回は「GithubのHTMLをダウンロードせずにプレビューするアプリ」作ってみたです私の業務効率化だけのために作ったと言っても過言ではないので、興味ない方はページをそっと閉じていただければと存じます【以下サイトリンク】ことのはじまり大学のプログラミング授業でGithubに課題を提出してもらうことに決めました。 2021-11-20 16:38:20
js JavaScriptタグが付けられた新着投稿 - Qiita Vue.jsで404や500エラーページの制御がしたい https://qiita.com/danishi/items/a00577c80a50d0ebf450 ワイルドカードのパスを作ることで、どのパスにもマッチしなかった時のビューに飛ばすことができる。 2021-11-20 16:30:23
Program [全てのタグ]の新着質問一覧|teratail(テラテイル) 【numpy】計算方法のいいアルゴリズムが思いつかない https://teratail.com/questions/370247?rss=all 【numpy】計算方法のいいアルゴリズムが思いつかないnumpyにまともに触れるのは今回が初めてです。 2021-11-20 16:40:06
Program [全てのタグ]の新着質問一覧|teratail(テラテイル) Unityで使用しているvisual studioでアセットを認識しなかったり、アセット内のエラーが出るようになってしまった https://teratail.com/questions/370246?rss=all Unityで使用しているvisualstudioでアセットを認識しなかったり、アセット内のエラーが出るようになってしまった例えば、購入したアセットに含まれている以下のコードでdnfadeInnewFadeSettingsnewVector以下のエラーが出るようになってしまいました。 2021-11-20 16:37:21
Program [全てのタグ]の新着質問一覧|teratail(テラテイル) ループごとに異なる2次元配列をヘッダファイルから得たい https://teratail.com/questions/370245?rss=all 2021-11-20 16:36:49
Program [全てのタグ]の新着質問一覧|teratail(テラテイル) rails refileをインストールできない https://teratail.com/questions/370244?rss=all railsrefileをインストールできない前提・実現したいことrailsでrefileをインストールしたいと思っています。 2021-11-20 16:18:47
Ruby Rubyタグが付けられた新着投稿 - Qiita Ruby のメソッド名は小文字で始めなければならない,わけじゃない https://qiita.com/scivola/items/0b136e03fe412530ce11 組込みクラスのメソッドはどうか文法上のルールではないにしても「メソッド名はアルファベット小文字で始める」という慣習があるのなら組込みクラスや標準添付ライブラリーのメソッドも当然その慣習に則っているのかというと実はそうでもありません。 2021-11-20 16:22:13
Docker dockerタグが付けられた新着投稿 - Qiita Docker 用語解説! 「Imageをpullしてcontainerを起動させるって…。どうゆうこと…?」 https://qiita.com/eito1011/items/64a479d15b64f9221ebc どうゆうこと…」はじめDocker用語の理解の薄さから調べていても記事の内容が理解できないことが多々あったので、一度整理してみることにしました。 2021-11-20 16:24:38
Git Gitタグが付けられた新着投稿 - Qiita Git コマンド https://qiita.com/mtakahashi11/items/aebfcf6f0e770926b898 2021-11-20 16:15:35
海外TECH DEV Community Django RestApis example – GET/POST/PUT/DELETE requests to MongoDb database https://dev.to/harrynguyen88/django-restapis-example-getpostputdelete-requests-to-mongodb-database-2pop Django RestApis example GET POST PUT DELETE requests to MongoDb databaseIn this tutorial we re gonna look at way to create Django RestAPIs with Get Post Put Delete requests to interact with MongoDb Database using Django REST Framework Read more 2021-11-20 07:44:12
海外TECH DEV Community Indefinite Arguments https://dev.to/lizardkinglk/indefinite-arguments-4lpe Indefinite ArgumentsWhen your program needs indefinite number of arguments and let s say i You are not allowed to pass a collection or an array ii You are not allowed to overload methods Using varargs is the best option to use in this case Before varargs was introduced in Java the problem was solved by allowing to use any of the mentioned two ways above A varargs method can pass indefinite number of arguments with the following method definition In here the data type is String and args is the name of the argument void someMethod String args Below is an use case that used varargs to solve a problem which involved printing the sum of numbers Not allowing to use overloading or passing a collection or an array So we use varargs class Add public void add int nums int sum String label for Integer n nums label n sum n label label trim replace label String format d sum System out println label In the context of C language we change the syntax a little bit We add the keyword params to define it is a varargs method It looks like this void add params int nums And the same code for above problem in C language is as below class Add public void add params int nums int sum String label foreach int n in nums label n sum n label label Trim Replace label String Format sum Console WriteLine label Call to your method like below in your main method And again gt use any number of arguments public static void main String args new Add add new Add add Learn more about varargs using the following links 2021-11-20 07:44:03
海外TECH DEV Community Kotlin Array sort(), sortBy(), sortWith() https://dev.to/harrynguyen88/kotlin-array-sort-sortby-sortwith-5eop Kotlin Array sort sortBy sortWith In the tutorial JavaSampleApproach will guide how to sort Kotlin Array by sort sortBy with selector function and sortWith with a comparator Read more 2021-11-20 07:28:34
海外TECH DEV Community PHP isn't dead! Don't be afraid to use it and implement it in your projects... https://dev.to/manuthecoder/php-isnt-dead-dont-be-afraid-to-use-it-and-implement-it-in-your-projects-2225 PHP isn x t dead Don x t be afraid to use it and implement it in your projects Ok Let s get this straight PHP is not dead It s not going to die anytime soon Why PHP released a new version recently actually just a few months ago It exists in more than of all websites It s also used actively by millions of developers None of that will disappear out of thin air Despite the fact that many new languages flourish every year I would not hesitate to say that PHP besides JS is one of the safest languages in the world in terms of jobs and will securely guarantee an enormous job market around the world for much longer than years Here is why PHP adopts new ideas slowly It may sound like a weird reason for a programming language to keep up with the contemporary development trends In fact what happens is only proven polished and time checked ideas find their way into PHP PHP has low entry level This means that it is one of the easiest languages to start coding for newbies ever Then once it is adopted by newbies it often turns out that this language is enough for a lot of people that do not need genius complex mathematical and scientific features Result they just keep using PHP Big platforms and companies which use PHP make lots of money every day WordPress for example which is made in PHP is a free framework but WordPress com is a commercial WordPress hosting and makes money out of it Then there are tens of others like it Now multiply this business volume by the number of other big PHP projects like shopping carts CRMs issue tracking systems web analytics And one of the biggest reasons Servers accessibility The cheapest servers VPS for web projects always support PHP PHP has one of the lowest minimum requirements to the memory processor speed Is PHP on the decline Yes Is it a crappy programming language Absolutely But that doesn t mean it s going away any time soon Consider COBOL An almost sixty year old language that s horrible by modern standards and has been on the decline for thirty years Yet it runs our financial infrastructure and there are still an estimated one million COBOL developers worldwide Maybe that is what PHP will be like in a couple of decades 2021-11-20 07:24:31
海外TECH DEV Community Adding Continuous Integration with GitHub Actions 🛠 https://dev.to/mqnguyen/adding-continuous-integration-with-github-actions-33hm Adding Continuous Integration with GitHub Actions IntroductionWith static analysis tooling and unit tests added to the project it is time to increase the complexity of my project At the moment I have written several tests to check on the different functionalities of my program However they had to be manually run by executing npm run test in the terminal which will be very tedious if there are a lot of files to test Additionally we also need to consider human errors as there is no way to guarantee that all contributors remember to run the test before committing their code Choosing a CIWith this in mind it is to introduce continuous integration or CI for short It allows us to set up a workflow that listens to every time someone introduces new changes builds the code and automatically runs tests against it While we have many CI services such as Azure DevOps Evergreen or Jenkins I ll choose GitHub Actions for this task Setting up the CIThere are different options to set up GitHub Actions You can either choose to do it manually or choose from numerous templates My project MINI works just fine with the Node js template Title of the workflowname Node js CI Trigger this workflow on push and new PRon push branches main pull request branches main jobs to run inside this workflowsjobs build choose a platform to run on runs on ubuntu latest options strategy matrix node version x x steps use a preset step to checkout the code uses actions checkout v use a preset step to setup Node environment name Use Node js matrix node version uses actions setup node v preset options with node version matrix node version cache npm command to run run npm ci run npm testAfter setting up GitHub Actions I made two pull requests to check if it worked as intended One containing an intentional error and the other with the same error fixed Writing test for othersAfter ensuring that the CI was working I decided to file an issue to Tue s repo and asked if I could help him test his text to HTML conversion We worked with each other through Slack and GitHub with myself taking notes of what he wanted to check and what the expected results should be After struggling with managing and rebase commits when changing the code based on Tue s review I was able to merge my pull request ConclusionI intend to use continuous integration in additional projects in the future and it was helpful to understand how it works and how to set it up It makes collaboration considerably easier because it prevents unintended problems and code breaking changes Happy coding 2021-11-20 07:23:33
海外TECH DEV Community How To Move an EBS volume to another region? https://dev.to/gsidhu13/how-to-move-an-ebs-volume-to-another-region-5emd How To Move an EBS volume to another region Moving volumes across two regions is not permitted however creating a snapshot of a volume and then moving to another region is allowed Let s see how it is done Launch two instances in different regions us east and us west Create a volume in the first region us east Go to EC under Elastic Block Store left pane and click on VolumesCreate volume The size of this volume would be GBOnce it is successfully created you will see its state set to available Now right on newly created volume and select attach volume Select your instance leave the device as it is dev sdf and attach It will take a couple of minutes to attach the volume Now Connect to your EC Instance either via SSH or connect directly from the portal I will be connecting from the portal it will open in another tab First thing first switch to root user sudo sucheck if the attached volume is listed lsblkNew volumes don t file system configure set up a file system for this volume mkfs t xfs dev xvdfCreate a mount point for your volume mkdir gsdata and mount the volume mount dev xvdf gsdataGoing to check if I can see all my buckets aws s lsCopy files from Testing Vol folder in inpuutbuckgs bucket to gsdata aws s cp S inputbuckgs TestingVol gsdata recursive Check moved files ls l gsdataNow you could create directories upload files to this volume I ll create a test folder and move some files from s bucket Before you copy files from the s bucket you will need to configure your AWS profile I have it already configured Now go back to the EC portal and create a snapshot of the volumeRight click on the volume and select create a snapshot Type in the description on the prompted screen and create Snapshot Go to Snapshots under Elastic Block Store right click on this new snapshot and select copySelect the region where you want to copy add a description and copy Go to another region check your snapshot that you just copied it could take depending on the size of your snapshotRight click on the snapshot and create Volume Select the size type and region on the prompted screen Increasing size is ok but if you try to reduce the size you may experience data lose EBS volume has been moved to another region However I am going to attach an instance in this region to show you that there was no data lost since the last snapshot Attach the volume like we did it above for an instance in us east region and connect to EC Instance Please don t try to format the file system again it will delete your data Just mount the volume here As you can see here all the files that were uploaded in the us east region were available here Now detach your volumes in both regions delete volumes and snapshot and terminate your instance to avoid any charges from AWSUse case Scenarios of what we did above Perform a backup of your volume in another region Restore volume in another region from snapshotPlease Note you could also create a Snapshot Lifecycle Policy that will create snapshots of your volume hourly every two or four hours or daily and retain those snapshots up to desired days 2021-11-20 07:16:21
海外TECH DEV Community Code Reviews https://dev.to/okimotomizuho/code-reviews-2n44 Code ReviewsAfter I contributed to an internal project I experienced reviewing pull requests and they were in the repository I contributed to This project is for an online note for C language in my college and uses Docusaurus Repository IPCWhen I contributed to the project I audited and fixed the markdown page and was familiar with each task so I reviewed the Pull Requests of other students who did it Review Issue I reviewed Reza s work where he worked on not only the markdown file but also modified css and package json file He did a good job but I found some extra spaces similar to how I did it so I made a comment about it Review Issue I read the markdown file line by line and found an extra comment so I asked rclee to delete it I wondered if we needed to delete extra indentations in the code blocks because I thought it wasn t user friendly I checked C language code format and the generator fixed the extra indentations also some other students deleted the indentations in their PR However the original course note IPC has the same indentations so I just suggested him to change it rclee said the indentations are the same for all of the code example in the md file The owners of the repo didn t say anything so I was driven by the desire to have all the formatting the same but decided to overlook it ConclusionI experienced getting reviews and also reviewing through this assignment By comparing what I did with what other people did along the same task it was helpful to be able to know what I was missing 2021-11-20 07:13:18
海外TECH DEV Community Really simple encryption in PHP! https://dev.to/manuthecoder/really-simple-encryption-in-php-3kk9 Really simple encryption in PHP Have you ever wanted to improve your app s security by hiding everything in your database Let s make a simple encryption and decryption script in PHP using the openssl encrypt and openssl decrypt functions Step Let s define some variables lt phpdefine encryption method AES CBC define key your amazing key here Obviously change the encryption key Step Creating a function to encrypt data lt phpfunction encrypt data key key plaintext data ivlen openssl cipher iv length cipher encryption method iv openssl random pseudo bytes ivlen ciphertext raw openssl encrypt plaintext cipher key options OPENSSL RAW DATA iv hmac hash hmac sha ciphertext raw key as binary true ciphertext base encode iv hmac ciphertext raw return ciphertext Explainedopenssl random pseudo bytes Generates a string of pseudo random bytes with the number of bytes determined by the length parameter openssl cipher iv length The cipher method see openssl get cipher methods for a list of potential valuesopenssl encrypt PHP lacks a build in function to encrypt and decrypt large files openssl encrypt can be used to encrypt stringshash hmac Returns a string containing the calculated message digest as lowercase hexits unless binary is set to true in which case the raw binary representationbase encode Encodes the given string with base Step Let s create a simple script to decrypt our encrypted stringfunction decrypt data key key c base decode data ivlen openssl cipher iv length cipher encryption method iv substr c ivlen hmac substr c ivlen shalen ciphertext raw substr c ivlen shalen original plaintext openssl decrypt ciphertext raw cipher key options OPENSSL RAW DATA iv calcmac hash hmac sha ciphertext raw key as binary true if hash equals hmac calcmac return original plaintext Explained The only difference here is the openssl decrypt function Takes a raw or base encoded string and decrypts it using a given method and key Complete code lt phpdefine encryption method AES CBC define key your amazing key here function encrypt data key key plaintext data ivlen openssl cipher iv length cipher encryption method iv openssl random pseudo bytes ivlen ciphertext raw openssl encrypt plaintext cipher key options OPENSSL RAW DATA iv hmac hash hmac sha ciphertext raw key as binary true ciphertext base encode iv hmac ciphertext raw return ciphertext function decrypt data key key c base decode data ivlen openssl cipher iv length cipher encryption method iv substr c ivlen hmac substr c ivlen shalen ciphertext raw substr c ivlen shalen original plaintext openssl decrypt ciphertext raw cipher key options OPENSSL RAW DATA iv calcmac hash hmac sha ciphertext raw key as binary true if hash equals hmac calcmac return original plaintext echo encrypt Hello World echo n echo decrypt encrypt Hello World gt How to use To encrypt somethingencrypt Foo To decrypt somethingdecrypt lFwxjGEHbbSH ihseCaaThnWmbexpCxqc WAmQXakG i hAjSrNzMpINfZWnh KdnodHTiPVqeuQZBOOvtWPdsGRRpoedIlep lMrwSjzN o FPUtcPVPUrBEcRtHwFoUHNNm mWXYLUVHCtiuD eBCSGIGRdWREGdLrsWQ See if you can decrypt the following message I ll post the encryption key in the comments section later Hint The key is a letter programming language CreditsThis code was taken from my own app Smartlist Smartlist is a home inventory app that lets you keep track of what s in your home We encrypt our items tasks and notes too 2021-11-20 07:03:52
海外ニュース Japan Times latest articles J1’s top career goal scorer Yoshito Okubo to retire at end of season https://www.japantimes.co.jp/sports/2021/11/20/soccer/j-league/okubo-retires-j-league/ J s top career goal scorer Yoshito Okubo to retire at end of seasonKnown for his aggressive playing style Okubo helped Japan reach the knockout phase at the World Cup and also played in the tournament 2021-11-20 16:04:04
ニュース BBC News - Home Boxxer promoter Ben Shalom on diversity in boxing, investing in young fighters & evolving the sport https://www.bbc.co.uk/sport/boxing/59349918?at_medium=RSS&at_campaign=KARANGA Boxxer promoter Ben Shalom on diversity in boxing investing in young fighters amp evolving the sportPromoter Ben Shalom looks ahead to a fight night that has everything on Saturday reveals what makes him so relatable to young fighters and outlines his plans to evolve the sport 2021-11-20 07:19:27
LifeHuck ライフハッカー[日本版] 【楽天ブラックフライデー】プロジェクターが安い! 24,200円オフの「XGIMI Halo」、30%オフのAnkerの小型モデルなど https://www.lifehacker.jp/2021/11/rakuten-sale-1120-2.html 【楽天ブラックフライデー】プロジェクターが安い円オフの「XGIMIHalo」、オフのAnkerの小型モデルなど楽天市場では、月日木から月日火まで「楽天ブラックフライデー」が開催中。 2021-11-20 16:30:00
北海道 北海道新聞 コンサドーレ攻めきれず 鳥栖に0―1 https://www.hokkaido-np.co.jp/article/613914/ 北海道コンサドーレ札幌 2021-11-20 16:13:37
北海道 北海道新聞 根室の刺傷、逮捕の中学生「むしゃくしゃしていた」 包丁購入か https://www.hokkaido-np.co.jp/article/613892/ 根室市常盤町 2021-11-20 16:06:53
IT 週刊アスキー マクドナルドのカフェ併設店舗でウィンター限定「いちごクリームブリュレフラッペ」始まるよー! https://weekly.ascii.jp/elem/000/004/075/4075243/ mccafebybarista 2021-11-20 16:30:00

コメント

このブログの人気の投稿

投稿時間:2021-06-17 05:05:34 RSSフィード2021-06-17 05:00 分まとめ(1274件)

投稿時間:2021-06-20 02:06:12 RSSフィード2021-06-20 02:00 分まとめ(3871件)

投稿時間:2020-12-01 09:41:49 RSSフィード2020-12-01 09:00 分まとめ(69件)