Category Archives: Draft

Just for Draft

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

How to edit the ethernet connection in command line at Ubuntu

sudo vi /etc/network/interfaces Update the file content.   ## To configure a dynamic IP address auto eth0 iface eth0 inet dhcp ## Or configure a static IP auto eth0 iface eth0 inet static address 192.168.1.14 gateway 192.168.1.1 netmask 255.255.255.0 network … Continue reading

Posted in Draft | Leave a comment