投稿時間:2022-05-28 15:16:12 RSSフィード2022-05-28 15:00 分まとめ(18件)

カテゴリー等 サイト名等 記事タイトル・トレンドワード等 リンクURL 頻出ワード・要約等/検索ボリューム 登録日
IT ITmedia 総合記事一覧 [ITmedia ビジネスオンライン] グラニフ×ポケモンカード×はじめしゃちょー コラボプロジェクト「P-Lab.」始動 https://www.itmedia.co.jp/business/articles/2205/28/news034.html itmedia 2022-05-28 14:09:00
IT ITmedia 総合記事一覧 [ITmedia ビジネスオンライン] 宮城県在住者が「住み続けたい駅」ランキング 2位は「北四番丁」、1位は? https://www.itmedia.co.jp/business/articles/2205/27/news167.html itmedia 2022-05-28 14:02:00
AWS AWS - Webinar Channel SageMaker Friday episode 3 - Train large deep learning models https://www.youtube.com/watch?v=zR-xAR61q-A large 2022-05-28 05:13:43
python Pythonタグが付けられた新着投稿 - Qiita クラスをまとめるクラス設計(Facade?) https://qiita.com/plumfield56/items/691ad8eca046ae8b4ac1 facade 2022-05-28 14:28:33
python Pythonタグが付けられた新着投稿 - Qiita matplotlibで日本語を使う(japanize-matplotlib) https://qiita.com/Frog67/items/57241beceb9dfdcb58ff japanize 2022-05-28 14:18:14
js JavaScriptタグが付けられた新着投稿 - Qiita npm install -g 〇〇に失敗する https://qiita.com/Oka1551/items/3e648a70f50fa45fd1c4 rcodeeaccesnpmerrsyscall 2022-05-28 14:22:27
Ruby Rubyタグが付けられた新着投稿 - Qiita test時にActiveRecord::DatabaseAlreadyExists: Text file busyが発生!! https://qiita.com/kokonatsu/items/a109fffcc034d676cffb activerecord 2022-05-28 14:58:34
AWS AWSタグが付けられた新着投稿 - Qiita AWSの料金体系について https://qiita.com/rakuda0903/items/a330355f4e69b6bceaa0 cloud 2022-05-28 14:29:15
Ruby Railsタグが付けられた新着投稿 - Qiita test時にActiveRecord::DatabaseAlreadyExists: Text file busyが発生!! https://qiita.com/kokonatsu/items/a109fffcc034d676cffb activerecord 2022-05-28 14:58:34
Ruby Railsタグが付けられた新着投稿 - Qiita Rails 検索ツイートを直接表示させる https://qiita.com/syokaturyou/items/c4c9ede5db90d7f470f1 rails 2022-05-28 14:16:21
海外TECH DEV Community Vim: A Beginner's Guide From A Beginner https://dev.to/aviavinav/vim-a-beginners-guide-from-a-beginner-b11 Vim A Beginner x s Guide From A BeginnerVim one of the oldest contestants in the text editor war ever since its release in It has been a friend to many and a foe to many wanna find out what it will be for you Then let s try it out I have been using Vim for about a month and a half now and I have been loving it the first week was a bit painful though In this article I ll be discussing why to use Vim how to set it up and some basics of Vim Why To Use Vim Now don t fight with me I am not comparing Vim with any other text editor I am just telling you what Vim has to offer Fully customizable It means you have full control some people even make it look like vscode I personally like to keep it minimal though Productivity Well in the beginning your productivity would decline but as you start getting used to Vim and its keybindings it will increase for sureKeyboard driven you can use a mouse though if you set the preference This may or may not be a good thing for youLooks cool NeovimDon t freak out if you haven t heard of Neovim it s nothing scary Neovim is just an implementation of Vim but more focused on extensions and plugins a bit less customizable than Vim Often people don t say they use Neovim they just call it Vim It really doesn t make much of a difference just that Neovim has more support for plugins Also the default keybindings and commands for both are the same so if you learn Neovim keybindings you can as well use Vim Installation Mac amp LinuxFor Mac amp Linux machines do either of the following depending on your package manager sudo apt install neovimorbrew install neovimVim not Neovim is installed by default on most Linux machines You can run it by typing vi or vim Just in case you opened it right now without knowing the keybindings and are now freaking out just type q and press enter to exit WindowsFor windows users you have two options You can use wsl Windows subsystem for Linux and follow the same steps as for Linux systems I won t go into details about installing wsl here Use Powershell not Windows Powershell you can download it from the Microsoft store and install Neovim using scoop A package manager for windows To install scoop type the following into your terminal winget install scoopwinget is another package manager that comes pre installed in windows nowadays scoop install neovimIf it tells you to install additional buckets do it too Close and reopen your terminal and you can open Neovim by typing nvim Just in case you opened it right now without knowing the keybindings and are now freaking out just type q and press enter to exit First LookThis is how it looks right now Right now that doesn t look very good does it Let s configure it ConfigurationNow there are many good pre configured neovim setups out there like NvChad and AstroNvim but I advise you to first at least try out your own configuration I personally don t use the pre configured ones I prefer to use my own configuration You will have to create a configuration file for neovim first For Linux amp Mac Users the config file should be created at config nvim For Windows Users the config file should be created at AppData Local nvim In the above represents the home directory Open your terminal in your respective directories Create the file its name shall be init vim In this file we will be using vimscript to write our configuration Quick note You can also use init lua instead of init vim more about that towards the end in this article I will be following with init vim Now we are going to configure Neovim using Neovim sounded pretty weird to me the first time Basic RulesGo to the directory mentioned above inside your terminal and type nvim init vim and press enter Quick note If you just type nvim without mentioning any file it will open up something like a welcome page If you type nvim file md and file md does not already exist Neovim will open it and if you save it the file will be created Same rules apply to Vim too Now no need to click anything forget you have a mouse once that intimidating text editor is open in front of you just press i no shift key no ctrl key just plain simple little i this lets you enter insert mode Now you can edit your file normally To exit insert mode or rather any mode in Vim in general press the escape or esc key this doesn t exit the editor just returns you to normal mode the default mode You can also use arrow keys to navigate the file for now Quick Note when in normal mode to move left press h to move right press l to move up press k and to move down press j Before jumping on to plugins let s set up some basic rules settings set number Sets line numbersset autoindent Sets auto indentationset tabstop Sets tabstopset shiftwidth For proper indentationset smarttab Affects how tab key presses are interpretedset softtabstop Control how many columns Vim uses when you hit tab keyset mouse a This lets you use your mouseset wrap Sets up line wrappingQuick tip If you don t understand what a certain setting does just open Vim and in normal mode type help lt property name gt for example for shiftwidth do help shiftwidth Next press esc key to exit insert mode Now type wq no need for clicking anywhere or pressing all those ctrl amp shift keys and press enter this will write to file basically it will save the file and then exits the editor If you use just type w it just writes to the file it doesn t exit the editor If you use just type q it exits the editor but it won t let you do that if you have unsaved changes in that case do q this will revert all unsaved changes and exit the editor forcefully If you want a property I haven t mentioned here just search it up I am sure you will find it Let s set up the plugins now Setting Up PluginsNow there are a bunch of plugin managers Vim Neovim requires plugin managers to install plugins out there but for this tutorial we will stick with vim plug For Unix Linux you can install vim plug with sh c curl fLo XDG DATA HOME HOME local share nvim site autoload plug vim create dirs For Windows Powershell you can install vim plug with iwr useb ni env XDG DATA HOME env LOCALAPPDATA null eq env XDG DATA HOME nvim data site autoload plug vim ForceCheck out their install instructions for more Now open init vim in neovim again and navigate to the end of the file you can also use arrow keys don t press i this time press o this will make a new line and enter you to insert mode Now type in the following after the basic rules call plug begin Your plugins go herecall plug end Quick note You can use to write single line comments in vimscript For example This is a comment All our plugins will go in between the call plug begin and call plug end Here are some of the plugins I use coc nvim I will elaborate a bit more on this laterpresence nvim a plugin to let you show that you are using Vim on Discordlightline vim a light and configurable statusline tabline plugin for Vimnerdtree a tree explorer plugin for vim more about this laternerdtree git plugin a plugin to show git status in nerdtreevim devicons a plugin to show icons for your filesauto pairs completes your parentheses brackets and quotescopilot vim If you have GitHub Copilot then you can use it with this pluginYou can list your plugins like this call plug beginPlug neoclide coc nvim branch release Plug andweeb presence nvim Plug itchyny lightline vim Plug ryanoasis vim devicons Plug preservim nerdtree Plug Xuyuanp nerdtree git plugin Plug jiangmiao auto pairs Plug copilot vim call plug endQuick note Always remember before you install a plugin do check out its docs before installing because sometimes they may have special instructions on the setup for a pluginOnce it s done save the file and exit Neovim remember use wq and press enter Reopen Neovim To install these plugins type PlugInstall in normal mode and press enter This will open another pane and start installing all the plugins once it s done Close the pane q then close init vim too This exits Neovim now re enter and all the plugins will start to work Quick Tip to move between panes press ctrl w and then h to move to the left pane and l to move to the right pane Coc nvim amp LSP What is LSP Well LSP Language Service Provider is the thing that gives you language support language support in an editor means it points out your mistakes and offers suggestions while coding for a specific language It is also built in neovim since version We won t be configuring the native LSP here instead we will use coc nvim What is Coc nvim Coc nvim is an ecosystem that builds beyond the native LSP meaning you don t have to configure anything It brings autocomplete suggestions and some other stuff It s recommended for beginners as there is not much setup We already installed coc nvim earlier as a plugin Well with that out of the way we can install the support of coc for our used languages For example if you want to install the support for python just do CocInstall coc python Most languages will have their support as coc language name but just to be sure you should just google it you will easily find it KeybindingsNow take a moment and feel proud you have conquered a bit of the fear of vim In vim neovim you can set up your own keybindings apart from the ones already there For example let s say I want to set up a keybinding for closing a file in Neovim So in general I would have to type q To do that at the end of your init vim file after the call plug end add the following nnoremap lt C q gt q lt CR gt What does this mean nnoremap is a declaration that you are setting a keybinding so you will have to put that before declaring any keybindings Here in lt C q gt the C stands for the ctrl key followed by whatever key you want to use in combination with it For example lt C q gt means ctrl q and lt C k gt means ctrl k In between lt C q gt amp lt CR gt is the command for which this keymapping is lt CR gt represents the enter key So nnoremap lt C q gt q lt CR gt means you have to press ctrl q and it will be the same as typing q and then pressing enter Since we installed plugins like nerdtree they brought their own commands for us for example now you have access to NERDTreeToggle and CocInstall So here are some keybindings you can setup for nerdtree nnoremap lt leader gt n NERDTreeFocus lt CR gt nnoremap lt C n gt NERDTree lt CR gt nnoremap lt C t gt NERDTreeToggle lt CR gt nnoremap lt C f gt NERDTreeFind lt CR gt This keybinding is from their readme on their GitHub repo but you are free to change it you can make to if you prefer whatever suits you Just keep in my mind not to have conflicting keybindings You must be wondering though what is that lt leader gt over there That stands for so nnoremap lt leader gt n NERDTreeFocus lt CR gt is means you have to type n and it will run NERDTreeFocus command NERDTreeAfter setting up the keybindings for nerdtree you can press ctrl t to open it up you can navigate it just like you would a file with arrow key or h j k l keys To delete or rename a file press m and it will open up a menu listing out how to do it To create a file navigate to the node you want it to be in and then press m to open up the menu That about wraps it up ThemesYou can install Themes the same way you did with plugins You can search about the themes there are many out there I personally don t use any theme because my terminal s theme is good enough for me Don t worry I have listed some resources for you to find a good theme at the end of this article Lua amp VimscriptEarlier I stated that you could have put your config in init lua too Many people prefer to use Lua because it s more logical than Vimscript If you wish to convert your init vim to init lua you can check out this article by Olivier Roques Final lookIf you have followed everything in this article your init vim should look something like this now Basic Rulesset numberset autoindentset tabstop set shiftwidth set smarttabset softtabstop set mouse aset encoding UTF set wrap Pluginscall plug beginPlug neoclide coc nvim branch release Plug andweeb presence nvim Plug itchyny lightline vim Plug ryanoasis vim devicons Plug preservim nerdtree Plug Xuyuanp nerdtree git plugin Plug jiangmiao auto pairs Plug copilot vim call plug end Keymapsnnoremap lt leader gt n NERDTreeFocus lt CR gt nnoremap lt C n gt NERDTree lt CR gt nnoremap lt C t gt NERDTreeToggle lt CR gt nnoremap lt C f gt NERDTreeFind lt CR gt This is how it looks now Take a deep breath and feel a sense of accomplishment you are done Now go ahead experiment with it and make Vim you own Common Commands in Vim w Save file q Close file q Force close file and revert unsaved changes wq Save and close fileesc key Go back from any mode to normal modei Enter insert modeo Next line and insert modes delete character and insertdd delete lineHere is a vim cheat sheet from devhints You can check it out for more commands Some TipsDo not give up on Vim at least try it for a week or two before deciding to throw it away I know it s pretty annoying at first but a lot of people end up loving it after using Do not close Vim don t exit the terminal without quitting Vim can corrupt files sometimesDo not use ctrl z freezes my Vim for some reasonYou can use shell commands by prefixing things with Windows may not have some features that Linux will offer but you can install wsl Increase your typing speed it will help you out in general too Use aliases for speeding up your development process Practice That s the best way to get used to Vim Some Useful ToolsUse a directory jumper so you don t have to keep cding all the time I use zYou can use a terminal multiplexer for Linux and Mac devices tmux is a famous one and the only one I know Never heard of terminal multiplexers on Powershell though More Resourcesawesome neovim A collection of wonderful neovim plugins amp themes for you to tryr vim A wonderful community if you have any questions regarding Vimr neovim Similar to r vimneovim docs The official documentation for Neovimvim docs The documentation for Vimnerd fonts It lets you have more glyphs and font ligaturesIf someone wants to point out something that I missed or any other resource or just has doubts about something I wasn t able to explain properly please comment it down below Hope you liked it 2022-05-28 05:28:58
海外TECH DEV Community Summer Vacation and Coding https://dev.to/sanjaysinghrajpoot/summer-vacation-and-coding-107h Summer Vacation and CodingIt s summer time I hope is everyone is done with their exams and now we have a good long summer break You can do several things this summer break if I have to classify them on a larger scale then we have two different ways DSA and Development Most of the students will try to work in the Development or DSA domain For this post let s focus on the development side There are different paths that you can take to start your development journey It s not like DSA where you have a defined set of questions that you can solve let s talk about one of the simplest paths that one can follow for development Pick a few programming languages for beginners it would be HTML CSS and Javascript First try to make a single page application SPA it can be related to your interest or you can make your own portfolio website Now next step would be to create a website where you want to take user feedback Like in the form of a Login page or some sort of survey website Again it s up to your how you want to explore the web world For this you need a few more technologies my preferences would be PHP and MySQL Your website is ready but it still looks old lacks responsiveness and is slow to use To fix this issue you have to use certain CSS frameworks such TailwindCSS and Chakra UI along with Frontend frameworks such ReactJS and Angular Now the next step would be to save your form data on a remote database You can use Postgres SQL and MongoDB NoSQL databases To make this happen effect you have to use certain frameworks such as Node js Django and React Js So now you have made a really good project with the help of different tech stacks You can put this project in your resume and look for some startups which work on the same tech stack as you did Happy Learning summer webdevelopment learning project html css 2022-05-28 05:07:09
海外ニュース Japan Times latest articles India’s heat wave drives temperature gap between rich and poor https://www.japantimes.co.jp/news/2022/05/28/asia-pacific/india-heat-poor-rich-gap/ India s heat wave drives temperature gap between rich and poorTemperatures in the gritty New Delhi locality of Mungeshpur averaged degrees Celsius higher so far this month than in the suburban enclave of Safdarjung 2022-05-28 14:18:29
海外ニュース Japan Times latest articles Natsumi Yamada: ‘We need to make the issues LGBTQ people face visible’ https://www.japantimes.co.jp/life/2022/05/28/people/natsumi-yamada-need-make-issues-lgbtq-people-face-visible/ Natsumi Yamada We need to make the issues LGBTQ people face visible Natsumi Yamada is co president of Tokyo Rainbow Pride She credits a youth with no television and “gyaru fashion as helping her realize her best authentic 2022-05-28 14:35:12
ニュース BBC News - Home EasyJet to cancel more than 200 half-term flights from Gatwick https://www.bbc.co.uk/news/business-61614437?at_medium=RSS&at_campaign=KARANGA holiday 2022-05-28 05:50:47
北海道 北海道新聞 カリタス小、犠牲者思い追悼ミサ 川崎、近隣住民が現場に献花 https://www.hokkaido-np.co.jp/article/686638/ 川崎市多摩区 2022-05-28 14:27:50
北海道 北海道新聞 カズワンの船内捜索終了 船体押収し損傷状況調査へ 1管本部 https://www.hokkaido-np.co.jp/article/686672/ kazui 2022-05-28 14:14:44
北海道 北海道新聞 ロコ・ソラーレ、札幌国際大が決勝へ カーリング日本選手権 https://www.hokkaido-np.co.jp/article/686649/ 日本選手権 2022-05-28 14:14:41

コメント

このブログの人気の投稿

投稿時間: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件)