tag:blogger.com,1999:blog-20421221551740055832007-10-24T03:20:53.116+05:30Day LearningDaily we do a lot of things in life. Sometimes we get stuck some where with no help! So we google the problem and get the solution or partial solution! Then once we solve it, we forget it. But what if everybody does like this? Then there would not be no more knowledge to share. In this little blog I am trying to write my daily problems and happenings and the way I am trying to solve it.Arvindhttp://www.blogger.com/profile/09197905435676001922noreply@blogger.comBlogger14125tag:blogger.com,1999:blog-2042122155174005583.post-40640978205296627722007-09-12T10:48:00.001+05:302007-09-13T12:07:59.406+05:30How to use MS Excel sheet to track portfolioI find MS Excel very useful to track my finances. So one day I thought how nice it would be to track my portfolio using excel sheet. Then I searched internet for some free excel template to do this. And I found the one. I then modified it to make it more attractive with some color and formulas.<br /><br /><br />Then I thought how nice it would be if I can use it to calculate my capital gains from this sheet given the transactions. So I learnt some excel programming to come up with very crude way to do it. You can find this excel sheet <a href="http://purohitarvind.googlepages.com/YahooExcelPMS_4All.xls">here</a>. And I have created one ppt with screenshots telling how to use it. You can download it <a href="http://purohitarvind.googlepages.com/HowtoUseYahooExcel.ppt">here</a>. Please let me know your feedback at my email id purohit under score arvind at the rate of yahoo.com<br /><br /><script src="http://www.google-analytics.com/urchin.js" type="text/javascript"><br /></script><script type="text/javascript">r />_uacct = "UA-2589613-1";<br />urchinTracker();<br /></script>Arvindhttp://www.blogger.com/profile/09197905435676001922noreply@blogger.comtag:blogger.com,1999:blog-2042122155174005583.post-62987563661100739592007-09-05T12:47:00.001+05:302007-09-05T12:47:31.444+05:30JPEG Encoding<div class=Section1> <p class=MsoNormal><font size=2 face=Verdana><span style='font-size:10.0pt; font-family:Verdana'>Its quite long time since I blogged about what I am learning. Blogging should be a regular job. And regularity is toughness. Anyways here is what I have learnt today about JPEG Encoding</span></font></p> <p class=MsoNormal><font size=2 face=Verdana><span style='font-size:10.0pt; font-family:Verdana'>&nbsp;</span></font></p> <p class=MsoNormal><b><font size=2 face=Verdana><span style='font-size:10.0pt; font-family:Verdana;font-weight:bold'>JPEG Encoding</span></font></b></p> <p class=MsoNormal><b><font size=2 face=Verdana><span style='font-size:10.0pt; font-family:Verdana;font-weight:bold'>&nbsp;</span></font></b></p> <p class=MsoNormal><b><font size=2 face=Verdana><span style='font-size:10.0pt; font-family:Verdana;font-weight:bold'>JPEG</span></font></b><font size=2 face=Verdana><span style='font-size:10.0pt;font-family:Verdana'> is a lossy image compression and it exploits two limitations of human vision system</span></font></p> <p class=MsoNormal><font size=2 face=Verdana><span style='font-size:10.0pt; font-family:Verdana'>&nbsp;</span></font></p> <p class=MsoNormal style='margin-left:.5in;text-indent:-.25in'><font size=2 face=Verdana><span style='font-size:10.0pt;font-family:Verdana'>(1)<font size=1 face="Times New Roman"><span style='font:7.0pt "Times New Roman"'>&nbsp; </span></font></span></font><font size=2 face=Verdana><span style='font-size: 10.0pt;font-family:Verdana'>We are more sensitive to brightness then the color</span></font></p> <p class=MsoNormal style='margin-left:.5in;text-indent:-.25in'><font size=2 face=Verdana><span style='font-size:10.0pt;font-family:Verdana'>(2)<font size=1 face="Times New Roman"><span style='font:7.0pt "Times New Roman"'>&nbsp; </span></font></span></font><font size=2 face=Verdana><span style='font-size: 10.0pt;font-family:Verdana'>We are more sensitive to color change at lower brightness over large area then at higher frequency brightness.</span></font></p> <p class=MsoNormal><font size=2 face=Verdana><span style='font-size:10.0pt; font-family:Verdana'>&nbsp;</span></font></p> <p class=MsoNormal><font size=2 face=Verdana><span style='font-size:10.0pt; font-family:Verdana'>So to exploit it we do following things</span></font></p> <p class=MsoNormal><font size=2 face=Verdana><span style='font-size:10.0pt; font-family:Verdana'>&nbsp;</span></font></p> <p class=MsoNormal style='margin-left:.5in;text-indent:-.25in'><font size=2 face=Verdana><span style='font-size:10.0pt;font-family:Verdana'>(1)<font size=1 face="Times New Roman"><span style='font:7.0pt "Times New Roman"'>&nbsp; </span></font></span></font><font size=2 face=Verdana><span style='font-size: 10.0pt;font-family:Verdana'>Convert RGB color space to YCbCr model. Then reduce Cb and Cr component by as much as half! Thus use limitation (1) listed above</span></font></p> <p class=MsoNormal style='margin-left:.5in;text-indent:-.25in'><font size=2 face=Verdana><span style='font-size:10.0pt;font-family:Verdana'>(2)<font size=1 face="Times New Roman"><span style='font:7.0pt "Times New Roman"'>&nbsp; </span></font></span></font><font size=2 face=Verdana><span style='font-size: 10.0pt;font-family:Verdana'>Now split images in 8x8 blocks. </span></font></p> <p class=MsoNormal style='margin-left:.5in;text-indent:-.25in'><font size=2 face=Verdana><span style='font-size:10.0pt;font-family:Verdana'>(3)<font size=1 face="Times New Roman"><span style='font:7.0pt "Times New Roman"'>&nbsp; </span></font></span></font><font size=2 face=Verdana><span style='font-size: 10.0pt;font-family:Verdana'>Each of the Y, Cb, and Cr component of this 8x8 block goes through DCT phase. </span></font></p> <p class=MsoNormal style='margin-left:.5in;text-indent:-.25in'><font size=2 face=Verdana><span style='font-size:10.0pt;font-family:Verdana'>(4)<font size=1 face="Times New Roman"><span style='font:7.0pt "Times New Roman"'>&nbsp; </span></font></span></font><font size=2 face=Verdana><span style='font-size: 10.0pt;font-family:Verdana'>Then we quantize the output of DCT. </span></font></p> <p class=MsoNormal style='margin-left:.5in;text-indent:-.25in'><font size=2 face=Verdana><span style='font-size:10.0pt;font-family:Verdana'>(5)<font size=1 face="Times New Roman"><span style='font:7.0pt "Times New Roman"'>&nbsp; </span></font></span></font><font size=2 face=Verdana><span style='font-size: 10.0pt;font-family:Verdana'>Once quantized we know which part belong to high frequency brightness and which one belong to low brightness. We compress high intensity component more aggressively or may discard them altogether. This is the step in which major loss of information occur in encoding. Here we are exploiting limitation (2) listed above</span></font></p> <p class=MsoNormal style='margin-left:.5in;text-indent:-.25in'><font size=2 face=Verdana><span style='font-size:10.0pt;font-family:Verdana'>(6)<font size=1 face="Times New Roman"><span style='font:7.0pt "Times New Roman"'>&nbsp; </span></font></span></font><font size=2 face=Verdana><span style='font-size: 10.0pt;font-family:Verdana'>Remaining components are encoded using lossless compression technique like Huffman Encoding.</span></font></p> <p class=MsoNormal><font size=3 face=Verdana><span style='font-size:12.0pt; font-family:Verdana'>&nbsp;</span></font></p> <p class=MsoNormal><font size=3 face=Verdana><span style='font-size:12.0pt; font-family:Verdana'>Note: YCbCr is color model in which Y stands for Luma(brighness) and Cb and Cr stands for chrominance for blue and red.</span></font></p> <p class=MsoNormal><font size=3 face=Verdana><span style='font-size:12.0pt; font-family:Verdana'>&nbsp;</span></font></p> <p class=MsoNormal><font size=3 face=Verdana><span style='font-size:12.0pt; font-family:Verdana'>Question: What is DCT? You can explore more on it. </span></font></p> <p class=MsoNormal><font size=3 face=Verdana><span style='font-size:12.0pt; font-family:Verdana'>&nbsp;</span></font></p> <p class=MsoNormal><font size=3 face=Verdana><span style='font-size:12.0pt; font-family:Verdana'>Decoding should be the reverse process of it.</span></font></p> <p class=MsoNormal><font size=3 face=Verdana><span style='font-size:12.0pt; font-family:Verdana'>&nbsp;</span></font></p> </div> Arvindhttp://www.blogger.com/profile/09197905435676001922noreply@blogger.comtag:blogger.com,1999:blog-2042122155174005583.post-63190497121843017502007-05-04T17:13:00.001+05:302007-05-04T17:13:54.996+05:30Shape changing dialogs in QT4<div class=Section1> <p class=MsoNormal><font size=3 face="Times New Roman"><span style='font-size: 12.0pt'>I was not able to get QT4 book so I started learning from QT3 book which is freely available. Now when I started reading chapter 2, it talks of self changing dialogs. But here I had to spent a lot of time! The book which is based on QT3 tells that make &#8220;resizeMode&#8221; property from &#8220;Auto&#8221; to &#8220;Fixed&#8221;. But I did not find this property in QT4 at all! And I tried all the permutations and combinations of size of all the widgets. </span></font></p> <p class=MsoNormal><font size=3 face="Times New Roman"><span style='font-size: 12.0pt'>&nbsp;</span></font></p> <p class=MsoNormal><font size=3 face="Times New Roman"><span style='font-size: 12.0pt'>But then I looked in one dialog example. Here I saw that top level grid layout should call setSizeConstraint with argument as QLayout::SetFixedSize. And when I did this code change manually in ui_sortForm.h it worked liked magic! [Note ui_sortForm.h is generated by QT Designer from sortForm.ui file]</span></font></p> <p class=MsoNormal><font size=3 face="Times New Roman"><span style='font-size: 12.0pt'>&nbsp;</span></font></p> <p class=MsoNormal><font size=3 face="Times New Roman"><span style='font-size: 12.0pt'>One thing I don&#8217;t understand now is how come you cant change top most grid layout&#8217;s property in QT Designer? I may find out more about this when I learn more about QT. </span></font></p> <p class=MsoNormal><font size=3 face="Times New Roman"><span style='font-size: 12.0pt'>&nbsp;</span></font></p> <p class=MsoNormal><font size=3 face="Times New Roman"><span style='font-size: 12.0pt'>&nbsp;</span></font></p> <p class=MsoNormal><font size=3 face="Times New Roman"><span style='font-size: 12.0pt'>&nbsp;</span></font></p> </div> Arvindhttp://www.blogger.com/profile/09197905435676001922noreply@blogger.comtag:blogger.com,1999:blog-2042122155174005583.post-24397803054660576822007-04-12T11:53:00.000+05:302007-04-12T11:54:01.471+05:30Finally got QT working in office computer<div style="font-family:verdana, helvetica, sans-serif;font-size:10pt"><DIV>I got company laptop on which I removed Cygwin and installed QT 4.2.2. Now it is okay. I have started learning QT on office also. Idea is to learn about basic classes of QT and then to read more about specialized class in the area in which I want to programe.</DIV> <DIV>&nbsp;</DIV> <DIV>On office front I have prepared one PPT on Mobile Web 2.0. Lets see how and when this presentation needs to be given to my boss and others. I want to build a team of mobile web technologies.</DIV> <DIV>&nbsp;</DIV> <DIV>Lottery for H1B is on. There are roughly 1.2 Lacs visa applicants for a 65 thousand visas! So roughly 1 in evert 2 person would get it. There was a mad rush this time quota got over on first day itself. So they would use random selection (euphemism for lottery) to select the candidates who filed on first and second day of visa opening month. How pathetic! It would not be meritocracy but randomocracy I guess ;). Lets hope that I get the lottery :) Amen</DIV></div><br> <hr size=1>Expecting? Get great news right away with <a href="http://us.rd.yahoo.com/evt=49982/*http://advision.webevents.yahoo.com/mailbeta/newmail_tools.html">email Auto-Check.</a><br>Try the <a href="http://us.rd.yahoo.com/evt=49982/*http://advision.webevents.yahoo.com/mailbeta/newmail_tools.html">Yahoo! Mail Beta.</a>Arvindhttp://www.blogger.com/profile/09197905435676001922noreply@blogger.comtag:blogger.com,1999:blog-2042122155174005583.post-63686909672480201882007-03-28T09:43:00.000+05:302007-03-28T09:47:40.561+05:30Cygwin g++ error!While compiling a simple or complicated c++ program in Cygwin/g++ if you get below error<br /><br />/usr/lib/gcc-lib/i686-pc-cygwin/2.95.2-6/../../../../i686-pc-cygwin/bin/ld: cannot find -lstdc++<br />collect2: ld returned 1 exit status<br /><br />Go though following steps.<br /><br />First try to find where you /usr/lib is mapped. Use Cygpath -w /usr/lib<br /><br />Above command would tell you the windows directory path where /usr/local/lib is mapped. Go to that directory. In my case it was c:\utils\cygwin\lib. cd into this directory. And search for file libstdc*. You would get a file named libstdc++.a.2.10.0. Create a link named libstdc++.a for the same file in this directory. Here is sequence of commands.<br /><br />C:\> Cygpath -w /usr/lib<br />c:\utils\cygwin\lib<br /><br />C:\>cd c:\utils\cygwin\lib<br />C:\utils\Cygwin\lib>ls libstdc++*<br />libstdc++.a.2.10.0<br /><br />C:\utils\Cygwin\lib>ln -s libstdc++.a.2.10.0 libstdc++.a<br /><br />And thats it. And even if above trick does not work, try creating link to libstdc++ in directory given by cygpath -w /usr/local/lib.<br /><br />The problem is g++ can not find out libstdc++ on its own, it needs to be told about this. Here are more threads on this.<br /><br />http://ubuntuforums.org/archive/index.php/t-15120.html<br />http://gcc.gnu.org/ml/libstdc++/2002-05/msg00353.htmlArvindhttp://www.blogger.com/profile/09197905435676001922noreply@blogger.comtag:blogger.com,1999:blog-2042122155174005583.post-33411938216386141172007-03-26T23:37:00.001+05:302007-03-26T23:37:27.949+05:30Undefined referrence to 'vtable for MyWidget'<div style="font-family:verdana,helvetica,sans-serif;font-size:10pt"><div>So I have started learning QT on my own. Documentation for QT seems just fabulous. So today I am in tutorial number 4, and here as exercise I created a basic signal and slot. But I got this error .. undefined reference to `vtable for MyWidget'<br><br>I had put the class definion in my .cpp file and was struggling to get it compiled. But it would never compile and throw above compiler error along with some other random erros. When I googled, I got below link <br><br><span><a target="_blank" href="http://www.qtforum.org/article/302/Fixing-undefined-reference-to-vtable-.html">http://www.qtforum.org/article/302/Fixing-undefined-reference-to-vtable-.html</a></span><br><br>Sometimes the linking stage of compiling might fail with the rather confusing error:<br><br>undefined reference to `vtable for MyWidget`<br><br>So theme is don't put class definitions in .cpp files when they have the Q_OBJECT macro.<br><br></div></div><br> <hr size=1>Need Mail bonding?<br>Go to the <a href="http://answers.yahoo.com/dir/index;_ylc=X3oDMTFvbGNhMGE3BF9TAzM5NjU0NTEwOARfcwMzOTY1NDUxMDMEc2VjA21haWxfdGFnbGluZQRzbGsDbWFpbF90YWcx?link=ask&sid=396546091">Yahoo! Mail Q&A</a> for <a href="http://answers.yahoo.com/dir/index;_ylc=X3oDMTFvbGNhMGE3BF9TAzM5NjU0NTEwOARfcwMzOTY1NDUxMDMEc2VjA21haWxfdGFnbGluZQRzbGsDbWFpbF90YWcx?link=ask&sid=396546091">great tips from Yahoo! Answers</a> users.Arvindhttp://www.blogger.com/profile/09197905435676001922noreply@blogger.comtag:blogger.com,1999:blog-2042122155174005583.post-37360934859171881522007-03-26T14:56:00.000+05:302007-03-26T14:57:01.638+05:30Darwin Server from Apple.<font size="-1"><font face="Verdana">I was trying to install and use Apple's free Darwin Streaming Server on WinXP. But got into lot of troubles. There were many hit and trials which helped me setup the server.<br> <br> (1) You need to install DSS. Once it is installed, it would ask you to create admin user name and password. Do that. If all is okay it would start the server. In my case it was not so I had to close the command prompt window [because of perl]<br> <br> (2) Since I have Cygwin on my machine [The very reason my QT cant be compiled ;)] I could not install DSS, since it works only with Active Perl. So I had to install Active Perl and then had to remove " Cygwin Perl"'s path from my Path.<br> <br> (3) Then associated "Active Perl" with all .pl files through file assocication. This is not a problem once Cygwin Perl is removed from path and you click on some .pl files, windows would automatically ask you which program to select to run this. Just choose Active Perl.<br> <br> (4) On two command prompts I had to run DarwinStreamingServer.exe -d [NOTE :: DONT forget "-d" option from command prompt] and streamingadminserver.pl.<br> <br> (5) Now your server is up and in your web browser you can type <a class="moz-txt-link-freetext" href="http://your.ip.add.ress:1220">http://your.ip.add.ress:1220</a>. It would open DSS Server Admin. Enter your userid and password which you created in step (1).<br> <br> (6) Now comes streaming part. Remember that by default your media directory is c:\Program Files\Darwin Streaming Server\Movies\. So in case you want to stream some mp3 files put them here. Also dont forget to go to "Port Settings" and enable Port 80, in case you are behind firewall and intend to listen to this server from outside your LAN.<br> <br> (7) Create Playlists. Go to Playlists on your left pane, click on "New MP3 Playlist", give your playlist name like "sample" and give it a mount point "sample". Now you would see all the mp3 files below it. Add the files you want to add. <br> <br> (8) Now dont forget to choose your Playmode. NEVER set it as sequential. Or else once all the songs are played, there would not be any thing on your server. I chose "Sequential Looped". And thats it!<br> <br> (9) Go to Winamp and type <a class="moz-txt-link-freetext" href="http://your.ip.add.ress/sample">http://your.ip.add.ress/sample</a> and you would listen the songs.<br> <br> Foolishness which I did :- Created a mount point "/", added one file called "sample.mp3", chose the play method as "Sequential" and was trying to access <a class="moz-txt-link-freetext" href="http://my.ip.add.ress/sample.mp3">http://my.ip.add.ress/sample.mp3</a>, which of course would not work! <br> <br> Now I would try to set up straming movies server and then would see if it works too! Meanwhile I have thought of bringing precompiled QT libs from my home laptop and put them on my office PC to see if QT can then be make workable!<br> <br> </font></font><br> Arvindhttp://www.blogger.com/profile/09197905435676001922noreply@blogger.comtag:blogger.com,1999:blog-2042122155174005583.post-122987662961894552007-03-22T16:39:00.001+05:302007-03-22T16:39:21.269+05:30RGB Vs YCbCr , Static Globals not allowed in BREW<font size="-1"><font face="Verdana">RGB Vs. YCbCr<br> <br> I presume you know RGB. Any image is made up of two components, brightness and color information. Brightness information is high frequency information and color is low frequency information. Human Visual System (HVS) is more sensitive to brightness then color. Means it can identify brightness more better then change in color.<br> <br> Chroma is the color information of the picture. It is determined by seperating luma (Y) value from blue and red signal. If you need a quick formula here it is<br> <br> For taking advantage of this YCbCr model was developed. In this Y is calculated from weighted R, G and B. And then Cb and Cr are calculated. Then Cb and Cr are comressed more aggresively then Y. <br> If same principle [compressing low frequency color information] is applied to RGB model, image would&nbsp; not be of that quality as of JPEG. This is the difference of RGB and YCbCr.<br> <br> Sources <br> <br> <a class="moz-txt-link-freetext" href="http://www.impulseadventure.com/photo/jpeg-color-space.html">http://www.impulseadventure.com/photo/jpeg-color-space.html</a><br> <a class="moz-txt-link-freetext" href="http://en.wikipedia.org/wiki/Ycbcr">http://en.wikipedia.org/wiki/Ycbcr</a><br> <br> Why static and global varibles in BREW dynamic apps are not allowed ?<br> <br> Very crude reason : There is no data section in .mod files created by BREW. Static variables are allocated in data segment of programme. And they are offseted from a global "SB" static base register. Now BREW loads application anywhere in memory so if it were to allow static variables it would have to remember SB for evey applet which apparently BREW does not want to do. Though there are some hacks for it. For more information search BREW forums @ Qualcomm.com<br> <br> Meanwhile </font></font><font size="-1"><font face="Verdana">Linux server in our company location is still not up and I am waiting for it to compile my QT code. </font></font> Arvindhttp://www.blogger.com/profile/09197905435676001922noreply@blogger.comtag:blogger.com,1999:blog-2042122155174005583.post-41606269612199516442007-03-16T13:02:00.001+05:302007-03-16T13:02:12.683+05:30Telnet to Internet ?<font size="-1"><font face="Verdana">I am still waiting for IT Ops to respond to my problem of not being able to compile any simple program on the linux server. Meanwhile I thought that is there a big server on internet where I can login and run my QT applications ! So again I googled it and I got a <a href="http://www.freebelt.com/freeshells.html">link about this.</a><br> <br> But the servers mentioned there were too out of date. So I again used google to find out <a href="http://www.google.com/search?hl=en&amp;q=Free%20Linux%20Shell%20Account&amp;safe=on">Free Linux Shell Account.</a><br> <br> Lets see if something works out here! But list here <a href="http://www.ductape.net/%7Emitja/freeunix.shtml">seems</a> to be quite latest. I tried the a/c available with <a class="moz-txt-link-freetext" href="http://www.freeshell.org">http://www.freeshell.org</a>. It is pretty simple you just type the command telnet tty.freeshell.org on your command prompt. If you are a new user type in "new" post some text screens which you should read you would be able to create your linux a/c. So even if you are using Windows, dont have Linux installed but want to learn some basic Unix this is great!<br> <br> But you can not use all the commands on this server unless you give around 5 USD to them. Also you can not do stuff like exporting display on the server to your local machine and then launching some graphics application like Netscape navigator or any thing. That means I can not run my QT applications there, even if I am able to somehow put my QT there. Too bad! So let me stop this thread, but I learnt some thing new today ... and served the basic purpose of this blog.<br> <br> Next three days we have a big week end so may be I would not be learning anything new on next three days :)<br> </font></font> Arvindhttp://www.blogger.com/profile/09197905435676001922noreply@blogger.comtag:blogger.com,1999:blog-2042122155174005583.post-42151642021290281042007-03-15T16:16:00.001+05:302007-03-15T16:27:26.985+05:30Mocha X-Server<span style="font-family: verdana;font-family:verdana;font-size:100%;" >After googling a bit I got mocha X server which is entirely free. AND WOW!!!! it is perfect so far !! pretty fast ... simple installation! great .. just download it from <a class="moz-txt-link-freetext" href="http://www.newfreedownloads.com/download-Mocha-X-Server.html">http://www.newfreedownloads.com/download-Mocha-X-Server.html</a> and there you go. If you find this link dead! search google for it. IF that also fails put a comment on this blog and I may help you get this binary!<br /><br />Now another problem. Looks like I need root permission to install QT under Linux ! At least thats what the INSTALL file says. It says ..<br /><br /></span> <pre style="color: rgb(51, 0, 153); font-family: verdana;font-family:georgia;"><span style="font-size:100%;">To install the library, demos, examples, tools, and tutorials,<br />type: su -c "make install"</span></pre> <span style="font-family: verdana;font-family:verdana;font-size:100%;" >Obviosuly this would need root permission which I dont have. So let me search google to see if I can install QT without being a root!<br /><br />So I posted this question on QT news group and got a very quick and early response. They told me that I can use ./configure<br /></span><pre style="font-family: verdana;font-family:verdana;" wrap=""><span style="color: rgb(51, 0, 153);font-size:100%;" >./configure -prefix $HOME/qt or ./configure --prefix=/home/arvind/qt-libs </span><span style="font-size:100%;"><br /><br /></span><span style="font-size:100%;">Now when I tried to do that I figured out there is some problem with my office linux server. It is not even compiling a simple .c file. It is fuming with "cc1: No space left on device: error closing /tmp/ccpDlsaM.s" error. Directory name after /tmp is completely random. Meanwhile IT has reinstalled my Cygwin. Looks like I am much closer to have QT run in office environment! </span></pre>Arvindhttp://www.blogger.com/profile/09197905435676001922noreply@blogger.comtag:blogger.com,1999:blog-2042122155174005583.post-71243827174399580102007-03-15T13:06:00.001+05:302007-03-15T13:06:14.707+05:30Still trying to run QT ..somehow... Also learning QT.<font size="-1"><font face="Verdana">I had three options to have QT applications working on my office PC.<br> <br> (1) Install MingW and have it live peacefully with Cygwin, then use MingW to compile QT.<br> (2) Try to compile QT with just Cygwin.<br> (3) Login to company linux server, run QT apps there, export the display from there. On Windows PC run Cygwin/X.<br> <br> I had already exhausted options (1) and (2). I spent a lot of time on that. And while working on (3) I corrupted my existing Cygwin which we need to compile my offical project :). So I logged call for IT ops to reinstall Cygwin. I would also see if they can install Cygwin/X for me. If that happens then I would just have to take care of installing QT in my linux home directory and wow! <br> <br> Meanwhile I searched google for some other free X-server for windows and I got a link where it was mentioned that there is X-Server called X-Deep which is free. But when I went to their site&nbsp; it was mentioned that Free version is no longer there! I installed 15 days trial period! So now first hurdle is gone at least for next 15 days I can run my xserver and may be even QT applications! Now let me try to install QT in my home directory!<br> <br> Lets see what happens.<br> <br> Meanwhile I have also started learning QT. Going through world of Signals, Slots and Widgets. Coming weekend is a big weekend so am hoping that I would at least be able to make some simple programs in QT once this weekend is over! Amen!<br> <br> Also I am uploading my remaining photos on photos.yahoo.com. Great to see the technology advancement. I am planning to take backup of my entire photos on yahoo photos. So they are kind of permanent. <br> <br> <br> </font></font> Arvindhttp://www.blogger.com/profile/09197905435676001922noreply@blogger.comtag:blogger.com,1999:blog-2042122155174005583.post-84351235023108816562007-03-14T16:13:00.001+05:302007-03-14T16:16:57.290+05:30Cleartext property<span style="font-size:-1;"><span style="font-family:Verdana;">I was waiting for the IT ops to supply me the new linux server user ID and password, so I started google and searched for ways to export display from Linux machine to windows and I came across a pretty good article which is<br /><br />10 things you should do to every windows PC ( <a class="moz-txt-link-freetext" href="http://builder.com.com/5100-6404_14-5906772.html">http://builder.com.com/5100-6404_14-5906772.html</a> )<br /><br />I especially liked Turn on ClearType and adjust Desktop settings. Here are the things you need to do ....<br /><br /> 1. Right-click on the desktop.<br /> 2. Go to the Appearance tab.<br /> 3. Click the Effects button.<br /> 4. Check this option in the Effects dialog box: Use The Following Method To Smooth Edges Of Screen Fonts.<br /> 5. Select ClearType from the drop-down box.<br /> 6. Click OK.<br /><br />Above text is taken from <a class="moz-txt-link-freetext" href="http://articles.techrepublic.com.com/5100-22_11-5100472.html">http://articles.techrepublic.com.com/5100-22_11-5100472.html</a><br /><br />Now I am trying to install Cygwin/X on my Cygwin installation. With this I intentend to export my linux machine to export its display to my Windows PC. And then I would try to run QT applications on my linux server. LEts see how it goes!<br /><br />OH NO !!!<br /><br />My previously installed company provided cygwin has gone!! I dont seem to be having a directory named C:\Cygwin!! And when I run any linux command line ls I get the error . Whose text is "The procedure entry point __getreent could not be located in the dynamic link library cygwin1.dll" ... Again one more call to IT.<br /><br />Looks like I am still a long way before I can install Cygwin/X and run QT apps either on Cygwin or in linux server. Going for break now !!<br /><br /><br /></span></span>Arvindhttp://www.blogger.com/profile/09197905435676001922noreply@blogger.comtag:blogger.com,1999:blog-2042122155174005583.post-50736821219006852432007-03-14T14:46:00.001+05:302007-03-14T14:46:33.348+05:30Trying to run QT on linux.<font size="-1"><font face="Verdana"><b><u>Trying to run QT on linux.</u></b><br> <br> So I gave hope of compiling QT even on Cygwin! But not running QT. Then I remembered that our company has some linux server as well. Now am trying to login to linux server. <br> <br> Oops I forgot the password as last time I logged into system was two years back ! So I raised trouble ticket with IT. Am waiting for that ! Meanwhile I need to download XFree server so that I can export display on my telnet session to my windows PC so that I can run QT app in telnet session! Hope this works! <br> <br> <br> </font></font> Arvindhttp://www.blogger.com/profile/09197905435676001922noreply@blogger.comtag:blogger.com,1999:blog-2042122155174005583.post-55705788764094012282007-03-14T11:16:00.000+05:302007-03-14T12:30:26.054+05:30Trying to compile QT under Cygwin.Today I am trying to compile QT under CYGWIN. I have successfully installed QT, Eclipse and CDT on my home computer. But in office we have Cygwin so I am trying to compile QT under Cygwin.<br /><br />So far I am not able to do so. I am getting an error saying ....<br /><br />In file included from generators/makefiledeps.cpp:30:<br />../mkspecs/win32-g++/qplatformdefs.h:45:21: windows.h: No such file or directory<br /><br />Then I opened file qplatformdefs.h and saw that it is able to include many files. like tchar.h. So I did a global search of tchar.h in my C drive to find out where the hell this guy is picking tchar.h from I would put the windows.h in same location. [Of course I did dir /s windows.h in C: to find out there six copies of windows.h in my PC !].. Lets us see where are all the places where I find tchar.h<br /><br />Meanwhile another idea strcuk. I figured out that mingw32-make was coming from C:\Mingw\bin. I removed its path from path variable. And copied mingw32-make.exe to C:\utils\Cygwin\usr\bin. After that I found out that it started cribbing about tchar.h.<br /><br />Then I copied windows.h to c:\mingw\include where tchar.h was there and then add c:\ming32\bin back to path. Then it cribbed about lots of other .h file like windef.h etc. etc. I copied them from c:\utils\cygwin\usr\include\mingw to c:\mingw\include then I got following error<br /><br />C:/MinGW/bin/../lib/gcc/mingw32/3.4.5/../../../../include/stdio.h:432: error: `__gnuc_va_list' has not been declared<br />C:/MinGW/bin/../lib/gcc/mingw32/3.4.5/../../../../include/stdio.h:433: error: `__gnuc_va_list' has not been declared<br />C:/MinGW/bin/../lib/gcc/mingw32/3.4.5/../../../../include/stdio.h:434: error: `__gnuc_va_list' has not been declared<br />C:/MinGW/bin/../lib/gcc/mingw32/3.4.5/../../../../include/stdio.h:435: error: `__gnuc_va_list' has not been declared<br />C:/MinGW/bin/../lib/gcc/mingw32/3.4.5/../../../../include/stdio.h:467: error: `__gnuc_va_list' has not been declared<br />C:/MinGW/bin/../lib/gcc/mingw32/3.4.5/../../../../include/stdio.h:469: error: `__gnuc_va_list' has not been declared<br />C:/MinGW/bin/../lib/gcc/mingw32/3.4.5/../../../../include/stdio.h:471: error: `__gnuc_va_list' has not been declared<br />C:/MinGW/bin/../lib/gcc/mingw32/3.4.5/../../../../include/stdio.h:473: error: `__gnuc_va_list' has not been declared<br /><br />and still I am struggling to compile QT under Cygwin !!!Arvindhttp://www.blogger.com/profile/09197905435676001922noreply@blogger.com