python |
Pythonタグが付けられた新着投稿 - Qiita |
各言語の便利な機能のメモ |
https://qiita.com/eurogrve/items/435f4e4c0cf33f4002f3
|
各言語の便利な機能のメモ複数のプログラミング言語でコードを書いていると、忘れてしまうので備忘録※文法エラーはご容赦ねがいます。 |
2021-10-17 01:04:57 |
Program |
[全てのタグ]の新着質問一覧|teratail(テラテイル) |
SQLServer NULLを含めて、データを取得するには |
https://teratail.com/questions/364766?rss=all
|
SQLServerNULLを含めて、データを取得するにはSELECTnamepricedayFROMmybookWherenotpricepriceがのものを除いて、取得したいのですが、訳あってpriceがNULLのものも取得したいです。 |
2021-10-17 01:11:20 |
Program |
[全てのタグ]の新着質問一覧|teratail(テラテイル) |
ボックスサイズを3等分にしたい |
https://teratail.com/questions/364765?rss=all
|
widthnbspnbspcalcnbspnbsp |
2021-10-17 01:09:16 |
AWS |
AWSタグが付けられた新着投稿 - Qiita |
# VPSって別にAWSじゃなくてもよくない?②:お金の話 |
https://qiita.com/syakesaba/items/6cbee9e9b7417c578c7e
|
使用しているクレジットカードが銀行為替手数料としてとなっている場合、円となる。 |
2021-10-17 01:19:38 |
Git |
Gitタグが付けられた新着投稿 - Qiita |
【git】github入門に公開鍵認証を補足してみる【初心者殺し】 |
https://qiita.com/hemuwan-kazu/items/44c77ecc90c541a79f94
|
【参考】①GitHubの導入基本操作forWindows②Git・GitHub】gitcloneが認証エラーで失敗する場合の対応手順③gitpushの接続方式をhttpsからsshに切り替える④GitHubでssh接続する手順公開鍵・秘密鍵の生成から⑤【超入門】初心者のためのGitとGitHubの使い方⑥Gitの設定をgitconfigで確認・変更全体の流れgithubにて、リモートリポジトリと紐づけるためのリポジトリを作成。 |
2021-10-17 01:40:06 |
海外TECH |
DEV Community |
A Vim Guide for Expert Users |
https://dev.to/phantas0s/a-vim-guide-for-expert-users-137b
|
A Vim Guide for Expert UsersThis article is the sixth of the series aimed to teach Vim from the ground up Vim for BeginnersVim for Intermediate UsersVim for Advanced UsersVim for Adept UsersVim for Veteran UsersVim for Expert UsersYou re now in your garden sitting down in your favorite chair contemplating a fabulous table full of the tastiest food While delighted by your fantastic breakfast a fresh breeze refresh your warm skin in this hot summer day You hear the little birds singing in unison The vivid smell of the young grass and the delicate and subtle aroma of your tea fill your nostrils Everything is in perfect harmony all your annoyances problems or negative thoughts are far away from this pure state of bliss Suddenly you hear a strong and imposing voice from the sky The clouds move quickly You re flabbergasted almost falling from your chair you recognize the logo of the Sacred Vim formed by the cloud The voice which was only a growl begins to speak My sweet friend The time has come You are now ready to begin the final step of your enlightenment You will receive the Word of Vim A bright and supernatural light break through the cloud and hit your table You suddenly understand The Truth of Vim Quickly you take a bunch of napkins and begin to write with some strawberry marmalade all the knowledge which is given to you at this precise moment This article is a transcript of what was called later the Napkins of Power It helps customize Vim even further More precisely we ll see Special arguments you can use for your mappings How to create operator pending mappings The command execute and its benefits when combined with the command normal What are autocommands and autocommand groups Why and how to create custom functions What are user commands and how to use them What special strings you can use in your commands A complete example to illustrate most of the ideas described in this article We ve covered many Vim functionalities since the beginning of this series of article and this new one add even more on these foundations But it can be daunting to try to add everything to your workflow at once instead it s better to add what can help you in your daily workflow You can create a virtuous circle pick a new and useful functionally use it in your day to day workflow and when you feel comfortable with it reiterate Are your ready to receive The Expertise The knowledge of this article is dangerous use it with care always to make the world a better place Verbose CommandsThe more pieces of configuration and plugins you ll add to Vim the more you ll wonder where they ve been created in your config files The command verbose can help you it will output at what line of what file a precise configuration have been declared More precisely verbose can output the declarations of AbbreviationsOptionsMappingUser commandsFor example I ve set the option undodir in my vimrc If I run verbose set undodir I ll get the following output Last set from config nvim init vim line Keeping your configuration well organized and simple is the best strategy But everything gets messy overtime especially when experimenting with new configuration or plugins I don t use verbose often but when I need it I m always happy to have it Vim Help help verbose cmd Mapping Special ArgumentsWe ve seen the basics of mapping in a previous article but we didn t speak about the special arguments it can take Most of them can be used for abbreviations too Here are the most useful ones lt silent gt Doesn t output the mapping in the Vim command line If you want to also drop the output of the command linked to the mapping add the command silent lt buffer gt The mapping s scope is reduced to the current buffer only These mappings have the priority on the global ones lt expr gt The mapping executes a Vimscript expression instead of a Vim command lt unique gt The mapping fails if it already exists It s useful if you don t want to override any mapping defined previously lt Cmd gt The mapping can run a command without quitting the current mode you re in A special argument should be used as first argument for any mapping or abbreviation The argument lt Cmd gt is an exception it should be used just before the command itself To understand how it works let s take some examples nnoremap lt silent gt lt leader gt lt f gt source MYVIMRC lt CR gt The command source MYVIMRC won t be displayed in the Vim command line when hitting LEADER F iab lt expr gt cdate strftime Y m d The Vimscript function strftime is executed when the abbreviation cdate is used inoremap lt c d gt lt Cmd gt delete lt cr gt Execute the command delete without leaving INSERT mode nnoremap lt leader gt lt f gt silent source MYVIMRC lt CR gt The output of the command source MYVIMRC will be dropped thanks to the command silent We ll see a use case for the special argument lt buffer gt below Vim Help help map arguments Operator Pending MapOperators are NORMAL mode keystrokes which need to be combined with motions or text objects For example d c or y are operators I ve written about them in the very first article of this series Vim lets you set a new motion for all existing operator with the command onoremap For example onoremap ic i We ve created here a new motion ic to use an operator inside curly brackets You can try it out to delete the content between two curly brackets for example by Placing the cursor inside the curly brackets Hitting dic in NORMAL mode The motions created with onoremap always begins where your cursor is That s why we need to place our cursor inside the curly brackets in our previous example But it would be even better if we could act on the next curly brackets without worrying where the cursor is The following command will make this dream a reality onoremap nc normal f vi lt cr gt Let s look at this example more closely normal Execute keystrokes as if you were in NORMAL mode see Vim for Advanced Users f find the next curly bracket on the line see Vim for Beginners vi Switch to VISUAL mode and select inside the curly brackets lt cr gt Key notation for the ENTER key carriage return see Vim for Intermediate Users The operator will be applied on the selection made in VISUAL mode To illustrate this idea let s look at the following content My super┃line with curly brackets The symbol ┃ represents the cursor position If you hit the keystroke dnc you ll delete what s inside the next curly bracket The result will be My super line The cursor will end up on the last curly bracket Vim Help help omap info The Command ExecuteLet s look again at the mapping we ve set above onoremap nc normal f vi lt cr gt The key notation lt cr gt is considered a special character when you create a mapping It works with mappings but it won t work with the normal command by itself For example you can try to run the following to replace the next occurrence of emacs with vim normal emacs lt cr gt ciwvimThis time Vim doesn t recognize lt cr gt as a special character so the command won t work To go around this limitation you can use CTRL V see Vim for Adept Users In that precise case we would need to hit CTRL V ENTER while writing our command We would end up with something like this normal emacs MiwvimThe command execute can solve our problem in a more elegant way It lets you execute a command from a string You can then use string constants for these special characters all prefixed with a Here s an equivalent of our silly example execute normal emacs lt cr gt ciwvim All the key notations you can use with map or abbreviate have their string constant equivalents When you give multiple arguments to execute they re concatenated into one string and separated with spaces If you don t want the spaces use a dot instead For example execute echo this is a str ing The output will be this is a string Vim Help help execute help expr quote Autocommands BasicsAutocommands can automatically run a command when a specific event happens More precisely it adds a command to a list of command linked to a precise event When this event is fired every command of the list of commands are executed An event can be opening Vim reading any file or writing a markdown file for example Here are the basics to manipulate autocommands autocmd lt event gt lt pattern gt lt cmd gt or au lt event gt lt pattern gt lt cmd gt Add the command lt cmd gt to the list of commands executed automatically when the event lt event gt is fired The pattern lt pattern gt filter the files where the autocommand should be applied autocmd lt event gt or au lt event gt Output the list of commands executed when the event lt event gt is fired autocmd lt event gt or au lt event gt Delete the list of autocommands of the event lt event gt To clarify all this jargon here are some examples autocmd BufWrite echom Write Output Write each time any file is saved The wildcard means every file autocmd BufNew md echom Read Output Read each time a new markdown buffer is created Unsurprisingly The pattern md means every filename finishing with md After running these commands you can try to write a file command w to see if it works If you don t see the message in the command line run messages to display them Multiple Events and PatternsYou can also create an autocommand with more than one event or pattern separated with a comma For example autocmd BufNew BufWrite md js php echom Create or write md js or php The command echom Create or write md js or php will run when a markdown JavaScript or PHP buffer is created BufNew or saved BufWrite Note that the pattern can be a bit different depending on the events you listen to For a description of all events available see help autocommand events Finally if you want the scope of the autocmd to be limited to the current buffer you can use the special pattern lt buffer gt Autocommand Groups Why Using Autocommand Groups As the name indicates an autocommand group is a group of one or more autocommands When you create an autocommand as we did above it s added automatically to a default autocommand group without a name You can create autocommand groups with names and add autocommands to it too You can think of it as namespaces for autocommands To understand this concept let s see where it s useful to use autocommand groups As we saw each time you create an autocommand it s added to the list of command triggered when a specific event occurs even if this command is already part of the list Let s look at an example First let s add this autocommand to your vimrc autocmd BufWritePre echom Write You can then try the following Source your virmc twice by running source MYVIMRC twice Run autocmd BufWrite This last command will output the list of commands executed when the event BufWrite is triggered It will output something like this BufWritePre echom Write echom Write The command echom Write appears two times in the command list for the pattern As a result each time the event occurs on any file the command will run two times More often than not we want to add our commands to the command list only once Otherwise it will impact performances each time the event is fired and if the command is not idempotent nasty bugs will pop up Using autocommand groups can solve this problem Here are the basic commands you can use to manipulate these groups augroup Output all autocommand groups augroup lt name gt or aug lt name gt Call a new autocommand group named lt name gt All autocommands created after this command will be part of the group augroup lt name gt or aug lt name gt Delete the group named lt name gt augroup END End the autocommand group If you define an autocommand after this one it won t be part of the group As always here s an example augroup messages autocmd BufWrite echom Write augroup ENDThe autocmd is now part of the autocommand group messages By itself it doesn t solve our problem If you add the three lines above in your vimrc and source multiple times the autocommand in the group messages will be added to the autocommand list each time We saw above that you can delete autocommands with the command au lt event gt This will work if the autocommand is not in a named group If you run au BufWrite for example it will delete every autocommand in the nameless autocommand group the default one but not the one in the group messages we ve created above To solve our problem we could delete every autocommand belonging to the group messages after creating the group itself augroup messages au messages autocmd BufWrite echom Write augroup ENDIf these lines are in your vimrc and you source it three times every autocommand will be deleted from the group messages each time before being added again In short our problem is solved the command echom Write will always appear once and only once in our list of command When we use au between the initialization of the group augroup messages and the end of the initialization augroup END we don t have to indicate the name of the group Vim will understand in that case that we want to delete every autocommand of the group declared just before In short the following commands are equivalent to the ones above augroup messages au autocmd BufWrite echom Write augroup ENDRedeclaring an autocommand group won t recreate it but it will add autocommands in the existing group instead For example you can do something like that augroup vimrcau augroup ENDaugroup vimrc autocmd BufWrite echom Write augroup ENDTwo things happen here A group vimrc is declared Autocommands are declared and added to the group vimrc In short every autocommand added to the group vimrc is merged with the command au You can even do better when you create an autocommand you can add it to an existing group directly To do that you can indicate the name of the group just between the command autocmd and the event name as follows augroup vimrcau augroup ENDautocmd vimrc BufWrite echom Write You re now able to reload your vimrc as much as you want your autocommands will only appear once in the autocommand list It applies for other sourced files too like the ones you might have in your folder ftplugin for example Ignoring EventsIf you want to run a command without firing any event you can use the command noautocmd To take our previous example if you want to ignore the event BufWrite when running the command w you can run the following noautocmd w Vim Help help autocmd help autocommand events help autocmd events abc Custom FunctionsWriting custom functions for Vim to make your craziest dreams come true should be the goal of any Vim Follower out there It s true that many functions are already available on the infinite Internet You can simply copy and paste them without worrying how they work That said knowing the basics of Vimscript functions can allow you to adapt them to your needs Checking Existing FunctionsLet s see first how you can display the functions already available function or fu List all declared function function lt pattern gt or fu lt pattern gt Filter all declared functions with the pattern lt pattern gt Creating Or Copying FunctionsLooking at a simple function will help us understand how they work Here s one function DeleteTrailingWS abort normal mz s v s ge normal zendfuncThis function delete trailing whitespaces in a whole buffer Let s look at it in more details function Keyword to declare a function You can add a bang function to overwrite a previously declared function with the same name DeleteTrailingWS Name of the function It should always begin with an uppercase letter abort Stop the function when an error occurs Be careful if you use function with a bang you might overwrite a function from one of your plugin It can open the door to random bugs difficult to fix If you look at the body of our function they are simply Vim commands They are executed in order normal mz Save the cursor position using the mark z s v s ge Delete every whitespace in the current buffer using the substitute command Range for the whole buffer v Use the very magic mode s Represent any whitespace Flag e Doesn t output an error if the search pattern fail normalz Go back to the mark z the cursor position when the function was invoked I ve already written about all these commands in Vim for Advanced Users For more details about Vim regexes see Vim for Adept Users You can then call the function using the command call as follows call DeleteTrailingWS You can also create a new mapping for some of your function if you want to nnoremap lt leader gt ds call DeleteTrailingWS Autoloading FunctionsYou can create function in your vimrc directly as we did above but it might create some problems Imagine that the name of the function conflict with a function from one of your plugin the bugs occuring can be difficult to debug Additionally all the functions declared in your vimrc will be automatically loaded when you open Vim even if you never use them It would be more efficient to load them when you call them the first time It s where the autoload folder comes in handy This folder is located in the Vim s runtime paths When Vim needs to find something it will look at the Vim s runtime paths The folder containing your vimrc is one of these paths for example To display all of them you can run the command set runtimepath The folder autoload is one of these paths too Any function created in this folder will have namespaces and they will be loaded on demand Exactly what we want You can create the autoload folder where your vimrc is Then you can create Vimscript files in there the name of the file will be the namespace for your functions For example you can create the file general vim in the autoload folder Then you can write in the file the following function function general DeleteTrailingWS abort normal mz s v s ge normal zendfuncWhen you call the function with call general DeleteTrailingWS Vim will Look inside the autoload directory for a file called general Search for a function called DeleteTrailingWS inside this file Load and execute the function Additionally you can easily display every function for the namespace lt namespace gt by running the command function lt namespace gt For example if you want to display all the functions for the namespace general run function general For more fine grained namespaces you can add sub directories in the autoload directory For example you can create the following autoload my super namespace vimThen you ll need to add the namespace my super namespace to the functions you create in the file namespace vim For example function my super namespace DeleteTrailingWS abort normal mz s v s ge normal zendfunc Vim Help help functions help autoload function help call help runtimepath User CommandsNow that we re able to create our own functions what about increasing our power with our own custom Vim commands We ll then be able to run these user commands using the COMMAND LINE mode like any other command BasicsLike functions custom user commands should always begin with an uppercase letter to differentiate them from Vim s built in commands Continuing our ritual here are three useful commands to manipulate user commands command or com Output all user commands command lt command gt or com lt command gt Output all user commands starting with lt command gt command lt attributes gt lt name gt lt cmd gt or com lt attributes gt lt name gt lt cmd gt Define a new user command with the name lt name gt running the command lt cmd gt The attributes lt attributes gt indicate the number of arguments among other things Similarly to custom functions you can add a bang when you declare a command command In that case if a command already exists with the same name it will be overwritten Attributes for User CommandsThere are four different categories of attribute you can use when creating a user command Argument handlingRange handlingCompletion behaviorSpecial casesWe ll only cover the most important one in this article the argument handling It allows us to specify the number of argument a user command can take with the attribute nargs nargs No argument allowed default nargs One argument is required nargs Any number of arguments allowed nargs or argument allowed nargs One argument or more are required To indicate where the arguments should be inserted in the command you need to use the placeholder lt args gt For example you can write the following in your vimrc function IScream content echom toupper a content endfunctioncommand nargs Scream call IScream lt args gt As you can see you can call the arguments of a function in its body using a lt arg name gt To try your new user command source your vimrc with source MYVIMRC and run the following Scream hello When a user command call a function which can take multiple arguments you need to separate them with whitespaces and use the placeholder lt f args gt instead of lt args gt If there is only one argument allowed Vim will consider the whitespace as part of the argument itself Finally if you need your user command to be only available in the current buffer you can also add the attribute buffer It s mandatory if you create user commands in your runtime folder ftplugin Vim Help help user commands Special Strings for Vim CommandsLet s now look at special strings you can use in COMMAND LINE mode These placeholders will be replaced under the hood with their representations Here s a list of the most useful ones Relative path of the current file lt cword gt Word under the cursor lt cWORD gt WORD under the cursor lt cfile gt Filepath under the cursor lt afile gt File open in the buffer when executing autocommands lt sfile gt Filename of sourced file when used with command source You can also use the following with p Output the absolute path instead of the relative one Also expand the tilda to the home directory Make the file path relative to the working directory Make the file path relative to the home directory if possible h Keep the head of the file path remove the last element t Keep the tail of the file path remove everything except the last element r Keep the root of the file name remove its extension e Remove everything except the extension of the filename s pat sub Substitute the first occurrence of pat with sub gs pat sub Substitute all occurrences of pat with sub These special strings only work when a command expects a filename as argument as a result it makes this functionality quite limited Fortunately You can use the function expand lt special string gt to expand these placeholders in any command For example you can try to run the following echom expand echom expand p echom expand lt cword gt Here s a more useful example we already saw in the article Vim for Advanced Users nnoremap gX lt silent gt execute xdg open expand p h expand lt cfile gt amp lt cr gt You should now be able to understand this command lt silent gt The mapping won t appear in the command line when used execute Execute a string as a Vim command expand p h Output the head of the absolute path expand lt cfile gt Output the filepath under the cursor in the current buffer In short this mapping will open the relative filepath under the cursor using the CLI xdg open This command shouldn t take more than one line but the backslash allows us to write it on two lines for a better readibility Its fancy name is line continuation symbol If you re used to write shell scripts remember that the line continuation symbol is not at the end of the line but at the beginning of the next one Vim Help help cmdline special help line continuation A Complete ExampleLet s summarize most of what we saw in this article with a final example We want to Create the user command DevDocs This command will automatically open the website and search the word under the cursor Map the command to lt leader gt D in NORMAL mode This mapping will be available for python ruby JavaScript go html and PHP filetypes Here s a possible solution augroup vimrc autocmd augroup ENDcommand nargs DevDocs call system xdg open q lt args gt autocmd vimrc FileType python ruby javascript go html php nnoremap lt buffer gt lt leader gt D execute DevDocs expand lt cword gt lt CR gt We first declare an autocommand group vimrc We declare the user command DevDocs accepting or argument We declare an autocommand linked to the event FileType We indicate the filetypes which will trigger the autocommand We use the special argument lt buffer gt to make the mapping only available in the current buffer Without that the mapping would be available in every buffer regardless of the filetype The autocommand use expand lt cword gt which is replaced by the word under the cursor The event FileType can be useful to assign precise mappings to a whole range of filetypes We need with this event to give filetypes as autocommand patterns like python or ruby for example Remember that you can output the filetype of the current buffer with set filetype The binary xdg open is only available for Linux based systems If you want the autocommand to work on macOS too you can use the following command nargs DevDocs call system type open amp gt dev null amp amp open q lt args gt xdg open q lt args gt The autocommand verifies if the binary open exists for macOS and if it doesn t it uses xdg open Take Control of Your Vim DestinyCreating your own functions commands and mapping for tedious operations will help you focus on more important tasks Additionally you ll bring more efficient in your whole workflow How great is that Let s summarize what we saw in this article You can use the command verbose to output where an abbreviation option mapping or user command is defined Special arguments are available for your mappings to extend its power Operator pending map allow you to define motions for operators The command execute can execute a string as if it was a command Autocommands can run a defined command when an event is triggered You can use autocommand groups to organize your autocommand Autocommand groups are mandatory if you don t want to add multiple times the same command in the autocommand list It can happen when a Vimscript file is loaded multiple time like your vimrc Custom functions can execute numerous Vim commands one after the other It s better to autoload custom functions to be able to use namespaces and for Vim to start quicker User commands are commands you can personalize for your own needs A last tip if you want the list of Vimscript functions you can use split in different category like Variables or Date and Time you can look at help function list Learning to Play Vim A Fun Guide to Learn the Best EditorI began to write a very ambitious guide to learn Vim from the ground up Thanks to great feedback from my readers I ll be able to address the problems many beginners complain about when learning Vim For example How to navigate in multiple files and projects in Vim How to debug in Vim How to search find and replace This guide will explain the most useful vanilla functionalities as well as some powerful plugins which will enrich your experience Help me make an impact in the Vim world You can subscribe to the newsletter and tell me everything you want to see in the book Early bird discount guarantees I reply to every email personally so don t hesitate to ask as many questions as you want It s always a pleasure to help Last but not least I ve also written a book about building your own Mouseless Development Environment so if you re interested by that too click on this shiny link |
2021-10-16 16:07:46 |
海外TECH |
DEV Community |
3 Step Guide to Mine Crypto with your CPU in 2021 |
https://dev.to/courseprobe/3-step-guide-to-mine-crypto-with-your-cpu-in-2021-2k1d
|
Step Guide to Mine Crypto with your CPU in After reading this post you will be able to generate some extra income using your computer instead of having it on idle on that fancy desk of yours Before you begin you need to know there are few precautions you have to take into account and I will talk about them in more detail at the end of the article so I recommend you read that section before you start CPU mining You might be asking yourself if this is worth trying and which coins could you efficiently mine with your CPU Following the guidelines described in this post you will be able to mine with your CPU EthereumCardano ADASolanaRavencoinEthereum ClassicShiba InuDogeBinance BNBPolygon Matic and many more coins How is this possible I thought these coins were supposed to be mined with ASICs or GPUS Keep reading below STEP Get yourself a Wallet I recommend you installing Metamask as a Chrome extension you can get it at metamask ioMake sure you connect the Binance Smart Chain network to metamask Google the instructions or get them from this link Binance AcademyYou could also get Exodus or Atomic Wallet for you to get some other coin addresses without any hassle Select the Binance Smart Chain in Metamask and copy your address STEP Download XMRIg from GithubYou could go to the xmrig site to download the latest version or from the oficial github repository Once you download the latest version you would have to edit a file named pool mine example bat Inside this file you need to modify lines It could look similar to this cd dpxmrig exe o rx unmineable com u SHIB xebaAdbDafECccCc wini exd wmzl p xpauseIn the second line after the o you can see the Pool URL in this case all you have to do depending on your location is to use one of the following URLs select the one closer to your location USA rx us unmineable com Europe rx eu unmineable com Asia rx asia unmineable com Then the third line is where you will enter your wallet s public address copied in STEP place it after the SHIB and before the first dot The general structure of the address needs to be COIN Wallet address workerID Code to lower mining fee The workerID is any name you want to give to each computer where you are running the miner so it can easily be identified later on under the pool stats The code after the is important because mining with that code will drop the Mining Fee from to it makes a difference You can start mining using that code exd wmzl Run the file as an administrator If everything goes well you are now running XMRig and are mining Congrats Step Log into Unmineable to check your statsUnmineable com is a mining Pool which allows you to mine with your CPU using RandomX and pay you in any coin you select Remember when you set up the address inside the XMRig config file Well there you just let Unmineable know the coin you want to be paid in in this example SHIB and then the address where they will transfer the mined coins In order to check your balance log into Unmineable and then select the coin you want to mine In this example SHIB Then you can select the Tab that reads RandomX and enter your address in the box that reads Enter your address to check your stats After doing this you will see the balance on your account and you will even be able to request a payment Congrats you are a miner now I recommend downloading some software to monitor the running temperature of your CPU a good and free one is Hardware Monitor Try not to exceed the temperature more than degrees celsius In case you are mining with a laptop change the thermal paste of your CPU get it cleaned inside and get some heat extractors for laptops If you take care of the temperature your computer should work very well the amount of coins you can mine will depend on the hashrate of your CPU If you are looking for more information there s a good guide in a PDF ebook and is Free get it at Download the PDFDisclaimer The content of this article is for educational purposes only I won t be responsible for any malfunction on your hardware try this under your own risk |
2021-10-16 16:03:45 |
海外TECH |
Engadget |
McDonald's will trial its plant-based burger in the US on November 3rd |
https://www.engadget.com/mc-donalds-trial-run-us-mcplant-164512755.html?src=rss
|
McDonald x s will trial its plant based burger in the US on November rdYou may soon be able to give McDonald s plant based burgers a try The fast food chain will offer the McPlant at eight restaurants across the US starting on November rd and until supplies last It s a limited time trial run for the burger and it s supposed to help the company figure out how having the item in its menu will impact its kitchen operations nbsp The burger s patty is made with Beyond Meat plant based meat It s supposed to be different from the company s patties offered by Carl s Jr Del Taco and other fast food chains though because Beyond Meat co developed it with McDonald s itself Back when the McPlant was first announced the fast food giant said it quot delivers its iconic taste in a sink your teeth in and wipe your mouth kind of sandwich It s made with a juicy plant based patty and served on a warm sesame seed bun with all the classic toppings quot While McDonald s didn t mention the exact locations of the stores that will sell the McPlant it said that they can be found in Irving and Carrollton Texas Cedar Falls Iowa Jennings and Lake Charles Louisiana and El Segundo and Manhattan Beach California McDonald s is also trialing the burger in other countries including Sweden Denmark the Netherlands Austria and the UK While the McPlant is simply a burger for now McDonald s previously said that it could represent a whole line of plant based menu items in the future including chicken substitutes and breakfast sandwiches nbsp |
2021-10-16 16:45:12 |
海外TECH |
Engadget |
Analogue Pocket's OS is meant as the 'definitive' platform for retro games |
https://www.engadget.com/analogue-pocket-os-retro-gaming-162028559.html?src=rss
|
Analogue Pocket x s OS is meant as the x definitive x platform for retro gamesAnalogue s Pocket handheld won t arrive until late this year but the company is betting that its software will be worth the wait TechCrunchnotes the company has detailed AnalogueOS the platform the Pocket and future Analogue devices will run ーand it s pitched as nothing less than the quot definitive quot OS for retro games a way to showcase classics that haven t always received the kindest treatment Rather than simply play cartridge games the Pocket and future hardware will tap into a library that provides all the useful data surrounding a game ranging from box art and publisher data to guides Pop in a cartridge and you ll learn about that particular version of a game You might know if you scored a Nintendo World Championship cart or a bootleg for instance That database in turn will help you browse your library and even create quot playlists quot to share with fellow nostalgic gamers who can buy the same cartridges that is AnalogueOS will also track your play time and let you remap controls or enable Bluetooth gamepads The Pocket will enable save states for cartridge games which can be helpful if you re trying to recreate a thandheld s original experience This approach is meant for a particular variety of retro gamer focused on physical copies and authenticity It s not as convenient as the digital downloads of say the Switch Online Expansion Pack If it succeeds though it could shake up the category Much of the information for vintage games is scattered across websites code and even books Analogue could put all that knowledge in a central location albeit one limited to the most devoted players Introducing Analogue OS Analogue OS is the start of something big At its heart Analogue OS is purpose built for exploring and celebrating all of video game history Designed to be the definitive scholarly operating system for playing and experiencing the entire medium pic twitter com YOvgijVーAnalogue analogue October |
2021-10-16 16:20:28 |
海外TECH |
Engadget |
ICYMI: The Apple Watch Series 7 makes the most of its bigger screen |
https://www.engadget.com/icymi-the-apple-watch-series-7-makes-the-most-of-its-bigger-screen-160058245.html?src=rss
|
ICYMI The Apple Watch Series makes the most of its bigger screenThis week we ve got our regular gadget reviews plus our thoughts on a forthcoming video game Cherlynn Low strapped on the Apple Watch Series to see how it compares to the previous version and to find out how much of a difference the larger screen makes Igor Bonifacic tested the Motorola Edge smartphone and found it offers a lot of high end features ーincluding a Hz display ーat a budget friendly price Terrence O Brien played with the effects and inputs on the Roland SP MKII and reported that it makes chopping samples more fun Finally Jess Conditt sat in the virtual driver s seat to play Forza Horizon a game she declares a perfect getaway in a time of travel restrictions The Apple Watch Series is bigger and betterCherlynn Low EngadgetCherlynn Low acknowledges that the main difference between the Apple Watch Series and the previous model is the larger screen but she s adamant that even this small change makes a big impact The Series s display is percent larger than that of the Series and has significantly smaller bezels It s also the first Apple Watch to be IPX certified for dust resistance making it more durable Cherlynn said the larger display made things easier to read and navigate and the extra screen space made it easier to enter in the right keys and see more of messages Apple also debuted some additional watch faces and a full QWERTY keyboard on the Series Cherlynn says the new faces are designed to display more information at once The full QWERTY keyboard provided more flexibility but since she only got roughly a percent accuracy rate when tapping on the display Cherlynn said she still preferred using dictation Apple still doesn t offer advanced sleep tracking though this model will log your respiration rate while you sleep and report back the next morning If sleep tracking isn t your main reason for wanting a smartwatch Cherlynn says the Series will be a satisfying purchase The Motorola Edge is easier to recommend than its predecessorIgor Bonifacic EngadgetOf the various upgrades to the Motorola Edge Igor Bonifacic thinks the inch LCD Hz screen is the stand out feature The flat edges made it easier to hold and the improved refresh rate makes the Edge feel smooth and responsive The screen is vibrant bright and has support for HDR plus Igor says the aspect ratio works well for scrolling through vertical apps He also liked the move to a capacitive fingerprint scanner on the side mounted power button because it made unlocking the phone while wearing a mask significantly easier However there are some tradeoffs for the smartphone notably the LCD screen which lacks the power efficiency and deep blacks that OLED can offer The Hz display also produced some slight glitching In addition the device s single speaker produced tinny sound and he found the ultra wide camera mediocre But he did like the battery life which lasted a whopping two days and the extended year software support If you don t mind a few compromises Igor says the Edge is well worth checking out Roland s SP MKII sampler is a pleasure to useTerrence O Brien EngadgetThough the new SP MKII sampler physically resembles previous versions Terrence O Brien says the new OLED screen and pad layout are huge upgrades The new display can show the actual waveform as it s being edited which makes recording and editing samples easier and more fun And the pad set up is not only more standard but it also offers users more samples and patterns to make beats Terrence also preferred the refreshed color scheme of grey and black with muted orange and white accents The SP MKII has a few more minor upgrades it s the first sampler in the line to feature velocity sensitive pads and it has MIDI out as well as MIDI IN connectors This means the can get hooked up to a PC via USB C or be used with external gear Terrence played around with both the input effects courtesy of the ¼ inch audio input and headphone jacks as well as the bus effects and found that chopping samples on the machine is actually enjoyable instead of a chore The SP MKII is also fairly portable Terrence says it can fit in a bag easily enough and it can be powered with six AA batteries And it s affordable at which makes it a reasonable purchase even for those who are just looking to dabble in sampling Forza Horizon is an enjoyable escapePlayground GamesSince she couldn t get behind the wheel of a real life Ford Bronco Jess Conditt did the next best thing she drove it around the race tracks and lush environments of Forza Horizon Though she only had access to a preview build she reports back that Horizon is a mellower version of the motorsport game spread across a fictionalized Mexico and featuring tricked out vehicles including a Corvette Stingray Coupe and a Porsche Desert Flyer Regardless of which vehicle you choose Jess says they re all magical to virtually drive They get window cracks and door dents but are largely indestructible and always land tires down She also appreciated the layers of customization within the game from accessories to creating characters to upgrading vehicles with designs On the Xbox Series S the game ran smoothly and looked lovely at p fps Jess says even without ray tracing Horizon s distinct biomes weather and environments were all a treat to view making it a perfect virtual escape |
2021-10-16 16:00:58 |
ニュース |
BBC News - Home |
Sir David Amess killing: MPs will not be cowed, says Patel |
https://www.bbc.co.uk/news/uk-58940491?at_medium=RSS&at_campaign=KARANGA
|
amess |
2021-10-16 16:57:05 |
ニュース |
BBC News - Home |
Leicester fight back to win thriller and end Man Utd's long unbeaten away run |
https://www.bbc.co.uk/sport/football/58833898?at_medium=RSS&at_campaign=KARANGA
|
Leicester fight back to win thriller and end Man Utd x s long unbeaten away runLeicester City increase the pressure on Manchester United manager Ole Gunnar Solskjaer as they run out fully deserved winners in a thriller at King Power Stadium |
2021-10-16 16:54:11 |
ニュース |
BBC News - Home |
Sealiway wins Champion Stakes as Murphy retains jockeys' title |
https://www.bbc.co.uk/sport/horse-racing/58938918?at_medium=RSS&at_campaign=KARANGA
|
Sealiway wins Champion Stakes as Murphy retains jockeys x titleMickael Barzalona wins the Champion Stakes on Sealiway as Oisin Murphy claims his third straight jockeys championship crown at Ascot |
2021-10-16 16:34:54 |
ニュース |
BBC News - Home |
Man City beat stubborn Burnley as Sterling makes rare start |
https://www.bbc.co.uk/sport/football/58833905?at_medium=RSS&at_campaign=KARANGA
|
Man City beat stubborn Burnley as Sterling makes rare startGoals from Bernardo Silva and Kevin de Bruyne give defending champions Manchester City a hard earned victory over struggling Burnley at Etihad Stadium |
2021-10-16 16:15:54 |
コメント
コメントを投稿