Mac
Tag: Ruby
Tag: Rails
Category: jekyll
Category: update
Category: git
Category: database
Category: PostgreSQL
Category: websocket
Category: ruby
Category: projects
Category: Redis
Category: mysql
Category: Mac
Category: Node
Category: NPM
Category: PM2
Category: nodejs
Category: Meteor
Category: Nginx
Category: gitLab
Category: Rails
- Why Ruby on Rails is better than Python Django?
- How to use Hotwire turbo in Rails 6 with Webpacker?
- Rails 6 Credentials (master.key and credentials.yml.enc)
- Rails Console
- JIRA-Atlassian-Connect-App-Django
- Rails 4 5.0 Session Cookie AuthenticityToken
- Rails Active Storage
- Rails 5 Source code Research
- 微信支付
- Rails零星笔记
Category: Homebrew
Category: CentOS
Category: FreeSwitch
Category: Ruby
- Ruby on Rails 8
- RESTful API
- Ruby on Rails 7
- Study from Ruby official website
- Ruby-Metaprogramming
- Ruby连数据库的问题
- rbenv使用
Category: Vim
Category: javascript
Category: React-Native
Category: Wechat
Category: homeland
Category: JavaScript
Category: Docker
Category: RubyMine
Category: Authorization
Category: RESTful-API
Category: Proxy
Category: Deploy
Category: Devise
Category: Bootstrap
Category: Active_Storage
Category: github
Category: Android
Category: cloud
Category: ssh
Category: python
Category: reactjs
Category: markdown
Category: ShadowSocks
Category: Code
Category: rails
Category: code
Category: Django
Category: Python
Category: DRF
Category: Fish
Category: Yarn
Category: Material-UI
Category: CSS
Category: aws
Category: uwsgi
Category: nginx
Category: docker
Category: React
Category: Enzyme
Category: Jira
Category: Interview
Category: JetBrain
Category: PyCharm
Category: ESLint
Category: Rails6
Category: NVM
Category: ssl
Category: tencent
Category: CI
Category: jenkins
Category: GitHub
Category: Credentials
Category: master.key
Category: Webpacker
Category: Turbo
Category: Hotwire
Category: Bootstrap5
Category: Flutter
Category: Clash
Category: Tor
Category: proxy
Category: Build
Category: SwitchyOmega
Category: Chrome-extension
Category: SQLAlchemy
Category: Algorithm
Category: Rails7
Category: Data
Category: Structure
Category: CPP
Category: Languages
Category: Golang
Category: Typescript
Category: Rails 8
How to prevent Mac automatically sleeping or lockscreen
Security and Privacy - Require password ...
Desktop and Screen saver - Screen saver - Show screen saver after ...
Power Adapter - Preven your Mac from automatically sleeping when the display is off
待解决问题
目前我XCode一直打不开,报错plugin错误。我查了下资料,说可能是一些plugin在新版本下兼容性的问题。要把相关plugins卸掉。 需要尝试一下。
- Install JRE on mac: You need to download a dpg file and double click this file.
XCode
XCode在Mac中非常重要,开发人员一定要用,不能移除。Python也是必要的。 安装后还要装Command Line Tools, https://developer.apple.com/downloads/index.action# $ gcc报错, 报gcc错误,无法编译,可以通过安装xcode develop commandLineTools后设置: $ sudo xcode-select -switch /Library/Developer/CommandLineTools
Postgresql
Mac
$ psql -d postgres # Login to postgres
$ psql -l # List all databases
# \dt # List all tables.
# \d+ schema_migrations # Show DDL of a table
$ CREATE USER postgres SUPERUSER;# if you got error: ActiveRecord::NoDatabaseError: FATAL: role "postgres" does not exist
http://www.moncefbelyamani.com/how-to-install-postgresql-on-a-mac-with-homebrew-and-lunchy/
http://stackoverflow.com/questions/7975556/how-to-start-postgresql-server-on-mac-os-x
$ less /usr/local/var/postgres/postgresql.conf
$ ps aux|grep postgres
$ pg_ctl -D /usr/local/var/postgres status
$ pg_ctl -D /usr/local/var/postgres restart
TroubleShoot: could not connect to server: No such file or directory Is the server running locally and accepting connections on Unix domain socket "/var/pgsql_socket/.s.PGSQL.5432"?
$ mkdir /var/pgsql_socket/
$ ln -s /private/tmp/.s.PGSQL.5432 /var/pgsql_socket/
http://stackoverflow.com/questions/10301794/difference-between-rake-dbmigrate-dbreset-and-dbschemaload
http://stackoverflow.com/questions/25970132/pg-tblspc-missing-after-installation-of-os-x-yosemite #### pg_hba.conf
这个重要,因为涉及到允许哪些ip地址的哪些用户以什么样的方式访问哪些数据库!
http://www.postgresql.org/docs/9.1/static/auth-pg-hba-conf.html
其他
-
在Teminal中提示 : You have new mail 解决办法: http://stackoverflow.com/questions/22163102/you-have-mail-message-in-terminal-os-x
-
Macbook通过VPN连上服务器后,自带的Terminal 中中文显示为乱码解决方案: Terminal -> Preferences -> Profiles -> Advanced -> 去掉默认已勾选的’Set locale environment variables on startup’(倒数第二行) 即可。
-
Mac Open an app from an unidentified developer,方法就是在Finder中找到那个文件,然后点击Command后再打开它就好了。以后都可以双击自动打开了。
卸载MacKeeper
这个东西和360干一样的事情:流氓软件变身杀毒软件。 卸载时你发现无法把它拖到垃圾箱,因为它是Open状态,这时Activity Monitor就派上用场了。 找到MacKeeper并把它强制停止,然后再试试把他拖到垃圾箱,应该就可以了吧?