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.

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:


<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").

For more details refer this link or this link if you want to see how to create your own icon for the app.

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 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

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
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