<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
    <title>blogs.4point.com</title>
    <link rel="alternate" type="text/html" href="http://blogs.4point.com/" />
    <link rel="self" type="application/atom+xml" href="http://blogs.4point.com/atom.xml" />
    <id>tag:blogs.4point.com,2008-10-17://11</id>
    <updated>2009-01-08T22:16:39Z</updated>
    <subtitle>Blogs About LiveCycle, Flex, Central, and More</subtitle>
    <generator uri="http://www.sixapart.com/movabletype/">Movable Type Pro 4.25</generator>


<entry>
    <title>SpaceSniffer: Italian for &quot;Ridiculously Good Freeware Disk Analyzer&quot;</title>
    <link rel="alternate" type="text/html" href="http://blogs.4point.com/taylor.bastien/2010/02/spacesniffer-italian-for-ridiculously-good-freeware-disk-analyzer.html" />
    <id>tag:blogs.4point.com,2010:/taylor.bastien//3.136</id>

    <published>2010-02-21T21:09:16Z</published>
    <updated>2010-02-21T22:01:08Z</updated>

    <summary>Like many other people, I suspect, no matter how big my hard drive is, I somehow find a way to fill it up. Even if you have enough space, with the ridiculously large hard drives on the market these days,...</summary>
    <author>
        <name>Taylor Bastien</name>
        
    </author>
    
    
    <content type="html" xml:lang="en" xml:base="http://blogs.4point.com/taylor.bastien/">
        <![CDATA[Like many other people, I suspect, no matter how big my hard drive is, I somehow find a way to fill it up. Even if you have enough space, with the ridiculously large hard drives on the market these days, it can quickly become difficult for a human brain to recall everything that's on there.<br /><br />In recent months, I've been slowly squeezed out of disk space by Torrent downloads and various installs (all of them necessary, of course.) On a number of occasions, I've tried going manually through my disk, deleting/uninstalling things as I go, but it really hasn't freed up much space. I needed help to find out what was leeching so much of my precious Gigs.<br /><br /><b>Enter SpaceSniffer</b><br /><span class="mt-enclosure mt-enclosure-image" style="display: inline;"><img alt="Space Sniffer Top Level Scan" src="http://blogs.4point.com/taylor.bastien/2010/02/21/SnifferCDrive.jpg" class="mt-image-right" style="margin: 0pt 0pt 20px 20px; float: right;" height="310" width="400" /></span><br />This weekend, I finally finished Half Life 2 (awesome!) after a long hiatus (my latest saved game was from April 2009.) I have had that game and the separate Episode Pack for well over a year but with the move to <a href="http://www.4point.com/">4Point</a> and all the exciting things going on I haven't had much time to sit at my PC for anything else than work.<br /><br />Well, long story short, I finished off Half Life 2 this afternoon but had no room left to install the Episode Pack. Enter <a href="http://www.uderzo.it/main_products/space_sniffer/index.html">SpaceSniffer</a>, a little Java-based freeware app that analyzes the used space on your Hard Drive and presents it in a visual way, in real-time no less. Now I finally know where all my Gigs have gone.<br /><br /><b>Intuitive and -- dare I say -- Kinda <i>Fun</i></b><br /><span class="mt-enclosure mt-enclosure-image" style="display: inline;"><img alt="Space Sniffer of my Games Directory" src="http://blogs.4point.com/taylor.bastien/2010/02/21/SnifferGames.jpg" class="mt-image-right" style="margin: 0pt 0pt 20px 20px; float: right;" height="282" width="400" /></span><br /><a href="http://www.uderzo.it/main_products/space_sniffer/index.html">SpaceSniffer</a> crawls through your directories, one at a time, doing an analysis of the directory tree and presenting its findings as it goes. It's a little difficult to describe how it looks, but the UI is slowly sub-divided into boxes representing the folders on the drive, from the top-level and on down. As the process crawls deeper into the tree and the visual boxes get smaller, SpaceSniffer begins to hide the overwhelming details, allowing you to concentrate on what's relevant. If you ever want to see those hidden details, you can just click on a box and it will be divided into sub-boxes representing it's contents. <i>très cool.<br /><br /></i>So, if you are running out of disk space, or would just like to do a little disk clean-up, this is the program you've been looking for. SpaceSniffer runs on Windows 2000, XP, Vista and WIndows 7.<br /><div><br />Thumbs up from here to Uderzo Umberto for creating such a polished, useful and focused piece of software. <i>Grazie mille!</i><br /></div><div><br /></div>]]>
        
    </content>
</entry>

<entry>
    <title>Your Subversion Repository - Treat it with Respect</title>
    <link rel="alternate" type="text/html" href="http://blogs.4point.com/sarah.samplonius/2010/02/subversion-repository---yes-maam.html" />
    <id>tag:blogs.4point.com,2010:/sarah.samplonius//8.130</id>

    <published>2010-02-05T23:47:54Z</published>
    <updated>2010-02-06T21:44:35Z</updated>

    <summary>I learned a lesson this week: it&apos;s called good manners when it comes to the subversion repository. Apparently it does not like it when you just randomly delete files on your local system, add in new ones, and then try...</summary>
    <author>
        <name>Sarah Samplonius</name>
        
    </author>
    
        <category term="Coda" scheme="http://www.sixapart.com/ns/types#category" />
    
    
    <content type="html" xml:lang="en" xml:base="http://blogs.4point.com/sarah.samplonius/">
        <![CDATA[I learned a lesson this week: it's called good manners when it comes to the subversion repository. Apparently it does not like it when you just randomly delete files on your local system, add in new ones, and then try to check them in. It throws up its hands in horror and red flags go up everywhere. Go figure.&nbsp;<br><br>It all started when I started working on a revamp of our website. I copied my local website on my laptop, and then working from there, created an entire new website structure and design on my local machine. Fired it off back and forth with a design company working on our new home page and menu bar, and never gave a thought to my existing website that was merrily being checked in and out of subversion (using Coda).&nbsp;<br><br><span class="yui-non">When it came to uploading the new site and flipping the switch...I simply deleted the old site using Finder and added the new.&nbsp;<br></span><br><span class="yui-non">This was really the wrong thing to do. Really wrong. For a couple of reasons:</span><br><br>First of all, in doing this, I also deleted the .svn files (hidden). The removed files also had not been correctly deleted in the repository...so it thought they were still there, but had red flagged them as missing.&nbsp;<br><br><span class="yui-non">Secondly, about five months previously some other changes had been done to our site by another website company and the changes had been made on the server. I did not get a list of changes made to the site and I was unaware that certain folders and files had not been downloaded and committed to subversion, because I did not know they had been changed or added.&nbsp;</span><br><br>This means that when I copied my local folder to work on recreating a new website, I then missed these files. The local copy I handed off to the new website company for further changes and we all merrily went on our way not realizing that certain folders and files had not been downloaded and checked in.&nbsp;<br><br><span class="yui-non">In short, the entire thing was a mess and took about three hours to clean up in the subversion, plus another five hours tracking down the previous changes that had been lost in the process.&nbsp;</span><br><br>Lesson learned. Real good.<br><br><span class="yui-non">In the future, I will treat my subversion repository with a lot more respect. I hereby decree that from now on, I will:</span><br><br><span class="yui-non"><span class="yui-non"><div class="yui-wk-div"><span class="yui-non"><ul><li>not allow anyone to make server side changes without letting me know what they've changed and what I need to download and commit</li><li>download the entire site, if server side changes do occur and i'm unsure whether or not I've got them all, and carefully commit all changes into the subversion<br></li><li>I will no longer delete folders and files in my local copy using Finder<br></li><li>If I delete files and folders I'll do it in Coda, and appropriately delete them in the subversion<br></li><li>I will carefully monitor my subversion repository and address any red flags when they arise<br></li></ul></span></div><div class="yui-wk-div">&nbsp;&nbsp;</div></span></span>In short, I promise to understand how subversion works and treat it with respect. I swear.&nbsp;<br><br><span class="yui-non">&nbsp;</span><br>]]>
        
    </content>
</entry>

<entry>
    <title>iPad: Plenty of Shine... but No Flash</title>
    <link rel="alternate" type="text/html" href="http://blogs.4point.com/taylor.bastien/2010/01/plenty-of-power-but-no-flash-on-ipad.html" />
    <id>tag:blogs.4point.com,2010:/taylor.bastien//3.129</id>

    <published>2010-01-27T21:07:24Z</published>
    <updated>2010-01-29T03:26:05Z</updated>

    <summary>[Updated a few hours later to add a couple details I left out in the first draft.]I just followed the live step-by-step blogging of the iPad release over at Engadget. The device looks pretty much like what I expected and...</summary>
    <author>
        <name>Taylor Bastien</name>
        
    </author>
    
        <category term="Flash" scheme="http://www.sixapart.com/ns/types#category" />
    
        <category term="Flex" scheme="http://www.sixapart.com/ns/types#category" />
    
    
    <content type="html" xml:lang="en" xml:base="http://blogs.4point.com/taylor.bastien/">
        <![CDATA[<span class="mt-enclosure mt-enclosure-image" style="display: inline;"><div>[Updated a few hours later to add a couple details I left out in the first draft.]</div><div><br /></div>I just followed the live step-by-step blogging of the iPad release over at <a href="http://www.engadget.com">Engadget</a>. The device looks pretty much like what I expected and its functionality is pretty much what I expected. It's basically... a giant iPod Touch. (I <i>had</i> expected a camera, though.)</span><div><br /></div><div><span class="mt-enclosure mt-enclosure-image" style="display: inline;">I must admit, however, that its "low" starting price was a pleasant surprise: between $499 and $829. I had predicted something around $800 and hadn't figured on so many different models (6 in all).</span><div><br /></div><div><span class="mt-enclosure mt-enclosure-image" style="display: inline;"><img alt="iPadHandHeld.jpg" src="http://blogs.4point.com/taylor.bastien/2010/01/27/iPadHandHeld.jpg" width="400" height="267" class="mt-image-center" style="text-align: center; display: block; margin: 0 auto 20px;" /></span></div><div><br /></div><div>According to the hands-on comments from EnGadget and <a href="http://www.gizmodo.com">Gizmodo</a>, the iPad has plenty of power (1GHz "A4" CPU) for browsing the web, etc., but no multi-tasking (grrr) and... if you look closely at screen shots of Steve Jobs' demo, you'll notice...&nbsp;<b>T</b><b>he Blue&nbsp;Lego Cube of&nbsp;</b><b>Disappointment</b><b>.</b>&nbsp;<div><br /></div><div><span class="mt-enclosure mt-enclosure-image" style="display: inline;"><img alt="noFlashOnIPad.jpg" src="http://blogs.4point.com/taylor.bastien/2010/01/27/noFlashOnIPad.jpg" width="400" height="265" class="mt-image-center" style="text-align: center; display: block; margin: 0 auto 20px;" /></span></div><div>All iPhone/iPod Touch owners will recognize it instantly. What it means is that de<b><span class="Apple-style-span" style="font-weight: normal; ">spite its size, power and (much-hyped) promise, the iPad's Mobile Safari has <i>no Flash plug-in</i>.&nbsp;</span></b></div><div><br /></div><div><b><span class="Apple-style-span" style="font-weight: normal; ">In his presentation, Steve Jobs called the device "magical". Well why don't you just whip us up some magic there <i>Steve</i> and get Flash to work on your freaking device? I'll bet you a&nbsp;Silicon&nbsp;Valley latté that Adobe will do it for <i>free</i>.&nbsp;</span></b></div><div><br /></div><div><b><span class="Apple-style-span" style="font-weight: normal; ">Anyways, enough from me. With your hopes mercilessly dashed once more, all you Flash Platform developers can now return to your regularly scheduled hand-wringing.</span></b></div><div><br /></div></div></div>]]>
        
    </content>
</entry>

<entry>
    <title>The Magic of Panic&apos;s Coda</title>
    <link rel="alternate" type="text/html" href="http://blogs.4point.com/sarah.samplonius/2010/01/the-magic-of-panics-coda.html" />
    <id>tag:blogs.4point.com,2010:/sarah.samplonius//8.128</id>

    <published>2010-01-23T22:01:41Z</published>
    <updated>2010-01-23T22:13:41Z</updated>

    <summary><![CDATA[Currently I'm revamping our corporate website. Updating content, rearranging pages, actually doing a complete overhaul. I'm taking a momentary break to worship at the altar of Coda.&nbsp;Coda, to be honest, was one of the biggest reasons I wanted a Mac....]]></summary>
    <author>
        <name>Sarah Samplonius</name>
        
    </author>
    
    <category term="coda" label="Coda" scheme="http://www.sixapart.com/ns/types#tag" />
    <category term="html" label="HTML" scheme="http://www.sixapart.com/ns/types#tag" />
    <category term="panic" label="Panic" scheme="http://www.sixapart.com/ns/types#tag" />
    <category term="website" label="Website" scheme="http://www.sixapart.com/ns/types#tag" />
    
    <content type="html" xml:lang="en" xml:base="http://blogs.4point.com/sarah.samplonius/">
        <![CDATA[Currently I'm revamping our corporate website. Updating content, rearranging pages, actually doing a complete overhaul. I'm taking a momentary break to worship at the altar of Coda.&nbsp;<br><br>Coda, to be honest, was one of the biggest reasons I wanted a Mac. I had heard about it, read reviews, and envied those who had Macs.<br><br><span class="yui-non">But I didn't quite understand just how good it actually is. I'd set my standards low from working with multiple inferior products. The last time I revamped the website was pre-Mac. It was painful. I had limited access to pages, rearranging stuff was a nightmare, and modifying the HTML was a nightmare.&nbsp;</span><br><br><span class="yui-non">This time around, Coda makes everything easy. For example: I've got blocks of HTML I want to re-use, but not necessarily in a global search and replace (which is fast and easy with Coda too, btw). I need to make tiny modifications to it, but don't want to sit and retype it all each time. Nor do I want to go back to pages where it's been used and copy and paste it each time.&nbsp;</span><br><br><span class="yui-non">I was thinking, wow, a clipboard function would be really handy. Seems logical, I look around, see "Clips" on the bottom of the Coda UI and go: "hunh". Yup. It's a full clipboard with the ability to save clips of HTML in different folders, make them accessible global or just by site (I manage several sites...this is worth a lot to me), and even better than the average clipboard...I can EDIT the HTML at whim if I find that I'm making a particular change on a regular basis.&nbsp;</span><br><br><span class="yui-non">Best of all, it's an overlay clipboard that I can move around. I just drag it to my second desktop, let it sit there...and it's a simple double click to add the HTML to a page. I don't have to keep re-opening to access what I need.</span><br><br><span class="yui-non">It may not seem like much. But when working on a lot of pages with limited time...I have to say Coda has shaved hours, if not days off of my work.&nbsp;</span><br><br><span class="yui-non">Add to this subversion accessibility, the ability to share pages between users, terminal access through the main UI, and a host of other really important functions...and Coda offers everything I need to manage a website.&nbsp;</span><br><br><span class="yui-non">Thank you Panic.&nbsp;</span><br>]]>
        
    </content>
</entry>

<entry>
    <title>Obscurity is not Security: Insurgents Hack U.S. Drones</title>
    <link rel="alternate" type="text/html" href="http://blogs.4point.com/taylor.bastien/2009/12/obscurity-is-not-security-insurgents-hack-us-drones.html" />
    <id>tag:blogs.4point.com,2009:/taylor.bastien//3.123</id>

    <published>2009-12-17T18:42:18Z</published>
    <updated>2010-01-12T02:46:16Z</updated>

    <summary><![CDATA[[Update:The security vulnerability has been&nbsp;fixed]A word of caution to my fellow developers: if you think your software is secure because it's obscure enough that nobody would bother to hack it, then you might be in for an unhappy surprise.Case In...]]></summary>
    <author>
        <name>Taylor Bastien</name>
        
    </author>
    
    
    <content type="html" xml:lang="en" xml:base="http://blogs.4point.com/taylor.bastien/">
        <![CDATA[<div>[<i>Update:</i>The security vulnerability has been&nbsp;<a href="http://news.yahoo.com/s/afp/20091217/tc_afp/iraqunrestusweaponsiranafghanistan" style="text-decoration: underline; ">fixed</a>]</div><div><br /></div><div>A word of caution to my fellow developers: if you think your software is secure because it's obscure enough that nobody would bother to hack it, then you might be in for an unhappy surprise.</div><div><br /></div><div><b>Case In Point</b></div><span class="mt-enclosure mt-enclosure-image" style="display: inline;">
<table class="image" style="float:right">
<tbody><tr><td><img alt="a118_predator_firing_hellfire_2050081722-16359.jpg" src="http://blogs.4point.com/taylor.bastien/2010/01/09/a118_predator_firing_hellfire_2050081722-16359.jpg" width="325" height="168" class="mt-image-right" style="float: right; margin: 0 5px 0 20px;" /></td></tr>
<tr><td><div style="text-align: right;"><b>Predator drone firing a Hellfire missile</b></div><div style="text-align: right;">(source: <a href="http://www.airforce.com">US Air Force</a>)</div></td></tr>
</tbody></table></span><div><br /></div><div><b></b>According to the <a href="http://online.wsj.com">Wall Street Journal</a>&nbsp;and a follow-up report from l'<a href="http://www.afp.com/afpcom/en/">Agence France Presse</a>, Department of Defense officials have admitted that video feeds from&nbsp;Predator surveillance drones&nbsp;were routinely intercepted by "Iranian-backed insurgents"&nbsp;in Iraq&nbsp;and Al-Qaeda&nbsp;members in Afghanistan.</div><div><br /></div><div>Perhaps it would all make for a better story if I could tell you that it required a vast conspiracy of ex-KGB agents using supercomputers hidden in bunkers under the Urals to crack the video's NSA-level&nbsp;<span class="Apple-style-span" style="font-family: arial, helvetica, clean, sans-serif; line-height: 16px; ">COSMIC Top Secret encryption, but unfortunately, real life is slightly less dramatic (and much more deadly). Th<span class="Apple-style-span" style="font-family: arial, helvetica, hirakakupro-w3, osaka, 'ms pgothic', sans-serif; line-height: normal; ">e UAVs streamed the video in an unencrypted form, making it&nbsp;possible for a rag-tag assemblage of insurgents often with no access to the Internet to intercept the feeds using a "commercial off the shelf" (COTS) satellite video capture tool,&nbsp;<a href="http://www.skygrabber.com/en/index.php" style="text-decoration: underline; ">SkyGrabber</a>&nbsp;(MSRP: $25 US) and laptops. The minimal effort it took probably didn't even distract them from their day job manufacturing IEDs and blowing up innocents.</span></span></div><div><br /></div><div>From the WSJ article:</div><div><br /></div><div><blockquote class="webkit-indent-blockquote" style="margin: 0 0 0 40px; border: none; padding: 0px;"><span class="Apple-style-span" style="color: rgb(0, 0, 0); font-family: Georgia, 'Times New Roman', Times, serif; font-size: 14px; line-height: 19px; ">The potential drone vulnerability lies in an unencrypted downlink between the unmanned craft and ground control. The U.S. government has known about the flaw since the U.S. campaign in Bosnia in the 1990s, current and former officials said. <i>But the Pentagon assumed local adversaries wouldn't know how to exploit it, the officials said.</i> (emphasis added)</span></blockquote></div><div><br /></div><div><span class="Apple-style-span" style="font-family: arial, helvetica, clean, sans-serif; line-height: 16px; "><span class="Apple-style-span" style="font-family: arial, helvetica, hirakakupro-w3, osaka, 'ms pgothic', sans-serif; line-height: normal; ">The military remained unaware of the practice up until a laptop belonging to an "Iranian-backed Shiite militant" was captured on which Military Intelligence discovered intercepted video footage. (I'm frankly surprised it didn't show up on YouTube.)</span></span></div><div><b><br /></b></div><div><b>The Lesson: Obscurity is <i><span class="Apple-style-span" style="text-decoration: underline;">not</span></i><span class="Apple-style-span" style="text-decoration: underline;"> </span>Security</b></div><div><br /></div><div>It is supposedly unlikely that the video was of much use to the extremists and while the whole story seems a little ridiculous, it surely is no laughing matter.&nbsp;Here's hoping some heads will roll because "incompetence" isn't strong enough a word.</div><div><br /></div><div>As software developers, we're usually required to think about security as a key requirement of any system. However, when&nbsp;you're tasked with developing software for a $3+ million unmanned aerial vehicle (UAV), you'd better pay attention to these "details" because somebody very dangerous surely is. When that happens, it's a whole lot more than just data you're protecting.</div><div><br /></div><div><br /></div><div><b>Further reading</b></div><div><br /></div><div><ul><ul><li><a href="http://online.wsj.com/article/SB126102247889095011.html?mod=WSJ_hpp_LEFTTopStories#printMode">The original piece</a>&nbsp;from the Wall Street Journal</li><li>Wikipedia article on <a href="http://en.wikipedia.org/wiki/Security_through_obscurity">Security through Obscurity</a></li></ul></ul></div>]]>
        
    </content>
</entry>

<entry>
    <title>Cross-Compiling Java/C#/Ruby to iPhone</title>
    <link rel="alternate" type="text/html" href="http://blogs.4point.com/taylor.bastien/2009/11/cross-compiling-javacruby-to-iphone.html" />
    <id>tag:blogs.4point.com,2009:/taylor.bastien//3.93</id>

    <published>2009-11-30T15:10:05Z</published>
    <updated>2009-11-30T18:36:11Z</updated>

    <summary>(This is a posting I started a while back (on my brother&apos;s b-day in May) but didn&apos;t publish at the time... don&apos;t remember why.)Cross-Compiling C/C++ to Actionscript using Alchemy As you may well know, Adobe Labs has developed an exciting...</summary>
    <author>
        <name>Taylor Bastien</name>
        
    </author>
    
        <category term="Flash" scheme="http://www.sixapart.com/ns/types#category" />
    
        <category term="Flex" scheme="http://www.sixapart.com/ns/types#category" />
    
        <category term="Java" scheme="http://www.sixapart.com/ns/types#category" />
    
    
    <content type="html" xml:lang="en" xml:base="http://blogs.4point.com/taylor.bastien/">
        <![CDATA[(This is a posting I started a while back (on my brother's b-day in May) but didn't publish at the time... don't remember why.)<div><br /></div><div><b>Cross-Compiling C/C++ to Actionscript using Alchemy</b><br /><div><br />
As you may well know, Adobe Labs has developed an exciting tool called <a href="http://labs.adobe.com/technologies/alchemy/">Alchemy</a> that leverages 
the <a href="http://llvm.org/">LLVM</a> open source project to cross-compile C/C++ code to a common run-time byte code. This byte-code is then cross-compiled to Actionscript code which is then compiled to Actionscript byte code (ABC).&nbsp;The earliest and most striking example of what can be accomplished with Alchemy was the port of Doom to Flash that Dave released on <a href="http://www.newgrounds.com/">Newgrounds</a> within a week of Alchemy's launch. He has now released the <a href="http://www.newgrounds.com/portal/view/470460">Doom Triple Pack</a>&nbsp;which includes the bad boys Doom, Heretic and Hexen.</div><div><br />The good people of Automata Studios helped Adobe develop one of the first projects for demonstrating how Alchemy works. Here is <a href="http://www.automatastudios.com/tags/alchemy/">their write-up</a> on the subject.<br /><br /><b>Cross-Compiling to Objective-C (and more!) Using XML-VM</b></div><div><br /></div><span class="mt-enclosure mt-enclosure-image" style="display: inline;"><img alt="overview.jpg" src="http://blogs.4point.com/taylor.bastien/overview.jpg" width="330" height="305" class="mt-image-right" style="float: right; margin: 0 0 20px 20px;" /></span><div>Another development that has come down the pipe is some research done by Arno Puder and his colleagues at San Fancisco State University. Their work involves using open-source tools to transform code from one language (e.g. Java, C#) to an intermediate XML format which can then be transformed to another language (in this example, Objective-C). The project is called <a href="http://www.xmlvm.org/overview/">XMLVM</a>.</div><div><br /></div><div>Prof. Puder presented how all of this works at the Google offices and the video of this presentation is available on YouTube. It is a very cool idea and demonstrates once again (as all software does, really) the potential aggregate power of using many small, simple constructs. Byte code statements are converted to an XML format which can then be transformed to Objective-C. While the final code might not be as optimal as the original, it will do the same thing. My guess is that the toughest part would probably be handling language elements that don't exist in both the source and target languages&nbsp;(i.e. garbage collection, loose typing/auto-boxing, annotations). Perhaps you'd have to do away with overly "native" parts of a language language when writing the "from" code.&nbsp;The good professor covers part of this challenge in his presentation.&nbsp;</div><div><br /></div><div>While the target language discussed is Objective-C, as you can see from the diagram above, the XMLVM project allows you to cross-compile to and from a number of different languages.</div><div><br /></div></div>]]>
        <![CDATA[<div>Enjoy the video. (Hat tip to DiamondTears for bringing this to my attention.)</div><div><div><br />&nbsp;
<center>
<object width="425" height="344"><param name="movie" value="http://www.youtube.com/v/s8nMpi5-P-I&amp;hl=en_US&amp;fs=1&amp;rel=0&amp;color1=0x2b405b&amp;color2=0x6b8ab6" /><param name="allowFullScreen" value="true" /><param name="allowscriptaccess" value="always" /><embed src="http://www.youtube.com/v/s8nMpi5-P-I&amp;hl=en_US&amp;fs=1&amp;rel=0&amp;color1=0x2b405b&amp;color2=0x6b8ab6" type="application/x-shockwave-flash" allowscriptaccess="always" allowfullscreen="true" width="425" height="344"></object></center>

<div><br /></div><div><div><b>Compiling Flash Apps to Native iPhone Apps in Flash CS5 (in Windows!)</b></div><div><br /></div>

<div>At AdobeMAX 2009, new functionality for the&nbsp;<span class="Apple-style-span" style="color: rgb(0, 0, 0); font-family: Arial, Helvetica, sans-serif; font-size: 12px; line-height: 16px; ">Flash Professional CS5</span>&nbsp;was demoed showing that this upcoming version will allow Flash (and Flex) applications to be compiled directly to an iPhone application (i.e. an IPA). In fact, some apps developed using this functionality are already available in the AppStore. Info, video and more can be found&nbsp;<a href="http://labs.adobe.com/technologies/flashcs5/appsfor_iphone/#divider" style="text-decoration: underline; ">here</a>.</div><div><br /></div><div>From what I've been told, this functionality is implemented using cross-compilation and therefore necessarily leads to somewhat bloated/un-optimal apps. Frankly, I think that should be expected. With time this can surely be improved, but for now, I think we'll take what we can get.</div><div><br /></div><div>I'm sure I'm not the only person who has thought to themselves:&nbsp;<i>Will I finally be able to develop for iPhone/iPod Touch without having to shell out for a Mac!?!</i></div><div><br /></div><div>Adobe plans to launch a public Beta of Flash CS5 later this year. Once I get to try it out, I'll let you know what I think.&nbsp;</div></div><div><br /></div><div><b>Final Thoughts</b></div><div><br /></div><div>One thing's for sure: watching these videos and reading the documentation gives me flashbacks of the more interesting classes from studying Computer Science in university. The beauty of working in this field is that even the coolest, most complex technology is not only within your grasp to use and understand, but also to implement.</div><div><br /></div><div>As a developer, I have discussed with my brother what platform is most attractive: iPhone or Android? I own an iPod Touch already, but am unable to develop native apps since I don't have a couple grand to put down on a Mac (<span class="Apple-style-span" style="text-decoration: underline; ">much</span>&nbsp;higher priorities: student loan, big screen HDTV, next gen console). Android will support Java and (from what I've been told) Flash, but I don't want or need a cell phone. The jury's still out but it will be fun either way.</div><div><br /></div><div>As always, I invite you to post any comments you might have on this subject.</div></div></div>]]>
    </content>
</entry>

<entry>
    <title>Useful SQL Queries</title>
    <link rel="alternate" type="text/html" href="http://blogs.4point.com/armaghan.chaudhary/2009/10/useful-sql-queries.html" />
    <id>tag:blogs.4point.com,2009:/armaghan.chaudhary//37.119</id>

    <published>2009-10-28T19:56:53Z</published>
    <updated>2009-10-28T19:59:47Z</updated>

    <summary>You might find the following queries quite handy for your day to day SQL operations:1. Get the total number of records in a table:SELECT COUNT(*) FROM TABLE_NAME;...</summary>
    <author>
        <name>Armaghan</name>
        
    </author>
    
    <category term="getthetotalnumberofrecordsinatable" label="get the total number of records in a table" scheme="http://www.sixapart.com/ns/types#tag" />
    <category term="usefulsqlqueries" label="useful sql queries" scheme="http://www.sixapart.com/ns/types#tag" />
    
    <content type="html" xml:lang="en" xml:base="http://blogs.4point.com/armaghan.chaudhary/">
        <![CDATA[<br />You might find the following queries quite handy for your day to day SQL operations:<br /><br /><b>1. Get the total number of records in a table:</b><br /><br />SELECT COUNT(*) FROM TABLE_NAME;<br /><br />]]>
        
    </content>
</entry>

<entry>
    <title>SQL User queries in Oracle</title>
    <link rel="alternate" type="text/html" href="http://blogs.4point.com/armaghan.chaudhary/2009/10/sql-user-queries-in-oracle.html" />
    <id>tag:blogs.4point.com,2009:/armaghan.chaudhary//37.118</id>

    <published>2009-10-28T15:16:47Z</published>
    <updated>2009-10-28T16:22:37Z</updated>

    <summary><![CDATA[Here are a few&nbsp; useful user SQL code snippets in Oracle:1. To create a userCREATE USER usernameIDENTIFIED BY password DEFAULT TABLESPACE USERSTEMPORARY TABLESPACE TEMP;2. Grant user privileges: GRANT CONNECT, RESOURCE, CREATE SESSION, CREATE VIEW TO username;3. Grant all privileges: GRANT...]]></summary>
    <author>
        <name>Armaghan</name>
        
    </author>
    
    <category term="deleteauser" label="delete a user" scheme="http://www.sixapart.com/ns/types#tag" />
    <category term="oraclecreateuser" label="Oracle create user" scheme="http://www.sixapart.com/ns/types#tag" />
    <category term="oracledeleteuser" label="oracle delete user" scheme="http://www.sixapart.com/ns/types#tag" />
    <category term="oraclegrantusagerights" label="oracle grant usage rights" scheme="http://www.sixapart.com/ns/types#tag" />
    <category term="sqlcreateuser" label="SQL create user" scheme="http://www.sixapart.com/ns/types#tag" />
    <category term="sqlgrantuserprivileges" label="SQL grant user privileges" scheme="http://www.sixapart.com/ns/types#tag" />
    <category term="sqltocreateauser" label="SQL to create a user" scheme="http://www.sixapart.com/ns/types#tag" />
    <category term="sqltodeleteauser" label="SQL to delete a user" scheme="http://www.sixapart.com/ns/types#tag" />
    
    <content type="html" xml:lang="en" xml:base="http://blogs.4point.com/armaghan.chaudhary/">
        <![CDATA[<br />Here are a few&nbsp; useful user SQL code snippets in Oracle:<br /><br /><b>1. To create a user</b><br /><br />CREATE USER username<br />IDENTIFIED BY password <br />DEFAULT TABLESPACE USERS<br />TEMPORARY TABLESPACE TEMP;<br /><br /><b>2. Grant user privileges</b>: <br /><br />GRANT CONNECT, RESOURCE, CREATE SESSION, CREATE VIEW TO username;<br /><br /><br /><b>3. Grant all privileges:  </b><br /><br />GRANT all privileges TO username;<br /><br /><b>4. Delete a user or to delete a user and the associated user schema</b><br /><br />drop user username cascade;<br /><br />]]>
        
    </content>
</entry>

<entry>
    <title>SQL : Get a list of tables,views and sequences for a given user</title>
    <link rel="alternate" type="text/html" href="http://blogs.4point.com/armaghan.chaudhary/2009/10/sql-get-a-list-of-tables-for-a-given-user.html" />
    <id>tag:blogs.4point.com,2009:/armaghan.chaudhary//37.117</id>

    <published>2009-10-09T20:02:35Z</published>
    <updated>2009-11-20T20:38:07Z</updated>

    <summary>This SQL Snippet get a list of all the tables under a user:select * from user_objects where object_type = &apos;TABLE&apos;; This SQL Snippet will get you a list of all the sequences in a DB Schema for the user tablesselect...</summary>
    <author>
        <name>Armaghan</name>
        
    </author>
    
        <category term="Java" scheme="http://www.sixapart.com/ns/types#category" />
    
        <category term="MySQL" scheme="http://www.sixapart.com/ns/types#category" />
    
    <category term="getalistoftables" label="get a list of tables" scheme="http://www.sixapart.com/ns/types#tag" />
    <category term="oracle" label="oracle" scheme="http://www.sixapart.com/ns/types#tag" />
    <category term="oraclegetalistofsequences" label="oracle get a list of sequences" scheme="http://www.sixapart.com/ns/types#tag" />
    <category term="oraclegetalistoftables" label="oracle get a list of tables" scheme="http://www.sixapart.com/ns/types#tag" />
    <category term="oraclegetalistofviews" label="oracle get a list of views" scheme="http://www.sixapart.com/ns/types#tag" />
    <category term="oraclesequences" label="oracle sequences" scheme="http://www.sixapart.com/ns/types#tag" />
    <category term="oraclesqlgetalistoftables" label="oracle sql get a list of tables" scheme="http://www.sixapart.com/ns/types#tag" />
    <category term="oracleviews" label="oracle views" scheme="http://www.sixapart.com/ns/types#tag" />
    <category term="sqlgetalistoftablesforagivenuser" label="SQL : Get a list of tables for a given user" scheme="http://www.sixapart.com/ns/types#tag" />
    
    <content type="html" xml:lang="en" xml:base="http://blogs.4point.com/armaghan.chaudhary/">
        <![CDATA[This SQL Snippet get a list of all the tables under a user:<br /><br />select * from user_objects where object_type = 'TABLE'; <br /><br />This SQL Snippet will get you a list of all the sequences in a DB Schema for the user tables<br /><span class="Apple-style-span" style="border-collapse: separate; color: rgb(0, 0, 0); font-family: 'Times New Roman'; font-size: medium; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px;"><br /><span class="Apple-style-span" style="font-family: verdana,arial,helvetica,sans-serif; font-size: 12px; line-height: 18px;">select * from user_sequences</span></span><br /><br />This SQL Snippet will get you a list of all the view in a DB Schema for the user tables<br /><br />select * from user_views;<br /><br />Happy Coding :)]]>
        
    </content>
</entry>

<entry>
    <title>Finding out the Oracle Version using SQL</title>
    <link rel="alternate" type="text/html" href="http://blogs.4point.com/armaghan.chaudhary/2009/10/finding-out-the-oracle-version-using-sql.html" />
    <id>tag:blogs.4point.com,2009:/armaghan.chaudhary//37.116</id>

    <published>2009-10-05T15:00:16Z</published>
    <updated>2009-10-05T15:04:27Z</updated>

    <summary><![CDATA[If you ever have to find out the version of Oracle using SQL, use the following SQL command and it will spit out all the details.SQL&nbsp;SELECT * FROM V$VERSION;OUTPUTBANNER&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; ---------------------------------------------------------------- Oracle Database 10g Enterprise Edition Release 10.2.0.1.0 - Prod PL/SQL...]]></summary>
    <author>
        <name>Armaghan</name>
        
    </author>
    
    <category term="findingouttheoracleversionusingsql" label="Finding out the Oracle Version using SQL" scheme="http://www.sixapart.com/ns/types#tag" />
    <category term="oracle" label="oracle" scheme="http://www.sixapart.com/ns/types#tag" />
    <category term="oracleversion" label="Oracle Version" scheme="http://www.sixapart.com/ns/types#tag" />
    <category term="sqltofindoracleversion" label="SQL to find oracle version" scheme="http://www.sixapart.com/ns/types#tag" />
    <category term="version" label="version" scheme="http://www.sixapart.com/ns/types#tag" />
    
    <content type="html" xml:lang="en" xml:base="http://blogs.4point.com/armaghan.chaudhary/">
        <![CDATA[If you ever have to find out the version of Oracle using SQL, use the following SQL command and it will spit out all the details.<br /><br /><b>SQL</b><br />&nbsp;SELECT * FROM V$VERSION;<br /><br /><b>OUTPUT<br /><br /></b>BANNER&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <br />---------------------------------------------------------------- <br />Oracle Database 10g Enterprise Edition Release 10.2.0.1.0 - Prod <br />PL/SQL Release 10.2.0.1.0 - Production&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <br />CORE&nbsp;&nbsp;&nbsp; 10.2.0.1.0&nbsp;&nbsp;&nbsp; Production&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <br />TNS for 32-bit Windows: Version 10.2.0.1.0 - Production&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <br />NLSRTL Version 10.2.0.1.0 - Production<b><br /></b>---------------------------------------------------------------- <br /><br />Happy Coding :)<br /><b><br /></b>]]>
        
    </content>
</entry>

<entry>
    <title>Changing the default port number in Apache Tomcat</title>
    <link rel="alternate" type="text/html" href="http://blogs.4point.com/armaghan.chaudhary/2009/09/changing-the-default-port-number-in-apache-tomcat.html" />
    <id>tag:blogs.4point.com,2009:/armaghan.chaudhary//37.115</id>

    <published>2009-09-11T13:25:26Z</published>
    <updated>2009-09-11T13:35:15Z</updated>

    <summary>I had to run two webservers on my machine at the same time. Since both of them used port 8080 , the easiest way to run the two servers at the same time was to modify the port number on...</summary>
    <author>
        <name>Armaghan</name>
        
    </author>
    
    <category term="changetomcatport" label="change tomcat port" scheme="http://www.sixapart.com/ns/types#tag" />
    <category term="changingthedefaultportnumberinapachetomcat" label="Changing the default port number in Apache Tomcat" scheme="http://www.sixapart.com/ns/types#tag" />
    <category term="modifyport" label="modify port" scheme="http://www.sixapart.com/ns/types#tag" />
    <category term="tomcat" label="tomcat" scheme="http://www.sixapart.com/ns/types#tag" />
    
    <content type="html" xml:lang="en" xml:base="http://blogs.4point.com/armaghan.chaudhary/">
        <![CDATA[<br />I had to run two webservers on my machine at the same time. Since both of them used port 8080 , the easiest way to run the two servers at the same time was to modify the port number on one of them. <br /><br />Here is how we can change the port number in Apache Tomcat:<br /><br />1. Navigate to : Apache Software Foundation\Tomcat X.X\conf<br /><br /><br /><br /><span class="mt-enclosure mt-enclosure-image" style="display: inline;"><img alt="tomcat 5.5 Port Number.png" src="http://blogs.4point.com/armaghan.chaudhary/tomcat%205.5%20Port%20Number.png" class="mt-image-center" style="margin: 0pt auto 20px; text-align: center; display: block;" height="805" width="1589" /></span>
2. Modify the Server.xml file:<br />
<br />
<span class="Apple-style-span" style="border-collapse: separate; color: rgb(0, 0, 0); font-family: 'Times New Roman'; font-size: 16px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px;"><span class="Apple-style-span" style="color: rgb(63, 63, 63); font-family: Verdana; font-size: 12px; line-height: 19px; text-align: left;"><pre style="margin: 0px; font-family: Verdana; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400;">&lt;!-- Define a non-SSL HTTP/1.1 Connector on port 8080 --&gt;<br />&lt;Connector port="8080" ... /&gt;</pre></span></span><br />
Modify this to another non-conflicting port ( I changed it to 8888)<br /><div><br /></div><div>Happy Coding<br /></div><div><br /></div>]]>
        
    </content>
</entry>

<entry>
    <title>XML Manipulation in Flex and ActionScript</title>
    <link rel="alternate" type="text/html" href="http://blogs.4point.com/armaghan.chaudhary/2009/08/xml-manipulation-in-flex-and-actionscript.html" />
    <id>tag:blogs.4point.com,2009:/armaghan.chaudhary//37.114</id>

    <published>2009-08-28T18:03:18Z</published>
    <updated>2009-08-28T18:41:13Z</updated>

    <summary><![CDATA[There are lots of crazy ways of manipulating XML in ActionScript.Here are a few simple tips and tricks on manipulating XML in Actionscript.Declaring an XML Variable: An XML variable can be created in ActionScript as follows :&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; var tempSearchXML:XML =...]]></summary>
    <author>
        <name>Armaghan</name>
        
    </author>
    
        <category term="Flex" scheme="http://www.sixapart.com/ns/types#category" />
    
    <category term="actionscript" label="actionscript" scheme="http://www.sixapart.com/ns/types#tag" />
    <category term="addnodeinxml" label="add node in xml" scheme="http://www.sixapart.com/ns/types#tag" />
    <category term="deletenodeinxml" label="delete node in xml" scheme="http://www.sixapart.com/ns/types#tag" />
    <category term="e4x" label="e4x" scheme="http://www.sixapart.com/ns/types#tag" />
    <category term="flex" label="flex" scheme="http://www.sixapart.com/ns/types#tag" />
    <category term="gettinganodevalue" label="getting a node value" scheme="http://www.sixapart.com/ns/types#tag" />
    <category term="settinganodevalue" label="setting a node value" scheme="http://www.sixapart.com/ns/types#tag" />
    <category term="updatingnodeattribute" label="updating node attribute" scheme="http://www.sixapart.com/ns/types#tag" />
    <category term="xml" label="xml" scheme="http://www.sixapart.com/ns/types#tag" />
    <category term="xmlmanipulation" label="xml manipulation" scheme="http://www.sixapart.com/ns/types#tag" />
    
    <content type="html" xml:lang="en" xml:base="http://blogs.4point.com/armaghan.chaudhary/">
        <![CDATA[There are lots of crazy ways of manipulating XML in ActionScript.Here are a few simple tips and tricks on manipulating XML in Actionscript.<br /><br /><ol><li><b>Declaring an XML Variable</b>: An XML variable can be created in ActionScript as follows :</li></ol>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; var tempSearchXML:XML = &nbsp;&nbsp;&nbsp; &lt;searchCriteria&gt;<br />&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&nbsp; &nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;branchName&gt;023&lt;/branchName&gt;<br />&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;contfirstname&gt;&lt;/contfirstname&gt;<br />&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;contlastname&gt;&lt;/contlastname&gt;<br />&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &lt;contmailsort&gt;&lt;/contmailsort&gt;<br />&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;contphone&gt;&lt;/contphone&gt;<br />&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;/searchCriteria&gt; <br />&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;<br /><b>2.&nbsp; Preview an XML Variable</b> : An XML variable can be previewed in an Alert Box by converting the XML to a string object<br />&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; <br />&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; Alert.show(tempSearchXML.toString());<br />&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; <br /><b>3.&nbsp; Getting the value of a Node in the XML</b>: <br /><br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Alert.show(tempSearchXML.branchName.toString());<br /><br />4.&nbsp; <b>Setting the Value of Node in the XML </b>: The following code sets the value of a node 'contfirstname '.<br />&nbsp;<br />&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; tempSearchXML.contfirstname ="Armaghan";<br /><br /><b>5.&nbsp; Setting / Changing / Updating the Node Attribute in the XML</b>: The following code snippet changes the name of a Node from 'contlastname' to 'lastname'.<br /><br />&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; tempSearchXML.contlastname.setName("lastname") ;<br />&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; <br /><b>5.&nbsp; Delete a Node in the XML</b>: The following code snippet deletes a Node called 'contphone' in the XML.<br /><br />&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; delete tempSearchXML.contphone;<br /><br /><b>6.&nbsp; Adding a Node in the XML</b>: The following code snippet adds a Node called 'text' in the XML and sets its value at the same time.<br /><br />&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; tempSearchXML.text ="Taylor" ;<br /><br />Happy Coding :)<br />]]>
        
    </content>
</entry>

<entry>
    <title>Dump the Ant build information to a log file</title>
    <link rel="alternate" type="text/html" href="http://blogs.4point.com/armaghan.chaudhary/2009/08/dump-the-ant-build-information-to-a-log-file.html" />
    <id>tag:blogs.4point.com,2009:/armaghan.chaudhary//37.112</id>

    <published>2009-08-10T20:18:56Z</published>
    <updated>2009-08-10T20:22:41Z</updated>

    <summary><![CDATA[If you ever need to dump the build information from the command prompt console into a log file, just add a -logfile &lt;filename&gt;.log parameter after your build file call in the command prompt console and you're good to go.Happy Coding...]]></summary>
    <author>
        <name>Armaghan</name>
        
    </author>
    
    <category term="ant" label="ant" scheme="http://www.sixapart.com/ns/types#tag" />
    <category term="antbuild" label="ant build" scheme="http://www.sixapart.com/ns/types#tag" />
    <category term="antbuildcopytologfile" label="ant build copy to log file" scheme="http://www.sixapart.com/ns/types#tag" />
    <category term="antbuilddumptologfile" label="ant build dump to log file" scheme="http://www.sixapart.com/ns/types#tag" />
    <category term="antbuildlogfile" label="ant build log file" scheme="http://www.sixapart.com/ns/types#tag" />
    
    <content type="html" xml:lang="en" xml:base="http://blogs.4point.com/armaghan.chaudhary/">
        <![CDATA[<br />If you ever need to dump the build information from the command prompt console into a log file, just add a -logfile &lt;filename&gt;.log parameter after your build file call in the command prompt console and you're good to go.<br /><br />Happy Coding :)<br />]]>
        
    </content>
</entry>

<entry>
    <title>Default Value in QueryParam Annotations</title>
    <link rel="alternate" type="text/html" href="http://blogs.4point.com/armaghan.chaudhary/2009/08/default-value-in-queryparam-annotations.html" />
    <id>tag:blogs.4point.com,2009:/armaghan.chaudhary//37.111</id>

    <published>2009-08-07T14:37:11Z</published>
    <updated>2009-08-07T14:40:49Z</updated>

    <summary>In order to remove any null pointer exceptions while using RestEasy Annotations, you can always pass a default value and handle it appropriately in the Data Access Objects ( If you are using one. This ensures that there are no...</summary>
    <author>
        <name>Armaghan</name>
        
    </author>
    
        <category term="Java" scheme="http://www.sixapart.com/ns/types#category" />
    
    <category term="annotations" label="Annotations" scheme="http://www.sixapart.com/ns/types#tag" />
    <category term="defaultvalue" label="Default Value" scheme="http://www.sixapart.com/ns/types#tag" />
    <category term="defaultvalueinqueryparamannotations" label="Default Value in QueryParam Annotations" scheme="http://www.sixapart.com/ns/types#tag" />
    <category term="queryparam" label="QueryParam" scheme="http://www.sixapart.com/ns/types#tag" />
    <category term="resteasy" label="Rest Easy" scheme="http://www.sixapart.com/ns/types#tag" />
    <category term="resteasy" label="RestEasy" scheme="http://www.sixapart.com/ns/types#tag" />
    
    <content type="html" xml:lang="en" xml:base="http://blogs.4point.com/armaghan.chaudhary/">
        <![CDATA[In order to remove any null pointer exceptions while using RestEasy Annotations, you can always pass a default value and handle it appropriately in the Data Access Objects ( If you are using one. This ensures that there are no null pointer excpetions from the returning classes.<br /><br />Here is a code snippet to do just this:<br /><br />public StreamingOutput getUsersSummaryList(@QueryParam("active") @DefaultValue("0") String active&nbsp; ){}<br />]]>
        
    </content>
</entry>

<entry>
    <title>PermGen space error (Hibernate, JPA)</title>
    <link rel="alternate" type="text/html" href="http://blogs.4point.com/armaghan.chaudhary/2009/08/permgen-space-error-hibernate-jpa.html" />
    <id>tag:blogs.4point.com,2009:/armaghan.chaudhary//37.110</id>

    <published>2009-08-07T14:27:28Z</published>
    <updated>2009-08-07T14:36:34Z</updated>

    <summary><![CDATA[If you ever come across a PerGen space error in Hibernate or JPA...it refers to the java.lang.outfspacememoryerror (Your webapp is out of memory). PermGen is&nbsp; used to store the class definations ( and I do mean all the Loaded Classes...]]></summary>
    <author>
        <name>Armaghan</name>
        
    </author>
    
        <category term="Java" scheme="http://www.sixapart.com/ns/types#category" />
    
    <category term="hibernate" label="Hibernate" scheme="http://www.sixapart.com/ns/types#tag" />
    <category term="java" label="Java" scheme="http://www.sixapart.com/ns/types#tag" />
    <category term="javalangoutofmemoryerror" label="java.lang.OutOfMemoryError" scheme="http://www.sixapart.com/ns/types#tag" />
    <category term="jpa" label="JPA" scheme="http://www.sixapart.com/ns/types#tag" />
    <category term="permgen" label="PermGen" scheme="http://www.sixapart.com/ns/types#tag" />
    <category term="permgenspaceerror" label="PermGen space error" scheme="http://www.sixapart.com/ns/types#tag" />
    
    <content type="html" xml:lang="en" xml:base="http://blogs.4point.com/armaghan.chaudhary/">
        <![CDATA[<br />If you ever come across a PerGen space error in Hibernate or JPA...it refers to the java.lang.outfspacememoryerror (Your webapp is out of memory). PermGen is&nbsp; used to store the class definations ( and I do mean all the Loaded Classes ). This error refers to the heap space being full due to the large number of classes.<br /><br />Generally you can recover from these errors by restarting your WebServer. If you want to really fix it, do one of the following 2:<br /><br />1. Hibernate: Change the hibernate.properties file from&nbsp; "<span class="Apple-style-span" style="border-collapse: separate; color: rgb(0, 0, 0); font-family: 'times new roman'; font-size: 16px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px;"><span class="Apple-style-span" style="font-family: verdana; font-size: 13px;">hibernate.bytecode.provider javassist" to </span></span><span class="Apple-style-span" style="border-collapse: separate; color: rgb(0, 0, 0); font-family: 'times new roman'; font-size: 16px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px;"><span class="Apple-style-span" style="font-family: verdana; font-size: 13px;">hibernate.bytecode.provider cglib".<br /><br />2. JPA:&nbsp; Change the persistance.xml file from </span></span><span class="Apple-style-span" style="border-collapse: separate; color: rgb(0, 0, 0); font-family: 'times new roman'; font-size: 16px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px;"><span class="Apple-style-span" style="font-family: verdana; font-size: 13px;">&lt;property name="hibernate.bytecode.provider" value="javaassist"/&gt; to </span></span><span class="Apple-style-span" style="border-collapse: separate; color: rgb(0, 0, 0); font-family: 'times new roman'; font-size: 16px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px;"><span class="Apple-style-span" style="font-family: verdana; font-size: 13px;">&lt;property name="hibernate.bytecode.provider" value="cglib"/&gt;</span></span><br /><br />Happy Coding :)<br />]]>
        
    </content>
</entry>

</feed>

