Rice University logo
 
Top blue bar image Kiran Thyagaraja
Brain Dump
 

Archive for January, 2012

Compiling Quantum Espresson on Linux PPC64

Monday, January 23rd, 2012

1. Download; untar and configure

./configure FFT_LIBS="-L/opt/apps/fftw/3.2.2/lib -lfftw3f" BLAS_LIBS="-L/opt/apps/ibm/essl/5.1/lib64 -lessl" LAPACK_LIBS="-L/opt/apps/ibm/essl/5.1/lib64 -lessl -llapack" LIBDIRS="/opt/apps/fftw/3.2.2/lib /opt/apps/ibm/essl/5.1/lib64/" MPIF90=mpif90 CFLAGS="-O3 -q64" FC=mpif90 F77=mpif90 F90=mpif90 CC=mpicc FFLAGS="-q64" --enable-parallel

2. Edit make.sys and replace F90, F77, CC with xlf90_r, xlf_r and xlc_r respectively.
3. make all

Banana Cupcakes with Caramel Cream Cheese Frosting

Saturday, January 21st, 2012

Thanks to my colleague, Clinton Heider, for sharing his family recipe.

Ingredients

2 ¼ cups flour
½ teaspoon baking powder
¾ teaspoon baking soda
½ teaspoon salt
½ cup soft butter
1 ½ cups sugar
2 eggs
1 cup mashed bananas
1 teaspoon vanilla
¼ cup buttermilk

Cupcake

Prepare cupcake pans with paper liners.

Sift flour with baking powder, baking soda and salt.

In a separate bowl, mix banana with vanilla and buttermilk.

Cream butter, then add sugar and cream together until light and fluffy. Beat in eggs, one at a time. Add the flour and banana mixtures in parts, alternating and blending completely after each addition.

Fill baking cups with batter and bake for 15 – 20 minutes, until toothpick comes out clean.
Cool completely before frosting.

Caramel Cream Cheese Frosting

8 oz cream cheese, chilled
1 stick butter at room temperature
½ cup caramel sauce
3 cups powdered sugar

Blend cold cream cheese with butter until well blended, then add caramel sauce and blend until incorporated. Slowly add powdered sugar, blending until incorporated.

VNC port forwarding over SSH

Thursday, January 19th, 2012

1. Start vncserver on the remote machine:
vncserver

Check which display the server is running on:
[user@login1 ~]$ vncserver -list

TigerVNC server sessions:

X DISPLAY # PROCESS ID
:2 9416

In this case, its running on display “:2”

Also check which port the VNC server is running on:
netstat -tulpn

2. In a terminal on your desktop, start SSH forwarding:
ssh -L 5902:localhost:5902 -N @remoteserver

Keep this session open until you want your VNC port active.

3. Connect vnc client to the SSH forwarded port:
vncviewer localhost:2