<?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>Dreamtech Press Blog</title>
	<atom:link href="http://dreamtechpress.wordpress.com/feed/" rel="self" type="application/rss+xml" />
	<link>http://dreamtechpress.wordpress.com</link>
	<description>Stay Connected for Updates from Dreamtech Press!</description>
	<lastBuildDate>Tue, 24 Jan 2012 08:05:37 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.com/</generator>
<cloud domain='dreamtechpress.wordpress.com' port='80' path='/?rsscloud=notify' registerProcedure='' protocol='http-post' />
<image>
		<url>http://s2.wp.com/i/buttonw-com.png</url>
		<title>Dreamtech Press Blog</title>
		<link>http://dreamtechpress.wordpress.com</link>
	</image>
	<atom:link rel="search" type="application/opensearchdescription+xml" href="http://dreamtechpress.wordpress.com/osd.xml" title="Dreamtech Press Blog" />
	<atom:link rel='hub' href='http://dreamtechpress.wordpress.com/?pushpress=hub'/>
		<item>
		<title>Exploring Features of Java SE 7</title>
		<link>http://dreamtechpress.wordpress.com/2012/01/24/exploring-features-of-java-se-7/</link>
		<comments>http://dreamtechpress.wordpress.com/2012/01/24/exploring-features-of-java-se-7/#comments</comments>
		<pubDate>Tue, 24 Jan 2012 08:05:33 +0000</pubDate>
		<dc:creator>Dreamtech Press</dc:creator>
				<category><![CDATA[Dreamtech Books]]></category>
		<category><![CDATA[In Simple Steps Book Series]]></category>
		<category><![CDATA[dreamtech]]></category>
		<category><![CDATA[Dreamtech Book]]></category>
		<category><![CDATA[dreamtech press]]></category>
		<category><![CDATA[features of java 7]]></category>
		<category><![CDATA[in simple steps]]></category>
		<category><![CDATA[java]]></category>
		<category><![CDATA[java 7]]></category>
		<category><![CDATA[java 7 in simple steps]]></category>
		<category><![CDATA[kogent learning solutions inc]]></category>

		<guid isPermaLink="false">http://dreamtechpress.wordpress.com/?p=4274</guid>
		<description><![CDATA[Free excerpt from Chapter 01 of Java 7 In Simple Steps by Kogent Learning Solutions Inc. Java SE 7 is a major release that has brought many new features and enhancements in Java programming. A brief introduction to the noteworthy features of Java SE 7 is as follows: Swing enhancements: Introduce various enhancements in the [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=dreamtechpress.wordpress.com&amp;blog=4476588&amp;post=4274&amp;subd=dreamtechpress&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p style="text-align:justify;">Free excerpt from Chapter 01 of <a href="http://www.dreamtechpress.com/TitlePage.aspx?x=978-93-5004-262-5"><em>Java 7 In Simple Steps</em></a> by Kogent Learning Solutions Inc.<a href="http://dreamtechpress.wordpress.com/2012/01/24/exploring-features-of-java-se-7/java-7-in-simple-steps-2/" rel="attachment wp-att-4275"><img class="alignright size-thumbnail wp-image-4275" title="Java 7 In Simple Steps" src="http://dreamtechpress.files.wordpress.com/2012/01/java-7-in-simple-steps.jpg?w=110&#038;h=150" alt="" width="110" height="150" /></a></p>
<p style="text-align:justify;">Java SE 7 is a major release that has brought many new features and enhancements in Java programming. A brief introduction to the noteworthy features of Java SE 7 is as follows:</p>
<p style="text-align:justify;"><strong>Swing enhancements:</strong> Introduce various enhancements in the javax.swing package. Some of such enhancements are as follows:</p>
<ul style="text-align:justify;">
<li>Providing the JLayer class to decorate the swing components</li>
<li>Moving Nimbus look and feel from the com.sun.java.swing package to the javax.swing.plaf.nimbus package</li>
<li>Allowing mix up of heavyweight and lightweight components</li>
<li>Allowing you to create translucent and shaped windows</li>
<li>Adding the selection of Hue-Saturation-Luminance (HSL) color in the JColorChooser class<strong></strong></li>
</ul>
<p style="text-align:justify;"><strong>Enhancements in Java Input/Output (I/O):</strong> Introduce various enhancements in implementing I/O operations using Java programming. Some of the Java I/O enhancements in Java SE 7 are as follows:</p>
<ul style="text-align:justify;">
<li>Allowing non-blocking I/O (NIO) 2.0</li>
<li>Allowing you to develop customized file system provider</li>
<li>Allowing you to manipulate contents of the Java Archive (JAR) file</li>
<li>Introducing the new APIs in the java.nio.file packag<strong>e</strong></li>
</ul>
<p style="text-align:justify;"><strong>Networking enhancements:</strong> Add the close() method in the URLClassLoader class. The introduction of this method has overcome the problem of supporting the updated implementations of resources that are taken up from a specific codebase. Moreover, the Sockets Direct Protocol (SDP) specifies the accessibility to high-performance network connections.</p>
<p style="text-align:justify;"><strong>Security enhancements: </strong>Add the following security features in Java SE 7:</p>
<ul style="text-align:justify;">
<li>Introducing Elliptic Curve Cryptography (ECC) as a new native provider that contains various ECC-based algorithms</li>
<li>Allowing you to disable weak cryptographic algorithms<strong></strong></li>
</ul>
<p style="text-align:justify;"><strong>Multithreaded custom class loaders:</strong> Modify the locking mechanism to prevent deadlock situation, as the custom class loaders were initially prone to deadlocks</p>
<p style="text-align:justify;"><strong>Enhancements in Java programming language:</strong> Introduce the following various enhancements in Java SE 7 as a programming language:</p>
<ul style="text-align:justify;">
<li>Allowing you to specify the integral types, such as byte, short, int, and long, using the binary number system by adding the 0b or 0B prefix</li>
<li>Allowing the use of underscores in the numerical literals</li>
<li>Allowing the use of strings in the switch statements</li>
<li>Improving the compiler warning that occurs while using non-reifiable formal parameters with the Varargs methods</li>
</ul>
<br />Filed under: <a href='http://dreamtechpress.wordpress.com/category/dreamtech-books/'>Dreamtech Books</a>, <a href='http://dreamtechpress.wordpress.com/category/dreamtech-books/in-simple-steps-book-series/'>In Simple Steps Book Series</a> Tagged: <a href='http://dreamtechpress.wordpress.com/tag/dreamtech/'>dreamtech</a>, <a href='http://dreamtechpress.wordpress.com/tag/dreamtech-book/'>Dreamtech Book</a>, <a href='http://dreamtechpress.wordpress.com/tag/dreamtech-books/'>Dreamtech Books</a>, <a href='http://dreamtechpress.wordpress.com/tag/dreamtech-press/'>dreamtech press</a>, <a href='http://dreamtechpress.wordpress.com/tag/features-of-java-7/'>features of java 7</a>, <a href='http://dreamtechpress.wordpress.com/tag/in-simple-steps/'>in simple steps</a>, <a href='http://dreamtechpress.wordpress.com/tag/java/'>java</a>, <a href='http://dreamtechpress.wordpress.com/tag/java-7/'>java 7</a>, <a href='http://dreamtechpress.wordpress.com/tag/java-7-in-simple-steps/'>java 7 in simple steps</a>, <a href='http://dreamtechpress.wordpress.com/tag/kogent-learning-solutions-inc/'>kogent learning solutions inc</a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/dreamtechpress.wordpress.com/4274/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/dreamtechpress.wordpress.com/4274/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/dreamtechpress.wordpress.com/4274/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/dreamtechpress.wordpress.com/4274/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/dreamtechpress.wordpress.com/4274/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/dreamtechpress.wordpress.com/4274/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/dreamtechpress.wordpress.com/4274/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/dreamtechpress.wordpress.com/4274/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/dreamtechpress.wordpress.com/4274/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/dreamtechpress.wordpress.com/4274/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/dreamtechpress.wordpress.com/4274/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/dreamtechpress.wordpress.com/4274/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/dreamtechpress.wordpress.com/4274/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/dreamtechpress.wordpress.com/4274/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=dreamtechpress.wordpress.com&amp;blog=4476588&amp;post=4274&amp;subd=dreamtechpress&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://dreamtechpress.wordpress.com/2012/01/24/exploring-features-of-java-se-7/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<georss:point>28.643869 77.244294</georss:point>
		<geo:lat>28.643869</geo:lat>
		<geo:long>77.244294</geo:long>
		<media:content url="http://1.gravatar.com/avatar/7a12a5be991e6aa970c841d415a9d6cd?s=96&#38;d=wavatar&#38;r=G" medium="image">
			<media:title type="html">Priyanka Batra</media:title>
		</media:content>

		<media:content url="http://dreamtechpress.files.wordpress.com/2012/01/java-7-in-simple-steps.jpg?w=110" medium="image">
			<media:title type="html">Java 7 In Simple Steps</media:title>
		</media:content>
	</item>
		<item>
		<title>Creating Tags</title>
		<link>http://dreamtechpress.wordpress.com/2012/01/23/creating-tags/</link>
		<comments>http://dreamtechpress.wordpress.com/2012/01/23/creating-tags/#comments</comments>
		<pubDate>Mon, 23 Jan 2012 08:48:04 +0000</pubDate>
		<dc:creator>Dreamtech Press</dc:creator>
				<category><![CDATA[Dreamtech Books]]></category>
		<category><![CDATA[Manning Publication]]></category>
		<category><![CDATA[creating tags]]></category>
		<category><![CDATA[manning publication]]></category>
		<category><![CDATA[rails 3 in action]]></category>
		<category><![CDATA[tag]]></category>

		<guid isPermaLink="false">http://dreamtechpress.wordpress.com/?p=4266</guid>
		<description><![CDATA[In this article based on chapter 10 of Rails 3 in Action, the authors explain how to create the interface for adding tags to a new ticket in a ticket-tracking application. Tags in a ticket-tracking application are extremely useful for making similar tickets easier to find and manage. In this article, we will create the [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=dreamtechpress.wordpress.com&amp;blog=4476588&amp;post=4266&amp;subd=dreamtechpress&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p style="text-align:justify;">In this article based on chapter 10 of <a href="http://www.dreamtechpress.com/TitlePage.aspx?x=978-93-5004-257-1" target="_blank"><em>Rails 3 in Action</em></a>, the authors explain how to create the interface for adding tags to a new ticket in a ticket-tracking application.<a href="http://dreamtechpress.wordpress.com/2012/01/23/creating-tags/attachment/9789350042571/" rel="attachment wp-att-4269" target="_blank"><img class="alignright size-full wp-image-4269" title="9789350042571" src="http://dreamtechpress.files.wordpress.com/2012/01/9789350042571.gif?w=600" alt=""   /></a></p>
<p style="text-align:justify;">Tags in a ticket-tracking application are extremely useful for making similar tickets easier to find and manage. In this article, we will create the interface for adding tags to a new ticket. This involves adding a new field to the new ticket page and defining a has_and_belongs_to_many association between the Ticket model and the not-yet existent Tag model.</p>
<p style="text-align:justify;"><span style="color:#800000;"><strong>Creating tags feature</strong></span></p>
<p style="text-align:justify;">For this feature, we’re going to add a text field beneath the description field on the new ticket page, just like we see in figure below:</p>
<p style="text-align:justify;"><a href="http://dreamtechpress.wordpress.com/2012/01/23/creating-tags/1-23-2012-12-33-14-pm/" rel="attachment wp-att-4267"><img class="alignleft size-full wp-image-4267" title="1-23-2012 12-33-14 PM" src="http://dreamtechpress.files.wordpress.com/2012/01/1-23-2012-12-33-14-pm.png?w=600" alt=""   /></a></p>
<p style="text-align:justify;">
<p style="text-align:justify;">
<p style="text-align:justify;">
<p style="text-align:justify;">
<p style="text-align:justify;">The words we enter into this field will become the tags for this ticket and we should see them on the ticket page. At the bottom of features/creating_tickets.feature, we’ll add a scenario that creates a new ticket with tags, shown in listing 1.</p>
<p style="text-align:justify;"><span style="color:#800000;"><em><strong>Listing 1 features/creating_tickets.fetature</strong></em></span></p>
<p style="text-align:justify;">     <span style="color:#333333;">Scenario: Creating a ticket with tags</span></p>
<p style="text-align:justify;"><span style="color:#333333;">     When I fill in “Title” with “Non-standards compliance”</span><br />
<span style="color:#333333;">     And I fill in “Description” with “My pages are ugly!”</span><br />
<span style="color:#333333;">     And I fill in “Tags” with “browser visual”</span><br />
<span style="color:#333333;">     And I press “Create Ticket”</span><br />
<span style="color:#333333;">     Then I should see “Ticket has been created.”</span><br />
<span style="color:#333333;">     And I should see “browser” in “#ticket #tags”</span><br />
<span style="color:#333333;">     And I should see “visual” in “#ticket #tags”</span></p>
<p style="text-align:justify;">When we run this scenario using <span style="color:#333333;">bundle exec cucumber</span>, it will fail <span style="color:#333333;">features/creating_tickets.feature:48</span> declaring that it can’t find the “Tags” field. Good! It’s not there yet.</p>
<p style="text-align:justify;">And I fill in <span style="color:#333333;">“Tags”</span> with <span style="color:#333333;">“browser visual”</span></p>
<p style="text-align:justify;">     <span style="color:#333333;">cannot fill in, no text field, text area or password field</span><br />
<span style="color:#333333;">        with id, name, or label ‘Tags’ found (Capybara::ElementNotFound)</span></p>
<p style="text-align:justify;">We’re going to need to take the data from this field and process each word into a new Tag object and, for that reason, we’ll use a<span style="color:#333333;"> text_field_tag</span> to render this field. <span style="color:#333333;">text_field_tag</span> is similar to a <span style="color:#333333;">text_field</span> tag, but it doesn’t have to relate to any specific object like <span style="color:#333333;">text_field</span> does; instead it will just output an input tag with the type attribute set to “text” and the name set to whatever name we give it.</p>
<p style="text-align:justify;"><span style="color:#800000;"><strong>Using text_field_tag</strong></span></p>
<p style="text-align:justify;">To define this field, we will put the following code underneath the p tag for the description in app/views/tickets/_form.html.erb.</p>
<p style="text-align:justify;"><span style="color:#333333;">&lt;p&gt;</span><br />
<span style="color:#333333;">     &lt;%= f.label_tag :tags %&gt;</span><br />
<span style="color:#333333;">     &lt;%= f.text_field_tag :tags, params[:tags] %&gt;</span><br />
<span style="color:#333333;">&lt;/p&gt;</span></p>
<p style="text-align:justify;">This field will be sent through to <span style="color:#333333;">TicketsController</span> as simply <span style="color:#333333;">params[:tags]</span>. By specifying<span style="color:#333333;"> params[:tags]</span> as the second argument to this method, we can repopulate this field when the ticket cannot be created due to it failing validation.</p>
<p style="text-align:justify;">When we re run this scenario, it no longer complains about the missing “Tags” field, but now that it can’t find the tags area for our ticket:</p>
<p style="text-align:justify;"><span style="color:#333333;">And I should see “browser” within “#ticket #tags”</span><br />
<span style="color:#333333;">scope ‘//*[@id = ‘ticket’]//*[@id = ‘tags’]’ not found &#8230;</span></p>
<p style="text-align:justify;">We will need to define a <span style="color:#333333;">#tags</span> element inside the <span style="color:#333333;">#ticket</span> element so that this part of the scenario will pass. This element will contain the tags for our ticket, which our scenario will assert as actually visible.</p>
<p style="text-align:justify;"><strong><span style="color:#800000;">Showing tags</span></strong></p>
<p style="text-align:justify;">We can add this new element to app/views/tickets/show.html.erb by adding this simple line underneath where we render the ticket’s description:</p>
<p style="text-align:justify;">     <span style="color:#333333;">&lt;div id=‘tags’&gt;&lt;%= render @ticket.tags %&gt;&lt;/div&gt;</span></p>
<p style="text-align:justify;">This creates the #ticket #tags element our feature is looking for and will render the soon-to-be-created app/views/tags/_tag.html.erb partial for every element in the also-soon-to-be-created tags association on the <span style="color:#333333;">@ticket</span> object.</p>
<p style="text-align:justify;">So what out of these two steps is our next one? We can run our scenario again to see that it cannot find the tags method for a Ticket object:</p>
<p style="text-align:justify;">    <span style="color:#333333;"> undefined method `tags’ for #&lt;Ticket:0&#215;0..</span></p>
<p style="text-align:justify;">This method is the tags method, which we’ll be defining with a <span style="color:#333333;">has_and_belongs_to_many</span> association between Ticket objects and Tag objects. It will be responsible for returning a collection of all the tags associated with the given ticket, much like a has_many would. It works in the opposite direction also: allowing us to find out what tickets have a specific tag.</p>
<p style="text-align:justify;"><span style="color:#800000;"><strong>Defining the tags association</strong></span></p>
<p style="text-align:justify;">We can define the association has_and_belongs_to_many on the Ticket model by using this line, placed after a new line after the has_many definitions inside our Ticket model:</p>
<p style="text-align:justify;">  <span style="color:#333333;">   has_and_belongs_to_many :tags</span></p>
<p style="text-align:justify;">This association will rely on a join table that doesn’t yet exist, called tags_tickets. This table contains only two fields, which are both foreign keys for tags and tickets. By using a join table, many tickets can have many tags, and vice versa.</p>
<p style="text-align:justify;">     When we rerun our scenario we’re told that there’s no constant called Tag yet:</p>
<p style="text-align:justify;">  <span style="color:#333333;">   uninitialized constant Ticket::Tag (ActionView::Template::Error)</span></p>
<p style="text-align:justify;">In other words, there is no Tag model yet. We should define this now if we want to go any further.</p>
<p style="text-align:justify;"><span style="color:#800000;"><strong>The Tag model</strong></span></p>
<p style="text-align:justify;">Our Tag model will have a single field called name which should be unique. To generate this model and its related migration we will run the rails command like this:</p>
<p style="text-align:justify;"><span style="color:#333333;">     rails g model tag name:string &#8211;timestamps false</span></p>
<p style="text-align:justify;">The<span style="color:#333333;"> timestamps</span> option passed here determines whether or not the model’s migration is generated with timestamps. Because we’ve passed the value of<span style="color:#333333;"> false</span> to this, there will be no timestamps added.</p>
<p style="text-align:justify;">Before we run this migration, we will need to add the join table called <span style="color:#333333;">tags_tickets</span> to our database, which has two fields: one called <span style="color:#333333;">ticket_id</span> and the other <span style="color:#333333;">tag_id</span>. The table name is the pluralized names of the two models it is joining, sorted in alphabetical order. This table will have no primary key as we only need it to join the<span style="color:#333333;"> tags</span> and<span style="color:#333333;"> tickets</span> table. We are never going to look for individual records from this table.</p>
<p style="text-align:justify;">To define the table we will put this tags_tickets in the self.up section of our db/migrate/[timestamp]_create_tags.rb migration:</p>
<p style="text-align:justify;">   <span style="color:#333333;">  create_table :tags_tickets, :id =&gt; false do | t |</span><br />
<span style="color:#333333;">        t.integer :tag_id, :ticket_id</span><br />
<span style="color:#333333;">     end</span></p>
<p style="text-align:justify;">The<span style="color:#333333;"> : id =&gt; false</span> option passed to <span style="color:#333333;">create_table</span> here tells Active Record to create the table without the<span style="color:#333333;"> id</span> field.</p>
<p style="text-align:justify;">We should also add drop_table <span style="color:#333333;">:tag_tickets</span> to the <span style="color:#333333;">self.down</span> method in this migration too so that, if we need to, we can undo this migration. Next, we will run the migration on our development database by running rake db:migrate and our test database by running<span style="color:#333333;"> rake db:test:prepare</span>. This will create the tags and <span style="color:#333333;">tags_tickets</span> tables. When we run this scenario again with <span style="color:#333333;">bundle exec cucumber features/creating_tickets:48</span>, it is now satisfied that the tags method is defined and has now moved on to whining that it can’t find the tag we specified:</p>
<p style="text-align:justify;">     <span style="color:#333333;">And I should see “browser” within “#ticket #tags”</span><br />
<span style="color:#333333;">        Failed assertion, no message given. (MiniTest::Assertion)</span></p>
<p style="text-align:justify;">This is because we’re not doing anything to associate the text from the “Tags” field to the ticket we’ve just created. We need to parse the content from this field into new Tag objects and then associate them with the ticket we are creating, which we’ll look at how to do right now.</p>
<p style="text-align:justify;"><strong><span style="color:#800000;">Displaying a ticket’s tags</span></strong></p>
<p style="text-align:justify;">The<span style="color:#333333;"> params[:tags]</span> in <span style="color:#333333;">TicketsController’s create</span> is the value from our <span style="color:#333333;">“Tags”</span> field on app/views/tickets/_form.html.erb. This is also the field we need to parse into Tag objects and associate them with the Ticket object we are creating.</p>
<p style="text-align:justify;">To do this, we will alter the create action by adding this line directly after <span style="color:#333333;">@ticket.save</span>:</p>
<p style="text-align:justify;"><span style="color:#333333;">@ticket.tag!(params[:tags])</span></p>
<p style="text-align:justify;">This method will parse the tags from params[:tags], convert them into new Tag objects, and associate them with the ticket. We can define this new method at the bottom of our Ticket model like this:</p>
<p style="text-align:justify;"><span style="color:#333333;">def tag!(tags)</span><br />
<span style="color:#333333;">tags = tags.split(“ “).map do |tag|</span><br />
<span style="color:#333333;">     Tag.find_or_create_by_name(tag)</span><br />
<span style="color:#333333;">   end</span><br />
<span style="color:#333333;">   self.tags &lt;&lt; tags</span><br />
<span style="color:#333333;">end</span></p>
<p style="text-align:justify;">On the first line here, we use the<span style="color:#333333;"> split</span> method to split our string into an array, and then the map method to iterate through every value in the array. Inside the block for map, we use a dynamic finder to find or create a tag with a specified name. <span style="color:#333333;">find_or_create_by</span> methods will always return a record, whether it be a preexisting or a recently created one.</p>
<p style="text-align:justify;">After all the tags have been iterated through, we assign them to a ticket by using the &lt;&lt; method on the tags association. The tag! method we have just written will create the tags that we will display on the app/views/tickets/show.html.erb view by using this line:</p>
<p style="text-align:justify;">    <span style="color:#333333;"> &lt;%= render @ticket.tags %&gt;</span></p>
<p style="text-align:justify;">When we run this scenario again by running <span style="color:#333333;">bundle exec cucumber features/creating_tickets.feature:48</span>, we will see it’s this line that is failing with an error:<br />
<span style="color:#333333;">Missing partial tags/tag &#8230;</span></p>
<p style="text-align:justify;">Therefore, the next step is to write the tag partial, which our feature has just complained about. To do this, we will put the following code in app/views/tags/_tag.html.erb:</p>
<p style="text-align:justify;">     <span style="color:#333333;">&lt;span class=‘tag’&gt;&lt;%= tag.name %&gt;&lt;/span&gt;</span></p>
<p style="text-align:justify;">By wrapping the tag name in a span with the of tag, class, it will be styled as defined in our stylesheet. With this partial defined, this puts the final piece of the puzzle for this feature into place. When we run our scenario again by running <span style="color:#333333;">bundle exec cucumber features/creating_tickets.feature:48 it passes</span>:</p>
<p style="text-align:justify;">    <span style="color:#333333;"> 1 scenario (1 passed)</span><br />
<span style="color:#333333;">     15 steps (15 passed)</span></p>
<p style="text-align:justify;">Great! This scenario is now complete. When a user creates a ticket, they are able to assign tags to that ticket and they display along with the ticket’s information on the show action for <span style="color:#333333;">TicketsController</span>.</p>
<p style="text-align:justify;"><a href="http://dreamtechpress.wordpress.com/2012/01/23/creating-tags/1-23-2012-12-49-11-pm/" rel="attachment wp-att-4268"><img class="alignleft size-full wp-image-4268" title="1-23-2012 12-49-11 PM" src="http://dreamtechpress.files.wordpress.com/2012/01/1-23-2012-12-49-11-pm.jpg?w=600" alt=""   /></a></p>
<p style="text-align:justify;">
<p style="text-align:justify;">
<p style="text-align:justify;">
<p style="text-align:justify;">
<p style="text-align:justify;">We will now commit this change, but, of course, before we do, we’ll ensure that we haven’t broken anything by running rake cucumber:ok spec.</p>
<p style="text-align:justify;">     <span style="color:#333333;">53 scenarios (53 passed)</span><br />
<span style="color:#333333;">     620 steps (620 passed)</span><br />
<span style="color:#333333;">     # and</span><br />
<span style="color:#333333;">     27 examples, 0 failures, 10 pending</span></p>
<p style="text-align:justify;">Good to see that nothing’s blown up this time. Let’s commit this change.</p>
<p style="text-align:justify;">   <span style="color:#333333;">  git add .</span><br />
<span style="color:#333333;">     git commit -m “Users can tag tickets upon creation”</span><br />
<span style="color:#333333;">     git push</span></p>
<p style="text-align:justify;">Now that users are able to add a tag to a ticket when that ticket’s being created, we should also let them add tags to a ticket when they create a comment as well.</p>
<p style="text-align:justify;">When a ticket’s discussion happens, new information may come about that would require that another tag be added to the ticket to group it into a different set. A perfect way to let our users do this would be to let them add it when they comment.</p>
<p style="text-align:justify;"><span style="color:#800000;"><strong>Summary</strong></span></p>
<p style="text-align:justify;">We’ve covered how to use a <span style="color:#333333;">has_and_belongs_to_many</span> association to define a link between tickets and tags. Tickets are capable of having more than one tag, but a tag is also capable of having more than one ticket assigned to it and, therefore, we use this type of association. A <span style="color:#333333;">has_and_belongs_to_many</span> could be used to associate people and the locations they&#8217;ve been.</p>
<br />Filed under: <a href='http://dreamtechpress.wordpress.com/category/dreamtech-books/'>Dreamtech Books</a>, <a href='http://dreamtechpress.wordpress.com/category/manning-publication/'>Manning Publication</a> Tagged: <a href='http://dreamtechpress.wordpress.com/tag/creating-tags/'>creating tags</a>, <a href='http://dreamtechpress.wordpress.com/tag/manning-publication-2/'>manning publication</a>, <a href='http://dreamtechpress.wordpress.com/tag/rails-3-in-action/'>rails 3 in action</a>, <a href='http://dreamtechpress.wordpress.com/tag/tag/'>tag</a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/dreamtechpress.wordpress.com/4266/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/dreamtechpress.wordpress.com/4266/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/dreamtechpress.wordpress.com/4266/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/dreamtechpress.wordpress.com/4266/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/dreamtechpress.wordpress.com/4266/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/dreamtechpress.wordpress.com/4266/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/dreamtechpress.wordpress.com/4266/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/dreamtechpress.wordpress.com/4266/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/dreamtechpress.wordpress.com/4266/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/dreamtechpress.wordpress.com/4266/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/dreamtechpress.wordpress.com/4266/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/dreamtechpress.wordpress.com/4266/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/dreamtechpress.wordpress.com/4266/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/dreamtechpress.wordpress.com/4266/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=dreamtechpress.wordpress.com&amp;blog=4476588&amp;post=4266&amp;subd=dreamtechpress&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://dreamtechpress.wordpress.com/2012/01/23/creating-tags/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<georss:point>28.643869 77.244294</georss:point>
		<geo:lat>28.643869</geo:lat>
		<geo:long>77.244294</geo:long>
		<media:content url="http://1.gravatar.com/avatar/7a12a5be991e6aa970c841d415a9d6cd?s=96&#38;d=wavatar&#38;r=G" medium="image">
			<media:title type="html">Priyanka Batra</media:title>
		</media:content>

		<media:content url="http://dreamtechpress.files.wordpress.com/2012/01/9789350042571.gif" medium="image">
			<media:title type="html">9789350042571</media:title>
		</media:content>

		<media:content url="http://dreamtechpress.files.wordpress.com/2012/01/1-23-2012-12-33-14-pm.png" medium="image">
			<media:title type="html">1-23-2012 12-33-14 PM</media:title>
		</media:content>

		<media:content url="http://dreamtechpress.files.wordpress.com/2012/01/1-23-2012-12-49-11-pm.jpg" medium="image">
			<media:title type="html">1-23-2012 12-49-11 PM</media:title>
		</media:content>
	</item>
		<item>
		<title>Software Quality Assurance</title>
		<link>http://dreamtechpress.wordpress.com/2012/01/20/software-quality-assurance/</link>
		<comments>http://dreamtechpress.wordpress.com/2012/01/20/software-quality-assurance/#comments</comments>
		<pubDate>Fri, 20 Jan 2012 13:09:07 +0000</pubDate>
		<dc:creator>Dreamtech Press</dc:creator>
				<category><![CDATA[Dreamtech Books]]></category>
		<category><![CDATA[Dreamtech Engineering Textbooks]]></category>
		<category><![CDATA[dreamtech]]></category>
		<category><![CDATA[dreamtech press]]></category>
		<category><![CDATA[dreamtechpress]]></category>
		<category><![CDATA[kogent learning solutions]]></category>
		<category><![CDATA[kogent learning solutions inc]]></category>
		<category><![CDATA[software engineering]]></category>
		<category><![CDATA[software quality assurance]]></category>

		<guid isPermaLink="false">http://dreamtechpress.wordpress.com/?p=4252</guid>
		<description><![CDATA[Free Excerpt from Chapter 7 of the book Software Engineering by Kogent Learning Solutions Inc. SQA can be defined as a conformance to software requirement specification. SQA convinces that quality standards will be followed throughout the software development process and all the implicit as well as explicit requirements will be met. The idea of quality [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=dreamtechpress.wordpress.com&amp;blog=4476588&amp;post=4252&amp;subd=dreamtechpress&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p style="text-align:justify;">Free Excerpt from Chapter 7 of the book <strong>Software Engineering</strong><em> by Kogent Learning Solutions Inc.</em></p>
<p style="text-align:justify;">SQA can be defined as a conformance to software requirement specification. SQA convinces that quality standards will be followed throughout the software development process and<a href="http://dreamtechpress.wordpress.com/2012/01/20/software-quality-assurance/attachment/9789350042663/" rel="attachment wp-att-4254" target="_blank"><img class="alignright size-full wp-image-4254" title="9789350042663" src="http://dreamtechpress.files.wordpress.com/2012/01/9789350042663.gif?w=600" alt=""   /></a> all the implicit as well as explicit requirements will be met. The idea of quality assurance came into being at Bell Labs in 1916, which is followed by quality control approaches in 1940. Nowadays, every software company focuses on software quality and invests a lot of money and resources in managing the quality of the software product. All the persons in an organization somehow contribute for SQA. Thus, a group of persons contributing toward the quality of the software product is known as SQA group. The group handles some of the following SQA activities:</p>
<ul style="text-align:justify;">
<li>Planning</li>
<li>Record keeping</li>
<li>Analysis</li>
<li>Reporting</li>
</ul>
<p style="text-align:justify;">SQA group also takes the responsibility to prepare an SQA plan, which is the basis for all SQA activities. The plan describes the following tasks:</p>
<ul style="text-align:justify;">
<li>Product evaluation activities</li>
<li>Audit and review of the product</li>
<li>Quality standards for the product</li>
<li>Error tracking and handling mechanism</li>
<li>Document preparation</li>
<li>Feedback to the software team</li>
</ul>
<p style="text-align:justify;">SQA or standards are the basis of effective quality management. The standards can be international, national, or organizational. Standards can be considered at the following two levels:</p>
<ul style="text-align:justify;">
<li><strong>Product standards:</strong> Define the characteristics that all components of the product should produce</li>
<li><strong>Process standards:</strong> Define the mechanism in which the software process should be constituted</li>
</ul>
<p style="text-align:justify;">However, product and process standards are not seen as relevant and up-to-date by software engineers. The relation between the software processes and product quality is complex and   poorly understood. Software process is very much responsible for the software product quality. A predefined process is repeatedly followed for the hardware development. Contrary to hardware development process, it is more complex to manage the software development process because the application of individual skills and experience is particularly important in software development. The important software quality assurance measures are constructive, analytical, and organizational measures.</p>
<p style="text-align:justify;">The constructive measures ensure the following concerns:</p>
<ul style="text-align:justify;">
<li>There is consistent application of methods in all the phases of development process</li>
<li>The development tools are used suitably</li>
<li>The development of software is based on high-quality and semi-finished products</li>
<li>The development documentation is maintained</li>
</ul>
<p style="text-align:justify;">The analytical measures ensure the following concerns:</p>
<ul style="text-align:justify;">
<li>There is static as well as dynamic program analyses</li>
<li>Adequate test cases are systematically chosen</li>
<li>The analysis results are maintained consistently</li>
</ul>
<p style="text-align:justify;">The organizational measures ensure the following concerns:</p>
<ul style="text-align:justify;">
<li>The software developers should be informed and educated about the new technologies</li>
<li>The quality assurance should be maintained</li>
</ul>
<p style="text-align:justify;">The quality assurance parameters are as follows:</p>
<ul style="text-align:justify;">
<li>Quality of external documentation</li>
<li>Programming language</li>
<li>Availability of tools</li>
<li>Programmer experience in data processing</li>
<li>Programmer experience in the functional area</li>
<li>Effect of project communication</li>
<li>Independent modules for individual assignment</li>
<li>Realize the requirements of the user</li>
</ul>
<p style="text-align:justify;">Therefore, to determine the appropriate level of Quality Assurance/Quality Control (QA/QC) resources and effort to be allocated, one needs to determine the acceptable level of risk.</p>
<p style="text-align:justify;">The origin of defect in software development process lies in different stages of software development. The statistics of distribution of defects over phases are as follows:</p>
<ul style="text-align:justify;">
<li>Requirement phase: 7%</li>
<li>Design phase: 14%</li>
<li>Code phase: 49%</li>
<li>Others: 30%</li>
</ul>
<p style="text-align:justify;">Most organizations admit that their testing has the following drawbacks:</p>
<ul style="text-align:justify;">
<li>Frequently ad hoc</li>
<li>Poorly documented</li>
<li>Inconsistently executed</li>
<li>Primarily manual</li>
<li>Limited in scope</li>
</ul>
<p style="text-align:justify;"><strong>Approaches to Software Quality Assurance</strong></p>
<p style="text-align:justify;">SQA is a consequence of a problem that came into existence due to poor quality of the software.  For the past three decades, software industry is going through software crisis and poor quality software. SQA is an activity that is followed throughout the software development cycle, that is, analysis, design, coding, and testing. It ensures software quality as per the software engineering standards through the application of an FTR mechanism, a thorough testing strategy, and better control over software products. SQA suggests quality in terms of measurable factors, indices, and metrics.</p>
<p style="text-align:justify;">A number of software engineering institutes are looking forward to a more structured and formal approach to SQA. It is suggested that there must be mechanism that should rely on requirement model, programming languages, and mathematical methods to make sure that the software is fulfilling all its specifications and is up to the quality standards.</p>
<p style="text-align:justify;"><strong>Reliability</strong></p>
<p style="text-align:justify;">Software reliability is another aspect to ensure software quality. Reliability refers to the ability of the software system to perform its intended functions satisfactorily and correctly as expected by the user. It gives a measure of correctness and robustness of the system. Robustness measures the degree of the software system to perform correctly on occurrence of some unexpected or unrealized situation. Software reliability cannot be measured directly. It is measured on the basis of related factors, such as faults, defects, and failures identified, that affect the reliability of a software system.</p>
<p style="text-align:justify;">Software reliability can be measured using the following three measurement matrices:</p>
<ul>
<li><strong>Product metrics:</strong> Apply to reliability of the software product. Size of the software reflects the degree of complexity, development effort involved, and reliability of the software. Lines of Code (LOC), or KLOC, are used as metrics to measure the software size. Typically, source code is measured in Source Lines of Code (SLOC) or Thousand Source Lines of Code (KSLOC) and instructions are counted, but the comments and other non-executable statements are not counted. Function point metric is another method used for measuring the functionality of a specified software system. It is based on the number of inputs to the system, outputs from the system, master files used with the system, and interfaces to the system. The method can also be applied to measure the size of a software system. It gives an indication about the functional complexity of the software system. There is a method called complexity-oriented metrics that is used to measure the complexity of a software system in terms of its control structure. This method is applied by representing the program code in a graphical manner. Another metrics applied for estimating the faults and reliability of a system is the test coverage metrics in which different tests are performed on the software product.</li>
</ul>
<ul>
<li><strong>Project metrics:</strong> Apply to the reliability of the processes applied for the management of project and development of the software. Higher reliability can be achieved by applying more effective methods for software development and project management.</li>
</ul>
<ul>
<li><strong>Process metrics:</strong> Apply to the reliability of software processes applied for development. Process metrics can also be applied to ensure quality.</li>
</ul>
<p style="text-align:justify;">There are different techniques that can be applied to improve the reliability of the software. The software needs to be verified, validated, and thoroughly tested before being deployed to ensure reliability. Testing helps in identifying any defects that may exist in the system. The defects identified can then be removed from the software by making proper modifications to ensure failure-free execution and user-desired reliability.</p>
<p style="text-align:justify;">
<br />Filed under: <a href='http://dreamtechpress.wordpress.com/category/dreamtech-books/'>Dreamtech Books</a>, <a href='http://dreamtechpress.wordpress.com/category/dreamtech-books/dreamtech-engineering-textbooks/'>Dreamtech Engineering Textbooks</a> Tagged: <a href='http://dreamtechpress.wordpress.com/tag/dreamtech/'>dreamtech</a>, <a href='http://dreamtechpress.wordpress.com/tag/dreamtech-books/'>Dreamtech Books</a>, <a href='http://dreamtechpress.wordpress.com/tag/dreamtech-press/'>dreamtech press</a>, <a href='http://dreamtechpress.wordpress.com/tag/dreamtechpress/'>dreamtechpress</a>, <a href='http://dreamtechpress.wordpress.com/tag/kogent-learning-solutions/'>kogent learning solutions</a>, <a href='http://dreamtechpress.wordpress.com/tag/kogent-learning-solutions-inc/'>kogent learning solutions inc</a>, <a href='http://dreamtechpress.wordpress.com/tag/software-engineering/'>software engineering</a>, <a href='http://dreamtechpress.wordpress.com/tag/software-quality-assurance/'>software quality assurance</a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/dreamtechpress.wordpress.com/4252/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/dreamtechpress.wordpress.com/4252/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/dreamtechpress.wordpress.com/4252/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/dreamtechpress.wordpress.com/4252/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/dreamtechpress.wordpress.com/4252/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/dreamtechpress.wordpress.com/4252/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/dreamtechpress.wordpress.com/4252/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/dreamtechpress.wordpress.com/4252/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/dreamtechpress.wordpress.com/4252/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/dreamtechpress.wordpress.com/4252/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/dreamtechpress.wordpress.com/4252/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/dreamtechpress.wordpress.com/4252/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/dreamtechpress.wordpress.com/4252/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/dreamtechpress.wordpress.com/4252/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=dreamtechpress.wordpress.com&amp;blog=4476588&amp;post=4252&amp;subd=dreamtechpress&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://dreamtechpress.wordpress.com/2012/01/20/software-quality-assurance/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<georss:point>28.643869 77.244294</georss:point>
		<geo:lat>28.643869</geo:lat>
		<geo:long>77.244294</geo:long>
		<media:content url="http://1.gravatar.com/avatar/7a12a5be991e6aa970c841d415a9d6cd?s=96&#38;d=wavatar&#38;r=G" medium="image">
			<media:title type="html">Priyanka Batra</media:title>
		</media:content>

		<media:content url="http://dreamtechpress.files.wordpress.com/2012/01/9789350042663.gif" medium="image">
			<media:title type="html">9789350042663</media:title>
		</media:content>
	</item>
		<item>
		<title>Exploring the XAML Element Tree in WPF</title>
		<link>http://dreamtechpress.wordpress.com/2012/01/07/exploring-the-xaml-element-tree-in-wpf/</link>
		<comments>http://dreamtechpress.wordpress.com/2012/01/07/exploring-the-xaml-element-tree-in-wpf/#comments</comments>
		<pubDate>Sat, 07 Jan 2012 11:39:12 +0000</pubDate>
		<dc:creator>Dreamtech Press</dc:creator>
				<category><![CDATA[Dreamtech Books]]></category>
		<category><![CDATA[In Simple Steps Book Series]]></category>
		<category><![CDATA[dreamtech press]]></category>
		<category><![CDATA[kogent learning solutions inc]]></category>
		<category><![CDATA[wpf]]></category>
		<category><![CDATA[wpf 4.0]]></category>
		<category><![CDATA[wpf 4.0 in simple steps]]></category>
		<category><![CDATA[xaml]]></category>

		<guid isPermaLink="false">http://dreamtechpress.wordpress.com/?p=4239</guid>
		<description><![CDATA[Free Excerpt from Chapter 2 of the book WPF 4.0 In Simple Steps by Kogent Learning Solutions Inc. As you know, you can create both standalone applications and XBAPs with the help of WPF. When you create a WPF application in Visual Studio 2010, the default XAML code provides the default UI of the application. [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=dreamtechpress.wordpress.com&amp;blog=4476588&amp;post=4239&amp;subd=dreamtechpress&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p style="text-align:justify;">Free Excerpt from Chapter 2 of the book <span style="color:#800000;"><strong><a href="http://www.dreamtechpress.com/TitlePage.aspx?x=978-93-5004-234-2"><span style="color:#800000;">WPF 4.0 In Simple Steps</span></a></strong></span><em> by Kogent Learning Solutions Inc.</em></p>
<p style="text-align:justify;">As you know, you can create both standalone applications and XBAPs with the help of WPF. When you create a WPF application in Visual Studio 2010, the default XAML code provides<a href="http://dreamtechpress.wordpress.com/2012/01/07/exploring-the-xaml-element-tree-in-wpf/9789350042342-2/" rel="attachment wp-att-4240"><img class="alignright size-full wp-image-4240" title="9789350042342" src="http://dreamtechpress.files.wordpress.com/2012/01/9789350042342.gif?w=600" alt=""   /></a> the default UI of the application. The XAML code is a hierarchy of several XAML elements, which are markup entities that indicate some information about the UI controls. The default XAML code of a WPF application contains two XAML elements— Window and Grid for standalone applications and Page and Grid for XBAPs. The Window element and the Page element are the root elements in standalone applications and XBAPs, respectively. There can be exactly one root element in the XAML code of a WPF application. In addition, the root element, the WPF application can have exactly one child element. By default, the Grid element is the child element of the Window and Page elements in the standalone applications and XBAPs, respectively.</p>
<p style="text-align:justify;">However, in WPF standalone and XBAP applications you can have other child elements by adding controls in the parent elements. When you add controls to a WPF application at design time, each control corresponds to an XAML element. These elements become the child elements of the default Grid element. Depending on the type of the element, these child elements can in turn contain other child elements. For example-The Button control is a child element of the Grid control, which in turn can have Label as a child element. In this way, the entire UI of a WPF application takes the form of a tree-like structure.</p>
<p style="text-align:justify;">In this tree, there is one root node with only one child node. The child node in turn has one or more child nodes. The tree branches out to show the UI of the application as you keep adding controls or XAML elements in a WPF application.</p>
<p style="text-align:justify;">Let’s take an example of a WPF standalone application named MyWPFApplication, which is created using Visual C#. Listing 2.1 shows the XAML code of the application:</p>
<p style="text-align:justify;"><span style="color:#808080;"><strong>Listing 2.1: Showing the XAML Code of the MyWPFApplication Application</strong></span></p>
<p style="text-align:justify;"><span style="color:#808080;">&lt;Window x:Class=&#8221;MyWPFApplication.MainWindow</span></p>
<p style="text-align:justify;"><span style="color:#808080;">   xmlns=&#8221;http://schemas.microsoft.com/winfx/2006/xaml/presentation&#8221;</span></p>
<p style="text-align:justify;"><span style="color:#808080;">   xmlns:x=&#8221;http://schemas.microsoft.com/winfx/2006/xaml&#8221;</span></p>
<p style="text-align:justify;"><span style="color:#808080;">   Title=&#8221;MainWindow&#8221; Height=&#8221;300&#8243; Width=&#8221;300&#8243;&gt;</span></p>
<p style="text-align:justify;"><span style="color:#808080;">   &lt;Grid&gt;</span></p>
<p style="text-align:justify;"><span style="color:#808080;">         &lt;Button Margin=&#8221;100,25,100,200&#8243; Name=&#8221;button1&#8243;&gt;Welcome&lt;/Button&gt;</span></p>
<p style="text-align:justify;"><span style="color:#808080;">         &lt;Button Margin=&#8221;100,100,100,125&#8243; Name=&#8221;button2&#8243;&gt;WPF&lt;/Button&gt;</span></p>
<p style="text-align:justify;"><span style="color:#808080;">         &lt;Button Margin=&#8221;50,150,50,10&#8243; Name=&#8221;button3&#8243;&gt;</span></p>
<p style="text-align:justify;"><span style="color:#808080;">                 &lt;Label Margin=&#8221;5,5,5,5&#8243; Name=&#8221;label1&#8243;&gt;XAML&lt;/Label&gt;</span></p>
<p style="text-align:justify;"><span style="color:#808080;">         &lt;/Button&gt;</span></p>
<p style="text-align:justify;"><span style="color:#808080;">   &lt;/Grid&gt;</span></p>
<p style="text-align:justify;"><span style="color:#808080;">&lt;/Window&gt;</span></p>
<p style="text-align:justify;">In Listing 2.1, there are four XAML elements, namely Window, Grid, Button, and Label. The Window and Grid elements exist in the WPF application by default, while the Button and Label elements are added by dragging and dropping the <strong>Button</strong> and <strong>Label</strong> controls from the Toolbox.</p>
<br />Filed under: <a href='http://dreamtechpress.wordpress.com/category/dreamtech-books/'>Dreamtech Books</a>, <a href='http://dreamtechpress.wordpress.com/category/dreamtech-books/in-simple-steps-book-series/'>In Simple Steps Book Series</a> Tagged: <a href='http://dreamtechpress.wordpress.com/tag/dreamtech-press/'>dreamtech press</a>, <a href='http://dreamtechpress.wordpress.com/tag/kogent-learning-solutions-inc/'>kogent learning solutions inc</a>, <a href='http://dreamtechpress.wordpress.com/tag/wpf/'>wpf</a>, <a href='http://dreamtechpress.wordpress.com/tag/wpf-4-0/'>wpf 4.0</a>, <a href='http://dreamtechpress.wordpress.com/tag/wpf-4-0-in-simple-steps/'>wpf 4.0 in simple steps</a>, <a href='http://dreamtechpress.wordpress.com/tag/xaml/'>xaml</a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/dreamtechpress.wordpress.com/4239/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/dreamtechpress.wordpress.com/4239/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/dreamtechpress.wordpress.com/4239/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/dreamtechpress.wordpress.com/4239/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/dreamtechpress.wordpress.com/4239/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/dreamtechpress.wordpress.com/4239/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/dreamtechpress.wordpress.com/4239/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/dreamtechpress.wordpress.com/4239/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/dreamtechpress.wordpress.com/4239/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/dreamtechpress.wordpress.com/4239/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/dreamtechpress.wordpress.com/4239/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/dreamtechpress.wordpress.com/4239/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/dreamtechpress.wordpress.com/4239/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/dreamtechpress.wordpress.com/4239/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=dreamtechpress.wordpress.com&amp;blog=4476588&amp;post=4239&amp;subd=dreamtechpress&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://dreamtechpress.wordpress.com/2012/01/07/exploring-the-xaml-element-tree-in-wpf/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<georss:point>28.643869 77.244294</georss:point>
		<geo:lat>28.643869</geo:lat>
		<geo:long>77.244294</geo:long>
		<media:content url="http://1.gravatar.com/avatar/7a12a5be991e6aa970c841d415a9d6cd?s=96&#38;d=wavatar&#38;r=G" medium="image">
			<media:title type="html">Priyanka Batra</media:title>
		</media:content>

		<media:content url="http://dreamtechpress.files.wordpress.com/2012/01/9789350042342.gif" medium="image">
			<media:title type="html">9789350042342</media:title>
		</media:content>
	</item>
		<item>
		<title>Discovering Different Types of Construction</title>
		<link>http://dreamtechpress.wordpress.com/2012/01/07/discovering-different-types-of-construction/</link>
		<comments>http://dreamtechpress.wordpress.com/2012/01/07/discovering-different-types-of-construction/#comments</comments>
		<pubDate>Sat, 07 Jan 2012 11:22:31 +0000</pubDate>
		<dc:creator>Dreamtech Press</dc:creator>
				<category><![CDATA[Dreamtech Books]]></category>
		<category><![CDATA[In Simple Steps Book Series]]></category>
		<category><![CDATA[autocad 2012]]></category>
		<category><![CDATA[autocad 2012 in simple steps]]></category>
		<category><![CDATA[construction project]]></category>
		<category><![CDATA[dreamtech press]]></category>
		<category><![CDATA[kogent learning solutions inc]]></category>
		<category><![CDATA[types of construction]]></category>

		<guid isPermaLink="false">http://dreamtechpress.wordpress.com/?p=4233</guid>
		<description><![CDATA[Free Excerpt from Chapter 5 of the book &#8211; AutoCAD 2012 In Simple Steps by Kogent Learning Solutions Inc. Construction is a procedure that involves creating buildings or assembling infrastructures. It requires higher level of supervision and effective planning to handle tasks that result in the successful execution of projects. Construction can be divided into [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=dreamtechpress.wordpress.com&amp;blog=4476588&amp;post=4233&amp;subd=dreamtechpress&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p style="text-align:justify;">Free Excerpt from Chapter 5 of the book &#8211; <strong><span style="color:#993300;"><a href="http://www.dreamtechpress.com/TitlePage.aspx?x=978-93-5004-277-9"><span style="color:#993300;">AutoCAD 2012 In Simple Steps</span></a></span></strong><em> by Kogent Learning Solutions Inc.</em></p>
<p style="text-align:justify;">Construction is a procedure that involves creating buildings or assembling infrastructures. It requires higher level of supervision and effective planning to handle tasks that result in<a href="http://dreamtechpress.wordpress.com/2012/01/07/discovering-different-types-of-construction/9789350042779-2/" rel="attachment wp-att-4234"><img class="alignright size-full wp-image-4234" title="9789350042779" src="http://dreamtechpress.files.wordpress.com/2012/01/9789350042779.gif?w=600" alt=""   /></a> the successful execution of projects. Construction can be divided into three different areas: building, heavy/civil, and industrial. Each of these areas requires a team to plan, design, and construct the project. AutoCAD 2012 helps in designing the planned requirements in a defined space without constructing them in the physical or real form. Firstly, the entire requirements for the project are decided and then the designers work on these requirements to design the project in AutoCAD 2012.</p>
<p style="text-align:justify;"><strong>Building Construction</strong></p>
<p style="text-align:justify;">Building construction is an area of construction where small or big structures are added to the existing real properties. Generally, the building construction projects are small renovations, such as adding a room or refurbishing a bathroom. The owner of a property handles the laborers as well as manages the cost of the entire project. In other words, the owner is responsible for managing economic limits, designing plans, estimating cost, and handling legal deliberations. Moreover, the owners categorized for public or private constructions uses various delivery methodologies, such as hard bod, construction management, construction management at risk, and negotiated price, can do building constructions.  Materials, such as timber, stone, and brick, are widely used in building constructions. Cost of construction is estimated on per square foot basis. This can vary significantly on local sites considering their conditions and economies of scales.</p>
<p style="text-align:justify;"><strong>Heavy/Civil Construction</strong></p>
<p style="text-align:justify;">Heavy/civil construction involves creating high-end infrastructures that deal with the environment and building parameters. To construct heavy/civil structures, the private agencies or companies need to get the legal permit for the construction. In addition, they must have the specialization over the required materials and the procedure to construct the heavy structures. Moreover, the selection of materials, such as brick, stone, and timber, available in the construction sites must be supervised by the experts. Heavy/civil construction also considers the cost of construction on the basis of per square meter or per square foot. These cost specifications are based on different conditions, such as location of site, local regulations, economies of scale, and the availability of skilled civil engineers.</p>
<p style="text-align:justify;"><strong>Industrial Construction</strong></p>
<p style="text-align:justify;">Apart from having a smaller part in the area of construction, industrial construction plays an important role in constructing structures. The owners of industrial projects are usually large, for-profit, industrial corporations. You can organize these industrial corporations as infrastructure, metallurgical and material handling, medicine, petroleum, chemical, power generation, and manufacturing. The requirements related to the industrial construction highly considered from the expertise in planning,cost estimating, design, and constructing methodologies. You also need a team of individuals like any other construction areas, to ensure a successful project undertaken by big construction companies.</p>
<br />Filed under: <a href='http://dreamtechpress.wordpress.com/category/dreamtech-books/'>Dreamtech Books</a>, <a href='http://dreamtechpress.wordpress.com/category/dreamtech-books/in-simple-steps-book-series/'>In Simple Steps Book Series</a> Tagged: <a href='http://dreamtechpress.wordpress.com/tag/autocad-2012/'>autocad 2012</a>, <a href='http://dreamtechpress.wordpress.com/tag/autocad-2012-in-simple-steps/'>autocad 2012 in simple steps</a>, <a href='http://dreamtechpress.wordpress.com/tag/construction-project/'>construction project</a>, <a href='http://dreamtechpress.wordpress.com/tag/dreamtech-press/'>dreamtech press</a>, <a href='http://dreamtechpress.wordpress.com/tag/kogent-learning-solutions-inc/'>kogent learning solutions inc</a>, <a href='http://dreamtechpress.wordpress.com/tag/types-of-construction/'>types of construction</a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/dreamtechpress.wordpress.com/4233/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/dreamtechpress.wordpress.com/4233/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/dreamtechpress.wordpress.com/4233/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/dreamtechpress.wordpress.com/4233/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/dreamtechpress.wordpress.com/4233/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/dreamtechpress.wordpress.com/4233/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/dreamtechpress.wordpress.com/4233/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/dreamtechpress.wordpress.com/4233/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/dreamtechpress.wordpress.com/4233/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/dreamtechpress.wordpress.com/4233/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/dreamtechpress.wordpress.com/4233/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/dreamtechpress.wordpress.com/4233/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/dreamtechpress.wordpress.com/4233/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/dreamtechpress.wordpress.com/4233/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=dreamtechpress.wordpress.com&amp;blog=4476588&amp;post=4233&amp;subd=dreamtechpress&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://dreamtechpress.wordpress.com/2012/01/07/discovering-different-types-of-construction/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<georss:point>28.643869 77.244294</georss:point>
		<geo:lat>28.643869</geo:lat>
		<geo:long>77.244294</geo:long>
		<media:content url="http://1.gravatar.com/avatar/7a12a5be991e6aa970c841d415a9d6cd?s=96&#38;d=wavatar&#38;r=G" medium="image">
			<media:title type="html">Priyanka Batra</media:title>
		</media:content>

		<media:content url="http://dreamtechpress.files.wordpress.com/2012/01/9789350042779.gif" medium="image">
			<media:title type="html">9789350042779</media:title>
		</media:content>
	</item>
		<item>
		<title>Collecting payment through PayPal</title>
		<link>http://dreamtechpress.wordpress.com/2012/01/07/collecting-payment-through-paypal/</link>
		<comments>http://dreamtechpress.wordpress.com/2012/01/07/collecting-payment-through-paypal/#comments</comments>
		<pubDate>Sat, 07 Jan 2012 07:48:58 +0000</pubDate>
		<dc:creator>Dreamtech Press</dc:creator>
				<category><![CDATA[Dreamtech Books]]></category>
		<category><![CDATA[Manning Publication]]></category>
		<category><![CDATA[dreamtech press]]></category>
		<category><![CDATA[lift in action]]></category>
		<category><![CDATA[manning]]></category>
		<category><![CDATA[paypal]]></category>
		<category><![CDATA[paypal programming]]></category>
		<category><![CDATA[Web Development]]></category>
		<category><![CDATA[Web programming]]></category>

		<guid isPermaLink="false">http://dreamtechpress.wordpress.com/?p=4222</guid>
		<description><![CDATA[Free Excerpt from the Book &#8211; Lift in Action by Timothi Perrett Enabling users to send funds for their orders, one of Lift’s modules provides out-of-the-box support for the online payment service provider PayPal. The integration supports the two most common forms of electronic payment used by PayPal: Payment Data Transfer (PDT)1 and Instant Payment [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=dreamtechpress.wordpress.com&amp;blog=4476588&amp;post=4222&amp;subd=dreamtechpress&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p style="text-align:justify;"><em>Free Excerpt from the Book &#8211; <a href="http://www.dreamtechpress.com/TitlePage.aspx?x=978-93-5004-292-2" target="_blank">Lift in Action </a>by Timothi Perrett</em></p>
<p style="text-align:justify;">Enabling users to send funds for their orders, one of Lift’s modules provides out-of-the-box support for the online payment service provider PayPal. The integration supports the two <a href="http://dreamtechpress.wordpress.com/2012/01/07/collecting-payment-through-paypal/9789350042922-3/" rel="attachment wp-att-4224" target="_blank"><img class="alignright size-full wp-image-4224" title="9789350042922" src="http://dreamtechpress.files.wordpress.com/2012/01/9789350042922.gif?w=600" alt=""   /></a>most common forms of electronic payment used by PayPal: Payment Data Transfer (PDT)1 and Instant Payment Notification (IPN)2. In order to get access to the integration, simply add the following dependency to your SBT project definition, run the update command and away you go:</p>
<p style="text-align:justify;"><span style="color:#808080;"><strong>val paypal = &#8220;net.liftweb&#8221; % &#8220;lift-paypal&#8221; % liftVersion % &#8220;compile&#8221;</strong></span></p>
<p style="text-align:justify;">The PayPal integration negates your having to set up your own dispatch functions and other elements necessary for handling the responses from PayPal and parsing their post-back to your application. Typically, all you need to do is create a handler singleton (object) that implements methods required by the PaypalPDT and PaypalIPN traits and hook up the dispatchers supplied by those traits in your application boot.</p>
<p style="text-align:justify;"><strong>Environment setup</strong></p>
<p style="text-align:justify;">Before we cover the implementation, however, there are several things you must know about PayPal and their developer process. You will need to register yourself on developer.paypal.com. The first thing you should do before going any further would be to do some background reading on the process of PDT and IPN. The online documentation is very comprehensive and I won’t repeat it here other than to touch on some high-level configuration instructions. With your account created and at developer.paypal.com, follow the steps in table 1—I have placed links to the online PayPal documentation where applicable.</p>
<p style="text-align:justify;"><a href="http://dreamtechpress.wordpress.com/2012/01/07/collecting-payment-through-paypal/1-7-2012-12-55-26-pm/" rel="attachment wp-att-4223"><img class="aligncenter  wp-image-4223" title="1-7-2012 12-55-26 PM" src="http://dreamtechpress.files.wordpress.com/2012/01/1-7-2012-12-55-26-pm.png?w=658&#038;h=442" alt="" width="658" height="442" /></a>Now that your environment is set up, we need to actually wire up the Lift side of things; otherwise, the communications from PayPal will disappear. As we mentioned earlier, two main traits in the PayPal package take responsibility for the two supported transaction systems—PaypalIPN and PaypalPDT. In this example, let’s create a handler that implements these traits called PaypalHandler with an implementation as shown in listing 1.</p>
<p style="text-align:justify;"><span style="color:#ff0000;"><strong>Listing 1 The PaypalHandler implementation</strong></span></p>
<p style="text-align:justify;"><span style="color:#999999;">import net.liftweb.common.{Loggable,Full,Box,Empty,Failure}</span><br />
<span style="color:#999999;">import net.liftweb.paypal.{PaypalIPN,PaypalPDT,</span><br />
<span style="color:#999999;">PaypalTransactionStatus,PayPalInfo}</span><br />
<span style="color:#999999;">import net.liftweb.http.DoRedirectResponse</span><br />
<span style="color:#999999;">import net.liftweb.mapper.By</span><br />
<span style="color:#999999;">import example.travel.model.{Order,OrderStatus}</span><br />
<span style="color:#999999;">object PaypalHandler extends PaypalIPN with PaypalPDT with Loggable {</span><br />
<span style="color:#999999;">val paypalAuthToken = “yourtokengoeshere” 1</span><br />
<span style="color:#999999;">def pdtResponse = {</span><br />
<span style="color:#999999;">case (info, resp) =&gt; info.paymentStatus match {</span><br />
<span style="color:#999999;">case Full(PaypalTransactionStatus.CompletedPayment) =&gt; 2</span><br />
<span style="color:#999999;">DoRedirectResponse.apply(“/paypal/success”) 2</span><br />
<span style="color:#999999;">case _ =&gt; DoRedirectResponse.apply(“/paypal/failure”) 3</span><br />
<span style="color:#999999;">}</span><br />
<span style="color:#999999;">}</span><br />
<span style="color:#999999;">def actions = {</span><br />
<span style="color:#999999;">case (PaypalTransactionStatus.CompletedPayment,info,_) =&gt; 4</span></p>
<p style="text-align:justify;"><span style="color:#999999;">updateOrder(info,OrderStatus.Complete) 4</span><br />
<span style="color:#999999;">case (PaypalTransactionStatus.FailedPayment,info,_) =&gt; 4</span><br />
<span style="color:#999999;">updateOrder(info,OrderStatus.Failed) 4</span><br />
<span style="color:#999999;">case (status, info, resp) =&gt; 4</span><br />
<span style="color:#999999;">} 4</span><br />
<span style="color:#999999;">private def updateOrder(info: PayPalInfo, status: OrderStatus.Value){ 5</span><br />
<span style="color:#999999;">Order.find(By(Order.reference, 5</span><br />
<span style="color:#999999;">info.itemNumber.map(_.toLong).openOr(0L))) match { 5</span><br />
<span style="color:#999999;">case Full(order) =&gt; order.status(status).save 5</span><br />
<span style="color:#999999;">case _ =&gt; 5</span><br />
<span style="color:#999999;">} 5</span><br />
<span style="color:#999999;">} 5</span><br />
<span style="color:#999999;">}</span><br />
<span style="color:#999999;"><em>1 PDT token key</em></span><br />
<span style="color:#999999;"><em>2 Successful PDT action</em></span><br />
<span style="color:#999999;"><em>3 Failure PDT action</em></span><br />
<span style="color:#999999;"><em>4 IPN response handlers</em></span><br />
<span style="color:#999999;"><em>5 Find and update order by ref</em></span></p>
<p style="text-align:justify;">So, there is a fair bit of code here. In short, the two PayPal traits have simply been composed together and the required methods have been implemented to handle the various responses PayPal might provide. It does, however, go without saying that this is for example only. In a live production system you would account for a lot more responses and intelligently handle them; this, in comparison, is a mere stub to illustrate the process and ease of implementing ecommerce within Lift. (#1) When you enabled PDT within the PayPal sandbox, you would have been assigned a security token to use within the PDT request; enter it here, so PayPal will know that it’s your application calling back to it for information on the transaction. In this implementation, PDT serves only to display the correct response screen back to the user; #2 and #3 dictate the URL to which the user should be redirected based on the result of their transaction. #4 is somewhat more complex since, when the PayPal servers make the IPN call back to the application, it contains much more data and is generally considered the best way to then update the order information with the transaction data and so on. Here, we have a helper method at #5 that will look up an order by its random order reference number that was generated when the order was created; then, depending upon the status received from the IPN data, the order has its status set appropriately.</p>
<p style="text-align:justify;">While this code is functional, it is currently not wired into the application boot cycle, so it won’t ever be called by anything. With two lines of code in your Boot class you can include the functionality:</p>
<p style="text-align:justify;"><span style="color:#999999;">import net.liftweb.paypal.PaypalRules</span><br />
<span style="color:#999999;">import example.travel.lib.PaypalHandler</span><br />
<span style="color:#999999;">class Boot extends Loggable {</span><br />
<span style="color:#999999;">def boot {</span><br />
<span style="color:#999999;">…</span><br />
<span style="color:#999999;">PaypalRules.init</span><br />
<span style="color:#999999;">PaypalHandler.dispatch.foreach(LiftRules.dispatch.append(_))</span><br />
<span style="color:#999999;">…</span><br />
<span style="color:#999999;">}</span><br />
<span style="color:#999999;">}</span></p>
<p style="text-align:justify;">These two lines of code first initialize the PaypalRules object that contains configuration information used to determine a range of factors about the transaction. For example, it contains a function configuration that lets you dynamically determine which currency should be used when communicating with PayPal. In this instance, it uses the defaults, so it will just select a currency based on the locale of the JVM running the example. Secondly, it takes the dispatch functions in the PaypalHandler object (inherited, of course, from the two Lift PayPal traits), which respond to the PDT and IPN callbacks, and maps them into the application using Lift’s dispatching mechanism.</p>
<p style="text-align:justify;"><strong>The Buy Now button</strong></p>
<p style="text-align:justify;">With the backend all wired up and ready to go, we need to supply the user with a simple one-click icon to instantiate the transaction process in the familiar PayPal way: a bright orange button! Within Lift’s PayPal support there is a mechanism for automatically generating these buttons; you simply need to implement the BuyNowSnippet trait into one of your snippet classes, and populate the required methods so it knows the value and several other aspects of metadata that you wish to send to PayPal.</p>
<p style="text-align:justify;">Listing 2 details the OrderSummary snippet that computes the overall worth of an order and presents the user with a rundown of what they were going to purchase.</p>
<p style="text-align:justify;"><span style="color:#ff0000;"><strong>Listing 2 The OrderSummary</strong></span></p>
<p style="text-align:justify;"><span style="color:#999999;">import scala.xml.{NodeSeq,Text}</span><br />
<span style="color:#999999;">import net.liftweb.util.Helpers._</span><br />
<span style="color:#999999;">import example.travel.model.Customer</span><br />
<span style="color:#999999;">class OrderSummary {</span><br />
<span style="color:#999999;">val order = Customer.currentUser.flatMap(_.order)</span><br />
<span style="color:#999999;">val amount = order.map(_.totalValue).openOr(0D)</span><br />
<span style="color:#999999;">val reference = order.map(_.reference.is.toString).openOr(&#8220;n/a&#8221;)</span><br />
<span style="color:#999999;">def value(xhtml: NodeSeq): NodeSeq = Text(amount.toString) 1</span><br />
<span style="color:#999999;">def shipping(xhtml: NodeSeq): NodeSeq = 2</span><br />
<span style="color:#999999;">Customer.currentUser.flatMap(_.order.map(order =&gt; 2</span><br />
<span style="color:#999999;">bind(&#8220;s&#8221;,xhtml, 2</span><br />
<span style="color:#999999;">&#8220;address_one&#8221; -&gt; order.shippingAddressOne.is, 2</span><br />
<span style="color:#999999;">&#8220;address_two&#8221; -&gt; order.shippingAddressTwo.is, 2</span><br />
<span style="color:#999999;">&#8220;city&#8221; -&gt; order.shippingAddressCity.is, 2</span><br />
<span style="color:#999999;">&#8220;postcode&#8221; -&gt; order.shippingAddressPostalCode.is 2</span><br />
<span style="color:#999999;">))).openOr(Text(“Unable to obtain shipping information”)) 2</span><br />
<span style="color:#999999;">}</span></p>
<p style="text-align:justify;"><span style="color:#999999;"><em>1 Get total order value for auction</em></span><br />
<span style="color:#999999;"><em>2 Bind shipping info from order</em></span></p>
<p style="text-align:justify;">There are two key methods here: #1 is obtaining the overall value of the order using the totalValue helper method that was added to the Order model. The second method here (#2) simply reads the values that were entered in the Checkout screen and binds them for display in the usual manner. Had we been using a full Wizard, we would not need to reload the values in the same way but, for the sake of simplicity and as a reiteration of what has already been covered so far, it makes sense to do it this way rather than complicate the example with yet more new content.</p>
<p style="text-align:justify;">Since this already has the data we need for the button, the simplest approach is to just compose the BuyNowSnippet with the existing class. Listing 3 shows the changes made to the class.</p>
<p style="text-align:justify;"><span style="color:#ff0000;"><strong>Listing 3 Implementing the BuyNowSnippet trait</strong></span></p>
<p style="text-align:justify;"><span style="color:#999999;">import net.liftweb.paypal.snippet.BuyNowSnippet</span><br />
<span style="color:#999999;">class OrderSummary extends BuyNowSnippet { 1</span><br />
<span style="color:#999999;">override def dispatch = { 2</span><br />
<span style="color:#999999;">case &#8220;paynow&#8221; =&gt; buynow _ 2</span><br />
<span style="color:#999999;">…</span><br />
<span style="color:#999999;">}</span><br />
<span style="color:#999999;">override val values = Map( 3</span><br />
<span style="color:#999999;">&#8220;business&#8221; -&gt; &#8220;me@business.com&#8221;, 3</span><br />
<span style="color:#999999;">&#8220;item_number&#8221; -&gt; reference, 3</span><br />
<span style="color:#999999;">&#8220;item_name&#8221; -&gt; (&#8220;Auction Order: &#8221; + reference)) 3</span><br />
<span style="color:#999999;">}</span><br />
<span style="color:#999999;"><em>1 Compose the trait</em></span><br />
<span style="color:#999999;"><em>2 Setup the dispatch</em></span><br />
<span style="color:#999999;"><em>3 Configure the PayPal fields</em></span></p>
<p style="text-align:justify;">As you can see in the listing, very few lines of code are required to actually implement the button; the main code is overriding the Map[String,String] of key-value pairs that need to be included in the form submission to PayPal. Finally, ensure you add the PayPal response pages to the SiteMap within the Boot class:</p>
<p style="text-align:justify;"><span style="color:#999999;">Menu(&#8220;Transaction Complete&#8221;) / &#8220;paypal&#8221; / &#8220;success&#8221;</span><br />
<span style="color:#999999;">&gt;&gt; LocGroup(&#8220;public&#8221;) &gt;&gt; Hidden,</span><br />
<span style="color:#999999;">Menu(&#8220;Transaction Failure&#8221;) / &#8220;paypal&#8221; / &#8220;failure&#8221;</span><br />
<span style="color:#999999;">&gt;&gt; LocGroup(&#8220;public&#8221;) &gt;&gt; Hidden,</span></p>
<p style="text-align:justify;">For simplicity sake, I have just populated these two files with a friendly message so the user is aware of the transaction outcome. You might even want to customize the pages with customer information about their order or such; you have everything at your disposal within the PDT and IPN responses supplied by PayPal.</p>
<br />Filed under: <a href='http://dreamtechpress.wordpress.com/category/dreamtech-books/'>Dreamtech Books</a>, <a href='http://dreamtechpress.wordpress.com/category/manning-publication/'>Manning Publication</a> Tagged: <a href='http://dreamtechpress.wordpress.com/tag/dreamtech-press/'>dreamtech press</a>, <a href='http://dreamtechpress.wordpress.com/tag/lift-in-action/'>lift in action</a>, <a href='http://dreamtechpress.wordpress.com/tag/manning/'>manning</a>, <a href='http://dreamtechpress.wordpress.com/tag/paypal/'>paypal</a>, <a href='http://dreamtechpress.wordpress.com/tag/paypal-programming/'>paypal programming</a>, <a href='http://dreamtechpress.wordpress.com/tag/web-development/'>Web Development</a>, <a href='http://dreamtechpress.wordpress.com/tag/web-programming/'>Web programming</a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/dreamtechpress.wordpress.com/4222/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/dreamtechpress.wordpress.com/4222/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/dreamtechpress.wordpress.com/4222/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/dreamtechpress.wordpress.com/4222/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/dreamtechpress.wordpress.com/4222/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/dreamtechpress.wordpress.com/4222/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/dreamtechpress.wordpress.com/4222/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/dreamtechpress.wordpress.com/4222/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/dreamtechpress.wordpress.com/4222/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/dreamtechpress.wordpress.com/4222/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/dreamtechpress.wordpress.com/4222/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/dreamtechpress.wordpress.com/4222/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/dreamtechpress.wordpress.com/4222/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/dreamtechpress.wordpress.com/4222/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=dreamtechpress.wordpress.com&amp;blog=4476588&amp;post=4222&amp;subd=dreamtechpress&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://dreamtechpress.wordpress.com/2012/01/07/collecting-payment-through-paypal/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<georss:point>28.643869 77.244294</georss:point>
		<geo:lat>28.643869</geo:lat>
		<geo:long>77.244294</geo:long>
		<media:content url="http://1.gravatar.com/avatar/7a12a5be991e6aa970c841d415a9d6cd?s=96&#38;d=wavatar&#38;r=G" medium="image">
			<media:title type="html">Priyanka Batra</media:title>
		</media:content>

		<media:content url="http://dreamtechpress.files.wordpress.com/2012/01/9789350042922.gif" medium="image">
			<media:title type="html">9789350042922</media:title>
		</media:content>

		<media:content url="http://dreamtechpress.files.wordpress.com/2012/01/1-7-2012-12-55-26-pm.png" medium="image">
			<media:title type="html">1-7-2012 12-55-26 PM</media:title>
		</media:content>
	</item>
		<item>
		<title>Simplifying Computing with the Help of Cluster</title>
		<link>http://dreamtechpress.wordpress.com/2012/01/07/simplifying-computing-with-the-help-of-cluster/</link>
		<comments>http://dreamtechpress.wordpress.com/2012/01/07/simplifying-computing-with-the-help-of-cluster/#comments</comments>
		<pubDate>Sat, 07 Jan 2012 07:03:39 +0000</pubDate>
		<dc:creator>Dreamtech Press</dc:creator>
				<category><![CDATA[Dreamtech Books]]></category>
		<category><![CDATA[Dreamtech Engineering Textbooks]]></category>
		<category><![CDATA[advance computing technology]]></category>
		<category><![CDATA[cluster computing]]></category>
		<category><![CDATA[dreamtech press]]></category>
		<category><![CDATA[kogent learning solutions inc]]></category>

		<guid isPermaLink="false">http://dreamtechpress.wordpress.com/?p=4216</guid>
		<description><![CDATA[Free Excerpt from the book &#8211; Advance Computing Technology The advancements in several technologies have played crucial role in the development of low-cost hardware and software components, thereby leading to the increasing demand of computers. Therefore the Cluster Computing has gained momentum in response of these advancements. Software technologies, such as Operating System (OS), programming [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=dreamtechpress.wordpress.com&amp;blog=4476588&amp;post=4216&amp;subd=dreamtechpress&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p style="text-align:justify;"><span style="color:#888888;"><em>Free Excerpt from the book &#8211; <a href="http://www.dreamtechpress.com/TitlePage.aspx?x=978-93-5004-210-6" target="_blank">Advance Computing Technology</a></em></span></p>
<p style="text-align:justify;"><a href="http://dreamtechpress.wordpress.com/2012/01/07/simplifying-computing-with-the-help-of-cluster/9789350042106-2/" rel="attachment wp-att-4217" target="_blank"><img class="alignright size-full wp-image-4217" title="9789350042106" src="http://dreamtechpress.files.wordpress.com/2012/01/9789350042106.gif?w=600" alt=""   /></a>The advancements in several technologies have played crucial role in the development of low-cost hardware and software components, thereby leading to the increasing demand of computers. Therefore the Cluster Computing has gained momentum in response of these advancements.</p>
<p style="text-align:justify;">Software technologies, such as Operating System (OS), programming languages, development methodologies and tools, have played a vital role in the evolution of new computing era, thereby enabling the development and deployment of scientific, engineering, and commercial applications. Cluster computers also support several mission-critical applications, which are the applications whose failure results in great loss. Example of a mission-critical application is a business information system whose failure leads to inability to perform daily business activities.</p>
<p style="text-align:justify;">A cluster system also makes sure that processors are utilized effectively to maximize the system’s throughput. In a multithreading environment where applications execute, parallelism can be easily achieved, as connected processors work in coordination to execute multiple operational threads at relatively high speed. In sequential computing systems, computing operations are performed sequentially; it means the input of the second operation is dependent on the output of the first operation. Therefore, sequential computing systems are not suitable for large scale and critical applications, as their computing speed is quite slow. However, the technology behind the sequential computing system has evolved over the years to visualize the concept of parallel computing. Several parallel computers use memory, processors, local disks, high-speed switches, and networking technologies to deploy a highly scalable computing environment, wherein computing problems can be solved using highly standardized programming tools. The total cost of developing a parallel computer is quite low, which is considered as one of the major reason for the growth of parallel computing systems.</p>
<br />Filed under: <a href='http://dreamtechpress.wordpress.com/category/dreamtech-books/'>Dreamtech Books</a>, <a href='http://dreamtechpress.wordpress.com/category/dreamtech-books/dreamtech-engineering-textbooks/'>Dreamtech Engineering Textbooks</a> Tagged: <a href='http://dreamtechpress.wordpress.com/tag/advance-computing-technology/'>advance computing technology</a>, <a href='http://dreamtechpress.wordpress.com/tag/cluster-computing/'>cluster computing</a>, <a href='http://dreamtechpress.wordpress.com/tag/dreamtech-press/'>dreamtech press</a>, <a href='http://dreamtechpress.wordpress.com/tag/kogent-learning-solutions-inc/'>kogent learning solutions inc</a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/dreamtechpress.wordpress.com/4216/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/dreamtechpress.wordpress.com/4216/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/dreamtechpress.wordpress.com/4216/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/dreamtechpress.wordpress.com/4216/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/dreamtechpress.wordpress.com/4216/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/dreamtechpress.wordpress.com/4216/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/dreamtechpress.wordpress.com/4216/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/dreamtechpress.wordpress.com/4216/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/dreamtechpress.wordpress.com/4216/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/dreamtechpress.wordpress.com/4216/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/dreamtechpress.wordpress.com/4216/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/dreamtechpress.wordpress.com/4216/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/dreamtechpress.wordpress.com/4216/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/dreamtechpress.wordpress.com/4216/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=dreamtechpress.wordpress.com&amp;blog=4476588&amp;post=4216&amp;subd=dreamtechpress&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://dreamtechpress.wordpress.com/2012/01/07/simplifying-computing-with-the-help-of-cluster/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<georss:point>28.643869 77.244294</georss:point>
		<geo:lat>28.643869</geo:lat>
		<geo:long>77.244294</geo:long>
		<media:content url="http://1.gravatar.com/avatar/7a12a5be991e6aa970c841d415a9d6cd?s=96&#38;d=wavatar&#38;r=G" medium="image">
			<media:title type="html">Priyanka Batra</media:title>
		</media:content>

		<media:content url="http://dreamtechpress.files.wordpress.com/2012/01/9789350042106.gif" medium="image">
			<media:title type="html">9789350042106</media:title>
		</media:content>
	</item>
		<item>
		<title>Lift in Action</title>
		<link>http://dreamtechpress.wordpress.com/2011/12/23/lift-in-action/</link>
		<comments>http://dreamtechpress.wordpress.com/2011/12/23/lift-in-action/#comments</comments>
		<pubDate>Fri, 23 Dec 2011 12:23:39 +0000</pubDate>
		<dc:creator>Dreamtech Press</dc:creator>
				<category><![CDATA[Dreamtech Books]]></category>
		<category><![CDATA[Manning Publication]]></category>
		<category><![CDATA[lift in action]]></category>
		<category><![CDATA[web design]]></category>
		<category><![CDATA[Web Development]]></category>
		<category><![CDATA[Web programming]]></category>

		<guid isPermaLink="false">http://dreamtechpress.wordpress.com/?p=4198</guid>
		<description><![CDATA[Lift is a Scala-based web framework designed for extremely interactive and engaging web applications. It&#8217;s highly scalable, production-ready, and will run in any servlet container. And Lift&#8217;s convention-over-configuration approach lets you avoid needless work. Lift in Action is a step-by-step exploration of the Lift framework. It moves through the subject quickly using carefully crafted, well-explained [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=dreamtechpress.wordpress.com&amp;blog=4476588&amp;post=4198&amp;subd=dreamtechpress&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p style="text-align:justify;"><span style="color:#666699;"><em>Lift is a Scala-based web framework designed for extremely interactive and engaging web applications. It&#8217;s highly scalable, production-ready, and will run in any servlet container. And Lift&#8217;s convention-over-configuration approach lets you avoid needless work.<a href="http://dreamtechpress.wordpress.com/2011/12/23/lift-in-action/attachment/9789350042922/" rel="attachment wp-att-4199" target="_blank"><img class="alignright size-full wp-image-4199" title="9789350042922" src="http://dreamtechpress.files.wordpress.com/2011/12/9789350042922.gif?w=600" alt=""   /></a></em></span></p>
<p style="text-align:justify;">Lift in Action is a step-by-step exploration of the Lift framework. It moves through the subject quickly using carefully crafted, well-explained examples that make you comfortable from the start. You will follow an entertaining Travel Auction application that covers the core concepts and shows up architectural and development strategies. Handy appendixes offer a Scala crash course and guidance for setting up a good coding environment.</p>
<p>This book is written for developers who are new to both Scala and Lift and covers just enough Scala to get you started.</p>
<p><strong>What&#8217;s Inside:</strong></p>
<ul style="text-align:justify;">
<li>Complete coverage of the Lift framework</li>
<li>Security, maintainability, and performance</li>
<li>Integration and scaling</li>
<li>Covers Lift 2.x</li>
</ul>
<p style="text-align:justify;"><strong>About the Author:</strong></p>
<p style="text-align:justify;"><strong>Timothy Perrett</strong> is a member of the Lift core team and a Scala developer specializing in integration and automation systems for both manufacturing and marketing workflows.</p>
<p style="text-align:justify;">ISBN: 978-93-5004-292-2</p>
<p style="text-align:justify;">Pages: 426</p>
<p style="text-align:justify;">Price: Rs. 599/-</p>
<br />Filed under: <a href='http://dreamtechpress.wordpress.com/category/dreamtech-books/'>Dreamtech Books</a>, <a href='http://dreamtechpress.wordpress.com/category/manning-publication/'>Manning Publication</a> Tagged: <a href='http://dreamtechpress.wordpress.com/tag/lift-in-action/'>lift in action</a>, <a href='http://dreamtechpress.wordpress.com/tag/web-design/'>web design</a>, <a href='http://dreamtechpress.wordpress.com/tag/web-development/'>Web Development</a>, <a href='http://dreamtechpress.wordpress.com/tag/web-programming/'>Web programming</a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/dreamtechpress.wordpress.com/4198/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/dreamtechpress.wordpress.com/4198/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/dreamtechpress.wordpress.com/4198/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/dreamtechpress.wordpress.com/4198/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/dreamtechpress.wordpress.com/4198/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/dreamtechpress.wordpress.com/4198/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/dreamtechpress.wordpress.com/4198/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/dreamtechpress.wordpress.com/4198/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/dreamtechpress.wordpress.com/4198/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/dreamtechpress.wordpress.com/4198/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/dreamtechpress.wordpress.com/4198/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/dreamtechpress.wordpress.com/4198/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/dreamtechpress.wordpress.com/4198/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/dreamtechpress.wordpress.com/4198/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=dreamtechpress.wordpress.com&amp;blog=4476588&amp;post=4198&amp;subd=dreamtechpress&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://dreamtechpress.wordpress.com/2011/12/23/lift-in-action/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<georss:point>28.643869 77.244294</georss:point>
		<geo:lat>28.643869</geo:lat>
		<geo:long>77.244294</geo:long>
		<media:content url="http://1.gravatar.com/avatar/7a12a5be991e6aa970c841d415a9d6cd?s=96&#38;d=wavatar&#38;r=G" medium="image">
			<media:title type="html">Priyanka Batra</media:title>
		</media:content>

		<media:content url="http://dreamtechpress.files.wordpress.com/2011/12/9789350042922.gif" medium="image">
			<media:title type="html">9789350042922</media:title>
		</media:content>
	</item>
		<item>
		<title>Energy, Environment, Ecology, and Society</title>
		<link>http://dreamtechpress.wordpress.com/2011/12/23/energy-environment-ecology-and-society/</link>
		<comments>http://dreamtechpress.wordpress.com/2011/12/23/energy-environment-ecology-and-society/#comments</comments>
		<pubDate>Fri, 23 Dec 2011 11:51:05 +0000</pubDate>
		<dc:creator>Dreamtech Press</dc:creator>
				<category><![CDATA[Dreamtech Books]]></category>
		<category><![CDATA[Dreamtech Engineering Textbooks]]></category>
		<category><![CDATA[dreamtech press]]></category>
		<category><![CDATA[dreamtech press engineering books]]></category>
		<category><![CDATA[engineering textbooks]]></category>
		<category><![CDATA[kogent learning solutions inc]]></category>

		<guid isPermaLink="false">http://dreamtechpress.wordpress.com/?p=4194</guid>
		<description><![CDATA[The present situation of our environment is of great concern due to the widespread pollution and over utilization of natural resources. The book mainly discusses about the earth, environment, and issues concerning both in addition to pollution, ecosystem, and biodiversity. It provides a general approach toward the available energy resources, environmental-related problems, methods to improve [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=dreamtechpress.wordpress.com&amp;blog=4476588&amp;post=4194&amp;subd=dreamtechpress&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p style="text-align:justify;">The present situation of our environment is of great concern due to the widespread pollution and over utilization of natural resources. The book mainly discusses about the earth, environment, and issues concerning both in addition to pollution, ecosystem, and biodiversity. It provides a general approach toward the available energy resources, environmental-related problems, methods to improve the environment, and relationship between environment and society. It also includes an in-depth analysis of the various types of pollution. This book combines theory with the data, facts, and figures, and includes the necessary additional information in each chapter included. This book is meant for students of different branches of engineering and is based on the syllabus of Rajiv Gandhi Technical University (RGTU). Summing up, this book is a valuable source of information concerning environment and related environmental topics.</p>
<p style="text-align:justify;"><strong>What&#8217;s Inside:</strong></p>
<ul style="text-align:justify;">
<li>An introduction to earth and environment</li>
<li>Global issues concerning the environment</li>
<li>Importance of conservation of energy</li>
<li>An introduction to atmosphere and ecosystem</li>
<li>Importance and benefits of f biodiversity</li>
<li>Effects and measures to control air pollution</li>
<li>Effects and measures to control soil pollution</li>
<li>Characteristics and effects of noise pollution</li>
<li>Impact of solid waste on society and environment</li>
<li>Environmental ethics and morals</li>
</ul>
<p style="text-align:justify;"><strong>About the Author:</strong></p>
<p style="text-align:justify;">The proficient teams at Kogent Learning Solutions Inc. and Dreamtech Press have seized the market of engineering textbooks, bringing excellent content in engineering and technical education to the fore. The teams at Kogent Learning Solutions, Inc. and Dreamtech Press are committed to providing excellence in quality of content by judiciously analyzing the needs of its readers and ensuring dedication of its authors and editors in catering to these needs.</p>
<p style="text-align:justify;">ISBN: 978-93-5004-280-9<br />
Pages: 216<br />
Price: Rs. 249/-</p>
<br />Filed under: <a href='http://dreamtechpress.wordpress.com/category/dreamtech-books/'>Dreamtech Books</a>, <a href='http://dreamtechpress.wordpress.com/category/dreamtech-books/dreamtech-engineering-textbooks/'>Dreamtech Engineering Textbooks</a> Tagged: <a href='http://dreamtechpress.wordpress.com/tag/dreamtech-books/'>Dreamtech Books</a>, <a href='http://dreamtechpress.wordpress.com/tag/dreamtech-press/'>dreamtech press</a>, <a href='http://dreamtechpress.wordpress.com/tag/dreamtech-press-engineering-books/'>dreamtech press engineering books</a>, <a href='http://dreamtechpress.wordpress.com/tag/engineering-textbooks/'>engineering textbooks</a>, <a href='http://dreamtechpress.wordpress.com/tag/kogent-learning-solutions-inc/'>kogent learning solutions inc</a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/dreamtechpress.wordpress.com/4194/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/dreamtechpress.wordpress.com/4194/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/dreamtechpress.wordpress.com/4194/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/dreamtechpress.wordpress.com/4194/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/dreamtechpress.wordpress.com/4194/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/dreamtechpress.wordpress.com/4194/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/dreamtechpress.wordpress.com/4194/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/dreamtechpress.wordpress.com/4194/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/dreamtechpress.wordpress.com/4194/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/dreamtechpress.wordpress.com/4194/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/dreamtechpress.wordpress.com/4194/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/dreamtechpress.wordpress.com/4194/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/dreamtechpress.wordpress.com/4194/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/dreamtechpress.wordpress.com/4194/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=dreamtechpress.wordpress.com&amp;blog=4476588&amp;post=4194&amp;subd=dreamtechpress&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://dreamtechpress.wordpress.com/2011/12/23/energy-environment-ecology-and-society/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<georss:point>28.643869 77.244294</georss:point>
		<geo:lat>28.643869</geo:lat>
		<geo:long>77.244294</geo:long>
		<media:content url="http://1.gravatar.com/avatar/7a12a5be991e6aa970c841d415a9d6cd?s=96&#38;d=wavatar&#38;r=G" medium="image">
			<media:title type="html">Priyanka Batra</media:title>
		</media:content>
	</item>
		<item>
		<title>AutoCAD 2012 In Simple Steps</title>
		<link>http://dreamtechpress.wordpress.com/2011/11/29/autocad-2012-in-simple-steps/</link>
		<comments>http://dreamtechpress.wordpress.com/2011/11/29/autocad-2012-in-simple-steps/#comments</comments>
		<pubDate>Tue, 29 Nov 2011 08:30:15 +0000</pubDate>
		<dc:creator>Dreamtech Press</dc:creator>
				<category><![CDATA[Dreamtech Books]]></category>
		<category><![CDATA[In Simple Steps Book Series]]></category>
		<category><![CDATA[autocad 2012]]></category>
		<category><![CDATA[autocad 2012 in simple steps]]></category>
		<category><![CDATA[autocad books]]></category>
		<category><![CDATA[cad/cam books]]></category>
		<category><![CDATA[dreamtech press]]></category>
		<category><![CDATA[kogent learning solutions inc]]></category>

		<guid isPermaLink="false">http://dreamtechpress.wordpress.com/?p=4172</guid>
		<description><![CDATA[AutoCAD 2012 In Simple Steps provides a thorough step-by-step introduction to AutoCAD 2012 and explains the core concepts to work in designing, drafting, modeling, and plotting. The book covers new features of AutoCAD 2012 and helps you in mastering AutoCAD through an understandable approach to various concepts in step-by-step manner. This book covers drafting strategies [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=dreamtechpress.wordpress.com&amp;blog=4476588&amp;post=4172&amp;subd=dreamtechpress&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p style="text-align:justify;"><a href="http://dreamtechpress.wordpress.com/2011/11/29/autocad-2012-in-simple-steps/attachment/9789350042779/" rel="attachment wp-att-4173"><img class="alignright size-full wp-image-4173" title="9789350042779" src="http://dreamtechpress.files.wordpress.com/2011/11/9789350042779.jpg?w=600" alt=""   /></a><em><strong>AutoCAD 2012 In Simple Steps</strong></em> provides a thorough step-by-step introduction to AutoCAD 2012 and explains the core concepts to work in designing, drafting, modeling, and plotting. The book covers new features of AutoCAD 2012 and helps you in mastering AutoCAD through an understandable approach to various concepts in step-by-step manner. This book covers drafting strategies required for creating floor plan, mall plan, and civil architecture plan. In addition, this book is an ideal introduction for all level of readers. Starting from basics to plotting in AutoCAD, the book contains rich content to meet the user’s requirements. This book is ultimate for the upcoming and passionate readers of 2D and 3D computer-aided designing and drafting. Finally, the basic knowledge delivered related to CAD terms and dimensions would be an added advantage for the reader.</p>
<p style="text-align:justify;"><strong>Inside the Book:</strong></p>
<ul style="text-align:justify;">
<li>Introduction to AutoCAD 2012</li>
<li>The process of drafting a basic floor plan</li>
<li>The process of adding text and dimensions in the floor plan</li>
<li>The process of working with layers</li>
<li>The process of drafting a civil architecture in AutoCAD 2012</li>
<li>The process of drafting a township project in AutoCAD 2012</li>
<li>The process of working with 3D and design mechanical objects</li>
<li>Plotting and printing drawings in AutoCAD 2012</li>
</ul>
<p style="text-align:justify;"><strong>About the Author:</strong></p>
<p style="text-align:justify;">The proficient team at Kogent Learning Solutions Inc. and Dreamtech Press has seized the market of computer books bringing excellent content in software development to the fore. The team is committed to excellence—excellence in quality of content; excellence in the dedication of its authors and editors; excellence in the attention to detail; and excellence in understanding the needs of their readers.</p>
<p style="text-align:justify;"><strong>ISBN:</strong> 978-93-5004-277-9 | <strong>Pages:</strong> 336 | <strong>Price:</strong> Rs. 229/-</p>
<br />Filed under: <a href='http://dreamtechpress.wordpress.com/category/dreamtech-books/'>Dreamtech Books</a>, <a href='http://dreamtechpress.wordpress.com/category/dreamtech-books/in-simple-steps-book-series/'>In Simple Steps Book Series</a> Tagged: <a href='http://dreamtechpress.wordpress.com/tag/autocad-2012/'>autocad 2012</a>, <a href='http://dreamtechpress.wordpress.com/tag/autocad-2012-in-simple-steps/'>autocad 2012 in simple steps</a>, <a href='http://dreamtechpress.wordpress.com/tag/autocad-books/'>autocad books</a>, <a href='http://dreamtechpress.wordpress.com/tag/cadcam-books/'>cad/cam books</a>, <a href='http://dreamtechpress.wordpress.com/tag/dreamtech-press/'>dreamtech press</a>, <a href='http://dreamtechpress.wordpress.com/tag/kogent-learning-solutions-inc/'>kogent learning solutions inc</a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/dreamtechpress.wordpress.com/4172/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/dreamtechpress.wordpress.com/4172/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/dreamtechpress.wordpress.com/4172/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/dreamtechpress.wordpress.com/4172/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/dreamtechpress.wordpress.com/4172/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/dreamtechpress.wordpress.com/4172/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/dreamtechpress.wordpress.com/4172/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/dreamtechpress.wordpress.com/4172/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/dreamtechpress.wordpress.com/4172/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/dreamtechpress.wordpress.com/4172/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/dreamtechpress.wordpress.com/4172/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/dreamtechpress.wordpress.com/4172/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/dreamtechpress.wordpress.com/4172/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/dreamtechpress.wordpress.com/4172/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=dreamtechpress.wordpress.com&amp;blog=4476588&amp;post=4172&amp;subd=dreamtechpress&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://dreamtechpress.wordpress.com/2011/11/29/autocad-2012-in-simple-steps/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<georss:point>28.643869 77.244294</georss:point>
		<geo:lat>28.643869</geo:lat>
		<geo:long>77.244294</geo:long>
		<media:content url="http://1.gravatar.com/avatar/7a12a5be991e6aa970c841d415a9d6cd?s=96&#38;d=wavatar&#38;r=G" medium="image">
			<media:title type="html">Priyanka Batra</media:title>
		</media:content>

		<media:content url="http://dreamtechpress.files.wordpress.com/2011/11/9789350042779.jpg" medium="image">
			<media:title type="html">9789350042779</media:title>
		</media:content>
	</item>
	</channel>
</rss>
