Juje007 » Blog


Radio button fun

Uncategorized • September 16, 2011 • By Juje007 @ 8:39 pm • • 1 Comments


Sometimes when you code and you are thinking “What if?”. And today I had that question myself “What if you used Radio Buttons for a LED wall”.

And this is the answer. (Watch out: high CPU usage).

Because modern browsers are not meant for very high performance usages the browser starts to lag.
So using RadioButtonWalls on websites is not going to be the best idea at this point. But maybe trough another way it is.

Ps. You are free to use the code and to modify it without my permission (Because the web should be free and open).

PHPIpsum

Uncategorized • August 13, 2011 • By Juje007 @ 12:39 am • • 0 Comments


A long time ago I discovered a website called http://html-ipsum.com. Immediately I started searching for a PHP version but I couldn’t find it. So I started developing on the PHP version which was going to call PHPIpsum. But the passion for creating a PHP version started to go away, so I stopped with it.

And today (August 12, 2011) because of some event I rediscovered it again. And I started working on PHPIpsum again. And after 2 or 3 hours of coding I completed PHPIpsum.

You can visit it under the domain http://phpipsum.juje007.be.

A domain name will maybe come depending on the traffic.

My first Python script

Uncategorized • May 24, 2011 • By Juje007 @ 4:16 pm • • 1 Comments


After a tutorial about Python on NetTuts I decided to create my first python script: a simple calculator.
And here is the result:


print "Welcome to the calculator";
nr1 = raw_input("The first number: ");
what = raw_input("What do you want to do (+, -, *, /): ");
nr2 = raw_input("The second number: ");

print "";
print "The outcome is:";

if what == "+":
	print int(nr1) + int(nr2);
elif what == "-":
	print int(nr1) - int(nr2);
elif what == "*":
	print int(nr1) * int(nr2);
elif what == "/":
	print int(nr1) / int(nr2);

Bash: find out PI

Uncategorized • March 25, 2011 • By Juje007 @ 11:27 pm • • 0 Comments


A long time ago I wrote a script to find out the numbers behind the number PI but that was written in VBS. And today I wanted to recreate that script but than in Bash. I succeeded completely and here is the code:


#!/bin/bash
x=4;
endNr=$x;
lastUsed="+";
counter=3;
while [[ $counter -lt 1000000 ]];
do
    if [[ $lastUsed == "+" ]];
    then
        newNr=$(echo "scale=30; $x/$counter" | bc);
        endNr=$(echo "scale=30; $endNr-$newNr" | bc);
        lastUsed="-";
    else
        newNr=$(echo "scale=30; $x/$counter" | bc);
        endNr=$(echo "scale=30; $endNr+$newNr" | bc);
        lastUsed="+";
    fi;
    counter=$[$counter+2];
    echo $endNr;
done;

Usage (Linux):

Step 1: Put the code inside a file and save it as a .sh file.
Step 2: In command line give the file a chmod of +x (eg. chmod +x fileName.sh)
Step 3: Than run the file (eg. ./fileName.sh)

And here you go.

Have fun!!

LinkedIn

Uncategorized • October 12, 2010 • By Juje007 @ 9:45 pm • • 0 Comments


Hey everyone,

Today I registered on LinkedIn and that’s why I added it to my contact page. So if you want to be a friend than just ask it :) .

My LinkedIn link is: http://be.linkedin.com/in/juje007

~Juje007

Recent Posts

Archives