Monthly Archives: July 2012

stack analysis by using assembly code

we all know for C langauge, all the subroutine( or function) would run in stack, I’m always curious how the stack works.  yesterday I wrote a simple code snippet to test, here is the code: in the above code , … Continue reading

Posted in programming | Tagged | Leave a comment

add standard user to ‘develop tool’ group on mac

if you are standard user on mac, when you try to build and run in xcode, you would always get a prompt dialog of “Try the name and password of a user in the ‘Developer Tools’ group to allow Developer … Continue reading

Posted in System | Tagged | Leave a comment

install nodejs on opensuse

step 1 – figure out you opensuse version: cat /etc/SuSe-release got step 2 : add nodejs repository sudo zypper ar http://download.opensuse.org/repositories/devel:/languages:/nodejs/openSUSE_12.1/ NodeJSBuildService Step 3: install nodejs sudo zypper in nodejs nodejs-devel done.

Posted in web development | Tagged | Leave a comment

How to make my opensuse in virtualbox accessible

Everytime I install virtualbox, I always take the default ‘nat’ as the network setting. So I can access internet from inside, but outside can not access to my opensuse inside. I change the network setting to ‘bridge’, and it works. … Continue reading

Posted in System | Tagged | 1 Comment

some questions about Mac.

I got a mac-min machine for some native app development. Never use mac before, after I got it, feel pretty happy. The first impression about mac is that it is a linux machine?  or at least , a BSD machine? … Continue reading

Posted in System | Tagged | Leave a comment

a bug for visual studio 2008?

Here is a sample code, runs well in GCC, but not in visual studio 2008. #include <stdio.h>using namespace std;int main( void ){    printf( “%s\n”, “hello” );} but in visual studio 2008, I got   in order to make the namespace … Continue reading

Posted in programming | Tagged | Leave a comment