<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	xmlns:georss="http://www.georss.org/georss" xmlns:geo="http://www.w3.org/2003/01/geo/wgs84_pos#" xmlns:media="http://search.yahoo.com/mrss/"
	>

<channel>
	<title>Software for humans</title>
	<atom:link href="http://softwareforhumans.wordpress.com/feed/" rel="self" type="application/rss+xml" />
	<link>http://softwareforhumans.wordpress.com</link>
	<description>Because software should make our life easier</description>
	<lastBuildDate>Sat, 03 Oct 2009 04:38:42 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.com/</generator>
<cloud domain='softwareforhumans.wordpress.com' port='80' path='/?rsscloud=notify' registerProcedure='' protocol='http-post' />
<image>
		<url>http://s2.wp.com/i/buttonw-com.png</url>
		<title>Software for humans</title>
		<link>http://softwareforhumans.wordpress.com</link>
	</image>
	<atom:link rel="search" type="application/opensearchdescription+xml" href="http://softwareforhumans.wordpress.com/osd.xml" title="Software for humans" />
	<atom:link rel='hub' href='http://softwareforhumans.wordpress.com/?pushpress=hub'/>
		<item>
		<title>How to save query from oracle in HTML</title>
		<link>http://softwareforhumans.wordpress.com/2009/10/03/how-to-save-query-from-oracle-in-html/</link>
		<comments>http://softwareforhumans.wordpress.com/2009/10/03/how-to-save-query-from-oracle-in-html/#comments</comments>
		<pubDate>Sat, 03 Oct 2009 04:38:16 +0000</pubDate>
		<dc:creator>Alex</dc:creator>
				<category><![CDATA[Tips & Tricks]]></category>
		<category><![CDATA[Oracle]]></category>
		<category><![CDATA[Sql]]></category>

		<guid isPermaLink="false">http://softwareforhumans.wordpress.com/?p=31</guid>
		<description><![CDATA[Here&#8217;s some tricks that can help in daily work with oracle. Very often, I need to extract query result from Oracle, or to be more precise ask people to send me query results. It is quite easy to save a file, that&#8217;s very true but the formatting is excruciatingly unreadable. There&#8217;s a flurry of tools [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=softwareforhumans.wordpress.com&amp;blog=9696796&amp;post=31&amp;subd=softwareforhumans&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Here&#8217;s some tricks that can help in daily work with oracle. Very often, I need to extract query result from Oracle, or to be more  precise ask people to send me query results. It is quite easy to save a file, that&#8217;s very true but the formatting is excruciatingly unreadable. There&#8217;s a flurry of  tools that can allow you to export your query, but sometimes the only things you have at end because you&#8217;re connecting to production environment is a good old Sql*Plus.</p>
<p>Here&#8217;s the trick. Connect to your DB using Sql*Plus and used the following actions:</p>
<pre>SET markup HTML onspool test.htmlSELECT *  FROM mytable;spool offSET markup HTML off</pre>
<p>When you type command &#8220;<em>SET markup HTML on</em>&#8220;, your command prompt will look &#8220;funky&#8221; don&#8217;t worry it is perfectly normal. After you exit you will find a nice html file. Certainly not the best format, but much more readable than plain 80 column text.</p>
<p>Here&#8217;s some tricks that can help in daily work with oracle. Very often, I need to extract query result from Oracle, or to be more  precise ask people to send me query results. It is quite easy to save a file, that&#8217;s very true but the formatting is excruciatingly unreadable. There&#8217;s a flurry of  tools that can allow you to export your query, but sometimes the only things you have at end because you&#8217;re connecting to production environment is a good old Sql*Plus.</p>
<p>Here&#8217;s the trick. Connect to your DB using Sql*Plus and used the following actions:</p>
<pre>SET markup HTML on

spool test.html

SELECT *  FROM mytable;

spool off

SET markup HTML off</pre>
<p>When you type command &#8220;<em>SET markup HTML on</em>&#8220;, your command prompt will look &#8220;funky&#8221; don&#8217;t worry it is perfectly normal. After you exit you will find a nice html file. Certainly not the best format, but much more readable than plain 80 column text.</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/softwareforhumans.wordpress.com/31/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/softwareforhumans.wordpress.com/31/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/softwareforhumans.wordpress.com/31/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/softwareforhumans.wordpress.com/31/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/softwareforhumans.wordpress.com/31/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/softwareforhumans.wordpress.com/31/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/softwareforhumans.wordpress.com/31/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/softwareforhumans.wordpress.com/31/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/softwareforhumans.wordpress.com/31/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/softwareforhumans.wordpress.com/31/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/softwareforhumans.wordpress.com/31/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/softwareforhumans.wordpress.com/31/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/softwareforhumans.wordpress.com/31/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/softwareforhumans.wordpress.com/31/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=softwareforhumans.wordpress.com&amp;blog=9696796&amp;post=31&amp;subd=softwareforhumans&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://softwareforhumans.wordpress.com/2009/10/03/how-to-save-query-from-oracle-in-html/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/73b34927f93107b8f704f2c5dfb4386c?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">Alex</media:title>
		</media:content>
	</item>
		<item>
		<title>GTD Outlook: create email to task macro</title>
		<link>http://softwareforhumans.wordpress.com/2009/10/03/gtd-outlook-create-email-to-task-macro/</link>
		<comments>http://softwareforhumans.wordpress.com/2009/10/03/gtd-outlook-create-email-to-task-macro/#comments</comments>
		<pubDate>Sat, 03 Oct 2009 04:36:52 +0000</pubDate>
		<dc:creator>Alex</dc:creator>
				<category><![CDATA[Productivity & Personnal Development]]></category>
		<category><![CDATA[GTD]]></category>
		<category><![CDATA[Outlook]]></category>

		<guid isPermaLink="false">http://softwareforhumans.wordpress.com/?p=28</guid>
		<description><![CDATA[On a daily basis, I usually receive a lot of emails. Some I will never read because they don&#8217;t concern me, but for most of those emails, I need to answer. I sometime don&#8217;t have time to answer right away. I used to put it in a folder, or leave the email unread, so that [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=softwareforhumans.wordpress.com&amp;blog=9696796&amp;post=28&amp;subd=softwareforhumans&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>On a daily basis, I usually receive a lot of emails. Some I will never read because they don&#8217;t concern me, but for most of those emails, I need to answer. I sometime don&#8217;t have time to answer right away. I used to put it in a folder, or leave the email unread, so that I remember that i need to do something about it. But when I was getting reaaally a lot of emails, that wasn&#8217;t really working. It&#8217;s wasn&#8217;t really convenient. Not only it isn&#8217;t convenient,</p>
<p>Similarly I send email to people, but &#8230; other people are busy, or can&#8217;t or simply won&#8217;t answer. So you have to chase them. But again that means you have to remember to chase them.</p>
<p>That makes a lot of things to remember, on top of the usual things you have to do. It wasn&#8217;t really efficient, which is bad enough, but it also hampered my productivity.</p>
<p>So whenever I receive an email I need to answer, or send an email and make sure I receive an answer in the timeframe I expect (or chase that person), I started to create an outlook task for each of those email. This way I don&#8217;t have to clutter my mind with little things, and leave room for other more important things to remember. I suppose was the result of reading those article about GTD and productivity.</p>
<p>It worked for some time but &#8230; I rapidly found it boring. So I&#8217;ve made a little macro in outlook. A a very simple one indeed. I just select an mail, and launch a macro and it pops up the create task window, with the selected email automatically pasted in copy. I only have to set the reminder date.</p>
<p>In order to do that, I used the following a macro in outlook:</p>
<pre style="font:normal normal normal 12px/18px Consolas, Monaco, 'Courier New', Courier, monospace;">Sub MakeTaskFromMail(MyMail As Outlook.MailItem)
   Dim objTask As Outlook.TaskItem
   Set objTask = Application.CreateItem(olTaskItem)
   With objTask
       .Subject = MyMail.Subject
       .DueDate = MyMail.SentOn
   End With

   objTask.Attachments.Add MyMail
   objTask.Display

End Sub

Function GetCurrentItem() As Object
   Dim objApp As Outlook.Application

   Set objApp = Application
   On Error Resume Next
   Select Case TypeName(objApp.ActiveWindow)
       Case "Explorer"
           Set GetCurrentItem = objApp.ActiveExplorer.Selection.Item(1)
       Case "Inspector"
           Set GetCurrentItem = objApp.ActiveInspector.CurrentItem
       Case Else
           ' anything else will result in an error, which is
           ' why we have the error handler above
   End Select

   Set objApp = Nothing
End Function

Sub MakeTaskFromCurrentMail()
   Dim currentMail As Outlook.MailItem
   Set currentMail = GetCurrentItem()
   MakeTaskFromMail currentMail
End Sub</pre>
<p>Now that works pretty well, but since I really lazy and like things to go smoothly, I created a little button that calls the macros, and that the final touch (one could even associate a shortcut).</p>
<p>That simple trick really eased my life and now i almost never forget to answer an email or chase someone to get my answer. Hopefully this will help others.</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/softwareforhumans.wordpress.com/28/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/softwareforhumans.wordpress.com/28/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/softwareforhumans.wordpress.com/28/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/softwareforhumans.wordpress.com/28/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/softwareforhumans.wordpress.com/28/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/softwareforhumans.wordpress.com/28/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/softwareforhumans.wordpress.com/28/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/softwareforhumans.wordpress.com/28/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/softwareforhumans.wordpress.com/28/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/softwareforhumans.wordpress.com/28/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/softwareforhumans.wordpress.com/28/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/softwareforhumans.wordpress.com/28/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/softwareforhumans.wordpress.com/28/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/softwareforhumans.wordpress.com/28/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=softwareforhumans.wordpress.com&amp;blog=9696796&amp;post=28&amp;subd=softwareforhumans&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://softwareforhumans.wordpress.com/2009/10/03/gtd-outlook-create-email-to-task-macro/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/73b34927f93107b8f704f2c5dfb4386c?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">Alex</media:title>
		</media:content>
	</item>
		<item>
		<title>What is a core file and how to generate one</title>
		<link>http://softwareforhumans.wordpress.com/2009/10/03/what-is-a-core-file-and-how-to-generate-one/</link>
		<comments>http://softwareforhumans.wordpress.com/2009/10/03/what-is-a-core-file-and-how-to-generate-one/#comments</comments>
		<pubDate>Sat, 03 Oct 2009 04:06:03 +0000</pubDate>
		<dc:creator>Alex</dc:creator>
				<category><![CDATA[Tips & Tricks]]></category>
		<category><![CDATA[Unix]]></category>
		<category><![CDATA[Core dump]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[Solaris]]></category>
		<category><![CDATA[Windows]]></category>

		<guid isPermaLink="false">http://softwareforhumans.wordpress.com/?p=11</guid>
		<description><![CDATA[In this article we&#8217;re going to discuss about core files, what are their use, and how to get them, and what we can do with them. What is a core file and how to get one Starting from the beginning, let&#8217;s first define what is a core file. A core file, also called core dump [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=softwareforhumans.wordpress.com&amp;blog=9696796&amp;post=11&amp;subd=softwareforhumans&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>In this article we&#8217;re going to discuss about core files, what are their use, and how to get them, and what we can do with them.</p>
<h1>What is a core file and how to get one</h1>
<p>Starting from the beginning, let&#8217;s first define what is a core file. A core file, also called <em>core dump</em> is basically a dump, or image of the memory of a computer at a given time. It&#8217;s like a photo of everything in memory of your computer at the time of the creation of the core, the registry the stack and heap, pretty much every live data. Usually people will say &#8220;Oh S&#8230;t the software has cored again&#8221;. It&#8217;s usually not a good sign.</p>
<p>In most of case the generation of a core dump is involuntary,  and is the result of a *violent* crash of a software. Amongst the common cause we can cite memory corruption, stack overflow, lack of memory or even device failure.</p>
<p>Despite the fact that a core file usually means you&#8217;ve got a serious bug in your software, they are tremendously useful. Since they are a snapshot photo of the memory at the time of the crash, this can help a lot to figure out what happened. With the help of a core file you can explore the exact conditions at the time of the crash.</p>
<p>Does it mean that core file are the paramount of debugging, the panacea to bug, certainly not. For instance in the case of memory corruption, by the time you get the core file, it&#8217;s already too late, the corruption happened seconds before &#8230; which means ages for a computer.</p>
<h1>What to do with a core file ?</h1>
<p>Now if you get a core file that&#8217;s good. You can use a debugger that&#8217;s able to use core on the systems the core was generated. Each system (Windows, Linux, Solaris &#8230;) has its own debugger, and each has its own function. So depending the system you&#8217;re using you will have to search for the appropriate tool. Here&#8217;s the list of what tools you can use to debug cores:</p>
<ul>
<li>Solaris : dbx</li>
<li>Linux: gdb</li>
<li>Mac OS: gdb</li>
</ul>
<p>This list is by no mean complete since each system boast different tools. Windows is absent from the list because its a it different from other systems in that aspect. For more information about core dump equivalent on windows called <strong><em>minidump</em></strong>, you can check <a title="Minidump" href="http://support.microsoft.com/kb/315263" target="_blank">here</a>.</p>
<h1 style="font-size:2em;">How to generate a core and why ?</h1>
<p>As we&#8217;ve said above, core dumps are generally the result of a violent crash, so why would one want to force the generation of a core dump ? The answer is to try to investigate dead lock or process hanging issues.  When your process is really frozen, you will have to kill it anyway, but if you do it right you can at the same time generate a core dump that will help you later on with your investigation.</p>
<p>You have two ways to generate a core:</p>
<ul>
<li><strong>gcore</strong> <em>&lt;pid&gt;</em>: This command will generate a core file for a live process but leave the process running</li>
<li><strong>kill -5 </strong><em>&lt;pid&gt;</em>:  as the name of the command, this will kill the process but also generate a core of your application</li>
</ul>
<p>Additionally <strong>before</strong> using the kill command you may want to use the command <strong>pstack</strong> &lt;pid&gt;, which will generate a text file that constains the list of all process stack (and each thread of your process) currently running. Executing the command a couple of time before actually killing your application can prove useful, since it&#8217;ll give you a better image of what thead is active and doing what than a simple core would.</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/softwareforhumans.wordpress.com/11/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/softwareforhumans.wordpress.com/11/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/softwareforhumans.wordpress.com/11/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/softwareforhumans.wordpress.com/11/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/softwareforhumans.wordpress.com/11/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/softwareforhumans.wordpress.com/11/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/softwareforhumans.wordpress.com/11/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/softwareforhumans.wordpress.com/11/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/softwareforhumans.wordpress.com/11/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/softwareforhumans.wordpress.com/11/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/softwareforhumans.wordpress.com/11/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/softwareforhumans.wordpress.com/11/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/softwareforhumans.wordpress.com/11/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/softwareforhumans.wordpress.com/11/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=softwareforhumans.wordpress.com&amp;blog=9696796&amp;post=11&amp;subd=softwareforhumans&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://softwareforhumans.wordpress.com/2009/10/03/what-is-a-core-file-and-how-to-generate-one/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/73b34927f93107b8f704f2c5dfb4386c?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">Alex</media:title>
		</media:content>
	</item>
	</channel>
</rss>
