Installing cgdb on a mac os x

Неу, yeah, the git source for cgdb doesn’t come with the configure script pre-built. (The official release distributions do, however.) If you have the right tools installed, you can fix this by running: This will generate the configure script, and then you can install it as you would any other autoconf-based source package.

Recursively find all files that match a certain pattern

With gnu find you can use regex, which (unlike -name) match the entire path: To just count the number of files: (The %i format code causes find to print the inode number instead of the filename; unlike the filename, the inode number is guaranteed to not have characters like a newline, so counting is more reliable. Thanks to @tripleee for … Read more

Vim Can’t Save File (E212)

This will ask you for the root password, then save your changes as you requested: Then type (L)oad at the prompt, to re-load the file after it is saved

Change default title in mac terminal window

That’s two questions: the text in the titlebar for OSX Terminal comes from the names of the processes running in the terminal. There can be multiple levels of processes, e.g., a shell running an editor. Terminal shows up to a few levels of those. You can configure its behavior in the Preferences dialog. In practice, it can … Read more

Vim Can’t Save File (E212)

This will ask you for the root password, then save your changes as you requested: Then type (L)oad at the prompt, to re-load the file after it is saved.

Upgrade Node.js to the latest version on Mac OS

Here’s how I successfully upgraded from v0.8.18 to v0.10.20 without any other requirements like brew etc, (type these commands in the terminal): sudo npm cache clean -f (force) clear you npm cache sudo npm install -g n install n (this might take a while) sudo n stable upgrade to the current stable version Note that sudo might prompt your password. Additional note regarding step 3: stable can be exchanged … Read more

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)