Sunday, December 30, 2012

How to install Julia programming language on centos 6 64 bit

So I had some major issues installing Julia in 64 bit. I finally was able to get it working this way:

yum -y install java-1.6.0-openjdk.x86_64 libXp openmotif openmotif22 python.x86_64 numpy* ncurses-devel gcc gcc-c++ autoconf automake; yum -y groupinstall "Development Tools" 

then I did make -j4, since I had the atom processor I also did a openblas flag edit in Make.inc

OPENBLAS_USE_THREAD=4
OPENBLAS_TARGET_ARCH=BONNELL


Now when I run make, it runs forever, and then it works fine and I can run:

./julia

Sunday, December 23, 2012

How to setup centos cluster (start to end)


 yum -y install openssh-server openssh-clients

1. Make static IP

Find out the name of your ethernet adapater using ifconfig:
 
NETWORKING=yes
NETWORKING_IPV6=no
HOSTNAME=bee9
GATEWAY=192.168.1.1   (This is needed to get internet on the nodes)

 
 
DEVICE="eth1"
NM_CONTROLLED="yes"
ONBOOT=yes
TYPE=Ethernet
BOOTPROTO=static
NAME="System eth0"
IPADDR=192.168.1.156
NETMASK=255.255.255.0
DNS1=8.8.8.8
DNS2=8.8.4.4
 
2. Turn off network manager (it was overriding at boot)
sudo /sbin/service NetworkManager stop   (This stops it)
sudo /sbin/chkconfig NetworkManager off  (This stops it from starting at bootup)
 
 
 Stream audio through SSH:
 
 http://prupert.wordpress.com/2010/08/02/stream-live-audio-from-a-microphone-in-near-real-time-in-ubuntu/
http://linuxconfig.org/how-to-test-microphone-with-audio-linux-sound-architecture-alsa 

Wednesday, December 19, 2012


SGE_ROOT="/opt/sge"
  SGE_QMASTER_PORT="31001"
  SGE_EXECD_PORT="31002"
  CELL_NAME="default"
  ADMIN_USER="sgeadmin"
  QMASTER_SPOOL_DIR="/opt/sge/default/spool/qmaster"
  EXECD_SPOOL_DIR="/opt/sge/default/spool/execd"
  GID_RANGE="20000-21000"
  SPOOLING_METHOD="berkeleydb"
  DB_SPOOLING_SERVER="none"
  DB_SPOOLING_DIR="/opt/sge/default/spooldb"
  ADMIN_HOST_LIST=""
  SUBMIT_HOST_LIST=""
  EXEC_HOST_LIST=""
  EXECD_SPOOL_DIR_LOCAL="/opt/sge/default/spool/execd"
  HOSTNAME_RESOLVING="true"
  SHELL_NAME="ssh"
  COPY_COMMAND="scp"
  DEFAULT_DOMAIN=""
  ADMIN_MAIL="none"
  ADD_TO_RC="true"
  SET_FILE_PERMS="true"
  RESCHEDULE_JOBS="wait"
  SCHEDD_CONF="2"
  # all options below are irrelevant in our setup
  SHADOW_HOST=""
  EXEC_HOST_LIST_RM=""
  REMOVE_RC="false"
  WINDOWS_SUPPORT="false"
  WIN_ADMIN_NAME="Administrator"
  WIN_DOMAIN_ACCESS="false"
  CSP_RECREATE="true"
  CSP_COPY_CERTS="false"
  CSP_COUNTRY_CODE="DE"
  CSP_STATE="Germany"
  CSP_LOCATION="Building"
  CSP_ORGA="Organisation"
  CSP_ORGA_UNIT="Organisation_unit"
  CSP_MAIL_ADDRESS="name@yourdomain.com"

Thursday, November 29, 2012

Don't shop from tmart.com


Their website said they had 32 of these big ticket items in stock. Then after ordering I got this. To have 32 and then say you are out of stock sounds like a gross case of software management. They lost my business for good.

Here is their reply:

Dear Mr. /Ms. ,

Greetings! Thank you for purchasing from Tmart.com.

We are sorry to tell you the items you ordered are currently out of stock in ourUS warehouse. Would you like exchange unshipped item(s) for in-stock one?In most cases, we may replenish the stock within 1-2 weeks, and we will ship them to you as soon as possible.

If we did not receive your reply, we will consider that you agreed to wait, and send the items to you once they are restocked.Weappreciate your kind understanding.

If you need to change or cancel unshipped items(s), you may clickContact Us or reply us directly.

Have a nice day
Flora
Support@Tmart.com

Tuesday, November 27, 2012

unetbootin install "not a valid win32 application" windows 7 fix

So I got that error message when I tried to install unetbootin on windows 7. I could not find any work around online, but i did find an alternative that worked that I was not familiar with:

http://www.pendrivelinux.com/universal-usb-installer-easy-as-1-2-3/

This worked fine on windows 7.


Wednesday, November 7, 2012

2012 Presidential Election Popular Vote to Unemployment Correlation

I was so surprised that Nevada and some of the other states with high employment voted for 4 more years of this. So I decided to look at the correlation between state unemployment rate in September 2012 and the popular presidential vote. Surprisingly it is the EXACT opposite of what you would expect. The states with the highest unemployment gave Obama the most popular vote support, meaning they are fine going forward. The states with the lowest unemployment want a change. Part of this correlation may include the fact that the states with the highest unemployment have the highest government dependents and don't want to bite the hand that feeds them.


Sunday, November 4, 2012

How to have php mkdir with correct permissions

I had some issues making directories in php without doing 777 permissions. So I did this, first I wanted to find out what user was running apache, I know it is usually nobody, but I wanted to be sure so I did this:

ps -ef  | grep apache

which returns:

www-data 15933 11814  0 06:54 ?        00:00:00 /usr/sbin/apache2

So I know my user is actually www-data, now I change the owner to www-data

x@x:/var/www/grid/sess$ sudo chown www-data scratch/ -R
x@x:/var/www/grid/sess$ sudo chmod 775 scratch/ -R

and now I can get it to write with 775 or 765 permissions! By the way I was writing my new PHP folders into this scratch folder








Wednesday, October 24, 2012

How to install Julia programming language in linux/ubuntu

How to install Julia programming language in Ubuntu:

First make sure you have git installed:
sudo apt-get -f install git

git clone git://github.com/JuliaLang/julia.git
cd julia
make

I was missing gfortran and g++ so I had to install those to make the make command work:

sudo apt-get install gfortran g++
make

Now try:
./julia

 


Saturday, September 8, 2012

New domain points to: 69.6.27.100 quizinged.net generatest.net quizbustar.net HACKED! WTF!

So I registered a new domain, waited a day, and then began the process of setting it up on my home server. I added it to the apache sites-enabled list and it looked like it was about to work and then.... BAM, I get redicted to some jerk's website.

I did a hostname to IP lookup and saw it was pointing to:
69.6.27.100

Which is not my static IP. I know my server has not been hacked with a redirect since I never see any entry in my apache log:
tail /var/log/apache2/error.log

So that means it is not even hitting my home.

So I check my DNSserver for one of my working domains:


Retrieving DNS records for YOURDomain.com...
DNS servers
ns2.dnsexit.com [142.54.181.62]
ns1.dnsexit.com [67.214.171.77]


and then I realized I was typing in the WRONG domain! I was typing one letter different and a spam site owned that. So a big waste of time. No hack, just the wrong domain was checked in my url.

Oops I'm an idiot