<?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>basbrun.com</title>
	<atom:link href="http://basbrun.com/feed/" rel="self" type="application/rss+xml" />
	<link>http://basbrun.com</link>
	<description>Best place to waste your time ...</description>
	<lastBuildDate>Tue, 27 Nov 2012 03:48:16 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.5.1</generator>
		<item>
		<title>Java, Axis2, Eclipse, Fiddler and SSL</title>
		<link>http://basbrun.com/2012/11/26/java-axis2-eclipse-fiddler-and-ssl/</link>
		<comments>http://basbrun.com/2012/11/26/java-axis2-eclipse-fiddler-and-ssl/#comments</comments>
		<pubDate>Tue, 27 Nov 2012 03:48:16 +0000</pubDate>
		<dc:creator>pchretien</dc:creator>
				<category><![CDATA[Code]]></category>
		<category><![CDATA[Java]]></category>
		<category><![CDATA[axis]]></category>
		<category><![CDATA[axis2]]></category>
		<category><![CDATA[certificate]]></category>
		<category><![CDATA[eclipse]]></category>
		<category><![CDATA[fiddler]]></category>
		<category><![CDATA[https]]></category>
		<category><![CDATA[java]]></category>
		<category><![CDATA[jdk]]></category>
		<category><![CDATA[proxy]]></category>
		<category><![CDATA[ssl]]></category>
		<category><![CDATA[web service]]></category>

		<guid isPermaLink="false">http://basbrun.com/?p=1174</guid>
		<description><![CDATA[Sometime in a project you end-up using a constellation of applications not many peoples are using at the same time. This is my case in the project I am actually working on. My project is a Java client that consumes a SOAP web service (CISCO AXL) through the Axis2 toolkit. I am developing in the [...]]]></description>
				<content:encoded><![CDATA[<p>Sometime in a project you end-up using a constellation of applications not many peoples are using at the same time. This is my case in the project I am actually working on. My project is a Java client that consumes a SOAP web service (CISCO AXL) through the Axis2 toolkit. I am developing in the Eclipse (Juno) Java IDE. The service is hosted on a server that can only be accessed using an SSL (https) connection. To add to the challenge, for most of our customers, the server certificate is issued by a non trusted CA.</p>
<p>When you say SOAP web service, you think Fiddler. It is almost impossible to get it done without seeing what is sent and received over the wire. This is where the fun begins. Having all these pieces working together took me several hours to figure out so, here is the solution I came with, hoping this will help someone crying in the dark out there.</p>
<p><strong><span style="color: #ff0000;">WARNING</span>: This is serious stuff. We are playing with certificate authorities and screwing up the chain of trust. <span style="color: #ff0000;">DON&#8217;T DO THIS ON A PRODUCTION COMPUTER</span>. This is intended for development environment only. </strong></p>
<p>Ok &#8230; the disclaimer stuff being done, the first step is to make it work with your browser. You want to get rid of the warning messages blocking you from accessing the web service port because of the bad server certificate. To do this, you must add the server certificate CA to your Trusted Root Certificate Authorities. When you hit the web page, the browser allows you to view ans save the server certificate. Save it in the .cer format and start your Certificate Manager. In Windows this is an mmc plugin. From there you can import the CA certificate to your computer Trusted Rood Certificate Authorities store. You should now be able to navigate to the web service port using your browser. This allows you to access the service WSDL and generate your proxy using WSDL2Java.</p>
<p>Your next problem will show up when running your app using that brand new proxy. Even if the server certificate is now trusted by your computer, the Java JRE have it&#8217;s own trusted certificates key store and will block access to this server. You will have to add this server certificate to the JRE certificate store by following these instructions &#8230;</p>
<ul>
<li>Go to the JRE&#8217;s security folder at <strong>$JAVA_HOME/jre/lib/security</strong></li>
<li>To list the trusted certificates issue following command: <strong>keytool -list -keystore cacerts</strong></li>
<li>To add a certificate in this list: <strong>keytool -import -keystore cacerts -file C:\certnew.cer</strong></li>
<li>Enter &#8220;<strong>Y</strong>&#8221; to confirm &#8230;</li>
<li>The default password for cacerts is <strong>changeit</strong></li>
</ul>
<p>At this point you should be able to run your Java client using the proxy code generated by the Axis2/WSDL2Java generator.</p>
<p>Ok &#8230; that was fairly common stuff. Now, let&#8217;s say you want to see what your application is sending to the server over the wire. This is not that easy since everything is encrypted when using an SSL connection (https). I used Fiddler to do the work. Out of the box, Fiddler will catch most of the traffic coming from and to your browsers. To display the content of the messages sent and received by your Java app while debugging in Eclipse, you will need to make a few more tweaks to your project environment.</p>
<p>Fiddler acts as a web proxy so the idea is to configure Fiddler as your proxy when debugging stuff in Eclipse. This is done by adding the following VM arguments to your debug configuration:</p>
<p><em>-Dhttp.proxyHost=127.0.0.1<br />
-Dhttp.proxyPort=8888<br />
-Dhttps.proxyHost=127.0.0.1<br />
-Dhttps.proxyPort=8888</em></p>
<p>These arguments will forward all the standard and SSL http traffic to the Fiddler proxy, Fiddler proxy default port is 8888. You can change in the program options.</p>
<p>Once the traffic is forwarded to the Fiddler proxy, you need a way to see what&#8217;s in the message. You can do this by activating the &#8220;Decrypt HTTPS traffic&#8221; option in the &#8220;Tools-&gt;Fiddler Options-&gt;HTTPS&#8221; configuration page. This action will generate a dummy certificate and add it to your trusted root CA. Remember not to do this on a production computer!</p>
<p>In some cases, this will be enough to see the content of the https messages but, in our case, there is one more step to do. Remember the Java trusted CAs store? That&#8217;s it, you have to export the new Fiddler certificate and install it in the JRE certificate store.</p>
<p>You can find the Fiddler certificate in your computer certificate store under the name &#8220;DO_NOT_TRUST_FiddlerRoot&#8221;. Save the certificate in a .cer file and import it to the Java certificate store by following the same instructions as for the server certificate. One last thing. The Fiddler certificate default alias is &#8220;mykey&#8221; which already exist in the Java certificate store. Use the -alias option of the keytool app to change to a unique name: <strong>keytool -import -keystore cacerts -alias myalias123 -file C:\fiddlercert.cer</strong>.</p>
<p>You are done. You should now be able to debug your Java/Axis2 client in Eclipse and see, in Fiddler, the content of the SOAP messages sent and received from the server.</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
]]></content:encoded>
			<wfw:commentRss>http://basbrun.com/2012/11/26/java-axis2-eclipse-fiddler-and-ssl/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Open APOD v1.0 Release</title>
		<link>http://basbrun.com/2012/08/09/open-apod-v1-0-release/</link>
		<comments>http://basbrun.com/2012/08/09/open-apod-v1-0-release/#comments</comments>
		<pubDate>Fri, 10 Aug 2012 03:10:50 +0000</pubDate>
		<dc:creator>pchretien</dc:creator>
				<category><![CDATA[Android]]></category>
		<category><![CDATA[Code]]></category>
		<category><![CDATA[General]]></category>
		<category><![CDATA[android]]></category>
		<category><![CDATA[APOD]]></category>
		<category><![CDATA[Astronomy]]></category>

		<guid isPermaLink="false">http://basbrun.com/?p=1151</guid>
		<description><![CDATA[I published my first Android application, &#8220;Open APOD&#8221;, on the Google Play Store. I have developed this application to learn Android programming. You can get all the sources on my github or download it from Google Play. The application is Open Source and free of all charges. Get it, comment it, rate it &#8230;]]></description>
				<content:encoded><![CDATA[<p><a title="Open APOD" href="http://basbrun.com/wp-content/uploads/2012/08/moon_large.png" target="_blank"><img class="wp-image-1152   alignleft" src="http://basbrun.com/wp-content/uploads/2012/08/moon_large.png" alt="" width="128" height="128" /></a></p>
<p>I published my first Android application, &#8220;Open APOD&#8221;, on the Google Play Store. I have developed this application to learn Android programming. You can get all the sources on my <a title="Github - pchretien/APOD" href="https://github.com/pchretien/APOD" target="_blank">github</a> or <a title="Open APOD" href="https://play.google.com/store/apps/details?id=com.basbrun#?t=W251bGwsMSwxLDIxMiwiY29tLmJhc2JydW4iXQ.." target="_blank">download it from Google Play</a>. The application is Open Source and free of all charges. Get it, comment it, rate it &#8230;</p>
]]></content:encoded>
			<wfw:commentRss>http://basbrun.com/2012/08/09/open-apod-v1-0-release/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Astronomy Picture Of the Day on your Android</title>
		<link>http://basbrun.com/2012/07/11/astronomy-picture-of-the-day-on-your-android/</link>
		<comments>http://basbrun.com/2012/07/11/astronomy-picture-of-the-day-on-your-android/#comments</comments>
		<pubDate>Wed, 11 Jul 2012 16:00:00 +0000</pubDate>
		<dc:creator>pchretien</dc:creator>
				<category><![CDATA[Android]]></category>
		<category><![CDATA[Astronomy]]></category>
		<category><![CDATA[Code]]></category>
		<category><![CDATA[android]]></category>
		<category><![CDATA[APOD]]></category>

		<guid isPermaLink="false">http://basbrun.com/?p=1107</guid>
		<description><![CDATA[I spent the last week or so learning Android programming. I find it important, in the learning of a new programming tool, to write something with clear specifications. This forces you to work on the best solution instead of using easy to code work-arounds. The specifications are: The application should allow the user to read the Astrophotography [...]]]></description>
				<content:encoded><![CDATA[<p style="text-align: justify;"><a href="http://basbrun.com/wp-content/uploads/2012/07/android2.jpg"><img class="wp-image-1118 alignright" style="margin: 0px 10px; border: 0px currentColor;" title="android" src="http://basbrun.com/wp-content/uploads/2012/07/android2.jpg" alt="" width="128" height="128" /></a>I spent the last week or so learning Android programming. I find it important, in the learning of a new programming tool, to write something with clear specifications. This forces you to work on the best solution instead of using easy to code work-arounds.</p>
<p>The specifications are:</p>
<ol>
<li>The application should allow the user to read the Astrophotography Picture Of the Day published by NASA at <a title="APOD" href="http://apod.nasa.gov/apod" target="_blank">http://apod.nasa.gov/apod</a> on it&#8217;s Android device</li>
<li>The application needs to be compatible with Android 1.5 (SDK #3)</li>
<li>The user should be able to access the APOD for any date since june 16th 1995</li>
<li>The user should be able to directly access the APOD of the current day</li>
<li>The user should be able to navigate to the previous and next APODs</li>
<li>The user should be able to navigate to the previous and next APODs with fling gestures</li>
<li>The user should be able to view the picture in full size by clicking the preview picture</li>
<li>The user should be redirected to the APOD website when clicking on the full size picture</li>
</ol>
<p>These were the initial requirements &#8230; I will add some more stuff in the upcoming days:</p>
<ol>
<li style="text-align: justify;">Change the full size picture activity from a WebView to an ImageView. This will allow the implementation of the OnClickListener callback and the re-use of the image bitmap in memory.</li>
<li style="text-align: justify;">Caching of the APODs on the SD card. This will save bandwidth, an important issue when using mobile networks.</li>
<li style="text-align: justify;">Adding a splash screen while loading the first APOD. Since loading the images can take a while on mobile networks, a splash screen with a spinner would look more professional.</li>
</ol>
<p>The actual version of the project is published on my Github at the following address:<br />
<a title="APOD for Android" href="https://github.com/pchretien/APOD" target="_blank">https://github.com/pchretien/APOD</a> Feel free to fork, copying is not stealing!</p>
<p>&nbsp;</p>
]]></content:encoded>
			<wfw:commentRss>http://basbrun.com/2012/07/11/astronomy-picture-of-the-day-on-your-android/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Android Mini PC</title>
		<link>http://basbrun.com/2012/06/26/android-mini-pc/</link>
		<comments>http://basbrun.com/2012/06/26/android-mini-pc/#comments</comments>
		<pubDate>Tue, 26 Jun 2012 15:16:31 +0000</pubDate>
		<dc:creator>pchretien</dc:creator>
				<category><![CDATA[Android]]></category>
		<category><![CDATA[Electronic]]></category>
		<category><![CDATA[android]]></category>
		<category><![CDATA[hdmi]]></category>
		<category><![CDATA[mini]]></category>
		<category><![CDATA[pc]]></category>
		<category><![CDATA[wifi]]></category>

		<guid isPermaLink="false">http://basbrun.com/?p=1099</guid>
		<description><![CDATA[Last month I read an article on ArsTechnica about a small Android PC at 74$  and decided to give it a try. I received it yesterday and I am very impressed by the device. The small computer ships with a transformer, a mini-2-standard USB adapter, an HDMI cable and a mini-2-standard USB cable. You can [...]]]></description>
				<content:encoded><![CDATA[<p>Last month I read an article on <a title="ArsTechnica - Android Mini PC" href="http://arstechnica.com/gadgets/2012/05/new-74-android-mini-computer-is-slightly-larger-than-a-thumb-drive/" target="_blank">ArsTechnica about a small Android PC at 74$</a>  and decided to give it a try. I received it yesterday and I am very impressed by the device. The small computer ships with a transformer, a mini-2-standard USB adapter, an HDMI cable and a mini-2-standard USB cable. You can connect the computer into any TV or monitor with an HDMI input port. I plugged mine into an old TV I had in my junk and connected a wireless keyboard and mouse into it.</p>
<p>The device is built on top of a 1.5GHz ARM processor with 1Gb of flash storage and a built-in 802.11 wireless adapter. You can extend the storage with a microSD memory card. It comes pre-installed with Android 4.0 and a couple of standard Android applications like Youtube, GMail and, of course, a web browser.</p>
<p>Once connected to my home WiFi network I started playing around with the device. All the user interfaces are the same as a standard Android 4.0 phone or tablet. The web browser is the default Android browser. I configured my GMail, Facebook, Twitter and Hotmail accounts with no problems. For some reason  I have not been able to connect to my YouTube account. I&#8217;ll give it an other try later.</p>
<p>I then went to the Google Play store to download more apps. It seems that the store recognize the Android Mini PC s a tablet PC so not all phone applications are available for download. I started by downloading the TED and Netflix applications so I can convert my old TV into a modern &#8220;intelligent&#8221; TV. Both applications worked like a charm. Since &#8220;intelligent&#8221; TVs are usually sold an extra 700$, at 74$ the device was already paying for itself.</p>
<p>In conclusion, if you want to add web capabilities to your actual TV, the Android Mini PC combined to a wireless keyboard and mouse is a good candidate! You want one? You can now find it under 70$ on <a title="AliExpress" href="http://www.aliexpress.com/" target="_blank">AliExpress</a> by searching for &#8220;Android Mini PC&#8221; with the Free Shipping option selected.</p>

<div class="ngg-galleryoverview" id="ngg-gallery-5-1099">

	<!-- Slideshow link -->
	<div class="slideshowlink">
		<a class="slideshowlink" href="http://basbrun.com/2012/06/26/android-mini-pc/?show=slide">
			[Show as slideshow]		</a>
	</div>

	
	<!-- Thumbnails -->
		
	<div id="ngg-image-23" class="ngg-gallery-thumbnail-box"  >
		<div class="ngg-gallery-thumbnail" >
			<a href="http://basbrun.com/wp-content/gallery/android-mini-pc/img_20120626_100423.jpg" title=" " class="shutterset_set_5" >
								<img title="img_20120626_100423" alt="img_20120626_100423" src="http://basbrun.com/wp-content/gallery/android-mini-pc/thumbs/thumbs_img_20120626_100423.jpg" width="100" height="75" />
							</a>
		</div>
	</div>
	
		
 		
	<div id="ngg-image-24" class="ngg-gallery-thumbnail-box"  >
		<div class="ngg-gallery-thumbnail" >
			<a href="http://basbrun.com/wp-content/gallery/android-mini-pc/img_20120626_100703.jpg" title=" " class="shutterset_set_5" >
								<img title="img_20120626_100703" alt="img_20120626_100703" src="http://basbrun.com/wp-content/gallery/android-mini-pc/thumbs/thumbs_img_20120626_100703.jpg" width="100" height="75" />
							</a>
		</div>
	</div>
	
		
 	 	
	<!-- Pagination -->
 	<div class='ngg-clear'></div>
 	
</div>


]]></content:encoded>
			<wfw:commentRss>http://basbrun.com/2012/06/26/android-mini-pc/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>2012 Venus Transit</title>
		<link>http://basbrun.com/2012/06/05/2012-venus-transit-2/</link>
		<comments>http://basbrun.com/2012/06/05/2012-venus-transit-2/#comments</comments>
		<pubDate>Wed, 06 Jun 2012 01:02:17 +0000</pubDate>
		<dc:creator>pchretien</dc:creator>
				<category><![CDATA[Astronomy]]></category>
		<category><![CDATA[astrophotography]]></category>
		<category><![CDATA[photo]]></category>
		<category><![CDATA[telescope]]></category>
		<category><![CDATA[transit]]></category>
		<category><![CDATA[venus]]></category>

		<guid isPermaLink="false">http://basbrun.com/?p=1043</guid>
		<description><![CDATA[We had a perfect weather all day long and 15 minutes before the transit started, dark clouds rolled in and ruined the show! I got these two shots before the sun completely disappeared behind the clouds  &#8230; I also uploaded some pictures of my camera and binoculars with the solar filters. I built the binoculars filters [...]]]></description>
				<content:encoded><![CDATA[<p>We had a perfect weather all day long and 15 minutes before the transit started, dark clouds rolled in and ruined the show! I got these two shots before the sun completely disappeared behind the clouds  &#8230;</p>
<p>I also uploaded some pictures of my camera and binoculars with the solar filters. I built the binoculars filters using old plastic bags and BAADER solar filter sheets. Adding a plastic rim to the filters helps fixing it to the binoculars or camera.</p>
<p>My camera rig if composed of an old and cheap 60mm refraction scope and my trusty Canon 20Da. I used a standard T-Ring to connect both together.</p>
<p>We made it a family event &#8230; good thing we had a soccer ball with us!</p>

<div class="ngg-galleryoverview" id="ngg-gallery-4-1043">

	<!-- Slideshow link -->
	<div class="slideshowlink">
		<a class="slideshowlink" href="http://basbrun.com/2012/06/05/2012-venus-transit-2/?show=slide">
			[Show as slideshow]		</a>
	</div>

	
	<!-- Thumbnails -->
		
	<div id="ngg-image-18" class="ngg-gallery-thumbnail-box"  >
		<div class="ngg-gallery-thumbnail" >
			<a href="http://basbrun.com/wp-content/gallery/2012-venus-transit/img_20120605_161957.jpg" title="Adding a plastic rim to the solar filter helps attaching the filter to the binoculars." class="shutterset_set_4" >
								<img title="Building the binoculars filters" alt="Building the binoculars filters" src="http://basbrun.com/wp-content/gallery/2012-venus-transit/thumbs/thumbs_img_20120605_161957.jpg" width="100" height="75" />
							</a>
		</div>
	</div>
	
		
 		
	<div id="ngg-image-19" class="ngg-gallery-thumbnail-box"  >
		<div class="ngg-gallery-thumbnail" >
			<a href="http://basbrun.com/wp-content/gallery/2012-venus-transit/img_20120605_170517.jpg" title="An old/cheap refraction scope coupled to my Canon 20Da camera" class="shutterset_set_4" >
								<img title="Scope and Camera" alt="Scope and Camera" src="http://basbrun.com/wp-content/gallery/2012-venus-transit/thumbs/thumbs_img_20120605_170517.jpg" width="100" height="75" />
							</a>
		</div>
	</div>
	
		
 		
	<div id="ngg-image-21" class="ngg-gallery-thumbnail-box"  >
		<div class="ngg-gallery-thumbnail" >
			<a href="http://basbrun.com/wp-content/gallery/2012-venus-transit/img_20120605_170625.jpg" title=" " class="shutterset_set_4" >
								<img title="Binoculars with filters" alt="Binoculars with filters" src="http://basbrun.com/wp-content/gallery/2012-venus-transit/thumbs/thumbs_img_20120605_170625.jpg" width="100" height="75" />
							</a>
		</div>
	</div>
	
		
 		
	<div id="ngg-image-20" class="ngg-gallery-thumbnail-box"  >
		<div class="ngg-gallery-thumbnail" >
			<a href="http://basbrun.com/wp-content/gallery/2012-venus-transit/img_20120605_170541.jpg" title="The T-Ring camera adapter" class="shutterset_set_4" >
								<img title="Camera attachment" alt="Camera attachment" src="http://basbrun.com/wp-content/gallery/2012-venus-transit/thumbs/thumbs_img_20120605_170541.jpg" width="100" height="75" />
							</a>
		</div>
	</div>
	
		
 		
	<div id="ngg-image-15" class="ngg-gallery-thumbnail-box"  >
		<div class="ngg-gallery-thumbnail" >
			<a href="http://basbrun.com/wp-content/gallery/2012-venus-transit/img_0810a.jpg" title=" " class="shutterset_set_4" >
								<img title="The sun before the transit begins" alt="The sun before the transit begins" src="http://basbrun.com/wp-content/gallery/2012-venus-transit/thumbs/thumbs_img_0810a.jpg" width="100" height="75" />
							</a>
		</div>
	</div>
	
		
 		
	<div id="ngg-image-16" class="ngg-gallery-thumbnail-box"  >
		<div class="ngg-gallery-thumbnail" >
			<a href="http://basbrun.com/wp-content/gallery/2012-venus-transit/img_0815a.jpg" title=" " class="shutterset_set_4" >
								<img title="The sun during the transit." alt="The sun during the transit." src="http://basbrun.com/wp-content/gallery/2012-venus-transit/thumbs/thumbs_img_0815a.jpg" width="100" height="75" />
							</a>
		</div>
	</div>
	
		
 		
	<div id="ngg-image-17" class="ngg-gallery-thumbnail-box"  >
		<div class="ngg-gallery-thumbnail" >
			<a href="http://basbrun.com/wp-content/gallery/2012-venus-transit/img_0816a.jpg" title=" " class="shutterset_set_4" >
								<img title="The sun during the transit." alt="The sun during the transit." src="http://basbrun.com/wp-content/gallery/2012-venus-transit/thumbs/thumbs_img_0816a.jpg" width="100" height="75" />
							</a>
		</div>
	</div>
	
		
 		
	<div id="ngg-image-22" class="ngg-gallery-thumbnail-box"  >
		<div class="ngg-gallery-thumbnail" >
			<a href="http://basbrun.com/wp-content/gallery/2012-venus-transit/img_20120605_191407.jpg" title="We went all the family to see the transit. Good thing we had a soccer ball!" class="shutterset_set_4" >
								<img title="At the park with my family" alt="At the park with my family" src="http://basbrun.com/wp-content/gallery/2012-venus-transit/thumbs/thumbs_img_20120605_191407.jpg" width="100" height="75" />
							</a>
		</div>
	</div>
	
		
 	 	
	<!-- Pagination -->
 	<div class='ngg-clear'></div>
 	
</div>


]]></content:encoded>
			<wfw:commentRss>http://basbrun.com/2012/06/05/2012-venus-transit-2/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>2012 Venus Transit</title>
		<link>http://basbrun.com/2012/06/05/2012-venus-transit/</link>
		<comments>http://basbrun.com/2012/06/05/2012-venus-transit/#comments</comments>
		<pubDate>Tue, 05 Jun 2012 13:21:35 +0000</pubDate>
		<dc:creator>pchretien</dc:creator>
				<category><![CDATA[Astronomy]]></category>
		<category><![CDATA[astrophotography]]></category>
		<category><![CDATA[photo]]></category>
		<category><![CDATA[telescope]]></category>
		<category><![CDATA[transit]]></category>
		<category><![CDATA[venus]]></category>

		<guid isPermaLink="false">http://basbrun.com/?p=1040</guid>
		<description><![CDATA[A quick reminder &#8230; Don&#8217;t miss the last Venus Transit until 2117! It starts today (june 5th) at 22:09UTC. Venus will be visible against the solar disk for about 6 hours. The transit ends at 04:49UTC. More of my pictures of the 2004 Venus transit on my astrophoto website at astrophoto.ca.]]></description>
				<content:encoded><![CDATA[<p>A quick reminder &#8230; Don&#8217;t miss the last Venus Transit until 2117! It starts today (june 5th) at 22:09UTC. Venus will be visible against the solar disk for about 6 hours. The transit ends at 04:49UTC.</p>
<p>More of my pictures of the 2004 Venus transit on my astrophoto website at <a title="2004 Venus Transit" href="http://astrophoto.ca/index.php?option=com_content&amp;view=section&amp;id=5&amp;Itemid=6" target="_blank">astrophoto.ca</a>.</p>
<div id="attachment_1041" class="wp-caption alignnone" style="width: 410px"><a href="http://basbrun.com/wp-content/uploads/2012/06/20040608_300mm_16_17_800.jpg"><img class="size-full wp-image-1041" title="2004 Venus Transit" src="http://basbrun.com/wp-content/uploads/2012/06/20040608_300mm_16_17_800.jpg" alt="2004 Venus Transit" width="400" height="298" /></a><p class="wp-caption-text">2004 Venus Transit</p></div>
]]></content:encoded>
			<wfw:commentRss>http://basbrun.com/2012/06/05/2012-venus-transit/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>This is not a bike &#8230;</title>
		<link>http://basbrun.com/2012/06/01/this-is-not-a-bike/</link>
		<comments>http://basbrun.com/2012/06/01/this-is-not-a-bike/#comments</comments>
		<pubDate>Fri, 01 Jun 2012 18:05:51 +0000</pubDate>
		<dc:creator>pchretien</dc:creator>
				<category><![CDATA[General]]></category>
		<category><![CDATA[bicycle]]></category>
		<category><![CDATA[bike]]></category>
		<category><![CDATA[fixed-gear]]></category>
		<category><![CDATA[fixie]]></category>

		<guid isPermaLink="false">http://basbrun.com/?p=1034</guid>
		<description><![CDATA[I can hear you thinking &#8220;Oh, Phil bought a new Fixie!&#8221; &#8230; whell, you&#8217;r kind of right but, if you look closer, what you&#8217;ll see is a development platform for electronic gadgets and 3D printed devices! :)]]></description>
				<content:encoded><![CDATA[<p>I can hear you thinking &#8220;Oh, Phil bought a new <a title="Fixie - Wikipedia" href="https://en.wikipedia.org/wiki/Fixed-gear_bicycle" target="_blank">Fixie</a>!&#8221; &#8230; whell, you&#8217;r kind of right but, if you look closer, what you&#8217;ll see is a development platform for electronic gadgets and 3D printed devices! :)</p>

<a href="http://basbrun.com/wp-content/gallery/bike/fixie.jpg" title="" class="shutterset_singlepic14" >
	<img class="ngg-singlepic" src="http://basbrun.com/wp-content/gallery/cache/14__512x384_fixie.jpg" alt="fixie" title="fixie" />
</a>

]]></content:encoded>
			<wfw:commentRss>http://basbrun.com/2012/06/01/this-is-not-a-bike/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Quiz Buzzer System</title>
		<link>http://basbrun.com/2012/05/30/quiz-buzzer-system/</link>
		<comments>http://basbrun.com/2012/05/30/quiz-buzzer-system/#comments</comments>
		<pubDate>Thu, 31 May 2012 03:07:25 +0000</pubDate>
		<dc:creator>pchretien</dc:creator>
				<category><![CDATA[Arduino]]></category>
		<category><![CDATA[C/C++]]></category>
		<category><![CDATA[Electronic]]></category>
		<category><![CDATA[74hc595]]></category>
		<category><![CDATA[74ls32]]></category>
		<category><![CDATA[adafruit]]></category>
		<category><![CDATA[ardino]]></category>
		<category><![CDATA[buzzer]]></category>
		<category><![CDATA[LED]]></category>
		<category><![CDATA[quiz]]></category>
		<category><![CDATA[wave shield]]></category>

		<guid isPermaLink="false">http://basbrun.com/?p=1000</guid>
		<description><![CDATA[Last Christmas I built a Quiz Buzzer System for my mother. She is a big fan of television quizzes and love to organize some with her friends and family. The particularity of this project is that you can choose your team buzzer sound from a list of more than 30 digital sounds. The system is [...]]]></description>
				<content:encoded><![CDATA[<p>Last Christmas I built a Quiz Buzzer System for my mother. She is a big fan of television quizzes and love to organize some with her friends and family. The particularity of this project is that you can choose your team buzzer sound from a list of more than 30 digital sounds.</p>
<p>The system is composed of a main console, 8 buttons, a power supply and a set of telephone cables. The core of the console, built in a plastic project box, is made of an Arduino Duemilanueve micro-controller coupled with an <a title="Adafruit Industries" href="http://www.adafruit.com" target="_blank">Adafruit </a>wave shield. The 8 buttons are made out of small project boxes and arcade buttons, again from <a title="Adafruit Industries" href="http://www.adafruit.com" target="_blank">Adafruit</a>. The buttons are connected to the main console using telephone jack and cables.</p>
<p>For this project I am using all the IO available on a standard Arduino board. I even have to use the pins #0 and #1 to achieve my goal. To drive the buttons LEDs I am using a 74HC595 shift register chip. To drive the control panel LEDs without using additional IO pins I am using two 74LS32 OR gate chips. Finally, to drive the cluster of LEDs I am using a L293 driver chip.</p>
<p>To change your team buzzer sound you maintain the main console button pressed and push any button of the team who wants to change it&#8217;s buzzer sound. Every tie you push the team button, the next sound in the list is played. When you find the perfect sound for your team you release the main console button and voilà &#8230;</p>
<p>You can find the Arduino source code on my Github at <a href="https://github.com/pchretien/quiz">https://github.com/pchretien/quiz</a>.</p>
<p>Next I will &#8230;</p>
<ol>
<li>Publish the schematics on github</li>
<li>Post more details about the code (wave shield, 74hc595, &#8230;)</li>
<li>Make a short video to demonstrate how the machine works</li>
</ol>

<div class="ngg-galleryoverview" id="ngg-gallery-1-1000">

	<!-- Slideshow link -->
	<div class="slideshowlink">
		<a class="slideshowlink" href="http://basbrun.com/2012/05/30/quiz-buzzer-system/?show=slide">
			[Show as slideshow]		</a>
	</div>

	
	<!-- Thumbnails -->
		
	<div id="ngg-image-1" class="ngg-gallery-thumbnail-box"  >
		<div class="ngg-gallery-thumbnail" >
			<a href="http://basbrun.com/wp-content/gallery/quiz/img_20111217_144107.jpg" title="Preparation of a button box" class="shutterset_set_1" >
								<img title="Button box" alt="Button box" src="http://basbrun.com/wp-content/gallery/quiz/thumbs/thumbs_img_20111217_144107.jpg" width="100" height="75" />
							</a>
		</div>
	</div>
	
		
 		
	<div id="ngg-image-5" class="ngg-gallery-thumbnail-box"  >
		<div class="ngg-gallery-thumbnail" >
			<a href="http://basbrun.com/wp-content/gallery/quiz/img_20111221_000238.jpg" title="Installing the telephone jacks into all the button boxes" class="shutterset_set_1" >
								<img title="Button boxes" alt="Button boxes" src="http://basbrun.com/wp-content/gallery/quiz/thumbs/thumbs_img_20111221_000238.jpg" width="100" height="75" />
							</a>
		</div>
	</div>
	
		
 		
	<div id="ngg-image-2" class="ngg-gallery-thumbnail-box"  >
		<div class="ngg-gallery-thumbnail" >
			<a href="http://basbrun.com/wp-content/gallery/quiz/img_20111217_154132.jpg" title="The 8 buttons boxes are now finished and ready to go" class="shutterset_set_1" >
								<img title="Button boxes finished" alt="Button boxes finished" src="http://basbrun.com/wp-content/gallery/quiz/thumbs/thumbs_img_20111217_154132.jpg" width="100" height="75" />
							</a>
		</div>
	</div>
	
		
 		
	<div id="ngg-image-3" class="ngg-gallery-thumbnail-box"  >
		<div class="ngg-gallery-thumbnail" >
			<a href="http://basbrun.com/wp-content/gallery/quiz/img_20111218_154926.jpg" title="Drilling the LED holes into the main console" class="shutterset_set_1" >
								<img title="Drilling the LED holes" alt="Drilling the LED holes" src="http://basbrun.com/wp-content/gallery/quiz/thumbs/thumbs_img_20111218_154926.jpg" width="100" height="75" />
							</a>
		</div>
	</div>
	
		
 		
	<div id="ngg-image-4" class="ngg-gallery-thumbnail-box"  >
		<div class="ngg-gallery-thumbnail" >
			<a href="http://basbrun.com/wp-content/gallery/quiz/img_20111220_224248.jpg" title="The circuit prototype for thie project" class="shutterset_set_1" >
								<img title="Circuit prototype" alt="Circuit prototype" src="http://basbrun.com/wp-content/gallery/quiz/thumbs/thumbs_img_20111220_224248.jpg" width="100" height="75" />
							</a>
		</div>
	</div>
	
		
 		
	<div id="ngg-image-6" class="ngg-gallery-thumbnail-box"  >
		<div class="ngg-gallery-thumbnail" >
			<a href="http://basbrun.com/wp-content/gallery/quiz/img_20111224_095916.jpg" title="Adafruit perma-proto boards" class="shutterset_set_1" >
								<img title="Soldered breadboard preparation" alt="Soldered breadboard preparation" src="http://basbrun.com/wp-content/gallery/quiz/thumbs/thumbs_img_20111224_095916.jpg" width="100" height="75" />
							</a>
		</div>
	</div>
	
		
 		
	<div id="ngg-image-7" class="ngg-gallery-thumbnail-box"  >
		<div class="ngg-gallery-thumbnail" >
			<a href="http://basbrun.com/wp-content/gallery/quiz/img_20111225_214238.jpg" title="Wiring the circuit" class="shutterset_set_1" >
								<img title="Wiring the circuit" alt="Wiring the circuit" src="http://basbrun.com/wp-content/gallery/quiz/thumbs/thumbs_img_20111225_214238.jpg" width="100" height="75" />
							</a>
		</div>
	</div>
	
		
 		
	<div id="ngg-image-8" class="ngg-gallery-thumbnail-box"  >
		<div class="ngg-gallery-thumbnail" >
			<a href="http://basbrun.com/wp-content/gallery/quiz/img_20111225_224010.jpg" title="Wiring the circuit" class="shutterset_set_1" >
								<img title="Wiring the circuit" alt="Wiring the circuit" src="http://basbrun.com/wp-content/gallery/quiz/thumbs/thumbs_img_20111225_224010.jpg" width="100" height="75" />
							</a>
		</div>
	</div>
	
		
 		
	<div id="ngg-image-12" class="ngg-gallery-thumbnail-box"  >
		<div class="ngg-gallery-thumbnail" >
			<a href="http://basbrun.com/wp-content/gallery/quiz/img_20120508_213240.jpg" title="Assembling all the parts of the main console. Most parts are glued to the project box." class="shutterset_set_1" >
								<img title="Assembling all the parts of the main console" alt="Assembling all the parts of the main console" src="http://basbrun.com/wp-content/gallery/quiz/thumbs/thumbs_img_20120508_213240.jpg" width="100" height="75" />
							</a>
		</div>
	</div>
	
		
 		
	<div id="ngg-image-13" class="ngg-gallery-thumbnail-box"  >
		<div class="ngg-gallery-thumbnail" >
			<a href="http://basbrun.com/wp-content/gallery/quiz/img_20120508_213323.jpg" title="The main console opened to show the speaker" class="shutterset_set_1" >
								<img title="The main console opened" alt="The main console opened" src="http://basbrun.com/wp-content/gallery/quiz/thumbs/thumbs_img_20120508_213323.jpg" width="100" height="75" />
							</a>
		</div>
	</div>
	
		
 		
	<div id="ngg-image-11" class="ngg-gallery-thumbnail-box"  >
		<div class="ngg-gallery-thumbnail" >
			<a href="http://basbrun.com/wp-content/gallery/quiz/img_20120508_213006.jpg" title="Quiz Buzzer main console" class="shutterset_set_1" >
								<img title="Main console" alt="Main console" src="http://basbrun.com/wp-content/gallery/quiz/thumbs/thumbs_img_20120508_213006.jpg" width="100" height="75" />
							</a>
		</div>
	</div>
	
		
 		
	<div id="ngg-image-10" class="ngg-gallery-thumbnail-box"  >
		<div class="ngg-gallery-thumbnail" >
			<a href="http://basbrun.com/wp-content/gallery/quiz/img_20120508_212938.jpg" title="The complete Quiz Buzzer kit" class="shutterset_set_1" >
								<img title="The complete Quiz Buzzer kit" alt="The complete Quiz Buzzer kit" src="http://basbrun.com/wp-content/gallery/quiz/thumbs/thumbs_img_20120508_212938.jpg" width="100" height="75" />
							</a>
		</div>
	</div>
	
		
 		
	<div id="ngg-image-9" class="ngg-gallery-thumbnail-box"  >
		<div class="ngg-gallery-thumbnail" >
			<a href="http://basbrun.com/wp-content/gallery/quiz/img_20120101_214406.jpg" title=" " class="shutterset_set_1" >
								<img title="Playing with my family" alt="Playing with my family" src="http://basbrun.com/wp-content/gallery/quiz/thumbs/thumbs_img_20120101_214406.jpg" width="100" height="75" />
							</a>
		</div>
	</div>
	
		
 	 	
	<!-- Pagination -->
 	<div class='ngg-clear'></div>
 	
</div>


]]></content:encoded>
			<wfw:commentRss>http://basbrun.com/2012/05/30/quiz-buzzer-system/feed/</wfw:commentRss>
		<slash:comments>16</slash:comments>
		</item>
		<item>
		<title>First custom PCB</title>
		<link>http://basbrun.com/2012/05/16/first-custom-pcp/</link>
		<comments>http://basbrun.com/2012/05/16/first-custom-pcp/#comments</comments>
		<pubDate>Thu, 17 May 2012 03:25:50 +0000</pubDate>
		<dc:creator>pchretien</dc:creator>
				<category><![CDATA[Arduino]]></category>
		<category><![CDATA[Electronic]]></category>
		<category><![CDATA[Atmega328]]></category>
		<category><![CDATA[etching]]></category>
		<category><![CDATA[fritzing]]></category>
		<category><![CDATA[L293]]></category>
		<category><![CDATA[PCB]]></category>
		<category><![CDATA[stepper motor]]></category>

		<guid isPermaLink="false">http://basbrun.com/?p=987</guid>
		<description><![CDATA[This is my first working printed circuit board. I used the toner transfer method to draw the traces on the copper board. The purpose of this circuit board is to drive a stepper motor. This is a proof of concept for the final board version that will complete my equatorial mount project. The equatorial mount will [...]]]></description>
				<content:encoded><![CDATA[<p>This is my first working printed circuit board. I used the toner transfer method to draw the traces on the copper board. The purpose of this circuit board is to drive a stepper motor. This is a proof of concept for the final board version that will complete my equatorial mount project. The equatorial mount will be my first project in my new &#8220;Projects&#8221; section. I will begin with the conception and the making of this board.</p>
<div id="attachment_989" class="wp-caption alignnone" style="width: 522px"><a title="Arduino Stepper Motor Controller PCB" href="http://basbrun.com/wp-content/uploads/2012/05/IMG_20120516_225257.jpg" target="_blank"><img class=" wp-image-989 " style="border: 1px solid black;" title="Arduino Stepper Motor Controller PCB" src="http://basbrun.com/wp-content/uploads/2012/05/IMG_20120516_225257.jpg" alt="Arduino Stepper Motor Controller PCB" width="512" height="384" /></a><p class="wp-caption-text">Arduino Stepper Motor Controller PCB</p></div>
<p>I have designed the PCB using <a title="Fritzing" href="http://fritzing.org/" target="_blank">Fritzing</a>, an open source circuit designer. You can find the project and the PDF of the circuit on my <a title="Github - Startracker" href="https://github.com/pchretien/startracker" target="_blank">github</a>. More details to come in the Projects section &#8230; hopefully in a few days.</p>
<div id="attachment_992" class="wp-caption alignnone" style="width: 522px"><a title="PCP Details" href="http://basbrun.com/wp-content/uploads/2012/05/pcb2.jpg" target="_blank"><img class=" wp-image-992   " style="border: 1px solid black;" title="PCP Details" src="http://basbrun.com/wp-content/uploads/2012/05/pcb2.jpg" alt="PCP Details" width="512" height="251" /></a><p class="wp-caption-text">PCP Details</p></div>
<p>I had a bit of troubles soldering the power connector because I drilled the holes too large. I&#8217;ll have to renew my stocks of small drill bits &#8230; I broke two 1/32&#8243; bits while doing this board!</p>
<p>&nbsp;</p>
]]></content:encoded>
			<wfw:commentRss>http://basbrun.com/2012/05/16/first-custom-pcp/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Keypad &amp; LCD Display</title>
		<link>http://basbrun.com/2012/05/11/keypad-lcd-display/</link>
		<comments>http://basbrun.com/2012/05/11/keypad-lcd-display/#comments</comments>
		<pubDate>Sat, 12 May 2012 03:43:11 +0000</pubDate>
		<dc:creator>pchretien</dc:creator>
				<category><![CDATA[Arduino]]></category>
		<category><![CDATA[Electronic]]></category>
		<category><![CDATA[electronic]]></category>
		<category><![CDATA[keypad]]></category>
		<category><![CDATA[LCD Display]]></category>
		<category><![CDATA[potentiometer]]></category>

		<guid isPermaLink="false">http://basbrun.com/?p=973</guid>
		<description><![CDATA[While I was still trying to figure out what to do these 10 keypads, I received an LCD Display I ordered on eBay. It&#8217;s friday, I have no better idea than plug them both on an Arduino and  code something. &#160; I started from the circuit of the Keypad article and moved the wires connected [...]]]></description>
				<content:encoded><![CDATA[<p>While I was still trying to figure out what to do <a title="Cheap Keypad and Arduino" href="http://basbrun.com/2012/05/02/cheap-keypad-and-arduino/">these 10 keypads</a>, I received an LCD Display I ordered on eBay. It&#8217;s friday, I have no better idea than plug them both on an Arduino and  code something.</p>
<p>&nbsp;</p>
<div id="attachment_975" class="wp-caption alignnone" style="width: 394px"><a href="http://basbrun.com/wp-content/uploads/2012/05/IMG_20120511_224855.jpg" target="_blank"><img class=" wp-image-975 " style="border: 1px solid black;" title="Keypad &amp; LCD Display" src="http://basbrun.com/wp-content/uploads/2012/05/IMG_20120511_224855.jpg" alt="Keypad &amp; LCD Display" width="384" height="512" /></a><p class="wp-caption-text">Keypad &amp; LCD Display</p></div>
<p>I started from the circuit of the Keypad article and moved the wires connected to pins 7 &amp; 8 to analog pins 0 &amp; 1. There is no good reason to that shift except that it makes it easier to have the LCD wires all connected to the same side of the Arduino.</p>
<p>I will not go in details with the wiring since Limor Fried, founder of Adafruit Industries published <a title="Lady Ada - LCD &amp; Arduino" href="http://www.ladyada.net/learn/lcd/charlcd.html" target="_blank">an excellent demo</a> on how to connect the display to an Arduino. This will require an additional 6 pins on your Arduino. I used the same pins as in the Lady Ada demo, 7, 8, 9, 10, 11 and 12.</p>
<p><iframe src="http://www.youtube.com/embed/V7bgvt3uQgg?rel=0" frameborder="0" width="480" height="360"></iframe></p>
<p>Now let&#8217;s jump into the code. This is a very simple demo and you will not find anything mind blowing. The hard part has been coded for you in the LiquidCrystal library, included with the Arduino IDE.</p>
<p>Thanks for reading &#8230;</p>
<pre>#include &lt;Keypad.h&gt;
#include &lt;LiquidCrystal.h&gt;
#include &lt;Wire.h&gt; 

#define REDLITE 3
#define GREENLITE 5
#define BLUELITE 6

#define TITLE "KeyPad &amp; LCD  __"
#define READY "Ready ...       "
#define EMPTY "              "

// initialize the library with the numbers of the interface pins
LiquidCrystal lcd(7, 8, 9, 10, 11, 12);

// you can change the overall brightness by range 0 -&gt; 255
int brightness = 255;

const byte ROWS = 4; //four rows
const byte COLS = 3; //three columns
char keys[ROWS][COLS] = {
  {'1','2','3'},
  {'4','5','6'},
  {'7','8','9'},
  {'*','0','#'}
};

//connect to the row pinouts of the keypad
byte rowPins[ROWS] = {2, 3, 4, 5};

//connect to the column pinouts of the keypad
byte colPins[COLS] = {6, 14, 15}; 

Keypad keypad = Keypad( makeKeymap(keys), rowPins, colPins, ROWS, COLS );

void setup()
{
  // set up the LCD's number of rows and columns:
  lcd.begin(16, 2);
  // Print a message to the LCD.
  lcd.print(TITLE);
  lcd.setCursor(0,1);
  lcd.print(READY);

  brightness = 100;

  Serial.begin(9600);
}

int index = 1;
char digits[2] = {' ',' '};

void loop(){

  char key = keypad.getKey();

  if (key != NO_KEY)
  {
    index = !index;   

    if(key == '*')
    {
      index = 1;
      digits[0] = ' ';
      digits[1] = ' ';
      lcd.setCursor(0,0);
      lcd.print(TITLE);
      lcd.setCursor(0,1);
      lcd.print(READY);
    }
    else if(key == '#')
    {
      // Animation
      for(int i=0; i&lt;15;i++)
      {
        lcd.setCursor(0,1);
        lcd.print(EMPTY);
        lcd.setCursor(i,1);
        lcd.print(digits);
        delay(100);
      }

      lcd.setCursor(0,1);
      lcd.print(EMPTY);
      lcd.setCursor(14,0);
      lcd.print(digits);

      index = 1;
      digits[0] = ' ';
      digits[1] = ' ';
      lcd.setCursor(0,1);
      lcd.print(READY);
    }
    else
    {
      digits[index] = key;
      lcd.setCursor(0,1);
      lcd.print(digits);
      lcd.print(EMPTY);
    }

    Serial.println(key);
  }
}</pre>
]]></content:encoded>
			<wfw:commentRss>http://basbrun.com/2012/05/11/keypad-lcd-display/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
	</channel>
</rss>
