Crushes and Wishes.

Now this is not a post about the many things that are happening, but that about what could have been.

There have been many people you have a huge crush on, has there ever been a time you wanted to clear out your head and tell them all that you liked them once upon a time? Well, I am clearing my plate now and its a HUGE list!

The wish for me is to start clear from any pain and anguish a crush might have caused me.

Hoping for the best.

~Jose

Posted in Journal, Meaningless Stuff!!, Romance!! | Leave a comment

Yamaha R15: After 1st Service

After 20 days of driving at 40-50 kmph, I finally reached the 1000K mark. During the run-in period it was said the bike’s engine revolutions be kept below the 5000 RPM mark. So, it took a lot of patience to try and not be rough with the bike.

Yamaha R15

I handed the bike in for her first service on the 27th. I got her back the next day all shiny and polished. Because of my mostly city driving habits I had a center stand put in. It helps with parking in tight spots. I also had it teflon coated, some nice inexpensive seat covers rounds up the extras.

After the service I have already covered 600 kms and it seems to be performing with peak efficiency. I was asked not to hit speeds above 70 till after the first service. I have managed to clock a personal best of 109 kmph@6000 RPMs on nice road. The bike has very good power characteristics in the lower end and higher end. The middle RPMs suffer a little and its easy to see other bikes pulling away quickly when I stick to the mid ranges. I have been also checking her mileage and its a steady 42-43 in the city and a whopping 52 on the highway (Outer ring road bangalore) without any rash acceleration and many bumps. There is No vibrations from the engine. The deltabox frame and the tires do a pretty slick job of keeping the bike on the road. The painful part is the rear seat and the suspension. Since, the bike has a lot of racing ancestry, its suspension is hard to allow for quicker cornering and this is not a very good trait for internal bumpy roads that are so littered in Bangalore.

Overall, a nice fun bike to drive. A little under powered in the mid ranges and but the bike doesn’t knock or make noises when running at speeds between 40-50 in sixth gear. As parameswaran from Spring Yamaha said, “Sir, keep the revvs up and she will be nice to you in every gear!”

Posted in Bikes, Journal, Meaningless Stuff!! | 1 Comment

Multi pull

Suppose I am building a software using ten different libraries which are frequently updated, a nice to have would be git pull all which would download all linked libraries from their origin hosted locations.

Posted in Computer Science, Journal, Meaningless Stuff!!, Rant | Comments closed

Guys at office

image

Posted in Journal, Meaningless Stuff!! | Comments closed

Julia CGI Get request example

Adding to the apache cgi example for julia. Here is a small script to handle get requests using the QUERY_STRING environment variable. This example heavily utilizes code examples on CGI using C.

#!/home/jose/JMM/Code/julia/julia

libc = dlopen("libc.so.6")

paramsList = ccall(dlsym(libc, :getenv), Ptr{Uint8}, (Ptr{Uint8},), "QUERY_STRING")
matcher = match(r"(.*)=(.*)",cstring(paramsList))
param = matcher.captures
if param[1] == "Name"
println("Content-type: text/html\n\n")
println(strcat("Hello ",param[2]))
end

Call the file as shown below.

http://localhost/julia-web/helloworld.jl?Name=Jose

Posted in Computer Science, Unix | Comments closed

Julia and mysql

Simple mysql client version number example for julia using the ccall library loading interface.

prerequisites.

sudo apt-get install libmysqlclient16-dev

copy the code into a file called dbversion.jl. Please remove the C style comments in the code as they WILL NOT work in julia.

#!/home/jose/JMM/Code/julia/julia

//print the content type header

println("Content-type: text/html\n\n");

//Load the mysql libraries

mysql = dlopen("libmysqlclient")

//call the C library with a pointer return type

mysqlexec = ccall(dlsym(mysql, :mysql_get_client_info), Ptr{Uint8}, ())

//convert the returned pointer to a string.

println(cstring(mysqlexec))

Should successfully print the mysql version number. I am still working on the various aspects of this. Also the above code was for use with apache.

Posted in Computer Science, Journal, Meaningless Stuff!!, Unix | Comments closed

Simple hello world in julia

First off configure apache to handle the .jl file extension and enable exec permissions on the folder

open up the default file under /etc/apache2/sites-available.

directory "/var/www/julia-web/"
AllowOverride None
Options +ExecCGI -MultiViews +SymLinksIfOwnerMatch
Order allow,deny
Allow from all
directory

AddHandler cgi-script .cgi .jl

Restart apache


sudo service apache2 restart

create a simple file under the path /var/www/julia-web.

jose@meanmachine-jr:/var/www/julia-web$ cat > helloworld.jl
#!/home/jose/JMM/Code/julia/julia

println("Content-type: text/html\n\n");
println("Hello world");

Change the line in bold to the path to your compiled julia interpreter.

as with any cgi file make sure to give execute permissions to the file.

chmod -R 777 helloworld.jl

That should be it.

helloworld.jl

Hello world in julia

Posted in Computer Science, Journal, Unix | Comments closed

Julia Lang on Bodhi Linux :)

This is more of an informational log on compiling julia on Bodhi linux 1.3.

The first thing about any linux builds is to make sure you have the linux kernel headers installed for your linux kernel version. I am assuming you already have and hence proceeding to the important part.

Clone the repository.

git clone git@github.com:josemanimala/julia.git

Install the prerequisites.

sudo apt-get install libncurses5-dev gcc-multilib gfortran

I was getting there architecture errors, for which the julia lang website suggests passing the architecture value in the commandline or setting it in Make.inc that comes with the julia archive.

make TARGET=NEHALEM

This should start building julia.

Issues, I was getting build issues with the file ~/julia/external/llvm-3.0/lib/Target/X86/Release/ folder missing some files. To get rid of this, I went into the llvm directory and manually ran make. Once that was completed moved to the julia folder and executed make again. This time it ran to completion without any problems.

Finally.

jose@meanmachine-jr:~/JMM/Code/julia$ ./julia
_
_ _ _(_)_ |
(_) | (_) (_) |
_ _ _| |_ __ _ | A fresh approach to technical computing
| | | | | | |/ _` | |
| | |_| | | | (_| | | Version 0.0.0+1333339897.re491
_/ |\__’_|_|_|\__’_| | Commit e491e6cf9c (2012-04-02 09:41:37)
|__/ |

julia>

Going to look at building web apps in julia next. DB support?

Posted in Computer Science, Journal, Meaningless Stuff!!, Unix | Comments closed

Dead beef: shuffle annoyance!

I love dead beef and its my favorite music player when I am coding. But one thing that annoys me is that dead beef with shuffle on picks a random song when I press previous rather than going to the previous song. Also, I can pause and play with the pause button ;) seems like the underlying api shares function calls.

Dead beef creator thank you so much for this music player.

Cheers,
Jose

Posted in Computer Science, Journal, Meaningless Stuff!!, Rant | Comments closed

Out with V

image

Posted in Journal, Meaningless Stuff!! | Comments closed