Posts

Showing posts from June, 2013

Hello World

Syntax Highliter in Use // understanding call-by-value vs call-by-reference #include int f1 (int, int, int); int f2 (int&, int&, int&); int f3 (int, int&, int); void main () { int i, j, k; i=1; j=2; k=3; cout << endl; cout << "Initial values of i, j, and k are: " << i << ", " << j << ", and " << k << endl << endl; cout << "f1(i,j,k) = " << f1(i,j,k) << endl; cout << "Values of i, j, and k after the call to f1 are: " << i << ", " << j << ", and " << k << endl << endl; cout << "f2(i,j,k) = " << f2(i,j,k) << endl; cout << "Values of i, j, and k after the call to f2 are: " << i << ", " << j << ", and " << k << endl << endl; cout << &

[Article Link] Publish Source code in Blogger

http://oneqonea.blogspot.in/2012/04/how-do-i-add-syntax-highlighting-to-my.html

Refactoring n configuring

We have a set of scripts in one of the products in my current company. I have been maintaining them for last six months. They are simple scripts which perform some routine maintenance task like logging etc. So I have been steadily improving them and adding more options and hardening them. But I wasn't able to spend some considerable time and finish them off with some real world unit testing and accompanying documentation with guidelines for use in various scenarios. I finished this big task this week. I have made considerable changes to make them very configurable so that they can be used in one of 7-8 possible use cases with minimal amount of changes. I also added logging capability and fine tuned it. That was a feature we were jn sore need of having. The logging capability will let us perform statistical analysis based on the logs. Overall this was the one great task of the week. On the documentation front I have created a standard document which depicts all the scenarios i

And I thought Qt's documentation was average

Till I encountered OpenSSL!!!

Upload files to a FTP site via batch script

http://www.howtogeek.com/50359/upload-files-to-an-ftp-site-via-a-batch-script/ Original Script:     @ECHO OFF ECHO Upload to FTP ECHO Written by: Jason Faulkner ECHO SysadminGeek.com ECHO. ECHO. REM Usage: REM UploadToFTP [/L] FileToUpload REM REM Required Parameters: REM    FileToUpload REM        The file or file containing the list of files to be uploaded. REM REM Optional Parameters: REM    /L    When supplied, the FileToUpload is read as a list of files to be uploaded. REM        A list of files should be a plain text file which has a single file on each line. REM        Files listed in this file must specify the full path and be quoted where appropropriate. SETLOCAL EnableExtensions REM Connection information: SET Server= SET UserName= SET Password= REM ---- Do not modify anything below this line ---- SET Commands="%TEMP%\SendToFTP_commands.txt" REM FTP user name and password. No spaces after either. ECHO %UserName%> %Commands% ECHO %Password%>> %Commands

OpenSSL vs the Me

I have been working on openSSL integration for some time. And its been quite some experience. I knew openSSL by name only. I was aware of SSL certificates - you know how sometimes things fail when you get some invalid certificate error. So I have learned a lot about both OpenSSL and authentication. I have also learned about public key encryption. But this has not been easy. I got stuck at almost every step. The problem was OpenSSL looks easy to use and as long as you are generating some certificates and using them with your web hosts. Look towards integration with existing software and then you need to take some easy chill pill. Basically I didn't even wanted to touch openSSL. I wanted to use Qt's inbuilt openSSL support and be done with it. But the requirements changed midway and Qt just couldn't extend far enough. I tried everything till inheriting QSslCertificate but it just wasn't designed to serve our requirement. So after going through some OpenSSL research