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

<channel>
	<title>web butcher</title>
	<atom:link href="http://wbutcher.com/feed/" rel="self" type="application/rss+xml" />
	<link>http://wbutcher.com</link>
	<description>Just another WordPress weblog</description>
	<pubDate>Fri, 16 Mar 2012 16:55:56 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.7.1</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>How to transfer contacts from Android to Iphone (the simple way)</title>
		<link>http://wbutcher.com/how-to-transfer-contacts-from-android-to-iphone-the-simple-way/</link>
		<comments>http://wbutcher.com/how-to-transfer-contacts-from-android-to-iphone-the-simple-way/#comments</comments>
		<pubDate>Fri, 16 Mar 2012 16:53:35 +0000</pubDate>
		<dc:creator>felipe</dc:creator>
		
		<category><![CDATA[Uncategorized]]></category>

		<category><![CDATA[android]]></category>

		<category><![CDATA[contacts]]></category>

		<category><![CDATA[iphone]]></category>

		<category><![CDATA[vcard]]></category>

		<guid isPermaLink="false">http://wbutcher.com/?p=279</guid>
		<description><![CDATA[When I bought my Iphone was googling a way to transfers my contacts from Android. I found many complicated and boring ways until I got stuck&#8230; Here&#8217;s the simple three steps way:

Export your contact list in a VCF (vCard) file from your Android.
Email yourself the VCF file.
Open the attachment from your Iphone and choose the [...]]]></description>
			<content:encoded><![CDATA[<p>When I bought my Iphone was googling a way to transfers my contacts from Android. I found many complicated and boring ways until I got stuck&#8230; Here&#8217;s the simple three steps way:</p>
<ol>
<li>Export your contact list in a VCF (vCard) file from your Android.</li>
<li>Email yourself the VCF file.</li>
<li>Open the attachment from your Iphone and choose the import option.</li>
<li>You&#8217;re done. Simple like that.</li>
</ol>
]]></content:encoded>
			<wfw:commentRss>http://wbutcher.com/how-to-transfer-contacts-from-android-to-iphone-the-simple-way/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Protected: Comentátios de Policiais Militares em Vídeo no Youtube</title>
		<link>http://wbutcher.com/comentatios-de-policias-militares-em-video-no-youtube/</link>
		<comments>http://wbutcher.com/comentatios-de-policias-militares-em-video-no-youtube/#comments</comments>
		<pubDate>Fri, 12 Nov 2010 14:43:57 +0000</pubDate>
		<dc:creator>felipe</dc:creator>
		
		<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://wbutcher.com/?p=265</guid>
		<description><![CDATA[There is no excerpt because this is a protected post.]]></description>
			<content:encoded><![CDATA[<form action="http://wbutcher.com/wp-pass.php" method="post">
<p>This post is password protected. To view it please enter your password below:</p>
<p><label for="pwbox-265">Password:<br />
<input name="post_password" id="pwbox-265" type="password" size="20" /></label><br />
<input type="submit" name="Submit" value="Submit" /></p></form>
]]></content:encoded>
			<wfw:commentRss>http://wbutcher.com/comentatios-de-policias-militares-em-video-no-youtube/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Garmin GPS in Brazil with TrackSource</title>
		<link>http://wbutcher.com/gps-garmin-brazil/</link>
		<comments>http://wbutcher.com/gps-garmin-brazil/#comments</comments>
		<pubDate>Tue, 12 Jan 2010 23:46:37 +0000</pubDate>
		<dc:creator>felipe</dc:creator>
		
		<category><![CDATA[articles]]></category>

		<guid isPermaLink="false">http://wbutcher.com/?p=221</guid>
		<description><![CDATA[Leia este artigo em português.
This post explains how to obtain a complete map of Brazil for Garmin GPS. If you are planning to travel to Brazil and you plan to bring your Garmin GPS, this post is probably useful. In my opinion Garmin is the best GPS option anywhere in the world, but Brazilian maps [...]]]></description>
			<content:encoded><![CDATA[<p><a href="http://wbutcher.com/gps-garmin-brasil/">Leia este artigo em português.</a></p>
<p>This post explains how to obtain a complete map of Brazil for Garmin GPS. If you are planning to travel to Brazil and you plan to bring your Garmin GPS, this post is probably useful. In my opinion Garmin is the best GPS option anywhere in the world, but Brazilian maps are not very complete. Just a few points of interest exist. For example, at Belo horizonte (my city) I cannot find most banks or malls, etc.</p>
<p>Fortunately there&#8217;s a project called <a title="Projeto TrackSource" href="http://www.tracksource.org.br/" target="_blank">Projeto TrackSource</a> (site in Portuguese only). This project is a community that provides complete maps for Brazil. It contains gas stations, banks, supermarkets, movie theaters and anything else you can imagine. With TrackSource your Garmin GPS turns into a very complete and much more useful tool than that with original maps. Leaving my home for example there&#8217;s a dead end street. With the original maps it always says me to get this street as if I had a flying car. After installing TrackSource this part of street is not there anymore as expected.</p>
<p>I would like to encourage folks that are using TrackSource to give a donation. After testing of course :). The project is totally free and there&#8217;s a link in the main page to give a donation. As a contribution I gave R$ 20,00 through the link on the site, created this page and posted on  <a title="twitter" href="http://twitter.com/felipebutcher" target="_blank">twitter</a>, <a title="StumbleUpon" href="http://www.stumbleupon.com/" target="_blank">stumbleupon</a> and other applications to help spreading the project, what&#8217;s is not too much if compared to the benefits that trackSource offers. When we help a project like this we are giving a vote for the technology development of our country. Doing this, we are encouraging professionals of very high quality to provide new technologies by a fair price.</p>
<p>The equipment used in this example was the Garmin nüvi 205. I believe these steps are going to work with any other recent GPS equipment from Garmin.</p>
<p>Let&#8217;s go to the business. Remember that you must have the Garmin software installed on your computer before doing the steps. (You will have to navigate under a Portuguese page, not a big deal haha)</p>
<ol>
<li>Go to the download page<a title="TrackSource Download" href="http://www.tracksource.org.br/index.php?option=com_wrapper&amp;view=wrapper&amp;Itemid=20" target="_blank"> (página de downloads</a>) of the site and download TRC-Brasil clicking the button <strong>Mapsource </strong>(for windows) or Mapinstall (for Mac).</li>
<li>Run the installation file you just downloaded: TRC-Brasil_v0912.exe.</li>
<li>Run the program Garmin/MapSource.</li>
<li>In the dropdown at top left select TRC-Brasil and click the icon &#8220;Map Tool&#8221; as you can see in this snapshot:<a title="MapSource 1" rel="lightbox" href="http://wbutcher.com/wp-content/uploads/2010/01/mapsource11.png" rel="lightbox[221]"><img class="alignnone photo" title="mapsource1" src="http://wbutcher.com/wp-content/uploads/2010/01/mapsource11.png" alt="mapsource1" width="370" /><br />
</a></li>
<li>Using selection tool, select the entire Brazil map, like this:<a title="MapSource 1" rel="lightbox" href="http://wbutcher.com/wp-content/uploads/2010/01/mapsource21.png" rel="lightbox[221]"><img class="alignnone photo" title="MapSource 2" src="http://wbutcher.com/wp-content/uploads/2010/01/mapsource21.png" alt="mapsource2" width="370" /></a></li>
<li>Now plug your device and click Transfer-&gt;Send to Device. This will take sometime.</li>
<li>When you&#8217;re done unplug the device and wait until it restarts. You&#8217;re done.</li>
</ol>
<p>Now turn on your GPS and check things you know in Brazil, like cities or banks (Banco do Brasil) or whatever you want. You will notice the difference between original maps and TrackSource maps.</p>
]]></content:encoded>
			<wfw:commentRss>http://wbutcher.com/gps-garmin-brazil/feed/</wfw:commentRss>
		</item>
		<item>
		<title>GPS Garmin no Brasil com TrackSource (pt-BR)</title>
		<link>http://wbutcher.com/gps-garmin-brasil/</link>
		<comments>http://wbutcher.com/gps-garmin-brasil/#comments</comments>
		<pubDate>Sun, 10 Jan 2010 18:23:26 +0000</pubDate>
		<dc:creator>felipe</dc:creator>
		
		<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://wbutcher.com/?p=198</guid>
		<description><![CDATA[Read this article in English.
Este post explica como obter um mapa completo do Brasil para o GPS Garmin. O Garmin é a melhor opção de GPS em qualquer lugar do mundo na minha opnião, porém os mapas originais no Brasil não são muito completos. Poucos pontos já vem cadastrados. Em Belo Horizonte (minha cidade), por [...]]]></description>
			<content:encoded><![CDATA[<p><a href="http://wbutcher.com/gps-garmin-brazil/">Read this article in English.</a></p>
<p>Este post explica como obter um mapa completo do Brasil para o GPS Garmin. O Garmin é a melhor opção de GPS em qualquer lugar do mundo na minha opnião, porém os mapas originais no Brasil não são muito completos. Poucos pontos já vem cadastrados. Em Belo Horizonte (minha cidade), por exemplo,  não se encontram muitos bancos nem shoppings, etc.</p>
<p>Felizmente existe o <a title="Projeto TrackSource" href="http://www.tracksource.org.br/" target="_blank">Projeto TrackSource</a>. Este projeto é uma comunidade que fornece mapas completos para o Brasil. Possui postos de gasolina em estradas, bancos, supermercados, cinemas, padarias e tudo mais o que você imaginar. Com o TrackSource o seu GPS Garmin se transforma em um aparelho completíssimo e muito mais útil do que com os mapas originais. Saíndo da minha casa por exemplo existe uma rua sem saída. Com os mapas velhos o GPS sempre me direcionava para a rua sem saída como se eu pudesse passar por lá. Após instalar o TrackSource a rua aparece descontinuada como é realmente.</p>
<p>Gostaria de incentivar aos que usarem o TracSource para darem uma contribuição, após testar é claro ;). O projeto é totalmente gratuito e existe um link na página principal para fazerem doações. Como contribuição eu doei R$ 20,00 pelo link do site, criei esta página e postei no <a title="twitter" href="http://twitter.com/felipebutcher" target="_blank">twitter</a>, <a title="StumbleUpon" href="http://www.stumbleupon.com/" target="_blank">stumbleupon </a>e outros aplicativos para ajudar a divulgar o projeto, o que é até pouco comparado aos benefícios que o TrackSource oferece. Quando incentivamos um projeto como este estamos dando um voto para o desenvolvimento tecnológico do país como um todo, incentivando profissionais de altíssima qualidade a forneceram tecnologias inavodoras a um preço justo.</p>
<p>O modelo utilizado neste exemplo foi o Garmin nuvi 205. Acredito que funciona com qualquer outro modelo atual da Garmin.</p>
<p>Vamos ao que interessa. Lembre-se, você deve possuir o software da Garmin previamente instalado em seu computador.</p>
<ol>
<li>Vá a<a title="TrackSource Download" href="http://www.tracksource.org.br/index.php?option=com_wrapper&amp;view=wrapper&amp;Itemid=20" target="_blank"> página de downloads</a> do site e baixe o TRC-Brasil clicando no botão Mapsource (para windows) ou Mapinstall (para Mac).</li>
<li>Execute o arquivo de instalação TRC-Brasil_v0912.exe.</li>
<li>Execute o programa Garmin/MapSource.</li>
<li>No dropdown de produtos selecion o TRC-Brasil e nos ícones à direita selecione Map Tool, conforme figura:<a title="MapSource 1" rel="lightbox" href="http://wbutcher.com/wp-content/uploads/2010/01/mapsource11.png" rel="lightbox[198]"><img class="alignnone photo" title="mapsource1" src="http://wbutcher.com/wp-content/uploads/2010/01/mapsource11.png" alt="mapsource1" width="370" /><br />
</a></li>
<li>Usando a ferramenta de seleção, selecione o mapa do Brasil inteiro.<a title="MapSource 1" rel="lightbox" href="http://wbutcher.com/wp-content/uploads/2010/01/mapsource21.png" rel="lightbox[198]"><img class="alignnone photo" title="MapSource 2" src="http://wbutcher.com/wp-content/uploads/2010/01/mapsource21.png" alt="mapsource2" width="370" /></a></li>
<li>Agora ligue o seu GPS ao usb e clique Transfer-&gt;Send to Device. Isso leva alguns minutos.</li>
<li>Quando acabar desconecte o usb e aguarde o GPS reiniciar. Pronto.</li>
</ol>
<p>Agora abra o seu GPS  e verifique coisas próximas da sua casa como bancos ou supermercados (ou o que imaginar). Você verá a diferença entre o mapa original e o TrackSource.</p>
]]></content:encoded>
			<wfw:commentRss>http://wbutcher.com/gps-garmin-brasil/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Talking About Privacy and Piracy</title>
		<link>http://wbutcher.com/talking-about-privacy-and-piracy/</link>
		<comments>http://wbutcher.com/talking-about-privacy-and-piracy/#comments</comments>
		<pubDate>Sun, 24 May 2009 21:45:27 +0000</pubDate>
		<dc:creator>felipe</dc:creator>
		
		<category><![CDATA[articles]]></category>

		<category><![CDATA[piracy]]></category>

		<category><![CDATA[privacy]]></category>

		<guid isPermaLink="false">http://wbutcher.com/?p=165</guid>
		<description><![CDATA[I would like to say my opinion about what's happening nowadays. I don't remember the last time I heard someone saying something like "I just bought a great CD of my favorite band".]]></description>
			<content:encoded><![CDATA[<p>I would like to say my opinion about what&#8217;s happening nowadays. I don&#8217;t remember the last time I heard someone saying something like &#8220;I just bought a great CD from my favorite band&#8221;. Actually, my opinion is that the companies must stop trying to fight against that. We all know who is the winner in this battle. An old and smart phrase that I like is:  &#8220;If you can&#8217;t win them join them&#8221;. </p>
<p>If you take a look at Google&#8217;s example you ask yourself: &#8220;How they&#8217;re probably the most valuable company in the world today with just 10 years of existing and having just free softwares?&#8221;. And the answer is: &#8220;Because they earn money with ads in the entire Internet, everyone knows their softwares and its quality and so big companies pay lots of money to them for great services. In less words, they know what you want to buy and they know who can sell such a thing&#8221;.</p>
<p>Last week I was having some beer at a bar and saw a guy giving one copy of his first album for each table and saying: &#8220;Feel free to make a copy for each one if you want&#8221;. I saw such a thing and thought myself that he&#8217;s a very smart guy. My friends who were with me listened to the CD and liked very much. Actually they will go if they know that it&#8217;s gonna be a show of this guy because they know they will enjoy. This example shows how a person can earn money in this scenario.</p>
<p>My opinion is that companies must follow those examples.</p>
<p>Well, just wanted to give my opinion and perhaps start a discussion on that. Comments are welcome. <img src='http://wbutcher.com/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' /> </p>
]]></content:encoded>
			<wfw:commentRss>http://wbutcher.com/talking-about-privacy-and-piracy/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Building a portlet with Google Maps on Websphere Portal</title>
		<link>http://wbutcher.com/building-a-portlet-with-google-maps-on-websphere-portal/</link>
		<comments>http://wbutcher.com/building-a-portlet-with-google-maps-on-websphere-portal/#comments</comments>
		<pubDate>Wed, 01 Apr 2009 16:39:49 +0000</pubDate>
		<dc:creator>felipe</dc:creator>
		
		<category><![CDATA[articles]]></category>

		<category><![CDATA[google maps]]></category>

		<category><![CDATA[websphere portal]]></category>

		<guid isPermaLink="false">http://wbutcher.com/?p=103</guid>
		<description><![CDATA[There&#8217;s a link on the right to download the project files so you can import it to your RAD and run. Import as a Project Interchange file. If your RAD is greater than 7.0 do the migration. Also if you prefer follow the steps below and understand how I did.
The Google Maps API license is [...]]]></description>
			<content:encoded><![CDATA[<p>There&#8217;s a link on the right to download the project files so you can import it to your RAD and run. Import as a Project Interchange file. If your RAD is greater than 7.0 do the migration. Also if you prefer follow the steps below and understand how I did.</p>
<p>The Google Maps API license is free, the only important rule is: Everything you develop using Google Maps API have to be for public use in the web. They have also a limit of showings per day, it&#8217;s a big number, something like 200,000. You have to read the terms if you want to know more. Google has an excellent documentation about that. It&#8217;s under <a title="Google Maps API Documentation" href="http://code.google.com/apis/maps/documentation/" target="_blank">http://code.google.com/apis/maps/documentation/</a>.</p>
<p>For using Google Maps API you also have to get an API Key here: <a title="Google Maps API Key" href="http://code.google.com/apis/maps/signup.html" target="_blank">http://code.google.com/apis/maps/signup.html</a>. The key is nothing more than a hash code of your server&#8217;s address, so you have to create a key for each site you use that.</p>
<p>Using Google Maps under Websphere Portal is nothing so different from using anywhere else. First of all, lets create a Portlet Project.</p>
<p><a title="Create Project" rel="lightbox" href="/wp-content/themes/butcher/images/google_maps/create_project.png" rel="lightbox[103]"><br />
<img class="alignnone photo" src="/wp-content/themes/butcher/images/google_maps/create_project.png" alt="" width="370" /><br />
</a></p>
<p>Create now a simple Web Diagram with an initial action and a jsp page. We will use the initial action to simulate something like reading point coordinates from database. This is our Web Diagram:</p>
<p><a title="Web Diagram" rel="lightbox" href="/wp-content/themes/butcher/images/google_maps/web_diagram.png" rel="lightbox[103]"><br />
<img class="alignnone photo" src="/wp-content/themes/butcher/images/google_maps/web_diagram.png" alt="" width="370" /><br />
</a></p>
<p>The file index.jsp will tell struts to go to initial action through the welcome forward. For this, just put the following in the end of the file:</p>

<div class="wp_syntax"><div class="code"><pre class="java" style="font-family:monospace;"><span style="color: #339933;">&lt;</span>logic<span style="color: #339933;">:</span>forward name<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;welcome&quot;</span><span style="color: #339933;">/&gt;</span></pre></div></div>

<p>I&#8217;ve created a Point Bean Obejct. So, lets create an ArrayList of some of these points and store it in the session. For that, in the initial action try block, put this:</p>

<div class="wp_syntax"><div class="code"><pre class="java" style="font-family:monospace;"><span style="color: #666666; font-style: italic;">// Read points from database here.</span>
<span style="color: #003399;">ArrayList</span> points <span style="color: #339933;">=</span> <span style="color: #000000; font-weight: bold;">new</span> <span style="color: #003399;">ArrayList</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
points.<span style="color: #006633;">add</span><span style="color: #009900;">&#40;</span><span style="color: #000000; font-weight: bold;">new</span> <span style="color: #003399;">Point</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">&quot;-11.95908&quot;</span>, <span style="color: #0000ff;">&quot;-51.855469&quot;</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
points.<span style="color: #006633;">add</span><span style="color: #009900;">&#40;</span><span style="color: #000000; font-weight: bold;">new</span> <span style="color: #003399;">Point</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">&quot;-23.816841&quot;</span>,<span style="color: #0000ff;">&quot;-45.365124&quot;</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
points.<span style="color: #006633;">add</span><span style="color: #009900;">&#40;</span><span style="color: #000000; font-weight: bold;">new</span> <span style="color: #003399;">Point</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">&quot;-27.586999&quot;</span>,<span style="color: #0000ff;">&quot;-48.423014&quot;</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
<span style="color: #666666; font-style: italic;">// Store them on session</span>
request.<span style="color: #006633;">getPortletSession</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span>.<span style="color: #006633;">setAttribute</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">&quot;points&quot;</span>, points<span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span></pre></div></div>

<p>Create a bean for the points. You can use this point object to store any data from the point such as a html code with the description that will be showed when the user click the point.</p>

<div class="wp_syntax"><div class="code"><pre class="java" style="font-family:monospace;"><span style="color: #000000; font-weight: bold;">package</span> <span style="color: #006699;">googlemapshelloworld.beans</span><span style="color: #339933;">;</span>
&nbsp;
<span style="color: #000000; font-weight: bold;">public</span> <span style="color: #000000; font-weight: bold;">class</span> <span style="color: #003399;">Point</span> <span style="color: #009900;">&#123;</span>
	<span style="color: #000000; font-weight: bold;">private</span> <span style="color: #003399;">String</span> latitude<span style="color: #339933;">;</span>
	<span style="color: #000000; font-weight: bold;">private</span> <span style="color: #003399;">String</span> longitude<span style="color: #339933;">;</span>
&nbsp;
	<span style="color: #000000; font-weight: bold;">public</span> <span style="color: #003399;">Point</span><span style="color: #009900;">&#40;</span><span style="color: #003399;">String</span> latitude, <span style="color: #003399;">String</span> longitude<span style="color: #009900;">&#41;</span><span style="color: #009900;">&#123;</span>
		<span style="color: #000000; font-weight: bold;">this</span>.<span style="color: #006633;">latitude</span> <span style="color: #339933;">=</span> latitude<span style="color: #339933;">;</span>
		<span style="color: #000000; font-weight: bold;">this</span>.<span style="color: #006633;">longitude</span> <span style="color: #339933;">=</span> longitude<span style="color: #339933;">;</span>
	<span style="color: #009900;">&#125;</span>
&nbsp;
	<span style="color: #000000; font-weight: bold;">public</span> <span style="color: #003399;">String</span> getLatitude<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
		<span style="color: #000000; font-weight: bold;">return</span> latitude<span style="color: #339933;">;</span>
	<span style="color: #009900;">&#125;</span>
&nbsp;
	<span style="color: #000000; font-weight: bold;">public</span> <span style="color: #000066; font-weight: bold;">void</span> setLatitude<span style="color: #009900;">&#40;</span><span style="color: #003399;">String</span> latitude<span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
		<span style="color: #000000; font-weight: bold;">this</span>.<span style="color: #006633;">latitude</span> <span style="color: #339933;">=</span> latitude<span style="color: #339933;">;</span>
	<span style="color: #009900;">&#125;</span>
&nbsp;
	<span style="color: #000000; font-weight: bold;">public</span> <span style="color: #003399;">String</span> getLongitude<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
		<span style="color: #000000; font-weight: bold;">return</span> longitude<span style="color: #339933;">;</span>
	<span style="color: #009900;">&#125;</span>
&nbsp;
	<span style="color: #000000; font-weight: bold;">public</span> <span style="color: #000066; font-weight: bold;">void</span> setLongitude<span style="color: #009900;">&#40;</span><span style="color: #003399;">String</span> longitude<span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
		<span style="color: #000000; font-weight: bold;">this</span>.<span style="color: #006633;">longitude</span> <span style="color: #339933;">=</span> longitude<span style="color: #339933;">;</span>
	<span style="color: #009900;">&#125;</span>
&nbsp;
<span style="color: #009900;">&#125;</span></pre></div></div>

<p>The first time I used Maps in Portal I had a strange issue. In ie I got a gray screen over my map and I couldn´t see the entire map:</p>
<p><a title="Internet Explorer bug (gray screen)" rel="lightbox" href="/wp-content/themes/butcher/images/google_maps/gray_screen_ie.png" rel="lightbox[103]"><br />
<img class="alignnone photo" src="/wp-content/themes/butcher/images/google_maps/gray_screen_ie.png" alt="" width="370" /><br />
</a></p>
<p> After doing some research I found that`s because ie has an issue about png transparency, something that Google Maps API makes use of. After navigating for a while, I found this: <a href="http://jquery.andreaseberhard.de/pngFix/" target="_blank">http://jquery.andreaseberhard.de/pngFix/</a></p>
<p>Download the <a href="http://jquery.andreaseberhard.de/download/pngFix.zip">pngFix.zip</a> file and include the files on a js folder within your WebContent folder. Also load these files in your map.jsp file.</p>
<p><img class="alignnone photo" src="/wp-content/themes/butcher/images/google_maps/project_explorer.png" alt="Project Explorer"/></p>

<div class="wp_syntax"><div class="code"><pre class="javascript" style="font-family:monospace;">&lt;script type=&quot;text/javascript&quot; src=&quot;&lt;%= request.getContextPath() %&gt;/js/jquery-1.3.2.min.js&quot;&gt;&lt;/script&gt; 
&lt;script type=&quot;text/javascript&quot; src=&quot;&lt;%= request.getContextPath() %&gt;/js/jquery.pngFix.js&quot;&gt;&lt;/script&gt;
&nbsp;
<span style="color: #339933;">&lt;</span>script type<span style="color: #339933;">=</span><span style="color: #3366CC;">&quot;text/javascript&quot;</span><span style="color: #339933;">&gt;</span> 
    $<span style="color: #009900;">&#40;</span>document<span style="color: #009900;">&#41;</span>.<span style="color: #660066;">ready</span><span style="color: #009900;">&#40;</span><span style="color: #003366; font-weight: bold;">function</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#123;</span> 
        $<span style="color: #009900;">&#40;</span>document<span style="color: #009900;">&#41;</span>.<span style="color: #660066;">pngFix</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> 
    <span style="color: #009900;">&#125;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> 
<span style="color: #339933;">&lt;/</span>script<span style="color: #339933;">&gt;</span></pre></div></div>

<p>Also include the js for Maps API and create a div tag with the size you want with the id=&#8221;map&#8221;.</p>

<div class="wp_syntax"><div class="code"><pre class="javascript" style="font-family:monospace;">&lt;script src=&quot;http://maps.google.com/maps?file=api&amp;amp;v=2&amp;amp;sensor=true_or_false&amp;amp;key=[YOUR KEY HERE]&quot; type=&quot;text/javascript&quot;&gt;&lt;/script&gt;
&nbsp;
<span style="color: #339933;">&lt;</span>script type<span style="color: #339933;">=</span><span style="color: #3366CC;">&quot;text/javascript&quot;</span><span style="color: #339933;">&gt;</span>
setTimeout<span style="color: #009900;">&#40;</span><span style="color: #3366CC;">&quot;loadMap()&quot;</span><span style="color: #339933;">,</span><span style="color: #CC0000;">1000</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
&nbsp;
<span style="color: #003366; font-weight: bold;">var</span> map<span style="color: #339933;">;</span>
<span style="color: #003366; font-weight: bold;">function</span> loadMap<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#123;</span>
	<span style="color: #000066; font-weight: bold;">if</span> <span style="color: #009900;">&#40;</span>GBrowserIsCompatible<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
		map <span style="color: #339933;">=</span> <span style="color: #003366; font-weight: bold;">new</span> GMap2<span style="color: #009900;">&#40;</span>document.<span style="color: #660066;">getElementById</span><span style="color: #009900;">&#40;</span><span style="color: #3366CC;">&quot;map&quot;</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
		map.<span style="color: #660066;">setCenter</span><span style="color: #009900;">&#40;</span><span style="color: #003366; font-weight: bold;">new</span> GLatLng<span style="color: #009900;">&#40;</span><span style="color: #339933;">-</span><span style="color: #CC0000;">11.959</span><span style="color: #339933;">,</span> <span style="color: #339933;">-</span><span style="color: #CC0000;">51.8554</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">,</span> <span style="color: #CC0000;">4</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
		map.<span style="color: #660066;">setUIToDefault</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
		loadPoints<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
	<span style="color: #009900;">&#125;</span>
<span style="color: #009900;">&#125;</span>
&nbsp;
<span style="color: #006600; font-style: italic;">//Function loadPoints goes here.</span>
&nbsp;
<span style="color: #339933;">&lt;/</span>script<span style="color: #339933;">&gt;</span>
&nbsp;
&lt;div id=&quot;map&quot; style=&quot;height:500px; width:500px&quot;&gt;&lt;/div&gt;</pre></div></div>

<p>Let`s create a method to plot the points in the map. It sort of print javascript code with jsp:</p>

<div class="wp_syntax"><div class="code"><pre class="javascript" style="font-family:monospace;"><span style="color: #003366; font-weight: bold;">function</span> loadPoints<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#123;</span> <span style="color: #339933;">&lt;%</span>
	out.<span style="color: #000066;">print</span><span style="color: #009900;">&#40;</span><span style="color: #3366CC;">&quot;<span style="color: #000099; font-weight: bold;">\n</span>var point;<span style="color: #000099; font-weight: bold;">\n</span>var marker;&quot;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
	ArrayList points <span style="color: #339933;">=</span> <span style="color: #009900;">&#40;</span>ArrayList<span style="color: #009900;">&#41;</span> session.<span style="color: #660066;">getAttribute</span><span style="color: #009900;">&#40;</span><span style="color: #3366CC;">&quot;points&quot;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
	<span style="color: #000066; font-weight: bold;">for</span> <span style="color: #009900;">&#40;</span>int i<span style="color: #339933;">=</span><span style="color: #CC0000;">0</span><span style="color: #339933;">;</span> i<span style="color: #339933;">&lt;</span>points.<span style="color: #660066;">size</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> i<span style="color: #339933;">++</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#123;</span>
		out.<span style="color: #660066;">println</span><span style="color: #009900;">&#40;</span><span style="color: #3366CC;">&quot;		point = new GLatLng(&quot;</span> <span style="color: #339933;">+</span> <span style="color: #009900;">&#40;</span><span style="color: #009900;">&#40;</span>Point<span style="color: #009900;">&#41;</span>points.<span style="color: #660066;">get</span><span style="color: #009900;">&#40;</span>i<span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span>.<span style="color: #660066;">getLatitude</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span> <span style="color: #339933;">+</span> <span style="color: #3366CC;">&quot;, &quot;</span> <span style="color: #339933;">+</span> <span style="color: #009900;">&#40;</span><span style="color: #009900;">&#40;</span>Point<span style="color: #009900;">&#41;</span>points.<span style="color: #660066;">get</span><span style="color: #009900;">&#40;</span>i<span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span>.<span style="color: #660066;">getLongitude</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span> <span style="color: #339933;">+</span> <span style="color: #3366CC;">&quot;);&quot;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
		out.<span style="color: #660066;">println</span><span style="color: #009900;">&#40;</span><span style="color: #3366CC;">&quot;		marker = createMarker(point, 'We are here!');&quot;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
		out.<span style="color: #660066;">println</span><span style="color: #009900;">&#40;</span><span style="color: #3366CC;">&quot;		map.addOverlay(marker);&quot;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
	<span style="color: #009900;">&#125;</span> <span style="color: #339933;">%&gt;</span>
<span style="color: #009900;">&#125;</span>
&nbsp;
<span style="color: #003366; font-weight: bold;">function</span> createMarker<span style="color: #009900;">&#40;</span>point<span style="color: #339933;">,</span> html<span style="color: #009900;">&#41;</span><span style="color: #009900;">&#123;</span>
	<span style="color: #003366; font-weight: bold;">var</span> marker <span style="color: #339933;">=</span> <span style="color: #003366; font-weight: bold;">new</span> GMarker<span style="color: #009900;">&#40;</span>point<span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
	GEvent.<span style="color: #660066;">addListener</span><span style="color: #009900;">&#40;</span>marker<span style="color: #339933;">,</span> <span style="color: #3366CC;">&quot;click&quot;</span><span style="color: #339933;">,</span> <span style="color: #003366; font-weight: bold;">function</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span> 
		marker.<span style="color: #660066;">openInfoWindowHtml</span><span style="color: #009900;">&#40;</span>html<span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
	<span style="color: #009900;">&#125;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
	<span style="color: #000066; font-weight: bold;">return</span> marker<span style="color: #339933;">;</span>
<span style="color: #009900;">&#125;</span></pre></div></div>

<p>Done.</p>
]]></content:encoded>
			<wfw:commentRss>http://wbutcher.com/building-a-portlet-with-google-maps-on-websphere-portal/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Webservice Web Client</title>
		<link>http://wbutcher.com/webservice-web-client/</link>
		<comments>http://wbutcher.com/webservice-web-client/#comments</comments>
		<pubDate>Sun, 22 Mar 2009 15:29:34 +0000</pubDate>
		<dc:creator>felipe</dc:creator>
		
		<category><![CDATA[applications]]></category>

		<category><![CDATA[client]]></category>

		<category><![CDATA[web service]]></category>

		<guid isPermaLink="false">http://wbutcher.com/?p=72</guid>
		<description><![CDATA[

Version: 0.4
Last change: 11/10/2008
Description: That`s an application to call public webservices available on the web. It`s object oriented and contains a class to parse and handle the WSDL files. It uses XPath.
Link to download source on the right.
]]></description>
			<content:encoded><![CDATA[<p><a href="http://wbutcher.com/wswebclient" target="_blank"><br />
<img alt="" src="http://wbutcher.com/wp-content/themes/butcher/images/wbutcher/wswebclient.png" title="wswebclient.com" class="alignnone photo" width="371" height="138" /><br />
</a></p>
<p>Version: 0.4</p>
<p>Last change: 11/10/2008</p>
<p>Description: That`s an application to call public webservices available on the web. It`s object oriented and contains a class to parse and handle the WSDL files. It uses XPath.</p>
<p>Link to download source on the right.</p>
]]></content:encoded>
			<wfw:commentRss>http://wbutcher.com/webservice-web-client/feed/</wfw:commentRss>
		</item>
		<item>
		<title>WebSphere Portal 6 with RAD 7 Installation</title>
		<link>http://wbutcher.com/websphere-portal-6-with-rad-7-installation/</link>
		<comments>http://wbutcher.com/websphere-portal-6-with-rad-7-installation/#comments</comments>
		<pubDate>Sat, 21 Mar 2009 03:57:01 +0000</pubDate>
		<dc:creator>felipe</dc:creator>
		
		<category><![CDATA[articles]]></category>

		<category><![CDATA[installation]]></category>

		<category><![CDATA[websphere portal]]></category>

		<guid isPermaLink="false">http://wbutcher.com/?p=13</guid>
		<description><![CDATA[Installing WebSphere Portal can be very simple, you just have to remember some details.
In my example, we will need Portal Setup Disks, Rad Setup Disks, Rad Fix (7.0.0.4) and Rad Activation Kit (license).
Open the first cd from Portal installation and run install.bat there.



In the three initial screens, just click Next, Accept and Next again. Just [...]]]></description>
			<content:encoded><![CDATA[<p>Installing WebSphere Portal can be very simple, you just have to remember some details.</p>
<p>In my example, we will need Portal Setup Disks, Rad Setup Disks, Rad Fix (7.0.0.4) and Rad Activation Kit (license).</p>
<p>Open the first cd from Portal installation and run install.bat there.</p>
<p><a href="/wp-content/themes/butcher/images/install_portal_6/1_portal_cdsetup_folder.PNG" rel="lightbox"><br />
<img src="/wp-content/themes/butcher/images/install_portal_6/1_portal_cdsetup_folder.PNG" width="370px"  class="alignnone photo"><br />
</a></p>
<p>In the three initial screens, just click Next, Accept and Next again. Just select Typical installation and proceed.</p>
<p>In the next screen, choose your directory installation, it`s recommended that you create an IBM directory and put everything on it. In my case, I`ve chosen C:\IBM\WebSphere\AppServer. It will install Application Server.</p>
<p><a href="/wp-content/themes/butcher/images/install_portal_6/2_portal_setup_screen.PNG" rel="lightbox"><br />
<img src="/wp-content/themes/butcher/images/install_portal_6/2_portal_setup_screen.PNG" width="370px"  class="alignnone photo"><br />
</a></p>
<p>Proceed clicking Next until you come to this screen. Here you can use your preferred names.</p>
<p><a href="/wp-content/themes/butcher/images/install_portal_6/3_portal_setup_screen.PNG" rel="lightbox"><br />
<img src="/wp-content/themes/butcher/images/install_portal_6/3_portal_setup_screen.PNG" width="370px"  class="alignnone photo"><br />
</a></p>
<p>In the next screen, choose the administrative user and password, by default, I use &#8220;wpsadmin&#8221; for user and password.</p>
<p><a href="/wp-content/themes/butcher/images/install_portal_6/4_portal_setup_screen.PNG" rel="lightbox"><br />
<img src="/wp-content/themes/butcher/images/install_portal_6/4_portal_setup_screen.PNG" width="370px"  class="alignnone photo"><br />
</a></p>
<p>Don&#8217;t install the Business Process Support, we will not need that.</p>
<p><a href="/wp-content/themes/butcher/images/install_portal_6/5_portal_setup_screen.PNG" rel="lightbox"><br />
<img src="/wp-content/themes/butcher/images/install_portal_6/5_portal_setup_screen.PNG" width="370px"  class="alignnone photo"><br />
</a></p>
<p>Now, let&#8217;s install the WebSphere Portal Server. It&#8217;s recommended that you put it in the same IBM directory, like that: C:\IBM\WebSphere\PortalServer</p>
<p><a href="/wp-content/themes/butcher/images/install_portal_6/6_portal_setup_screen.PNG" rel="lightbox"><br />
<img src="/wp-content/themes/butcher/images/install_portal_6/6_portal_setup_screen.PNG" width="370px"  class="alignnone photo"><br />
</a></p>
<p>In the next screen, you will be asked for administrative user and password for Portal, it&#8217;s recommended that you use the same that you used on Application Server.</p>
<p><a href="/wp-content/themes/butcher/images/install_portal_6/7_portal_setup_screen.PNG" rel="lightbox"><br />
<img src="/wp-content/themes/butcher/images/install_portal_6/7_portal_setup_screen.PNG" width="370px"  class="alignnone photo"><br />
</a></p>
<p>Now, you have the option of using server as a Windows service, it&#8217;s not recommended, don&#8217;t mark nothing here. Click Next again and wait, it will start installing and will take long time.</p>
<p><a href="/wp-content/themes/butcher/images/install_portal_6/8_portal_setup_screen.PNG" rel="lightbox"><br />
<img src="/wp-content/themes/butcher/images/install_portal_6/8_portal_setup_screen.PNG" width="370px"  class="alignnone photo"><br />
</a></p>
<p>In the end, unmark &#8220;Launch First Steps&#8221; and click Finish. Your WebSphere Application Server and WebSphere Portal Server are now installed.</p>
<p><a href="/wp-content/themes/butcher/images/install_portal_6/9_portal_setup_screen.PNG" rel="lightbox"><br />
<img src="/wp-content/themes/butcher/images/install_portal_6/9_portal_setup_screen.PNG" width="370px"  class="alignnone photo"><br />
</a></p>
<p>Let&#8217;s now install Rational Application Developer 7 (RAD). At first, install the installation manager. Go to the radfix4 folder and run install on im.installer.win32-1.1.0 folder, it will be installed the IBM Installation Manager 1.1.</p>
<p><a href="/wp-content/themes/butcher/images/install_portal_6/10_im_setup_screen.PNG" rel="lightbox"><br />
<img src="/wp-content/themes/butcher/images/install_portal_6/10_im_setup_screen.PNG" width="370px"  class="alignnone photo"><br />
</a></p>
<p>Run the Installation Manager now. Go to file/preferences and click repositories/add repositories. Locate the file diskTag.inf on disk 1 of RAD Installation to add the repository. Now go to &#8220;Install Packages&#8221;. Don&#8217;t forget changing the directories to your IBM directory.</p>
<p>(C:\IBM\SDP70Shared):</p>
<p><a href="/wp-content/themes/butcher/images/install_portal_6/11_rad_setup_screen.PNG" rel="lightbox"><br />
<img src="/wp-content/themes/butcher/images/install_portal_6/11_rad_setup_screen.PNG" width="370px"  class="alignnone photo"><br />
</a></p>
<p>(C:\IBM\SDP70):</p>
<p><a href="/wp-content/themes/butcher/images/install_portal_6/12_rad_setup_screen.PNG" rel="lightbox"><br />
<img src="/wp-content/themes/butcher/images/install_portal_6/12_rad_setup_screen.PNG" width="370px"  class="alignnone photo"><br />
</a></p>
<p>Keep going until you see the screen below. You must mark the options &#8220;Portal Tools&#8221; and &#8220;Struts Tools&#8221; here. Click Next, Install and go on.</p>
<p><a href="/wp-content/themes/butcher/images/install_portal_6/13_rad_setup_screen.PNG" rel="lightbox"><br />
<img src="/wp-content/themes/butcher/images/install_portal_6/13_rad_setup_screen.PNG" width="370px"  class="alignnone photo"><br />
</a></p>
<p>Now, we must install the Rad fixes. Go to the installation manager in your Windows start menu. Go to file/preferences and click repositories/add repositories. Find the diskTag.inf on the radfix4 dir disk1.</p>
<p>It&#8217;s recommended that, in this step, you disconnected your internet to avoid Installation Manager to look for sources on the web.</p>
<p><a href="/wp-content/themes/butcher/images/install_portal_6/14_rad_setup_screen.PNG" rel="lightbox"><br />
<img src="/wp-content/themes/butcher/images/install_portal_6/14_rad_setup_screen.PNG" width="370px"  class="alignnone photo"><br />
</a></p>
<p>Click OK. Click Update Packages and go on. Your RAD will be update to version 7.0.0.4.</p>
<p>We are almost done. Now, install the License. On the Installation Manager, click &#8220;Manage Licenses&#8221;, &#8220;Import Product Activation Kit&#8221;. Find the file RADLic.jar on your RAD Activation Kit directory.</p>
<p><a href="/wp-content/themes/butcher/images/install_portal_6/15_rad_setup_screen.PNG" rel="lightbox"><br />
<img src="/wp-content/themes/butcher/images/install_portal_6/15_rad_setup_screen.PNG" width="370px"  class="alignnone photo"><br />
</a></p>
<p>Now, you have all done. You can now open your RAD by the Windows start menu. To add Websphere Portal control inside your RAD, go to Servers Tab, right-click, then click New Server. Select &#8220;Websphere Portal Server V6.0 Server&#8221;. Click Next.</p>
<p><a href="/wp-content/themes/butcher/images/install_portal_6/16_rad_setup_screen.PNG" rel="lightbox"><br />
<img src="/wp-content/themes/butcher/images/install_portal_6/16_rad_setup_screen.PNG" width="370px"  class="alignnone photo"><br />
</a></p>
<p>Use the password you&#8217;ve created at Portal installation. Click Finish. Now you&#8217;re ready to develop struts portlets using your RAD and WebSphere Portal. Any questions, feel free to post. No login necessary.</p>
]]></content:encoded>
			<wfw:commentRss>http://wbutcher.com/websphere-portal-6-with-rad-7-installation/feed/</wfw:commentRss>
		</item>
	</channel>
</rss>

