Wednesday, November 30, 2011

nesting commands in xargs

cat links.txt | xargs -I {} sh -c "wget {} | tar czvf {}.tar.gz {}"

or write a for loop

or write xargs command in a separate script

cat links.txt | xargs -I {} myscript.sh {}

http://en.wikipedia.org/wiki/Xargs

http://www.andyd.net/2009/escaping-a-pipe-inside-xargs/


---getAndZip.sh----
URL=$1
FN=`basename $1`

echo URL = $1
echo FN = $FN

wget $URL
tar cvzf $FN.tar.gz $FN
rm $FN

Monday, November 28, 2011

Android Dev - Silence camera click (needs a rooted phone)

1) Turn On USB Debugging
settings > applications > development

2) Install ADB Tools
http://developer.android.com/guide/developing/tools/adb.html

android-sdk-linux/tools$ ./android

Select 'Android SDK Platform-tools'

adb kill-server
sudo adb start-server
adb devices

http://groups.google.com/group/android-discuss/browse_thread/thread/f85a795644e65b59?pli=1

3) Remove the camera_click.ogg file from your phone.

http://androidforums.com/motorola-droid/30759-turn-off-camera-shutter-sound.html

You must be rooted to do this but you can do this using ADB Shell or Terminal Emulator. Make sure to change /system to RW first.
ADB shell
SU # this requires a rooted phone, else permission denied
mount -o remount,rw /dev/block/mtdblock4 /system
mv /system/media/audio/ui/camera_click.ogg /system/media/audio/ui/camera_click.ogg.old

Done!!! No more Clicking sound

There are a few programs on the market that allow you access the file on root as well through a GUI if your not comfortable using command lines.

My Brain Notes

http://mybrainnotes.com/memory-brain-stress.html

The amygdala, stress, OCD, and PTSD:

Kindling and stress—how experience affects the brain:

The hippocampus, memory, and depression:

The term hippocampus is derived from the Greek word meaning "sea-horse," which might somehow describe the shape of each hippocampal nucleus,

Wilcoxon rank sum test

> wilcox.test(rnorm(10), rnorm(10, 2), conf.int = TRUE)

Wilcoxon rank sum test

data: rnorm(10) and rnorm(10, 2)
W = 7, p-value = 0.0004871
alternative hypothesis: true location shift is not equal to 0
95 percent confidence interval:
-2.9488832 -0.8543696
sample estimates:
difference in location
-2.002531

Dot Net Nuke CMS

Dot Net Nuke
http://www.dotnetnuke.com/
DotNetNuke Content Management System (CMS) for ASP.NET

R group-by aggregate()

squishes down (by rows)

> x
x gene
Scarb1[2551] -0.005680804 LHX6
Slc41a3[73512484] -0.014839480 SLC41A3
Lhx6[635] -0.001436172 LHX6
Traf7[2527] -0.013320662 TRAF7
Pcyt1b[74641319] -0.027368717 PCYT1B
E330014M11Rik*[77280559] -0.016545674 E330014M11RIK*

> aggregate(x$x, list(x$gene), mean)
Group.1 x
1 E330014M11RIK* -0.016545674
2 LHX6 -0.003558488
3 PCYT1B -0.027368717
4 SLC41A3 -0.014839480
5 TRAF7 -0.013320662

Change and acceptance

"The first step toward change is awareness. The second step is acceptance."
--Nathaniel Branden

Sunday, November 27, 2011

Courage

"A timid person is frightened before a danger, a coward during the time, and a courageous person afterward."
--Jean Paul Richter

Saturday, November 26, 2011

Walking beside

"Don't walk in front of me, I may not follow; don't walk behind me, I may not lead; walk beside me, and just be my friend."
--Albert Camus

Friday, November 25, 2011

ProfileChaser: searching microarray repositories based on genome-wide patterns of differential expression

ProfileChaser: searching microarray repositories based on genome-wide patterns of differential expression

Summary: We introduce ProfileChaser, a web server that allows for querying the Gene Expression Omnibus based on genome-wide patterns of differential expression. Using a novel, content-based approach, ProfileChaser retrieves expression profiles that match the differentially regulated transcriptional programs in a user-supplied experiment. This analysis identifies statistical links to similar expression experiments from the vast array of publicly available data on diseases, drugs, phenotypes and other experimental conditions.

Availability: http://profilechaser.stanford.edu

Contact: abutte@stanford.edu

Run over

"Even if you are on the right track, you will get run over if you just sit there."
--Will Rogers

Thursday, November 24, 2011

BioLayout Express 3D

BioLayout Express 3D

Network visualizer in 3D

Believe you Can!

"When you believe you can...you can!"
--Maxwell Matlz