<?xml version="1.0" encoding="UTF-8"?> <rss
version="2.0"
xmlns:content="http://purl.org/rss/1.0/modules/content/"
xmlns:wfw="http://wellformedweb.org/CommentAPI/"
xmlns:dc="http://purl.org/dc/elements/1.1/"
xmlns:atom="http://www.w3.org/2005/Atom"
xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
><channel><title>OcpSoft &#187; Technology</title> <atom:link href="http://ocpsoft.com/cat/technology/feed/" rel="self" type="application/rss+xml" /><link>http://ocpsoft.com</link> <description>&#34;Simple Software&#34;</description> <lastBuildDate>Tue, 27 Jul 2010 15:07:50 +0000</lastBuildDate> <language>en</language> <sy:updatePeriod>hourly</sy:updatePeriod> <sy:updateFrequency>1</sy:updateFrequency> <generator>http://wordpress.org/?v=3.0</generator> <item><title>JSF 1.2 Components (Book Review)</title><link>http://ocpsoft.com/opensource/jsf-1-2-components-book-review/</link> <comments>http://ocpsoft.com/opensource/jsf-1-2-components-book-review/#comments</comments> <pubDate>Wed, 20 Jan 2010 06:56:21 +0000</pubDate> <dc:creator>Lincoln</dc:creator> <category><![CDATA[JSF2]]></category> <category><![CDATA[OpenSource]]></category> <category><![CDATA[Technology]]></category> <category><![CDATA[JSF]]></category><guid
isPermaLink="false">http://ocpsoft.com/?p=983</guid> <description><![CDATA[As a vocal blogger, I feel responsible for promoting and sharing the good work of others, whether that be technology, creative work, or in this case: a book. I will take no exception to that philosophy when it comes to the JavaServer Faces framework. For a quick read, try the summary. If you are intrigued, [...]]]></description> <content:encoded><![CDATA[<p>As a vocal blogger, I feel responsible for promoting and sharing the good work of others, whether that be technology, creative work, or in this case: a book. I will take no exception to that philosophy when it comes to the <a
target="_blank" href="http://www.javaserverfaces.org">JavaServer Faces</a> framework. For a quick read, try the summary. If you are intrigued, read on! I hope you find this review valuable.<br
/> <span
id="more-983"></span></p><p><strong>In summary:</strong> I would recommend buying this reference if you are a consumer, designer, UI-developer who is working with existing component libraries, Facelets or JSF 2.0, and not so much focused on creating custom Java-components of your own. I don&#8217;t, for every-day web-site components, see why you would need much more than what is featured between the covers of this book. Ian Hlavats does a fantastic job of making bringing JSF to the everyday development setting.<br
/> <br/></p><table><tr><td><a
target="_blank" href="http://www.packtpub.com/jsf-1-2-components-develop-advanced-ajax-enabled-applications/book?utm_source=ocpsoft.com&#038;utm_medium=bookrev&#038;utm_content=blog&#038;utm_campaign=mdb_002041"><img
src="http://ecx.images-amazon.com/images/I/51zwgyza8HL._SL500_AA240_.jpg"></img></a></td><td><h4><a
target="_blank" href="http://www.packtpub.com/jsf-1-2-components-develop-advanced-ajax-enabled-applications/book?utm_source=ocpsoft.com&#038;utm_medium=bookrev&#038;utm_content=blog&#038;utm_campaign=mdb_002041">JSF 1.2 Components</a></h4><p>By Ian Hlavats<br
/> <br/><br
/> Download Chapter 2: <a
target="_blank" href="http://www.packtpub.com/files/7627-developing-jsf-components-sample-chapter-2-facelets-components.pdf">Facelets Components</a> as a PDF</td></tr></table><p><br/></p><h3>In detail:</h3><p>Initially hesitant to buy a reference on components, I have to admit that I was surprised to learn so much by reading through this book. As a member of the JavaServer Faces 2.0 expert group, and a full-time software engineer, components are not my strong-suit. If you&#8217;re at all like me, then you&#8217;re probably asking yourself the same question I did:</p><p>&#8220;What can I learn in this book that I can&#8217;t find on Google? JavaServer Faces has a huge online community, and there&#8217;s a lot of information available already.&#8221;</p><p>It&#8217;s a valid question, but you should keep reading because this book offers something important that I rarely find in blog entries or wikis: &#8220;features you wouldn&#8217;t think to look for; features that you wish you&#8217;d thought of, or don&#8217;t know how to make yourself.&#8221; I wish I had found this book when I started using JSF, because I&#8217;d probably have been more comfortable, and much more productive with our component side of the life-cycle, so to speak; I discovered features of the framework, and pre-made UI-tools that I wish I&#8217;d known about years ago.</p><h5>Things you&#8217;ll learn about:</h5><p>Modal windows, menus, wizards and workflows, AJAX anything with Ajax4JSF, i18n and localization, gCal-like schedules with Apache Tomahawk, multi-field validation, calendars, charts and graphs, file-uploads, user permissions/security, skinning, styling, and all major component libraries are covered in this book (save PrimeFaces, which gets a mere mention.)</p><p>If you think you&#8217;re looking at &#8220;Just another book on JSF component writing,&#8221; that&#8217;s not entirely the case. This book provides real solutions, real examples on how to get started writing JSF applications using existing component libraries and plug-ins. There are two types of chapters in this book: tutorials and references. The tutorials will get you up and running with a quick example, while the reference sections go in depth on usage of individual components within each library.</p><p>You&#8217;ll also (as a bonus, in my opinion) get some appetite-whetting information on the JBoss Seam framework, which is a user-friendly and business-oriented extension to the Java EE technologies. I didn&#8217;t get a very good picture of all of the concepts until I actually looked at the code samples (downloadable here, or just follow the link in the preface,) but that&#8217;s hardly a strong criticism; though, it may have helped if the code samples were more explicitly, frequently referenced.</p><h5>In the end &#8220;The title doesn&#8217;t lie&#8221;:</h5><ul><li>I haven&#8217;t seen a more comprehensive book on component libraries and component writing made available to date.</li><li>JSF2 component writing has been simplified, but if you want to supplement your app with everyday things like in-place editing, accordions, and more, you&#8217;re going to want good examples; this book provides examples in abundance (even examples of JSF2 EzComp, which is a dream to use. UI like it was meant to be)</li><li>Even if components and UI design are not your strong-point, that is exactly why you should read this book; it makes component-based design easy to understand, and easy to implement.</li></ul><p>The author covers many of the advancements in component writing and simplified configuration that are provided by JSF 2.0, but I would have liked to hear some information on the component behaviors model, and mention of integration with frameworks like CDI (JSR-299) and Spring; however, this is not entirely relevant to component writing, and plenty of information exists on sites like <a
target="_blank" href="http://www.javaserverfaces.org">www.javaserverfaces.org</a> or Google.</p><p>My one complaint is that for a book titled &#8220;JSF 1.2 Components,&#8221; it did not explain, or teach me how to create custom Java-based components, which are essential for complex behavior and interaction at some level. JSF 2.0 has done a good job of making Java-based components unnecessary, but this book is titled JSF 1.2 components, thus, I would have liked to see how to write a Java-based component in JSF 1.2.</p><div
class="featured" style="text-align: center;"> <a
target="_blank" href="http://www.packtpub.com/jsf-1-2-components-develop-advanced-ajax-enabled-applications/book?utm_source=ocpsoft.com&#038;utm_medium=bookrev&#038;utm_content=blog&#038;utm_campaign=mdb_002041">JSF 1.2 Components</a> on Packt Publishing<br
/> Download Chapter 2: <a
target="_blank" href="http://www.packtpub.com/files/7627-developing-jsf-components-sample-chapter-2-facelets-components.pdf">Facelets Components</a> as a PDF</div><h3>End notes:</h3><p> Make sure you check out <a
target="_blank" href="http://www.javaserverfaces.org">www.javaserverfaces.org</a>. It&#8217;s a great starting point and reference for JSF that you will undoubtably bookmark if doing a lot of work, and doing the work with this book. Also check out <a
href="http://ocpsoft.com/prettyfaces/">http://ocpsoft.com/prettyfaces/</a> for more information on Pretty URLs in JSF, and building client-facing JSF web applications.</p> ]]></content:encoded> <wfw:commentRss>http://ocpsoft.com/opensource/jsf-1-2-components-book-review/feed/</wfw:commentRss> <slash:comments>1</slash:comments> </item> <item><title>Android: It&#8217;s about time!</title><link>http://ocpsoft.com/technology/android-its-about-time/</link> <comments>http://ocpsoft.com/technology/android-its-about-time/#comments</comments> <pubDate>Mon, 16 Nov 2009 03:55:06 +0000</pubDate> <dc:creator>Lincoln</dc:creator> <category><![CDATA[Technology]]></category><guid
isPermaLink="false">http://ocpsoft.com/?p=430</guid> <description><![CDATA[I don&#8217;t know why I waited so long. Maybe I just thought the G1 was ugly, maybe it&#8217;s my futile fight against the mob of conformity. I bought the Droid. Now my already over-active sense of entrepreneurship, restless production has new food. Goodbye night-time reading for a little while. XKCD&#8217;s Randall Munroe, you understand me [...]]]></description> <content:encoded><![CDATA[<p>I don&#8217;t know why I waited so long. Maybe I just thought the G1 was ugly, maybe it&#8217;s my futile fight against the mob of conformity. I bought the Droid. Now my already over-active sense of entrepreneurship, restless production has new food. Goodbye night-time reading for a little while.</p><p><span
id="more-430"></span></p><div
class="featured"><div
class="inside" style="overflow: hidden;"><center><a
href="http://xkcd.com"><img
src="http://imgs.xkcd.com/comics/iphone_or_droid.png" title="It may be a fundamentally empty experience, but holy crap the Droid's 265 ppi screen is amazing." alt="iPhone or Droid"></a></center></div></div><p><center><p>XKCD&#8217;s Randall Munroe, you understand me better than most&#8230;</p><p></center></p><div
class="featured"><table
cellspacing="10px"><tr
valign="top"><td><img
src="http://ocpsoft.com/wp-content/uploads/2009/11/Socialize.png" alt="Socialize" title="Socialize" width="369" height="527" class="aligncenter size-full wp-image-431" /></td><td><h3>Socialize:</h3><p>This is my first app &#8211; a glorified &#8220;echo.&#8221; Send, refresh, and it will display what you&#8217;ve entered. But the cool thing is that this entire program took about 15 lines of code, and 10 lines of XML. It took me about 3 hours to install the tools, learn the API, deploy to my phone, and walk downstairs to show my roommate&#8230; not bad.</p><p>But now the hunt is on. What am I going to create? I have a few ideas, nothing much of consequence: <a
href="http://scrumshark.com" target="_blank" title="Opensource Agile Project Management">ScrumShark</a> will need an Android app, and oh, I suppose iPhone, too. But what of value can really be created? I find myself at a mental standstill. So much power at my fingertips, but no strong vision of what it could mean. A big part of me feels that technology, as it becomes increasingly accessible, raises greater walls and prevents us from experiencing the true human interaction that we so desperately need.</o></p><p> Perhaps an app to bring people together, physically, to meet and enjoy spending time together. Google Latitude is close, but not quite there&#8230;</p><p>We&#8217;ll see what comes to mind&#8230; Randall, any good ideas?</p></td></tr></table></div><h3>A few tips for the Linux users:</h3><p>If you are developing with an AVD (Android Virtual Device) and you happen to plug your phone in, when you click &#8220;Run as, or Debug as Android Application,&#8221; Eclipse is going to try to deploy the app to your phone. Two things may happen:</p><ol><li><p>Your application will be deployed to the phone. Just so you know in case it&#8217;s not what you want to do. Be careful.</p></li><li><p>If you <i>are</i> trying to deploy to your phone, but haven&#8217;t yet set up USB permissions, you will get a NullPointerException: &#8220;Failed to deploy&#8230;&#8221; &#8211; This means your USB permissions are wrong. More on that&#8230;</p></li></ol><h3>Fixing the null-pointer:</h3><div
class="wp_syntax"><div
class="code"><pre class="text" style="font-family:monospace;">An internal error occurred during: &quot;Socialize&quot;. java.lang.NullPointerException
at com.android.ide.eclipse.adt.internal.launch.AndroidLaunchController.launch(Unknown Source)
at com.android.ide.eclipse.adt.internal.launch.LaunchConfigDelegate.doLaunch(Unknown Source)
at com.android.ide.eclipse.adt.internal.launch.LaunchConfigDelegate.launch(Unknown Source)</pre></div></div><p>Chances are you need set up USB permissions by taking the following steps:</p><h4>Plug in your phone and run &#8220;lsusb&#8221;</h4><div
class="wp_syntax"><div
class="code"><pre class="text" style="font-family:monospace;">lincoln@quadshark ~ $ lsusb
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 002 Device 008: ID 22b8:41db Motorola PCS 
Bus 004 Device 003: ID 046d:c505 Logitech, Inc. Cordless Mouse+Keyboard Receiver
Bus 004 Device 002: ID 046d:c041 Logitech, Inc. G5 Laser Mouse
Bus 004 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
lincoln@quadshark ~ $</pre></div></div><p>This line: &#8220;Bus 002 Device 008: ID <b>22b8:41db</b> Motorola PCS&#8221; is what you are looking for. &#8220;22b8&#8243; is my &#8220;idProduct&#8221;, and &#8220;41db&#8221; is my idVendor. Your phone may be different, so keep that in mind when you are following the next steps.</p><h4>As root, Edit or Create: /etc/udev/rules.d/51-android.rules</h4><div
class="wp_syntax"><div
class="code"><pre class="sh" style="font-family:monospace;">SUBSYSTEM==&quot;usb&quot;, ATTRS{idProduct}==&quot;22b8&quot;, ATTRS{idVendor}==&quot;41db&quot;,
MODE=&quot;0666&quot;, OWNER=&quot;lb3&quot;</pre></div></div><h4>As root, Run: chmod a+r /etc/udev/rules.d/51-android.rules</h4><div
class="wp_syntax"><div
class="code"><pre class="text" style="font-family:monospace;">lb3@quadshark ~ $ ls -la /etc/udev/rules.d/51-android.rules
-rw-r--r-- 1 root root 95 2009-11-15 17:19 /etc/udev/rules.d/51-android.rules</pre></div></div><p>If your permissions look like the file above, and your IDs are set up correctly, then you should now be able to properly deploy and debug applications on your actual Android Phone! Enjoy <img
src='http://ocpsoft.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /></p><h3>But where to go from here?</h3><p>So many ideas already out there, but an infinity of un-thought-of ideas remain. Where do I go from here? How many other people out in this world have the desire to create, but a severe case of writer&#8217;s block!? Help me, Randall&#8230;&#8230;. <br/><br/></br></p><h3><center>PERL!</center></h3><p><br/></p> ]]></content:encoded> <wfw:commentRss>http://ocpsoft.com/technology/android-its-about-time/feed/</wfw:commentRss> <slash:comments>4</slash:comments> </item> <item><title>Thoughts on the Cloud</title><link>http://ocpsoft.com/technology/thoughts-on-the-cloud/</link> <comments>http://ocpsoft.com/technology/thoughts-on-the-cloud/#comments</comments> <pubDate>Fri, 13 Nov 2009 23:40:02 +0000</pubDate> <dc:creator>Lincoln</dc:creator> <category><![CDATA[Technology]]></category><guid
isPermaLink="false">http://ocpsoft.com/?p=417</guid> <description><![CDATA[A business partner of mine asked some basic questions about cloud computing. We had a small exchange that I felt worth sharing. Q. Do you think it&#8217;s a good idea? Absolutely. Press CTRL-ALT-DEL -> T, sometime. Click performance &#8212; I guarantee your CPU is running at about 1-5% utilization, somewhere around 97-99% of the time. [...]]]></description> <content:encoded><![CDATA[<p>A business partner of mine asked some basic questions about <a
target="_blank" href="http://en.wikipedia.org/wiki/Cloud_computing">cloud computing</a>. We had a small exchange that I felt worth sharing.</p><h3>Q. Do you think it&#8217;s a good idea?</h3><p>Absolutely. Press CTRL-ALT-DEL -> T, sometime. Click performance &#8212; I guarantee your CPU is running at about 1-5% utilization, somewhere around 97-99% of the time. From another perspective: that&#8217;s 95-99% waste of power, 97-99% of the time. And that&#8217;s just while you are physically using your computer&#8230; then you have to consider all of the wasted disk space. We have huge disk drives in our PCs (Most corporate employers only give us access to a small portion,) but that&#8217;s huge waste as well.</p><p><span
id="more-417"></span></p><p>If you could combine and utilize all of that wasted space, running applications on PCs that have available power / bandwidth, you could, in theory, increase utilization all the way to about 80-90% without negative performance impact. From a cost perspective, that means you need fewer physical computers. You spend less money on power, less money on cooling, less money on everything, and you get more available processing time.</p><h3>Q. Is there money that we could make in that operation?</h3><p>Depends what you mean. Big security-sensitive corporations? Only if they outsourced to someone else&#8217;s cloud. That would save them money. OcpSoft? &#8211; Probably only in the same way. We&#8217;d have to come up with some idea that takes advantage of the scalability and flexibility of the cloud. Otherwise there&#8217;s no real benefit, and we should just run our own services.</p><p>With <a
href="http://scrumshark.com" target="_blank" title="Opensource Agile Project Management">ScrumShark</a>, for example&#8230; if we hosted on the Amazon EC2 cloud: Amazon lets you charge an additional fee on top of their cloud utilization fee. So if you provide custom hosted applications to individual clients, you can simplify billing, membership, usage, and support charges into just one charge &#8211; usage. The more they use the product, the more it costs them. The less they you use it, the less it costs them &#8212; that could be an attractive marketing strategy for some clients. do you think it is the future of computers and data management?</p><p>The only thing that hinders, and will continue to hinder cloud computing is security and risk. You don&#8217;t have physical control of your data or files. Do you trust your cloud provider? Are they adequately securing your system? What happens if they lose your data? Do they have a backup and disaster recovery plan that is adequate for your needs? With good reason, that&#8217;s a risk that Corporations, and many other financial and highly-confidential based companies, are not willing to take. People&#8217;s personal and financial data and security are too important to risk.</p><h3>Q. Sounds like a big drawback, who would choose that?</h3><p>For many smaller companies with a lower risk-profile, it makes a lot of sense: their data can be backed up to a private server; they pay for the computing power they need; they don&#8217;t have to service their own hardware. It just depends on your needs.</p><h3>How would you use the cloud?</h3><p><br/></p> ]]></content:encoded> <wfw:commentRss>http://ocpsoft.com/technology/thoughts-on-the-cloud/feed/</wfw:commentRss> <slash:comments>0</slash:comments> </item> </channel> </rss>
<!-- Served from: ocpsoft.com @ 2010-07-29 17:21:17 by W3 Total Cache -->