js |
JavaScriptタグが付けられた新着投稿 - Qiita |
Discord.jsで多機能Botを作る ~開発環境の構築~【#1】 |
https://qiita.com/YutoGamesYT/items/4fd25c5f2a65da3b5837
|
下記のコマンドを実行して、返事が来たら成功ですnpmvnodevvVisualStudioCodeVScodeのインストールVScodeの公式サイトに行きます。 |
2022-03-26 19:43:37 |
js |
JavaScriptタグが付けられた新着投稿 - Qiita |
[javascript] env使いたい時にでたエラー |
https://qiita.com/www_y118/items/20c4fd83eac532079528
|
javascriptenv使いたい時にでたエラーjavascriptで環境変数を使いたい。 |
2022-03-26 19:05:14 |
Ruby |
Rubyタグが付けられた新着投稿 - Qiita |
アプリケーションの雛形を作成する。 |
https://qiita.com/takahiro824/items/5ce3fb55f81a57d5d037
|
railsnewコマンドでアプリケーションに必要になってくる基本的なデータやファイルは一式揃いますrailsnew作成するアプリケーションの名前次にデータベースを作成します。 |
2022-03-26 19:29:22 |
AWS |
AWSタグが付けられた新着投稿 - Qiita |
AWS Schema Conversion Tool とは |
https://qiita.com/miyuki_samitani/items/0ea0f6cc88317df690e8
|
変換等はできますが、パフォーマンステストはできないので移行後のパフォーマンステストはクライアント側で行う必要があります。 |
2022-03-26 19:11:40 |
AWS |
AWSタグが付けられた新着投稿 - Qiita |
AWSマネジメントコンソールでスイッチロールする |
https://qiita.com/emiki/items/bfb900fff199ecdf455d
|
アカウントAにログインし、IAMサービス画面からポリシーポリシーの作成をクリックする。 |
2022-03-26 19:07:26 |
Ruby |
Railsタグが付けられた新着投稿 - Qiita |
アプリケーションの雛形を作成する。 |
https://qiita.com/takahiro824/items/5ce3fb55f81a57d5d037
|
railsnewコマンドでアプリケーションに必要になってくる基本的なデータやファイルは一式揃いますrailsnew作成するアプリケーションの名前次にデータベースを作成します。 |
2022-03-26 19:29:22 |
海外TECH |
DEV Community |
Working with Shell Alias and Functions in linux |
https://dev.to/salemzii/working-with-shell-alias-and-functions-in-linux-54pe
|
Working with Shell Alias and Functions in linuxAlias helps to pass commands to the linux terminal to run a specific instruction The linux terminal is very resourceful and as such utilizing Alias could be a major boost to your productivity as a developer As a lazy dev like myself i use aliases for any command that spans above words don t blame me cos why should i bother typing a long array of words when i could pass in two letters that represents the same command set Now you might not be a fan of shortening commands when writing codes but i find alias quite helpful when you re trying to remember long commands as they allow you map short self made commands rather than the default that comes with the compiler interpreter or whatever interface you re working on For example this is an alias i use whenever i m trying to run a unittest in my python projects alias test python m unittest you can see it is much more shorter and saves me the stress of typing everything out repeatedly Creating AliasCreating an alias is pretty straight forward normally user defined alias can be created in either the bashrc or bash aliases files i d personally recommend using the bashrc file for easy organization and referencing The syntax for adding an alias is sudo nano bashrcalias name commandto create an alias you have to indicate with the alias command Flags when working with aliasFlags are optional arguments passed along side a command to perform specific purposes they re not unique to only alias as they are used with almost every cli tool For instance you can print out a list of file within a directory using the ls command additionally you can usels a ls lato get similar but specific outputs Flags are usually accompanied with a or symbol to indicate they are optional There are two common flags when working with alias in linux one is the p flag that prints out all user defined alias in a reuseable format A common use case is running alias pwhich yieldsalias pip pip alias pip pip alias push git push u origin master alias py python alias python python alias run go run alias runapp python manage py runserver alias test python m unittest alias weather curl wttr in on my pc obviously Another common flag is the help flag that returns a help page instructing how to navigate using alias Running alias helpyields alias helpalias alias p name value Define or display aliases Without arguments alias prints the list of aliases in the reusable form alias NAME VALUE on standard output Otherwise an alias is defined for each NAME whose VALUE is given A trailing space in VALUE causes the next word to be checked for alias substitution when the alias is expanded Options p print all defined aliases in a reusable format Exit Status alias returns true unless a NAME is supplied for which no alias has been defined UnaliasingUnaliasing is basically removing a defined alias so that a command can t be reached via it s alias You can unalias a command by running unalias commandNamefor instance i can unalias push in the above alias list by running unalias pushwhen i run push on the terminal again i get pushbash push command not foundobviously this isn t permanent as once the bashrc file is reloaded into the terminal memory again all previously removed commands via unalias are available again To permanently delete an alias you would have to edit the bashrc file and erase that specific command Adding Parameters to Alias with Shell FunctionsI know that dosen t sound right alias do not accept parameters aside their regular pre defined flags So how do we go about a case where we d like to pass arguments to our alias For instance i usually prefer using an aliasbuild NameOfExedir NameOfExe to build golang executables rather than typing go build o NameOfExedir NameOfExe v so i d rather do build bin myproject instead of go build o bin myproject v In situations like this we apply the use of functions although functions might be out of context for our current topic of discussion i find them very useful when working with aliases Functions are commands in linux which are used to create functions or methods Just like in many programming languages functions are re usable chunks of codes that carry out an instruction set There are two ways we can declare functions in bashrc files Using a Function keyword functions can be defined using the function keyword before specifying the function s name Syntaxfunction build Using parenthesis functions can also be defined using the function s name with parenthesis next to it Syntaxbuild Run help function for more information on working with shell functions Back to the above gobuild question we could create an alias that runs the go build functionality and then uses a function to parse the additional parameter i e the location the executable would reside So alias gobuild go build o and then build gobuild v echo Finished building project executable so when i run build bin myprojecti get build bin myprojectFinished building project executableand then when i run ls grep bin ls grep bin binyou can see there s a binary folder containing my project s executable all done using a shell function that calls an alias to run a go build command within a directory of my choosing This is resourceful as i can now use this build function in whichever project i d like to workon ConclusionIn this short article we ve seen how to optimize our development process by using aliases and functions to shorten long terminal commands I hope you enjoyed the article and in the meantime let me know what you think about the article and possibly any amendments that could be made to improve it s user experience thanks for reading and have a great time |
2022-03-26 10:41:51 |
海外TECH |
DEV Community |
How to remove extra javascripts wordpress? |
https://dev.to/readymadecode/how-to-remove-extra-javascripts-wordpress-ikl
|
How to remove extra javascripts wordpress Some times we need to remove some javascript from our wordpress website or blog to speed up our website Here below is a trick which you can use to remove unused js from your wordpress website First of all you have to find the javascript file which you want to remove and to find this open your webpage in google chrome and press ctrl u to view the source code of the webpage then find the script tag of js file and there you will see the id in the script tag and this is what you need to remove the js Now paste the code given below in your functions php file located at root directory path wp content themes your theme functions phpAnd we have used here two wordpress core functions wp dequeue script and wp deregister script Here woocommerce is the id of the script tag which you have found in source code of webpage function wra filter scripts if is home true is single true wp deregister script woocommerce wp dequeue script woocommerce add action wp print scripts wra filter scripts add action wp print footer scripts wra filter scripts Please like share subscribe and give positive feedback to motivate me to write more for you For more tutorials please visit my website Thanks Happy Coding |
2022-03-26 10:13:16 |
海外TECH |
DEV Community |
History of Bitcoin! |
https://dev.to/sarojvrc/history-of-bitcoin-13ig
|
History of Bitcoin Hey Guys Hope all are doing well Awesome So today we will see all about Bitcoin s history starting from its birth Yaa you read it right starting from its Birth Then why wait Let s start Bitcoin s early historyI think you might hear about Bitcoin the protocol has never been hacked but they are wrong Yes Bitcoin has been hacked In it s mentioned on a website that A pseudonymous Satoshi Nakamoto began working on Bitcoin Now let s see further details Aug The website bitcoin org was registered using anomymousspeech com a broker that registers domains on behalf of customers who can choose to remain anonymous This shows how important privacy was to the person or group involved in Bitcoin Oct This is the date when we can say Bitcoin launched officially The Bitcoin whitepaper written under the pseudonym Satoshi Nakamoto was released on an obscure but fascinating mailing list metzdowd com that is much loved by cypherpunks Wikipedia has this to say about cypherpunks Jan The genesis first block was mined On this day Bitcoin s blockchain has formed At that moment the first bitcoins fifty of them were created out of thin air and recorded into its blockchain block zero The transaction that contains the mining reward the so called coinbase transaction contains the text The Times Jan Chancellor on brink of second bailout for banks The text refers to a headline of the UK newspaper The Times Some interesting aside The BTC mined in the first block are unspendable They sit in address but the account holder presumable Satoshi whoever he she or they may be is unable to transfer them to anyone else due to some quirk in the code Jan On this day the version of of the Bitcoin software was released by Satoshi Nakamoto along with its source code With the help of this people can review the code and download and run the software so they can be both bookkeepers and miners Bitcoin was thus accessible to anyone who wanted to download and use it Jan The first Bitcoin payment was made from Satoshi s address to Hal Finney s address in block the first recorded movement of bitcoins Hal Finney was a cryptographer cypherpunk and a coder and some people believe he was partly behind the Satoshi pseudonym Feb It was kind of a historical day for Bitcoin Because the first Bitcoin exchange The Bitcoin Market was created by bitcointalk org forum user dwdollar Previously people traded bitcoins but in a relatively unstructured way in chat rooms and messages boards May It s Pizza day for Bitcoin This was the first documented time bitcoins were used to pay for something in the real world Laszlo Hanyecz a programmer in Florida USA offered to pay BTC for a pizza on the bitcointalk forum I love Pizza btw just kidding Jul Jed McCaleb who has more recently founded Steller a cryptocurrency platform based on Ripple converted his card trading exchange into a Bitcoin trading exchange It s interesting right Great Let s see some history more Aug It was kind of a black day for Bitcoin On this day Bitcoin s protocol got hacked A potential vulnerability was discovered and someone exploited this vulnerability in block to create billion bitcoins for themselves This strange transaction was quickly discovered and with the consent of the majority of the community the whole blockchain was forked reverting it to a previous state If anyone says Bitcoin hasn t even been hacked ask them What about the integer overflow bug in August where someone sent themself billion bitcoins Sep The first mining pool Slush s pool lined its first block A mining pool is an organization where multiple participants combine their hash power to give themself a better chance of winning a block The participants split the reward between them in proportion to their hash power contributions Jan BTC were exchanged for This is probably the highest exchange rate between Bitcoin even achieved However these dollars were Zimbabwean dollars Feb On this day Mt Gox Bitcoin exchange Bitcoin reached parity with the US dollar i e BTC USD Apr VirWox a website that allowed customers to convert between fiat currencies and Linden Dollars the virtual currency for use within the computer game integrated Bitcoin People could now exchange directly between bitcoins and Liden Dollars This is possibly the first virtual currency to virtual currency exchange Jun WIRED magazine published a famous article Underground website lets you buy any drug imaginable written by Adrian Chen It described a website called The Silk Road launched in Feb and run by twenty seven year old Ross William Ulbricht under the nickname Dread Pirate Roberts The Silk Road was described as a kind of eBay for drugs Jun Possibly the first documented evidence of a physical brick and mortar merchant accepting Bitcoin as a means of payment Room a restaurant based in Berlin Germany sold fast food for bitcoins Sep Mike Caldwell started creating physical bitcoins which he called Casacius coins They are physical discs of metal each with a unique private key embedded behind a hologram sticker Each coin s private key is linked to an address that is funded with a specified amount of bitcoins as depicted on the coins May Satoshi Dice was a gambling website launched on April Users could send bitcoins to specific addresses with a chance of winning up to times their original stake Each address had a different payout and a different chance f winning On May it became responsible for over half of the transaction volume in the Bitcoin blockchain Nov Bitcoin s first block reward halving day On block the block reward from BTC to BTC slowing the rate of generation of bitcoins Transaction fees then were insignificant so this halving day reduced y half of each block s financial reward for miners May The first two way Bitcoin ATM was launched in San Diego California This was a machine where you could buy bitcoins or sell your bitcoins for cash This sparked a wave of one way Bitcoin ending machines and two way Bitcoin ATMs being installed around the world Jul This month the first Bitcoin ETF Exchange Traded Fund proposal was filed with the United States of Securities and Exchange Commission An ETF could make an investment into Bitcoin more accessible to the public as many funds are allowed to buy ETFs but not bitcoins directly Aug Bitcoin was classified as a currency by a judge in Texas USA his was one of many arguments and determination of heat Bitcoin is Currency Property A Security Some other financial Assets A New Thing There is still no global definition and there may never be a globally consistent one Aug Bitcoin s price became searchable through Bloomberg software which is popular with traders in traditional financial markets Bloomberg used the ticker XBT to represent Bitcoin consistent with I currency code standards Aug Bitcoin was ruled private money in Germany with tax exemption if held for more than a year The tax treatment of bitcoins and cryptocurrency is a major point of contention especially in the US where the buying ad selling of bitcoins attracts capital gains Nov Richard Branson owner of Virgin Galactic announced he would accept bitcoins as payment for a flight t space Bitcoins and space travel what a great time to be alive Here we have reached the end of the history of BitcoinI know you found it interesting Great That s my job Again thanks for reading this out See you with a new article Still have any issues feel free to connect with me on LinkedIn Twitter |
2022-03-26 10:07:31 |
海外TECH |
Engadget |
Gene losses allow vampire bats to live solely on a diet of blood |
https://www.engadget.com/gene-losses-allow-vampire-bats-diet-of-blood-102833056.html?src=rss
|
Gene losses allow vampire bats to live solely on a diet of bloodWhile bats have been closely associated with vampires for centuries there are actually only three species of bats that drink blood Most of them eat fruits insects nectar and small animals like frogs and fish instead Blood is low in calories while being rich in iron protein and little else making it a terrible terrible food source Now a team of scientists has figured out how and why those vampire bat species are the only mammals that can live solely on a diet of blood Upon comparing the genome of common vampire bats to other species the scientists found genes in the blood sucking mammals that either no longer work or are missing Three of those losses had been reported in another study published in with all of them indicating a reduced sense of taste reception in vampire bats The remaining gene losses are new discoveries according to the team The loss of a gene called REP indicates enhanced iron uptake in the animals gastrointestinal cells which they also shed and excrete quickly This prevents iron overload that can have severe detrimental effects The absence of two other genes allow glucose to remain longer in the bats bodies and prevent hypoglycemia since blood contains minimal carbohydrates Another absent gene might also be the consequence of the quot extensive morphological and physiological modifications quot in the stomach of common vampire bats Instead of being a muscular organ their stomachs are expandable structures used to store large amounts of liquid and serve as a major site of fluid absorption nbsp The loss of one gene even contributed quot to the evolution of vampire bats exceptional social behaviors quot Since they can t survive too long without feeding seeing as blood is very low in calories vampire bats can regurgitate their meals and share with others They can also keep track of who shared with them in the past and will extend extend help to them in the future if needed Hannah Kim Frank a bat researcher at Tulane University told AP quot It s totally bizarre and amazing that vampire bats can survive on blood ーthey are really weird even among bats quot The study revealing the loss of genes that allow them to live off blood doesn t make vampire bats any less weird or intriguing You can read the whole study in the Science Advances journal |
2022-03-26 10:28:33 |
ニュース |
BBC News - Home |
P&O Ferries ship detained over crew training concerns |
https://www.bbc.co.uk/news/business-60881550?at_medium=RSS&at_campaign=KARANGA
|
staff |
2022-03-26 10:24:27 |
ニュース |
BBC News - Home |
Black man 'not dressed for climate' searched by Met police |
https://www.bbc.co.uk/news/uk-england-london-60882083?at_medium=RSS&at_campaign=KARANGA
|
weather |
2022-03-26 10:07:10 |
サブカルネタ |
ラーブロ |
旭川 Coffee & Lunch 解放区 あれこれ |
http://ra-blog.net/modules/rssc/single_feed.php?fid=197601
|
coffeeamplunch |
2022-03-26 10:15:45 |
北海道 |
北海道新聞 |
高安2敗で若隆景と並ぶ、春場所 琴ノ若1差、正代かど番脱出 |
https://www.hokkaido-np.co.jp/article/661592/
|
単独首位 |
2022-03-26 19:32:10 |
北海道 |
北海道新聞 |
ロシア、東部の制圧優先に転換 都市部の戦況膠着で |
https://www.hokkaido-np.co.jp/article/661599/
|
都市部 |
2022-03-26 19:33:00 |
北海道 |
北海道新聞 |
富山で住宅火災、9棟焼く 暴風警報発令中 |
https://www.hokkaido-np.co.jp/article/661598/
|
富山県小矢部市浅地 |
2022-03-26 19:33:00 |
北海道 |
北海道新聞 |
犯罪被害者への補償充実を 再結成「新あすの会」 |
https://www.hokkaido-np.co.jp/article/661597/
|
犯罪被害者 |
2022-03-26 19:33:00 |
北海道 |
北海道新聞 |
国内感染4万7338人 101人死亡、コロナ |
https://www.hokkaido-np.co.jp/article/661596/
|
新型コロナウイルス |
2022-03-26 19:32:00 |
北海道 |
北海道新聞 |
東日本から北日本で荒天 強風や大しけに警戒を |
https://www.hokkaido-np.co.jp/article/661577/
|
警戒 |
2022-03-26 19:32:26 |
北海道 |
北海道新聞 |
全仏仕様のクレーコート完成 東京、錦織や伊達さんも期待 |
https://www.hokkaido-np.co.jp/article/661595/
|
伊達さん |
2022-03-26 19:29:00 |
北海道 |
北海道新聞 |
胆振98人感染 日高は7人 新型コロナ |
https://www.hokkaido-np.co.jp/article/661589/
|
新型コロナウイルス |
2022-03-26 19:14:00 |
北海道 |
北海道新聞 |
余市―小樽 バス転換合意 道と3者協議後一問一答 「利便性 道が努力確約」余市町長 「前倒しなら 沿線協議」小樽市長 |
https://www.hokkaido-np.co.jp/article/661586/
|
一問一答 |
2022-03-26 19:06:55 |
北海道 |
北海道新聞 |
後志管内50人感染 小樽は18人 新型コロナ |
https://www.hokkaido-np.co.jp/article/661535/
|
新型コロナウイルス |
2022-03-26 19:00:51 |
コメント
コメントを投稿