Friday, May 03, 2013

BTSYNC ON ANDROID (ARMEL)

*WARNING* It may damage your property, doing under your responsibility.

Prepare:
  1. Using android phone (armel cpu, it means a bit old android).
  2. Rooted.
  3. Installed busybox and terminal app.
  4. mkdir chroot-btsync in sdcard dir at armel android.
  5. Download btsync armel pack; here
  6. Make run script; here
  7. Set up by URL http://localhost:8888 on your android.
If you anxious, please check MD5 hash of btsync binary and exchange libs from debian squeeze 2.6.36. Yet I did not sync any file, just see ps and see setting page on browser.
If you like it, please make dropbox account; here 

Thanks to Mr.Mathew
Feel free to ask questions at any time, please.

Sunday, March 18, 2012

Archlinux Burn CD,DVD by Ultra bay

cdrecord -v dev=/dev/sr0 foo.iso

wodim, cdrecord -checkdrive, -scanbus ain't work. It was tested on Archlinux X61 + Ultra bay.
Feel free to ask questions at any time, please.

Sunday, February 12, 2012

Sync gmail, contacts and calendar with Thunderbird and Evolution

There is solution for to sync gmail, contacts and calendar with Thunderbird and Evolution. But why need install that pims. We use browser already.同期にもcloud!

some solutions
gmail -> offlineimap -> dovecot -> Thunderbird
gmail -> offlineimap -> Evolution
easy solution
chromium + cloud magic
make account at cloud magic.
add extension to chromium.

Feel free to ask questions at any time, please.

Friday, February 10, 2012

Gmail + offlineimap + Mutt + MSMTP

I felt strange, when I knew off line imap. It is same like a pop3.
But not.オフラインimapを聞いたとき、pop3と何が違うのと思ったけど、全然違うわ

install software

debian kind.
  aptitude install offlineimap mutt msmtp
archlinux.
  pacman -S offlineimap mutt msmtp
config offlineimap
--.offlineimaprc--

This configure will not sync All Mail and Bin folders.
config mutt
--.muttrc--

config msmtp
--.msmtprc--

using

offlineimap
It will take long, also first run will not make ~/.mutt/mailboxes or need to wait until sync finish. anyway run offlineimap 2 times then,
mutt
Good luck. If you want to run offlineimap by cron, see here.
Feel free to ask questions at any time, please.

Sunday, February 05, 2012

How to add google AdSense in posterous by dropbox

We can not inject JavaScript to Posterous. So looks no way to add AdSence in it.ドロップボックスを使ってポステラスにアドセンス

The main idea is to use an iFrame to render AdSense in posterous page.
1. Get Free Dropbox account. Here making drpobox account link(It is free.).
2. Get AdSense code.(this ex. used 468x15 banner)
3. Make your-adsense.html in Dropbox/Public/your-adsense.html
--your-adsense.html content(got at 2)--
<script type="text/javascript">
<!--
google_ad_client = "ca-pub-XXXXXXXXXX";
/* XXXXXXXXXX */
google_ad_slot = "XXXXXXXXXX";
google_ad_width = 468;
google_ad_height = 15;
//-->
</script>
<script src="http://pagead2.googlesyndication.com/pagead/show_ads.js" type="text/javascript">
</script>

4. Go to Dropbox site,go to Public folder and Right click your-adsense.html. Select Copy public link. It looks like below.
http://dl.dropbox.com/u/XXXXXX/your-adsense.html
5. Go to Posterous, login > click Spaces > click gear mark(your posterous blog title setting) > select Space Settings > click Cutomize > click Advanced > click Expand.
Edit posterous code.
--I add AdSense before post body.--
 </header>
            <div class="body">
                <iframe src="http://dl.dropbox.com/u/XXXXXX/your-adsense.html" frameborder="0" style="border:none; width:534px; height:38px;" scrolling="no"></iframe>
              <div class="inner">
                {Body}
then click Save,I'm done!
*Sometime it wont effect to code. edit and need waiting then save it. and also AdSense needs time to show it.
Feel free to ask questions at any time, please.