<?xml version='1.0' encoding='UTF-8'?><?xml-stylesheet href="http://www.blogger.com/styles/atom.css" type="text/css"?><feed xmlns='http://www.w3.org/2005/Atom' xmlns:openSearch='http://a9.com/-/spec/opensearchrss/1.0/' xmlns:georss='http://www.georss.org/georss' xmlns:gd='http://schemas.google.com/g/2005' xmlns:thr='http://purl.org/syndication/thread/1.0'><id>tag:blogger.com,1999:blog-15004445</id><updated>2011-12-12T12:38:17.395-08:00</updated><category term='picture viewer'/><category term='restart'/><category term='compile error'/><category term='CTreeCtrl'/><category term='Windows'/><category term='IDE'/><category term='bios'/><category term='gnome'/><category term='Primary Partition Limitation'/><category term='mouse'/><category term='picture and fax viewer'/><category term='disk defragmenter'/><category term='tips'/><category term='picture and fax viewer error'/><category term='linux tips'/><category term='defrag engine'/><category term='usb drive'/><category term='chime'/><category term='Accelerator Keys'/><category term='defrag'/><category term='xp'/><category term='metacity'/><category term='pen drive'/><category term='linux'/><category term='mouse scroll'/><category term='boot'/><category term='disable autorun'/><category term='Winhelp'/><category term='DCOM Server'/><category term='tutorial'/><category term='Dialog'/><category term='example'/><category term='VB6'/><category term='defrag problem'/><category term='shell scripts'/><category term='windowsn'/><category term='autorun'/><category term='VB'/><category term='CRichEditCtrl'/><category term='HTMLHelp'/><category term='administrative'/><category term='MFC'/><category term='analyze'/><category term='shell script tips'/><category term='gpedit'/><category term='checkboxes'/><category term='mac'/><category term='ubuntu 10.04'/><category term='virus'/><category term='microsoft'/><category term='Tooltip'/><category term='windows winhelp'/><category term='ubuntu'/><category term='window manager'/><category term='error'/><category term='VC6'/><category term='VC'/><title type='text'>linwinmac</title><subtitle type='html'>all that i cross-over in lin,win,mac. from bit to wit.</subtitle><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='http://linwinmac.blogspot.com/feeds/posts/default'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/15004445/posts/default?max-results=100'/><link rel='alternate' type='text/html' href='http://linwinmac.blogspot.com/'/><link rel='hub' href='http://pubsubhubbub.appspot.com/'/><author><name>Joseph Antony</name><uri>http://www.blogger.com/profile/01429101852571349228</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><generator version='7.00' uri='http://www.blogger.com'>Blogger</generator><openSearch:totalResults>51</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>100</openSearch:itemsPerPage><entry><id>tag:blogger.com,1999:blog-15004445.post-3089552158150000614</id><published>2011-12-12T02:08:00.000-08:00</published><updated>2011-12-12T12:38:17.615-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='picture and fax viewer'/><category scheme='http://www.blogger.com/atom/ns#' term='picture viewer'/><category scheme='http://www.blogger.com/atom/ns#' term='Windows'/><category scheme='http://www.blogger.com/atom/ns#' term='tips'/><category scheme='http://www.blogger.com/atom/ns#' term='picture and fax viewer error'/><category scheme='http://www.blogger.com/atom/ns#' term='microsoft'/><title type='text'>Microsoft Picture Fax Viewer problem</title><content type='html'>&lt;p align="justify"&gt;With picasa and a host of other picture viewing programs, the default image viewer Microsoft's Picture and Fax Viewer kind of went into oblivion for me. One fine day, I wanted to use it for viewing images (out of pure nostalgia) and found out that it was not getting listed at all in my "Open with" menu. I also was not able to find it through any program. After googling, I found out that it is actually a DLL, shimgvw.dll and needs to be launched with rundll32.exe. So, I tried that. I typed&lt;/p&gt; &lt;pre&gt;rundll32 shimgvw.dll,ImageView_Fullscreen&lt;/pre&gt;&lt;p align="justify"&gt; both in "Run" prompt as well as from the command line. Both gave me an error. "Missing entry ImageView_Fullscreen". None of the forums seem to have given a solution to fix this issue. After some more unlucky searches, I ended up with this command to be run. In the command line, run "regsvr32 /i shimgvw.dll" (without the quotes). It should say "registered successfully". Voila, my problem was solved. The viewer started appearing in my right click menu. I still do not know how it vanished in the first place. But, atleast I know how to bring it back.&lt;/p&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/15004445-3089552158150000614?l=linwinmac.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://linwinmac.blogspot.com/feeds/3089552158150000614/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=15004445&amp;postID=3089552158150000614' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/15004445/posts/default/3089552158150000614'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/15004445/posts/default/3089552158150000614'/><link rel='alternate' type='text/html' href='http://linwinmac.blogspot.com/2011/12/microsoft-picture-fax-viewer-problem.html' title='Microsoft Picture Fax Viewer problem'/><author><name>Joseph Antony</name><uri>http://www.blogger.com/profile/01429101852571349228</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-15004445.post-1270758709325245639</id><published>2011-05-27T22:15:00.000-07:00</published><updated>2011-05-27T22:34:12.761-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='window manager'/><category scheme='http://www.blogger.com/atom/ns#' term='metacity'/><category scheme='http://www.blogger.com/atom/ns#' term='ubuntu 10.04'/><category scheme='http://www.blogger.com/atom/ns#' term='linux'/><category scheme='http://www.blogger.com/atom/ns#' term='linux tips'/><category scheme='http://www.blogger.com/atom/ns#' term='ubuntu'/><category scheme='http://www.blogger.com/atom/ns#' term='gnome'/><title type='text'>Disappeared Window Manager</title><content type='html'>I use Ubuntu 10.04 at home. I am a GNOME guy since the days of RHL 9. One day, suddenly, all of a sudden, the maximize, minimize and close icons on all my windows just disappeared. Just like that. Didnt know what hit me. I had to go to the menu item, and close it. Then Googling, I found out that there is this guy called "metacity", a window manager, who is incharge of these kinds of stuff in the GUI for GNOME. From this link, I found out how to give it a boot, and bring back my lifesavers.&lt;br /&gt;&lt;br /&gt;All you had to do is:&lt;br /&gt;&lt;br /&gt;1. Check if its already running&lt;br /&gt;&lt;pre&gt;ps aux | grep metacity&lt;/pre&gt;&lt;br /&gt;&lt;br /&gt;2. Then, if its not (even if its running), just load it.&lt;br /&gt;&lt;pre&gt;sudo metacity&lt;/pre&gt;&lt;br /&gt;&lt;br /&gt;3. If it gives an error like "Window manager warning: Screen 0 on display ":0.0" already has a window manager;", then just force it&lt;br /&gt;&lt;br /&gt;&lt;pre&gt; sudo metacity --replace&lt;/pre&gt;&lt;br /&gt;&lt;br /&gt;There is a catch here. this will occupy a terminal window. So, I'd suggest, you give the system a restart, if you arent into anything utterly serious. &lt;br /&gt;&lt;br /&gt;I expertly went ahead and killed that process, and my whole GUI went for a toss. Nothing worked (except the mouse). So, I had to run to my second login screen, do a &lt;pre&gt;kill -9 METACITY-PID&lt;/pre&gt; of the metacity manager, and restart it with &lt;pre&gt;sudo metacity --display=:0.0 --replace&lt;/pre&gt;&lt;br /&gt;&lt;br /&gt;And then, after I had saved my documents, I restarted the system. All is well, that restarted well.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;a href="http://ubuntuforums.org/showthread.php?t=1469140"&gt;Source link&lt;/a&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/15004445-1270758709325245639?l=linwinmac.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://linwinmac.blogspot.com/feeds/1270758709325245639/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=15004445&amp;postID=1270758709325245639' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/15004445/posts/default/1270758709325245639'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/15004445/posts/default/1270758709325245639'/><link rel='alternate' type='text/html' href='http://linwinmac.blogspot.com/2011/05/disappeared-window-manager.html' title='Disappeared Window Manager'/><author><name>Joseph Antony</name><uri>http://www.blogger.com/profile/01429101852571349228</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-15004445.post-143892391535210345</id><published>2010-09-17T02:26:00.000-07:00</published><updated>2010-09-17T02:44:32.854-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='autorun'/><category scheme='http://www.blogger.com/atom/ns#' term='virus'/><category scheme='http://www.blogger.com/atom/ns#' term='administrative'/><category scheme='http://www.blogger.com/atom/ns#' term='windows winhelp'/><category scheme='http://www.blogger.com/atom/ns#' term='pen drive'/><category scheme='http://www.blogger.com/atom/ns#' term='windowsn'/><category scheme='http://www.blogger.com/atom/ns#' term='usb drive'/><category scheme='http://www.blogger.com/atom/ns#' term='gpedit'/><category scheme='http://www.blogger.com/atom/ns#' term='disable autorun'/><title type='text'>Disable Autorun for USB Pen drives and CD Drives</title><content type='html'>Disabling autorun for USB drives prevents a lot of virus from jumping into the system as most of the "small" guys use the AutoRun feature to trigger themselves. There is a way to disable it completely.&lt;br /&gt;&lt;br /&gt;Click "Start / Run" and type "gpedit.msc". It should open a windows like the one below&lt;br /&gt;&lt;br /&gt;(Click on it to open a bigger image).&lt;br /&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://2.bp.blogspot.com/_SWr17YqNqlU/TJM2WB8ADyI/AAAAAAAAAR4/UkIBRr0X8lk/s1600/gpedit.JPG"&gt;&lt;img style="cursor:pointer; cursor:hand;width: 340px; height: 229px;" src="http://2.bp.blogspot.com/_SWr17YqNqlU/TJM2WB8ADyI/AAAAAAAAAR4/UkIBRr0X8lk/s320/gpedit.JPG" border="0" alt=""id="BLOGGER_PHOTO_ID_5517813720564109090" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;In that go to the branch on the left hand side frame following the below path&lt;br /&gt;&lt;br /&gt;"Local Computer Policy / Computer Configuration / Administrative Templates / System"&lt;br /&gt;&lt;br /&gt;Clicking on "System" will list lots of items on the right window. One of them is "Turn Off Autoplay". &lt;br /&gt;&lt;br /&gt;Double click on that, make sure to select "Enabled" radio button and on the list box below, select "All Drives".&lt;br /&gt;&lt;br /&gt;This should disable Autorun in all usb and cd/dvd drives on the system.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/15004445-143892391535210345?l=linwinmac.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://linwinmac.blogspot.com/feeds/143892391535210345/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=15004445&amp;postID=143892391535210345' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/15004445/posts/default/143892391535210345'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/15004445/posts/default/143892391535210345'/><link rel='alternate' type='text/html' href='http://linwinmac.blogspot.com/2010/09/disable-autorun-for-usb-pen-drives-and.html' title='Disable Autorun for USB Pen drives and CD Drives'/><author><name>Joseph Antony</name><uri>http://www.blogger.com/profile/01429101852571349228</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://2.bp.blogspot.com/_SWr17YqNqlU/TJM2WB8ADyI/AAAAAAAAAR4/UkIBRr0X8lk/s72-c/gpedit.JPG' height='72' width='72'/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-15004445.post-2861350155554731859</id><published>2010-09-17T02:18:00.000-07:00</published><updated>2010-09-17T02:26:01.779-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='restart'/><category scheme='http://www.blogger.com/atom/ns#' term='chime'/><category scheme='http://www.blogger.com/atom/ns#' term='bios'/><category scheme='http://www.blogger.com/atom/ns#' term='mac'/><category scheme='http://www.blogger.com/atom/ns#' term='boot'/><title type='text'>Rebooting Mac</title><content type='html'>Mac has the uncanny habit of screwing itself up (atleast mine does) and then not telling the user what happened. Let me explain. All of a sudden, the initial grey screen comes up with the loading "rotator" thingy. And thats about it. Nothing more happens. And when I force shutdown and restart, it does not actually start from the beginning, meaning it does not do a "CHUNNNGGG" chime sound when restarting. &lt;br /&gt;&lt;br /&gt;And again, the cloud was the Good Samaritan (who else is there). Pressing the keyboard combination of "Command(Apple)-Option-P-R" and holding it like that (NB: it needs some skill to hold this key combination) until the chime sounds twice should resolve the issue. But, my machine seems to be a bit more adamant than that. Even though I have "CHUNNNG"ed it, it still stops are the rotator screen. :-( Will update the post as and when I find a solution.&lt;br /&gt;&lt;br /&gt;Source: &lt;a href="http://www.tuaw.com/2006/03/27/tuaw-tip-keyboard-shortcuts-during-mac-os-x-startup/"&gt;TUAW&lt;/a&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/15004445-2861350155554731859?l=linwinmac.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://linwinmac.blogspot.com/feeds/2861350155554731859/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=15004445&amp;postID=2861350155554731859' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/15004445/posts/default/2861350155554731859'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/15004445/posts/default/2861350155554731859'/><link rel='alternate' type='text/html' href='http://linwinmac.blogspot.com/2010/09/rebooting-mac.html' title='Rebooting Mac'/><author><name>Joseph Antony</name><uri>http://www.blogger.com/profile/01429101852571349228</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-15004445.post-1940292108262818256</id><published>2010-04-29T03:51:00.001-07:00</published><updated>2010-04-29T03:51:45.945-07:00</updated><title type='text'>Control characters in source file after ftp</title><content type='html'>&lt;div&gt;&amp;lt;p align=&amp;quot;justify&amp;quot;&amp;gt;My friend had a problem with a Linux file. he had ftp&amp;#39;d a file from windows into Linux. Now, every line in that file has a ^M at its end. He wanted a way to avoid it, and/or remove the control characters from such files.&lt;/div&gt; &lt;div&gt;&lt;br&gt;&lt;/div&gt;&lt;div&gt;Browsing thru the web, there were multiple answers provided.&lt;/div&gt;&lt;div&gt;&lt;br&gt;&lt;/div&gt;&lt;div&gt;1. While uploading via ftp, use the ASCII mode, not the binary mode. This will translate the line ends properly. Binary mode is to be used for programs and archive files only (like zip, tar, etc..)&lt;/div&gt; &lt;div&gt;2. dos2unix (and its complementary unix2dos utility)&lt;/div&gt;&lt;div&gt;3. cat file | tr -d &amp;quot;\r&amp;quot; &amp;gt; newfile&lt;/div&gt;&lt;div&gt;4. sed &amp;#39;s/.$//&amp;#39; infile.txt &amp;gt; outfile.txt&lt;/div&gt;&lt;div&gt;5. col -bx &amp;lt; oldfile &amp;gt; newfile&lt;/div&gt; &lt;div&gt;&lt;br&gt;&lt;/div&gt;&lt;div&gt;Disclaimer: I have not tried this in any of the ways mentioned. I am just listing it for easy access only.&amp;lt;/p&amp;gt;&lt;/div&gt; &lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/15004445-1940292108262818256?l=linwinmac.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://linwinmac.blogspot.com/feeds/1940292108262818256/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=15004445&amp;postID=1940292108262818256' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/15004445/posts/default/1940292108262818256'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/15004445/posts/default/1940292108262818256'/><link rel='alternate' type='text/html' href='http://linwinmac.blogspot.com/2010/04/control-characters-in-source-file-after.html' title='Control characters in source file after ftp'/><author><name>Joseph Antony</name><uri>http://www.blogger.com/profile/01429101852571349228</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-15004445.post-8179934203667627278</id><published>2009-11-14T11:55:00.000-08:00</published><updated>2009-11-14T12:05:05.523-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='defrag problem'/><category scheme='http://www.blogger.com/atom/ns#' term='DCOM Server'/><category scheme='http://www.blogger.com/atom/ns#' term='analyze'/><category scheme='http://www.blogger.com/atom/ns#' term='xp'/><category scheme='http://www.blogger.com/atom/ns#' term='defrag'/><category scheme='http://www.blogger.com/atom/ns#' term='disk defragmenter'/><category scheme='http://www.blogger.com/atom/ns#' term='defrag engine'/><title type='text'>xp disk defragmenter does not analyze or defrag</title><content type='html'>&lt;p align="justify"&gt;My system (as usual) was starting too sluggishly for my liking to start the defragmentation. But, when I clicked "Analyze" or "Defrag", nothing happened. I mean, absolutely nothing. No error messages. Not even a warning. Something in the lines of "hey moron, you are doing something wrong here" would have been more appropriate. Well, like any dumb user, I entered the realm of Google, and ended up triggering the defrag.exe from the command prompt. There, I got something. "Windows cannot connect to the Disk Defragmenter engine". Now, if only I KNEW where and how the hell I kick start that damn engine. Once again Larry ewing's nerds helped me from yonder. It seemed that the "DCOM Server Process Launcher" was not running. It had to be kick started for the defragger to skate board on. So, I clicked "Start/Run" and typed in "services.msc" and opened the services window. (the more normal way would be to go to My Computer, right click on it, Manage, and click services, bah, am a lazy guy). Kick started it, (but it acutally didnt. I had to set the mode to "Automatic" and restart the system). Then, I launched our guy, and voila, we are up and running.... Okay, he is working RIGHT NOW. Off I go. Tata&lt;/p&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/15004445-8179934203667627278?l=linwinmac.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://linwinmac.blogspot.com/feeds/8179934203667627278/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=15004445&amp;postID=8179934203667627278' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/15004445/posts/default/8179934203667627278'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/15004445/posts/default/8179934203667627278'/><link rel='alternate' type='text/html' href='http://linwinmac.blogspot.com/2009/11/xp-disk-defragmenter-does-not-analyze.html' title='xp disk defragmenter does not analyze or defrag'/><author><name>Joseph Antony</name><uri>http://www.blogger.com/profile/01429101852571349228</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-15004445.post-5737960533657455275</id><published>2009-08-06T22:24:00.000-07:00</published><updated>2009-08-06T22:27:38.545-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='IDE'/><category scheme='http://www.blogger.com/atom/ns#' term='windows winhelp'/><category scheme='http://www.blogger.com/atom/ns#' term='VB'/><category scheme='http://www.blogger.com/atom/ns#' term='mouse'/><category scheme='http://www.blogger.com/atom/ns#' term='VB6'/><category scheme='http://www.blogger.com/atom/ns#' term='mouse scroll'/><title type='text'>Mouse scroll in VB6 IDE</title><content type='html'>&lt;p align="justify"&gt;VB6 had the dubious distinction of the only IDE without a supported mouse scroll in the code window. Fortunately, in true Microsoft style, they have given workarounds and patches to overcome this disability. Check this &lt;a href="http://support.microsoft.com/kb/837910"&gt;Microsoft's link&lt;/a&gt; on how to enable/activate mouse scrolling in the VB IDE&lt;/p&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/15004445-5737960533657455275?l=linwinmac.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='related' href='http://support.microsoft.com/kb/837910' title='Mouse scroll in VB6 IDE'/><link rel='replies' type='application/atom+xml' href='http://linwinmac.blogspot.com/feeds/5737960533657455275/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=15004445&amp;postID=5737960533657455275' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/15004445/posts/default/5737960533657455275'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/15004445/posts/default/5737960533657455275'/><link rel='alternate' type='text/html' href='http://linwinmac.blogspot.com/2009/08/mouse-scroll-in-vb6-ide.html' title='Mouse scroll in VB6 IDE'/><author><name>Joseph Antony</name><uri>http://www.blogger.com/profile/01429101852571349228</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-15004445.post-8308235202287244800</id><published>2009-06-19T16:27:00.000-07:00</published><updated>2009-06-19T03:47:57.009-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='example'/><category scheme='http://www.blogger.com/atom/ns#' term='Tooltip'/><category scheme='http://www.blogger.com/atom/ns#' term='tutorial'/><category scheme='http://www.blogger.com/atom/ns#' term='VC6'/><category scheme='http://www.blogger.com/atom/ns#' term='MFC'/><category scheme='http://www.blogger.com/atom/ns#' term='VC'/><category scheme='http://www.blogger.com/atom/ns#' term='Dialog'/><title type='text'>How to Enable Tooltip for Dialog Controls</title><content type='html'>&lt;p align="justify"&gt;Lets get things straight. You want the user to be more dumb and want him/her to get an idea of what he wants to do with all the controls on his screen without reading the help file? Then dive right in. Else, Ciao. Have a good day.&lt;br /&gt;&lt;hr&gt;&lt;br /&gt;&lt;b&gt;Step 1:&lt;/b&gt; Enable the tooltip command using the command &lt;font color="blue"&gt;EnableToolTips (TRUE)&lt;/font&gt;. Ideal location to include this line would be in your class' init routine &lt;font color="blue"&gt;CYourClass::InitDialog&lt;/font&gt;.&lt;br /&gt;&lt;br /&gt;&lt;b&gt;Step 2:&lt;/b&gt; Windows sends the tooltip related controls in TTN_NEEDTEXT message. We need to handle this. Add the following code to enable your handler in the MessageMap function&lt;pre&gt;&lt;br /&gt;BEGIN_MESSAGE_MAP(CMyClassDlg, CDialog)&lt;br /&gt;ON_NOTIFY_EX_RANGE(TTN_NEEDTEXT, 0, 0xFFFF, OnToolTipNotify)&lt;br /&gt;END_MESSAGE_MAP()&lt;/pre&gt;&lt;br /&gt;&lt;br /&gt;&lt;b&gt;Step 3:&lt;/b&gt; Declare the handler function in your header.&lt;br /&gt;&lt;pre&gt;afx_msg bool OnToolTipNotify( UINT id, NMHDR* pNMHDR, &lt;br /&gt;               LRESULT* pResult );&lt;/pre&gt;&lt;br /&gt;&lt;br /&gt;&lt;b&gt;Step 4:&lt;/b&gt; We are near. Just add then handler code in your cpp. Below is a sample of the same&lt;br /&gt;&lt;br /&gt;&lt;pre&gt;bool CMyClassDlg::OnToolTipNotify( &lt;br /&gt;     UINT id, NMHDR* pNMHDR, LRESULT* pResult )&lt;br /&gt;{&lt;br /&gt;    // Get the tooltip structure.&lt;br /&gt;    TOOLTIPTEXT *pTTT = (TOOLTIPTEXT *)pNMHDR;&lt;br /&gt;&lt;br /&gt;    // Actually the idFrom holds Control's handle.&lt;br /&gt;    UINT CtrlHandle = pNMHDR-&gt;idFrom;&lt;br /&gt;&lt;br /&gt;    // Check once again that the &lt;br /&gt;           // idFrom holds handle itself.&lt;br /&gt;    if (pTTT-&gt;uFlags &amp; TTF_IDISHWND)&lt;br /&gt;    {&lt;br /&gt;    // Get the control's ID.&lt;br /&gt;    UINT nID = ::GetDlgCtrlID( HWND( CtrlHandle ));&lt;br /&gt;&lt;br /&gt;    // Now you have the ID. depends on control,&lt;br /&gt;    // set your tooltip message.&lt;br /&gt;    switch( nID )&lt;br /&gt;     {&lt;br /&gt;       case ID_BUTTON1:&lt;br /&gt;       // Set the tooltip text.&lt;br /&gt;       pTTT-&gt;lpszText = _T("First Button");&lt;br /&gt;       break;&lt;br /&gt;&lt;br /&gt;       case ID_EDIT1:&lt;br /&gt;       // Set the tooltip text.&lt;br /&gt;       pTTT-&gt;lpszText = _T("First Edit Box");&lt;br /&gt;       break;&lt;br /&gt;&lt;br /&gt;       default:&lt;br /&gt;       // Set the tooltip text.&lt;br /&gt;       pTTT-&gt;lpszText = _T("Tooltips everywhere!!!");&lt;br /&gt;       break;&lt;br /&gt;     }&lt;br /&gt;&lt;br /&gt;   return TRUE;&lt;br /&gt;  }&lt;br /&gt;&lt;br /&gt;  // Not handled.&lt;br /&gt;  return FALSE;&lt;br /&gt;}&lt;/pre&gt;&lt;br /&gt;&lt;/p&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/15004445-8308235202287244800?l=linwinmac.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://linwinmac.blogspot.com/feeds/8308235202287244800/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=15004445&amp;postID=8308235202287244800' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/15004445/posts/default/8308235202287244800'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/15004445/posts/default/8308235202287244800'/><link rel='alternate' type='text/html' href='http://linwinmac.blogspot.com/2009/06/how-to-enable-tooltip-for-dialog.html' title='How to Enable Tooltip for Dialog Controls'/><author><name>Joseph Antony</name><uri>http://www.blogger.com/profile/01429101852571349228</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-15004445.post-7207365073403889736</id><published>2008-10-17T04:31:00.000-07:00</published><updated>2008-10-17T04:35:27.115-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Windows'/><category scheme='http://www.blogger.com/atom/ns#' term='VC6'/><category scheme='http://www.blogger.com/atom/ns#' term='MFC'/><category scheme='http://www.blogger.com/atom/ns#' term='HTMLHelp'/><category scheme='http://www.blogger.com/atom/ns#' term='VC'/><category scheme='http://www.blogger.com/atom/ns#' term='Winhelp'/><title type='text'>No Help inside VC IDE</title><content type='html'>&lt;p align="justify"&gt;I recently implemented the Help feature for an application. But, pressing F1 key or clicking on the corresponding button did not work out at all. No help window popped up. After much googling, I fell on this. This does not work when the application is run from inside the VC IDE. So, I went to the Debug directory and launched the application from there. Voila, help worked. But, still when pressing F1 key, I was getting an error message stating the the HLP file was missing. So, in order to disable that, the ON_WM_HELPINFO needed to be handled. Once that is done, the unwanted error message stops showing its ugly face.&lt;/p&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/15004445-7207365073403889736?l=linwinmac.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='related' href='http://weseetips.com/2008/08/17/how-to-handle-f1-or-help-in-application/' title='No Help inside VC IDE'/><link rel='replies' type='application/atom+xml' href='http://linwinmac.blogspot.com/feeds/7207365073403889736/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=15004445&amp;postID=7207365073403889736' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/15004445/posts/default/7207365073403889736'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/15004445/posts/default/7207365073403889736'/><link rel='alternate' type='text/html' href='http://linwinmac.blogspot.com/2008/10/no-help-inside-vc-ide.html' title='No Help inside VC IDE'/><author><name>Joseph Antony</name><uri>http://www.blogger.com/profile/01429101852571349228</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-15004445.post-5947030919527590546</id><published>2008-09-25T06:38:00.000-07:00</published><updated>2008-09-25T06:40:07.328-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Accelerator Keys'/><category scheme='http://www.blogger.com/atom/ns#' term='Windows'/><category scheme='http://www.blogger.com/atom/ns#' term='MFC'/><category scheme='http://www.blogger.com/atom/ns#' term='VC'/><title type='text'>Adding accelerator keys in VC</title><content type='html'>A microsoft support link shows in a pretty straightforward way how to implement an accelrator key. &lt;a href="http://support.microsoft.com/kb/222829"&gt;Have a go&lt;/a&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/15004445-5947030919527590546?l=linwinmac.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='related' href='http://support.microsoft.com/kb/222829' title='Adding accelerator keys in VC'/><link rel='replies' type='application/atom+xml' href='http://linwinmac.blogspot.com/feeds/5947030919527590546/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=15004445&amp;postID=5947030919527590546' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/15004445/posts/default/5947030919527590546'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/15004445/posts/default/5947030919527590546'/><link rel='alternate' type='text/html' href='http://linwinmac.blogspot.com/2008/09/adding-accelerator-keys-in-vc.html' title='Adding accelerator keys in VC'/><author><name>Joseph Antony</name><uri>http://www.blogger.com/profile/01429101852571349228</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-15004445.post-4652934944865837557</id><published>2008-09-25T06:23:00.000-07:00</published><updated>2008-09-25T06:37:04.240-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Windows'/><category scheme='http://www.blogger.com/atom/ns#' term='CRichEditCtrl'/><category scheme='http://www.blogger.com/atom/ns#' term='MFC'/><category scheme='http://www.blogger.com/atom/ns#' term='VC'/><title type='text'>Getting the hyper link to work in CRichEditCtrl</title><content type='html'>Trying to get a mouse click to work in RichEdit and not succeeding? I faced a similar issue and ended up with this flow&lt;br /&gt;&lt;br /&gt;Set the SetEventMask for your m_MyRichEdit (this is my control variable for the CRichEditCtrl class) to understand links &lt;pre&gt;m_MyRichEdit.SetEventMask( \&lt;br /&gt;m_MyRichEdit.GetEventMask() | ENM_MOUSEEVENTS)&lt;/pre&gt;Now, add a override function for OnNotify in your class. In the .h file, add &lt;pre&gt;afx_msg BOOL OnNotify (WPARAM wParam, \&lt;br /&gt;LPARAM lParam, LRESULT *pResult);&lt;/pre&gt;Add the corresponding function similar to the one below&lt;pre&gt;BOOL CParentDlg:: OnNotify (WPARAM wParam, LPARAM lParam, LRESULT * pResult) &lt;br /&gt;{&lt;br /&gt;&lt;br /&gt;if (LOWORD (wParam) == IDC_RICHEDIT) &lt;br /&gt;{ &lt;br /&gt;  MSGFILTER * mf = (MSGFILTER *) lParam; &lt;br /&gt;  switch (mf-&gt; msg) &lt;br /&gt;  { &lt;br /&gt;    case WM_LBUTTONUP: &lt;br /&gt;        ENLINK *p_EnLink;&lt;br /&gt;        p_EnLink = (ENLINK *)lParam;&lt;br /&gt;        m_MyRichEdit.SetSel (p_EnLink-&gt;chrg);&lt;br /&gt; CString szLinkString = m_RichEdit.GetSelText ();&lt;br /&gt;        break; &lt;br /&gt;  ) &lt;br /&gt;) &lt;br /&gt;&lt;br /&gt;return CDialog:: OnNotify (wParam, lParam, pResult); &lt;br /&gt;)&lt;/pre&gt;Now, your &lt;i&gt;szLinkString&lt;/i&gt; will have the data you need to manipulate. You can use this with the &lt;b&gt;&lt;a href="http://msdn.microsoft.com/en-us/library/bb762153(VS.85).aspx"&gt;ShellExecute&lt;/a&gt;&lt;/b&gt; function to popup whatever you want.&lt;br /&gt;&lt;br /&gt;On, by the way, you need to add RTF content if you intend to make that identifiable. It goes something like &lt;pre&gt;CString szT = "{\\rtf1 \\par http " + szAppendString + " \\par}";&lt;/pre&gt;My above code will popup a http link using which I &lt;i&gt;Open&lt;/i&gt; it in &lt;b&gt;ShellExecute&lt;/b&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/15004445-4652934944865837557?l=linwinmac.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://linwinmac.blogspot.com/feeds/4652934944865837557/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=15004445&amp;postID=4652934944865837557' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/15004445/posts/default/4652934944865837557'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/15004445/posts/default/4652934944865837557'/><link rel='alternate' type='text/html' href='http://linwinmac.blogspot.com/2008/09/getting-hyper-link-to-work-in.html' title='Getting the hyper link to work in CRichEditCtrl'/><author><name>Joseph Antony</name><uri>http://www.blogger.com/profile/01429101852571349228</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-15004445.post-5929562673124132790</id><published>2008-09-02T00:38:00.000-07:00</published><updated>2008-09-02T00:40:34.805-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Windows'/><category scheme='http://www.blogger.com/atom/ns#' term='VC'/><title type='text'>Auto Complete in VC++ 6</title><content type='html'>When the "Auto Complete" (Complete Word) feature of VC (6 in my case) stops working, all you need to do is &lt;br /&gt;1. close the project&lt;br /&gt;2. Go to the project directory&lt;br /&gt;3. Remove the .ncb file in the directory&lt;br /&gt;4. Re-open the project&lt;br /&gt;&lt;br /&gt;Voila, its working !!! &lt;br /&gt;(atleast it started working for me).&lt;br /&gt;&lt;br /&gt;Ensoy&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/15004445-5929562673124132790?l=linwinmac.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://linwinmac.blogspot.com/feeds/5929562673124132790/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=15004445&amp;postID=5929562673124132790' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/15004445/posts/default/5929562673124132790'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/15004445/posts/default/5929562673124132790'/><link rel='alternate' type='text/html' href='http://linwinmac.blogspot.com/2008/09/auto-complete-in-vc-6.html' title='Auto Complete in VC++ 6'/><author><name>Joseph Antony</name><uri>http://www.blogger.com/profile/01429101852571349228</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-15004445.post-9160289067996754969</id><published>2008-08-27T00:31:00.000-07:00</published><updated>2008-08-27T00:33:49.383-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='checkboxes'/><category scheme='http://www.blogger.com/atom/ns#' term='Windows'/><category scheme='http://www.blogger.com/atom/ns#' term='MFC'/><category scheme='http://www.blogger.com/atom/ns#' term='VC'/><category scheme='http://www.blogger.com/atom/ns#' term='CTreeCtrl'/><title type='text'>CTreeCtrl and Checkboxes</title><content type='html'>While working with CTreeCtrl with checkboxes, I came across these 2 issues&lt;br /&gt;&lt;br /&gt;1. You would have set TVS_CHECKBOXES in the .rc file. Then during InitDialog, if &lt;pre&gt;m_myTreeVar.SetCheck( hTreeWnd, TRUE)&lt;/pre&gt;&lt;p align="justify"&gt; is called, it will not work as expected. But, when the same line is called anywhere else later, it will work. To workaround this issue, the following two lines need to be added to simulate a removal/addition of the checkboxes flag at the beginning of InitDialog&lt;/p&gt;&lt;pre&gt;m_myTree.ModifyStyle( TVS_CHECKBOXES, 0 );&lt;br /&gt;m_myTree.ModifyStyle( 0, TVS_CHECKBOXES );&lt;/pre&gt;&lt;br /&gt;2. With the CTreeCtrl, when trying to get the handle of a "clicked" item using hittest, I fell on an issue that it was returning the handle of the NEXT item on the list and not the one which i clicked. The code is as below&lt;br /&gt;&lt;pre&gt; DWORD pos = GetMessagePos();&lt;br /&gt; CPoint pt(LOWORD(pos), HIWORD(pos));&lt;br /&gt; ScreenToClient(&amp;pt); &lt;br /&gt; UINT uFlags = 0; &lt;br /&gt; HTREEITEM hItem = m_MainTree.HitTest(pt, &amp;uFlags);&lt;br /&gt;&lt;/pre&gt;&lt;br /&gt;&lt;br /&gt;The above code returned the handle of the next list item from the one clicked. To fix the same, I just modified the "ScreenToClient" as below&lt;pre&gt;m_myTree.ScreenToClient(&amp;pt); &lt;/pre&gt;&lt;br /&gt;and Voila!!! it worked!&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/15004445-9160289067996754969?l=linwinmac.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://linwinmac.blogspot.com/feeds/9160289067996754969/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=15004445&amp;postID=9160289067996754969' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/15004445/posts/default/9160289067996754969'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/15004445/posts/default/9160289067996754969'/><link rel='alternate' type='text/html' href='http://linwinmac.blogspot.com/2008/08/ctreectrl-and-checkboxes.html' title='CTreeCtrl and Checkboxes'/><author><name>Joseph Antony</name><uri>http://www.blogger.com/profile/01429101852571349228</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-15004445.post-1911065897752475092</id><published>2008-05-28T02:47:00.000-07:00</published><updated>2008-05-28T03:17:34.542-07:00</updated><title type='text'>Writing VB.Net app with c or C++ Dll</title><content type='html'>Added for my reconnaissance. &lt;br /&gt;&lt;br /&gt;Step 1. Create a VC project (I used VC++ 6). An empty win32 DLL. The main things are below&lt;br /&gt;&lt;br /&gt;&lt;b&gt;Step 1a: &lt;/b&gt;For all the functions that needs to be exported, add "_stdcall" before their declaration and definition. For ex, I added &lt;pre&gt;&lt;b&gt;long &lt;i&gt;_stdcall &lt;/i&gt;&lt;/b&gt;MyExportedFunction(int myinteger)&lt;/pre&gt; &lt;p align="justify"&gt;One VERY IMPORTANT thing to note. The return has to be something other than void as this causes an incompatibility between the DLL and the VB and the application will end up crashing.&lt;br /&gt;&lt;br /&gt;&lt;B&gt;Step 1b: &lt;/b&gt; Make sure to have a &lt;myapp&gt;.def added to the VC project. The contents of my def file are &lt;/p&gt;&lt;br /&gt;&lt;pre&gt; MyVCLibrary.def : Declares the module parameters for the DLL.&lt;br /&gt;LIBRARY      "MyVCLibrary"&lt;br&gt;DESCRIPTION  'My VC Library DLL'&lt;br /&gt;&lt;br /&gt;EXPORTS&lt;br&gt;; Explicit exports can go here&lt;br&gt;           MyExportedFunction&lt;br /&gt;&lt;/pre&gt;My exported function prototype is &lt;br /&gt;&lt;pre&gt;long _stdcall MyExportedFunction(int);&lt;/pre&gt;&lt;br /&gt;&lt;p align="justify"&gt;Now, thats it for the DLL. Compile and get it ready. &lt;br /&gt;&lt;br /&gt;Step 2a: Create the VB.NET (I used Visual Studio 2008). In the Form Class, create a declaration as below (in a single line)&lt;/p&gt;&lt;br /&gt;&lt;pre&gt;Declare Function MyExportedFunction Lib &lt;br&gt;"MyVCLibrary.dll" (ByVal pcFilePath As Integer&lt;br&gt;) As Long&lt;/pre&gt;&lt;br /&gt;Step 2b: Call the function as below&lt;br /&gt;&lt;pre&gt;Call MyExportedFunction(10)&lt;/pre&gt;. That's about pretty much to it.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/15004445-1911065897752475092?l=linwinmac.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://linwinmac.blogspot.com/feeds/1911065897752475092/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=15004445&amp;postID=1911065897752475092' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/15004445/posts/default/1911065897752475092'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/15004445/posts/default/1911065897752475092'/><link rel='alternate' type='text/html' href='http://linwinmac.blogspot.com/2008/05/writing-vbnet-app-with-c-or-c-dll.html' title='Writing VB.Net app with c or C++ Dll'/><author><name>Joseph Antony</name><uri>http://www.blogger.com/profile/01429101852571349228</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-15004445.post-1578017551527138126</id><published>2008-04-09T23:40:00.000-07:00</published><updated>2008-04-09T23:53:45.479-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='shell scripts'/><category scheme='http://www.blogger.com/atom/ns#' term='linux tips'/><category scheme='http://www.blogger.com/atom/ns#' term='shell script tips'/><title type='text'>Some Linux Tips</title><content type='html'>This is mainly from my experience in Red hat Linux 9.0 and Fedora Core (from as far back as 5 years). I have used the double quotes just to highlight the phrase to be typed on the command line. Remove the double quotes and type the commands. &lt;br /&gt;&lt;br /&gt;&lt;P style="COLOR: rgb(34,0,136)"&gt;How to check free space in my hard disk?&lt;br&gt;&lt;br /&gt;Typing "&lt;FONT face=Monospace&gt;free&lt;/FONT&gt;" in your terminal command line lists out all the hard drives details.&lt;/P&gt;&lt;HR&gt;&lt;br /&gt;&lt;P style="COLOR: rgb(34,0,136)"&gt;"How do I find out the location of an executable file?&lt;br&gt;&lt;br /&gt;&lt;FONT face=Monospace&gt;which &amp;lt;executable&amp;gt;&lt;/FONT&gt;" will show you the location from which it is called.&lt;/P&gt;&lt;HR&gt;&lt;br /&gt;&lt;P&gt;How can shutdown my machine with a command/shell script?&lt;/P&gt;&lt;P style="COLOR: rgb(34,0,136)"&gt;Create a shell script and put the following line in it (without the double quotes)&lt;/P&gt;&lt;P style="COLOR: rgb(34,0,136)"&gt;"&lt;FONT face=Monospace&gt;shutdown -h now&lt;/FONT&gt;"&lt;/P&gt;&lt;P style="COLOR: rgb(34,0,136)"&gt;Executing this shell script shuts down your machine.&lt;/P&gt;&lt;HR&gt;&lt;br /&gt;&lt;P&gt;How do I mount a network shared folder in my LAN ?&lt;/P&gt;&lt;P style="COLOR: rgb(34,0,136)"&gt;For example sake, assume the network machine name is "nwsys" and the shared folder in that is "shared". Now create a directory to which you want to associate the shared folder to. Lets assume you create a folder "myshare" under "root" directory. Now the command will be&lt;/P&gt;&lt;P style="COLOR: rgb(34,0,136)"&gt;"&lt;FONT face=Monospace&gt;smbmount //nwsys/shared /root/myshare -o username=&amp;lt;username&amp;gt;,workgroup=&amp;lt;workgroup&amp;gt;&lt;/FONT&gt;"&lt;/P&gt;&lt;P style="COLOR: rgb(34,0,136)"&gt;If all directories exist, you would be asked for the password, enter it. If no error message pops up, you are through.&lt;/P&gt;&lt;p&gt;From FC5, smbfs is removed and the command needs to modified to this: &lt;pre&gt;mount -t cifs //nwsys/shared /root/myshare -o &lt;br&gt;username=&amp;lt;myname&amp;gt;,workgroup=&amp;lt;myworkgroup&amp;gt;&lt;/pre&gt;&lt;/p&gt;&lt;HR&gt;&lt;br /&gt;&lt;P&gt;I&amp;nbsp; had disconnected my LAN cable and reconnected it. Now, I am not able to connect to network machines through nautilius.&lt;/P&gt;&lt;P style="COLOR: rgb(34,0,136)"&gt;Close all nautilius windows and execute the following command at the command prompt&lt;/P&gt;&lt;P style="COLOR: rgb(34,0,136)"&gt;"&lt;FONT face=Monospace&gt;killall nautilius&lt;/FONT&gt;"&lt;/P&gt;&lt;P style="COLOR: rgb(34,0,136)"&gt;This restarts the nautilius service and you should be able to connect to network systems.&lt;/P&gt;&lt;HR&gt;&lt;br /&gt;&lt;P&gt;&amp;nbsp;I created a shell script in windows and moved into linux. Here, i set all the requisite user rights for execution. When i tried to execute the script, it gives the error &lt;BR&gt;&lt;pre&gt;bad interpreter: No such file or directory&lt;/pre&gt;The script seems to be syntatically fine.&lt;/P&gt;&lt;P style="COLOR: rgb(34,0,136)"&gt;This is a problem becaus of the difference in OSes. Open the script in vim and type the following command &lt;BR&gt;&lt;/P&gt;&lt;br /&gt;&lt;P style="COLOR: rgb(34,0,136)"&gt;&lt;SPAN style="FONT-FAMILY: monospace"&gt;:set ff=unix&lt;/SPAN&gt;&lt;BR&gt;&lt;/P&gt;&lt;SPAN style="COLOR: rgb(34,0,136)"&gt;This converts the script to unix based file format.&lt;/SPAN&gt; &lt;HR&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/15004445-1578017551527138126?l=linwinmac.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://linwinmac.blogspot.com/feeds/1578017551527138126/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=15004445&amp;postID=1578017551527138126' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/15004445/posts/default/1578017551527138126'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/15004445/posts/default/1578017551527138126'/><link rel='alternate' type='text/html' href='http://linwinmac.blogspot.com/2008/04/some-linux-tips.html' title='Some Linux Tips'/><author><name>Joseph Antony</name><uri>http://www.blogger.com/profile/01429101852571349228</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-15004445.post-6993548019494628631</id><published>2008-01-01T20:53:00.000-08:00</published><updated>2008-01-01T20:59:56.364-08:00</updated><title type='text'>Difference between CR and LF</title><content type='html'>Sourced from &lt;a href="http://www.linuxquestions.org/questions/programming-9/is-eof-equal-to-cr-lf-548614/"&gt;here&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;p align="justify"&gt;The main difference is that &lt;CR&gt; and &lt;LF&gt; are characters, while EOF is more of a concept - though the end of a file can be denoted by a special marker character, too.&lt;br /&gt;&lt;br /&gt;Generally speaking, under Windows and DOS, lines of text in a file end with the two byte character sequence &lt;CR&gt;&lt;LF&gt;; these characters have the ASCII values 13 and 10, respectively. Under *nix, a line of text ends with just ASCII character # 10.&lt;br /&gt;&lt;br /&gt;Under DOS and Windows, a file might also contain an end of file marker character; the ASCII value of this character is 0x1A (26 decimal). This character was used more to speed things up when working with certain kinds of files (text files, as opposed to binary files) than anything.&lt;br /&gt;&lt;br /&gt;Exactly how you open a file, read from it, or write to it, will vary with the programming language or tool that you're using; there are a lot of commonalities between the majority of them, though. Hopefully, a few examples in C will help clear this up. A few important points first, though: a carriage return (CR) - ASCII character code 13 - is also represented by the escape sequence "\r" (not including the quote marks), and a line feed (LF) - ASCII character code 10 - is also represented by the escape sequence "\n" (again, not including the quote marks).&lt;br /&gt;&lt;br /&gt;Under DOS or Windows - assuming that we're using the C run-time library (RTL) and not the Windows application programming interface (API), or DOS function calls - you have to tell the RTL how you would like it to treat the file. Your option are "as a text file" and "as a binary file". If you tell the RTL to treat a file as a text file, the following things will happen:&lt;br /&gt;&lt;br /&gt;When the sequence &lt;CR&gt;&lt;LF&gt; is encountered in a file, it's replaced, "behind the scenes", by just &lt;LF&gt;, which is ASCII character 10. Which matches the constant '\n'.&lt;br /&gt;&lt;br /&gt;If the end-of-file character is encountered, the file's end-of-file flag is set: fgetc() returns the value EOF (defined in stdio.h); feof() will return true (non-zero), and so on.&lt;br /&gt;&lt;br /&gt;However, if you tell the RTL to treat the file as a binary file, the data is returned to you "raw" - no end-of-line marker translation is done, you get both the &lt;cr&gt; and the &lt;lf&gt;; and, the end-of-file marker - if present - is treated just like any other byte in the file; it's value is returned to you.&lt;br /&gt;&lt;br /&gt;With most compilers, under Windows or DOS, in C, a file is opened as a binary file by using fopen() and specifying the letter "b" after the mode you wish to open the file in (r, w, a, etc.). For example, to open a file named "test.dat" in read-only mode, in binary mode (without any translation of the file's contents), one could write:&lt;/p&gt;&lt;pre&gt;FILE *f;&lt;br /&gt;&lt;br /&gt;if (!(f = fopen(f,"rb")))&lt;br /&gt;{&lt;br /&gt;   /* an error occurred */&lt;br /&gt;}&lt;/pre&gt;&lt;p align="jusfity"&gt;A note regarding porting code between DOS/Windows and *nix systems: if you were to attempt to compile the above code on a *nix system, the compiler might or might not give you an indication that there was a problem: generally speaking, *nix systems always open files in "binary" mode, and "rb" (or "wb", "ab", etc.) is not a valid parameter. Exactly what would happen can be expected to vary from compiler to compiler; on some, the presence of the "b" might cause the fopen() call to fail; others might print a warning message.&lt;/p&gt;&lt;br /&gt;&lt;br /&gt;&lt;p align="justify"&gt;One last note regarding end-of-file and translation of characters in "text" mode on DOS and Windows systems: while, in theory, the rules are simple, in practice, they're a lot more complicated. If you were to take a program that used text files in "text" mode, and compile it, on a DOS / Windows system, with different compilers from different vendors, you can expect that, to some extent, you'll get different results. One of the ways they differ in is in how the final &lt;cr&gt;&lt;lf&gt; pair in a file is treated. In "text" mode, sometimes, you'll get a final "\n", and other times you won't. In "binary" mode, you'll always get the entire contents of the file.&lt;br /&gt;&lt;/p&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/15004445-6993548019494628631?l=linwinmac.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='related' href='http://www.linuxquestions.org/questions/programming-9/is-eof-equal-to-cr-lf-548614/' title='Difference between CR and LF'/><link rel='replies' type='application/atom+xml' href='http://linwinmac.blogspot.com/feeds/6993548019494628631/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=15004445&amp;postID=6993548019494628631' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/15004445/posts/default/6993548019494628631'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/15004445/posts/default/6993548019494628631'/><link rel='alternate' type='text/html' href='http://linwinmac.blogspot.com/2008/01/difference-between-cr-and-lf.html' title='Difference between CR and LF'/><author><name>Joseph Antony</name><uri>http://www.blogger.com/profile/01429101852571349228</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-15004445.post-8892654289829440859</id><published>2007-10-24T02:05:00.000-07:00</published><updated>2007-10-24T02:13:28.703-07:00</updated><title type='text'>Too much security</title><content type='html'>On a security enhanced linux system (selinux enabled OS), when you try to execute an application which links with user created libraries, you will (in all probabilities) end up with an error like below &lt;pre&gt;&lt;b&gt;./myapp : error while loading shared libaries :&lt;br /&gt;/usr/local/lib/libmylib.so :cannot restore segment prot &lt;br /&gt;after reloc permission denied.&lt;/b&gt;&lt;/pre&gt;. There are two ways to escape this pain. &lt;br /&gt;&lt;br /&gt;1. Kill the source of pain once and for all. Disable selinux. Open /etc/selinux/config and either comment out all lines or modify the following line as below&lt;br /&gt;SELINUX=disabled. Save the file and voila, you are a killer.&lt;br /&gt;&lt;br /&gt;2. Request selinux.&lt;br /&gt;&lt;i&gt;&lt;br /&gt;Dear Selinux,&lt;br /&gt;&lt;br /&gt;Since I have to work with user created libraries, I request you to kindly allow me to access the same and run corresponding applications. &lt;br /&gt;&lt;br /&gt;Thanking you,&lt;br /&gt;A Poor suffering soul.&lt;/i&gt;&lt;br /&gt;&lt;br /&gt;Well, not exactly like this, but something like below (for libraries in /usr/local/lib path)&lt;br /&gt;&lt;pre&gt;&lt;b&gt;find /usr/local/lib -name '*.so*' -exec chcon -t &lt;br /&gt;texrel_shlib_t {} \;&lt;/b&gt;&lt;/pre&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/15004445-8892654289829440859?l=linwinmac.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://linwinmac.blogspot.com/feeds/8892654289829440859/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=15004445&amp;postID=8892654289829440859' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/15004445/posts/default/8892654289829440859'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/15004445/posts/default/8892654289829440859'/><link rel='alternate' type='text/html' href='http://linwinmac.blogspot.com/2007/10/too-much-security.html' title='Too much security'/><author><name>Joseph Antony</name><uri>http://www.blogger.com/profile/01429101852571349228</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-15004445.post-198529741836479573</id><published>2007-10-22T05:29:00.000-07:00</published><updated>2007-10-22T05:36:13.446-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='error'/><category scheme='http://www.blogger.com/atom/ns#' term='compile error'/><category scheme='http://www.blogger.com/atom/ns#' term='mac'/><title type='text'>Wrong Architecture issue in Mac</title><content type='html'>&lt;p align="justify"&gt;I maintain a common source code base for both PPC and x86 architecture in Mac and just recompile (with different Makefiles) in both architectures. Once, I had forgotten to clean up a library archive which I had compiled in x86. So, when I tried compiling the library in PPC, I ended up with the following error.&lt;/p&gt;&lt;pre&gt;&lt;b&gt;ld: common symbols not allowed with MH_DYLIB output format with &lt;br /&gt;the -multi_module option&lt;br /&gt;mymainfile.o definition of common _gsDeviceFreeMutex (size 44)&lt;br /&gt;/usr/bin/libtool: internal link edit command failed&lt;/b&gt;&lt;/pre&gt;&lt;br /&gt;&lt;br /&gt;Just cleaning up the x86-compiled library archive removed the above error. And this drank few hours off my work-day. But, I ended up wiser ;-)&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/15004445-198529741836479573?l=linwinmac.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://linwinmac.blogspot.com/feeds/198529741836479573/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=15004445&amp;postID=198529741836479573' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/15004445/posts/default/198529741836479573'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/15004445/posts/default/198529741836479573'/><link rel='alternate' type='text/html' href='http://linwinmac.blogspot.com/2007/10/blog-post.html' title='Wrong Architecture issue in Mac'/><author><name>Joseph Antony</name><uri>http://www.blogger.com/profile/01429101852571349228</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-15004445.post-6963271585800845341</id><published>2007-05-08T03:11:00.000-07:00</published><updated>2007-05-08T03:26:03.072-07:00</updated><title type='text'>static linking in Mac - But when?</title><content type='html'>This is a linker part of my Makefile for compiling an app in Linux. It statically links a library which again I did. &lt;br /&gt;&lt;b&gt; Shared Library Generation&lt;/b&gt;&lt;br /&gt;&lt;pre&gt;gcc  -shared -Wl,-soname,libmylib.so   -o libmylib.so.1.0.1 myownfile.o&lt;/pre&gt;&lt;br /&gt;&lt;b&gt; App Generation &lt;/b&gt;&lt;br /&gt;&lt;pre&gt;gcc -o testapp -L/usr/local/lib -L. -lmylib appfile1.o appfile2.o appfile3.o&lt;/pre&gt;&lt;br /&gt;&lt;br /&gt;This went fine in Linux. But, in Mac, the app generation started shouting. Yes, I have to compile it as a dylib file. And I did that too.&lt;br /&gt;&lt;br /&gt;libtool -o libmylib.A.dylib myownfile.o -L/usr/local/lib -lotherlib&lt;br /&gt;&lt;br /&gt;Ok. All are ready. Now, when I tried to compile it as below (similar to Linux), I was encountered with "undefined symbols", the same functions which I was linking from my dylib file. \&lt;br /&gt;&lt;br /&gt;&lt;pre&gt;gcc -o testapp -L/usr/local/lib -L. -lmylib appfile1.o appfile2.o appfile3.o&lt;/pre&gt;&lt;br /&gt;&lt;p align="justify"&gt;&lt;br /&gt;aaaaaaarrggghhhhhh. &lt;br /&gt;&lt;br /&gt;Googling led me to a startling (er... a rather novice mistake) revelation. With the above flow, the compiler will first encounter that library, see that it has no use, throw it off and then, try to link the object files. Now (and NOWWWW), it tries to solve the dependencies in the object files. Failing to solve, it shouts back at the user "LOSSEERRRRRR".... :-(&lt;br /&gt;&lt;br /&gt;So, with the sombre face of a loser, I changed the compile script to follow the reverse pattern, ie, link the object files first and THEN, solve the dependencies, if any.&lt;/p&gt;&lt;br /&gt;&lt;br /&gt;&lt;pre&gt;gcc -o testapp  appfile1.o appfile2.o appfile3.o -L/usr/local/lib -L. -lmylib&lt;/pre&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Voila. It works.&lt;br /&gt;&lt;br /&gt;I did it! I did it! yeah yeah. I did it!&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/15004445-6963271585800845341?l=linwinmac.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://linwinmac.blogspot.com/feeds/6963271585800845341/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=15004445&amp;postID=6963271585800845341' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/15004445/posts/default/6963271585800845341'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/15004445/posts/default/6963271585800845341'/><link rel='alternate' type='text/html' href='http://linwinmac.blogspot.com/2007/05/static-linking-in-mac-but-when.html' title='static linking in Mac - But when?'/><author><name>Joseph Antony</name><uri>http://www.blogger.com/profile/01429101852571349228</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-15004445.post-1898246480286665137</id><published>2007-04-30T01:21:00.000-07:00</published><updated>2007-04-30T01:31:51.924-07:00</updated><title type='text'>Calling one kernel module function in another</title><content type='html'>&lt;p align="justify"&gt;Say I have a LKM foo1.ko which has "my_foo1()" as the exported function. Now, another LKM foo2.ko calls this "my_foo1()". When this second LKM is compiled, it is generating a warning that "my_foo1() undefined!". Though this is just a warning, this can be avoided. How? I found it out via a forum. There are FOUR ways to remove the warning. &lt;br /&gt;&lt;br /&gt;ONE: "insmod" foo1 before comiling foo2. &lt;br /&gt;&lt;br /&gt;TWO: Compile both the LKMs in the same Makefile, in one shot; like below&lt;/p&gt;&lt;br /&gt;&lt;br /&gt;&lt;pre&gt;$ cat Makefile&lt;br /&gt;obj-m = foo1/foo1.o foo2/foo2.o&lt;br /&gt;&lt;br /&gt;here:&lt;br /&gt;       make -C /lib/modules/`uname -r`/build M=`pwd` modules&lt;br /&gt;&lt;/pre&gt;&lt;br /&gt;&lt;br /&gt;THREE: Starting 2.6.17, you can copy the Module.symvers generated by the compilation of foo1 to the foo2 source directory and compile foo2.&lt;br /&gt;&lt;br /&gt;FOUR: Be a proper programmer and ignore it. It works anyway ! Why Worry :-)&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/15004445-1898246480286665137?l=linwinmac.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://linwinmac.blogspot.com/feeds/1898246480286665137/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=15004445&amp;postID=1898246480286665137' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/15004445/posts/default/1898246480286665137'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/15004445/posts/default/1898246480286665137'/><link rel='alternate' type='text/html' href='http://linwinmac.blogspot.com/2007/04/calling-one-kernel-module-function-in.html' title='Calling one kernel module function in another'/><author><name>Joseph Antony</name><uri>http://www.blogger.com/profile/01429101852571349228</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-15004445.post-775237206208975350</id><published>2007-04-30T01:11:00.000-07:00</published><updated>2007-04-30T01:20:53.793-07:00</updated><title type='text'>Common symbol error in Mac</title><content type='html'>Multiple C files. Few global variables. A single dynamic library. Thats what I was trying to do in Mac. But, the compiler went jittery and complained &lt;pre&gt;ld: common symbols not allowed with MH_DYLIB output format&lt;/pre&gt;. Googling taught me that I need to either initialize the global variable(s) or add "-fno-common" switch to the compiler flags. That solved the issue and I am happy "trying" to link it. Oh Yeah. Am facing another issue. Will update as soon as I find the solution. Cheerio.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/15004445-775237206208975350?l=linwinmac.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://linwinmac.blogspot.com/feeds/775237206208975350/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=15004445&amp;postID=775237206208975350' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/15004445/posts/default/775237206208975350'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/15004445/posts/default/775237206208975350'/><link rel='alternate' type='text/html' href='http://linwinmac.blogspot.com/2007/04/common-symbol-error-in-mac.html' title='Common symbol error in Mac'/><author><name>Joseph Antony</name><uri>http://www.blogger.com/profile/01429101852571349228</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-15004445.post-3205485705504870953</id><published>2007-04-05T02:47:00.000-07:00</published><updated>2007-04-05T02:52:19.586-07:00</updated><title type='text'>loading shared libraries with gdb</title><content type='html'>&lt;p align="justify"&gt;While trying to validate a particular utility which uses a shared library (which again was developed by me and resides in user-specified path), gdb reported error that it was not able to find the shared library (although compiling the utility was not a problem). &lt;i&gt;ldd&lt;/i&gt; also was not able to find the library, although i had used &lt;i&gt; ldconfig -n /path/to/lib/dir &lt;/i&gt; and properly created the soname. &lt;br /&gt;&lt;br /&gt;After some googling, I found that gdb was trying to use the ld.so.conf directory and its contents to search for the shared library objects. So, I added my path to &lt;i&gt; /etc/ld.so.conf/ &lt;/i&gt; directory. After this, the shared object loaded without any complaint. &lt;br /&gt;&lt;br /&gt;mmMmm...&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/15004445-3205485705504870953?l=linwinmac.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://linwinmac.blogspot.com/feeds/3205485705504870953/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=15004445&amp;postID=3205485705504870953' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/15004445/posts/default/3205485705504870953'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/15004445/posts/default/3205485705504870953'/><link rel='alternate' type='text/html' href='http://linwinmac.blogspot.com/2007/04/loading-shared-libraries-with-gdb.html' title='loading shared libraries with gdb'/><author><name>Joseph Antony</name><uri>http://www.blogger.com/profile/01429101852571349228</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-15004445.post-5195768020772487093</id><published>2007-03-26T09:44:00.000-07:00</published><updated>2007-03-26T09:48:23.064-07:00</updated><title type='text'>A good kernel compilation link</title><content type='html'>A link which I regularly use (and reuse). &lt;a href="http://www.digitalhermit.com/linux/Kernel-Build-HOWTO.html"&gt;Digital Hermit - Unix and Linux Solutions&lt;/a&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/15004445-5195768020772487093?l=linwinmac.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://linwinmac.blogspot.com/feeds/5195768020772487093/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=15004445&amp;postID=5195768020772487093' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/15004445/posts/default/5195768020772487093'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/15004445/posts/default/5195768020772487093'/><link rel='alternate' type='text/html' href='http://linwinmac.blogspot.com/2007/03/good-kernel-compilation-link.html' title='A good kernel compilation link'/><author><name>Joseph Antony</name><uri>http://www.blogger.com/profile/01429101852571349228</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-15004445.post-2686552196727546885</id><published>2007-03-16T01:43:00.000-07:00</published><updated>2007-03-16T01:55:56.162-07:00</updated><title type='text'>Expat's little problem</title><content type='html'>While trying to parse my self-built XML file (with all possible legal standard headers), expat spit out the following error&lt;br /&gt;&lt;pre&gt;Parse error at line XXX:&lt;br /&gt;not well-formed (invalid token)&lt;/pre&gt;&lt;p align="justify"&gt;&lt;br /&gt;The XML file was good in all aspects, is what I had thought. &lt;a href="http://expat.sourceforge.net/"&gt;Expat (ver 2.0.0)&lt;/a&gt; didnt think so. The bad part was that it parsed the whole file (including ending token) and THEN he gave the above error. Out of the wild, a thought struck me (yup, it happens to me too). &lt;br /&gt;&lt;br /&gt;I opened the XML file and added a new line AFTER the last token. And Voila! it worked. Now, expat was happy. I was happy. All was well that ended (well actually, started) well. Need to report this to the developers(shud have been).&lt;/p&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/15004445-2686552196727546885?l=linwinmac.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://linwinmac.blogspot.com/feeds/2686552196727546885/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=15004445&amp;postID=2686552196727546885' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/15004445/posts/default/2686552196727546885'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/15004445/posts/default/2686552196727546885'/><link rel='alternate' type='text/html' href='http://linwinmac.blogspot.com/2007/03/expats-little-problem.html' title='Expat&apos;s little problem'/><author><name>Joseph Antony</name><uri>http://www.blogger.com/profile/01429101852571349228</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-15004445.post-7324548594455101662</id><published>2007-01-24T22:13:00.000-08:00</published><updated>2007-01-29T03:39:55.027-08:00</updated><title type='text'>Mounting a storage media in Solaris</title><content type='html'>&lt;p align="justify"&gt;There always comes a time when even the smallest issue can make you look like a full blown idiot. (Not considering the fact that I am an idiot to some extent), this issue of mounting a pen-drive in solaris 8 made me look more like one. Then, fortunately with the help of &lt;a href="http://www.google.co.in/"&gt;Google&lt;/a&gt;, and my friend, we were able to solve the issue. Now wait a minute. Shouldnt that be easy. Well yes, AFTER we found the solution. Now, if you ask me to do the same in Linux, it will be as easy as asking Bush to talk nonsense. But, in Solaris 8, it became something like making &lt;a href="http://en.wikipedia.org/wiki/Narasimha_Rao"&gt;PVNR&lt;/a&gt; laugh. Well, all is well and we ended doing something like this.&lt;/p&gt;&lt;br /&gt;&lt;br /&gt;First run &lt;pre&gt;devfsadm&lt;/pre&gt; then:&lt;pre&gt; mount -F pcfs /dev/dsk/cXtXdXsX:c /your/mountpoint &lt;/pre&gt;&lt;br /&gt;&lt;br /&gt;This ought to do the trick forya. For us, it DID :-)&lt;br /&gt;&lt;br /&gt;Now, with Solaris 9, my friend updated another sequence which ended up with a separate GUI window popping up just like a media drive.&lt;br /&gt;&lt;br /&gt;After connecting the media drive, you need to restart the volume manager. &lt;pre&gt;/etc/init.d/volmgt stop&lt;/pre&gt;&lt;pre&gt;/etc/init.d/volmgt start&lt;/pre&gt;&lt;p align="justify"&gt; The filesystem should show up in /rmdisk/unnamed (or under a specific name if found). Also, it pops up a separate GUI window with the contents of the drive. One thing though. Sometimes, it takes time to update the volume details and popup the window. So, keep cool and wait before coming to a conclusion.  Now, to unmount the device, you need to &lt;/p&gt;&lt;pre&gt;eject unnamed&lt;/pre&gt; to update the cache and unmount the device properly.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/15004445-7324548594455101662?l=linwinmac.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://linwinmac.blogspot.com/feeds/7324548594455101662/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=15004445&amp;postID=7324548594455101662' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/15004445/posts/default/7324548594455101662'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/15004445/posts/default/7324548594455101662'/><link rel='alternate' type='text/html' href='http://linwinmac.blogspot.com/2007/01/mounting-storage-media-in-solaris-8.html' title='Mounting a storage media in Solaris'/><author><name>Joseph Antony</name><uri>http://www.blogger.com/profile/01429101852571349228</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-15004445.post-8541923491449635960</id><published>2006-12-27T01:43:00.000-08:00</published><updated>2006-12-27T01:49:51.986-08:00</updated><title type='text'>Recovering partition table</title><content type='html'>&lt;p align="justify"&gt;I got these links from &lt;a href="http://www.chennailug.org"&gt;ilugc&lt;/a&gt; forum. These two links are for utilities which help in recovering the parition table of the hard disk which may have got damaged / destroyed for any god forsaken reason. I haven't personally tried this. Shall update once (if and no, i dont want such a situation) I try. &lt;br /&gt;&lt;br /&gt; &lt;a href="http://www.stud.uni-hannover.de/user/76201/gpart/"&gt;gpart&lt;/a&gt; - Guess PC-type hard disk partitions&lt;br /&gt; &lt;a href="http://www.cgsecurity.org/wiki/TestDisk"&gt;testdisk&lt;/a&gt; - file as well as parition table recovery utility&lt;/p&gt;.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/15004445-8541923491449635960?l=linwinmac.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://linwinmac.blogspot.com/feeds/8541923491449635960/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=15004445&amp;postID=8541923491449635960' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/15004445/posts/default/8541923491449635960'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/15004445/posts/default/8541923491449635960'/><link rel='alternate' type='text/html' href='http://linwinmac.blogspot.com/2006/12/recovering-partition-table.html' title='Recovering partition table'/><author><name>Joseph Antony</name><uri>http://www.blogger.com/profile/01429101852571349228</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-15004445.post-3979298875059816003</id><published>2006-12-07T23:45:00.000-08:00</published><updated>2006-12-07T23:56:58.748-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Primary Partition Limitation'/><title type='text'>The Primary parition limitation</title><content type='html'>&lt;p align="justify"&gt;I know that we cannot create more than 4 primary partitions. But, why. When technology has grown in leaps and bounds, why this "limitation"? I got the answer to this from &lt;a href="http://www.chennailug.org/"&gt;ilugc&lt;/a&gt;. Any Hard disk drive contains a 448-byte Boot Loader Code (Initial Program Load Code - IPL) followed by a 64-byte partition table. These make up the first 512 bytes of the first track of any HDD. Any OS installation starts from the second track only.  Each partition table entry needs 16 byte, thus limitting the total number of partitions to 4.&lt;br /&gt;&lt;/p&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/15004445-3979298875059816003?l=linwinmac.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='related' href='http://thread.gmane.org/gmane.org.user-groups.linux.ilugc/35396/focus=35396' title='The Primary parition limitation'/><link rel='replies' type='application/atom+xml' href='http://linwinmac.blogspot.com/feeds/3979298875059816003/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=15004445&amp;postID=3979298875059816003' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/15004445/posts/default/3979298875059816003'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/15004445/posts/default/3979298875059816003'/><link rel='alternate' type='text/html' href='http://linwinmac.blogspot.com/2006/12/primary-parition-limitation.html' title='The Primary parition limitation'/><author><name>Joseph Antony</name><uri>http://www.blogger.com/profile/01429101852571349228</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-15004445.post-7567294419117294502</id><published>2006-12-04T01:46:00.000-08:00</published><updated>2006-12-04T02:35:14.288-08:00</updated><title type='text'>Synergy between Mac and PC</title><content type='html'>&lt;p align="justify"&gt;Can they work together. Can Mac and PC get along well. In Harmony? In Peace? I don't know. But, they sure can share a keyboard and a mouse. "&lt;a href="http://synergy2.sourceforge.net/"&gt;Synergy&lt;/a&gt;" achieved this feat. Made my Wintel machine as the server and the MacTel as the client and now, am using a single keyboard and mouse for both the systems. Here's a small write-up on how I got them alive.&lt;br /&gt;&lt;br /&gt;First, go to this &lt;a href="http://sourceforge.net/project/showfiles.php?group_id=59275&amp;package_id=58013&amp;amp;release_id=406637"&gt;link&lt;/a&gt; and download the corresponding OS related app. Now, since I wanted to use the windows version as the server, I opened "Share this computer's keyboard and mouse (server)'s / Screens &amp; Links" "Configure" button.&lt;br /&gt;&lt;br /&gt;In that, I added two screen names in the "Screens" window.&lt;br /&gt;a) Click the "+" button.&lt;br /&gt;b) Add "Joe-Wintel".&lt;br /&gt;c) Here, there is an alias name. If you want, you can give that too. I did'nt.&lt;br /&gt;d) Repeat above 3 steps for "Joe-Mactel" screen name.&lt;br /&gt;&lt;br /&gt;Then, in "Links", section, add how the mouse and keyboard is to behave.&lt;br /&gt;a) click the "+" button.&lt;br /&gt;b) My two rules read something like below (Note that the italicized words are configurable)&lt;br /&gt;&lt;i&gt;0&lt;/i&gt; to &lt;i&gt;100&lt;/i&gt;% of the &lt;i&gt;Left&lt;/i&gt; of &lt;i&gt;Joe-Wintel&lt;/i&gt; goes to &lt;i&gt;0&lt;/i&gt; to &lt;i&gt;100&lt;/i&gt;% of &lt;i&gt;Joe-Mactel&lt;/i&gt;&lt;br /&gt;&lt;i&gt;0&lt;/i&gt; to &lt;i&gt;100&lt;/i&gt;% of the &lt;i&gt;Right&lt;/i&gt; of &lt;i&gt;Joe-Mactel&lt;/i&gt; goes to &lt;i&gt;0&lt;/i&gt; to &lt;i&gt;100&lt;/i&gt;% of &lt;i&gt;Joe-Wintel&lt;/i&gt;&lt;br /&gt;&lt;br /&gt;Click "Start"&lt;br /&gt;Your server is ready.&lt;br /&gt;&lt;br /&gt;Now, on to your Mac system.&lt;br /&gt;In the terminal window, go to the synergy app directory. You should see a "synergy.conf" File. Open it.&lt;br /&gt;Modify to something like below.&lt;br /&gt;Point to note. I kept my Mactel to the left of my Wintel. Now, go ahead.&lt;br /&gt;&lt;/p&gt;&lt;pre&gt;&lt;br /&gt;&lt;br /&gt;section: screens&lt;br /&gt;   # my Windows system&lt;br /&gt;   Joe-Wintel&lt;br /&gt;end&lt;br /&gt;&lt;br /&gt;section: links&lt;br /&gt;   # My Windows is to my (mactel) right&lt;br /&gt;   Joe-Wintel:&lt;br /&gt;       right  = Joe-Wintel&lt;br /&gt;end&lt;br /&gt;&lt;br /&gt;section: aliases&lt;br /&gt;   # Where you can map aliases. I have added for your reference only. this is not validated.&lt;br /&gt;   Joe-Wintel&lt;br /&gt;       joe&lt;br /&gt;end&lt;br /&gt;&lt;br /&gt;&lt;/pre&gt;&lt;br /&gt;I then went on to create a script to run as client. The command is&lt;br /&gt;&lt;pre&gt;sudo ./synergyc --name Joe-Mactel Joe-Wintel &amp;amp;&lt;/pre&gt;&lt;br /&gt;&lt;br /&gt;Now, if you want to run this in the foreground, then use "-f" option. Now, you can create the above as a shell script, and call it from /etc/rc.common file so that the client is up and running the moment the system starts up. ( This way, you can be even more lazy).&lt;br /&gt;&lt;br /&gt;And there you have both Mac and Windows living in harmony. The world is returning to peace. Amen.&lt;br /&gt;&lt;p&gt;&lt;/p&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/15004445-7567294419117294502?l=linwinmac.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://linwinmac.blogspot.com/feeds/7567294419117294502/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=15004445&amp;postID=7567294419117294502' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/15004445/posts/default/7567294419117294502'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/15004445/posts/default/7567294419117294502'/><link rel='alternate' type='text/html' href='http://linwinmac.blogspot.com/2006/12/synergy-between-mac-and-pc.html' title='Synergy between Mac and PC'/><author><name>Joseph Antony</name><uri>http://www.blogger.com/profile/01429101852571349228</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-15004445.post-116479328379429299</id><published>2006-11-29T01:36:00.000-08:00</published><updated>2006-11-29T01:41:23.803-08:00</updated><title type='text'>Disabling email notifications in Linux</title><content type='html'>In Fedora, to disable the "sendmail" service, &lt;pre&gt;service sendmail stop&lt;/pre&gt; &lt;p align="justify"&gt;will suffice. But, sometimes, when you open your shell, or at other times, you may get &lt;b&gt;"you have new mail in /root/***"&lt;/b&gt;. How to deal with this. For bash, you can do the following steps. To confirm that ur shell is bash:&lt;/p&gt; &lt;pre&gt;echo $SHELL&lt;/pre&gt; will confirm your shell. If the notifications are alive, then &lt;pre&gt;echo $MAILCHECK&lt;/pre&gt; would dump some data. Just type &lt;pre&gt;unset MAILCHECK&lt;/pre&gt;After this, the previous command should dump nothing. You are thus freed of your burning mail issue. Amen.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/15004445-116479328379429299?l=linwinmac.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://linwinmac.blogspot.com/feeds/116479328379429299/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=15004445&amp;postID=116479328379429299' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/15004445/posts/default/116479328379429299'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/15004445/posts/default/116479328379429299'/><link rel='alternate' type='text/html' href='http://linwinmac.blogspot.com/2006/11/disabling-email-notifications-in-linux.html' title='Disabling email notifications in Linux'/><author><name>Joseph Antony</name><uri>http://www.blogger.com/profile/01429101852571349228</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-15004445.post-116418235300043064</id><published>2006-11-21T23:54:00.000-08:00</published><updated>2006-11-21T23:59:13.010-08:00</updated><title type='text'>restarting bash</title><content type='html'>There came a situation wherein I had updated the bashrc file and wanted to apply the effects to current shell without restarting it. Then I ended on the &lt;i&gt;&lt;b&gt;"source"&lt;/b&gt;&lt;/i&gt; command. On Mac, I had to type &lt;pre&gt;&lt;b&gt;source /etc/bashrc&lt;/b&gt;&lt;/pre&gt; while in linux its &lt;pre&gt;&lt;b&gt;source .bashrc&lt;/b&gt;&lt;/pre&gt;. It ended up applying the configuration to the current shell. Similarly, for applying profile specific datas (more like the autoexec.bat file in mac), I had to modify &lt;b&gt;&lt;i&gt;/etc/profile&lt;/i&gt;&lt;/b&gt; file for setting up PATH and other enrivonmental variables.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/15004445-116418235300043064?l=linwinmac.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://linwinmac.blogspot.com/feeds/116418235300043064/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=15004445&amp;postID=116418235300043064' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/15004445/posts/default/116418235300043064'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/15004445/posts/default/116418235300043064'/><link rel='alternate' type='text/html' href='http://linwinmac.blogspot.com/2006/11/restarting-bash.html' title='restarting bash'/><author><name>Joseph Antony</name><uri>http://www.blogger.com/profile/01429101852571349228</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-15004445.post-116359320184888056</id><published>2006-11-15T04:19:00.000-08:00</published><updated>2006-11-15T04:20:41.066-08:00</updated><title type='text'>rpm query</title><content type='html'>&lt;pre&gt;rpm -q --queryformat '%{NAME}: %{FILENAMES} install:=%{DIRNAMES} - %{SUMMARY}\n' git-core-1.4.3.5-1&lt;br /&gt;&lt;br /&gt;git-core: /usr/bin/git install:=/usr/bin/ - Core git tools&lt;/pre&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/15004445-116359320184888056?l=linwinmac.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://linwinmac.blogspot.com/feeds/116359320184888056/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=15004445&amp;postID=116359320184888056' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/15004445/posts/default/116359320184888056'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/15004445/posts/default/116359320184888056'/><link rel='alternate' type='text/html' href='http://linwinmac.blogspot.com/2006/11/rpm-query.html' title='rpm query'/><author><name>Joseph Antony</name><uri>http://www.blogger.com/profile/01429101852571349228</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-15004445.post-116254312008348291</id><published>2006-11-03T00:36:00.000-08:00</published><updated>2006-11-03T00:38:57.496-08:00</updated><title type='text'>Bye bye smbfs</title><content type='html'>From Fedora Core 5, ( I dont know about others as of now), they have stopped supporting "smbfs" and expects the users to replace it with "cifs". Hence, if you need to mount a network driver,&lt;pre&gt;mount -t cifs //server_name/to_be_mounted /mapping/directory &lt;br/&gt;-o username=myname,workgroup=mydomain&lt;/pre&gt; Also,  it (mount) doesn't like SMB names. You have to give it IP address or DNS hostname. Happy linking !!!&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/15004445-116254312008348291?l=linwinmac.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='related' href='http://www.linuxforums.org/forum/redhat-fedora-linux-help/61626-unknown-filesystem-type-smbfs-when-mounting.html' title='Bye bye smbfs'/><link rel='replies' type='application/atom+xml' href='http://linwinmac.blogspot.com/feeds/116254312008348291/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=15004445&amp;postID=116254312008348291' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/15004445/posts/default/116254312008348291'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/15004445/posts/default/116254312008348291'/><link rel='alternate' type='text/html' href='http://linwinmac.blogspot.com/2006/11/bye-bye-smbfs.html' title='Bye bye smbfs'/><author><name>Joseph Antony</name><uri>http://www.blogger.com/profile/01429101852571349228</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-15004445.post-116246206033793725</id><published>2006-11-02T01:58:00.000-08:00</published><updated>2006-11-02T02:07:40.353-08:00</updated><title type='text'>File format issue</title><content type='html'>I was trying to execute a shell script which I moved from windows. I repeatedly got the following error &lt;pre&gt;: bad interpreter: No such file or directory&lt;/pre&gt;&lt;P align="justify"&gt; Although I had set the proper shell to the script in, I couldnt get it to run. The high point was the same set of commands executed without any hitch when run on commandline. Then, archamedically, the thought of "file format" struck me. I set &lt;/p&gt;&lt;pre&gt;set ff=unix&lt;/pre&gt; and then tried executing it. Voila, it ran. It saved the day (atleast for now).&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/15004445-116246206033793725?l=linwinmac.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://linwinmac.blogspot.com/feeds/116246206033793725/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=15004445&amp;postID=116246206033793725' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/15004445/posts/default/116246206033793725'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/15004445/posts/default/116246206033793725'/><link rel='alternate' type='text/html' href='http://linwinmac.blogspot.com/2006/11/file-format-issue.html' title='File format issue'/><author><name>Joseph Antony</name><uri>http://www.blogger.com/profile/01429101852571349228</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-15004445.post-116226977132163591</id><published>2006-10-30T20:36:00.000-08:00</published><updated>2006-10-30T20:42:51.333-08:00</updated><title type='text'>Creating static and shared libraries in Linux</title><content type='html'>Am too bored to write a proper write-up as of now. So, here are the compiler commands to create static and shared libraries in linux (and mac too).&lt;br /&gt;&lt;br /&gt;&lt;pre&gt;gcc -fPIC -g -c -Wall &lt;b&gt;&lt;i&gt;a.c&lt;/i&gt;&lt;/b&gt;&lt;br /&gt;gcc -fPIC -g -c -Wall &lt;b&gt;&lt;i&gt;b.c&lt;/i&gt;&lt;/b&gt;&lt;br /&gt;gcc -shared -Wl,-soname,&lt;b&gt;&lt;i&gt;libmystuff.so.1&lt;/i&gt;&lt;/b&gt; -o &lt;b&gt;&lt;i&gt;libmystuff.so.1.0.1 a.o b.o&lt;/i&gt;&lt;/b&gt; -lc&lt;/pre&gt;&lt;br /&gt;&lt;br /&gt;Here, the bold and italicized stuff are those that you need to change to reflect to your library name and source files. In the above case, I am using two source files &lt;b&gt;&lt;i&gt;a.c, b.c&lt;/i&gt;&lt;/b&gt; and compiled it as a shared library named &lt;b&gt;&lt;i&gt;mystuff.so&lt;/i&gt;&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;To create a static library,&lt;br /&gt;&lt;pre&gt;gcc -fPIC -g -c -Wall &lt;b&gt;&lt;i&gt;a.c&lt;/i&gt;&lt;/b&gt;&lt;br /&gt;gcc -fPIC -g -c -Wall &lt;b&gt;&lt;i&gt;b.c&lt;/i&gt;&lt;/b&gt;&lt;br /&gt;ar rc &lt;b&gt;&lt;i&gt;libmylib.a a.o b.o &lt;/i&gt;&lt;/b&gt;&lt;br /&gt;ranlib &lt;b&gt;&lt;i&gt;libmylib.a&lt;/i&gt;&lt;/b&gt;&lt;/pre&gt;&lt;br /&gt;The last &lt;b&gt;&lt;i&gt;ranlib&lt;/i&gt;&lt;/b&gt; command indexes the symbols in the library archive to speed up compiler symbol lookup.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/15004445-116226977132163591?l=linwinmac.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://linwinmac.blogspot.com/feeds/116226977132163591/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=15004445&amp;postID=116226977132163591' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/15004445/posts/default/116226977132163591'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/15004445/posts/default/116226977132163591'/><link rel='alternate' type='text/html' href='http://linwinmac.blogspot.com/2006/10/creating-static-and-shared-libraries.html' title='Creating static and shared libraries in Linux'/><author><name>Joseph Antony</name><uri>http://www.blogger.com/profile/01429101852571349228</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-15004445.post-115850163454082880</id><published>2006-09-17T06:57:00.000-07:00</published><updated>2006-09-17T07:00:34.560-07:00</updated><title type='text'>RUN command shortcuts in Windows</title><content type='html'>To Access…. - Run Command&lt;br /&gt;&lt;br /&gt;Accessibility Controls - access.cpl &lt;br /&gt;&lt;br /&gt;Add Hardware Wizard - hdwwiz.cpl &lt;br /&gt;&lt;br /&gt;Add/Remove Programs - appwiz.cpl &lt;br /&gt;&lt;br /&gt;Administrative Tools - control admintools &lt;br /&gt;&lt;br /&gt;Automatic Updates - wuaucpl.cpl &lt;br /&gt;&lt;br /&gt;Bluetooth Transfer Wizard - fsquirt &lt;br /&gt; &lt;br /&gt;Calculator - calc &lt;br /&gt; &lt;br /&gt;Certificate Manager - certmgr.msc &lt;br /&gt; &lt;br /&gt;Character Map - charmap &lt;br /&gt; &lt;br /&gt;Check Disk Utility - chkdsk &lt;br /&gt; &lt;br /&gt;Clipboard Viewer - clipbrd &lt;br /&gt; &lt;br /&gt;Command Prompt - cmd &lt;br /&gt; &lt;br /&gt;Component Services - dcomcnfg &lt;br /&gt; &lt;br /&gt;Computer Management - compmgmt.msc &lt;br /&gt; &lt;br /&gt;Date and Time Properties - timedate.cpl &lt;br /&gt; &lt;br /&gt;DDE Shares - ddeshare &lt;br /&gt; &lt;br /&gt;Device Manager - devmgmt.msc &lt;br /&gt; &lt;br /&gt;Direct X Control Panel (If Installed)* - directx.cpl &lt;br /&gt; &lt;br /&gt;Direct X Troubleshooter - dxdiag &lt;br /&gt; &lt;br /&gt;Disk Cleanup Utility - cleanmgr &lt;br /&gt; &lt;br /&gt;Disk Defragment - dfrg.msc &lt;br /&gt; &lt;br /&gt;Disk Management - diskmgmt.msc &lt;br /&gt; &lt;br /&gt;Disk Partition Manager - diskpart &lt;br /&gt; &lt;br /&gt;Display Properties - control desktop &lt;br /&gt; &lt;br /&gt;Display Properties - desk.cpl  &lt;br /&gt;&lt;br /&gt;Display Properties (w/Appearance Tab Preselected) - control color &lt;br /&gt; &lt;br /&gt;Dr. Watson System Troubleshooting Utility - drwtsn32 &lt;br /&gt; &lt;br /&gt;Driver Verifier Utility - verifier &lt;br /&gt; &lt;br /&gt;Event Viewer - eventvwr.msc &lt;br /&gt; &lt;br /&gt;File Signature Verification Tool - sigverif &lt;br /&gt; &lt;br /&gt;Findfast - findfast.cpl &lt;br /&gt; &lt;br /&gt;Folders Properties - control folders &lt;br /&gt; &lt;br /&gt;Fonts - control fonts &lt;br /&gt; &lt;br /&gt;Fonts Folder - fonts &lt;br /&gt; &lt;br /&gt;Free Cell Card Game - freecell &lt;br /&gt; &lt;br /&gt;Game Controllers - joy.cpl &lt;br /&gt; &lt;br /&gt;Group Policy Editor (XP Prof) - gpedit.msc &lt;br /&gt; &lt;br /&gt;Hearts Card Game - mshearts &lt;br /&gt; &lt;br /&gt;Iexpress Wizard - iexpress &lt;br /&gt; &lt;br /&gt;Indexing Service - ciadv.msc &lt;br /&gt; &lt;br /&gt;Internet Properties - inetcpl.cpl &lt;br /&gt; &lt;br /&gt;IP Configuration (Display Connection Configuration) - ipconfig /all &lt;br /&gt; &lt;br /&gt;IP Configuration (Display DNS Cache Contents) - ipconfig /displaydns &lt;br /&gt; &lt;br /&gt;IP Configuration (Delete DNS Cache Contents) - ipconfig /flushdns &lt;br /&gt; &lt;br /&gt;IP Configuration (Release All Connections) - ipconfig /release &lt;br /&gt; &lt;br /&gt;IP Configuration (Renew All Connections) - ipconfig /renew &lt;br /&gt; &lt;br /&gt;IP Configuration (Refreshes DHCP &amp; Re - Registers DNS) - ipconfig /registerdns &lt;br /&gt; &lt;br /&gt;IP Configuration (Display DHCP Class ID) - ipconfig /showclassid &lt;br /&gt; &lt;br /&gt;IP Configuration (Modifies DHCP Class ID) - ipconfig /setclassid &lt;br /&gt; &lt;br /&gt;Java Control Panel (If Installed) - jpicpl32.cpl &lt;br /&gt; &lt;br /&gt;Java Control Panel (If Installed) - javaws &lt;br /&gt; &lt;br /&gt;Keyboard Properties - control keyboard &lt;br /&gt; &lt;br /&gt;Local Security Settings - secpol.msc &lt;br /&gt; &lt;br /&gt;Local Users and Groups - lusrmgr.msc &lt;br /&gt; &lt;br /&gt;Logs You Out Of Windows - logoff &lt;br /&gt; &lt;br /&gt;Microsoft Chat - winchat &lt;br /&gt; &lt;br /&gt;Minesweeper Game - winmine &lt;br /&gt; &lt;br /&gt;Mouse Properties - control mouse &lt;br /&gt; &lt;br /&gt;Mouse Properties - main.cpl &lt;br /&gt; &lt;br /&gt;Network Connections - control netconnections &lt;br /&gt; &lt;br /&gt;Network Connections - ncpa.cpl &lt;br /&gt; &lt;br /&gt;Network Setup Wizard - netsetup.cpl &lt;br /&gt; &lt;br /&gt;Notepad - notepad &lt;br /&gt; &lt;br /&gt;Nview Desktop Manager (If Installed) - nvtuicpl.cpl &lt;br /&gt; &lt;br /&gt;Object Packager - packager &lt;br /&gt; &lt;br /&gt;ODBC Data Source Administrator - odbccp32.cpl &lt;br /&gt; &lt;br /&gt;On Screen Keyboard - osk &lt;br /&gt; &lt;br /&gt;Opens AC3 Filter (If Installed) - ac3filter.cpl &lt;br /&gt; &lt;br /&gt;Password Properties - password.cpl &lt;br /&gt; &lt;br /&gt;Performance Monitor - perfmon.msc &lt;br /&gt; &lt;br /&gt;Performance Monitor - perfmon &lt;br /&gt; &lt;br /&gt;Phone and Modem Options - telephon.cpl  &lt;br /&gt;&lt;br /&gt;Power Configuration - powercfg.cpl &lt;br /&gt; &lt;br /&gt;Printers and Faxes - control printers &lt;br /&gt; &lt;br /&gt;Printers Folder - printers &lt;br /&gt; &lt;br /&gt;Private Character Editor - eudcedit &lt;br /&gt; &lt;br /&gt;Quicktime (If Installed) - QuickTime.cpl &lt;br /&gt; &lt;br /&gt;Regional Settings - intl.cpl &lt;br /&gt; &lt;br /&gt;Registry Editor - regedit &lt;br /&gt; &lt;br /&gt;Registry Editor - regedit32 &lt;br /&gt; &lt;br /&gt;Remote Desktop - mstsc &lt;br /&gt; &lt;br /&gt;Removable Storage - ntmsmgr.msc &lt;br /&gt; &lt;br /&gt;Removable Storage Operator Requests - ntmsoprq.msc &lt;br /&gt; &lt;br /&gt;Resultant Set of Policy (XP Prof) - rsop.msc &lt;br /&gt; &lt;br /&gt;Scanners and Cameras - sticpl.cpl &lt;br /&gt; &lt;br /&gt;Scheduled Tasks - control schedtasks &lt;br /&gt; &lt;br /&gt;Security Center - wscui.cpl &lt;br /&gt; &lt;br /&gt;Services - services.msc &lt;br /&gt; &lt;br /&gt;Shared Folders - fsmgmt.msc &lt;br /&gt; &lt;br /&gt;Shuts Down Windows - shutdown &lt;br /&gt; &lt;br /&gt;Sounds and Audio - mmsys.cpl &lt;br /&gt; &lt;br /&gt;Spider Solitare Card Game - spider &lt;br /&gt; &lt;br /&gt;SQL Client Configuration - cliconfg &lt;br /&gt; &lt;br /&gt;System Configuration Editor - sysedit &lt;br /&gt; &lt;br /&gt;System Configuration Utility - msconfig &lt;br /&gt; &lt;br /&gt;System File Checker Utility (Scan Immediately) - sfc /scannow &lt;br /&gt; &lt;br /&gt;System File Checker Utility (Scan Once At Next Boot) - sfc /scanonce &lt;br /&gt; &lt;br /&gt;System File Checker Utility (Scan On Every Boot) - sfc /scanboot &lt;br /&gt; &lt;br /&gt;System File Checker Utility (Return to Default Setting) - sfc /revert &lt;br /&gt; &lt;br /&gt;System File Checker Utility (Purge File Cache) - sfc /purgecache &lt;br /&gt; &lt;br /&gt;System File Checker Utility (Set Cache Size to size x) - sfc /cachesize=x &lt;br /&gt; &lt;br /&gt;System Properties - sysdm.cpl &lt;br /&gt; &lt;br /&gt;Task Manager - taskmgr &lt;br /&gt; &lt;br /&gt;Telnet Client - telnet &lt;br /&gt; &lt;br /&gt;User Account Management - nusrmgr.cpl &lt;br /&gt; &lt;br /&gt;Utility Manager - utilman &lt;br /&gt; &lt;br /&gt;Windows Firewall - firewall.cpl &lt;br /&gt; &lt;br /&gt;Windows Magnifier - magnify &lt;br /&gt; &lt;br /&gt;Windows Management Infrastructure - wmimgmt.msc &lt;br /&gt; &lt;br /&gt;Windows System Security Tool - syskey &lt;br /&gt; &lt;br /&gt;Windows Update Launches - wupdmgr &lt;br /&gt; &lt;br /&gt;Windows XP Tour Wizard - tourstart &lt;br /&gt; &lt;br /&gt;Wordpad - write&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;wheewwwww.........&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/15004445-115850163454082880?l=linwinmac.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://linwinmac.blogspot.com/feeds/115850163454082880/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=15004445&amp;postID=115850163454082880' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/15004445/posts/default/115850163454082880'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/15004445/posts/default/115850163454082880'/><link rel='alternate' type='text/html' href='http://linwinmac.blogspot.com/2006/09/run-command-shortcuts-in-windows.html' title='RUN command shortcuts in Windows'/><author><name>Joseph Antony</name><uri>http://www.blogger.com/profile/01429101852571349228</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-15004445.post-115011742941559841</id><published>2006-06-12T06:02:00.000-07:00</published><updated>2006-06-12T06:03:49.416-07:00</updated><title type='text'>Process background and foreground</title><content type='html'>To run a process in the background, we normally use&lt;pre&gt;$ command &amp;&lt;/pre&gt;What if we accidentally start a process in the foreground instead of starting it in the background? No problem. Just do a&lt;pre&gt;CTRL+Z&lt;/pre&gt; and the process will jump to the background. Note that pressing a&lt;pre&gt;CTRL+Z&lt;/pre&gt; will move the process to the background and suspend it. In order for it to keep executing, you need to do a&lt;pre&gt;CTRL+Z&lt;/pre&gt; and then type&lt;pre&gt;bg&lt;/pre&gt; to keep it running the background. Now, you can type&lt;pre&gt;jobs&lt;/pre&gt; to see the list of processes running the background. To bring a particular job to the foreground, type&lt;pre&gt;fg &lt;job-no&gt;&lt;/pre&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/15004445-115011742941559841?l=linwinmac.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://linwinmac.blogspot.com/feeds/115011742941559841/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=15004445&amp;postID=115011742941559841' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/15004445/posts/default/115011742941559841'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/15004445/posts/default/115011742941559841'/><link rel='alternate' type='text/html' href='http://linwinmac.blogspot.com/2006/06/process-background-and-foreground.html' title='Process background and foreground'/><author><name>Joseph Antony</name><uri>http://www.blogger.com/profile/01429101852571349228</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-15004445.post-115011730154931290</id><published>2006-06-12T06:00:00.000-07:00</published><updated>2006-06-12T06:01:41.550-07:00</updated><title type='text'>MrProper</title><content type='html'>I was cleaning up an old version of the kernel and I came across this command&lt;pre&gt; make mrproper &lt;/pre&gt;&lt;p align="justify"&gt; Curiosity got the better of me, and I went ahead googling and fell on a forum thread discussing the origin of the “mrproper”. After “analysis", it was found and confirmed that mrproper stands for “Meister Proper” (German) or Mr. Clean , a cleaning liquid product.&lt;br /&gt;&lt;br /&gt;Hmmmm……&lt;/p&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/15004445-115011730154931290?l=linwinmac.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://linwinmac.blogspot.com/feeds/115011730154931290/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=15004445&amp;postID=115011730154931290' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/15004445/posts/default/115011730154931290'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/15004445/posts/default/115011730154931290'/><link rel='alternate' type='text/html' href='http://linwinmac.blogspot.com/2006/06/mrproper.html' title='MrProper'/><author><name>Joseph Antony</name><uri>http://www.blogger.com/profile/01429101852571349228</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-15004445.post-115011723316487757</id><published>2006-06-12T05:58:00.000-07:00</published><updated>2006-06-12T06:00:33.166-07:00</updated><title type='text'>Creating a patch in Linux</title><content type='html'>&lt;pre&gt;diff -C 4 orig_file.c new_file.c &gt;myfile.patch &lt;/pre&gt;&lt;br /&gt;&lt;p align="justify"&gt;Here the “C 4″ specifies to add a 4 line context to understand where the patch fits for the user. To apply the patch, copy the file to the directory where the patch needs to be applied and execute the following command. Here, the p0 specifies to take the filename only and not the entire path which will be specified in the patch file&lt;/p&gt;&lt;br /&gt;&lt;pre&gt;patch -p0 &lt; myfile.patch&lt;/pre&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/15004445-115011723316487757?l=linwinmac.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://linwinmac.blogspot.com/feeds/115011723316487757/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=15004445&amp;postID=115011723316487757' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/15004445/posts/default/115011723316487757'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/15004445/posts/default/115011723316487757'/><link rel='alternate' type='text/html' href='http://linwinmac.blogspot.com/2006/06/creating-patch-in-linux.html' title='Creating a patch in Linux'/><author><name>Joseph Antony</name><uri>http://www.blogger.com/profile/01429101852571349228</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-15004445.post-115011703636326641</id><published>2006-06-12T05:55:00.000-07:00</published><updated>2006-06-12T05:57:44.303-07:00</updated><title type='text'>Recursive Download</title><content type='html'>&lt;p align="justify"&gt;For downloading only a particular type of files (say, *.pdf) form a http link, i used the following commands in sequence First, I downloaded the page containing the links to all the pdf files (ok, point to note here; I was not able to download recursively because of the robots.txt restriction)&lt;/p&gt;&lt;br /&gt;&lt;pre&gt;wget http://my.requiredsite.com/page1/download/&lt;/pre&gt;&lt;br /&gt;This created a index.html file in the current directory for me with relative links to all pdf files. Then, &lt;pre&gt;wget -r -nd -np -l4 -A "*.swf" -F -i ./index.html --base=&lt;br /&gt;http://my.requiredsite.com/page1/download/&lt;/pre&gt;to download only the pdf files from the site.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/15004445-115011703636326641?l=linwinmac.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://linwinmac.blogspot.com/feeds/115011703636326641/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=15004445&amp;postID=115011703636326641' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/15004445/posts/default/115011703636326641'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/15004445/posts/default/115011703636326641'/><link rel='alternate' type='text/html' href='http://linwinmac.blogspot.com/2006/06/recursive-download.html' title='Recursive Download'/><author><name>Joseph Antony</name><uri>http://www.blogger.com/profile/01429101852571349228</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-15004445.post-114715836282110712</id><published>2006-05-09T00:03:00.000-07:00</published><updated>2006-05-09T00:06:38.050-07:00</updated><title type='text'>Install / Upgrade Option in Mac Installer</title><content type='html'>&lt;b&gt;Issue :&lt;/b&gt;&lt;p align="justify"&gt;&lt;br /&gt;In Mac, while installing (using the Mac Installer) the first time, the "install" option will occur. But, from the next time onwards, even after removing the bundle and installing it again using the MAC installer, always "upgrade" option is displayed instead of "Install".  &lt;br /&gt;&lt;/p&gt;&lt;br /&gt;&lt;b&gt;Reason : &lt;/b&gt;&lt;p align="justify"&gt;&lt;br /&gt;MAC keeps a track of all the installed bundles in the OS under &lt;b&gt;" /Library/Receipts "&lt;/b&gt; directory. &lt;br&gt;&lt;br /&gt;When we are installing the first time, Mac keeps track of the installation by updating the details under " /Library/Receipts " directory. Hence the "install" option will appear. &lt;br /&gt;&lt;br /&gt;From the next time, although we delete the drivers from the corresponding directories, the "Install" option changes to "Upgrade". &lt;br /&gt;&lt;br /&gt;Deleting the corresponding install entry in " /Library/Receipts " cleans up any trace of previous installation. Hence, the "install" option will appear in the installer.&lt;br /&gt;&lt;br /&gt;It is recommended not to generally mishandle files in the " /Library/Receipts " directory.&lt;br /&gt;&lt;br /&gt;A good link regarding this --&gt; &lt;a href="http://www.macworld.com/weblogs/macosxhints/2005/10/viewprogdetails/index.php"&gt;here&lt;/a&gt;&lt;br /&gt;&lt;/p&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/15004445-114715836282110712?l=linwinmac.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='related' href='http://www.macworld.com/weblogs/macosxhints/2005/10/viewprogdetails/index.php' title='Install / Upgrade Option in Mac Installer'/><link rel='replies' type='application/atom+xml' href='http://linwinmac.blogspot.com/feeds/114715836282110712/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=15004445&amp;postID=114715836282110712' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/15004445/posts/default/114715836282110712'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/15004445/posts/default/114715836282110712'/><link rel='alternate' type='text/html' href='http://linwinmac.blogspot.com/2006/05/install-upgrade-option-in-mac.html' title='Install / Upgrade Option in Mac Installer'/><author><name>Joseph Antony</name><uri>http://www.blogger.com/profile/01429101852571349228</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-15004445.post-114015524354917718</id><published>2006-02-16T21:39:00.000-08:00</published><updated>2006-02-16T22:03:59.863-08:00</updated><title type='text'>Command line compilation in XCode</title><content type='html'>&lt;p align="justify"&gt;&lt;br /&gt;I was browsing through the &lt;a href="http://www.apple.com/macosx/features/xcode/"&gt;XCode&lt;/a&gt; 2.1 help for compiling multiple targets in one shot when I fell upon xcodebuild. Its a command-line utility for compiling xcode projects. It can be considered like a &lt;a href="http://vertigo.hsrl.rutgers.edu/ug/make_help.html"&gt;Makefile&lt;/a&gt; for the XCode environment. You should be knowing there are two types of default configurations present in XCode; the Debug mode and the Release mode. To compile all the targets in a project for a specific configuration, go to the project directory which contains the &lt;project-name&gt;.xcodeproj and give the following command at the command prompt&lt;/p&gt;&lt;br /&gt;&lt;pre&gt;xcodebuild -alltargets -configuration Release&lt;/pre&gt;.&lt;p align="justify"&gt; You can replace the "Release" with "Debug". If none is given, xcodebuild takes the default configuration from the XCode environment. If you need to compile to a specific target, just add "-target &lt;target-name&gt;" to the above command.&lt;br /&gt;You can also clean a particular configuration as below&lt;/p&gt;&lt;pre&gt;xcodebuild -alltargets clean -configuration Release&lt;/pre&gt;&lt;hr&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/15004445-114015524354917718?l=linwinmac.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='related' href='http://developer.apple.com/documentation/Darwin/Reference/ManPages/man1/xcodebuild.1.html' title='Command line compilation in XCode'/><link rel='replies' type='application/atom+xml' href='http://linwinmac.blogspot.com/feeds/114015524354917718/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=15004445&amp;postID=114015524354917718' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/15004445/posts/default/114015524354917718'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/15004445/posts/default/114015524354917718'/><link rel='alternate' type='text/html' href='http://linwinmac.blogspot.com/2006/02/command-line-compilation-in-xcode.html' title='Command line compilation in XCode'/><author><name>Joseph Antony</name><uri>http://www.blogger.com/profile/01429101852571349228</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-15004445.post-113818072256885636</id><published>2006-01-25T00:31:00.000-08:00</published><updated>2006-01-25T01:18:43.463-08:00</updated><title type='text'>pcmcia changes in 2.6.11 and greater</title><content type='html'>&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/15004445-113818072256885636?l=linwinmac.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='related' href='http://developer.osdl.org/dev/robustmutexes/src/fusyn.hg/Documentation/pcmcia/devicetable.txt' title='pcmcia changes in 2.6.11 and greater'/><link rel='replies' type='application/atom+xml' href='http://linwinmac.blogspot.com/feeds/113818072256885636/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=15004445&amp;postID=113818072256885636' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/15004445/posts/default/113818072256885636'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/15004445/posts/default/113818072256885636'/><link rel='alternate' type='text/html' href='http://linwinmac.blogspot.com/2006/01/pcmcia-changes-in-2611-and-greater.html' title='pcmcia changes in 2.6.11 and greater'/><author><name>Joseph Antony</name><uri>http://www.blogger.com/profile/01429101852571349228</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-15004445.post-113221973355149889</id><published>2005-11-16T23:06:00.000-08:00</published><updated>2006-01-11T01:22:29.050-08:00</updated><title type='text'>Auto-login with sshd</title><content type='html'>&lt;p align="justify"&gt;&lt;br /&gt;If not for our very own scientist Vijayraj, this blog (and its source) would'nt have born at all. So, with all due thanks to him, here goes:&lt;br /&gt;&lt;br /&gt;Warning: Make sure you have installed sshd (aaww, dont worry man, it comes by default).&lt;br /&gt;&lt;br /&gt;Now, for the server configuration part. Open up /etc/ssh/sshd_config file.&lt;br /&gt;In that uncomment/add the following lines.&lt;br /&gt;&lt;pre&gt;RSAAuthentication yes&lt;br /&gt;PubkeyAuthentication yes&lt;br /&gt;Protocol 1&lt;/pre&gt;&lt;/p&gt;&lt;p align="justify"&gt;The "Protocol" key maybe absent in older versions of ssh. Its not a worry if its not there.Thats about it with the configuration file. Now for the security aspect. Go to your home directory. There enter the secret world of ".ssh". Here lies the keypass to your auto-login. There should be a file by the name of "authorized_keys". This will contain the public key to your username. If the file is not there or you dont have a public key as of now to authenticate yourself, enter &lt;a href="http://www.chiark.greenend.org.uk/~sgtatham/putty/download.html" target="_blank"&gt;puttygen&lt;/a&gt;. &lt;br /&gt;&lt;br /&gt;Use this utility to generate your public and private keys at the click of a button. Copy the public key to the "authorized_keys" file. Then pass the private keys value to &lt;a href="http://www.chiark.greenend.org.uk/~sgtatham/putty/download.html" target="_blank"&gt;putty&lt;/a&gt; via the "Settings/Connection/SSH/Auth" menu item. The username for automatic login can be passed to putty via the "Settings/Connection/Data/Auto-login username" menu item. &lt;br /&gt;&lt;br /&gt;After all these, just request the ssh server to restart once with " killall /usr/sbin/sshd -HUP" command. After this, logging with your username should be possible with the click of a button.&lt;br /&gt;&lt;br /&gt;Ok, How much did I miss here????&lt;br /&gt;&lt;br /&gt;Have "p(l)u(n)tty" of fun...&lt;br /&gt;&lt;/p&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/15004445-113221973355149889?l=linwinmac.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://linwinmac.blogspot.com/feeds/113221973355149889/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=15004445&amp;postID=113221973355149889' title='2 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/15004445/posts/default/113221973355149889'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/15004445/posts/default/113221973355149889'/><link rel='alternate' type='text/html' href='http://linwinmac.blogspot.com/2005/11/auto-login-with-sshd.html' title='Auto-login with sshd'/><author><name>Joseph Antony</name><uri>http://www.blogger.com/profile/01429101852571349228</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>2</thr:total></entry><entry><id>tag:blogger.com,1999:blog-15004445.post-112737167364228628</id><published>2005-09-21T23:40:00.000-07:00</published><updated>2005-09-23T02:04:28.006-07:00</updated><title type='text'>Command-ling Scheduling in windows</title><content type='html'>&lt;p align="justify"&gt;&lt;br /&gt;(thx to Senthil)&lt;br /&gt;&lt;br /&gt;Ever thought on how to schedule a job to execute at regular intervals on MS-Windows NT/2000 like &lt;a href="http://www.aota.net/Script_Installation_Tips/cronhelp.php3"&gt;Cronjob&lt;/a&gt; in unix. Windows scheduler is there for the GUI-dependents, but is there a soul-renderer for the command liners?? &lt;br /&gt;10 marks to Griffindors (????) for guessing it right. The answer is YES. &lt;/p&gt;&lt;pre&gt;&lt;br /&gt;-- To Add job to scheduling queue --&lt;br /&gt;For eg : To Run batch job program iyo.BAT at 02H00 every Sunday morning&lt;br /&gt;&lt;br /&gt;AT 02:00 /EVERY:SUNDAY "C:\BATCH\iyo.BAT"&lt;br /&gt;&lt;br /&gt;-- To List jobs in scheduling queue --&lt;br /&gt;&lt;br /&gt;AT&lt;br /&gt;&lt;br /&gt;-- To Remove all jobs from scheduling queue --&lt;br /&gt;&lt;br /&gt;AT /DELETE /YES&lt;br /&gt;&lt;/pre&gt;&lt;p align="justify"&gt;&lt;br /&gt;Dont forget that the &lt;a href="http://www.microsoft.com/resources/documentation/windows/xp/all/proddocs/en-us/at.mspx"&gt;AT&lt;/a&gt; command does not utilize the PATH environment variable, but uses absolute path name to the batch file and other commands&lt;br /&gt;&lt;/p&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/15004445-112737167364228628?l=linwinmac.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://linwinmac.blogspot.com/feeds/112737167364228628/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=15004445&amp;postID=112737167364228628' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/15004445/posts/default/112737167364228628'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/15004445/posts/default/112737167364228628'/><link rel='alternate' type='text/html' href='http://linwinmac.blogspot.com/2005/09/command-ling-scheduling-in-windows.html' title='Command-ling Scheduling in windows'/><author><name>Joseph Antony</name><uri>http://www.blogger.com/profile/01429101852571349228</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-15004445.post-112471792940047402</id><published>2005-08-22T06:12:00.000-07:00</published><updated>2005-08-22T06:38:49.406-07:00</updated><title type='text'>Compiling Apps with PCSC library in Mac OS X</title><content type='html'>&lt;p align="justify"&gt;Reverse engineering things is part of the fun in working with Linux. Irritation and frustation are the work-hazards in these environments. I encountered such a 'fun' situation when trying to compile a PCSC app for smart card reader communication in Mac OS X. &lt;br /&gt;&lt;br /&gt;The normal libraries linked with apps for smartcard communication are the pthread and the pcsclite libraries. All is well with pthread library being present in /usr/lib directory. But, I cudnt find the pcsclite library which will normally be available in /usr/local/lib in other linux distributions. I 'grep'ed from root to bottom and got only binary files' links. &lt;br /&gt;&lt;br /&gt;There started my reverse-lookup work. After much search, I fell upon the &lt;a href="http://www.hmug.org/man/1/otool.php"&gt;otool&lt;/a&gt; command. On running this command with the pre-existing &lt;a href="http://www.hmug.org/man/8/pcsctest.php"&gt;pcsctest&lt;/a&gt; tool, i fell upon the following.. &lt;/p&gt;&lt;br /&gt;&lt;pre&gt;/usr/bin/pcsctest:&lt;br /&gt;   /System/Library/Frameworks/PCSC.framework/Versions/A/PCSC &lt;br /&gt;   (compatibility version 1.0.0, current version 31.0.0)&lt;br /&gt;&lt;br /&gt;   /usr/lib/libSystem.B.dylib (compatibility version &lt;br /&gt;   1.0.0, current version 88.0.0)&lt;br /&gt;&lt;/pre&gt;&lt;p align="justify"&gt; Using this as a backbone, I compiled my utility as follows&lt;br /&gt;&lt;pre&gt;gcc -o lint pcscutil.c &lt;br /&gt;  -I /System/Library/Frameworks/PCSC.framework/Headers/ &lt;br /&gt;  -lpthread &lt;br /&gt;  -L/System/Library/Frameworks/PCSC.framework/Versions/A/ &lt;br /&gt;  -framework PCSC&lt;/pre&gt;&lt;p align="justify"&gt;Voila!! it compiled!!!. What was the problem in the first place? All SCard command for the pcsc apps are defined in the pcsclite library. Here in Mac OS, they have been put into the &lt;b&gt;PCSC&lt;/b&gt; framework and hence needs to be linked as "-framework" and not as a library. THAT is the secret!!! &lt;br /&gt;&lt;br /&gt;PS: I used pcsc daemon version 1.1.2, which comes bundled with the Mac OS X (10.4 darwin).&lt;/p&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/15004445-112471792940047402?l=linwinmac.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://linwinmac.blogspot.com/feeds/112471792940047402/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=15004445&amp;postID=112471792940047402' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/15004445/posts/default/112471792940047402'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/15004445/posts/default/112471792940047402'/><link rel='alternate' type='text/html' href='http://linwinmac.blogspot.com/2005/08/compiling-apps-with-pcsc-library-in.html' title='Compiling Apps with PCSC library in Mac OS X'/><author><name>Joseph Antony</name><uri>http://www.blogger.com/profile/01429101852571349228</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-15004445.post-112382702480883019</id><published>2005-08-11T22:36:00.000-07:00</published><updated>2005-08-12T03:29:36.556-07:00</updated><title type='text'>Installating Redhat packages - the Debian Way</title><content type='html'>&lt;p align="justify"&gt;&lt;br /&gt;The RPM (Redhat Package Manager) in Redhat is a very good package manager to install RPMs. One downside to this is the complexities involved with installing big componenets like GCC which involves relationships similar to the way indian government runs.&lt;br /&gt;&lt;br /&gt;If you are at the rookie, you tend to get lost.&lt;br /&gt;&lt;br /&gt;Debian has the wonderful utility "apt-get" to upgrade their components. An utility to which we just mention the package name, the rest is taken care of by itself. Just one requirement. You need a net connection (Having an OSS and no net connection is like having toothbrush/paste with no teeth). Otherwise, its a damn good utility. The best part is that it takes care of all the dependency issues by ITSELF(!!! if only our government runs like this).&lt;br /&gt;&lt;br /&gt;Hey, its open source. So, "apt-get" has jumped the bandwagon of redhat also. The utility is parked &lt;a href="http://apt.freshrpms.net/"&gt;here&lt;/a&gt;. Just pull out the RPM for your distro and install it with &lt;a href="http://www.rpm.org/max-rpm/rpm.8.html"&gt;RPM&lt;/a&gt;. Check out another blog of mine on how to install a particular RPM &lt;a href="http://linwinmac.blogspot.com/2005/08/upgrading-gcc.html"&gt;here.&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;Once installed, You should be feeling the power in your hands. The power of APT-GET. Now, to the details.&lt;br /&gt;&lt;br /&gt;&lt;i&gt;"/etc/apt/sources.list"&lt;/i&gt; is the main configuration file. This file contains the link to the latest RPMs to be retrieved from the &lt;a href="http://ayo.freshrpms.net"&gt;freshrpms&lt;/a&gt; site. The file should always have an uncommented default suitable to suit your system. I had Fedora. Hence, I added the below lines to support fedora's path&lt;br /&gt;&lt;table border="0" bgcolor="#FFEE99"&gt;&lt;tr&gt;&lt;td&gt;&lt;b&gt;&lt;pre&gt;#FC1&lt;br /&gt;rpm http://ayo.freshrpms.net fedora/linux/1/i386 os updates freshrpms&lt;/pre&gt;&lt;/b&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/table&gt;&lt;br /&gt;&lt;br /&gt;Ok. we are ready to upgrade. First, we need to update the latest packages info from the site. Just call &lt;table border="0" bgcolor="#FFEE99"&gt;&lt;tr&gt;&lt;td&gt;&lt;b&gt;&lt;pre&gt;$ apt-get update&lt;/pre&gt;&lt;/b&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/table&gt;.&lt;/p&gt;&lt;p align="justify"&gt; This call will take care of collecting the info frmo the site. Now, we are ready to upgrade our system. Let met take the example of me installing libgcc. Check out the sequence of commands I used to install. Let met explain after the commands.&lt;br /&gt;&lt;/p&gt;&lt;table border="0" bgcolor="#FFEE99"&gt;&lt;tr&gt;&lt;td&gt;&lt;b&gt;&lt;pre&gt;$ apt-cache search libgcc&lt;br /&gt;$ apt-cache showpkg libgcc&lt;br /&gt;$ apt-get install libgcc&lt;/pre&gt;&lt;/b&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/table&gt;&lt;br /&gt;&lt;p align="justify"&gt;The first line is like asking "search the packages list for packages containing the word libgcc and list all for me". I got the following (mine is Fedora). Yours may differ based on how you have updated and your distribution.&lt;br /&gt;&lt;/p&gt;&lt;pre&gt;$ apt-cache search libgcc&lt;br /&gt;libgcc - GCC version 3.3 shared support library&lt;br /&gt;openoffice.org-libs - OpenOffice.org shared libraries&lt;/pre&gt; &lt;p align="justify"&gt;Now, since we have the package listed, we go to the second line. It talks like "show me the version of the package, what it provides, its dependencies and its reverse-dependencies. Mine listed something like this.&lt;/p&gt;&lt;pre&gt;# apt-cache showpkg libgcc&lt;br /&gt;Package: libgcc&lt;br /&gt;Versions:&lt;br /&gt;3.3.2-1(/var/state/apt/lists/ayo.freshrpms.&lt;br /&gt;  net_fedora_linux_1_i386_base_pkglist.os)&lt;br /&gt;  (/var/lib/rpm/Packages)&lt;br /&gt;&lt;br /&gt;Reverse Depends:&lt;br /&gt;  glibc,libgcc&lt;br /&gt;  glibc,libgcc&lt;br /&gt;  glibc,libgcc&lt;br /&gt;  glibc,libgcc&lt;br /&gt;  gcc,libgcc 3.3.2-1&lt;br /&gt;Dependencies:&lt;br /&gt;3.3.2-1 - /usr/sbin/libgcc_post_upgrade (0 (null))&lt;br /&gt;Provides:&lt;br /&gt;3.3.2-1 - /usr/sbin/libgcc_post_upgrade libgcc_s.so.1&lt;br /&gt;   (GLIBC_2.0) libgcc_s.so.1(GCC_3.3.1) libgcc_s.so.1&lt;br /&gt;   (GCC_3.3)   &lt;br /&gt;   libgcc_s.so.1(GCC_3.0) libgcc_s.so.1&lt;br /&gt;Reverse Provides:&lt;/pre&gt;&lt;p align="justify"&gt;Now, we know what are the dependencies this package has, and what are all the related RPMs to be installed. Now, comes the best part. You DONT HAVE TO WORRY about this dependencies stuff. All you need to do is to silently call the third command and see apt-get weave its magic. In the end, all the related upgradation, degradations, installations are done successfully and all will be well that ends well.&lt;/p&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/15004445-112382702480883019?l=linwinmac.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://linwinmac.blogspot.com/feeds/112382702480883019/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=15004445&amp;postID=112382702480883019' title='2 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/15004445/posts/default/112382702480883019'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/15004445/posts/default/112382702480883019'/><link rel='alternate' type='text/html' href='http://linwinmac.blogspot.com/2005/08/installating-redhat-packages-debian.html' title='Installating Redhat packages - the Debian Way'/><author><name>Joseph Antony</name><uri>http://www.blogger.com/profile/01429101852571349228</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>2</thr:total></entry><entry><id>tag:blogger.com,1999:blog-15004445.post-112348642705450089</id><published>2005-08-08T00:01:00.000-07:00</published><updated>2005-08-09T02:59:33.646-07:00</updated><title type='text'>Upgrading GCC</title><content type='html'>&lt;p align="justify"&gt;&lt;br /&gt;Customer requirement made me do the one thing which I had screwed up successfully before. &lt;br /&gt;&lt;br /&gt;Upgrade GCC.&lt;br /&gt;&lt;br /&gt;I was scared to death to do that. Fortune knocked me in the form of my Scientist friend Vijai. The wise spoke thus:&lt;br /&gt;&lt;b&gt;&lt;i&gt;I dont need to compile from sources. There will be ready-made materials available. Just install those. and Voila it will work&lt;/i&gt;&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;I was happy. So, here goes my knowledge transfer. I know its silly to the core to be happy about making a simple installation work. I am writing this blog to all those kind-hearted newbie homo-sapiens out there who think in my lines.&lt;br /&gt;&lt;br /&gt;&lt;b&gt;Status:&lt;/b&gt;&lt;br /&gt;1. I am  having gcc3.2.2 .  I need gcc 3.3.2&lt;br /&gt;2. I am using RHL 9.0 (no fixes/patches/upgrades done so far).&lt;br /&gt;&lt;br /&gt;&lt;b&gt;Procedure:&lt;/b&gt;&lt;br /&gt;1. First, go to &lt;a href="http://rpmfind.net"&gt;Rpm Finder&lt;/a&gt; . Search for &lt;a href="http://rpmfind.net/linux/rpm2html/search.php?query=gcc&amp;submit=Search+...&amp;system=&amp;arch="&gt;"gcc 3.3.2"&lt;/a&gt;.&lt;br /&gt;2. Downlaod the x86 version of gcc 3.3.2 . It will be listed under Fedora's packages. &lt;br /&gt;I got it from &lt;a href="http://rpmfind.net//linux/RPM/fedora/1/i386/gcc-3.3.2-1.i386.html"&gt;here&lt;/a&gt;&lt;br /&gt;3. There are two ways to get it. Either right-click download, or use "wget" command. I used "wget" command. &lt;br /&gt;&lt;pre&gt;&lt;br /&gt;$ wget ftp://fr2.rpmfind.net/linux/fedora/core/1/&lt;br /&gt;i386/os/Fedora/RPMS/gcc-3.3.2-1.i386.rpm&lt;br /&gt;&lt;/pre&gt;&lt;br /&gt;&lt;br /&gt;4. Now, comes the main part. You need to verify if upgrading this package causes any problems in dependencies to you.&lt;br /&gt;&lt;pre&gt;$ rpm -ivh --test gcc-3.3.2-1.i386.rpm&lt;/pre&gt;&lt;br /&gt;To me, it gave three dependency issues. I needed to have later versions of &lt;br /&gt;"libgcc","binutils" and "cpp" packages than those already present.&lt;br /&gt;&lt;/p&gt;&lt;br /&gt;&lt;p align="justify"&gt;&lt;br /&gt;5. I proceeded to download these packages and did the previous four steps for these.&lt;br /&gt;6. But, upgrading/installing libgcc was creating problems as the older version of this libgcc was needed by gcc3.2.2 (the current version). Hence, I proceeded to uninstall the whole gcc package (cos this was running into loops).&lt;/p&gt;&lt;br /&gt;&lt;pre&gt;$ rpm -e --nodeps gcc-3.2.2-5 &lt;/pre&gt;&lt;br /&gt;&lt;p align="justify"&gt;&lt;br /&gt;the "nodeps" options was a request to the "rpm" utility to ignore any dependency issues that may pop-up during the un-installation. I did this because I am going to anyway upgrade the package to the later one. Once this is done, the dependency issues will be solved. &lt;br /&gt;&lt;/p&gt;&lt;br /&gt;7. So, then, I upgraded all the three packages..&lt;br /&gt;&lt;pre&gt;$ rpm -ivh --test &amp;lt;rpm-of-package-to-install&amp;gt; &lt;/pre&gt; - to test for any issues&lt;br /&gt;&lt;pre&gt;$ rpm -ivh &amp;lt;rpm-of-package-to-install&amp;gt; &lt;/pre&gt; - to install&lt;br /&gt;&lt;p align="justify"&gt;&lt;br /&gt;8. Finally, I upgraded the latest gcc.&lt;br /&gt;9. Using the "--test" is of paramount importance as this will save u from any embarassment later on. ALWAYS use this before proceeding with the real installation.&lt;br /&gt;&lt;br /&gt;10. I am the now happy developer(is it???) with a first-in-my-lifetime successfull upgradation of GCC (of course with the help of our in-house scientist)&lt;br /&gt;&lt;/p&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/15004445-112348642705450089?l=linwinmac.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://linwinmac.blogspot.com/feeds/112348642705450089/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=15004445&amp;postID=112348642705450089' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/15004445/posts/default/112348642705450089'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/15004445/posts/default/112348642705450089'/><link rel='alternate' type='text/html' href='http://linwinmac.blogspot.com/2005/08/upgrading-gcc.html' title='Upgrading GCC'/><author><name>Joseph Antony</name><uri>http://www.blogger.com/profile/01429101852571349228</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-15004445.post-112313108676965880</id><published>2005-08-03T21:48:00.000-07:00</published><updated>2005-08-03T21:51:26.773-07:00</updated><title type='text'>The Best way to make pcsc lite 1.1.2 work</title><content type='html'>&lt;p align="justify"&gt;&lt;br /&gt;After about a day of racking my brains to find out a good / decent way to make pcsc lite 1.1.2 to bring back to life, I at last found the best way I can choose right now. I re-installed mac os X. Voila!! I have what I want where I want and how I want. Atleast I expect to find a better way than this before the world ends. You will have to wait a few years(decades or centuries..) to see if that happens.&lt;/p&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/15004445-112313108676965880?l=linwinmac.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://linwinmac.blogspot.com/feeds/112313108676965880/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=15004445&amp;postID=112313108676965880' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/15004445/posts/default/112313108676965880'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/15004445/posts/default/112313108676965880'/><link rel='alternate' type='text/html' href='http://linwinmac.blogspot.com/2005/08/best-way-to-make-pcsc-lite-112-work.html' title='The Best way to make pcsc lite 1.1.2 work'/><author><name>Joseph Antony</name><uri>http://www.blogger.com/profile/01429101852571349228</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-15004445.post-112297424679330702</id><published>2005-08-02T02:09:00.000-07:00</published><updated>2005-08-02T02:17:26.796-07:00</updated><title type='text'>in hell with MAC OS X - pcsc-lite 1.1.2</title><content type='html'>I was so enthused to upgrade the pcsc framework in my 10.4.1 tiger that i cleaned up the old pcsc daemon, 1.1.2 . Now, the latest is 1.2.9 beta7. all is well till its well. then, somebody wanted support for 1.1.2 cos thats the default one that comes with os x. the really screwed up part is where i am not able to find 1.1.2 package to download / install . god save me. :-(&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/15004445-112297424679330702?l=linwinmac.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://linwinmac.blogspot.com/feeds/112297424679330702/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=15004445&amp;postID=112297424679330702' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/15004445/posts/default/112297424679330702'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/15004445/posts/default/112297424679330702'/><link rel='alternate' type='text/html' href='http://linwinmac.blogspot.com/2005/08/in-hell-with-mac-os-x-pcsc-lite-112.html' title='in hell with MAC OS X - pcsc-lite 1.1.2'/><author><name>Joseph Antony</name><uri>http://www.blogger.com/profile/01429101852571349228</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-15004445.post-112289528375644783</id><published>2005-08-01T04:20:00.000-07:00</published><updated>2005-08-01T04:21:23.756-07:00</updated><title type='text'>DFD for Kernel Development</title><content type='html'>&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://www.osdl.org/newsroom/graphics/linux_dev_process_final.png"&gt;&lt;img style="float:left; margin:0 10px 10px 0;cursor:pointer; cursor:hand;width: 320px;" src="http://www.osdl.org/newsroom/graphics/linux_dev_process_final.png" border="0" alt="" /&gt;&lt;/a&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/15004445-112289528375644783?l=linwinmac.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://linwinmac.blogspot.com/feeds/112289528375644783/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=15004445&amp;postID=112289528375644783' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/15004445/posts/default/112289528375644783'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/15004445/posts/default/112289528375644783'/><link rel='alternate' type='text/html' href='http://linwinmac.blogspot.com/2005/08/dfd-for-kernel-development.html' title='DFD for Kernel Development'/><author><name>Joseph Antony</name><uri>http://www.blogger.com/profile/01429101852571349228</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-15004445.post-112289520568239849</id><published>2005-08-01T04:18:00.000-07:00</published><updated>2005-08-01T04:20:05.686-07:00</updated><title type='text'>Linux Windows Mac</title><content type='html'>A log of all that I do and learn in lin,win,mac. hope its useful for u too.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/15004445-112289520568239849?l=linwinmac.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://linwinmac.blogspot.com/feeds/112289520568239849/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=15004445&amp;postID=112289520568239849' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/15004445/posts/default/112289520568239849'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/15004445/posts/default/112289520568239849'/><link rel='alternate' type='text/html' href='http://linwinmac.blogspot.com/2005/08/linux-windows-mac.html' title='Linux Windows Mac'/><author><name>Joseph Antony</name><uri>http://www.blogger.com/profile/01429101852571349228</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry></feed>
