If you like to see what can do HTML5 check this site:
http://www.spielzeugz.de/html5/sticky-thing/
Tuesday, August 28, 2012
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.
Check this link for more details http://www.talkandroid.com/guides/developer/android-sdk-install-guide/
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
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
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):
- 2 chickens
- marinade
- potato
- A piece of bacon or podcherevina
- tomatoes
- cucumbers
- bread
- Drinks (juice, water)
- Mate
- disposable tableware
- firewood
- coals
- Rozpalyuvach
- salt
- 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!
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
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
Wednesday, August 22, 2012
How to display a custom dialog in Android application
If you want to display a custom dialog in Android application check this link:
http://www.helloandroid.com/tutorials/how-display-custom-dialog-your-android-application
http://www.helloandroid.com/tutorials/how-display-custom-dialog-your-android-application
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/
Check Saeco Xsmall Plus coffee machine:
http://www.hi-tech.com.ua/kofevarki/saeco_kofevarka/Saeco-Xsmall-plus/
Monday, August 20, 2012
//TODO Check Sade albums
//TODO
Check Sade albums:
ABC Lounge collection
Soldier of Love
The Ultimate Collection (cd1/cd2)
//TODO Check Morcheeba albums
//TODO
Check Morcheeba albums:
ABC Lounge collection
Back To Mine
Big Calm
Blood Like Lemonade
Charango Alternative
Dive Deep
Fragments Of Freedom
Parts Of The Process
//TODO Check Katie Melua albums
//TODO
Check Katie Melua albums (Cool Jazz):
Call Off The Search
The Closest Thing To Crazy
Crawling Up A Hill
The Hous
If You Were A Sailboat
The Katie Melua Collection
Live At The O2 Arena
Nine Million Bicycles
Opernplatz Frankfurt Live
Pictures
Piece By Piece (Special Bonus Edition)
Shy Boy / Have Yourself A Merry Little Christmas
Spider's Web
What A Wonderful World (Duet)
//TODO Check Gregorian albums
//TODO
Check Gregorian albums:
The Best
Master Of Chant Chapter I / II
Sadness Chapetr Part IV
Check Gregorian albums:
The Best
Master Of Chant Chapter I / II
Sadness Chapetr Part IV
//TODO Check Carbon Based Lifeforms albums
//TODO
Check Carbon Based Lifeforms albums:
Hydroponic Garden Goa
Interloper
Irdial
Mixes
The path
TwentyThree
World Of Sleepers
Push The Button
Check Carbon Based Lifeforms albums:
Hydroponic Garden Goa
Interloper
Irdial
Mixes
The path
TwentyThree
World Of Sleepers
Push The Button
//TODO Check Portishead albums
//TODO
Check Portishead albums:
All Mine
Dummy
Glory Time
Machine Gun
Numb
Roseland NYC Live
Third
Check Portishead albums:
All Mine
Dummy
Glory Time
Machine Gun
Numb
Roseland NYC Live
Third
Android: How to Install Apps using ADB
If you want to install your *.apk of Android application in other way then through IDE as Eclipse use your Terminal and execute command:
adb install path_to_your_application.apk
http://androidcommunity.com/forums/f4/how-to-install-apps-using-adb-4482/
adb install path_to_your_application.apk
http://androidcommunity.com/forums/f4/how-to-install-apps-using-adb-4482/
Head First IT Books Must Read
Head First Design Patterns
http://shop.oreilly.com/product/9780596007126.do
http://shop.oreilly.com/product/9780596008673.do
http://shop.oreilly.com/product/9780596007126.do
Head First Object-Oriented Analysis and Design
A Brain Friendly Guide to OOA&D
http://shop.oreilly.com/product/9780596008673.do
Continuous Integration for Android
If you think about Continuous Integration for Android consider these tools:
http://teamcity.jetbrains.com/
http://habrahabr.ru/post/138821/
http://jenkins-ci.org
http://teamcity.jetbrains.com/
http://habrahabr.ru/post/138821/
http://jenkins-ci.org
Friday, August 17, 2012
Using Subclipse (the Subversion Plug-in for Eclipse) for Configuration Management DOC
Here is the link to the documentation about Subclipse: Using Subclipse (the Subversion Plug-in for Eclipse) for Configuration Management DOC
How to SVN checkout a single file. Use of SVN export command.
Use svn export it instead of svn checkout if you need to checkout just a single file.
"The reason for the limitation is that checkout creates a working copy, that contains meta-information about repository, revision, attributes, etc. That metadata is stored in subdirectories named '.svn'. And single files don't have subdirectories".
Wednesday, August 15, 2012
GCM : java.lang.noclassdeffounderror: com.google.android.gcm.GCMRegistrar
If you've got this exception it means you need to COPY (command + C) gcm.jar into the libs folder of your project. Then do right click on this jar and add it to the build path. That's it.
For more explanation refer to this link.
For more explanation refer to this link.
Tuesday, August 14, 2012
Maven (mvn) Exception in thread "main" java. lang. NoClassDefFoundError
It could happen when you try to run mvn or if will just check its version it will give you this kind of error (Exception):
MBPro-2:~ apple$ mvn -version
Exception in thread "main" java.lang.NoClassDefFoundError: org/codehaus/plexus/classworlds/launcher/Launcher
Caused by: java.lang.ClassNotFoundException: org.codehaus.plexus.classworlds.launcher.Launcher
at java.net.URLClassLoader$1.run(URLClassLoader.java:202)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:190)
at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301)
at java.lang.ClassLoader.loadClass(ClassLoader.java:247)
In this case you need just fix symlink to the right version of Maven on your Mac OSX: carefully read and follow all instructions of this article.
MBPro-2:~ apple$ mvn -version
Exception in thread "main" java.lang.NoClassDefFoundError: org/codehaus/plexus/classworlds/launcher/Launcher
Caused by: java.lang.ClassNotFoundException: org.codehaus.plexus.classworlds.launcher.Launcher
at java.net.URLClassLoader$1.run(URLClassLoader.java:202)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:190)
at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301)
at java.lang.ClassLoader.loadClass(ClassLoader.java:247)
In this case you need just fix symlink to the right version of Maven on your Mac OSX: carefully read and follow all instructions of this article.
How to draw 9-patch PNGs (Android Theming)
First of all launch the
Then follow the official Android description on http://developer.android.com/tools/help/draw9patch.html.
Or watch this tutorial on YouTube: How to easily create 9 patch PNGs (Android Theming)
draw9patch
application from your SDK /tools
directory in your Terminal.Then follow the official Android description on http://developer.android.com/tools/help/draw9patch.html.
Or watch this tutorial on YouTube: How to easily create 9 patch PNGs (Android Theming)
Monday, August 13, 2012
Theming the ActionBarSherlock in Android
If you want to customize your ActionBarSherlock follow this steps:
1. Create in values folder a new file style.xml
2. In style.xml file determine your styles you want for ActionBarSherlock e.g. :
<?xml version="1.0" encoding="UTF-8"?>
<resources xmlns:android="http://schemas.android.com/apk/res/android">
<style name="Theme.Styled" parent="Theme.Sherlock.Light.DarkActionBar">
<item name="actionBarStyle">@style/Widget.Styled.ActionBar</item>
<item name="android:actionBarStyle">@style/Widget.Styled.ActionBar</item>
</style>
<style name="Widget.Styled.ActionBar" parent="Widget.Sherlock.Light.ActionBar.Solid.Inverse">
<item name="background">@drawable/bgraund</item>
<!-- <item name="android:background">@drawable/top_bar</item> -->
<item name="backgroundSplit">@drawable/bgraund</item>
<item name="android:background">@drawable/bgraund</item>
</style>
</resources>
3. In your AndroidManifest.xml determine this your custom style that you just created in style.xml:
<application android:icon="@drawable/adsurfer_icon"
android:label="@string/app_name"
android:debuggable="true"
android:name=".app.AdsurferApplication"
android:theme="@style/Theme.Styled" >
I've found helpful info on this topic in this article:
Android requires compiler compliance level 5.0 or 6.0. Found '1.7' instead. Please use Android Tools > Fix Project Properties
In order to fix this error:
1. Go to the Properties for your project (double click on your project), then find out Adroid Tools/Project Properties (see screenshot)
1. Go to the Properties for your project (double click on your project), then find out Adroid Tools/Project Properties (see screenshot)
2. Then change Compile Compiance level to the higher level e.g 1.5 or 1.6 (That is it :) )
Saturday, August 11, 2012
What is better Youtube or Vimeo
As I've understood from this article http://webtrends.about.com/od/profiles/a/Vimeo-Vs-Youtube-Video-Sharing-Sites.htm Youtube is still convenient for majority of my needs :) But if I have to publish some creative movie/clip I would prefer Vimeo.
How to open a file in command line on Mac OSX Terminal application
If you want to open some file/application do this in Terminal cli:
MBPro-2:tools apple$ open android
where "open" is the command in command line
and "android" is some application (in this case I use android application from Android SDK/tool)
For full reference of command for Terminal in Mac OSX see check this link.
MBPro-2:tools apple$ open android
where "open" is the command in command line
and "android" is some application (in this case I use android application from Android SDK/tool)
For full reference of command for Terminal in Mac OSX see check this link.
How to change the icon of application on Android
If you have to change the icon of your application for Android mobile phone do this:
Edit AndroidManifest.xml file:
Edit AndroidManifest.xml file:
<application android:icon="@drawable/ic_launcher" android:label="@string/app_name"
In this example "ic_launcher" is the name of the image of your icon (don't add here its extension e.g. ".png").
Thursday, August 9, 2012
How to Stop Jenkins on Mac OSX localhost
If you need to stop Jenkins on your Mac OSX do execute this command in your Terminal:
sudo launchctl unload /Library/LaunchDaemons/org.jenkins-ci.plist
If in case you want to again have your jenkins started.. just use the reverse of the above
sudo launchctl unload /Library/LaunchDaemons/org.jenkins-ci.plist
If in case you want to again have your jenkins started.. just use the reverse of the above
sudo launchctl load /Library/LaunchDaemons/org.jenkins-ci.plist
See more references on this topic here.
Subscribe to:
Posts (Atom)