Saturday, December 26, 2015

Free Https Certificates

Use letsencrypt,org if you want free HTTPS certs . The certs are valid for 3 months. You might need to run a cron job to renew the certs.

Also while integration I faced an issue where letsencrypt server was not able to access my server. It is because I have enabled the HTTP User authentication on full site.

letsencrypt wants access to .wellknown dir. I just need to bypass this dir in nginx config. After that things worked like a charm.


Sunday, September 13, 2015

How to use Workspace in Jenkins build Flow plugin

While Integrating with Build Flow plugin in Jenkins , I see a strange problem of files not getting downloaded and Post builds action not getting triggered.

After goolging , I figured out the problem. We need to check the "Flow runs needs a workspace" check-box to enable the code check-out and start post build actions.


Saturday, August 8, 2015

How to design scalable social site

http://highscalability.com/blog/2015/7/22/architecting-backend-for-a-social-product.html

Saturday, July 18, 2015

Sunday, May 10, 2015

How to use mapped Drives from Windows Service

You cannot access Network Drives or UNC paths from Windows Service irrespective of the credentials you have specified in Service.

An alternative to using mapped directories or UNC paths is to use symlinks.

NTFS symbolic links (symlinks) can refer to a UNC path but differ from shortcuts in that there is no redirect to the requested location. If you create a symlink as the following...

mklink /D C:\myLink \\127.0.0.1\c$
... then when you open C:\myLink the address of the folder you are in will be C:\myLink and not \\127.0.0.1\c$, which is what you would get if myLink was a shortcut and not a symlink. This is significant if your application has compatibility issues with UNC paths.

Wednesday, May 6, 2015

Front End Developer Interview Questions

Some good and basic questions

https://github.com/h5bp/Front-end-Developer-Interview-Questions

Friday, April 24, 2015

Doskey Support in Jenkins

Other day I was trying to port the existing Windows build files to Jenkins. Builds files have the doskey to build the env. When I run the usual commands , Jenkins somehow do not understood the doskey .

After much research I was able to stumble on following link .

The crux is that "You cannot run a Doskey macro from a batch file" .  And Jenkins run the Windows commands as a batch script.