http://blueimp.github.com/jQuery-File-Upload/
Wednesday, January 30, 2013
Monday, January 28, 2013
Friday, January 25, 2013
Java Garbage Collection
PermGen, Garbage collection.
http://blog.takipi.com/garbage-collectors-serial-vs-parallel-vs-cms-vs-the-g1-and-whats-new-in-java-8/
RMI -> Web services
Servlet, Applet, JSP -> Spring
http://blog.takipi.com/garbage-collectors-serial-vs-parallel-vs-cms-vs-the-g1-and-whats-new-in-java-8/
RMI -> Web services
Servlet, Applet, JSP -> Spring
Thursday, January 24, 2013
Ruby - Catch or rescue multiple exceptions on the same line.
begin
...
rescue ExceptionType1, ExceptionType2 => e
...
end
...
rescue ExceptionType1, ExceptionType2 => e
...
end
Friday, January 11, 2013
Management - Request agile developer to submit a feature spec and design spec before beginning a new story
In an agile development environment, developer will collect story owner feature requirement and then design the way to implement. To overview the job to be carry out by developer, team leader have to get a sense of what has been requested and what is being prepared and designed.
Git - Find changes of a file within all local branches
git log --all -- somefile_fullpath
Thursday, January 10, 2013
Practice - Keep a source code map in wiki
For new joined developers to quickly locate the source code.
Tuesday, January 8, 2013
Linux - rsync from local to remote
rsync -au /var/www/confluence/confluence-data/backups -e 'ssh -p 1337' your_name@some_ip:/home/your_name/backups/wiki_backups
Monday, January 7, 2013
Development steps for Facebook integration - website app
- Register a Facebook account.
- Register as a Facebook developer.
- Create new app.
- Follow samples or demo on Facebook site.
References:
http://developers.facebook.com/docs/guides/web/
https://www.facebook.com/help/403653596349195/
https://developers.facebook.com/apps
https://developers.facebook.com/docs/guides/appcenter/
http://developers.facebook.com/docs/samples/
Saturday, January 5, 2013
Apache supporting multiple domain websites with single IP
Listen 443
NameVirtualHost *:443
SSLStrictSNIVHostCheck off
<VirtualHost *:443>
DocumentRoot /srv/www/example1.com/
ServerName www.example1.com
...
</VirtualHost>
<VirtualHost *:443>
DocumentRoot /srv/www/example2.com/
ServerName www.example2.com
...
</VirtualHost>
NameVirtualHost *:443
SSLStrictSNIVHostCheck off
<VirtualHost *:443>
DocumentRoot /srv/www/example1.com/
ServerName www.example1.com
...
</VirtualHost>
<VirtualHost *:443>
DocumentRoot /srv/www/example2.com/
ServerName www.example2.com
...
</VirtualHost>
Thursday, January 3, 2013
Create a SSL Cert, sign by Godaddy.com, install on Apache
- Login VPS, root@ubuntu:~# openssl req -new -newkey rsa:2048 -nodes -keyout your_domain.key -out your_domain.csr
- Godaddy.com
- Product > SSL Cert
- Basic SSL Cert
- 3 yrs
- Add to cart
- Checkout
- Payment
- Account > SSL Cert
- Setup
- Launch
- Current Certificates
- Credits
- Refresh
- Request Certificate
- Choose 3rd party
- Paste your_domain.csr content to form
- submit
- Wait for email.
- Download cert from Godaddy.com.
- Select Apache.
- Copy your_domain.crt and gd_bundle.crt (the CA's bundle file) to VPS, e.g. /etc/ssl/private/
- Edit /etc/apache2/sites-available/default.ssl
- SSLCertificateFile /etc/ssl/private/your_domain_com.crt
- SSLCertificateKeyFile /etc/ssl/private/private.key
- SSLCACertificateFile /etc/ssl/private/gd_bundle.crt
- Restart apache. $> sudo service apache2 restart
- Done
References:
http://support.godaddy.com/help/article/5269/generating-a-certificate-signing-request-csr-apache-2x
http://support.godaddy.com/help/article/562/requesting-standard-and-wildcard-ssl-certificates
http://support.godaddy.com/help/article/5238/installing-an-ssl-certificate-in-apache
https://help.ubuntu.com/12.04/serverguide/httpd.html
http://www.geocerts.com/install/apache_2
Tuesday, January 1, 2013
Toolbox - Zabbix
Zabbix is the ultimate open source availability and performance
monitoring solution. Zabbix offers advanced monitoring, alerting, and
visualization features today which are missing in other monitoring
systems, even some of the best commercial ones.
monitoring solution. Zabbix offers advanced monitoring, alerting, and
visualization features today which are missing in other monitoring
systems, even some of the best commercial ones.
Subscribe to:
Posts (Atom)