How to configure iis 7 to listen on a single ip address or specific ip addresses

Windows Server 2008/IIS 7:

1. Open a command prompt and type “netsh”.

2. Type “http”.

3. Type “show iplisten”

By default, iis listens on all ip addresses. If you don’t see anything, then iis is listening on all ip addresses

4. Use this command to add an specific ip address that iis should listen on.
Type “add iplisten ipaddress=172.21.7.18”

5. You can also delete an IP from this list.
Type “delete iplisten ipaddress=172.21.7.18”

6. Type “show iplisten”

You should see the ip addresses you added.

7. Type exit

8. Restart IIS to apply these changes. from the command window, type:
iisreset

Posted in IIS, Microsoft, windows | Comments Off on How to configure iis 7 to listen on a single ip address or specific ip addresses

How to install mysqldb for python on Mac OSX

  • Install XCode and the command line tools
  • Install homebrew
  • brew install mysql-connector-c
  • pip install mysql-python
Posted in Mac OS X, python | Comments Off on How to install mysqldb for python on Mac OSX

Yosemite maximize button is broken!

Still not fixed in El Capitan 🙁

But you can get the correct functionality by holding option + shift while clicking the green button that used to do the right thing. It is too bad that got more complicated.

Posted in Mac OS X | Comments Off on Yosemite maximize button is broken!

Unable to load psycopg2 on Mac OSX El Capitan

I upgraded to El Capitan today and of course had to reinstall homebrew and all my python and development tools. I went to try to run a django app on my machine and kept getting this error:


django.core.exceptions.ImproperlyConfigured: Error loading psycopg2 module: dlopen(/Users/macuser/.virtualenvs/cjf/lib/python2.7/site-packages/psycopg2/_psycopg.so, 2): Library not loaded: @loader_path/../lib/libssl.1.0.0.dylib
Referenced from: /Users/macuser/.virtualenvs/cjf/lib/python2.7/site-packages/psycopg2/_psycopg.so

This was pretty frustrating. After a lot of googling I found out that i could link to the libssl.1.0.0.dylib in my Postgres.app (which i am very fond of by the way) I was not able to find the exact correct instructions do do this on El Capitan because of some new security measures. I kept getting this error when trying to link in /usr/lib as I was instructed.:

ln: libssl.1.0.0.dylib: Operation not permitted

I figured out that /usr/local/lib works for this link too, and you don’t get that error message.

cd /usr/local/lib
sudo ln -s /Applications/Postgres.app/Contents/MacOS/lib/libssl.1.0.0.dylib 
sudo ln -s /Applications/Postgres.app/Contents/MacOS/lib/libcrypto.1.0.0.dylib

UPDATE:
With the latest Postgres.app this worked for me:

cd /usr/local/lib
sudo ln -s /Applications/Postgres.app/Contents/Versions/9.6/lib/libssl.1.0.0.dylib
sudo ln -s /Applications/Postgres.app/Contents/Versions/9.6/lib/libcrypto.1.0.0.dylib 

This worked great for me. After softlinking these files in, psycopg2 module started loading just fine.

Posted in Mac OS X, postgres, python | Comments Off on Unable to load psycopg2 on Mac OSX El Capitan

How to undelete files in Linux (yes it can be done!)

extundelete.

extundelete works well.  I just used it to recover 30,000+ image files that were accidentally deleted with rm -r -f.

This program is a lifesaver!

Check it out here:

http://extundelete.sourceforge.net/

I used the –restore-all option after the –restore-directory failed to restore 11,000 of the files.

Posted in Linux | Comments Off on How to undelete files in Linux (yes it can be done!)