Tag

Tag: Programming

You are browsing all the posts tagged with Programming.

Multiple CSS Style Session Flash’es in CakePHP

Multiple CSS Style Session Flash'es in CakePHP

We all know that CakePHP has the Session component that allows us to login and logout users and to show them messages that appear only once:
<?php $this->Session->setFlash(‘Random message that appears only once’); ?>
We can style this message the way we want but what about having these kind of messages that are style differently depending on [...]

Multiple Databases in CakePHP

Multiple Databases in CakePHP

There comes a time in life when you need to use multiple databases for a website you have to build .
I came across this “problem” when I was working on a portal website and I had to make sure that users can login with the same details on any website that company owned.
So [...]

The Faces Behind Popular Programming Languages

The Faces Behind Popular Programming Languages

C

Dennis MacAlistair Ritchie (born September 9, 1941) is an American computer scientist notable for his influence on C and other programming languages, and on operating systems such as Multics and Unix. He received the Turing Award in 1983 and the National Medal of Technology in 1998. Ritchie was the head of Lucent Technologies System Software [...]

New in CSS 3

New in CSS 3

Just in case you wondered what’s coming with CSS 3 here are 3 of the most interesting features.
Border-Radius

Before

After

CSS Code: -moz-border-radius: 10px; -webkit-border-radius: 10px;
Works in Firefox 3 and Safari 3
Opacity

Before

After

CSS Code: opacity: 0.6;
Outline Offset

Before

After

CSS Code: outline: 2px solid orange; outline-offset: 4px;
At the moment these work in Firefox 3, Safari 3 and Opera. As usual, the good [...]

3 HTML Tags You Probably Never Used

<abbr> or <acronym>
The <abbr> and <acronym> tag describes abbreviations and acronyms. By marking up abbreviations you can give useful information to your visitors by showing tooltips when they hover the mouse over the element.
Example:
HTML
<q>
The <q> tag defines a short quotation. It tells the browser to insert quotation marks around the marked element. Most of us [...]

Display the time passed in any format you want

If you use digg you probably noticed that they displayed the time passed since a comment has been posted in the following way:

To obtain a rezult in this format we will use the function strtotime. This function counts the seconds that have passed since the 1st of January 1970.
In order to obtain the number of [...]

Captcha – The simplest way to make it

A big problem today is spam.
The best way to combat spam is Captcha. Captcha makes the difference between a computer and a human being. Computers cannot read the text in a picture and this is why we’ll use a photo too.
 
Let’s start by creating the file captcha.php. This file will create a photo with a [...]

20 Things Programmers Say When Something Is Not Working

20. That’s weird….
19. It’s never done that before.
18. It worked yesterday.
17. How is that possible?
16. It must be a hardware problem.
15. What did you type in wrong to get it to crash?
14. There is something funky in your data. OR It’s a data problem, not a program problem.
13. I haven’t touched that module in weeks!
12. [...]

GuestBook v2.0 Updates

After a lot of emails asking for help on installing and making the GuestBook v2.0 work I decided to update it’s code so that it will work on any server and not depend on register_globals anymore.
And yeah … now it doesn’t which means that all you have to do is to upload it, run install.php [...]

Magento – Open Source Ecommerce

Magento is an ecommerce platform on PHP which is quite feature rich.
This platform is based on the Zend Framework.
You can take a look at a Magento store and the admin demo over at their demo section.
 
The minimum system requirements for getting onto Magento is PHP 5.2.1with a few mandatory extensions and MySQL [...]

ss_blog_claim=35efd881137b13aae56d7e24920f8a2b