<?xml version="1.0" encoding="UTF-8"?>
<?xml-stylesheet type="text/xsl" media="screen" href="/~d/styles/atom10full.xsl"?><?xml-stylesheet type="text/css" media="screen" href="http://feeds.feedburner.com/~d/styles/itemcontent.css"?><feed xmlns="http://www.w3.org/2005/Atom" xmlns:openSearch="http://a9.com/-/spec/opensearch/1.1/" xmlns:georss="http://www.georss.org/georss" xmlns:gd="http://schemas.google.com/g/2005" xmlns:thr="http://purl.org/syndication/thread/1.0" xmlns:feedburner="http://rssnamespace.org/feedburner/ext/1.0" gd:etag="W/&quot;DUEFQXw_fCp7ImA9WhRaE0o.&quot;"><id>tag:blogger.com,1999:blog-6158162095555681501</id><updated>2012-02-15T23:33:30.244-08:00</updated><title>Babbling Brook</title><subtitle type="html" /><link rel="http://schemas.google.com/g/2005#feed" type="application/atom+xml" href="http://sayor.blogspot.com/feeds/posts/default" /><link rel="alternate" type="text/html" href="http://sayor.blogspot.com/" /><author><name>Sayor Basu</name><uri>https://profiles.google.com/104513061758874025905</uri><email>noreply@blogger.com</email><gd:image rel="http://schemas.google.com/g/2005#thumbnail" width="32" height="32" src="//lh4.googleusercontent.com/-UXP8x1a71Fk/AAAAAAAAAAI/AAAAAAAAAAA/GVgZWJf9H2E/s512-c/photo.jpg" /></author><generator version="7.00" uri="http://www.blogger.com">Blogger</generator><openSearch:totalResults>6</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>25</openSearch:itemsPerPage><atom10:link xmlns:atom10="http://www.w3.org/2005/Atom" rel="self" type="application/atom+xml" href="http://feeds.feedburner.com/blogspot/xURsl" /><feedburner:info uri="blogspot/xursl" /><atom10:link xmlns:atom10="http://www.w3.org/2005/Atom" rel="hub" href="http://pubsubhubbub.appspot.com/" /><entry gd:etag="W/&quot;A0UHQXg-eip7ImA9WhZXE0s.&quot;"><id>tag:blogger.com,1999:blog-6158162095555681501.post-7720240275338672981</id><published>2011-05-02T13:47:00.000-07:00</published><updated>2011-05-02T13:47:10.652-07:00</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2011-05-02T13:47:10.652-07:00</app:edited><title>Mac keeps waking up from sleep</title><content type="html">&lt;div dir="ltr" style="text-align: left;" trbidi="on"&gt;(If you are&amp;nbsp; not a &lt;a href="http://www.blogger.com/"&gt;Caffeine&lt;/a&gt;&amp;nbsp; user - I suggest, you stop reading and keep looking for alternative solutions ;-) )&lt;br /&gt;
This could be due to numerous reasons like the Mac connected to a network drive, an USB connected to it which reads data among others. But, the specific issue I had was with this very useful little utility called &lt;a href="http://lightheadsw.com/caffeine/"&gt;Caffeine&lt;/a&gt; - it installs a small little icon which when you activate doesn't let your Mac go to sleep if you have a short time set for the screensaver or for power saving. It comes handy especially when you are maybe reading a long text and the computer just blanks out due to the settings, or have to answer a call (any type ;-) ) suddenly, but do not want the computer to go to sleep and type in the password again!&lt;br /&gt;
&lt;br /&gt;
Now, though it helped me a lot of times - it seems to be the cause of an much more irritating issue - the Mac wakes up after every 2-3 hours for seemingly no reason at all! no attached USB drives, no accidental movement of mouse or keyboard, no low power to the either of the input devices. I say irritating as during the night when its all dark and you are trying to sleep, the login prompt suddenly lights up almost the whole room! (maybe my default settings are to a higher brightness level...but just for the login prompt!)&lt;br /&gt;
I had tried everything, including taking it to the Apple store - though they tried scanning the system for device, memory issues, nothing popped up and they could only suggest reinstalling the OS as the last resort (one of the many reasons I had moved from Windows ;-) )&lt;br /&gt;
&lt;br /&gt;
And suddenly after an apartment move, I accidentally noticed that if the Caffeine was turned off - the computer would not wake up in the middle of the night!&lt;br /&gt;
&lt;br /&gt;
I now have no proof of what happens and how it does that, but I have successfully reproduced the issue and its "remedy" for quite a few days now and while I look up more on why this happens, if anybody else is facing this issue - try turning off the Caffeine before going to sleep!&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6158162095555681501-7720240275338672981?l=sayor.blogspot.com' alt='' /&gt;&lt;/div&gt;
&lt;p&gt;&lt;a href="http://feedads.g.doubleclick.net/~a/NMrKzOJrb8B1xZIMYK0_kggzXIY/0/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/NMrKzOJrb8B1xZIMYK0_kggzXIY/0/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;br/&gt;
&lt;a href="http://feedads.g.doubleclick.net/~a/NMrKzOJrb8B1xZIMYK0_kggzXIY/1/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/NMrKzOJrb8B1xZIMYK0_kggzXIY/1/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;/p&gt;&lt;img src="http://feeds.feedburner.com/~r/blogspot/xURsl/~4/LGJMmqbPxB4" height="1" width="1"/&gt;</content><link rel="replies" type="application/atom+xml" href="http://sayor.blogspot.com/feeds/7720240275338672981/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="http://www.blogger.com/comment.g?blogID=6158162095555681501&amp;postID=7720240275338672981" title="0 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/6158162095555681501/posts/default/7720240275338672981?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/6158162095555681501/posts/default/7720240275338672981?v=2" /><link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/blogspot/xURsl/~3/LGJMmqbPxB4/mac-keeps-waking-up-from-sleep.html" title="Mac keeps waking up from sleep" /><author><name>Sayor Basu</name><uri>https://profiles.google.com/104513061758874025905</uri><email>noreply@blogger.com</email><gd:image rel="http://schemas.google.com/g/2005#thumbnail" width="32" height="32" src="//lh4.googleusercontent.com/-UXP8x1a71Fk/AAAAAAAAAAI/AAAAAAAAAAA/GVgZWJf9H2E/s512-c/photo.jpg" /></author><thr:total>0</thr:total><feedburner:origLink>http://sayor.blogspot.com/2011/05/mac-keeps-waking-up-from-sleep.html</feedburner:origLink></entry><entry gd:etag="W/&quot;AkQFR3s5fSp7ImA9Wx5QGE4.&quot;"><id>tag:blogger.com,1999:blog-6158162095555681501.post-4701716867945525109</id><published>2010-09-06T21:43:00.000-07:00</published><updated>2010-09-06T22:45:16.525-07:00</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2010-09-06T22:45:16.525-07:00</app:edited><title>Making PHP to work on Mac</title><content type="html">Its such a pain that the most simplest of the things are the ones which people 'forget' to mention! (I have been often guilty of same to be truthful)&lt;br /&gt;&lt;br /&gt;I was trying to get Apache, PHP and MySQL working on my Mac and couldn't get a simple 'HelloWorld' in PHP to run on the machine even after supposedly getting everything in place.&lt;br /&gt;&lt;br /&gt;I am not going into installation/settings of the PHP / MySQL Or enabling of Apache as that is presented in most of the sites in a very lucid manner, I will just list the issues I ran into and which didn't have a very clear answer on any of the sites for installation and use of the 'AMP' technology.&lt;br /&gt;&lt;br /&gt;The two things I stumbled over were:&lt;br /&gt;1. Editing the httpd.conf file for enabling PHP&lt;br /&gt;2. Getting the code to run&lt;br /&gt;&lt;br /&gt;(Working on both issues assume you have administrator privileges on the machine and/or can provide credentials when asked for - I had almost made the same mistake of 'forgetting' to mention the simplest thing!)&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;Editing httpd.conf&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;Starting with the most basic info which is 'forgotten' while mentioning editing the conf file to enable PHP is that the file is hidden. Almost everybody will mention that the file is at: /private/etc/apache2/httpd.conf. But, if you are new, you can spend all day trying to search for it. And unless you are well versed with searching and editing the file through the terminal by using something like:&lt;br /&gt;sudo vim /private/etc/apache2/httpd.conf&lt;br /&gt;&lt;br /&gt;The other methods are:&lt;br /&gt;a) Use an App e.g.&lt;a href="http://www.macupdate.com/info.php/id/26729/houdini"&gt; Houdini&lt;/a&gt; to manage hidden files and folder via GUI&lt;br /&gt;b) run the following command on your terminal :&lt;br /&gt;&lt;span style="font-style: italic;"&gt;defaults write com.apple.finder AppleShowAllFiles TRUE&lt;/span&gt;&lt;br /&gt;and then restart the Finder on your machine by using &lt;span style="font-style: italic;"&gt;killall Finder&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;Now, you should be able to see and access all the hidden files and folders through any text editor. The \etc folder being in the 'Macintosh HD'&lt;br /&gt;&lt;br /&gt;Though, I read that BBEdit and similiar other such editors can show hidden files using their 'View' option, I wasn't able to do so till I did the step above (quite possible I wasn't looking properly)&lt;br /&gt;&lt;br /&gt;Now, its much easier to see and uncomment the :&lt;br /&gt;&lt;br /&gt;LoadModule php_module libexec/apache2/libphp5.so&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;Getting the code to run&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;In hindsight, I understand that there are two ways of writing PHP code: the old way - using just "&amp;lt;? Code ?&amp;gt;" and the new way - "&amp;lt;?php Code ?&amp;gt;"&lt;br /&gt;The below section in the php.ini was set to 'On' and the old style worked with this setting - which I could successfully run after trying many other things and being pointed in the right direction &lt;a href="http://discussions.info.apple.com/message.jspa?messageID=11327200"&gt;here&lt;/a&gt; . And, on turning it 'Off', I am able to get the new style  to work. Though as I am only starting out - I have just tried  phpinfo() and echo till now.&lt;br /&gt;&lt;br /&gt;; short_open_tag&lt;br /&gt;;   Default Value: Off&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6158162095555681501-4701716867945525109?l=sayor.blogspot.com' alt='' /&gt;&lt;/div&gt;
&lt;p&gt;&lt;a href="http://feedads.g.doubleclick.net/~a/ZpnZmJbJzcN-SoVRMtelMNrF1Bs/0/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/ZpnZmJbJzcN-SoVRMtelMNrF1Bs/0/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;br/&gt;
&lt;a href="http://feedads.g.doubleclick.net/~a/ZpnZmJbJzcN-SoVRMtelMNrF1Bs/1/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/ZpnZmJbJzcN-SoVRMtelMNrF1Bs/1/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;/p&gt;&lt;img src="http://feeds.feedburner.com/~r/blogspot/xURsl/~4/qvrd14GWPS8" height="1" width="1"/&gt;</content><link rel="replies" type="application/atom+xml" href="http://sayor.blogspot.com/feeds/4701716867945525109/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="http://www.blogger.com/comment.g?blogID=6158162095555681501&amp;postID=4701716867945525109" title="8 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/6158162095555681501/posts/default/4701716867945525109?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/6158162095555681501/posts/default/4701716867945525109?v=2" /><link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/blogspot/xURsl/~3/qvrd14GWPS8/making-php-work-on-mac.html" title="Making PHP to work on Mac" /><author><name>Sayor Basu</name><uri>https://profiles.google.com/104513061758874025905</uri><email>noreply@blogger.com</email><gd:image rel="http://schemas.google.com/g/2005#thumbnail" width="32" height="32" src="//lh4.googleusercontent.com/-UXP8x1a71Fk/AAAAAAAAAAI/AAAAAAAAAAA/GVgZWJf9H2E/s512-c/photo.jpg" /></author><thr:total>8</thr:total><feedburner:origLink>http://sayor.blogspot.com/2010/09/making-php-work-on-mac.html</feedburner:origLink></entry><entry gd:etag="W/&quot;DkYARHw7fyp7ImA9Wx5TFk4.&quot;"><id>tag:blogger.com,1999:blog-6158162095555681501.post-8613531080929627871</id><published>2010-07-31T20:28:00.000-07:00</published><updated>2010-07-31T20:42:25.207-07:00</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2010-07-31T20:42:25.207-07:00</app:edited><title>Alphabets using pointers in C++</title><content type="html">(Disclaimer : Pretty stupid post for someone already well versed in C++ and pointers!)&lt;br /&gt;But, as I am "rediscovering" pointers, data structures in C++, I was somewhat excited to discover this behavior.&lt;br /&gt;When passing a character by reference and incrementing it's value, one can traverse through the alphabet list. I think it's just going through the ASCII list and retrieving the next value.&lt;br /&gt;&lt;br /&gt;Code:&lt;br /&gt;&lt;br /&gt;#include &lt;iostream&gt;&lt;br /&gt;using namespace std;&lt;br /&gt;&lt;br /&gt;int main (int argc, char * const argv[]) &lt;br /&gt;{&lt;br /&gt;  void Alphabets(char*); &lt;br /&gt;  char alphabetsA; &lt;br /&gt;  alphabetsA = 'A'; &lt;br /&gt;  Alphabets (&amp;alphabetsA);&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;void Alphabets(char* a)&lt;br /&gt;{&lt;br /&gt; cout &lt;&lt; endl;&lt;br /&gt; cout &lt;&lt; *a &lt;&lt; endl;&lt;br /&gt; while(*a != 'z' &amp; *a != 'Z') &lt;br /&gt; {&lt;br /&gt;  ++(*a);&lt;br /&gt;  cout &lt;&lt; *a &lt;&lt; endl;&lt;br /&gt; }&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;Result:&lt;br /&gt;&lt;br /&gt;A&lt;br /&gt;B&lt;br /&gt;C&lt;br /&gt;D&lt;br /&gt;E&lt;br /&gt;F&lt;br /&gt;G&lt;br /&gt;H&lt;br /&gt;I&lt;br /&gt;J&lt;br /&gt;K&lt;br /&gt;L&lt;br /&gt;M&lt;br /&gt;N&lt;br /&gt;O&lt;br /&gt;P&lt;br /&gt;Q&lt;br /&gt;R&lt;br /&gt;S&lt;br /&gt;T&lt;br /&gt;U&lt;br /&gt;V&lt;br /&gt;W&lt;br /&gt;X&lt;br /&gt;Y&lt;br /&gt;Z&lt;br /&gt;&lt;br /&gt;The above code can have alphabets in any case and from anywhere, it will just go up till 'z' or 'Z' and then stop.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6158162095555681501-8613531080929627871?l=sayor.blogspot.com' alt='' /&gt;&lt;/div&gt;
&lt;p&gt;&lt;a href="http://feedads.g.doubleclick.net/~a/o24-h8k6B0Yobwpw4C2CeIKks_c/0/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/o24-h8k6B0Yobwpw4C2CeIKks_c/0/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;br/&gt;
&lt;a href="http://feedads.g.doubleclick.net/~a/o24-h8k6B0Yobwpw4C2CeIKks_c/1/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/o24-h8k6B0Yobwpw4C2CeIKks_c/1/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;/p&gt;&lt;img src="http://feeds.feedburner.com/~r/blogspot/xURsl/~4/fKVH7FOYcK0" height="1" width="1"/&gt;</content><link rel="replies" type="application/atom+xml" href="http://sayor.blogspot.com/feeds/8613531080929627871/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="http://www.blogger.com/comment.g?blogID=6158162095555681501&amp;postID=8613531080929627871" title="0 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/6158162095555681501/posts/default/8613531080929627871?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/6158162095555681501/posts/default/8613531080929627871?v=2" /><link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/blogspot/xURsl/~3/fKVH7FOYcK0/alphabets-using-pointers-in-c.html" title="Alphabets using pointers in C++" /><author><name>Sayor Basu</name><uri>https://profiles.google.com/104513061758874025905</uri><email>noreply@blogger.com</email><gd:image rel="http://schemas.google.com/g/2005#thumbnail" width="32" height="32" src="//lh4.googleusercontent.com/-UXP8x1a71Fk/AAAAAAAAAAI/AAAAAAAAAAA/GVgZWJf9H2E/s512-c/photo.jpg" /></author><thr:total>0</thr:total><feedburner:origLink>http://sayor.blogspot.com/2010/07/alphabets-using-pointers-in-c.html</feedburner:origLink></entry><entry gd:etag="W/&quot;CUQHQ3YycSp7ImA9Wx5TFk4.&quot;"><id>tag:blogger.com,1999:blog-6158162095555681501.post-679216637031938324</id><published>2010-07-29T20:00:00.000-07:00</published><updated>2010-07-31T20:28:52.899-07:00</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2010-07-31T20:28:52.899-07:00</app:edited><title>"Microsoft Messenger Daemon" is still in use</title><content type="html">Well, not to sully the Microsoft name - this could happen to any other application on a Mac - replace "Microsoft Messenger" with any other which would not uninstall completely and keep files in the trash.&lt;br /&gt;To begin with, I was having issues with the Microsoft messenger on my iMac. Though it works perfectly well on my MacBookPro it somehow decided it doesn't want to find the system available after a few minutes and sign out.&lt;br /&gt;To uninstall the messenger I decided to try out the "&lt;a href="http://www.freemacsoft.net/AppCleaner/"&gt;AppCleaner&lt;/a&gt;" application for a 'clean' uninstall. But, it still left some files in the Trash and I wasn't able to empty the bin cause the daemon (an part of an application which keeps running in the background where it does not get in the way of other stuff) was still running!&lt;br /&gt;On trying to find out the simplest way to get over this I couldn't get a straight answer quickly, though after doing this it is pretty simple:&lt;br /&gt; 1. Use spotlight or Quicksilver to find Activity Monitor (this is found in the Applications -&gt; Utilities -&gt; Activity Monitor)&lt;br /&gt; 2. On the top bar there is a drop down menu for the selection of type of processes to display. Use the 'All Processes' display (just to be sure)&lt;br /&gt; 3. In the name column there is an entry for "Microsoft Messenger Daemon" -&gt; use the 'Quit Process' button on the top bar to Quit / Force Quit the daemon&lt;br /&gt; 4. Try to empty the Trash&lt;br /&gt;&lt;br /&gt;Now it goes away without any error!&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6158162095555681501-679216637031938324?l=sayor.blogspot.com' alt='' /&gt;&lt;/div&gt;
&lt;p&gt;&lt;a href="http://feedads.g.doubleclick.net/~a/5En5-F9UVGgDsoLTqmzf7xlyX0o/0/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/5En5-F9UVGgDsoLTqmzf7xlyX0o/0/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;br/&gt;
&lt;a href="http://feedads.g.doubleclick.net/~a/5En5-F9UVGgDsoLTqmzf7xlyX0o/1/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/5En5-F9UVGgDsoLTqmzf7xlyX0o/1/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;/p&gt;&lt;img src="http://feeds.feedburner.com/~r/blogspot/xURsl/~4/sV4Z08PbzRc" height="1" width="1"/&gt;</content><link rel="replies" type="application/atom+xml" href="http://sayor.blogspot.com/feeds/679216637031938324/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="http://www.blogger.com/comment.g?blogID=6158162095555681501&amp;postID=679216637031938324" title="5 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/6158162095555681501/posts/default/679216637031938324?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/6158162095555681501/posts/default/679216637031938324?v=2" /><link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/blogspot/xURsl/~3/sV4Z08PbzRc/microsoft-messenger-daemon-is-till-in.html" title="&quot;Microsoft Messenger Daemon&quot; is still in use" /><author><name>Sayor Basu</name><uri>https://profiles.google.com/104513061758874025905</uri><email>noreply@blogger.com</email><gd:image rel="http://schemas.google.com/g/2005#thumbnail" width="32" height="32" src="//lh4.googleusercontent.com/-UXP8x1a71Fk/AAAAAAAAAAI/AAAAAAAAAAA/GVgZWJf9H2E/s512-c/photo.jpg" /></author><thr:total>5</thr:total><feedburner:origLink>http://sayor.blogspot.com/2010/07/microsoft-messenger-daemon-is-till-in.html</feedburner:origLink></entry><entry gd:etag="W/&quot;DEYESHg8fSp7ImA9WxNTGE4.&quot;"><id>tag:blogger.com,1999:blog-6158162095555681501.post-548296465650198519</id><published>2009-08-20T00:09:00.000-07:00</published><updated>2009-08-20T23:28:29.675-07:00</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2009-08-20T23:28:29.675-07:00</app:edited><title>Moving to planet Mac</title><content type="html">I had assumed people working on Microsoft technologies wouldn't even think about looking  at a mac, let alone work on it. But, as I have found to my surprise many actually own one and use it regularly! and even devs who almost earn their living using Windows.&lt;br /&gt;Well, to be frank I always admired the way the mac machines looked - the first attraction is always physical ;). The notebooks alone were worth drooling over hours at end. I had not got beyond the looks to the actual OS, never actually believed in very stable, virus free and other goody stuff platform - its an operating system, how much ever good it is - there have to be issues....its inherent in any piece of software. And virus free? secure? with most (admit don't have any data to quote away) of the users using Windows maybe due to ease of availability (read rampant piracy) or non dependency on a particular architecture till only a few years back does seem to interest malicious entities - greater harm with same or lesser effort!&lt;br /&gt;What hooked me to a mac? the iPhone...&lt;br /&gt;I always wanted one since the first version was released, but was given sound advice to wait till an updated version came out to let Apple improve on its mistakes. I got my 3G in the beginning of this year finally after a long wait and this was instantly my best friend. I could always get back home if I wandered, plan to catch the correct train, read and respond to my mails without being in front of my computer....and well a lot more stuff I am sure which could be found in more detail all over the place.&lt;br /&gt;So, the iPhone, apart from being good looking - was very user friendly, I figured the mac also couldnt be very bad, surely not just good looks and nothing inside ;)&lt;br /&gt;I had to get rid of my clunky old 15" and had my eyes fixed on the 13" aluminum mac book pro and after much deliberation and research I walked into the Apple store yesterday.&lt;br /&gt;My wait was a little long, owing to the fact I got in line for getting the iPhone 3G S which I didnt realise for quite sometime, duh! On realizing my folly - I was able to find an representative available almost instantaneously, though the store was quite full. Had almost already made up my mind - but still got some things cleared up - though he let me know of the different stuff available which would make my initial cost go way up - it was always more of an information than egging me to sign up for them. He infact guided me off quite a few stuff - which would not be actually needed like buying a 'higher' configured notebook for one or upgrading memory right away. I really liked the frank and unbiased approach.At one point we were discussing if I am eligible for the $9.95 upgrade to SnowLeopard and he actually went online and checked the details with me about the upgrade - I had just read about it briefly and he wasnt very sure about it. though felt great to be right and get that upgrade, I liked that he took the time out (I had already paid for my notebook) to look into it.&lt;br /&gt;Configuring to use it for the first time wasnt much of an issue but moving around is still a little bit of excitement and I keep learning new stuff every minute. I guess I could look at those tutorial videos, but this is more fun, discovering things on my own :-)&lt;br /&gt;I love the notebook not only for being very light and very very sleek - its backlit keys are a kind of necessity. Now I can write my own apps for my iPhone and who knows may try and sell a few if I get it right ;-)&lt;br /&gt;I have installed the Xcode and registered for the free iPhone developer program to download the iPhone SDK, but it looks huge! or maybe I am going the wrong way...&lt;br /&gt;There is one thing I havent quite got used to right now is as soon as I try to launch Firefox using the shortcut on the dock - I get this Firefox 'drive' on my desktop - not sure whats wrong and how to get rid of the thing as have to eject it after quitting Firefox.&lt;br /&gt;I have planned to learn about objective-C and Cocoa touch as that's what I'd need to know for creating one of those apps ;-)&lt;br /&gt;And then there is always mono on which I could create .Net applications - so have a good option to keep using C#, even without using BootCamp!&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6158162095555681501-548296465650198519?l=sayor.blogspot.com' alt='' /&gt;&lt;/div&gt;
&lt;p&gt;&lt;a href="http://feedads.g.doubleclick.net/~a/7SVlSw965jtJ0NlgMgugBdJuL6g/0/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/7SVlSw965jtJ0NlgMgugBdJuL6g/0/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;br/&gt;
&lt;a href="http://feedads.g.doubleclick.net/~a/7SVlSw965jtJ0NlgMgugBdJuL6g/1/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/7SVlSw965jtJ0NlgMgugBdJuL6g/1/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;/p&gt;&lt;img src="http://feeds.feedburner.com/~r/blogspot/xURsl/~4/A6huZ85dzRE" height="1" width="1"/&gt;</content><link rel="replies" type="application/atom+xml" href="http://sayor.blogspot.com/feeds/548296465650198519/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="http://www.blogger.com/comment.g?blogID=6158162095555681501&amp;postID=548296465650198519" title="0 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/6158162095555681501/posts/default/548296465650198519?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/6158162095555681501/posts/default/548296465650198519?v=2" /><link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/blogspot/xURsl/~3/A6huZ85dzRE/moving-to-planet-mac.html" title="Moving to planet Mac" /><author><name>Sayor Basu</name><uri>https://profiles.google.com/104513061758874025905</uri><email>noreply@blogger.com</email><gd:image rel="http://schemas.google.com/g/2005#thumbnail" width="32" height="32" src="//lh4.googleusercontent.com/-UXP8x1a71Fk/AAAAAAAAAAI/AAAAAAAAAAA/GVgZWJf9H2E/s512-c/photo.jpg" /></author><thr:total>0</thr:total><feedburner:origLink>http://sayor.blogspot.com/2009/08/moving-to-planet-mac.html</feedburner:origLink></entry><entry gd:etag="W/&quot;C0YERnY_fSp7ImA9WxRTE04.&quot;"><id>tag:blogger.com,1999:blog-6158162095555681501.post-6312581525146035453</id><published>2008-08-26T06:15:00.000-07:00</published><updated>2008-09-01T21:51:47.845-07:00</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2008-09-01T21:51:47.845-07:00</app:edited><title>Report Viewer in WPF application</title><content type="html">&lt;div&gt;I have started working on a WPF application which has to display some data in a graphical manner. Instead of using the different available charting tools, I decided to use the report facility inbuilt in the Visual Studio to display .&lt;br /&gt;Visual Studio allows for binding objects as the report's data source to create an local report. On trying to achieve my purpose, I came across a few difficulties and on spending some time through various posts and forums I got the basic direction, so thought of consolidating my learning and putting it up.&lt;/div&gt;&lt;br /&gt;&lt;div&gt;The problems I came across were as folows:&lt;/div&gt;&lt;br /&gt;&lt;ul&gt;&lt;br /&gt;&lt;li&gt;Report viewer is not available as a native control in WPF applications, and therefore it could not be placed in the application.&lt;/li&gt;&lt;br /&gt;&lt;li&gt;Binding the data source (the object) to the report. &lt;/li&gt;&lt;/ul&gt;&lt;br /&gt;&lt;p&gt;To solve these couple of issues, I went about it in the following way:&lt;/p&gt;&lt;br /&gt;&lt;ul&gt;&lt;br /&gt;&lt;li&gt;Since the report viewer is not available on WPF, but on Windows Forms - I used WindowsFormsHost to integrate the report viewer control with the WPF form. WindowsFormsHost is the implementation from Microsoft, which would have other wise required me to derive a class from the HwndHost base class, to add a HWND to my WPF application to host Windows Form control.&lt;br /&gt;&lt;/li&gt;&lt;/ul&gt;&lt;br /&gt;&lt;ol&gt;&lt;br /&gt;&lt;li&gt;I added the following references to my project: Microsoft.ReportViewer.Common, Microsoft.ReportViewer.WinForms, System.Windows.Forms, WindowsFormIntegration.&lt;/li&gt;&lt;br /&gt;&lt;li&gt;Create an object of ReportViewer and specify the processing mode as local, the report path (the .rdlc path)&lt;/li&gt;&lt;br /&gt;&lt;li&gt;Create an object of the ReportDataSource with the name of the data source and the object which contains the data as its parameters.&lt;/li&gt;&lt;br /&gt;&lt;li&gt;Add the data source to the Local report created.&lt;/li&gt;&lt;br /&gt;&lt;li&gt;Refresh the report.&lt;/li&gt;&lt;br /&gt;&lt;li&gt;Create WindowsFormsHost object which is used for inserting the report to the control on the WPF form.&lt;/li&gt;&lt;/ol&gt;Sample Code Snippet (Window1.xaml.cs):&lt;br /&gt;&lt;br /&gt;           &lt;span style="color: rgb(102, 204, 204);font-family:times new roman;" &gt;//Merchant is the class used to enter new product names and their prices.&lt;/span&gt;&lt;br /&gt;           &lt;span style="font-style: italic; color: rgb(51, 102, 255);font-family:lucida grande;" &gt;Merchant merchant = new Merchant();&lt;/span&gt; &lt;span style="font-style: italic; color: rgb(51, 102, 255);font-family:lucida grande;" &gt;            List&lt;product&gt; products = new List&lt;product&gt;();&lt;/product&gt;&lt;/product&gt;&lt;/span&gt; &lt;span style="font-style: italic; color: rgb(51, 102, 255);font-family:lucida grande;" &gt;            products = merchant.GetProducts();&lt;/span&gt;   &lt;span style="font-style: italic; color: rgb(51, 102, 255);font-family:lucida grande;" &gt;            WindowsFormsHost host = new WindowsFormsHost();&lt;/span&gt;  &lt;span style="font-style: italic; color: rgb(51, 102, 255);font-family:lucida grande;" &gt;            Microsoft.Reporting.WinForms.ReportViewer reportViewer = &lt;/span&gt; &lt;span style="font-style: italic; color: rgb(51, 102, 255);font-family:lucida grande;" &gt;            new Microsoft.Reporting.WinForms.ReportViewer();&lt;/span&gt;&lt;br /&gt;  &lt;span style="font-family:times new roman;"&gt;           &lt;/span&gt;&lt;span style="color: rgb(102, 204, 204);font-family:times new roman;" &gt; //Specifying local processing mode for the ReportViewer.&lt;/span&gt; &lt;span style="font-style: italic; color: rgb(51, 102, 255);font-family:lucida grande;" &gt;            reportViewer.ProcessingMode = ProcessingMode.Local;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(102, 204, 204);font-family:times new roman;" &gt;            //Specifying the location of the report definition file.&lt;/span&gt; &lt;span style="font-style: italic; color: rgb(51, 102, 255);font-family:lucida grande;" &gt;            reportViewer.LocalReport.ReportPath = "..\\..\\ProductReport.rdlc";&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;           &lt;span style="color: rgb(102, 204, 204);font-family:times new roman;" &gt;//Creating a new ReportDataSource with the name of the DataSource and the object&lt;/span&gt; &lt;span style="color: rgb(102, 204, 204);font-family:times new roman;" &gt;            // which is to be used as the DataSource.&lt;/span&gt; &lt;span style="font-style: italic; color: rgb(51, 102, 255);font-family:lucida grande;" &gt;            ReportDataSource ds = new ReportDataSource("ReportViewer_Product", products);&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(102, 204, 204);font-family:times new roman;" &gt;            //Adding the ReportDataSource to the DataSoure of the ReportViewer&lt;/span&gt; &lt;span style="font-style: italic; color: rgb(51, 102, 255);font-family:lucida grande;" &gt;            reportViewer.LocalReport.DataSources.Add(ds);&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(102, 204, 204);font-family:times new roman;" &gt;            //Causes the current report in the Report Viewer to be processed and rendered.&lt;/span&gt; &lt;span style="font-style: italic; color: rgb(51, 102, 255);font-family:lucida grande;" &gt;            reportViewer.RefreshReport();&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(102, 204, 204);font-family:times new roman;" &gt;            //Sets the child control hosted by the WindowsFormsHost element.&lt;/span&gt; &lt;span style="font-style: italic; color: rgb(51, 102, 255);font-family:lucida grande;" &gt;            host.Child = reportViewer;&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(102, 204, 204);font-family:times new roman;" &gt;            //Add the WindowsFormsHost element to the Grid in the Window1.xaml&lt;/span&gt; &lt;span style="font-style: italic; color: rgb(51, 102, 255);font-family:lucida grande;" &gt;            reportGrid.Children.Add(host);&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;The final result will look something like this, other items can also be used instead of a table which has been placed here:&lt;br /&gt;&lt;br/&gt;&lt;br /&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://3.bp.blogspot.com/_lkbMMtiwH9c/SLw2h7SBElI/AAAAAAAAAAY/66RTS2hzNSw/s1600-h/ReportViewerScreenShot.jpg"&gt;&lt;img style="margin: 0px auto 10px; display: block; text-align: center; cursor: pointer;" src="http://3.bp.blogspot.com/_lkbMMtiwH9c/SLw2h7SBElI/AAAAAAAAAAY/66RTS2hzNSw/s320/ReportViewerScreenShot.jpg" alt="" id="BLOGGER_PHOTO_ID_5241124022829257298" border="0" /&gt;&lt;/a&gt;&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/6158162095555681501-6312581525146035453?l=sayor.blogspot.com' alt='' /&gt;&lt;/div&gt;
&lt;p&gt;&lt;a href="http://feedads.g.doubleclick.net/~a/ZFKam6qSG7cqnZgFgqB0eX-QsE0/0/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/ZFKam6qSG7cqnZgFgqB0eX-QsE0/0/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;br/&gt;
&lt;a href="http://feedads.g.doubleclick.net/~a/ZFKam6qSG7cqnZgFgqB0eX-QsE0/1/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/ZFKam6qSG7cqnZgFgqB0eX-QsE0/1/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;/p&gt;&lt;img src="http://feeds.feedburner.com/~r/blogspot/xURsl/~4/FPJAGLym-bk" height="1" width="1"/&gt;</content><link rel="replies" type="application/atom+xml" href="http://sayor.blogspot.com/feeds/6312581525146035453/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="http://www.blogger.com/comment.g?blogID=6158162095555681501&amp;postID=6312581525146035453" title="15 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/6158162095555681501/posts/default/6312581525146035453?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/6158162095555681501/posts/default/6312581525146035453?v=2" /><link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/blogspot/xURsl/~3/FPJAGLym-bk/report-viewer-in-wpf-application.html" title="Report Viewer in WPF application" /><author><name>Sayor Basu</name><uri>https://profiles.google.com/104513061758874025905</uri><email>noreply@blogger.com</email><gd:image rel="http://schemas.google.com/g/2005#thumbnail" width="32" height="32" src="//lh4.googleusercontent.com/-UXP8x1a71Fk/AAAAAAAAAAI/AAAAAAAAAAA/GVgZWJf9H2E/s512-c/photo.jpg" /></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="http://3.bp.blogspot.com/_lkbMMtiwH9c/SLw2h7SBElI/AAAAAAAAAAY/66RTS2hzNSw/s72-c/ReportViewerScreenShot.jpg" height="72" width="72" /><thr:total>15</thr:total><feedburner:origLink>http://sayor.blogspot.com/2008/08/report-viewer-in-wpf-application.html</feedburner:origLink></entry></feed>

