Friday, August 24, 2012

How to install Android SDK in Eclipse on Mac

1. Go to the Top menu and chose Help / Install New Software... you will see something like this:


2. As you can see you have to enter Name for the plugin (e.g. Android plugin) and the URL where it is located https://dl-ssl.google.com/android/eclipse

3. Press OK. (If you will do it for the first time you will be able to click OK).

4. Then just follow the instruction of plugin installation process.


How to implement the volume control of your Android application with the device volume controls

If you want to control your application volume on Android with the device volume controls (keys, buttons, etc) just put this line of code to onCreate method in your class that extends Activity:

setVolumeControlStream(AudioManager.STREAM_MUSIC);

Read more about this feature on this link http://stackoverflow.com/a/674207

Free Cloud Databases

If you're looking for a Free database on Cloud 
consider these options:

XEROUND
Up to 10MB at no charge. Best suited for small web apps and development or staging purposes.http://xeround.com/mysql-cloud-db-overview/pricing/

Amazon SimpleDB
It could be useful for very basic use cases
http://aws.amazon.com/simpledb/

Google AppEngine Data Store
https://developers.google.com/appengine/docs/quotas?hl=ru#Datastore

Cleardb
Price: FREE. DB Size: up to 5MB. Connections: 10. I/O Performance: Low. Daily backups.
Great for getting started and developing your apps.
Database.com

CouchDB
NoSQL, it's FREE
Read this article: Why Large Hadron Collider Scientists are Using CouchDB.

Microsoft SQL Azure Database
FREE???
http://www.windowsazure.com/en-us/

Thursday, August 23, 2012

//TODO Check list for a picnic


//TODO
Check list for a picnic (This is what actually a person should take for a picnic in Ukraine LOL):

  1. 2 chickens
  2. marinade
  3. potato
  4. A piece of bacon or podcherevina
  5. tomatoes
  6. cucumbers
  7. bread
  8. Drinks (juice, water)
  9. Mate
  10. disposable tableware
  11. firewood
  12. coals
  13. Rozpalyuvach
  14. salt
  15. sauces

How to customize default AdSense ads style in Dynamic view on Blogger

I tried to find some solution of How to customize default AdSense ads style in Dynamic view on Blogger, but it seems that there is still no solution for it. Now you could see it just like on this image below:


Even you could chose the content for these ads between images/text you can't change its style according to colors of your template!

So I will keep going to search for the answers and will update this post when I'll find them. Cheers!

How to insert AdSense advertising in the middle of your post on Blogger

If you want to insert AdSense advertising in the middle of your post on Blogger do this: 

1. Find in your template (you must check Expand Widget Templates in Blogger console) the tag <data:post.body/> and replace it with this snippet of code:


<div expr:id='"aim1" + data:post.id'></div>

<div style="clear:both; margin:10px 0">
<!-- Your AdSense code here -->
</div>

<div expr:id='"aim2" + data:post.id'>
<data:post.body/>
</div>

<script type="text/javascript">
var obj0=document.getElementById("aim1<data:post.id/>");
var obj1=document.getElementById("aim2<data:post.id/>");
var s=obj1.innerHTML;
var r=s.search(/\x3C!-- adsense --\x3E/igm);
if(r>0) 
{obj0.innerHTML=s.substr(0,r);obj1.innerHTML=s.substr(r+16);}
</script>

2. Replace highlighted line with your AdSense code.

For more information read these articles:
http://adsinthemiddle.blogspot.com
http://tips-for-new-bloggers.blogspot.com/2007/05/adsense-code-in-blogger-post-body.html

Tuesday, August 21, 2012

Debug: how to configure on Mac Eclipse Step Filter to only step through Java code that you've written

If you want to configure Eclipse debugging step filter to only step through Java code that you've written do this (on Mac):

1. Open Preferences window in IDE top menu: Eclipse / Preferences
2. Open Step Filtering settings in Preferences window: Java / Debug / Step Filtering
3. Check packages you want to skip during debugging: 

Passwords and Crackers. REPOST

Read this interesting article Why passwords have never been weaker—and crackers have never been stronger. On the image inside of this article you could see PC that costs 12k (!!!)

//TODO Check Saeco Xsmall Plus coffee machine

//TODO
Check Saeco Xsmall Plus coffee machine:

http://www.hi-tech.com.ua/kofevarki/saeco_kofevarka/Saeco-Xsmall-plus/