Feb 24
When I upgraded my macbook to Yosemite OS the apache webserver wouldn’t start. That started driving my crazy becauseย it wasn’t indicating any proper error. The log would only say this –
[notice] caught SIGTERM, shutting down
Environment: Yosemite + MAMP 2.1.3 + Apache 2.2
Finally I found the workaround –
1. Just rename your
/Applications/MAMP/Library/bin/envvars file to something else like “_envvars“
2. You are done ๐
Courtesy:ย https://twitter.com/mamp_en/status/496668261619335169
February 24th, 2015 in
Mac OS,
Systems |
No Comments |
6,718 views
Nov 24
I was trying to install macports on my Mac Mavericks & while updating the older version using
sudo port upgrade outdated
it messed up my system & started giving the following error on the command line
/opt/local/lib/libintl.8.dylib: mach-o, but wrong architecture
. Finally I was able to fix it by running following step:
sudo port install libidl +universal
๐
November 24th, 2014 in
BASH,
Mac OS,
Technical |
No Comments |
2,929 views
Nov 13
Although I had MySQL community edition installed on my Mac OSX , I recently had the following error while running some python installation script which uses mysql as a backend. The error was:
File "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/MySQLdb/__init__.py", line 19, in
import _mysql
ImportError: dlopen(/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/_mysql.so, 2): Library not loaded: libmysqlclient.18.dylib
Referenced from: /Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/_mysql.so
Solution:
1. Locate your MySQL installation & create symlink in /usr/lib for that. That’s it ๐
sudo ln -s /usr/local/mysql/lib/libmysqlclient.18.dylib /usr/lib/libmysqlclient.18.dylib
November 13th, 2014 in
Mac OS,
Open Source,
Other,
Technical |
1 Comment |
5,475 views
Jun 14
If you try to run MySQLWorkbench with MAMP you might run into issues like start/stop control related issues. Follow this steps to resolve it:
1. Connection Method: localhost/pipe
2. Socket pipe path: /Applications/MAMP/tmp/mysql/mysql.sock
3. You are done ๐
June 14th, 2013 in
Mac OS |
No Comments |
2,378 views
Jun 13
You don’t have to generate new key-value pair ๐
Follow this in your terminal:
$ ssh-keygen -p
$ Enter file in which the key is (/Users/you/.ssh/id_rsa): [Hit enter]
$ Enter new passphrase (empty for no passphrase): [YOUR_SECRET]
$ Enter same passphrase again: [YOUR_SECRET]
June 13th, 2013 in
BASH,
Linux,
Mac OS |
No Comments |
2,293 views
Mar 09
Though iTunes backups are convenient, they do occupy lots of space on the hard disk. In order to free up the space you have to do the following steps:
1. Go to iTunes –> Preferences
2. Devices –> Select & delete the backup
3. Ok, you are done. ๐ You will gain GB’s worth of free space.
March 9th, 2013 in
Mac OS |
No Comments |
2,146 views
Mar 09
If you are hunting for a free screen recorder for Mac then don’t panic.
1. Download/Open QuickTime
2. Go to File –> New Screen Recording
3. Choose recording window & you are all set ๐
March 9th, 2013 in
Free Services,
Mac OS |
No Comments |
2,119 views
Mar 28
Finally I can say I’m back from hiatus ;)…short story –> this happens when you get married!
March 28th, 2012 in
Personal |
No Comments |
2,927 views
Jan 02
Environment: Java 6
Recently I was looking into capabilities of theThreadLocal. And I decided to test everything against a SimpleDateFormat instance. Unfortunately the SDF is not a thread safe. So in a multi-threaded environment you can avoid concurrent modifications using “Synchronized”. I ran 100000 iterations over small set of 3 dates. Now it was time to implement same thing using ThreadLocal.
Read the rest of this entry »
January 2nd, 2011 in
Java |
No Comments |
13,635 views
Dec 12
Recently I needed to implement LCS (Longest Common Subsequence) algorithm from dynamic programming for solving one of the problems. So I ended up writing quick implementation of LCS. For more details on LCS:
http://en.wikipedia.org/wiki/Longest_common_subsequence_problem
Read the rest of this entry »
December 12th, 2010 in
Algorithm,
Java |
1 Comment |
13,053 views