On Fri, 2010-01-22 at 03:47 +0100, Jochem Maas wrote:
> Op 1/22/10 2:28 AM, Ryan Park schreef:
> > Forgot to reply all.
> >
> > You can see that it's in the middle of the sql statement.
> > It looks fine here but some how it breaks during the query.
> >
> > > mysql_connect("localhost", "adminID
Ashley Sheridan wrote:
You're also forgetting one of the most important elements of this. If
you're displaying the characters on a web page, chances are that you
need to add a corresponding meta tag to inform the browser that the
content is utf-8
Otherwise the browser will attempt to guess
Thank you all for the helpful comments.
I've finally solved the problem through sql command "set name."
On 1/22/2010 1:53 AM, Michael A. Peters wrote:
Ashley Sheridan wrote:
You're also forgetting one of the most important elements of this. If
you're displaying the characters on a web page,
Hi guys!
I've been trying to cros-compile PHP for an embedded MIPS device with no
luck, so I decided to build a developing environment inside a virtual
machine with QEMU for developing PHP inside first.
I have been trying different options for configure and all I get is a
Bus Erro 138 when I
Hello,
One of the aspects of an interface is to enforce a public view of a
class (as I see it).
Within PHP, interfaces are allowed to have constants, but you cannot
override them in a class implementing that interface.
This seems wrong.
The interface shouldn't define the value, just like it doe
One way to do it would be to use getter functions in your interface
that return the value of the constant (or a member variable) in your
implemented class. For example:
interface SetKillSwitch {
public function getKillSwitchNotes();
}
Then in your class implement your getKillSwitchNotes fu
Richard Quadling wrote:
Hello,
One of the aspects of an interface is to enforce a public view of a
class (as I see it).
Within PHP, interfaces are allowed to have constants, but you cannot
override them in a class implementing that interface.
This seems wrong.
The interface shouldn't define t
On Fri, 2010-01-22 at 11:33 +, Richard Quadling wrote:
> Hello,
>
> One of the aspects of an interface is to enforce a public view of a
> class (as I see it).
>
> Within PHP, interfaces are allowed to have constants, but you cannot
> override them in a class implementing that interface.
>
>
2010/1/22 Pete Ford :
>
> IMHO, a constant is not the correct beastie in this case - if you want it to
> be different depending on the implementation then it ain't a constant!
>
> You should probably have protected static variables in the interface, and
> use the implementation's constructor to set
2010/1/22 Darren Karstens :
> One way to do it would be to use getter functions in your interface
> that return the value of the constant (or a member variable) in your
> implemented class. For example:
>
> interface SetKillSwitch {
> public function getKillSwitchNotes();
> }
>
> Then in your
2010/1/22 Pete Ford :
> IMHO, a constant is not the correct beastie in this case - if you want it to
> be different depending on the implementation then it ain't a constant!
>
> You should probably have protected static variables in the interface, and
> use the implementation's constructor to set t
Interesting, I don't have any numerical benchmarks, but I saw a
performance benefit moving my result set into an array.
My case may have been extreme, I was creating a table 350 rows by 350
columns, several megabytes of output, and I found that building the
output directly from the query too s
Op 1/22/10 4:55 PM, Richard Quadling schreef:
> 2010/1/22 Ashley Sheridan
>> Constants are there for things that should never change. If you ever need to
>> change them, then whoever created the base class either didn't think things
>> through properly, or you're not. Imagine a class that sets
Always found the same myself on large datasets and when working with
high traffic sites; but cant replicate in a non-live environment or with
simple grinder style tests; so just follow the procedure as standard
practise in all my code now - likewise with dropping keep alive times on
apache servers
Op 1/22/10 9:41 AM, Ashley Sheridan schreef:
> On Fri, 2010-01-22 at 03:47 +0100, Jochem Maas wrote:
>
>> Op 1/22/10 2:28 AM, Ryan Park schreef:
>>> Forgot to reply all.
>>>
>>> You can see that it's in the middle of the sql statement.
>>> It looks fine here but some how it breaks during the query
2010/1/22 Jochem Maas :
> constants in interfaces are not meant for this. a class constant doesn't
> constitute an interface. I believe constants in interfaces are allowed purely
> because it is helpful to have them defined outside of the global space and
> somewhere where all implementors of said
On Fri, 2010-01-22 at 17:15 +0100, Jochem Maas wrote:
> Op 1/22/10 9:41 AM, Ashley Sheridan schreef:
> > On Fri, 2010-01-22 at 03:47 +0100, Jochem Maas wrote:
> >
> >> Op 1/22/10 2:28 AM, Ryan Park schreef:
> >>> Forgot to reply all.
> >>>
> >>> You can see that it's in the middle of the sql state
At 8:58 AM +1100 1/22/10, clanc...@cybec.com.au wrote:
On Thu, 21 Jan 2010 08:54:44 -0500, tedd.sperl...@gmail.com (tedd) wrote:
At 12:15 PM +1100 1/21/10, clanc...@cybec.com.au wrote:
On Wed, 20 Jan 2010 20:05:42 -0200, bsfaja...@gmail.com (Bruno
Fajardo) wrote:
>Well, I hope this informa
2010/1/22 Ashley Sheridan
> Constants are there for things that should never change. If you ever need to
> change them, then whoever created the base class either didn't think things
> through properly, or you're not. Imagine a class that sets the value of π
> (as is the erstwhile example for
At 4:18 PM + 1/22/10, Ashley Sheridan wrote:
You'd be surprised how many people still use a dumb browser!
Thankfully though, it seems that people are wising up a bit more, as
these stats from a media website show:
Safari 42624
Firefox 3.5 1320
Firefox 3
Op 1/22/10 5:19 PM, Richard Quadling schreef:
> 2010/1/22 Jochem Maas :
>> constants in interfaces are not meant for this. a class constant doesn't
>> constitute an interface. I believe constants in interfaces are allowed purely
>> because it is helpful to have them defined outside of the global sp
Op 1/22/10 5:18 PM, Ashley Sheridan schreef:
...
>
> You'd be surprised how many people still use a dumb browser!
well, no not really - but then we're in the same business :)
I wasn't discounting the use of the encoding META tag, just pointing
out that it's a hack we have to use (and that we sh
2010/1/22 Jochem Maas :
> defined()
Sits.
Ponders.
Find's gun.
Shoots self!
--
-
Richard Quadling
"Standing on the shoulders of some very clever giants!"
EE : http://www.experts-exchange.com/M_248814.html
EE4Free : http://www.experts-exchange.com/becomeAnExpert.jsp
Zend Certified Engin
On Fri, 2010-01-22 at 12:04 -0500, tedd wrote:
> At 4:18 PM + 1/22/10, Ashley Sheridan wrote:
> >
> >You'd be surprised how many people still use a dumb browser!
> >
> >Thankfully though, it seems that people are wising up a bit more, as
> >these stats from a media website show:
> >
> >Safari
Hello List.
In an earlier post, I received help with a custom function to round
decimals off (the custom function provided by Adam Richardson is below).
However in my MySQL db, when I have values with only 1 decimal point,
I need the value PHP returns to display as 2. For example, 3.8 need
Hello List.
In an earlier post, I received help with a custom function to round
decimals off (the custom function provided by Adam Richardson is
below).
However in my MySQL db, when I have values with only 1 decimal
point, I need the value PHP returns to display as 2. For example,
3.8 need
On Jan 22, 2010, at 4:24 PM, tedd wrote:
Hello List.
In an earlier post, I received help with a custom function to round
decimals off (the custom function provided by Adam Richardson is
below).
However in my MySQL db, when I have values with only 1 decimal
point, I need the value PHP r
Paul M Foster wrote:
> On Mon, Jan 11, 2010 at 04:56:03PM -0500, tedd wrote:
>
>> --Rick:
>>
>> The above described rounding algorithm introduces more bias than
>> simply using PHP's round() function, which always rounds down. IMO,
>> modifying rounding is not worth the effort.
>>
>> The "best" ro
Rick Dwyer wrote:
>
> On Jan 22, 2010, at 4:24 PM, tedd wrote:
>
>>> Hello List.
>>>
>>> In an earlier post, I received help with a custom function to round
>>> decimals off (the custom function provided by Adam Richardson is below).
>>>
>>> However in my MySQL db, when I have values with only 1
On Jan 22, 2010, at 7:30 PM, Nathan Rixham wrote:
Thanks Nathan I'll give it a shot.
--Rick
your doing the number format before the rounding.. here's a version of
the function that should fit the bill:
function round_to_half_cent( $value )
{
$value *= 100;
if( $value ==
Rick Dwyer wrote:
> On Jan 22, 2010, at 7:30 PM, Nathan Rixham wrote:
> Thanks Nathan I'll give it a shot.
>
np - here's a more condensed version:
function round_to_half_cent( $value )
{
$value = ($value*100) + 0.3;
$out = number_format( floor($value)/100 , 2 );
return $o
Thank you Nathan,
This worked quite well.
--Rick
On Jan 22, 2010, at 8:10 PM, Nathan Rixham wrote:
Rick Dwyer wrote:
On Jan 22, 2010, at 7:30 PM, Nathan Rixham wrote:
Thanks Nathan I'll give it a shot.
np - here's a more condensed version:
function round_to_half_cent( $value )
{
$
On Thu, 21 Jan 2010 22:00:30 +, a...@ashleysheridan.co.uk (Ashley Sheridan)
wrote:
>On Fri, 2010-01-22 at 08:58 +1100, clanc...@cybec.com.au wrote:
>
>> On Thu, 21 Jan 2010 08:54:44 -0500, tedd.sperl...@gmail.com (tedd) wrote:
>>
>> >At 12:15 PM +1100 1/21/10, clanc...@cybec.com.au wrote:
>>
Hi,
I have defined a stored procedure in my mySQL DB and when I call the
procedure in my mySQL browser it returns the CORRECT results:
DROP PROCEDURE IF EXISTS `Get_OHC_Years`;
DELIMITER $$
CREATE definer=`do...@`` PROCEDURE `Get_OHC_Years`()
BEGIN
SELECT (YEAR(ohc_Date)) as ohc_year FROM O
clanc...@cybec.com.au wrote:
My reasoning in using a cookie for user recognition, rather than relying on the
session
ID, was that with a cookie I could ensure that the connection effectively
lasted for some
specified period, whereas the session ID lifetime seems to be somewhat short and
ill-d
Hey all,
Can anyone recommend a good Subversion client for Ubuntu?
Thanks,
Skip
--
Skip Evans
PenguinSites.com, LLC
503 S Baldwin St, #1
Madison WI 53703
608.250.2720
http://penguinsites.com
Those of you who believe in
te
On Sat, Jan 23, 2010 at 10:58 AM, Skip Evans wrote:
> Hey all,
>
> Can anyone recommend a good Subversion client for Ubuntu?
>
If you use an ide, there should be a subversion client for it. its
better to manage from ide.
Beside this, in kubuntu or ubuntu with kde you can use kdesvn, Its great.
Do
37 matches
Mail list logo