[12-12-2012]
1. classic prompt with date and directories set prompt=”\n%B%{\033[34m%}%D.%W.%Y %P\n%{\033[31m%}[%n][%m][%~]> ” 11.12.2012 21:00:00 [michalo][gamma][~]> your shell command goes here 2. color prompt with user, machine, time and direcotry PS1=”\[\033[0;37m\]\342\224\214\342\224\200\$([[ \$? != 0 ]] \ && echo \”[\[\033[0;31m\]\342\234\227\[\033[0;37m\]]\342\224\200\”) \ [$(if [[ ${EUID} == 0 ]]; then echo ‘\[\033[0;31m\]\h’; else echo \ ‘\[\033[0;33m\]\u\[\033[0;37m\]@\[\033[0;96m\]\h’; fi)\[\033[0;37m\]] \ \342\224\200[\[\033[0;32m\]\t\[\033[0;37m\]]\n\[\033[0;37m\]\342\224\224 \ […]
[07-12-2012]
This version brings few bug fixes, mostly related to Snow Leopard and Mountain Lion startup procedure. MuteMyMic is now properly added into Startup Items again. Additionally, there is a fix for Mountain Lion notifications. Notifications should work now correctly in Mountain Lion. You can turn them either on or off.
[02-12-2012]
Summary: Python and games development for kids It’s hard to say how should you teach kids programming. This is not an easy topic. Jason tries to make the subject as simple as possible, but this is really not that easy if you start looking at details. However, Jason makes his best and makes it really […]
[29-11-2012]
If you are getting a lots of Conditional jump or move depends on uninitialised value(s). and you don’t want to track undefined values, pass following parameter to valgrind –undef-value-errors=no
[28-11-2012]
Camtasia 2 for Mac and Cross Over XI + few more apps can be found here. These two apps are worth the price themselves.
[27-11-2012]
In tcsh, if you use “:” after environment variable name, letter after “:” is treated as modifier. Instead of setenv LD_LIBRARY_PATH $LD_LIBRARY_PATH:/here/comes/your/new/path/for/libraries Bad : modifier in $ (/). setenv LD_LIBRARY_PATH $LD_LIBRARY_PATH:$LIB_LOCATION Bad : modifier in $ ($). you have to use setenv LD_LIBRARY_PATH ${LD_LIBRARY_PATH}:/here/comes/your/new/path/for/libraries setenv LD_LIBRARY_PATH ${LD_LIBRARY_PATH}:$LIB_LOCATION
[26-11-2012]
Summary: Decent introduction to R I have bought R in a Nutshell some time ago (1-st edition) and I was pleased with it. It is very decent introduction to R. I am using R casually for doing server logs analysis, mostly. And from my point of view, a person who doesn’t speak R fluently, this […]
[16-11-2012]
Summary: Very comprehensive, but demanding This book has really impressed me. It goes into deep details of JVM and describes different approaches to various topics related to memory management, threads management, code analysis, subtle details within low level code that are the result of optimization. Authors really dive into details. What’s more important, this book […]
[16-11-2012]
This error may be sometimes misleading. It doesn’t necessarily mean that your targets are specified incorrectly. Sometimes, all you need is a correct source file name.
[15-11-2012]
This post is related to new feature implemented in MMM 1.9.1 – cough button. This feature is experimental one, and can be activated by Ctrl + F5 combination. It will mute the mic as long as you keep the combination pressed. Unfortunately, this feature requires “Enable access for assistive devices” to be activated: In case […]
[14-11-2012]
MuteMyMicFree is a reduced, affordable (totally free) version of MuteMyMic. You can find it here: MuteMyMicFree in AppStore. You can also read how it is different from MuteMyMic here: mutemymic.com. Even though it has reduced functionality it shares the same mascot that can be found here. Feel free to download the app, and happy muting!
[11-11-2012]
Here is the note from the Humble Bundle page: http://www.humblebundle.com “Crayon Physics Deluxe, Eufloria, Splice, Superbrothers: Sword & Sworcery EP, and Waking Mars. If you choose to pay more than the average price, you will also get Machinarium!” I am sure that Sword & Sworcery EP and Machinarium themselves are worth buying the whole bundle!!
[09-11-2012]
Summary: Worth the price This book is definitely worth the price. It is costly, but still, worth the price. If you have a team of people who are descent to work with GDB but are not familiar with it yet, simply buy it. If you are an individual – this book is very pricy to […]
[06-11-2012]
If you are getting following message while submitting apps into App Store an error occurred uploading to the itunes store And you have recently installed Oracle’s Java 1.7 these are the steps that may help you cd /System/Library/Frameworks/JavaVM.framework/Versions sudo mv Current Current~ sudo ln -s /System/Library/Java/JavaVirtualMachines/1.6.0.jdk/Contents Current After this change, make sure you are running […]
[05-11-2012]
It looks like NetBeans 7.3 beta is not working correctly with Java 1.7_06 and Java 1.7_09. In order to get it working download early access version from here: http://jdk7.java.net/download.html – JDK 7u10
[31-10-2012]
Summary: Must have This is simply a must have. I know you can always refer directly to J2EE specification, but from time to time, all you need is a short sneak peek. That’s what this book is designed for. To give you this kind of short references in most commonly used areas of J2EE development. […]
[30-10-2012]
There is a new release of ScreenFlow 4.0. You can find it here. Few features: – outline works as it should, at last! – video filters – you don’t have to export movies to iMovie in order to apply some effects on the video – audio filters – the same as above – sound on […]
[28-10-2012]
Create these files: /* Simple.h */ #include “jni.h” JNIEXPORT jintArray JNICALL Java_Simple_getArray (JNIEnv *, jobject, jint); /* Simple.c */ #include <stdio.h> #include <stdlib.h> #include “Simple.h” #include “jni.h” JNIEXPORT jintArray JNICALL Java_Simple_getArray (JNIEnv *env, jobject obj, jint size) { int i; jintArray position=(jintArray)(*env)->NewIntArray(env,size); if(position==NULL) return NULL; jint *f = calloc(size, sizeof(jint)); for(i=0; i < size; i++) […]
[25-10-2012]
To get file completion within tcsh use Esc. However, hitting Esc will not show you the files available for completion. To get Tab functionality (as in bash), set following variable in ~/.cshrc set autolist
[24-10-2012]
Create these files: /* Simple.h */ #include “jni.h” JNIEXPORT void JNICALL Java_Simple_passArray (JNIEnv *, jobject, jintArray); /* Simple.c */ #include <stdio.h> #include <stdlib.h> #include “Simple.h” #include “jni.h” JNIEXPORT void JNICALL Java_Simple_passArray (JNIEnv *env, jobject obj, jintArray ptr) { int i; printf(“Hello from JNI\n”); jsize len = (*env)->GetArrayLength(env, ptr); jint *body = (*env)->GetIntArrayElements(env, ptr, 0); for […]