bingorabbit’s bLOG - when rabbits rule!..

parameters with default values

By: bingorabbit, June 11, 2008 @ 6:24 pm
Filed under: information.technology, linux, my.hacks, php, web
Tags: , , , ,

It’s known that declaring a php function has the following syntax:

<?php
function function_name(Parameters_list) {
// function
// code
// block
}
?>

an example of this can be like this:

<?php
function nameAndAge($name,$age){
echo "Welcome $name, you are $age years old!";
}
?>

When I issue the following statement:

<?php
nameAndAge("bingorabbit",20);
?>

I will get:
Welcome bingorabbit, you are 20 years old!

Most of us know that, and also we know that to set a default value for any parameter, we can do the following:

<?php
function function_name($parameter1 = "default value", rest_of_the_parameter_list) {
// function
// code
// block
}
?>

which might take the following form:

<?php
function nameAndAge($name="bingorabbit",$age){
echo "Welcome $name, you are $age years old!";
}
?>

so when I issue:

<?php
nameAndAge();
?>

I will get:
Welcome bingorabbit, you are years old!

and when I issue:

<?php
nameAndAge("Ahmed", 15);
?>

I will get:
Welcome Ahmed, you are 15 years old!

The problems is such declaration is that, you can’t just issue:
Read More..

Vinux

By: bingorabbit, May 13, 2008 @ 6:19 am
Filed under: information.technology, linux, my.hacks
Tags: , , , ,

This is what I’m talking about, I just thought of putting screen shots :D , soon I think I will post a tutorial to show you how to reach such Desktop :D

Screen shot taken from my laptop, Fedora 8, using KDE 3.5My Desktop

Audacious in winamp modern skin

Start Menu using KBFX

Windows Preview

What do you think?!

wordpress 2.5

By: bingorabbit, March 20, 2008 @ 4:08 am
Filed under: information.technology, my.hacks, wordpress
Tags:

The screen shots is really promising, check it from here, I’m gonna wait for this one. Day after another, it proves that it’s one of the BEST CMSs that have ever been introduced to web.

CAT Designs

By: bingorabbit, March 1, 2008 @ 12:18 am
Filed under: cat.reloaded, information.technology, my.hacks
Tags: , , , ,

This is my latest CAT Designs :)

CAT Business Card:
Read More..

phpBB styles

By: bingorabbit, January 23, 2008 @ 6:59 am
Filed under: my.hacks
Tags: , , ,

A LOOOOOOOOOOOOOOOOOOOOONG NIGHT!, and at last…

One of the most confusing thing that is related to phpBB styles and modifications, is that when they release a new modification, that have something to be done with the styles - and that always happen -, they release the installation steps on the default style - which in my case is prosilver -. So, when you need to install a new modification, and you are using another styles that’s not the default, you will have to implement how you may write the code in the template files. In another words, you will try to find the differences between your style and the default one and try to comprise between both. I started doing so, and I was sure of what I’m doing, cause one default style uses divs and dls and mine uses tables - haven’t they heard of tableless?! -.





I was installing the global announcements mod, which shows the topics that are marked as global in the front page under a category called “Announcements” - or it’s what is supposed to be - , but it showed up as “Forum” :wtf: , changing language files, installing the style and editing the files again and again but nothing happens. I ran to the mod’s support forum, when I found un-related issues to my one, but while searching I found that after installing a mod, you HAVE to go to the Styles tab and refresh the Style’s template, theme and imageset files, if you have changed any of them. A try and another :wtf: , it worked?!..yeah it worked..

I still wonder why did they created it that way?!..wala ana elli et3awedt 3ala el wordpress?!

Update: You may also need to clear your cache files, Just Click the “Run Now” Button, beside “Purge the Cache”, under the “General” tab in your Administrator Panel.

Next Page >>>