tag:blogger.com,1999:blog-69527865748809761342024-03-12T18:21:37.223-07:00Some useful stuff...Linux, gentoo, ubuntu, scripts, security, networks...one2onehttp://www.blogger.com/profile/13061136952115316435noreply@blogger.comBlogger35125tag:blogger.com,1999:blog-6952786574880976134.post-61928294787394386942012-01-16T12:51:00.000-08:002012-01-16T12:56:28.178-08:00BrandMyMail setp by step<div style="font-family: Verdana,sans-serif; text-align: center;">
<br /></div>
<div style="font-family: Verdana,sans-serif; text-align: center;">
<span style="font-size: x-large;"><b>BrandMyMail </b></span></div>
<div style="text-align: center;">
<span style="font-family: Verdana,sans-serif; font-size: small;"><b>step by step</b></span></div>
<div style="text-align: center;">
<br /></div>
<div style="text-align: center;">
<br /></div>
<br /><table align="center" cellpadding="0" cellspacing="0" class="tr-caption-container" style="margin-left: auto; margin-right: auto; text-align: center;"><tbody>
<tr><td style="text-align: center;"><a href="http://4.bp.blogspot.com/-vckPh1onBFU/TxSEvNZYjZI/AAAAAAAAAGU/n7E1kg1JV1w/s1600/1_front_page.png" imageanchor="1" style="margin-left: auto; margin-right: auto;"><img border="0" height="296" src="http://4.bp.blogspot.com/-vckPh1onBFU/TxSEvNZYjZI/AAAAAAAAAGU/n7E1kg1JV1w/s400/1_front_page.png" width="400" /></a></td></tr>
<tr style="font-family: "Helvetica Neue",Arial,Helvetica,sans-serif;"><td class="tr-caption" style="text-align: center;">Go to <b>www.brandmymail.com</b></td></tr>
</tbody></table>
<br />
<table align="center" cellpadding="0" cellspacing="0" class="tr-caption-container" style="margin-left: auto; margin-right: auto; text-align: center;"><tbody>
<tr><td style="text-align: center;"><a href="http://3.bp.blogspot.com/-IuOP2kXPBd4/TxSEv7_offI/AAAAAAAAAGc/RbVrq7pGjMg/s1600/2_template_editor.png" imageanchor="1" style="margin-left: auto; margin-right: auto;"><img border="0" height="306" src="http://3.bp.blogspot.com/-IuOP2kXPBd4/TxSEv7_offI/AAAAAAAAAGc/RbVrq7pGjMg/s400/2_template_editor.png" width="400" /></a></td></tr>
<tr style="font-family: "Helvetica Neue",Arial,Helvetica,sans-serif;"><td class="tr-caption" style="text-align: center;"><b>Step 2</b> - drag plugins from right <br />
<b>Step 3</b> - Click to configure plugin</td><td class="tr-caption" style="text-align: center;"><br /></td></tr>
</tbody></table>
<br />
<table align="center" cellpadding="0" cellspacing="0" class="tr-caption-container" style="margin-left: auto; margin-right: auto; text-align: center;"><tbody>
<tr><td style="text-align: center;"><a href="http://3.bp.blogspot.com/-OicKWHoP_JA/TxSEwsO7RwI/AAAAAAAAAGg/BxGy3_4kcZw/s1600/3_signature_configuration.png" imageanchor="1" style="margin-left: auto; margin-right: auto;"><img border="0" height="311" src="http://3.bp.blogspot.com/-OicKWHoP_JA/TxSEwsO7RwI/AAAAAAAAAGg/BxGy3_4kcZw/s400/3_signature_configuration.png" width="400" /></a></td></tr>
<tr><td class="tr-caption" style="text-align: center;"><b style="font-family: "Helvetica Neue",Arial,Helvetica,sans-serif;">Step 4</b><span style="font-family: "Helvetica Neue",Arial,Helvetica,sans-serif;"> - Configure your Signature plugin</span></td></tr>
</tbody></table>
<br />
<table align="center" cellpadding="0" cellspacing="0" class="tr-caption-container" style="margin-left: auto; margin-right: auto; text-align: center;"><tbody>
<tr><td style="text-align: center;"><a href="http://3.bp.blogspot.com/-U1J-emEvt5U/TxSExijYQDI/AAAAAAAAAGs/CHBrIPgG398/s1600/4_twitter_configuration.png" imageanchor="1" style="margin-left: auto; margin-right: auto;"><img border="0" height="357" src="http://3.bp.blogspot.com/-U1J-emEvt5U/TxSExijYQDI/AAAAAAAAAGs/CHBrIPgG398/s400/4_twitter_configuration.png" width="400" /></a></td></tr>
<tr style="font-family: "Helvetica Neue",Arial,Helvetica,sans-serif;"><td class="tr-caption" style="text-align: center;">Add and configure more<span style="font-family: "Helvetica Neue",Arial,Helvetica,sans-serif;"></span> plugins (optional)</td></tr>
</tbody></table>
<br />
<table align="center" cellpadding="0" cellspacing="0" class="tr-caption-container" style="margin-left: auto; margin-right: auto; text-align: center;"><tbody>
<tr><td style="text-align: center;"><a href="http://1.bp.blogspot.com/-Dt2UciUXW8c/TxSEzG9WIvI/AAAAAAAAAG0/IhGKCJ-3OwM/s1600/5_theme_selection.png" imageanchor="1" style="margin-left: auto; margin-right: auto;"><img border="0" height="352" src="http://1.bp.blogspot.com/-Dt2UciUXW8c/TxSEzG9WIvI/AAAAAAAAAG0/IhGKCJ-3OwM/s400/5_theme_selection.png" width="400" /></a></td></tr>
<tr style="font-family: "Helvetica Neue",Arial,Helvetica,sans-serif;"><td class="tr-caption" style="text-align: center;"><b style="font-family: "Helvetica Neue",Arial,Helvetica,sans-serif;">Step 5</b><span style="font-family: "Helvetica Neue",Arial,Helvetica,sans-serif;"> - Select a theme (optional)</span> <br />
<b style="font-family: "Helvetica Neue",Arial,Helvetica,sans-serif;">Step 6</b><span style="font-family: "Helvetica Neue",Arial,Helvetica,sans-serif;"> - Preview template (optional)</span></td></tr>
</tbody></table>
<br />
<table align="center" cellpadding="0" cellspacing="0" class="tr-caption-container" style="margin-left: auto; margin-right: auto; text-align: center;"><tbody>
<tr><td style="text-align: center;"><a href="http://4.bp.blogspot.com/-pergHyvIZPE/TxSE0OnpT0I/AAAAAAAAAG8/ZV61CeU2UIM/s1600/6_template_editor_preview.png" imageanchor="1" style="margin-left: auto; margin-right: auto;"><img border="0" height="341" src="http://4.bp.blogspot.com/-pergHyvIZPE/TxSE0OnpT0I/AAAAAAAAAG8/ZV61CeU2UIM/s400/6_template_editor_preview.png" width="400" /></a></td></tr>
<tr style="font-family: "Helvetica Neue",Arial,Helvetica,sans-serif;"><td class="tr-caption" style="text-align: center;">See your template result</td></tr>
</tbody></table>
<br />
<table align="center" cellpadding="0" cellspacing="0" class="tr-caption-container" style="margin-left: auto; margin-right: auto; text-align: center;"><tbody>
<tr><td style="text-align: center;"><a href="http://4.bp.blogspot.com/-e8Q7Q7WUevw/TxSE01kvtyI/AAAAAAAAAHE/3auwfMeM5uY/s1600/7_register_popup.png" imageanchor="1" style="margin-left: auto; margin-right: auto;"><img border="0" height="322" src="http://4.bp.blogspot.com/-e8Q7Q7WUevw/TxSE01kvtyI/AAAAAAAAAHE/3auwfMeM5uY/s400/7_register_popup.png" width="400" /></a></td></tr>
<tr style="font-family: "Helvetica Neue",Arial,Helvetica,sans-serif;"><td class="tr-caption" style="text-align: center;"><b style="font-family: "Helvetica Neue",Arial,Helvetica,sans-serif;">Step 7</b><span style="font-family: "Helvetica Neue",Arial,Helvetica,sans-serif;"> - Sign in with Google</span> </td></tr>
</tbody></table>
<br />
<table align="center" cellpadding="0" cellspacing="0" class="tr-caption-container" style="margin-left: auto; margin-right: auto; text-align: center;"><tbody>
<tr><td style="text-align: center;"><a href="http://1.bp.blogspot.com/-5Wp1BIYeyJg/TxSE1hHVLWI/AAAAAAAAAHI/euRzDetdRq0/s1600/8_google_openid.png" imageanchor="1" style="margin-left: auto; margin-right: auto;"><img border="0" height="140" src="http://1.bp.blogspot.com/-5Wp1BIYeyJg/TxSE1hHVLWI/AAAAAAAAAHI/euRzDetdRq0/s400/8_google_openid.png" width="400" /></a></td></tr>
<tr style="font-family: "Helvetica Neue",Arial,Helvetica,sans-serif;"><td class="tr-caption" style="text-align: center;">Sign in and Accept</td></tr>
</tbody></table>
<br />
<table align="center" cellpadding="0" cellspacing="0" class="tr-caption-container" style="margin-left: auto; margin-right: auto; text-align: center;"><tbody>
<tr><td style="text-align: center;"><a href="http://2.bp.blogspot.com/-So7pfLIvItE/TxSE2X3WLzI/AAAAAAAAAHU/x7MBoWagcBQ/s1600/9_extension_setup.png" imageanchor="1" style="margin-left: auto; margin-right: auto;"><img border="0" height="292" src="http://2.bp.blogspot.com/-So7pfLIvItE/TxSE2X3WLzI/AAAAAAAAAHU/x7MBoWagcBQ/s400/9_extension_setup.png" width="400" /></a></td></tr>
<tr style="font-family: "Helvetica Neue",Arial,Helvetica,sans-serif;"><td class="tr-caption" style="text-align: center;"><b style="font-family: "Helvetica Neue",Arial,Helvetica,sans-serif;">Step 9</b><span style="font-family: "Helvetica Neue",Arial,Helvetica,sans-serif;"> - Install browser extension</span> </td></tr>
</tbody></table>
<br />
<table align="center" cellpadding="0" cellspacing="0" class="tr-caption-container" style="margin-left: auto; margin-right: auto; text-align: center;"><tbody>
<tr><td style="text-align: center;"><a href="http://2.bp.blogspot.com/-l_dCJfn7ghk/TxSE3inzhpI/AAAAAAAAAHc/XJNMrHnazf4/s1600/10_done.png" imageanchor="1" style="margin-left: auto; margin-right: auto;"><img border="0" height="263" src="http://2.bp.blogspot.com/-l_dCJfn7ghk/TxSE3inzhpI/AAAAAAAAAHc/XJNMrHnazf4/s400/10_done.png" width="400" /></a></td></tr>
<tr style="font-family: "Helvetica Neue",Arial,Helvetica,sans-serif;"><td class="tr-caption" style="text-align: center;"><b style="font-family: "Helvetica Neue",Arial,Helvetica,sans-serif;">Step 9</b><span style="font-family: "Helvetica Neue",Arial,Helvetica,sans-serif;"> - Go to Gmail or <a href="http://www.brandmymail.com/">BrandMyMail Dashboard</a></span> </td></tr>
</tbody></table>
<br />
<table align="center" cellpadding="0" cellspacing="0" class="tr-caption-container" style="margin-left: auto; margin-right: auto; text-align: center;"><tbody>
<tr><td style="text-align: center;"><a href="http://4.bp.blogspot.com/-1gIRLLQE2ME/TxSE4oj7AyI/AAAAAAAAAHk/jgQiETLQu4E/s1600/11_gmail_buttons.png" imageanchor="1" style="margin-left: auto; margin-right: auto;"><img border="0" height="260" src="http://4.bp.blogspot.com/-1gIRLLQE2ME/TxSE4oj7AyI/AAAAAAAAAHk/jgQiETLQu4E/s400/11_gmail_buttons.png" width="400" /></a></td></tr>
<tr style="font-family: "Helvetica Neue",Arial,Helvetica,sans-serif;"><td class="tr-caption" style="text-align: center;"><b>Step 10</b> - Write your email<br />
<b>Step 11</b> - Click Send or Preview</td></tr>
</tbody></table>
<br />
<table align="center" cellpadding="0" cellspacing="0" class="tr-caption-container" style="margin-left: auto; margin-right: auto; text-align: center;"><tbody>
<tr><td style="text-align: center;"><a href="http://4.bp.blogspot.com/-lyxagCNoPOc/TxSE5R2WA4I/AAAAAAAAAHs/osuG7d_uCVo/s1600/12_gmail_template_preview.png" imageanchor="1" style="margin-left: auto; margin-right: auto;"><img border="0" height="272" src="http://4.bp.blogspot.com/-lyxagCNoPOc/TxSE5R2WA4I/AAAAAAAAAHs/osuG7d_uCVo/s400/12_gmail_template_preview.png" width="400" /></a></td></tr>
<tr style="font-family: "Helvetica Neue",Arial,Helvetica,sans-serif;"><td class="tr-caption" style="text-align: center;"><b>Step 10</b> - Email preview before sending</td></tr>
</tbody></table>
<br />
<table align="center" cellpadding="0" cellspacing="0" class="tr-caption-container" style="margin-left: auto; margin-right: auto; text-align: center;"><tbody>
<tr><td style="text-align: center;"><a href="http://4.bp.blogspot.com/-KenjrBtR6AY/TxSE6WPUOVI/AAAAAAAAAH0/CTjn7bAGXUY/s1600/13_gmail_sent_email.png" imageanchor="1" style="margin-left: auto; margin-right: auto;"><img border="0" height="298" src="http://4.bp.blogspot.com/-KenjrBtR6AY/TxSE6WPUOVI/AAAAAAAAAH0/CTjn7bAGXUY/s400/13_gmail_sent_email.png" width="400" /></a></td></tr>
<tr style="font-family: "Helvetica Neue",Arial,Helvetica,sans-serif;"><td class="tr-caption" style="text-align: center;">Sent email</td></tr>
</tbody></table>
<div style="text-align: left;">
<div style="font-family: Georgia,"Times New Roman",serif;">
<br /></div>
<div style="font-family: inherit;">
<br /></div>
<div style="font-family: inherit;">
<br /></div>
<div style="font-family: inherit;">
<br /></div>
<div style="font-family: inherit;">
<span style="font-size: small;"><b>Some notes: </b></span></div>
<div style="font-family: "Helvetica Neue",Arial,Helvetica,sans-serif;">
<br /></div>
<div style="font-family: inherit;">
<span style="font-size: small;"><b><span style="font-family: "Helvetica Neue",Arial,Helvetica,sans-serif; font-size: x-small;"> How to remove plugins?</span></b></span></div>
<div style="font-family: inherit;">
</div>
<table cellpadding="0" cellspacing="0" class="tr-caption-container" style="font-family: "Helvetica Neue",Arial,Helvetica,sans-serif; margin-left: 0px; margin-right: auto; text-align: left;"><tbody>
<tr><td style="text-align: center;"><a href="http://1.bp.blogspot.com/-tmCVk3nGYQ8/TxSJwQSXbEI/AAAAAAAAAH8/q4O2y8m83BY/s1600/plugin_options.png" imageanchor="1" style="margin-left: auto; margin-right: auto;"><img border="0" src="http://1.bp.blogspot.com/-tmCVk3nGYQ8/TxSJwQSXbEI/AAAAAAAAAH8/q4O2y8m83BY/s1600/plugin_options.png" /></a></td></tr>
<tr><td class="tr-caption" style="text-align: left;"><span style="font-size: small;"><span style="font-size: x-small;">You can remove plugins by clicking on Trash icon<br />You can align the plugin, using the justification buttons</span></span></td><td class="tr-caption" style="text-align: center;"><span style="font-size: small;"><span style="font-size: x-small;"><br /></span></span></td><td class="tr-caption" style="text-align: center;"><br /></td></tr>
</tbody></table>
<div style="font-family: "Helvetica Neue",Arial,Helvetica,sans-serif;">
<br /></div>
<div style="font-family: "Helvetica Neue",Arial,Helvetica,sans-serif;">
<span style="font-size: small;"><b>Advanced notes: </b></span></div>
<div style="font-family: "Helvetica Neue",Arial,Helvetica,sans-serif;">
<br /></div>
<div style="font-family: "Helvetica Neue",Arial,Helvetica,sans-serif;">
<span style="font-size: small;"><b><span style="font-family: "Helvetica Neue",Arial,Helvetica,sans-serif; font-size: x-small;">Email fixed/expandable width:</span></b></span></div>
<div style="font-family: "Helvetica Neue",Arial,Helvetica,sans-serif;">
<span style="font-size: small;"><span style="font-size: x-small;">When you add a banner </span></span><span style="font-size: small;"><span style="font-size: x-small;"> bigger than 590px </span></span><span style="font-size: small;"><span style="font-size: x-small;">in top container, the email template gets fixed width.</span></span></div>
<div style="font-family: "Helvetica Neue",Arial,Helvetica,sans-serif;">
<span style="font-size: small;"><span style="font-size: x-small;">If you use a smaller banner the email stays with 100% width.</span></span></div>
<div style="font-family: inherit;">
</div>
<div style="font-family: inherit;">
<br /></div>
<div style="font-family: Georgia,"Times New Roman",serif;">
<span style="font-size: small;"><b><br /></b></span></div>
<div style="font-family: Georgia,"Times New Roman",serif;">
<span style="font-size: small;"><b><br /></b></span></div>
<div style="font-family: Georgia,"Times New Roman",serif;">
<span style="font-size: small;"><b><br /></b></span></div>
<div style="font-family: Georgia,"Times New Roman",serif;">
<span style="font-size: small;"><b><br /></b></span></div>
<div style="font-family: Georgia,"Times New Roman",serif;">
<span style="font-size: small;"><b><br /></b></span></div>
<div style="font-family: Georgia,"Times New Roman",serif;">
<span style="font-size: small;"><b><br /></b></span></div>
<div style="font-family: Georgia,"Times New Roman",serif;">
<span style="font-size: small;"><b><br /></b></span></div>
<div style="font-family: Georgia,"Times New Roman",serif;">
<span style="font-size: small;"><b><br /></b></span></div>
<div style="font-family: Georgia,"Times New Roman",serif;">
<span style="font-size: small;"><b><br /></b></span></div>
<div style="font-family: Georgia,"Times New Roman",serif;">
<span style="font-size: small;"><b><br /></b></span></div>
<div style="font-family: Georgia,"Times New Roman",serif;">
<span style="font-size: small;"><b><br /></b></span></div>
<div style="font-family: Georgia,"Times New Roman",serif;">
<span style="font-size: small;"><b><br /></b></span></div>
<br />
<br />
<br />
<br />
<br />
<br /></div>
<div style="text-align: left;">
</div>one2onehttp://www.blogger.com/profile/13061136952115316435noreply@blogger.com1Madeira, Portugal32.7607074 -16.959472331.052006900000002 -19.4863278 34.4694079 -14.432616800000002tag:blogger.com,1999:blog-6952786574880976134.post-41217817521865095022011-12-21T03:26:00.000-08:002011-12-21T03:26:29.784-08:00Playing with BrandMyMail - new design<div style="font-family: Arial,Helvetica,sans-serif;">
<br /></div>
<div style="font-family: Arial,Helvetica,sans-serif;">
<br /></div>
<div class="separator" style="clear: both; font-family: Arial,Helvetica,sans-serif; text-align: center;">
</div>
<div class="separator" style="clear: both; font-family: Arial,Helvetica,sans-serif; text-align: center;">
</div>
<div class="separator" style="clear: both; font-family: Arial,Helvetica,sans-serif; text-align: center;">
<span id="goog_8444261"></span><iframe allowfullscreen='allowfullscreen' webkitallowfullscreen='webkitallowfullscreen' mozallowfullscreen='mozallowfullscreen' width='500' height='305' src='https://www.youtube.com/embed/9sXc24Yli-w?feature=player_embedded' frameborder='0'></iframe><span id="goog_8444262"></span></div>
<div style="font-family: Arial,Helvetica,sans-serif; text-align: center;">
Green Company Template</div>
<div style="font-family: Arial,Helvetica,sans-serif; text-align: center;">
<br /></div>
<div class="separator" style="clear: both; font-family: Arial,Helvetica,sans-serif; text-align: center;">
<object class="BLOGGER-youtube-video" classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,40,0" data-thumbnail-src="http://2.gvt0.com/vi/dXZ_3D3slGo/0.jpg" height="305" width="500"><param name="movie" value="http://www.youtube.com/v/dXZ_3D3slGo&fs=1&source=uds" />
<param name="bgcolor" value="#FFFFFF" />
<embed width="500" height="305" src="http://www.youtube.com/v/dXZ_3D3slGo&fs=1&source=uds" type="application/x-shockwave-flash"></embed></object></div>
<div style="font-family: Arial,Helvetica,sans-serif; text-align: center;">
Lana Del Rey template</div>one2onehttp://www.blogger.com/profile/13061136952115316435noreply@blogger.com0tag:blogger.com,1999:blog-6952786574880976134.post-52655357953721669792011-12-20T14:57:00.000-08:002011-12-20T14:57:23.477-08:00BrandMyMail templates<div style="text-align: center;">
<span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif;"><b>My <a href="http://www.brandmymail.com/">BrandMyMail</a> templates</b></span></div>
<div style="text-align: center;">
<span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif;"><b><br /></b></span></div>
<div style="text-align: center;">
<span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif;"><b><br /></b></span></div>
<table align="center" cellpadding="0" cellspacing="0" class="tr-caption-container" style="margin-left: auto; margin-right: auto; text-align: center;"><tbody>
<tr><td style="text-align: center;"><a href="http://2.bp.blogspot.com/-1d5SUs_1wN4/TvESNIgW8ZI/AAAAAAAAAGE/_wj6yWgCvS0/s1600/lana_del_rey_template.png" imageanchor="1" style="margin-left: auto; margin-right: auto;"><img border="0" height="226" src="http://2.bp.blogspot.com/-1d5SUs_1wN4/TvESNIgW8ZI/AAAAAAAAAGE/_wj6yWgCvS0/s400/lana_del_rey_template.png" width="400" /></a></td></tr>
<tr><td class="tr-caption" style="text-align: center;">Lana Del Rey template</td></tr>
</tbody></table>
<br />
<table align="center" cellpadding="0" cellspacing="0" class="tr-caption-container" style="margin-left: auto; margin-right: auto; text-align: center;"><tbody>
<tr><td style="text-align: center;"><a href="http://2.bp.blogspot.com/-swykxMy5Jrk/TvESNpqTNBI/AAAAAAAAAGI/3oi58TmZues/s1600/anonymous_template.png" imageanchor="1" style="margin-left: auto; margin-right: auto;"><img border="0" height="275" src="http://2.bp.blogspot.com/-swykxMy5Jrk/TvESNpqTNBI/AAAAAAAAAGI/3oi58TmZues/s400/anonymous_template.png" width="400" /></a></td></tr>
<tr><td class="tr-caption" style="text-align: center;">Anonymous Template</td></tr>
</tbody></table>
<div style="text-align: center;">
<span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif;"><b><br /></b></span></div>
<br />one2onehttp://www.blogger.com/profile/13061136952115316435noreply@blogger.com0tag:blogger.com,1999:blog-6952786574880976134.post-20241291377886323922011-09-22T14:18:00.000-07:002011-09-22T14:18:21.924-07:00Testing BrandMyMail with Gmail<br />
<div style="text-align: center;">
<span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif; font-size: large;">Testing <a href="http://www.brandmymail.com/">BrandMyMail</a> with Gmail</span></div>
<br />
<div style="text-align: center;">
<object style="height: 305px; width: 500px;">
<param name="movie" value="http://www.youtube.com/v/s3rM-Dt21EE?version=3">
<param name="allowFullScreen" value="true">
<param name="allowScriptAccess" value="always">
<embed src="http://www.youtube.com/v/s3rM-Dt21EE?version=3" type="application/x-shockwave-flash" allowfullscreen="true" allowScriptAccess="always" width="500" height="305"></object>
</div>
<br />one2onehttp://www.blogger.com/profile/13061136952115316435noreply@blogger.com0tag:blogger.com,1999:blog-6952786574880976134.post-50404752264846549772011-09-13T14:05:00.000-07:002011-09-13T14:13:43.369-07:00Ubuntu CheckGmail always prompt for password fix<pre></pre>
<pre></pre>
<pre>Download patch from <a href="http://sourceforge.net/tracker/download.php?group_id=137480&atid=738663&file_id=423104&aid=3406322">here</a></pre>
<pre></pre>
<pre><span class="Apple-style-span" style="font-family: 'Times New Roman'; white-space: normal;"><pre style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;">sudo /usr/bin/checkgmail -update</pre>
</span></pre>
<pre>sudo patch /usr/bin/checkgmail checkgmail.patch
</pre>
<pre></pre>
<pre>checkgmail</pre>
one2onehttp://www.blogger.com/profile/13061136952115316435noreply@blogger.com3tag:blogger.com,1999:blog-6952786574880976134.post-28560041909311197632011-08-27T08:20:00.000-07:002011-08-27T09:53:36.477-07:00Remote outlets, AVIDSEN and CHACON<img src="http://4.bp.blogspot.com/-cq8N4senYj0/TlkQEs4aPEI/AAAAAAAAAFo/uc9YG-vHAEc/s320/avidsen_outlet.png" style="float:left; margin:0 10px 10px 0;cursor:pointer; cursor:hand;width: 240px; height: 320px;" border="0" alt="" id="BLOGGER_PHOTO_ID_5645561280838908994" /><span class="Apple-style-span"><div>
<br /></div></span><b style="color: rgb(51, 51, 51); font-family: Verdana, Helvetica, Arial, sans-serif; font-size: 11px; ">Remote Control AVIDSEN (103107)</b><div><span class="Apple-style-span"><span class="Apple-style-span"><span class="Apple-style-span" style="font-size: 11px; ">
<br /></span></span></span></div><div><span class="Apple-style-span"><span class="Apple-style-span"><span class="Apple-style-span" style="font-size: 11px; "> ON OFF</span></span>
<br /><span class="Apple-style-span"><span class="Apple-style-span" style="font-size: 11px;">A 265353 265349</span></span>
<br /><span class="Apple-style-span"><span class="Apple-style-span" style="font-size: 11px;">B 266325 266321</span></span>
<br /><span class="Apple-style-span"><span class="Apple-style-span" style="font-size: 11px;">C 266649 266645</span></span>
<br /><span class="Apple-style-span"><span class="Apple-style-span" style="font-size: 11px;">D 266757 266753</span></span>
<br /><span class="Apple-style-span"><span class="Apple-style-span" style="font-size: 11px;">E 266793 266789</span></span></span><div><span class="Apple-style-span" style="color: rgb(51, 51, 51); font-family: Verdana, Helvetica, Arial, sans-serif; font-size: 11px; ">
<br /></span></div><div><span class="Apple-style-span" style="color: rgb(51, 51, 51); font-family: Verdana, Helvetica, Arial, sans-serif; font-size: 11px; ">period 150 </span></div><div><span class="Apple-style-span" style="color: rgb(51, 51, 51); font-family: Verdana, Helvetica, Arial, sans-serif; font-size: 11px; ">
<br /></span></div><div><span class="Apple-style-span" style="color: rgb(51, 51, 51); font-family: Verdana, Helvetica, Arial, sans-serif; font-size: 11px; ">
<br /></span></div><div><span class="Apple-style-span" style="color: rgb(51, 51, 51); font-family: Verdana, Helvetica, Arial, sans-serif; font-size: 11px; ">
<br /></span></div><div><span class="Apple-style-span" style="color: rgb(51, 51, 51); font-family: Verdana, Helvetica, Arial, sans-serif; font-size: 11px; ">
<br /></span></div><div><span class="Apple-style-span" style="color: rgb(51, 51, 51); font-family: Verdana, Helvetica, Arial, sans-serif; font-size: 11px; ">
<br /></span></div><div><span class="Apple-style-span" style="color: rgb(51, 51, 51); font-family: Verdana, Helvetica, Arial, sans-serif; font-size: 11px; ">
<br /></span></div><div><span class="Apple-style-span" style="color: rgb(51, 51, 51); font-family: Verdana, Helvetica, Arial, sans-serif; font-size: 11px; ">
<br /></span></div><div><span class="Apple-style-span" style="color: rgb(51, 51, 51); font-family: Verdana, Helvetica, Arial, sans-serif; font-size: 11px; ">
<br /></span></div><div><span class="Apple-style-span" style="color: rgb(51, 51, 51); font-family: Verdana, Helvetica, Arial, sans-serif; font-size: 11px; ">
<br /></span></div><div><span class="Apple-style-span" style="color: rgb(51, 51, 51); font-family: Verdana, Helvetica, Arial, sans-serif; font-size: 11px; ">
<br /></span></div><div><span class="Apple-style-span" style="color: rgb(51, 51, 51); font-family: Verdana, Helvetica, Arial, sans-serif; font-size: 11px; ">
<br /></span></div><div><span class="Apple-style-span" style="color: rgb(51, 51, 51); font-family: Verdana, Helvetica, Arial, sans-serif; font-size: 11px; ">
<br /></span></div><div><span class="Apple-style-span" style="color: rgb(51, 51, 51); font-family: Verdana, Helvetica, Arial, sans-serif; font-size: 11px; ">
<br /></span></div><div><span class="Apple-style-span" style="font-size: 11px;">
<br /></span></div><div><span class="Apple-style-span" style="line-height: 18px; "><span class="Apple-style-span" style="line-height: normal; "><div><span class="Apple-style-span" style="color: rgb(51, 51, 51); font-family: Verdana, Helvetica, Arial, sans-serif; font-size: 11px; "><img src="http://3.bp.blogspot.com/-3LxUlERbMs0/TlkQlDBfFQI/AAAAAAAAAF4/eyFtO_Ggx0Y/s320/chacon_outlet.png" style="float:left; margin:0 10px 10px 0;cursor:pointer; cursor:hand;width: 240px; height: 320px;" border="0" alt="" id="BLOGGER_PHOTO_ID_5645561836538369282" /></span></div><div><span class="Apple-style-span" style="color: rgb(51, 51, 51); font-family: Verdana, Helvetica, Arial, sans-serif; font-size: 11px; "><b>
<br /></b></span></div><div><span class="Apple-style-span" style="color: rgb(51, 51, 51); font-family: Verdana, Helvetica, Arial, sans-serif; font-size: 11px; "><b>
<br /></b></span></div></span></span><span class="Apple-style-span" style="color: rgb(51, 51, 51); font-family: Verdana, Helvetica, Arial, sans-serif; font-size: 11px; "><b>Remote Control CHACON (EMW200RC)</b></span><span class="Apple-style-span"><span class="Apple-style-span"><div style="line-height: normal; "><span class="Apple-style-span" style="color: rgb(51, 51, 51); font-family: Verdana, Helvetica, Arial, sans-serif; font-size: 11px; ">
<br /></span></div><div style="line-height: normal; "><span class="Apple-style-span" style="color: rgb(51, 51, 51); font-family: Verdana, Helvetica, Arial, sans-serif; font-size: 11px; "> ON OFF</span></div><div style="line-height: normal; "><span class="Apple-style-span" style="color: rgb(51, 51, 51); font-family: Verdana, Helvetica, Arial, sans-serif; font-size: 11px; ">1 <span class="Apple-style-span" style="font-family: 'Trebuchet MS', 'Lucida Grande', Verdana, Tahoma, Arial; font-size: 12px; line-height: 18px; color: rgb(0, 0, 0); ">164023</span> <span class="Apple-style-span" style="font-family: 'Trebuchet MS', 'Lucida Grande', Verdana, Tahoma, Arial; font-size: 12px; line-height: 18px; color: rgb(0, 0, 0); ">164022</span>
<br />2 <span class="Apple-style-span" style="font-family: 'Trebuchet MS', 'Lucida Grande', Verdana, Tahoma, Arial; font-size: 12px; line-height: 18px; color: rgb(0, 0, 0); ">172771</span> <span class="Apple-style-span" style="font-family: 'Trebuchet MS', 'Lucida Grande', Verdana, Tahoma, Arial; font-size: 12px; line-height: 18px; color: rgb(0, 0, 0); ">172770</span>
<br />3 <span class="Apple-style-span" style="font-family: 'Trebuchet MS', 'Lucida Grande', Verdana, Tahoma, Arial; font-size: 12px; line-height: 18px; color: rgb(0, 0, 0); ">175687</span> <span class="Apple-style-span" style="font-family: 'Trebuchet MS', 'Lucida Grande', Verdana, Tahoma, Arial; font-size: 12px; line-height: 18px; color: rgb(0, 0, 0); ">175686</span>
<br />4 <span class="Apple-style-span" style="font-family: 'Trebuchet MS', 'Lucida Grande', Verdana, Tahoma, Arial; font-size: 12px; line-height: 18px; color: rgb(0, 0, 0); ">176659</span> <span class="Apple-style-span" style="font-family: 'Trebuchet MS', 'Lucida Grande', Verdana, Tahoma, Arial; font-size: 12px; line-height: 18px; color: rgb(0, 0, 0); ">176658</span>
<br />
<br /></span></div><div style="line-height: normal; "><span class="Apple-style-span" style="color: rgb(51, 51, 51); font-family: Verdana, Helvetica, Arial, sans-serif; font-size: 11px; ">period 360 </span></div><div style="line-height: normal; "><span class="Apple-style-span" style="color: rgb(51, 51, 51); font-family: Verdana, Helvetica, Arial, sans-serif; font-size: 11px; ">
<br /></span></div><div style="line-height: normal; "><span class="Apple-style-span" style="color: rgb(51, 51, 51); font-family: Verdana, Helvetica, Arial, sans-serif; font-size: 11px; ">(<b>Note</b>: you may have to try different period intervals, only this worked for me, and it is different from what i get in <i>show_received_code</i> program from <i>RemoteSwitch</i> Library)</span></div><div style="line-height: normal; "><span class="Apple-style-span" style="color: rgb(51, 51, 51); font-family: Verdana, Helvetica, Arial, sans-serif; font-size: 11px; ">
<br /></span>
<br /></div><div style="line-height: normal; "><span class="Apple-style-span"><span class="Apple-style-span" style="font-size: 11px;">
<br /></span></span></div><div style="line-height: normal; "><span class="Apple-style-span" style="color: rgb(51, 51, 51); font-family: Verdana, Helvetica, Arial, sans-serif; font-size: 11px; ">
<br /></span></div><div style="line-height: normal; "><span class="Apple-style-span" style="color: rgb(51, 51, 51); font-family: Verdana, Helvetica, Arial, sans-serif; font-size: 11px; ">
<br /></span></div><div style="line-height: normal; "><span class="Apple-style-span" style="color: rgb(51, 51, 51); font-family: Verdana, Helvetica, Arial, sans-serif; font-size: 11px; ">
<br /></span></div><div style="line-height: normal; "><span class="Apple-style-span" style="color: rgb(51, 51, 51); font-family: Verdana, Helvetica, Arial, sans-serif; font-size: 11px; ">
<br /></span></div><div style="line-height: normal; "><span class="Apple-style-span" style="color: rgb(51, 51, 51); font-family: Verdana, Helvetica, Arial, sans-serif; font-size: 11px; ">
<br /></span></div><div style="line-height: normal; "><span class="Apple-style-span" style="color: rgb(51, 51, 51); font-family: Verdana, Helvetica, Arial, sans-serif; font-size: 11px; ">
<br /></span></div><div style="line-height: normal; "><span class="Apple-style-span" style="color: rgb(51, 51, 51); font-family: Verdana, Helvetica, Arial, sans-serif; font-size: 11px; ">
<br /></span></div><div style="line-height: normal; "><span class="Apple-style-span"><span class="Apple-style-span" style="font-size: 11px;">
<br /></span></span></div><div style="line-height: normal; "><span class="Apple-style-span" style="color: rgb(51, 51, 51); font-family: Verdana, Helvetica, Arial, sans-serif; font-size: 11px; "><img src="http://3.bp.blogspot.com/-tr1GUn9FmXk/TlkSl9x0F7I/AAAAAAAAAGA/Mb8shWI7WV0/s320/arduino_rf.png" style="float:left; margin:0 10px 10px 0;cursor:pointer; cursor:hand;width: 320px; height: 240px;" border="0" alt="" id="BLOGGER_PHOTO_ID_5645564051333584818" /></span></div><div style="line-height: normal; "><span class="Apple-style-span" style="color: rgb(51, 51, 51); font-family: Verdana, Helvetica, Arial, sans-serif; font-size: 11px; ">
<br /></span></div><div style="line-height: normal; "><span class="Apple-style-span" style="color: rgb(51, 51, 51); font-family: Verdana, Helvetica, Arial, sans-serif; font-size: 11px; ">
<br /></span></div><div style="line-height: normal; "><span class="Apple-style-span" style="color: rgb(51, 51, 51); font-family: Verdana, Helvetica, Arial, sans-serif; "><b>How control remote outlets with <a href="http://www.arduino.cc/">Arduino</a> ?</b></span></div><div style="line-height: normal; "><span class="Apple-style-span" style="color: rgb(51, 51, 51); font-family: Verdana, Helvetica, Arial, sans-serif; font-size: 11px; ">
<br /></span></div><div style="line-height: normal; "><span class="Apple-style-span" style="color: rgb(51, 51, 51); font-family: Verdana, Helvetica, Arial, sans-serif; font-size: 11px; ">1 - Get an RF 433Mhz transmitter module</span></div><div style="line-height: normal; "><span class="Apple-style-span" style="color: rgb(51, 51, 51); font-family: Verdana, Helvetica, Arial, sans-serif; font-size: 11px; ">2 - Install <a href="http://code.google.com/p/rc-switch/">RemoteSwitch</a> library</span></div><div style="line-height: normal; "><span class="Apple-style-span" style="color: rgb(51, 51, 51); font-family: Verdana, Helvetica, Arial, sans-serif; font-size: 11px; ">3 - Connect module to PIN 4</span></div><div style="line-height: normal; "><span class="Apple-style-span" style="color: rgb(51, 51, 51); font-family: Verdana, Helvetica, Arial, sans-serif; font-size: 11px; ">4 - Upload program with the right codes</span></div><div style="line-height: normal; "><span class="Apple-style-span" style="color: rgb(51, 51, 51); font-family: Verdana, Helvetica, Arial, sans-serif; font-size: 11px; ">
<br /></span></div><div style="line-height: normal; "><span class="Apple-style-span" style="color: rgb(51, 51, 51); font-family: Verdana, Helvetica, Arial, sans-serif; font-size: 11px; ">
<br /></span></div><div style="line-height: normal; "><span class="Apple-style-span" style="color: rgb(51, 51, 51); font-family: Verdana, Helvetica, Arial, sans-serif; font-size: 11px; ">
<br /></span></div><div style="line-height: normal; "><span class="Apple-style-span" style="color: rgb(51, 51, 51); font-family: Verdana, Helvetica, Arial, sans-serif; font-size: 11px; ">
<br /></span></div><div style="line-height: normal; "><span class="Apple-style-span" style="color: rgb(51, 51, 51); font-family: Verdana, Helvetica, Arial, sans-serif; font-size: 11px; ">
<br /></span></div><div style="line-height: normal; "><span class="Apple-style-span" style="color: rgb(51, 51, 51); font-family: Verdana, Helvetica, Arial, sans-serif; font-size: 11px; ">
<br /></span></div><div style="line-height: normal; "><span class="Apple-style-span" style="color: rgb(51, 51, 51); font-family: Verdana, Helvetica, Arial, sans-serif; font-size: 11px; ">
<br /></span></div><div style="line-height: normal; "><span class="Apple-style-span" style="color: rgb(51, 51, 51); font-family: Verdana, Helvetica, Arial, sans-serif; font-size: 11px; ">
<br /></span></div><div style="line-height: normal; "><span class="Apple-style-span" style="color: rgb(51, 51, 51); font-family: Verdana, Helvetica, Arial, sans-serif; font-size: 11px; ">
<br /></span></div><div style="line-height: normal; "><span class="Apple-style-span"><span class="Apple-style-span" style="font-size: 11px;">
<br /></span></span></div><div style="line-height: normal; "><span class="Apple-style-span"><span class="Apple-style-span" style="font-size: 11px;">
<br /></span></span></div><div style="line-height: normal; "><span class="Apple-style-span"><span class="Apple-style-span" style="font-size: 11px;">
<br /></span></span></div><div style="line-height: normal; "><span class="Apple-style-span" style="font-size: 11px;">
<br /></span></div></span></span></div></div><pre style="color:#000020;background:#f6f8ff;"><span style="color:#004a43; ">#</span><span style="color:#004a43; ">include </span><span style="color:#800000; "><</span><span style="color:#40015a; ">RemoteSwitch.h</span><span style="color:#800000; ">></span>
<br />
<br /><span style="color:#004a43; ">#</span><span style="color:#004a43; ">define</span><span style="color:#004a43; "> OUTLET_A_ON 265353</span>
<br /><span style="color:#004a43; ">#</span><span style="color:#004a43; ">define</span><span style="color:#004a43; "> OUTLET_A_OFF 265349</span>
<br /><span style="color:#004a43; ">#</span><span style="color:#004a43; ">define</span><span style="color:#004a43; "> PERIOD 150</span><span style="color:#308080; ">;</span>
<br />
<br /><span style="color:#004a43; ">#</span><span style="color:#004a43; ">define</span><span style="color:#004a43; "> RF_TX_PIN 4</span>
<br />
<br /><span style="color:#200080; font-weight:bold; ">void</span> setup<span style="color:#308080; ">(</span><span style="color:#308080; ">)</span> <span style="color:#406080; ">{</span>
<br />Serial<span style="color:#308080; ">.</span>begin<span style="color:#308080; ">(</span><span style="color:#008c00; ">9600</span><span style="color:#308080; ">)</span><span style="color:#406080; ">;</span>
<br /><span style="color:#406080; ">}</span>
<br />
<br /><span style="color:#200080; font-weight:bold; ">void</span> loop<span style="color:#308080; ">(</span><span style="color:#308080; ">)</span> <span style="color:#406080; ">{</span>
<br />Serial<span style="color:#308080; ">.</span>println<span style="color:#308080; ">(</span><span style="color:#800000; ">"</span><span style="color:#1060b6; ">Sending off</span><span style="color:#800000; ">"</span><span style="color:#308080; ">)</span><span style="color:#406080; ">;</span>
<br />transmit<span style="color:#308080; ">(</span>OUTLET_A_OFF<span style="color:#308080; ">)</span><span style="color:#406080; ">;</span>
<br />delay<span style="color:#308080; ">(</span><span style="color:#008c00; ">5000</span><span style="color:#308080; ">)</span><span style="color:#406080; ">;</span>
<br />
<br />Serial<span style="color:#308080; ">.</span>println<span style="color:#308080; ">(</span><span style="color:#800000; ">"</span><span style="color:#1060b6; ">Sending on</span><span style="color:#800000; ">"</span><span style="color:#308080; ">)</span><span style="color:#406080; ">;</span>
<br />transmit<span style="color:#308080; ">(</span>OUTLET_A_ON<span style="color:#308080; ">)</span><span style="color:#406080; ">;</span>
<br />delay<span style="color:#308080; ">(</span><span style="color:#008c00; ">5000</span><span style="color:#308080; ">)</span><span style="color:#406080; ">;</span>
<br /><span style="color:#406080; ">}</span>
<br />
<br /><span style="color:#200080; font-weight:bold; ">void</span> transmit<span style="color:#308080; ">(</span><span style="color:#200080; font-weight:bold; ">unsigned</span> <span style="color:#200080; font-weight:bold; ">long</span> rcode<span style="color:#308080; ">)</span><span style="color:#406080; ">{</span>
<br /><span style="color:#200080; font-weight:bold; ">unsigned</span> <span style="color:#200080; font-weight:bold; ">long</span> code <span style="color:#308080; ">=</span> rcode<span style="color:#406080; ">;</span>
<br /><span style="color:#200080; font-weight:bold; ">unsigned</span> <span style="color:#200080; font-weight:bold; ">long</span> period <span style="color:#308080; ">=</span> PERIOD<span style="color:#406080; ">;</span>
<br />code <span style="color:#308080; ">|</span><span style="color:#308080; ">=</span> <span style="color:#308080; ">(</span><span style="color:#200080; font-weight:bold; ">unsigned</span> <span style="color:#200080; font-weight:bold; ">long</span><span style="color:#308080; ">)</span>period <span style="color:#308080; "><</span><span style="color:#308080; "><</span> <span style="color:#008c00; ">23</span><span style="color:#406080; ">;</span>
<br />code <span style="color:#308080; ">|</span><span style="color:#308080; ">=</span> <span style="color:#008c00; ">3</span><span style="color:#006600; ">L</span> <span style="color:#308080; "><</span><span style="color:#308080; "><</span> <span style="color:#008c00; ">20</span><span style="color:#406080; ">;</span>
<br />RemoteSwitch<span style="color:#406080; ">::</span>sendTelegram<span style="color:#308080; ">(</span>code<span style="color:#308080; ">,</span> RF_TX_PIN<span style="color:#308080; ">)</span><span style="color:#406080; ">;</span> <span style="color:#595979; ">// RF transmitter pin</span>
<br /><span style="color:#406080; ">}</span>
<br /></pre><pre style="color:#000020;background:#f6f8ff;"><span style="color:#406080; ">
<br /></span></pre>one2onehttp://www.blogger.com/profile/13061136952115316435noreply@blogger.com0tag:blogger.com,1999:blog-6952786574880976134.post-18699568141642148172011-08-20T03:46:00.000-07:002011-09-02T13:08:58.788-07:00redmine installation problem<div>
<b>i was trying to install redmine from the <a href="http://www.redmine.org/projects/redmine/wiki/HowTo_Install_Redmine_on_Debian_Squeeze_with_Postgresql_Ruby-on-Rails_and_Apache2-Passenger">link</a>: </b></div>
<div>
<br /></div>
<div>
Got this problem:</div>
<div>
genbox:~# gem install -v=2.3.5 rails</div>
<div>
<div>
ERROR: could not find gem rails locally or in a repository</div>
</div>
<div>
<br /></div>
<div>
This fixed:</div>
<div>
<div>
wget http://rubyforge.org/frs/download.php/74343/rubygems-1.5.3.tgz</div>
<div>
tar -xf rubygems*tgz</div>
<div>
cd rubygems*</div>
<div>
ruby setup.rb</div>
<div>
ln -s /usr/bin/gem1.8 /usr/bin/gem</div>
</div>
<div>
<br /></div>
<div>
<br /></div>
<div>
<br /></div>
<div>
<br /></div>
<div>
<br /></div>
<div>
<br /></div>
<div>
<br /></div>
one2onehttp://www.blogger.com/profile/13061136952115316435noreply@blogger.com0tag:blogger.com,1999:blog-6952786574880976134.post-24729084954775103582011-01-04T17:07:00.000-08:002011-09-02T13:09:48.155-07:00Arduino Remote Control OutletToday i bought an remote control outlet kit from avidsen (2 adapters + remote control)<br />
<div>
Using the library and info from <a href="http://www.arduino.cc/cgi-bin/yabb2/YaBB.pl?num=1216065789">here</a> and <a href="http://talk.jeelabs.net/topic/187/page/2">here</a>, was possible to decode the on/off codes.</div>
<div>
<br /></div>
<div>
After finding these codes, i added and actuator to the <a href="http://dev.hci.uma.pt/sawa">platform</a> with two functions on() and off()</div>
<div>
<br />
<br />
<a href="http://3.bp.blogspot.com/_K1PWou3lLY0/TSPFT1YiYkI/AAAAAAAAAEU/eqdASfxE5_4/s1600/110104225635.png"><img alt="" border="0" id="BLOGGER_PHOTO_ID_5558503309643506242" src="http://3.bp.blogspot.com/_K1PWou3lLY0/TSPFT1YiYkI/AAAAAAAAAEU/eqdASfxE5_4/s320/110104225635.png" style="cursor: hand; cursor: pointer; display: block; height: 320px; margin: 0px auto 10px; text-align: center; width: 250px;" /></a><br />
<div style="text-align: center;">
Electric water heater</div>
<div style="text-align: center;">
<br /></div>
<a href="http://3.bp.blogspot.com/_K1PWou3lLY0/TSPFK5nalAI/AAAAAAAAAEM/G29D65hdPLs/s1600/110104225741.png"><img alt="" border="0" id="BLOGGER_PHOTO_ID_5558503156160828418" src="http://3.bp.blogspot.com/_K1PWou3lLY0/TSPFK5nalAI/AAAAAAAAAEM/G29D65hdPLs/s320/110104225741.png" style="cursor: hand; cursor: pointer; display: block; height: 242px; margin: 0px auto 10px; text-align: center; width: 320px;" /></a><br />
<div style="text-align: center;">
Outlet adapter</div>
<div style="text-align: center;">
<br /></div>
<a href="http://4.bp.blogspot.com/_K1PWou3lLY0/TSPE-bOVIcI/AAAAAAAAAEE/PgLUHxE3QZ0/s1600/110104225705.png"><img alt="" border="0" id="BLOGGER_PHOTO_ID_5558502941844120002" src="http://4.bp.blogspot.com/_K1PWou3lLY0/TSPE-bOVIcI/AAAAAAAAAEE/PgLUHxE3QZ0/s320/110104225705.png" style="cursor: hand; cursor: pointer; display: block; height: 240px; margin: 0px auto 10px; text-align: center; width: 320px;" /></a><br />
<div style="text-align: center;">
Outlet adapter and remote control</div>
<div style="text-align: center;">
<br /></div>
<div style="text-align: center;">
<br /></div>
<a href="http://4.bp.blogspot.com/_K1PWou3lLY0/TSPExxX3X2I/AAAAAAAAAD8/MfKsrp862tE/s1600/110105000416.png"><img alt="" border="0" id="BLOGGER_PHOTO_ID_5558502724451393378" src="http://4.bp.blogspot.com/_K1PWou3lLY0/TSPExxX3X2I/AAAAAAAAAD8/MfKsrp862tE/s320/110105000416.png" style="cursor: hand; cursor: pointer; display: block; height: 157px; margin: 0px auto 10px; text-align: center; width: 320px;" /></a><br />
<div style="text-align: center;">
Actuator in system</div>
<div style="text-align: center;">
<br /></div>
<div>
<br />
<a href="http://1.bp.blogspot.com/_K1PWou3lLY0/TSPIjHeLfII/AAAAAAAAAEc/Qg1uR99izkg/s1600/110105012501.png"></a></div>
<div>
<a href="http://1.bp.blogspot.com/_K1PWou3lLY0/TSPIjHeLfII/AAAAAAAAAEc/Qg1uR99izkg/s1600/110105012501.png"><img alt="" border="0" id="BLOGGER_PHOTO_ID_5558506870731930754" src="http://1.bp.blogspot.com/_K1PWou3lLY0/TSPIjHeLfII/AAAAAAAAAEc/Qg1uR99izkg/s320/110105012501.png" style="cursor: pointer; display: block; height: 272px; margin-bottom: 10px; margin-left: auto; margin-right: auto; margin-top: 0px; text-align: left; width: 320px;" /></a></div>
</div>
<div style="text-align: center;">
Mobile version</div>
<div style="text-align: center;">
<br /></div>
<div style="text-align: center;">
<br /></div>
<div style="text-align: center;">
<object height="340" width="560"><embed src="http://www.youtube.com/v/j4hF5-ALNhs?fs=1&hl=en_US&hd=1" type="application/x-shockwave-flash" allowscriptaccess="always" allowfullscreen="true" width="560" height="340"></embed></object></div>
<br />
<br />
<br />
<b>New update: </b>i was forgetting one important thing, set a policy to turn on water heater between 7 am and 8 am and turn off after 8 am.<br />
<br />
<a href="http://4.bp.blogspot.com/_K1PWou3lLY0/TSPP4sukGpI/AAAAAAAAAEk/QdEA5JroGio/s1600/110105015258.png"><img alt="" border="0" id="BLOGGER_PHOTO_ID_5558514938091412114" src="http://4.bp.blogspot.com/_K1PWou3lLY0/TSPP4sukGpI/AAAAAAAAAEk/QdEA5JroGio/s320/110105015258.png" style="cursor: hand; cursor: pointer; display: block; height: 164px; margin: 0px auto 10px; text-align: center; width: 320px;" /></a><br />
<div style="text-align: center;">
My policies in system</div>
<br />
<a href="http://4.bp.blogspot.com/_K1PWou3lLY0/TSPQBJoigeI/AAAAAAAAAEs/bgOdpobaDzo/s1600/110105015316.png"><img alt="" border="0" id="BLOGGER_PHOTO_ID_5558515083289723362" src="http://4.bp.blogspot.com/_K1PWou3lLY0/TSPQBJoigeI/AAAAAAAAAEs/bgOdpobaDzo/s320/110105015316.png" style="cursor: pointer; display: block; height: 101px; margin-bottom: 10px; margin-left: auto; margin-right: auto; margin-top: 0px; text-align: left; width: 320px;" /></a><br />
<div style="text-align: center;">
turn_heater_on policy info</div>
<div style="text-align: center;">
<br /></div>
<div style="text-align: center;">
<br /></div>
<div style="text-align: center;">
<br /></div>
one2onehttp://www.blogger.com/profile/13061136952115316435noreply@blogger.com4tag:blogger.com,1999:blog-6952786574880976134.post-33429732976657791302010-12-26T15:51:00.000-08:002010-12-26T15:57:05.117-08:00Laptop Boot Image<div>I did an script in the past to take an picture every laptop boot and upload to server.</div><br /><div>Here is an image with the thumbnails of almost 1500 images generated by Picasa.<div><br /><a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://4.bp.blogspot.com/_K1PWou3lLY0/TRfV4L8WxaI/AAAAAAAAAD0/IdyGXN_kgAI/s1600/boot-webcam-images.jpg"><img style="display:block; margin:0px auto 10px; text-align:center;cursor:pointer; cursor:hand;width: 320px; height: 180px;" src="http://4.bp.blogspot.com/_K1PWou3lLY0/TRfV4L8WxaI/AAAAAAAAAD0/IdyGXN_kgAI/s320/boot-webcam-images.jpg" border="0" alt="" id="BLOGGER_PHOTO_ID_5555143826640127394" /></a></div></div>one2onehttp://www.blogger.com/profile/13061136952115316435noreply@blogger.com0tag:blogger.com,1999:blog-6952786574880976134.post-87352764075565988432010-12-09T10:02:00.000-08:002011-09-02T13:10:18.930-07:00Preparing Arduino Bug Zapper<div>
<br /></div>
<b>Objectives</b>: <br />
<div>
<br /></div>
<div>
Detect when a bug is killed</div>
<div>
Send data to server</div>
<div>
<br />
<br />
<a href="http://1.bp.blogspot.com/_K1PWou3lLY0/TQEaRpo30NI/AAAAAAAAADY/yF9WbOJPHRs/s1600/TXcsX.png"><img alt="" border="0" id="BLOGGER_PHOTO_ID_5548745106434543826" src="http://1.bp.blogspot.com/_K1PWou3lLY0/TQEaRpo30NI/AAAAAAAAADY/yF9WbOJPHRs/s320/TXcsX.png" style="cursor: hand; cursor: pointer; display: block; height: 240px; margin: 0px auto 10px; text-align: center; width: 320px;" /></a><br />
<div style="text-align: center;">
Testing ATmega 328 with Arduino bootloader</div>
<div style="text-align: center;">
<br /></div>
<br />
<a href="http://4.bp.blogspot.com/_K1PWou3lLY0/TQEae75RMDI/AAAAAAAAADg/9B3Bxw6PMKY/s1600/ZhFhh.png"><img alt="" border="0" id="BLOGGER_PHOTO_ID_5548745334673453106" src="http://4.bp.blogspot.com/_K1PWou3lLY0/TQEae75RMDI/AAAAAAAAADg/9B3Bxw6PMKY/s320/ZhFhh.png" style="cursor: hand; cursor: pointer; display: block; height: 243px; margin: 0px auto 10px; text-align: center; width: 320px;" /></a><br />
<div style="text-align: center;">
No PCB :(</div>
<div style="text-align: center;">
<br /></div>
<br />
<a href="http://2.bp.blogspot.com/_K1PWou3lLY0/TQEaoNhO1NI/AAAAAAAAADo/zHZDg4cRzoU/s1600/cPXIQ.jpg"><img alt="" border="0" id="BLOGGER_PHOTO_ID_5548745494023296210" src="http://2.bp.blogspot.com/_K1PWou3lLY0/TQEaoNhO1NI/AAAAAAAAADo/zHZDg4cRzoU/s320/cPXIQ.jpg" style="cursor: hand; cursor: pointer; display: block; height: 242px; margin: 0px auto 10px; text-align: center; width: 320px;" /></a><br />
<div style="text-align: center;">
Bug Zapper racket</div>
<div style="text-align: center;">
<br /></div>
<div style="text-align: left;">
<b><br /></b></div>
<div style="text-align: left;">
<b>Next steps:</b></div>
<div style="text-align: left;">
<b><br /></b></div>
<div style="text-align: left;">
Attach Electret Microphone [<a href="http://www.sparkfun.com/products/9964">link</a>] </div>
<div style="text-align: left;">
Attach 315MHz Transmitter module [<a href="http://www.sparkfun.com/products/8945">link</a>]</div>
<div style="text-align: left;">
Calibration</div>
<div style="text-align: left;">
Add everything to racket inside</div>
<div style="text-align: left;">
<br /></div>
<div style="text-align: left;">
<br /></div>
<div style="text-align: left;">
<br /></div>
<div style="text-align: left;">
<br /></div>
<br /></div>
one2onehttp://www.blogger.com/profile/13061136952115316435noreply@blogger.com0tag:blogger.com,1999:blog-6952786574880976134.post-1471022215048320902010-11-20T16:12:00.000-08:002010-11-20T16:14:50.639-08:00TMN A1 or Huawei U8230, switch applications, task list, recent applicationsUse combination<br /><br /><span style="font-weight:bold;">off+menu</span><br /><br /><div>then choose "recent applications"</div>one2onehttp://www.blogger.com/profile/13061136952115316435noreply@blogger.com0tag:blogger.com,1999:blog-6952786574880976134.post-79714555699157671522010-10-29T02:40:00.000-07:002010-10-29T03:06:59.447-07:00Visualizing Facebook friends presenceI have set up a XMPP bot that connects to Facebook XMPP server, and monitors my friends login and logout operations.<br /><br />For now i am only monitoring presence, but another's aspects could be easily derived and/or monitored :)<br /><br /><span style="font-weight:bold;">Chart values:</span><br /><br /><div>"1" means that the user has entered Facebook</div><div>"0" means that the user has logout</div><div><br /></div><div><b>Chart lines:</b></div><div><br /></div><div>"\" lines means a user session, user logins and a time after the user logs out</div><div>"/" lines like this, means the user is entering Facebook after being logged out</div><div>"V" the formed V's represent the user login and logout history</div><div><br /></div><div><br /></div><div>Note: this post only contains data from 15:30pm to 3:08 am, from first monitoring attempt.</div><div><u><br /></u></div><div style="text-align: center;"><i>Data from 15:30pm to 3:08 am</i></div><a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://1.bp.blogspot.com/_K1PWou3lLY0/TMqZIRMT7iI/AAAAAAAAAC4/rNfJEH9g0D4/s1600/101029103742.png"><img style="display:block; margin:0px auto 10px; text-align:center;cursor:pointer; cursor:hand;width: 320px; height: 132px;" src="http://1.bp.blogspot.com/_K1PWou3lLY0/TMqZIRMT7iI/AAAAAAAAAC4/rNfJEH9g0D4/s320/101029103742.png" border="0" alt="" id="BLOGGER_PHOTO_ID_5533403459511119394" /></a><br /><br /><br /><div style="text-align: center;"><i>Drilling-down (zooming)</i></div><a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://3.bp.blogspot.com/_K1PWou3lLY0/TMqbAvtgYqI/AAAAAAAAADI/9VNvn_MeJAY/s1600/101029105858.png"><img style="display:block; margin:0px auto 10px; text-align:center;cursor:pointer; cursor:hand;width: 320px; height: 130px;" src="http://3.bp.blogspot.com/_K1PWou3lLY0/TMqbAvtgYqI/AAAAAAAAADI/9VNvn_MeJAY/s320/101029105858.png" border="0" alt="" id="BLOGGER_PHOTO_ID_5533405529287713442" /></a><br /><div><br /></div><div><div style="text-align: center;"><i>Platform raw chart page</i></div><div style="text-align: center;"><i><br /></i></div><a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://4.bp.blogspot.com/_K1PWou3lLY0/TMqbef0iDKI/AAAAAAAAADQ/OEiS2OvC3ww/s1600/101029110049.png"><img style="display:block; margin:0px auto 10px; text-align:center;cursor:pointer; cursor:hand;width: 320px; height: 193px;" src="http://4.bp.blogspot.com/_K1PWou3lLY0/TMqbef0iDKI/AAAAAAAAADQ/OEiS2OvC3ww/s320/101029110049.png" border="0" alt="" id="BLOGGER_PHOTO_ID_5533406040418290850" /></a></div><br />The platform im using to upload sensor data is <a href="http://middlewaresensing.wordpress.com/">sawa</a> (related to sensors), no need to create databases, just upload data and then render chart :)<div><br /><br /></div>one2onehttp://www.blogger.com/profile/13061136952115316435noreply@blogger.com0tag:blogger.com,1999:blog-6952786574880976134.post-60341502569318618302010-10-28T04:48:00.000-07:002010-10-28T05:14:59.676-07:00SleekXMPP problems with DIGEST-MD5I was trying to connect to facebook XMPP server using the sleekxmpp <a href="http://github.com/tomstrummer/SleekXMPP">port</a> that suports the SASL.<div><br /></div><div>But was unable to connect....</div><div><br /></div><div><pre></pre></div><div><div><pre><div style="background: #202020; overflow:auto;width:auto;color:white;background:black;border:solid gray;border-width:.1em .1em .1em .8em;padding:.2em .6em;"><table><tbody><tr><td><pre style="margin: 0; line-height: 125%">1 2</pre></td><td><pre style="margin: 0; line-height: 125%"> <span style="color: #6ab825; font-weight: bold">if</span> <span style="color: #6ab825; font-weight: bold">not</span> <span style="color: #d0d0d0">challenge[</span><span style="color: #ed9d13">'realm'</span><span style="color: #d0d0d0">]</span> <span style="color: #6ab825; font-weight: bold">or</span> <span style="color: #6ab825; font-weight: bold">not</span> <span style="color: #d0d0d0">challenge[</span><span style="color: #ed9d13">'qop'</span><span style="color: #d0d0d0">]</span> <span style="color: #6ab825; font-weight: bold">or</span> <span style="color: #6ab825; font-weight: bold">not</span> <span style="color: #d0d0d0">challenge[</span><span style="color: #ed9d13">'nonce'</span><span style="color: #d0d0d0">]:</span> <span style="color: #bbbbbb">KeyError</span><span style="color: #d0d0d0">:</span> <span style="color: #ed9d13">u'realm'</span> </pre></td></tr></tbody></table></div></pre></div></div><div></div><div><br /></div><div>Looking at protocol <a href="http://xmpp.org/rfcs/rfc3920.html#sasl">http://xmpp.org/rfcs/rfc3920.html#sasl</a> the function <b><i>handler_sasl_digest_md5_auth</i></b> was not handling 2 essential steps:</div><div><br /></div><div><span class="Apple-style-span" style="font-family: verdana, charcoal, helvetica, arial, sans-serif; font-size: small; "><b><i>"Step 7: Server sends another </i></b><a class="info" href="http://xmpp.org/rfcs/rfc3920.html#BASE64" style="position: relative; z-index: 24; text-decoration: none; color: rgb(153, 0, 0); background-color: transparent; "><b><i>[BASE64]</i></b></a><b><i> encoded challenge to client:"</i></b></span></div><div><span class="Apple-style-span" style="font-family: verdana, charcoal, helvetica, arial, sans-serif; font-size: small; ">and</span></div><div><span class="Apple-style-span" style="font-family: verdana, charcoal, helvetica, arial, sans-serif; font-size: small; "></span><span class="Apple-style-span" style="font-family: verdana, charcoal, helvetica, arial, sans-serif; font-size: small; "><b><i>"Step 8: Client responds to the challenge:"</i></b></span></div><div><span class="Apple-style-span" style="font-family: verdana, charcoal, helvetica, arial, sans-serif; font-size: small; "><span class="Apple-style-span"><span class="Apple-style-span" style="white-space: pre;"><span class="Apple-style-span"><span class="Apple-style-span" style="white-space: normal;"><br /></span></span></span></span></span></div><div><span class="Apple-style-span" style="font-family: verdana, charcoal, helvetica, arial, sans-serif; font-size: small; "><span class="Apple-style-span"><span class="Apple-style-span" style="white-space: pre;"><span class="Apple-style-span"><span class="Apple-style-span" style="white-space: normal;"></span></span></span></span></span></div><br /><div><br /></div><br />Solution:<br /><!-- HTML generated using hilite.me --><div style="background: #202020; overflow:auto;width:auto;color:white;background:black;border:solid gray;border-width:.1em .1em .1em .8em;padding:.2em .6em;"><table><tbody><tr><td><pre style="margin: 0; line-height: 125%">1<br />2<br />3<br />4<br />5</pre></td><td><pre style="margin: 0; line-height: 125%"> <span style="color: #24909d">self</span><span style="color: #d0d0d0">.sendPriorityRaw(</span><span style="color: #ed9d13">"""<response xmlns='urn:ietf:params:xml:ns:xmpp-sasl'>%s</response>"""</span> <span style="color: #d0d0d0">%base64.encodestring(response)[:-</span><span style="color: #3677a9">1</span><span style="color: #d0d0d0">])</span><br /> <b><span style="color: #24909d">self</span><span style="color: #d0d0d0">.digest_auth_started</span> <span style="color: #d0d0d0">=</span> <span style="color: #24909d">True</span></b><br /> <span style="color: #6ab825; font-weight: bold">else</span><span style="color: #d0d0d0">:</span><br /> <span style="color: #d0d0d0">logging.warn(</span><span style="color: #ed9d13">"handler_sasl_digest_md5_auth called while digest_auth_started is True (has already begun)"</span><span style="color: #d0d0d0">)</span><br /> <b><span style="color: #24909d">self</span><span style="color: #d0d0d0">.sendPriorityRaw(</span><span style="color: #ed9d13">"<response xmlns='urn:ietf:params:xml:ns:xmpp-sasl' />"</span><span style="color: #d0d0d0">)</span></b><br /></pre></td></tr></tbody></table></div>one2onehttp://www.blogger.com/profile/13061136952115316435noreply@blogger.com0tag:blogger.com,1999:blog-6952786574880976134.post-40077211434644028542010-10-19T02:55:00.000-07:002011-09-02T13:11:11.961-07:00DHT11 Arduino with VirtualWireBy some reason when using VirtualWire library and using vw_setup(2000) caused the readings from humidity sensor to fail (dht11 start condition 1 not met). I looked at datasheet and changed a the times how the MCU starts to talk with the sensor.<br />
<br />
The code is based from this <a href="http://sheepdogguides.com/arduino/ar3ne1humDHT11.htm">post</a><br />
<div>
<br /></div>
Here is the the fixed code:<br />
<br />
<div style="background: #202020; background: black; border-width: .1em .1em .1em .8em; border: solid gray; color: white; overflow: auto; padding: .2em .6em; width: auto;">
<pre style="line-height: 125%; margin: 0;"><span style="color: #6ab825; font-weight: bold;">void</span> <span style="color: #447fcf;">InitDHT</span><span style="color: #d0d0d0;">()</span> <span style="color: #d0d0d0;">{</span>
<span style="color: #d0d0d0;">pinMode(TEMP_RH_PIN,</span> <span style="color: #d0d0d0;">OUTPUT);</span>
<span style="color: #d0d0d0;">delay(</span><span style="color: #3677a9;">1000</span><span style="color: #d0d0d0;">);</span>
<span style="color: #d0d0d0;">digitalWrite(TEMP_RH_PIN,HIGH);</span>
<span style="color: #d0d0d0;">}</span>
<span style="color: #6ab825; font-weight: bold;">void</span> <span style="color: #447fcf;">ReadDHT</span><span style="color: #d0d0d0;">()</span> <span style="color: #d0d0d0;">{</span>
<span style="color: #d0d0d0;">bGlobalErr=</span><span style="color: #3677a9;">0</span><span style="color: #d0d0d0;">;</span>
<span style="color: #d0d0d0;">byte</span> <span style="color: #d0d0d0;">dht_in;</span>
<span style="color: #d0d0d0;">byte</span> <span style="color: #d0d0d0;">i;</span>
<span style="color: #999999; font-style: italic;">// see datasheet to understand this</span>
<span style="color: #d0d0d0;">pinMode(TEMP_RH_PIN,</span> <span style="color: #d0d0d0;">OUTPUT);</span>
<span style="color: #d0d0d0;">digitalWrite(TEMP_RH_PIN,HIGH);</span>
<span style="color: #d0d0d0;">digitalWrite(TEMP_RH_PIN,LOW);</span>
<span style="color: #d0d0d0;">delay(</span><span style="color: #3677a9;">18</span><span style="color: #d0d0d0;">);</span>
<span style="color: #d0d0d0;">digitalWrite(TEMP_RH_PIN,HIGH);</span>
<span style="color: #d0d0d0;">delayMicroseconds(</span><span style="color: #3677a9;">22</span><span style="color: #d0d0d0;">);</span>
<span style="color: #d0d0d0;">pinMode(TEMP_RH_PIN,INPUT);</span>
<span style="color: #d0d0d0;">delayMicroseconds(</span><span style="color: #3677a9;">5</span><span style="color: #d0d0d0;">);</span>
<span style="color: #d0d0d0;">dht_in=digitalRead(TEMP_RH_PIN);</span>
<span style="color: #6ab825; font-weight: bold;">if</span><span style="color: #d0d0d0;">(dht_in)</span> <span style="color: #d0d0d0;">{</span>
<span style="color: #d0d0d0;">bGlobalErr=</span><span style="color: #3677a9;">1</span><span style="color: #d0d0d0;">;</span>
<span style="color: #d0d0d0;">Serial.println(</span><span style="color: #ed9d13;">"<dht11 start condition 1 not met"</span><span style="color: #d0d0d0;">);</span>
<span style="color: #6ab825; font-weight: bold;">return</span><span style="color: #d0d0d0;">;</span>
<span style="color: #d0d0d0;">}</span>
<span style="color: #d0d0d0;">delayMicroseconds(</span><span style="color: #3677a9;">80</span><span style="color: #d0d0d0;">);</span>
<span style="color: #d0d0d0;">dht_in=digitalRead(TEMP_RH_PIN);</span>
<span style="color: #6ab825; font-weight: bold;">if</span><span style="color: #d0d0d0;">(!dht_in)</span> <span style="color: #d0d0d0;">{</span>
<span style="color: #d0d0d0;">bGlobalErr=</span><span style="color: #3677a9;">2</span><span style="color: #d0d0d0;">;</span>
<span style="color: #d0d0d0;">Serial.println(</span><span style="color: #ed9d13;">"<dht11 start condition 2 not met"</span><span style="color: #d0d0d0;">);</span>
<span style="color: #6ab825; font-weight: bold;">return</span><span style="color: #d0d0d0;">;</span>
<span style="color: #d0d0d0;">}</span>
<span style="color: #d0d0d0;">delayMicroseconds(</span><span style="color: #3677a9;">80</span><span style="color: #d0d0d0;">);</span>
<span style="color: #999999; font-style: italic;">//now ready for data reception... pick up the 5 bytes coming from the sensor</span>
<span style="color: #6ab825; font-weight: bold;">for</span> <span style="color: #d0d0d0;">(i=</span><span style="color: #3677a9;">0</span><span style="color: #d0d0d0;">;</span> <span style="color: #d0d0d0;">i<</span><span style="color: #3677a9;">5</span><span style="color: #d0d0d0;">;</span> <span style="color: #d0d0d0;">i++)</span>
<span style="color: #d0d0d0;">dht_dat[i]</span> <span style="color: #d0d0d0;">=</span> <span style="color: #d0d0d0;">read_dht_dat();</span>
<span style="color: #999999; font-style: italic;">//Next: restore pin to output duties</span>
<span style="color: #d0d0d0;">pinMode(TEMP_RH_PIN,OUTPUT);</span>
<span style="color: #d0d0d0;">digitalWrite(TEMP_RH_PIN,HIGH);</span>
<span style="color: #d0d0d0;">byte</span> <span style="color: #d0d0d0;">dht_check_sum</span> <span style="color: #d0d0d0;">=</span> <span style="color: #d0d0d0;">dht_dat[</span><span style="color: #3677a9;">0</span><span style="color: #d0d0d0;">]+dht_dat[</span><span style="color: #3677a9;">1</span><span style="color: #d0d0d0;">]+dht_dat[</span><span style="color: #3677a9;">2</span><span style="color: #d0d0d0;">]+dht_dat[</span><span style="color: #3677a9;">3</span><span style="color: #d0d0d0;">];</span>
<span style="color: #999999; font-style: italic;">/*Condition in following "if" says "if fifth byte from sensor</span>
<span style="color: #999999; font-style: italic;"> not the same as the sum of the first four..."*/</span>
<span style="color: #6ab825; font-weight: bold;">if</span><span style="color: #d0d0d0;">(dht_dat[</span><span style="color: #3677a9;">4</span><span style="color: #d0d0d0;">]!=</span> <span style="color: #d0d0d0;">dht_check_sum)</span> <span style="color: #d0d0d0;">{</span>
<span style="color: #d0d0d0;">bGlobalErr=</span><span style="color: #3677a9;">3</span><span style="color: #d0d0d0;">;</span>
<span style="color: #d0d0d0;">Serial.println(</span><span style="color: #ed9d13;">"DHT11 checksum error"</span><span style="color: #d0d0d0;">);</span>
<span style="color: #d0d0d0;">}</span>
<span style="color: #d0d0d0;">}</span>
<span style="color: #d0d0d0;">byte</span> <span style="color: #447fcf;">read_dht_dat</span><span style="color: #d0d0d0;">()</span> <span style="color: #d0d0d0;">{</span>
<span style="color: #999999; font-style: italic;">//Collect 8 bits from datastream, return them interpreted</span>
<span style="color: #999999; font-style: italic;">//as a byte. I.e. if 0000.0101 is sent, return decimal 5.</span>
<span style="color: #999999; font-style: italic;">//Code expects the system to have recently entered the</span>
<span style="color: #999999; font-style: italic;">//dataline low condition at the start of every data bit's</span>
<span style="color: #999999; font-style: italic;">//transmission BEFORE this function is called.</span>
<span style="color: #d0d0d0;">byte</span> <span style="color: #d0d0d0;">i</span> <span style="color: #d0d0d0;">=</span> <span style="color: #3677a9;">0</span><span style="color: #d0d0d0;">;</span>
<span style="color: #d0d0d0;">byte</span> <span style="color: #d0d0d0;">result=</span><span style="color: #3677a9;">0</span><span style="color: #d0d0d0;">;</span>
<span style="color: #6ab825; font-weight: bold;">for</span> <span style="color: #d0d0d0;">(i=</span><span style="color: #3677a9;">0</span><span style="color: #d0d0d0;">;</span> <span style="color: #d0d0d0;">i<</span> <span style="color: #3677a9;">8</span><span style="color: #d0d0d0;">;</span> <span style="color: #d0d0d0;">i++)</span> <span style="color: #d0d0d0;">{</span>
<span style="color: #999999; font-style: italic;">//We enter this during the first start bit (low for 50uS) of the byte</span>
<span style="color: #999999; font-style: italic;">//Next: wait until pin goes high</span>
<span style="color: #6ab825; font-weight: bold;">while</span><span style="color: #d0d0d0;">(digitalRead(TEMP_RH_PIN)==LOW);</span>
<span style="color: #d0d0d0;">delayMicroseconds(</span><span style="color: #3677a9;">30</span><span style="color: #d0d0d0;">);</span>
<span style="color: #6ab825; font-weight: bold;">if</span> <span style="color: #d0d0d0;">(digitalRead(TEMP_RH_PIN)==HIGH)</span><span style="color: #999999; font-style: italic;">//Was: if(PINC & _BV(dht_PIN))</span>
<span style="color: #d0d0d0;">result</span> <span style="color: #d0d0d0;">|=(</span><span style="color: #3677a9;">1</span><span style="color: #d0d0d0;"><<(</span><span style="color: #3677a9;">7</span><span style="color: #d0d0d0;">-i));</span>
<span style="color: #6ab825; font-weight: bold;">while</span> <span style="color: #d0d0d0;">(digitalRead(TEMP_RH_PIN)==HIGH);</span>
<span style="color: #999999; font-style: italic;">//Was: while((PINC & _BV(dht_PIN)));</span>
<span style="color: #d0d0d0;">}</span>
<span style="color: #999999; font-style: italic;">//end of "for.."</span>
<span style="color: #6ab825; font-weight: bold;">return</span> <span style="color: #d0d0d0;">result;</span>
<span style="color: #d0d0d0;">}</span></pre>
</div>
one2onehttp://www.blogger.com/profile/13061136952115316435noreply@blogger.com4tag:blogger.com,1999:blog-6952786574880976134.post-19923825845002903642010-10-14T13:15:00.000-07:002011-09-02T13:10:47.326-07:00Arduino code to read lines from serial inputHere is short and useful example to read lines from serial port in Arduino.<br />
<br />
<div style="background: #202020; background: black; border-width: .1em .1em .1em .8em; border: solid gray; color: white; overflow: auto; padding: .2em .6em; width: auto;">
<table><tbody>
<tr><td><pre style="line-height: 125%; margin: 0;"> 1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23</pre>
</td><td><pre style="line-height: 125%; margin: 0;"><span style="color: #6ab825; font-weight: bold;">void</span> <span style="color: #d0d0d0;">setup</span> <span style="color: #d0d0d0;">(){</span>
<span style="color: #d0d0d0;">Serial.begin(</span><span style="color: #3677a9;">9600</span><span style="color: #d0d0d0;">);</span>
<span style="color: #d0d0d0;">Serial.flush();</span>
<span style="color: #d0d0d0;">digitalWrite</span> <span style="color: #d0d0d0;">(</span><span style="color: #3677a9;">13</span><span style="color: #d0d0d0;">,</span> <span style="color: #d0d0d0;">HIGH);</span> <span style="color: #999999; font-style: italic;">//turn on debugging LED</span>
<span style="color: #d0d0d0;">}</span>
<span style="color: #6ab825; font-weight: bold;">void</span> <span style="color: #d0d0d0;">loop</span> <span style="color: #d0d0d0;">(){</span>
<span style="color: #6ab825; font-weight: bold;">int</span> <span style="color: #d0d0d0;">i=</span><span style="color: #3677a9;">0</span><span style="color: #d0d0d0;">;</span>
<span style="color: #6ab825; font-weight: bold;">char</span> <span style="color: #d0d0d0;">commandbuffer[</span><span style="color: #3677a9;">100</span><span style="color: #d0d0d0;">];</span>
<span style="color: #6ab825; font-weight: bold;">if</span><span style="color: #d0d0d0;">(Serial.available()){</span>
<span style="color: #d0d0d0;">delay(</span><span style="color: #3677a9;">100</span><span style="color: #d0d0d0;">);</span>
<span style="color: #6ab825; font-weight: bold;">while</span><span style="color: #d0d0d0;">(</span> <span style="color: #d0d0d0;">Serial.available()</span> <span style="color: #d0d0d0;">&&</span> <span style="color: #d0d0d0;">i<</span> <span style="color: #3677a9;">99</span><span style="color: #d0d0d0;">)</span> <span style="color: #d0d0d0;">{</span>
<span style="color: #d0d0d0;">commandbuffer[i++]</span> <span style="color: #d0d0d0;">=</span> <span style="color: #d0d0d0;">Serial.read();</span>
<span style="color: #d0d0d0;">}</span>
<span style="color: #d0d0d0;">commandbuffer[i++]=</span><span style="color: #ed9d13;">'\0'</span><span style="color: #d0d0d0;">;</span>
<span style="color: #d0d0d0;">}</span>
<span style="color: #6ab825; font-weight: bold;">if</span><span style="color: #d0d0d0;">(i></span><span style="color: #3677a9;">0</span><span style="color: #d0d0d0;">)</span>
<span style="color: #d0d0d0;">Serial.println((</span><span style="color: #6ab825; font-weight: bold;">char</span><span style="color: #d0d0d0;">*)commandbuffer);</span>
<span style="color: #d0d0d0;">}</span></pre>
</td></tr>
</tbody></table>
</div>
one2onehttp://www.blogger.com/profile/13061136952115316435noreply@blogger.com2tag:blogger.com,1999:blog-6952786574880976134.post-18506487339373627662010-10-09T04:35:00.000-07:002011-09-02T13:12:15.677-07:00python euromillion key generator with filters<div>
<div>
From python, perl and ruby i selected python to start playing around (learn the language). I started with this nice tutorial "L<a href="http://www.korokithakis.net/tutorials/python">earn Python in 10 minutes</a>", and decided to port and old C program that generates all combinations of euromillions and then apply some filters.</div>
<div>
<br /></div>
<div>
The generator is for numbers only, it does not take into account the stars!!!</div>
</div>
<div>
<br /></div>
<div>
The solution is composed by two parts, the generator and the evaluator. The generator generates the combinations with the given filter list (e.g, python gnerator.py columns d_tens).</div>
<div>
The evaluator, evaluates the success of the specified filters individually, and can evaluate all filters at same time.</div>
<a href="http://3.bp.blogspot.com/_K1PWou3lLY0/TLBWxKMUu_I/AAAAAAAAACQ/kqL_3EWRgKc/s1600/101009123606.png"><img alt="" border="0" id="BLOGGER_PHOTO_ID_5526012145333222386" src="http://3.bp.blogspot.com/_K1PWou3lLY0/TLBWxKMUu_I/AAAAAAAAACQ/kqL_3EWRgKc/s400/101009123606.png" style="cursor: hand; cursor: pointer; display: block; height: 267px; margin: 0px auto 10px; text-align: center; width: 400px;" /></a><br />
<div>
As example the filter "first_number" rejects combinations with the first number more than 30</div>
<div>
<br /></div>
<div>
<b><i><span class="Apple-style-span" style="font-size: small;"><span class="Apple-style-span">sh avaliator.sh first_number</span></span></i></b></div>
<div>
<div>
<span class="Apple-style-span" style="font-size: small;"><span class="Apple-style-span">################# first_numbers #####################</span></span></div>
<div>
<span class="Apple-style-span" style="font-size: small;"><span class="Apple-style-span">Running...</span></span></div>
<div>
<span class="Apple-style-span" style="font-size: small;"><span class="Apple-style-span">2044588 results 74172 rejected</span></span></div>
<div>
<span class="Apple-style-span" style="font-size: small;"><span class="Apple-style-span">~96.56160458452722063037%</span></span></div>
<div>
<span class="Apple-style-span" style="font-size: small;"><span class="Apple-style-span">###############################################</span></span></div>
</div>
<div>
<br /></div>
<div>
the report says that 15504 combinations was rejected and 97% of euromilions results are in the generated combinations file</div>
<div>
<br /></div>
<div>
<br /></div>
<div>
However combining all filters (16 for now, and individually with 90% success), the success rate drops to 70% !!.</div>
<div>
<br /></div>
<div>
<div>
<span class="Apple-style-span" style="font-size: small;"><span class="Apple-style-span">################# ALL #####################</span></span></div>
<div>
<span class="Apple-style-span" style="font-size: small;"><span class="Apple-style-span">Running...</span></span></div>
<div>
<span class="Apple-style-span" style="font-size: small;"><span class="Apple-style-span">1516959 results 601801 rejected</span></span></div>
<div>
<span class="Apple-style-span" style="font-size: small;"><span class="Apple-style-span">~70.77363896848137535817%</span></span></div>
<div>
<span class="Apple-style-span" style="font-size: small;"><span class="Apple-style-span">##########################################</span></span></div>
</div>
<div>
<br /></div>
<div>
Download <a href="http://one2one.no.sapo.pt/euroPython-1286627489.tar.gz">here</a></div>
<div>
<br /></div>
one2onehttp://www.blogger.com/profile/13061136952115316435noreply@blogger.com0tag:blogger.com,1999:blog-6952786574880976134.post-77201087105685586842010-02-08T10:46:00.000-08:002010-02-08T11:00:43.535-08:00How to change openfire password or how to login in openfire<a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://4.bp.blogspot.com/_K1PWou3lLY0/S3BfU4V-vhI/AAAAAAAAACA/m3ax717ml5k/s1600-h/localhost+-+localhost+-+openfire+-+ofUser+%7C+phpMyAdmin+2.11.9.6+-+Chromium_001.png"><img style="cursor:pointer; cursor:hand;width: 400px; height: 220px;" src="http://4.bp.blogspot.com/_K1PWou3lLY0/S3BfU4V-vhI/AAAAAAAAACA/m3ax717ml5k/s400/localhost+-+localhost+-+openfire+-+ofUser+%7C+phpMyAdmin+2.11.9.6+-+Chromium_001.png" border="0" alt="" id="BLOGGER_PHOTO_ID_5435949562562788882" /></a><br /><a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://4.bp.blogspot.com/_K1PWou3lLY0/S3BfQQ2cFNI/AAAAAAAAAB4/sakWkYyH3oI/s1600-h/localhost+-+localhost+-+openfire+-+ofUser+%7C+phpMyAdmin+2.11.9.6+-+Chromium_002.png"><img style="cursor:pointer; cursor:hand;width: 400px; height: 220px;" src="http://4.bp.blogspot.com/_K1PWou3lLY0/S3BfQQ2cFNI/AAAAAAAAAB4/sakWkYyH3oI/s400/localhost+-+localhost+-+openfire+-+ofUser+%7C+phpMyAdmin+2.11.9.6+-+Chromium_002.png" border="0" alt="" id="BLOGGER_PHOTO_ID_5435949483242034386" /></a><br /><a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://3.bp.blogspot.com/_K1PWou3lLY0/S3BfKaNLJXI/AAAAAAAAABw/tgYMZKki9Rw/s1600-h/Openfire+Admin+Console:+Change+Password+-+Chromium_004.png"><img style="cursor:pointer; cursor:hand;width: 400px; height: 220px;" src="http://3.bp.blogspot.com/_K1PWou3lLY0/S3BfKaNLJXI/AAAAAAAAABw/tgYMZKki9Rw/s400/Openfire+Admin+Console:+Change+Password+-+Chromium_004.png" border="0" alt="" id="BLOGGER_PHOTO_ID_5435949382674097522" /></a><br /><div><br /></div><div><br /></div><div><br />Im having some problems with SSL certificates, i reinstalled openfire to see if that would fix.<div>At login, it seems not be working the password i set in setup installation. Theres a way to change the password and resolve the issue of not be able to login.</div><div><br /></div><div>1- Access openfire database</div><div>2- Select table ofUser</div><div>3- Edit admin row</div><div>4- Set encryptedPassword to NULL</div><div>5- Enter a temporary pass on plainPassword</div><div>6- Save and restart openfire server</div><div>7- Use temporary password to login (username is always "admin")</div><div>8- Go to Users and edit admin</div><div>9- Enter a new password</div><div>10- Have fun :) </div><div><br /></div><div><br /></div><div><br /></div></div>one2onehttp://www.blogger.com/profile/13061136952115316435noreply@blogger.com1tag:blogger.com,1999:blog-6952786574880976134.post-2186845561949052582009-12-14T15:06:00.000-08:002009-12-15T06:30:36.488-08:00xfce4 verve plugin as standalone application<a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://1.bp.blogspot.com/_K1PWou3lLY0/SyedfZ2yXPI/AAAAAAAAABY/-NWKEBuQBfo/s1600-h/Workspace+6_001.png"><img style="cursor:pointer; cursor:hand;width: 400px; height: 250px;" src="http://1.bp.blogspot.com/_K1PWou3lLY0/SyedfZ2yXPI/AAAAAAAAABY/-NWKEBuQBfo/s400/Workspace+6_001.png" border="0" alt="" id="BLOGGER_PHOTO_ID_5415470239778495730" /></a><div><a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://1.bp.blogspot.com/_K1PWou3lLY0/SyedfZ2yXPI/AAAAAAAAABY/-NWKEBuQBfo/s1600-h/Workspace+6_001.png"></a><br /><div>I liked very much this plugin, when i tried xfce4 last time, also i liked xfce4, but i didnt like the root menu, so i switched back to fluxbox.</div><div><br /></div><div>This plugin is nice because:</div><div><br /></div><div>- application launcher</div><div>- url, ftp and file launcher</div><div>- auto complete</div><div>- saves history commands</div><div><br /></div><div>I did some changes on verve-plugin.c (mostly was deleting code, and fixing)</div><div>i didn't bore in putting the code 100% ok, may concern at the time was just to put it working...</div><div>For now i didn't notice any bug or crash :D</div><div><br /></div><div>Download <a href="http://www.one2one.no.sapo.pt/xfce4-verve-plugin-standalone-0.3.6.tar.gz">here</a> </div><div><br /></div><div><br /></div><div><br /></div></div>one2onehttp://www.blogger.com/profile/13061136952115316435noreply@blogger.com0tag:blogger.com,1999:blog-6952786574880976134.post-83323233464093365292009-12-08T04:39:00.001-08:002009-12-26T03:57:10.169-08:00qtfarm farmville autocliker<a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://4.bp.blogspot.com/_K1PWou3lLY0/Sx5Tn8kQm1I/AAAAAAAAABQ/0C0QgUNQLOg/s1600-h/four_001.png"><img style="cursor:pointer; cursor:hand;width: 400px; height: 218px;" src="http://4.bp.blogspot.com/_K1PWou3lLY0/Sx5Tn8kQm1I/AAAAAAAAABQ/0C0QgUNQLOg/s400/four_001.png" border="0" alt="" id="BLOGGER_PHOTO_ID_5412855747884129106" /></a><br /><br /><div><br /></div><div><a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://1.bp.blogspot.com/_K1PWou3lLY0/Sx5JDKMsIDI/AAAAAAAAABA/d7Aea-OxQkI/s1600-h/four_001.png"></a><object width="425" height="344"><param name="movie" value="http://www.youtube.com/v/4pO9zpTnh3E&hl=en&fs=1"><param name="allowFullScreen" value="true"><param name="allowscriptaccess" value="always"><embed src="http://www.youtube.com/v/4pO9zpTnh3E&hl=en&fs=1" type="application/x-shockwave-flash" allowscriptaccess="always" allowfullscreen="true" width="425" height="344"></embed></object><br /><div><br /></div><div>Download <a href="http://one2one.no.sapo.pt/qtfarm.tar.bz2">here</a> (built with QT and needs xdotool package(nix system))</div><div>New version <a href="http://one2one.no.sapo.pt/qtfarm2.tar.bz2">here</a> (uses xlib calls instead xdotool, but sometimes fails on click) </div><div>Bash script, check this <a href="http://linux-utils.blogspot.com/2009/11/farmville-auto-clicker.html">post</a></div><div><br /></div></div>one2onehttp://www.blogger.com/profile/13061136952115316435noreply@blogger.com6tag:blogger.com,1999:blog-6952786574880976134.post-1697685669445123302009-11-29T12:08:00.000-08:002009-12-13T04:54:10.361-08:00Farmville auto-clicker<pre>New GUI <a href="http://linux-utils.blogspot.com/2009/12/qtfarm-farmville-autocliker.html">here</a></pre><pre>Simple autoclicker script, needs xdotool installed</pre><pre><br /></pre><pre><object width="425" height="344"><param name="movie" value="http://www.youtube.com/v/qlhZRD089Nc&hl=en_US&fs=1&"><param name="allowFullScreen" value="true"><param name="allowscriptaccess" value="always"><embed src="http://www.youtube.com/v/qlhZRD089Nc&hl=en_US&fs=1&" type="application/x-shockwave-flash" allowscriptaccess="always" allowfullscreen="true" width="425" height="344"></embed></object></pre><pre><span class="Apple-style-span" style=" white-space: normal; font-family:Georgia, serif;font-size:16px;"><pre style="text-align: left;"><i><span class="Apple-style-span" style="font-style: normal; "><span class="Apple-style-span" style="font-size: medium;">Download </span><a href="http://one2one.no.sapo.pt/farmville_click.sh"><span class="Apple-style-span" style="font-size: medium;">here</span></a></span></i><span class="Apple-style-span" style="font-size: medium;"><br /></span><i><span class="Apple-style-span" style="font-style: normal; "><span class="Apple-style-span" style="font-size: medium;">For default settings (12x12) use:</span></span><span class="Apple-style-span" style="font-size: medium;"> sh farmville_click.sh</span></i><span class="Apple-style-span" style="font-size: medium;"><br /></span><i><span class="Apple-style-span" style="font-style: normal; "><span class="Apple-style-span" style="font-size: medium;">Or custom mode:</span></span><span class="Apple-style-span" style="font-size: medium;"> sh </span></i><i><span class="Apple-style-span" style="font-size: medium;">farmville_click.sh</span></i><i><span class="Apple-style-span" style="font-size: medium;"> num_rows num_columns click_interval_time wait_interval_before_pointing</span></i></pre></span></pre><pre><span class="Apple-style-span" style="font-size: medium;">If give this error(Synt</span>ax error: Bad for loop variable), use bash (bash farmville_click.sh)</pre><pre><object width="425" height="344"><param name="movie" value="http://www.youtube.com/v/F8BI8Ze6x7Y&hl=en_US&fs=1&"><param name="allowFullScreen" value="true"><param name="allowscriptaccess" value="always"><embed src="http://www.youtube.com/v/F8BI8Ze6x7Y&hl=en_US&fs=1&" type="application/x-shockwave-flash" allowscriptaccess="always" allowfullscreen="true" width="425" height="344"></embed></object></pre><pre>Download old script <a href="http://one2one.no.sapo.pt/farmville_click_old.sh">here</a> (bash script for *nix based)</pre><pre><span class="Apple-style-span" style="color:#888786;"><i><br /></i></span></pre>one2onehttp://www.blogger.com/profile/13061136952115316435noreply@blogger.com47tag:blogger.com,1999:blog-6952786574880976134.post-82116245159440917062009-09-06T04:07:00.000-07:002009-09-06T04:12:48.188-07:00Bash Prompts<a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://img401.imageshack.us/img401/9085/090906121215.png"><img style="cursor:pointer; cursor:hand;width: 591px; height: 242px;" src="http://img401.imageshack.us/img401/9085/090906121215.png" border="0" alt="" /></a><br />Nice article about Bash Prompts <a href="http://maketecheasier.com/8-useful-and-interesting-bash-prompts/2009/09/04">here</a>.<br />Have fun :)one2onehttp://www.blogger.com/profile/13061136952115316435noreply@blogger.com0tag:blogger.com,1999:blog-6952786574880976134.post-84352549430004552492009-07-23T11:23:00.000-07:002009-07-23T12:06:15.453-07:00Latest google chrome build for linux<a href="http://build.chromium.org/buildbot/snapshots/chromium-rel-linux/"><br />http://build.chromium.org/buildbot/snapshots/chromium-rel-linux/</a><br /><br /><br /><a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://4.bp.blogspot.com/_K1PWou3lLY0/SmirMdM8FyI/AAAAAAAAAAw/5umrlh4x180/s1600-h/090723192625.png"><img style="cursor: pointer; width: 400px; height: 248px;" src="http://4.bp.blogspot.com/_K1PWou3lLY0/SmirMdM8FyI/AAAAAAAAAAw/5umrlh4x180/s400/090723192625.png" alt="" id="BLOGGER_PHOTO_ID_5361723586870253346" border="0" /></a><br /><span style="font-size:100%;">Browse to the end of list and download last one.<br /><br />Using any file manager or command line, extract chrome folder and make an link to /usr/bin or /usr/local/bin.<br /><br /></span><span style="font-style: italic; color: rgb(0, 0, 153);font-size:100%;" ># </span><span style="font-style: italic; color: rgb(0, 0, 153);font-size:100%;" >unzip chrome-linux.zip</span><br /><span style="font-style: italic; color: rgb(0, 0, 153);font-size:100%;" ># su<br /># mkdir -p /opt/google<br /></span> <span style="font-style: italic; color: rgb(0, 0, 153);font-size:100%;" ># mv </span><span style="font-style: italic; color: rgb(0, 0, 153);font-size:100%;" >chrome-linux </span><span style="font-style: italic; color: rgb(0, 0, 153);font-size:100%;" >/opt/google/</span><br /><span style="font-style: italic; color: rgb(0, 0, 153);font-size:100%;" ># ln -s /opt/google/chrome-linux/chrome /usr/bin/</span><span style="font-style: italic; color: rgb(0, 0, 153);font-size:100%;" ><br /># exit<br /></span><span style="font-style: italic; color: rgb(0, 0, 153);font-size:100%;" ># chrome</span><br /><br /><br /><a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://2.bp.blogspot.com/_K1PWou3lLY0/SmizSAMDiuI/AAAAAAAAAA4/o7i0nZaVvN8/s1600-h/090723195958.png"><img style="cursor: pointer; width: 400px; height: 316px;" src="http://2.bp.blogspot.com/_K1PWou3lLY0/SmizSAMDiuI/AAAAAAAAAA4/o7i0nZaVvN8/s800/090723195958.png" alt="" id="BLOGGER_PHOTO_ID_5361732478254156514" border="0" /></a><br /><br />Starts very fast and has a nice aspect, but they still working on it to release an stable version. keep in touch.one2onehttp://www.blogger.com/profile/13061136952115316435noreply@blogger.com0tag:blogger.com,1999:blog-6952786574880976134.post-29954664095960640952009-07-23T11:11:00.001-07:002009-07-23T11:21:07.613-07:00My conky configuration<div style="text-align: center;"><a style="" onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://1.bp.blogspot.com/_K1PWou3lLY0/Smin9rHEPUI/AAAAAAAAAAo/yOY8HiNGrJc/s1600-h/090723191012.png"><img style="margin: 0pt 0pt 0px 0px; cursor: pointer;" src="http://1.bp.blogspot.com/_K1PWou3lLY0/Smin9rHEPUI/AAAAAAAAAAo/yOY8HiNGrJc/s800/090723191012.png" alt="" id="BLOGGER_PHOTO_ID_5361720034370796866" border="0" /></a><br /></div><div style="text-align: center;"><br /></div><div style="text-align: center;">Download <a href="http://one2one.no.sapo.pt/conkyrc">here</a></div>one2onehttp://www.blogger.com/profile/13061136952115316435noreply@blogger.com0tag:blogger.com,1999:blog-6952786574880976134.post-15286702771355622022009-07-22T03:56:00.000-07:002009-07-23T07:16:10.764-07:00More simple bash scriptsScript for<span style="font-weight: bold;"> start X</span> session <span style="font-weight: bold;">automatically</span>, after making <span style="font-weight: bold;">login</span> ( without using any login manager)<br /><pre><span style="font-style: italic; color: rgb(128, 128, 128);">#!/bin/bash</span><br /><span style="font-weight: bold; color: rgb(0, 0, 0);">if</span><span style="color: rgb(0, 0, 0);"> </span><span style="font-weight: bold; color: rgb(0, 0, 0);">((</span><span style="color: rgb(0, 128, 0);">$(</span><span style="font-weight: bold; color: rgb(204, 0, 204);">ps</span><span style="color: rgb(0, 0, 0);"> -A </span><span style="font-weight: bold; color: rgb(0, 0, 0);">|</span><span style="color: rgb(0, 0, 0);"> </span><span style="font-weight: bold; color: rgb(204, 0, 204);">grep</span><span style="color: rgb(0, 0, 0);"> -c X</span><span style="color: rgb(0, 128, 0);">)</span><span style="color: rgb(0, 0, 0);"> > 0</span><span style="font-weight: bold; color: rgb(0, 0, 0);">))</span><span style="color: rgb(0, 0, 0);">;</span><br /><span style="font-weight: bold; color: rgb(0, 0, 0);">then</span><br /><span style="color: rgb(0, 0, 0);"> </span><span style="font-weight: bold; color: rgb(136, 0, 136);">echo</span><span style="color: rgb(0, 0, 0);"> starting X....;</span><span style="color: rgb(0, 0, 0);">startx;</span><br /><span style="font-weight: bold; color: rgb(0, 0, 0);">fi</span><br /><br /></pre>Script for<span style="font-weight: bold;"> unzip multiple files</span>. Replacing "zip" extension name and "unzip" command on script, we can change to open other files as well.<br /><pre><span style="font-style: italic; color: rgb(128, 128, 128);">#!/bin/bash</span><br /><span style="font-weight: bold; color: rgb(0, 0, 0);">for</span><span style="color: rgb(0, 0, 0);"> </span><span style="font-weight: bold; color: rgb(204, 0, 204);">file</span><span style="color: rgb(0, 0, 0);"> </span><span style="font-weight: bold; color: rgb(0, 0, 0);">in</span><span style="color: rgb(0, 0, 0);"> *</span><span style="font-weight: bold; color: rgb(204, 0, 204);">zip</span><br /><span style="color: rgb(0, 0, 0);"> </span><span style="font-weight: bold; color: rgb(0, 0, 0);">do</span><br /><span style="color: rgb(0, 0, 0);"> </span><span style="font-weight: bold; color: rgb(204, 0, 204);">unzip</span><span style="color: rgb(0, 0, 0);"> </span><span style="color: rgb(221, 0, 0);">"</span><span style="color: rgb(0, 128, 0);">$file</span><span style="color: rgb(221, 0, 0);">"</span><br /><span style="font-weight: bold; color: rgb(0, 0, 0);">done</span><br /><br /></pre>Script to<span style="font-weight: bold;"> get links</span> from an <span style="font-weight: bold;">list</span> every X <span style="font-weight: bold;">time</span>, for example, usefull to automatically open download links like rapidshare, netload, megaupload,...<br />Changing time and application, it can be useful to do lots of things =)<br /><pre><span style="font-style: italic; color: rgb(128, 128, 128);">#!/bin/bash</span><br /><span style="color: rgb(0, 128, 0);">waitTime=</span><span style="color: rgb(0, 0, 0);">3600</span><br /><span style="color: rgb(0, 128, 0);">app=</span><span style="color: rgb(221, 0, 0);">"/usr/bin/firefox"</span><br /><br /><span style="font-weight: bold; color: rgb(204, 0, 204);">cat</span><span style="color: rgb(0, 0, 0);"> </span><span style="color: rgb(0, 128, 0);">$1</span><span style="color: rgb(0, 0, 0);"> </span><span style="font-weight: bold; color: rgb(0, 0, 0);">|</span><span style="color: rgb(0, 0, 0);"> </span><span style="font-weight: bold; color: rgb(0, 0, 0);">while</span><span style="color: rgb(0, 0, 0);"> </span><span style="color: rgb(0, 128, 0);">myLine=</span><span style="font-weight: bold; color: rgb(0, 0, 0);">`</span><span style="color: rgb(0, 0, 0);">line</span><span style="font-weight: bold; color: rgb(0, 0, 0);">`</span><br /><span style="font-weight: bold; color: rgb(0, 0, 0);">do</span><br /><span style="color: rgb(0, 0, 0);"> </span><span style="font-weight: bold; color: rgb(136, 0, 136);">echo</span><span style="color: rgb(0, 0, 0);"> </span><span style="color: rgb(221, 0, 0);">"Requesting"</span><span style="color: rgb(0, 0, 0);"> </span><span style="color: rgb(0, 128, 0);">$myLine</span><br /><span style="color: rgb(0, 0, 0);"> </span><span style="color: rgb(0, 128, 0);">$app</span><span style="color: rgb(0, 0, 0);"> </span><span style="color: rgb(0, 128, 0);">$myLine</span><span style="color: rgb(0, 0, 0);">;</span><br /><span style="color: rgb(0, 0, 0);"> </span><span style="font-weight: bold; color: rgb(204, 0, 204);">sleep</span><span style="color: rgb(0, 0, 0);"> </span><span style="color: rgb(0, 128, 0);">$waitTime</span><span style="color: rgb(0, 0, 0);"> </span><span style="font-weight: bold; color: rgb(0, 0, 0);">&&</span><span style="color: rgb(0, 0, 0);"> </span><span style="font-weight: bold; color: rgb(136, 0, 136);">echo</span><span style="color: rgb(0, 0, 0);"> </span><span style="color: rgb(221, 0, 0);">""</span><br /><span style="font-weight: bold; color: rgb(0, 0, 0);">done</span><br /></pre><br /><span style="font-size:130%;"><span style="font-weight: bold;">Some usefull commands</span></span><br /><pre><span style="font-size:130%;"><span style="font-weight: bold;">Play random mp3</span></span><br /><span style="font-weight: bold; color: rgb(204, 0, 204);">slocate</span><span style="color: rgb(0, 0, 0);"> *.mp3 </span><span style="font-weight: bold; color: rgb(0, 0, 0);">|</span><span style="color: rgb(0, 0, 0);"> </span><span style="color: rgb(0, 0, 0);">mpg321 -@ - -z<br /><br /></span><span style="font-size:130%;"><span style="font-weight: bold;">Play random mp3 from specific folder</span></span><br /><span style="font-weight: bold; color: rgb(204, 0, 204);">slocate</span><span style="color: rgb(0, 0, 0);"> *.mp3 </span><span style="font-weight: bold; color: rgb(0, 0, 0);">|</span><span style="color: rgb(0, 0, 0);"> </span><span style="font-weight: bold; color: rgb(204, 0, 204);">grep</span><span style="color: rgb(0, 0, 0);"> /home/user/files/mp3/new/ </span><span style="font-weight: bold; color: rgb(0, 0, 0);">|</span><span style="color: rgb(0, 0, 0);"> mpg321 -@ - -z</span><br /><span style="font-size:130%;"><span style="font-weight: bold;"><br />Download links from an text file list<br /></span></span><span style="font-weight: bold; color: rgb(204, 0, 204);">wget</span><span style="color: rgb(0, 0, 0);"> -i file.txt<br /><br /></span><span style="font-size:130%;"><span style="font-weight: bold;">Download recursively all page files</span></span><br /><span style="font-weight: bold; color: rgb(204, 0, 204);">wget</span><span style="color: rgb(0, 0, 0);"> -r http://url/folder/<br /></span><span style="color: rgb(0, 0, 0);"><br /></span><span style="font-size:130%;"><span style="font-weight: bold;">Download sequentially files</span></span><br /><span style="color: rgb(0, 0, 0);"><span style="font-weight: bold; color: rgb(204, 0, 204);">curl</span><span style="color: rgb(0, 0, 0);"> -O http://url/img[01-99].png</span><br /></span></pre>one2onehttp://www.blogger.com/profile/13061136952115316435noreply@blogger.com0tag:blogger.com,1999:blog-6952786574880976134.post-2901303640160552172009-07-11T16:32:00.001-07:002009-07-11T16:32:47.355-07:00Mount FTP as filesystem<span style="text-decoration: underline;"><span style="font-weight: bold;"><br /></span></span> <p>CurlFtpFS is a filesystem for accessing FTP hosts based on FUSE and libcurl.</p> <p><span style="text-decoration: underline;"><em>[Install]</em></span></p> <p><strong>localhost ~ #</strong> emerge net-fs/curlftpfs <strong>in gentoo </strong><br /><strong>localhost ~ #</strong> apt-get install curlftpfs <strong>in ubuntu/debian</strong><br /><strong>localhost ~ #</strong> ./configure && make && make install<strong> by the manual way</strong></p> <p><span style="text-decoration: underline;"><em>[Mount]</em></span></p> <p><strong>localhost ~ #</strong> modprobe fuse <strong>if you dont have fuse module loaded</strong><br /><strong>localhost ~ #</strong> curlftpfs ftp://user:pass@site.com /mnt/mountpoint</p> <p><span style="text-decoration: underline;"><em>[Umount]]</em></span></p> <p><strong>localhost ~ #</strong> fusermount -u /mnt/mountpoint</p> <p>Thats it, now you can access with any file explorer like konqueror, nautilus…..we can do almost everything like edit source code</p> <p><span style="text-decoration: underline;"><em>Adding on fstab</em></span><br />curlftpfs#ftp.host.com /mnt/mountpoint fuse rw,uid=500,user,noauto 0 0</p> <p><span style="text-decoration: underline;"><em>or Making alias </em></span><br />alias mHost=’curlftpfs ftp://user:pass@site.com /mnt/mountpoint’</p> <p>More int at <a href="http://curlftpfs.sourceforge.net/">http://curlftpfs.sourceforge.net/</a> </p>one2onehttp://www.blogger.com/profile/13061136952115316435noreply@blogger.com0