投稿時間:2022-11-07 05:14:44 RSSフィード2022-11-07 05:00 分まとめ(21件)

カテゴリー等 サイト名等 記事タイトル・トレンドワード等 リンクURL 頻出ワード・要約等/検索ボリューム 登録日
python Pythonタグが付けられた新着投稿 - Qiita ラブライブ!スーパースター!のキャラを物体検出してみた。 https://qiita.com/irohas_gawr/items/4ff5aa8c85f25915d6d2 irohas 2022-11-07 04:14:11
Git Gitタグが付けられた新着投稿 - Qiita [Git] リポジトリに個人メモ・シェルを残す https://qiita.com/gretchi/items/aadc48c92616c4ee629d 開発 2022-11-07 04:37:42
海外TECH DEV Community macOS Dev Setup https://dev.to/apssouza22/macos-dev-setup-4bkb macOS Dev SetupThis document describes how I set up my developer environment on a new MacBook We will set up popular programming languages for example Node JavaScript Python and Java You may not need all of them for your projects although I recommend having them set up as they always come in handy The document assumes you are new to Mac but can also be useful if you are reinstalling a system and need some reminder The steps below were tested on macOS Monterey but should work for more recent versions as well Contributing If you find any mistakes in the steps described below or if any of the commands are outdated do let me know System updateApple M chipsSystem preferencesSecurityiTermInstall oh my zshCreate ssh keyShow all hidden filesHomebrewGitVisual Studio CodeDockerVimPythonNode jsJavaPostgreSQLRedisElasticsearchProjects folderApps System updateFirst thing you need to do on any OS actually is update the system For that Apple Icon gt About This Mac then Software Update Apple M chipsInstall the Rosetta emulator for the new ARM silicon M chip Install Rosetta using the terminal softwareupdate install rosetta agree to license System preferencesIf this is a new computer there are a couple of tweaks I like to make to the System Preferences Feel free to follow these or to ignore them depending on your personal preferences In Apple Icon gt System Preferences Trackpad gt Tap to clickTrackpad gt Tracking speed gt Fast all the way to the right Mouse gt Tracking speed gt Fast all the way to the right Keyboard gt Key Repeat gt Fast all the way to the right Keyboard gt Delay Until Repeat gt Short all the way to the right Dock gt Automatically hide and show the Dock SecurityI recommend checking that basic security settings are enabled You will be happy to have done so if ever your Mac is lost or stolen In Apple Icon gt System Preferences Users amp Groups If you haven t already set a password for your user during the initial set up you should do so nowSecurity amp Privacy gt General Require password immediately after sleep or screen saver begins you can keep a grace period of a couple minutes if you prefer but I like to know that my computer locks as soon as I close it Security amp Privacy gt FileVault Make sure FileVault disk encryption is enablediCloud If you haven t already done so during set up enable Find My Mac iTermSince we re going to be spending a lot of time in the command line let s install a better terminal than the default one Download and install iTerm In Finder drag and drop the iTerm Application file into the Applications folder You can now launch iTerm through the Launchpad for instance Install oh my zshZSH is already preinstalled in the latest versions of macOS I also install as it allows for more configuration and is required in some cases sh c curl fsSL Install the Oh My Zsh plugins belowbrew install zsh autosuggestionsbrew install zsh syntax highlightingTo activate the plugins add the following at the end of your zshrc source usr local share zsh autosuggestions zsh autosuggestions zshsource usr local share zsh syntax highlighting zsh syntax highlighting zshAdd the source bash profile to zshrc this way you will leverage the configuration from that fileYou will also need to force reload of your zshrc source zshrc Create ssh keyExecute the command below to begin the key creation Press enter all the way to the endssh keygen t rsa b C your email example com Add the new SSH key to the local SSH agent ssh add K Users YOUR USER ssh id rsaGet the generated public keycat Users alexsouza ssh id rsa pub Show all hidden filesUse the command line to show all hidden files as the files you are searching for are going to be hidden by default defaults write com apple Finder AppleShowAllFiles truekillall Finder HomebrewPackage managers make it so much easier to install and update applications for Operating Systems or libraries for programming languages The most popular one for macOS is Homebrew InstallAn important dependency before Homebrew can work is the Command Line Developer Tools for Xcode These include compilers that will allow you to build things from source You can install them directly from the terminal with xcode select installOnce that is done we can install Homebrew by copy pasting the installation command from the Homebrew homepage inside the terminal bin bash c curl fsSL Follow the steps on the screen You will be prompted for your user password so Homebrew can set up the appropriate permissions Once installation is complete you can run the following command to make sure everything works brew doctor UsageTo install a package or Formula in Homebrew vocabulary simply type brew install lt formula gt To see if any of your packages need to be updated brew outdatedTo update a package brew upgrade lt formula gt Homebrew keeps older versions of packages installed in case you want to rollback That rarely is necessary so you can do some cleanup to get rid of those old versions brew cleanupTo see what you have installed with their version numbers brew list versions Homebrew ServicesA nice extension to Homebrew is Homebrew Services It will automatically launch things like databases when your computer starts so you don t have to do it manually every time Homebrew Services will automatically install itself the first time you run it so there is nothing special to do After installing a service for example a database it should automatically add itself to Homebrew Services If not you can add it manually with brew services lt formula gt Start a service with brew services start lt formula gt At anytime you can view which services are running with brew services list GitmacOS comes with a pre installed version of Git but we ll install our own through Homebrew to allow easy upgrades and not interfere with the system version To do so simply run brew install gitWhen done to test that it installed fine you can run which gitThe output should be usr local bin git Let s set up some basic configuration Download the gitconfig file to your home directory cd curl O It will add some color to the status branch and diff Git commands as well as a couple aliases Feel free to take a look at the contents of the file and add to it to your liking Next we ll define your Git user should be the same name and email you use for GitHub and Heroku git config global user name Your Name Here git config global user email your email youremail com They will get added to your gitconfig file On a Mac it is important to remember to add DS Store a hidden macOS system file that s put in folders to your project gitignore files You also set up a global gitignore file located for instance in your home directory but you ll want to make sure any collaborators also do it cd curl O git config global core excludesfile gitignore Visual Studio CodeWith the terminal the text editor is a developer s most important tool Everyone has their preferences but if you re just getting started and looking for something simple that works Visual Studio Code is a pretty good option Go ahead and download it Open the dmg file drag and drop in the Applications folder you know the drill now Launch the application Note At this point I m going to create a shortcut on the macOS Dock for both for Visual Studio Code and iTerm To do so right click on the running application and select Options gt Keep in Dock Just like the terminal let s configure our editor a little Go to Code gt Preferences gt Settings In the very top right of the interface you should see an icon with brackets that appeared on hover it should say Open Settings JSON Click on it and paste the following editor tabSize editor rulers files insertFinalNewline true files trimTrailingWhitespace true workbench editor enablePreview false Feel free to tweak these to your preference When done save the file and close it Pasting the above JSON snippet was handy to quickly customize things but for further setting changes feel free to search in the Settings panel that opened first shortcut Cmd When you re happy with your setup you can save the JSON to quickly restore it on a new machine If you remember only one keyboard shortcut in VS Code it should be Cmd Shift P This opens the Command Palette from which you can run pretty much anything Let s open the command palette now and search for Shell Command Install code command in PATH Hit enter when it shows up This will install the command line tool code to quickly open VS Code from the terminal When in a projects directory you ll be able to run cd myproject code VS Code is very extensible To customize it further open the Extensions tab on the left Let s do that now to customize the color of our editor Search for the Atom One Dark Theme extension select it and click Install Repeat this for the Atom One Light Theme Finally activate the theme by going to Code gt Preferences gt Color Theme and selecting Atom One Dark or Atom One Light if that is your preference VimAlthough VS Code will be our main editor it is a good idea to learn some very basic usage of Vim It is a very popular text editor inside the terminal and is usually pre installed on any Unix system For example when you run a Git commit it will open Vim to allow you to type the commit message I suggest you read a tutorial on Vim Grasping the concept of the two modes of the editor Insert by pressing i and Normal by pressing Esc to exit Insert mode will be the part that feels most unnatural Also it is good to know that typing x when in Normal mode will save and exit After that it s just remembering a few important keys Vim s default settings aren t great and you could spend a lot of time tweaking your configuration the vimrc file But if you only use Vim occasionally you ll be happy to know that Tim Pope has put together some sensible defaults to quickly get started Using Vim s built in package support install these settings by running mkdir p vim pack tpope startcd vim pack tpope startgit clone With that Vim will look a lot better next time you open it PythonmacOS like Linux ships with Python already installed But you don t want to mess with the system Python some system tools rely on it etc so we ll install our own version using pyenv This will also allow us to manage multiple versions of Python ex and should we need to Install pyenv via Homebrew by running brew install pyenvWhen finished you should see instructions to add something to your profile Open your bash profile in the home directory you can use code bash profile and add the following line if command v pyenv gt dev null gt amp then eval pyenv init fiSave the file and reload it with source bash profileBefore installing a new Python version the pyenv wiki recommends having a few dependencies available brew install openssl readline xzWe can now list all available Python versions by running pyenv install listLook for the latest x version or x and install it replace the x x with actual numbers pyenv install x xList the Python versions you have locally with pyenv versionsThe star should indicate we are still using the system version which is the default I recommend leaving it as the default as some Node js packages will use it in their installation process You can switch your current terminal to another Python version with pyenv shell x xYou should now see that version when running python versionIn a project directory you can use pyenv local x xThis will save that project s Python version to a python version file Next time you enter the project s directory from a terminal pyenv will automatically load that version for you For more information see the pyenv commands documentation pippip was also installed by pyenv It is the package manager for Python Here are a couple Pip commands to get you started To install a Python package pip install lt package gt To upgrade a package pip install upgrade lt package gt To see what s installed pip freezeTo uninstall a package pip uninstall lt package gt virtualenvvirtualenv is a tool that creates an isolated Python environment for each of your projects For a particular project instead of installing required packages globally it is best to install them in an isolated folder that will be managed by virtualenv The advantage is that different projects might require different versions of packages and it would be hard to manage that if you install packages globally Instead of installing and using virtualenv directly we ll use the dedicated pyenv plugin pyenv virtualenv which will make things a bit easier for us Install it via Homebrew brew install pyenv virtualenvAfter installation add the following line to your bash profile if which pyenv virtualenv init gt dev null then eval pyenv virtualenv init fiAnd reload it with source bash profileNow let s say you have a project called myproject You can set up a virtualenv for that project and the Python version it uses replace x x with the version you want pyenv virtualenv x x myprojectSee the list of virtualenvs you created with pyenv virtualenvsTo use your project s virtualenv you need to activate it first in every terminal where you are working on your project pyenv activate myprojectIf you run pyenv virtualenvs again you should see a star next to the active virtualenv Now when you install something pip install lt package gt It will get installed in that virtualenv s folder and not conflict with other projects You can also set your project s python version to point to a virtualenv you created pyenv local myprojectNext time you enter that project s directory pyenv will automatically load the virtualenv for you Anaconda and MinicondaThe Anaconda Miniconda distributions of Python come with many useful tools for scientific computing You can install them using pyenv for example replace x x x with an actual version number pyenv install miniconda x x xAfter loading an Anaconda or Miniconda Python distribution into your shell you can create conda environments which are similar to virtualenvs pyenv shell miniconda x x xconda create name mycondaprojectconda activate mycondaprojectInstall packages for example the Jupyter Notebook using conda install jupyterYou should now be able to run the notebook jupyter notebookDeactivate the environment and return to the default Python version with conda deactivatepyenv shell unset Known issue gettext not found by git after installing Anaconda MinicondaIf you installed an Anaconda Miniconda distribution you may start seeing an error message when using certain git commands similar to this one pyenv gettext sh command not foundThe gettext sh command exists in these Python versions miniconda latestIf that is the case you can use the following workaround brew install gettextThen add this line to your bash profile Workaround for issuecomment export PATH usr local opt gettext bin PATH Node jsThe recommended way to install Node js is to use nvm Node Version Manager which allows you to manage multiple versions of Node js on the same machine Install nvm by copy pasting the install script command into your terminal Once that is done open a new terminal and verify that it was installed correctly by running command v nvmView the all available stable versions of Node with nvm ls remote ltsInstall the latest stable version with nvm install nodeIt will also set the first version installed as your default version You can install another specific version for example Node with nvm install And switch between versions by using nvm use nvm use defaultSee which versions you have install with nvm lsChange the default version with nvm alias default In a project s directory you can create a nvmrc file containing the Node js version the project uses for example echo gt nvmrcNext time you enter the project s directory from a terminal you can load the correct version of Node js by running nvm use npmInstalling Node also installs the npm package manager To install a package npm install lt package gt Install locallynpm install g lt package gt Install globallyTo install a package and save it in your project s package json file npm install save lt package gt To see what s installed npm list depth Local packagesnpm list g depth Global packagesTo find outdated packages locally or globally npm outdated g To upgrade all or a particular package npm update lt package gt To uninstall a package npm uninstall save lt package gt YarnIs a alternative package manage to npmbrew install yarn without node JavaThe recommended way to install Java is to use SDKman Software development kit Management which allows you to manage multiple versions of Java on the same machine and Installcurl s bash UsageThe following command will show you which versions of Java are available to install sdk list javaYou can find the latest version in that list and install it with replace x x with actual version numbers sdk install java x xSelect the version you want to usesdk use java x x Managing Java toolsCheck all Java softwares available hereInstall Mavensdk install mavenInstall VisualVMsdk install visualvm DockerDocker is a set of platform as a service PaaS products that use OS level virtualization to deliver software in packages called containers Containers are isolated from one another and bundle their own software libraries and configuration files they can communicate with each other through well defined channels All containers are run by a single operating system kernel and are thus more lightweight than virtual machines InstallDownload the version of docker for osx you want check hereCreate an account hereThen you can download hereFollow all the steps and congrats You should have downloaded docker GUIFrom the docker ps you can access to the containers that are running logs volumes etc But you can install portrainer to have a GUI to check whats running and get some logs etc For install you can run this docker volume create portainer datadocker run d p p v var run docker sock var run docker sock v portainer data data portainer portainerThen you can go to localhost to see the web interface PostgreSQLPostgreSQL is a popular relational database and Heroku has first class support for it Install PostgreSQL using Homebrew brew install postgresqlIt will automatically add itself to Homebrew Services Start it with brew services start postgresqlIf you reboot your machine PostgreSQL will be restarted at login GUIYou can interact with your SQL database by running psql in the terminal If you prefer a GUI Graphical User Interface Postico has a simple free version that let s you explore tables and run SQL queries RedisRedis is a fast in memory key value store that uses the disk for persistence It complements nicely a database such as PostgreSQL There are a lot of interesting things that you can do with it For example it s often used for session management or caching by web apps but it has many other uses To install Redis use Homebrew brew install redisStart it through Homebrew Services with brew services start redisI ll let you refer to Redis documentation or other tutorials for more information ElasticsearchElasticsearch is a distributed search and analytics engine It uses an HTTP REST API making it easy to work with from any programming language You can use elasticsearch for things such as real time search results autocomplete recommendations machine learning and more InstallElasticsearch runs on Java so check if you have it installed by running java versionIf Java isn t installed yet dismiss the window that just appeared by clicking Ok and install Java via Homebrew brew cask install homebrew cask versions javaNext install Elasticsearch with brew install elasticsearch UsageStart the Elasticsearch server with brew services start elasticsearchTest that the server is working correctly by running curl XGET http localhost You may need to wait a little bit for it to boot up if you just started the service Elasticsearch s documentation is more of a reference To get started you can also take a look at Elasticsearch The Definitive Guide GUIYou can interact with the Elasticsearch server using curl or anything that can send an HTTP request However if you prefer a graphical interface you can take a look at Dejavu You can easily install it via the Dejavu Chrome Extension Projects folderThis really depends on how you want to organize your files but I like to put all my version controlled projects in Projects Other documents I may have or things not yet under version control I like to put in Dropbox if you have Dropbox installed or Documents if you prefer to use iCloud Drive AppsHere is a quick list of some apps I use and that you might find useful as well Password Securely store your login and passwords and access them from all your devices month Dropbox File syncing to the cloud It is cross platform but if all your devices are Apple you may prefer iCloud Drive Free for GB Postman Easily make HTTP requests Useful to test your REST gRPC GraphQL APIs Free for basic features Rectangle Move and resize windows with keyboard shortcuts Free 2022-11-06 19:20:12
海外TECH Engadget Apple’s second-gen AirPods Pro are on sale for $234 right now https://www.engadget.com/apple-airpods-pro-2-sale-amazon-194503275.html?src=rss Apple s second gen AirPods Pro are on sale for right nowIf you ve been waiting for Apple s second generation AirPods Pro to go on sale now is your chance to pick them up Amazon has discounted the earbuds for a limited time After a six percent price cut the AirPods Pro are down from The discount marks the best reduction we ve seen on Apple s latest earbuds since they went on sale back in September Buy Apple AirPods Pro at Amazon While they don t look dramatically different from their predecessor the second generation AirPods Pro feature some meaningful upgrades With the inclusion of its new H chip Apple claims the model is better at canceling out ambient noise and comes with improved battery life The company also found a way to add touch controls to the new model Engadget Senior Editor Billy Steele gave the earbuds a score of praising the AirPods Pro for their improved audio quality and deep integration with the broader Apple ecosystem In regards to the new touch controls he said they take some practice to master He also found battery life could be better Despite those issues the AirPods Pro are among the best wireless earbuds you can buy right now especially if you use an iPhone as your daily driver Get the latest Black Friday and Cyber Monday offers by following EngadgetDeals on Twitter and subscribing to the Engadget Deals newsletter 2022-11-06 19:45:03
ニュース BBC News - Home Ukraine war: Kyiv Mayor Klitschko warns of evacuations if power lost https://www.bbc.co.uk/news/world-europe-63535263?at_medium=RSS&at_campaign=KARANGA russian 2022-11-06 19:36:03
ニュース BBC News - Home Made.com expected to go into administration this week https://www.bbc.co.uk/news/business-63512589?at_medium=RSS&at_campaign=KARANGA furniture 2022-11-06 19:35:20
ニュース BBC News - Home World Cup 2022: 10 European football associations respond to Fifa's 'focus on football' letter https://www.bbc.co.uk/sport/football/63533589?at_medium=RSS&at_campaign=KARANGA World Cup European football associations respond to Fifa x s x focus on football x letterTen European football associations including England and Wales say human rights are universal and apply everywhere after Fifa asked nations competing at the Qatar World Cup to now focus on the football 2022-11-06 19:40:11
ビジネス ダイヤモンド・オンライン - 新着記事 パナソニックが「割増退職金4000万円」払ってでもリストラした理由 - Diamond Premiumセレクション https://diamond.jp/articles/-/312337 パナソニックが「割増退職金万円」払ってでもリストラした理由DiamondPremiumセレクション人員整理をタブー視してきたパナソニックが、バブル入社組を標的にした本気のリストラに着手する。 2022-11-07 04:55:00
ビジネス ダイヤモンド・オンライン - 新着記事 漫画『BLUE GIANT』に学ぶ最強のチーム作り!「熱い議論」が絶対必須の理由【入山章栄・動画】 - 入山章栄の世界標準の経営理論 https://diamond.jp/articles/-/311970 2022-11-07 04:50:00
ビジネス ダイヤモンド・オンライン - 新着記事 日野自動車「不正ドミノ」で始まる王者陥落、トラック業界の大異変を徹底解明 - 日野“陥落” トラック大異変 https://diamond.jp/articles/-/312330 2022-11-07 04:45:00
ビジネス ダイヤモンド・オンライン - 新着記事 政府の経済対策は“規模ありき”、39兆円支出もGDP押し上げ効果は10.3兆円と限定的 - 政策・マーケットラボ https://diamond.jp/articles/-/312343 値上がり 2022-11-07 04:40:00
ビジネス ダイヤモンド・オンライン - 新着記事 円安はいつ終わる?2023年前半までに注意すべき「円高転換」4つのポイント - 政策・マーケットラボ https://diamond.jp/articles/-/312346 高円 2022-11-07 04:35:00
ビジネス ダイヤモンド・オンライン - 新着記事 年収が低い会社ランキング2022【東京トップ5】3位にネイルサロン、1位は高級中華料理店 - ニッポンなんでもランキング! https://diamond.jp/articles/-/312419 上場企業 2022-11-07 04:30:00
ビジネス ダイヤモンド・オンライン - 新着記事 年収が低い会社ランキング2022【東京・1000社完全版】人気おしゃれ家電企業が300万円台 - ニッポンなんでもランキング! https://diamond.jp/articles/-/312395 上場企業 2022-11-07 04:30:00
ビジネス ダイヤモンド・オンライン - 新着記事 富裕層が円安で「ドル建て養老保険」活用、節税策狭まる中での資産防衛術 - 今週の週刊ダイヤモンド ここが見どころ https://diamond.jp/articles/-/312250 富裕層が円安で「ドル建て養老保険」活用、節税策狭まる中での資産防衛術今週の週刊ダイヤモンドここが見どころ『週刊ダイヤモンド』月日・日合併号の第一特集は「円安・金利高・インフレに勝つ最強版富裕層の節税資産防衛術」です。 2022-11-07 04:25:00
ビジネス ダイヤモンド・オンライン - 新着記事 「オンライン会議は脳にとって質の悪い紙芝居」脳科学者が訴える危険性 - 組織の病気~成長を止める真犯人~ 秋山進 https://diamond.jp/articles/-/312189 「オンライン会議は脳にとって質の悪い紙芝居」脳科学者が訴える危険性組織の病気成長を止める真犯人秋山進リモートワークは一部の会社では当たり前になったが、オンラインのみのコミュニケーションでは仕事に支障が生じると、リアルとのハイブリッドにしたり、リアルの割合を増やしたりする会社もある。 2022-11-07 04:20:00
ビジネス ダイヤモンド・オンライン - 新着記事 トランプの選挙ボランディアに潜入、出会った中国系米国人「陰謀論者」の意外な正体 - 「トランプ信者」潜入一年 https://diamond.jp/articles/-/312138 一緒に戸別訪問をやろう、と言ってくれたのは、中国系アメリカ人のグレース・ノリスだった。 2022-11-07 04:15:00
ビジネス ダイヤモンド・オンライン - 新着記事 JR上場4社が“黒字転換”でも喜べない、コロナ後の「新たな困難」とは - News&Analysis https://diamond.jp/articles/-/312394 newsampampanalysisjr 2022-11-07 04:10:00
ビジネス ダイヤモンド・オンライン - 新着記事 手取り38万円夫婦、「子どもの塾も老後資金も」とお得制度フル活用の落とし穴 - “残念サラリーマン”のお金相談所 https://diamond.jp/articles/-/312339 割り増し 2022-11-07 04:05:00
ビジネス 東洋経済オンライン 無名でも「鉄道業界で圧倒的シェア」どんな会社? その製品を車内で見たことがない人はいない | 経営 | 東洋経済オンライン https://toyokeizai.net/articles/-/630640?utm_source=rss&utm_medium=http&utm_campaign=link_back 東洋経済オンライン 2022-11-07 04:50:00
ビジネス 東洋経済オンライン 好調な半導体関連企業、100万円以上の年収増加も 年収に占める「業績連動分」の割合が高いのも特徴 | 最新の週刊東洋経済 | 東洋経済オンライン https://toyokeizai.net/articles/-/630122?utm_source=rss&utm_medium=http&utm_campaign=link_back 東京エレクトロン 2022-11-07 04: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件)