If you want to protect your Skype account do this:
1. Add to your profile a new unknown for anybody email address.
2. Make it as a primary email address
If you want to know more details read this article:
http://pixus-ru.blogspot.com/2012/11/hack-any-skype-account-in-6-easy-steps.html
Wednesday, November 14, 2012
Thursday, November 1, 2012
Thursday, September 13, 2012
Archives manager for Mac OSX MuCommander application
If you're looking for an application that will allow you manage even the content of an archieves take a look on application MuCommander http://www.mucommander.com
How to change page for debugging in GWT/SmartGWT hosted mode
In order to change plugging in GWT/SmartGWT hosted mode is enough to do small changes in generated URL.
EXAMPLE
If there is a need to show HELP page you have to do this:
FROM THIS http://127.0.0.1:8888/trinity_cust.html?gwt.codesvr=127.0.0.1:9997
TO THIS http://127.0.0.1:8888/help.htm?gwt.codesvr=127.0.0.1:9997
This file is located inside of help folder of ui-branding module: ui-branding... /webapp-... /help
EXAMPLE
If there is a need to show HELP page you have to do this:
FROM THIS http://127.0.0.1:8888/trinity_cust.html?gwt.codesvr=127.0.0.1:9997
TO THIS http://127.0.0.1:8888/help.htm?gwt.codesvr=127.0.0.1:9997
How to navigate in Terminal command line and in VIM on Mac OSX
TERMINAL commands in MAC OSX
Ctrl + a (takes you to the beginning of the line)
Ctrl + e (takes you to the end of the line)
Alt or Option + (left arrow) or (right arrow) move back by 1 word (the alternative is Esc + b or Esc + f -- I have to retype Esc + b *each time*)
Ctrl + L Clears the Screen, similar to the clear command
Ctrl + U Clears the line before the cursor position. If you are at the end of the line, clears the entire line.
Ctrl + H Same as backspace
Ctrl + R Let’s you search through previously used commands
Ctrl + C Kill whatever you are running
Ctrl + D Exit the current shell
Ctrl + Z Puts whatever you are running into a suspended background process. fg restores it.
Ctrl + K Clear the line after the cursor
Ctrl + T Swap the last two characters before the cursor
Esc + T Swap the last two words before the cursor
Alt + F Move cursor forward one word on the current line
Alt + B Move cursor backward one word on the current line
Tab Auto-complete files and folder names
VIM commands in MAC OSX
Ctrl + a (takes you to the beginning of the line)
Ctrl + e (takes you to the end of the line)
Alt or Option + (left arrow) or (right arrow) move back by 1 word (the alternative is Esc + b or Esc + f -- I have to retype Esc + b *each time*)
Ctrl + L Clears the Screen, similar to the clear command
Ctrl + U Clears the line before the cursor position. If you are at the end of the line, clears the entire line.
Ctrl + H Same as backspace
Ctrl + R Let’s you search through previously used commands
Ctrl + C Kill whatever you are running
Ctrl + D Exit the current shell
Ctrl + Z Puts whatever you are running into a suspended background process. fg restores it.
Ctrl + K Clear the line after the cursor
Ctrl + T Swap the last two characters before the cursor
Esc + T Swap the last two words before the cursor
Alt + F Move cursor forward one word on the current line
Alt + B Move cursor backward one word on the current line
Tab Auto-complete files and folder names
VIM commands in MAC OSX
ctrl-F | Move forward one screen. |
ctrl-B | Move backward one screen. |
$ | Move cursor to end of line. |
^ | Move cursor to beginning of line. |
:1 | Move to first line of file |
:$ | Move to last line of file |
/ | Search for a character string. |
? | Reverse search for a character string. |
x | Delete the character at the cursor position. |
dd | Delete the current line. |
p | Paste data that was cut with x or dd commands. |
u | Undo. |
Entering Input Mode
a | Add text after the cursor. |
i | Insert text before the cursor. |
R | Replace text starting at the cursor. |
o | Insert a new line after the current one. |
Entering Command Mode
esc | Switch from Input mode to Command mode. |
Exiting or Saving Your File
:w | Write file to disk, without exiting editor. |
ZZ | Save the file and exit. |
:q! | Quit without saving. |
Wednesday, September 12, 2012
UML tools
Take a look at this toll for UML drawing UML Graph:
Java UML tool http://www.umlgraph.org/
Python UML tool http://pypi.python.org/pypi/PyUMLGraph
Java UML tool http://www.umlgraph.org/
Python UML tool http://pypi.python.org/pypi/PyUMLGraph
Write UML as you code
Below is the link of site where you could write your UML as you code.
It is very interesting idea, take a look:
http://www.codeuml.com/
It is very interesting idea, take a look:
http://www.codeuml.com/
Tuesday, September 11, 2012
Thursday, September 6, 2012
Check your laptop LINUX compatibility
If you want to check is it good idea or not to install LINUX on your notebook check this site: www.linlap.com
Example:
Samsung NP530U3B
http://www.linlap.com/wiki/samsung+np530u3b
Example:
Samsung NP530U3B
http://www.linlap.com/wiki/samsung+np530u3b
If you need a headers for your site
On this site http://footage.shutterstock.com you could find a cool video headers for your site.
Check this examples:
Sport: Ping-Pong
http://footage.shutterstock.com/search/ping-pong/
Dogs: Boston Terrier
http://footage.shutterstock.com/search/?query=boston+terrier
Check this examples:
Sport: Ping-Pong
http://footage.shutterstock.com/search/ping-pong/
Dogs: Boston Terrier
http://footage.shutterstock.com/search/?query=boston+terrier
//TODO: read article "Time Density" [RUS]
//TODO
Read this article about Time Density (in russian):
http://habrahabr.ru/post/150811/
+
http://victorpetrov.ru/lev-okun-massa-energiya-otnositelnost.html
Read this article about Time Density (in russian):
http://habrahabr.ru/post/150811/
+
http://victorpetrov.ru/lev-okun-massa-energiya-otnositelnost.html
Tuesday, August 28, 2012
Check HTML5 fun features: sticky thing
If you like to see what can do HTML5 check this site:
http://www.spielzeugz.de/html5/sticky-thing/
http://www.spielzeugz.de/html5/sticky-thing/
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.
Tuesday, July 31, 2012
How to Change MAC address on Mac OSX
If you want to change the MAC address of your Mac do this in Terminal:
1. Check the current MAC address of your Mac:
ifconfig en0 |grep ether
2. Generate new random MAC address:
openssl rand -hex 6 | sed 's/\(..\)/\1:/g; s/.$//'
3. Change MAC address of your Mac:
sudo ifconfig en0 ether d4:33:a3:ed:f2:12 (it is just example)
4. Check the changes:
ifconfig en0 |grep ether
1. Check the current MAC address of your Mac:
ifconfig en0 |grep ether
2. Generate new random MAC address:
openssl rand -hex 6 | sed 's/\(..\)/\1:/g; s/.$//'
3. Change MAC address of your Mac:
sudo ifconfig en0 ether d4:33:a3:ed:f2:12 (it is just example)
4. Check the changes:
ifconfig en0 |grep ether
Monday, July 30, 2012
Mac OSX hints resources
Here are the resources of many hints you would to know about your Mac:
macosxhints.com
macworld.com
http://mac.appstorm.net/roundups/utilities-roundups/40-super-secret-os-x-lion-features-and-shortcuts/
http://computerlearnhow.com/list-of-97-mac-os-x-keyboard-shortcuts
Useful utility CheatSheet: http://itunes.apple.com/us/app/cheatsheet/id529456740?mt=12
Why there is no update for Android 4 for HTC HD
Read the article "HTC: Desire HD to stay on current software, no ICS update" about why there is no update for Android 4 for HTC HD.
Mac OSX Central Update Manager Alternative
There is no Central Update Manager on Mac as it is on Linux. If you want something like that you can use 3rd party application AppFresh as its alternative. It will update 99% of your soft.
Download AppFresh here http://osx.iusethis.com/app/appfresh
Download AppFresh here http://osx.iusethis.com/app/appfresh
Saturday, July 28, 2012
How to Attach Java Source Code in Eclipse
Here is the simple way how to Attach Java Source Code in Eclipse:
WAY 1
WAY 1
1. Go to the page where this source is located (in my case it was not something like src.zip or FILE, but whole FOLDER with everything you need): http://download.java.net/openjdk/jdk6/ This is how this page it looks like http://nekaka.com/d/quyFnl0ynC
2. Download archive with the name "openjdk-6-src-b25-01_may_2012.tar.gz" (as an example).
Or download it directly from this link: http://nekaka.com/d/92tCNq5nhN (I hope it is still there).
3. Again (this is important) when you will unpack this archive you will not find any src.zip, all you need is this very FOLDER with same name openjdk-6-src-b25-01_may_2012.
4. Now this is what you need to do in Eclipse - press the button "Attach Source", here is like it looks like http://cavdar.net/uploads/2008/07/method1.gif and... THIS IS VERY IMPORTANT (this super hint costs many hours) choose EXTERNAL FOLDER (NOT FILE) pointing to the unpacked folder with the source code openjdk-6-src-b25-01_may_2012.
5. Press OK and that's it. Once again: don't look for the magic file SRC.ZIP
WAY 2
1. Do everything as it is in WAY 1, but instead of selecting openjdk-6-src-b25-01_may_2012 folder do select sources from Android SDK folder:
LINKS:
Downloading the Source Tree on source.android.com
Friday, July 27, 2012
Mac OS X Internals: A Systems Approach
If you want to know more about Mac OS X buy this book "Mac OS X Internals: A Systems Approach".
You must have it!
http://www.amazon.com/Mac-OS-Internals-Systems-Approach/dp/0321278542
You must have it!
http://www.amazon.com/Mac-OS-Internals-Systems-Approach/dp/0321278542
Wednesday, July 11, 2012
Java Collection Set to Array
If you want to change your Set implementation to Array this is the way you can make it:
Set<String> set = new HashSet<String>();
String[] array = set.toArray(new String[set.size()]);
String[] array = set.toArray(new String[set.size()]);
Tuesday, May 1, 2012
Android: How to refer to the current activity inside of a listener.
Instead of this use YourActivityName.this where YourActivityName is the class name of your Activity subclass.
Explanation: You are creating an anonymous inner class when you use this part of your code: "new OnClickListener() {". Anonymous inner classes have a reference to the instance of the class they are created in. It looks like you are creating it inside an Activity subclass because findViewById is an Activity method. Activity's are a Context, so all you need to do is use the reference to it that you have automatically.
Refer to this link for more explanation.
Thursday, April 19, 2012
How to run GWT test with Maven
If you want to run just one test do this:
1. Go to the module where your tests live. In my case it is here:
MBPro-2:ui-common apple$ pwd
/Users/apple/Documents/workspace/svn/TRT-1##9/t0-mvn/ui-common
MBPro-2:ui-common apple$
2. Then run the test
mvn -Dtest=HostlistExprTestGWT test
HostlistExprTestGWT is the name of the test without its extension.
1. Go to the module where your tests live. In my case it is here:
MBPro-2:ui-common apple$ pwd
/Users/apple/Documents/workspace/svn/TRT-1##9/t0-mvn/ui-common
MBPro-2:ui-common apple$
2. Then run the test
mvn -Dtest=HostlistExprTestGWT test
HostlistExprTestGWT is the name of the test without its extension.
Thursday, March 22, 2012
Java and Python password generators resources
Python password generator code:
SecureRandom sr = new SecureRandom();
#!/usr/bin/python
import random, string
myrg = random.SystemRandom()
length = 10
# If you want non-English characters, remove the [0:52]
alphabet = string.letters[0:52] + string.digits
pw = str().join(myrg.choice(alphabet) for _ in range(length))
print pw
Java password generator resource:
import java.security.SecureRandom;
import com.Ostermiller.util.RandPass;
public class PasswordGenerater {
public static void main(String[] args) {
RandPass rp = new RandPass(sr);
System.out.println(rp.getPass());
}
}
Tuesday, February 28, 2012
How to set new environment variable on Mac
Tuesday, February 21, 2012
Indent tool for the HTML
If you look for a tool that will check indents and etc of your HTML use HTML TIDY
Online version: http://infohound.net/tidy/
In VIM you can use the command gg=G in order to correct your indention.
Online version: http://infohound.net/tidy/
In VIM you can use the command gg=G in order to correct your indention.
Monday, January 30, 2012
Theory of the photo shootting skills
Try this virtual tool to improve your photo shooting skills:
http://www.photorealm.ru/virtualnyj-fotoapparat.html
http://www.photorealm.ru/virtualnyj-fotoapparat.html
Friday, January 27, 2012
Maven Repository site with dependencies for Pom.xml
You could find the dependency you need for your Maven pom.xml on this site:
http://mvnrepository.com
Just enter in search field of Home page the library or jar you need and then you will get the list of links you can choose.
http://mvnrepository.com
Just enter in search field of Home page the library or jar you need and then you will get the list of links you can choose.
Wednesday, January 18, 2012
How to login in Linux with X11 GUI
If you want login in Linux in graphical user interface X11 start to edit the inittab:
sudo vi /etc/inittab
Then change number 3 in this line id:3:init:default: on 5 like this id:5:init:default:
Restart Linux. That's all.
Thursday, January 5, 2012
SVN commands and Subversion Complete Reference Link
Here is the links to Subversion Complete Reference and etc:
The most popular commands of SVN:
svn add
svn blame
svn cat
svn checkout
svn cleanup
svn commit
svn copy
svn delete
svn diff
svn export
svn help
svn import
svn info
svn list
svn log
svn merge
svn mkdir
svn move
svn propdel
svn propedit
svn propget
svn proplist
svn propset
svn resolved
svn revert
svn status
svn switch
svn update
Where to download Linux Gentoo
Use this repository to download Linux Gentoo (don't use x86):
http://gentoo.ussg.indiana.edu//releases/amd64/12.0/
Description:
http://www.gentoo.org/proj/en/pr/releases/12.0/AMD64_package_list.txt
http://gentoo.ussg.indiana.edu//releases/amd64/12.0/
Description:
http://www.gentoo.org/proj/en/pr/releases/12.0/AMD64_package_list.txt
Subscribe to:
Posts (Atom)