Tuesday, October 25, 2011

SOLVED: Netbeans 7 FTP uploads fails after upgrading to JDK 7

Netbeans 7.0.1, JDK7, Windows 7 / Vista
32/64 bit

Netbeans FTP uploads to a remote site fail after upgrading to JDK 7.
The issue is related to new features introduced in JDK7 FTP and by default blocked by Windows Firewall.

Solution:
1. Run cmd.exe as an administrator.
2. Run the following command in cmd:
netsh advfirewall set global StatefulFTP disable

You are done, try Netbeans FTP uploads now.

Thursday, June 30, 2011

Installing MYSQL on RedHat Enterprise Linux RHEL 6.1

Get MySQL here: http://www.mysql.com/downloads/mysql/#downloads


Select TAR installation if available, get the link of TAR and run
wget [link]

Uncompress
 tar -xvf MySQL-5.5.13-1.rhel5.x86_64.tar


Install server:
rpm -Uvh MySQL-server-5.5.13-1.rhel5.x86_64.rpm

Install client:
rpm -Uvh MySQL-client-5.5.13-1.rhel5.x86_64.rpm


Note this warning:
----------------------
PLEASE REMEMBER TO SET A PASSWORD FOR THE MySQL root USER !
To do so, start the server, then issue the following commands:

/usr/bin/mysqladmin -u root password 'new-password'
/usr/bin/mysqladmin -u root -h ip-10-34-70-147 password 'new-password'

Alternatively you can run:
/usr/bin/mysql_secure_installation

which will also give you the option of removing the test
databases and anonymous user created by default.  This is
strongly recommended for production servers.

See the manual for more instructions.

Please report any problems with the /usr/bin/mysqlbug script!

-----------------------------------

Start MySQL:
service mysql start

Monday, March 21, 2011

RDC error "terminal service exceeds number of connections"

If trying to remote login as Administrator to a remote MS computer via Remote Desktop gives an error about too many open connections, do the following:

1. open cmd.exe on your local Windows machine

2. Run from command line:
mstsc /admin

This will run Remote Desktop and allow the login.

optional - 3. Open Task Monitor on the remote computer and 'logoff' all the logged in users but yours.

Saturday, February 19, 2011

Set up Mac files share for Windows

http://macs.about.com/od/networking/qt/sharingleopard.htm
http://lifehacker.com/#!247541/how-to-access-a-macs-files-on-your-pc

Thursday, November 25, 2010

GoDaddy Coupons

I tried YUP749 and it worked for me! Applied at the very last step, when you are reviewing your shopping card before the final confirmation. Look for "coupon" field at the top right of checkout page.

Good deal, particularly if you are buying 5- or 10- year domains.

FAN3 – 35% off domains Most popular.
FAN749 – 50% off .ORG domains
YUP749 – $7.49 .NET domains
FED749 – $7.49 .BIZ domains

GAM1 – 10% off any order
MIN15 – 15% off any order of $75 or more

GAM2 – $5 off any order $30 or more
FANOFF – $10 off any order $40 or more

PETS20 – 20% off hosting plans of 1yr or more
GAM1 – 10% off month to month hosting
AUCTION12 – 50% off godaddy auction account
FANSSL – 56% off godaddy ssl account ($30 account for $12.99)

Monday, November 22, 2010

How to remove categories slugs in WordPress

WordPress adds default category slug to your blog URLs, so a URL to your category page looks like myblog.org/category/receipts/

You can replace 'category' word with whatever you want, e.g. with 'food', so you'll get
myblog.org/food/receipts/
Better, but still not ideal - what if your blog is not about food only?

Surprisingly, if you completely remove the categories slug in Settings->Permalinks, leaving the field there empty, WP will restore the default 'category' slug back.

I want my categories URLs to look clean -
myblog.org/receipts/
It's better for humans and SEO (these two typically come together).
WP has no option for that, but there is a nice plugin:
WP No Category Base

Simply install it. No configuration required.
Voila! Here are you go: http://photocoupon.net/camera/

Saturday, November 13, 2010

Wordpress with HTTPS/SSL on a custom port

I wasted a few hours trying to configure Wordpress to run on a non-default (not 443) SLL port. Well, it looks it is impossible due to how the WP code is written. Switching from HTTP to HTTPS just replaces the 'http://' URL part with 'https://' part and the port is ignored. The developers assumed that SSL is always on port 443, which obviously can be a huge problem if you are willing to run a few WP with SLL on the same machine.

Playing with .htaccess can not do the trick either. At least I did not found how to do that.