<?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/"
	>

<channel>
	<title>TechieDrill &#187; create</title>
	<atom:link href="http://techiedrill.com/tag/create/feed/" rel="self" type="application/rss+xml" />
	<link>http://techiedrill.com</link>
	<description>Your World Of Technical Tutorials</description>
	<lastBuildDate>Tue, 05 Jan 2010 16:50:11 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.5</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Creating Folders using simple Java</title>
		<link>http://techiedrill.com/2009/11/creating-folders-using-simple-java/</link>
		<comments>http://techiedrill.com/2009/11/creating-folders-using-simple-java/#comments</comments>
		<pubDate>Sun, 22 Nov 2009 07:21:29 +0000</pubDate>
		<dc:creator>karnamrajesh</dc:creator>
				<category><![CDATA[Java]]></category>
		<category><![CDATA[create]]></category>
		<category><![CDATA[folder]]></category>
		<category><![CDATA[simple]]></category>

		<guid isPermaLink="false">http://techiedrill.com/?p=446</guid>
		<description><![CDATA[import java.io.*;
class FileEx
{
 public static void main(String [] s) throws IOException
 {
// File f = new File(&#8221;xyz.txt&#8221;);
// f.delete();
 File f1 = new File(s[0]);
 f1.mkdir();
 File f2 = new File (f1,s[1]);
 f2.mkdir();
 File f3 = new File (f2,s[2]);
 f3.mkdir();
 if(f3.mkdir())
 {
 System.out.println(&#8221;Folder Created&#8230;.&#8221;);
 File ff = new File(f3,&#8221;akshatha.txt&#8221;);
 ff.createNewFile();
 }
 else
 {
 System.out.println(&#8221;folder already exists&#8230;&#8221;);
 }
 [...]]]></description>
			<content:encoded><![CDATA[<div id="_mcePaste" style="position: absolute; left: -10000px; top: 0px; width: 1px; height: 1px; overflow-x: hidden; overflow-y: hidden;"><em>import java.io.*;</em></div>
<div id="_mcePaste" style="position: absolute; left: -10000px; top: 0px; width: 1px; height: 1px; overflow-x: hidden; overflow-y: hidden;"><em>class FileEx</em></div>
<div id="_mcePaste" style="position: absolute; left: -10000px; top: 0px; width: 1px; height: 1px; overflow-x: hidden; overflow-y: hidden;"><em>{</em></div>
<div id="_mcePaste" style="position: absolute; left: -10000px; top: 0px; width: 1px; height: 1px; overflow-x: hidden; overflow-y: hidden;"><span style="white-space: pre;"><em> </em></span><em>public static void main(String [] s) throws IOException</em></div>
<div id="_mcePaste" style="position: absolute; left: -10000px; top: 0px; width: 1px; height: 1px; overflow-x: hidden; overflow-y: hidden;"><span style="white-space: pre;"><em> </em></span><em>{</em></div>
<div id="_mcePaste" style="position: absolute; left: -10000px; top: 0px; width: 1px; height: 1px; overflow-x: hidden; overflow-y: hidden;"><em>//</em><span style="white-space: pre;"><em> </em></span><em>File f = new File(&#8221;xyz.txt&#8221;);</em></div>
<div id="_mcePaste" style="position: absolute; left: -10000px; top: 0px; width: 1px; height: 1px; overflow-x: hidden; overflow-y: hidden;"><em>//</em><span style="white-space: pre;"><em> </em></span><em>f.delete();</em></div>
<div id="_mcePaste" style="position: absolute; left: -10000px; top: 0px; width: 1px; height: 1px; overflow-x: hidden; overflow-y: hidden;"><span style="white-space: pre;"><em> </em></span><em>File f1 = new File(s[0]);</em></div>
<div id="_mcePaste" style="position: absolute; left: -10000px; top: 0px; width: 1px; height: 1px; overflow-x: hidden; overflow-y: hidden;"><span style="white-space: pre;"><em> </em></span><em>f1.mkdir();</em></div>
<div id="_mcePaste" style="position: absolute; left: -10000px; top: 0px; width: 1px; height: 1px; overflow-x: hidden; overflow-y: hidden;"><span style="white-space: pre;"><em> </em></span><em>File f2 = new File (f1,s[1]);</em></div>
<div id="_mcePaste" style="position: absolute; left: -10000px; top: 0px; width: 1px; height: 1px; overflow-x: hidden; overflow-y: hidden;"><span style="white-space: pre;"><em> </em></span><em>f2.mkdir();</em></div>
<div id="_mcePaste" style="position: absolute; left: -10000px; top: 0px; width: 1px; height: 1px; overflow-x: hidden; overflow-y: hidden;"><span style="white-space: pre;"><em> </em></span><em>File f3 = new File (f2,s[2]);</em></div>
<div id="_mcePaste" style="position: absolute; left: -10000px; top: 0px; width: 1px; height: 1px; overflow-x: hidden; overflow-y: hidden;"><span style="white-space: pre;"><em> </em></span><em>f3.mkdir();</em></div>
<div id="_mcePaste" style="position: absolute; left: -10000px; top: 0px; width: 1px; height: 1px; overflow-x: hidden; overflow-y: hidden;"><span style="white-space: pre;"><em> </em></span><em>if(f3.mkdir())</em></div>
<div id="_mcePaste" style="position: absolute; left: -10000px; top: 0px; width: 1px; height: 1px; overflow-x: hidden; overflow-y: hidden;"><span style="white-space: pre;"><em> </em></span><em>{</em></div>
<div id="_mcePaste" style="position: absolute; left: -10000px; top: 0px; width: 1px; height: 1px; overflow-x: hidden; overflow-y: hidden;"><span style="white-space: pre;"><em> </em></span><em>System.out.println(&#8221;Folder Created&#8230;.&#8221;);</em></div>
<div id="_mcePaste" style="position: absolute; left: -10000px; top: 0px; width: 1px; height: 1px; overflow-x: hidden; overflow-y: hidden;"><span style="white-space: pre;"><em> </em></span><em>File ff = new File(f3,&#8221;akshatha.txt&#8221;);</em></div>
<div id="_mcePaste" style="position: absolute; left: -10000px; top: 0px; width: 1px; height: 1px; overflow-x: hidden; overflow-y: hidden;"><span style="white-space: pre;"><em> </em></span><em>ff.createNewFile();</em></div>
<div id="_mcePaste" style="position: absolute; left: -10000px; top: 0px; width: 1px; height: 1px; overflow-x: hidden; overflow-y: hidden;"><span style="white-space: pre;"><em> </em></span><em>}</em></div>
<div id="_mcePaste" style="position: absolute; left: -10000px; top: 0px; width: 1px; height: 1px; overflow-x: hidden; overflow-y: hidden;"><span style="white-space: pre;"><em> </em></span><em>else</em></div>
<div id="_mcePaste" style="position: absolute; left: -10000px; top: 0px; width: 1px; height: 1px; overflow-x: hidden; overflow-y: hidden;"><span style="white-space: pre;"><em> </em></span><em>{</em></div>
<div id="_mcePaste" style="position: absolute; left: -10000px; top: 0px; width: 1px; height: 1px; overflow-x: hidden; overflow-y: hidden;"><span style="white-space: pre;"><em> </em></span><em>System.out.println(&#8221;folder already exists&#8230;&#8221;);</em></div>
<div id="_mcePaste" style="position: absolute; left: -10000px; top: 0px; width: 1px; height: 1px; overflow-x: hidden; overflow-y: hidden;"><span style="white-space: pre;"><em> </em></span><em>}</em></div>
<div id="_mcePaste" style="position: absolute; left: -10000px; top: 0px; width: 1px; height: 1px; overflow-x: hidden; overflow-y: hidden;"><span style="white-space: pre;"><em> </em></span><em>}</em></div>
<div id="_mcePaste" style="position: absolute; left: -10000px; top: 0px; width: 1px; height: 1px; overflow-x: hidden; overflow-y: hidden;"><em>}</em></div>
<p>It is quite easy to create folders using Java File concepts. Using java.io.file package we can create folders using mkdir(make directory) method. This can also handle folder already exists scenarios.</p>
<p>At the same time of creating folders it is also possible to create files of any extensions.</p>
<p>Try out the below sample code and explore things&#8230;</p>
<p><em>import java.io.*;</em></p>
<p><em>class FileEx</em></p>
<p><em>{</em></p>
<p><span style="white-space: pre;"><em> </em></span><em>public static void main(String [] s) throws IOException</em></p>
<p><span style="white-space: pre;"><em> </em></span><em>{</em></p>
<p><em>//</em><span style="white-space: pre;"><em> </em></span><em>File f = new File(&#8221;xyz.txt&#8221;);</em></p>
<p><em>//</em><span style="white-space: pre;"><em> </em></span><em>f.delete();</em></p>
<p><em><br />
</em></p>
<p><span style="white-space: pre;"><em> </em></span><em>File f1 = new File(s[0]);</em></p>
<p><span style="white-space: pre;"><em> </em></span><em>f1.mkdir();</em></p>
<p><em><br />
</em></p>
<p><span style="white-space: pre;"><em> </em></span><em>File f2 = new File (f1,s[1]);</em></p>
<p><span style="white-space: pre;"><em> </em></span><em>f2.mkdir();</em></p>
<p><span style="white-space: pre;"><em> </em></span><em>File f3 = new File (f2,s[2]);</em></p>
<p><span style="white-space: pre;"><em> </em></span><em>f3.mkdir();</em></p>
<p><em><br />
</em></p>
<p><span style="white-space: pre;"><em> </em></span><em>if(f3.mkdir())</em></p>
<p><span style="white-space: pre;"><em> </em></span><em>{</em></p>
<p><span style="white-space: pre;"><em> </em></span><em>System.out.println(&#8221;Folder Created&#8230;.&#8221;);</em></p>
<p><em><br />
</em></p>
<p><span style="white-space: pre;"><em> </em></span><em>File ff = new File(f3,&#8221;sample.txt&#8221;);</em></p>
<p><span style="white-space: pre;"><em> </em></span><em>ff.createNewFile();</em></p>
<p><span style="white-space: pre;"><em> </em></span><em>}</em></p>
<p><span style="white-space: pre;"><em> </em></span><em>else</em></p>
<p><span style="white-space: pre;"><em> </em></span><em>{</em></p>
<p><span style="white-space: pre;"><em> </em></span><em>System.out.println(&#8221;folder already exists&#8230;&#8221;);</em></p>
<p><span style="white-space: pre;"><em> </em></span><em>}</em></p>
<p><span style="white-space: pre;"><em> </em></span><em>}</em></p>
<p><em>}</em></p>
]]></content:encoded>
			<wfw:commentRss>http://techiedrill.com/2009/11/creating-folders-using-simple-java/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Create An Accordion with jQuery</title>
		<link>http://techiedrill.com/2009/11/create-an-accordion-with-jquery/</link>
		<comments>http://techiedrill.com/2009/11/create-an-accordion-with-jquery/#comments</comments>
		<pubDate>Wed, 04 Nov 2009 17:55:29 +0000</pubDate>
		<dc:creator>bprashanth</dc:creator>
				<category><![CDATA[Jquery]]></category>
		<category><![CDATA[accordion]]></category>
		<category><![CDATA[create]]></category>
		<category><![CDATA[JavaScript]]></category>

		<guid isPermaLink="false">http://techiedrill.com/?p=24</guid>
		<description><![CDATA[
To download this youtube video, Click Here
Text Content:
This video is going to show you  how to create a simple Accordion. This video explains some of the important concepts in jQuery, so watch this video for sure!
First, a container element is created using
&#60;div id=&#8221;container&#8221;&#62;    &#60;/div&#62;
Within this, a Definition List is created. The list is structured so [...]]]></description>
			<content:encoded><![CDATA[<p><object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" width="445" height="364" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,40,0"><param name="allowFullScreen" value="true" /><param name="allowscriptaccess" value="always" /><param name="src" value="http://www.youtube.com/v/qBh_lMO_SDM&amp;hl=en&amp;fs=1&amp;color1=0x234900&amp;color2=0x4e9e00&amp;border=1" /><param name="allowfullscreen" value="true" /><embed type="application/x-shockwave-flash" width="445" height="364" src="http://www.youtube.com/v/qBh_lMO_SDM&amp;hl=en&amp;fs=1&amp;color1=0x234900&amp;color2=0x4e9e00&amp;border=1" allowscriptaccess="always" allowfullscreen="true"></embed></object></p>
<p>To download this youtube video, <a href="http://www.keephd.com/watch?v=qBh_lMO_SDM">Click Here</a></p>
<p>Text Content:</p>
<p>This video is going to show you  how to create a simple Accordion. This video explains some of the important concepts in jQuery, so watch this video for sure!</p>
<p>First, a container element is created using</p>
<p>&lt;div id=&#8221;container&#8221;&gt;    &lt;/div&gt;</p>
<p>Within this, a Definition List is created. The list is structured so that each definition term &lt;dt&gt; contains the main headings such as Home, About, Blog and Contact. Inside the definition description &lt;dd&gt; is an unordered list &lt;ul&gt; which has a series of links as its list elements.<br />
Altogether, the definition list looks something like this:<br />
&lt;dl&gt;<br />
&lt;dt&gt;&lt;a href=&#8221;#&#8221;&gt;Home&lt;/a&gt;&lt;/dt&gt;<br />
&lt;dd&gt;<br />
&lt;ul&gt;<br />
&lt;li&gt;&lt;a href=&#8221;#&#8221;&gt;Link1&lt;/a&gt;&lt;/li&gt;<br />
&lt;li&gt;&lt;a href=&#8221;#&#8221;&gt;Link2&lt;/a&gt;&lt;/li&gt;<br />
&lt;li&gt;&lt;a href=&#8221;#&#8221;&gt;Link3&lt;/a&gt;&lt;/li&gt;<br />
&lt;/ul&gt;<br />
&lt;/dd&gt;<br />
&lt;dt&gt;&lt;a href=&#8221;#&#8221;&gt;About&lt;/a&gt;&lt;/dt&gt;<br />
&lt;dd&gt;<br />
&lt;ul&gt;<br />
&lt;li&gt;&lt;a href=&#8221;#&#8221;&gt;Link1&lt;/a&gt;&lt;/li&gt;<br />
&lt;li&gt;&lt;a href=&#8221;#&#8221;&gt;Link2&lt;/a&gt;&lt;/li&gt;<br />
&lt;li&gt;&lt;a href=&#8221;#&#8221;&gt;Link3&lt;/a&gt;&lt;/li&gt;<br />
&lt;/ul&gt;<br />
&lt;/dd&gt;<br />
&lt;dt&gt;&lt;a href=&#8221;#&#8221;&gt;Blog&lt;/a&gt;&lt;/dt&gt;<br />
&lt;dd&gt;<br />
&lt;ul&gt;<br />
&lt;li&gt;&lt;a href=&#8221;#&#8221;&gt;Link1&lt;/a&gt;&lt;/li&gt;<br />
&lt;li&gt;&lt;a href=&#8221;#&#8221;&gt;Link2&lt;/a&gt;&lt;/li&gt;<br />
&lt;li&gt;&lt;a href=&#8221;#&#8221;&gt;Link3&lt;/a&gt;&lt;/li&gt;<br />
&lt;/ul&gt;<br />
&lt;/dd&gt;<br />
&lt;dt&gt;&lt;a href=&#8221;#&#8221;&gt;Contact&lt;/a&gt;&lt;/dt&gt;<br />
&lt;dd&gt;<br />
&lt;ul&gt;<br />
&lt;li&gt;&lt;a href=&#8221;#&#8221;&gt;Link1&lt;/a&gt;&lt;/li&gt;<br />
&lt;li&gt;&lt;a href=&#8221;#&#8221;&gt;Link2&lt;/a&gt;&lt;/li&gt;<br />
&lt;li&gt;&lt;a href=&#8221;#&#8221;&gt;Link3&lt;/a&gt;&lt;/li&gt;<br />
&lt;/ul&gt;<br />
&lt;/dd&gt;</p>
<p>Then, the jquery.js file (by dragging from Solution Explorer) and an empty Stylesheet are imported into the current page.</p>
<p>The initial styling is done in CSS as follows:</p>
<p>dl, dt, dd, ul, li, a<br />
{<br />
margin:0; padding:0;<br />
}</p>
<p>#container<br />
{<br />
margin:auto;<br />
}</p>
<p>a<br />
{<br />
text-decoration:none;<br />
color: #292929;<br />
outline: none;<br />
}</p>
<p>li<br />
{<br />
padding-left: .6em;<br />
list-style-type: none;<br />
}</p>
<p>dl<br />
{<br />
width:100px;<br />
}</p>
<p>dt<br />
{<br />
background-color: #faa41a;</p>
<p>}</p>
<p>To get clear about the functionality we are going to accomplish:<br />
First, the secondary links (in &lt;ul&gt;) should not be displayed at all times.<br />
And, when the user clicks on one of the main heading (orange background), we want to close any other open definition and then expand the list that the user clicked.</p>
<p>The following types of code are one and the same, so you can use whichever is comfortable for you. Since type2 is shorter, it is used in this program.<br />
Type1:<br />
&lt;script type=&#8221;text/javascript&#8221;&gt;<br />
$(document).ready(function() {</p>
<p>});<br />
&lt;/script&gt;<br />
Type2:<br />
&lt;script type=&#8221;text/javascript&#8221;&gt;<br />
$(function() {</p>
<p>});<br />
&lt;/script&gt;</p>
<p>Inside the function, the first line is:<br />
$(&#8221;dd:not(:first)&#8221;).hide();<br />
This signifies that all the definition description be obtained from the document but not the first one and be hidden when the document is loaded.</p>
<p>Then, the following piece of code is inserted.<br />
$(&#8221;dt a&#8221;).click(function() {<br />
$(&#8221;dd&#8221;).slideUp(&#8221;fast&#8221;);<br />
$(this).parent(&#8221;dt&#8221;).next(&#8221;dd&#8221;).slideDown(&#8221;normal&#8221;);<br />
});</p>
<p>The first line &#8212;$(&#8221;dt a&#8221;).click(function() {&#8212; gets the anchor element inside the &lt;dt&gt; tag and assigns a function to the click event to each of them in the page.<br />
The second line &#8212;$(&#8221;dd&#8221;).slideUp(&#8221;fast&#8221;);&#8212; makes all the definitions that are visible slideUp (i.e. hide from view)<br />
The third line &#8212; $(this).parent(&#8221;dt&#8221;).next(&#8221;dd&#8221;).slideDown(&#8221;normal&#8221;); &#8212; gets the parent &lt;dt&gt; of the (here this refers to &lt;a&gt; tag in &lt;dt&gt;) &lt;a&gt; tag. Then it gets the next &lt;dd&gt; element and slides it down (to make it visible) using the slideDown method of jQuery.</p>
<p>The border (which is displayed in firefox) can be removed by specifying &#8220;outline: none;&#8221; in the CSS for anchor tag.</p>
<p>So, we can see that a lot can be achieved with only a few lines of code in jQuery.</p>
]]></content:encoded>
			<wfw:commentRss>http://techiedrill.com/2009/11/create-an-accordion-with-jquery/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
