Category Archives: Tech

Invert binary tree – iterative method

This problem is famous due to the wellknown twett, by Max Howell. I can not say it is hard or easy. Here just provide the iterative method as recursive method is really too easy. In general,  you just need to swap … Continue reading

Posted in Algorithms, Tech | Leave a comment

Matlab code to generate 1023 PN sequence.

I am using this code to generate a PN sequence with 1023 length. h = commsrc.pn(‘GenPoly’, [[10 7 0]], ‘Mask’, [0 0 0 0 0 0 0 0 0 1]); set(h, ‘NumBitsOut’, 1023); pn = generate(h); len = length(pn); for … Continue reading

Posted in Draft | Leave a comment

Set remote display on Ubuntu

On Server: 1. go to /etc/lighdm, in lightdm.conf add [SeatDefaults] xserver-allow-tcp=true 2. on terminal: xhost + On Client: 1. export DISPLAY=$IP_ADDR_SERVER:0.0

Posted in Draft | Leave a comment

Upgrade Ubuntu to new release

sudo vi /etc/update-manager/release-upgradesto set the prompt=normal or lts. then sudo do-release-upgrade, sometime you need -d

Posted in Draft | Leave a comment

Compressive Sensing Resources

https://www.cgran.org/wiki/CompSens  http://dsp.rice.edu/cs

Posted in Draft | Leave a comment

High Performance Computing References

CUDA full tutorial. http://www.drdobbs.com/parallel/cuda-supercomputing-for-the-masses-part/207200659

Posted in Draft | Leave a comment

SIMD instructions references.

The information is coming from http://www.g-truc.net/post-0359.html Instruction sets intrinsic per headers: (/usr/lib/gcc/x86_64-linux-gnu/4.6.3/include) x86intrin.h: x86 instructions mmintrin.h: MMX (Pentium MMX!) mm3dnow.h: 3dnow! (K6-2) (deprecated) xmmintrin.h: SSE + MMX (Pentium 3, Athlon XP) emmintrin.h: SSE2 + SSE + MMX (Pentiuem 4, Ahtlon … Continue reading

Posted in Draft | Leave a comment