Alhazred's Profile User Rating: -----

Reputation: 9 Worker
Group:
Active Members
Active Posts:
171 (0.08 per day)
Joined:
25-July 07
Profile Views:
4,189
Last Active:
User is offline Mar 18 2013 03:34 PM
Currently:
Offline

Previous Fields

Country:
IT
OS Preference:
Windows
Favorite Browser:
FireFox
Favorite Processor:
AMD
Favorite Gaming Platform:
PC
Your Car:
Ford
Dream Kudos:
0

Latest Visitors

Icon   Alhazred has not set their status

Posts I've Made

  1. In Topic: [codeigniter] The resize function doesn't work properly

    Posted 5 Feb 2013

    Same problem, I've written a my own function to resize the images and it works.
  2. In Topic: [codeigniter] The resize function doesn't work properly

    Posted 5 Feb 2013

    The sizes provided are the limits to decide on which side to calculate the resize.

    In example the source image is 200x80, the function should see that the side which exceeds the dimensions is the height and then it should calculate the new sizes according to the height maintaing the aspect ratio, it doesn't have to create a 300x70 image (in the code I made a mistake, the $config['height'] is 70, not 80)
  3. In Topic: CSS menu and problem with IE7

    Posted 4 Feb 2013

    I don't yet have the page online.

    HTML validator says: This document was successfully checked as HTML5!
    CSS Validator says: Congratulation! No error found.

    A real example for the HTML of the menu is
    <div id='top-menu-nav'>
    	<ul>
    		<li><a href="http://www.newsite.com/">Home</a></li>
    		<li><a href='#'>Modifica dati</a>
    			<ul>
    				<li><a href="http://www.newsite.com/users/modifica/user_data.html">Modifica dati personali</a><div class='submenu-divider'></div></li>
    				<li><a href="http://www.newsite.com/users/modifica/password.html">Modifica password</a><div class='submenu-divider'></div></li>
    				<li><a href="http://www.newsite.com/users/modifica/email.html">Modifica email</a><div class='submenu-divider'></div></li>
    			</ul>
    		</li>
    		<li><a href="http://www.newsite.com/users/ordini.html">I miei ordini</a></li>
    		<li><a href="http://www.newsite.com/users/preferiti.html">Shop preferiti</a></li>
    	</ul>
    </div>
    
    

    Where the submenu-divider class
    is
    .submenu-divider {
    	width: 15px;
    	height: 30px;
    	float: right;
    	background-image: url('/static/images/submenu_divider.png');
    	background-repeat:no-repeat;
    	background-position:right top;
    }
    
    
  4. In Topic: I need some explanation about transactions and concurrent accesses

    Posted 21 Aug 2012

    Solved using SELECT ... FOR UPDATE
  5. In Topic: How to round downward a decimal number keeping 2 decimal digits?

    Posted 18 Aug 2012

    View PostCTphpnwb, on 18 August 2012 - 05:25 PM, said:

    if you want to truncate you could multiply the number by 10 to the number of digits desired, force type to an integer, and then divide by 10 to the number of digits desired.

    Other options include number_format() and sprintf().

    Thanks, I'd solved in this way
    echo (int) ($decimal_number * pow(10, 2)) / pow(10, 2);
    
    

My Information

Member Title:
D.I.C Head
Age:
36 years old
Birthday:
September 30, 1976
Gender:
Location:
Italy
Programming Languages:
C, Java, php

Contact Information

E-mail:
Private
Website URL:
Website URL  http://

Friends

Alhazred hasn't added any friends yet.

Comments

Alhazred has no profile comments yet. Why not say hello?