Hi Adam! Many thanks for you quick reply and for the help. :)
On Thu, Oct 21, 2010 at 11:31 PM, Adam Richardson
> In your second example, you're directly inputing a hex number, so there's no
> issue.
Interesting... I wish I could just input the hex directly,
unfortunately I don't have that option
On Fri, Oct 22, 2010 at 1:05 AM, Micky Hulse wrote:
> Hi,
>
> I must be tired because I can't figure this out... I am sure it is
> something obvious.
>
> I need to pass a hex value to a method, but I can't figure out how to
> convert a hex string to a hex value.
>
> For exmaple:
>
> $base = '96989
Hi,
I must be tired because I can't figure this out... I am sure it is
something obvious.
I need to pass a hex value to a method, but I can't figure out how to
convert a hex string to a hex value.
For exmaple:
$base = '96989b'
my_method('0x' . $base)
The above does not work with my_method().
On Thu, Oct 21, 2010 at 19:18, Michael Shadle wrote:
> Don't let it die like Perl has! (ha, ha)
--
Network Infrastructure Manager
Documentation, Webmaster Teams
http://www.php.net/
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
On Thu, Oct 21, 2010 at 3:40 PM, Daniel Brown wrote:
> Unfortunately, Michael, while I appreciate your analogy (rarely is
> something well-balanced between wit, truth, and vivid imagery enough
> to make me laugh at the mental picture), I must point out that, in
> this case, you're incorrect.
On 2010-10-21, at 6:24 PM, Michael Shadle wrote:
> On Thu, Oct 21, 2010 at 3:12 PM, Nathan Nobbe wrote:
>
>> i've found top-posting to be useful in the corporate environment where the
>> people i'm working with are too ignorant to understand the rationale.
>> however, when you're working wit
On Thu, Oct 21, 2010 at 18:24, Michael Shadle wrote:
>
> note, that i take the time to bottom-post and clean up emails when i
> have time, but if i don't, i don't. people discuss things for
> discussion, they don't discuss things because they care how it is
> placed. that's like getting a present
On Thu, Oct 21, 2010 at 4:24 PM, Michael Shadle wrote:
> On Thu, Oct 21, 2010 at 3:12 PM, Nathan Nobbe
> wrote:
>
> > i've found top-posting to be useful in the corporate environment where
> the
> > people i'm working with are too ignorant to understand the rationale.
> > however, when you're w
On Thu, Oct 21, 2010 at 3:12 PM, Nathan Nobbe wrote:
> i've found top-posting to be useful in the corporate environment where the
> people i'm working with are too ignorant to understand the rationale.
> however, when you're working with programmers, i think the expectation is
> more than reason
On Thu, Oct 21, 2010 at 2:33 PM, Michael Shadle wrote:
> On Thu, Oct 21, 2010 at 1:21 PM, Nathan Nobbe
> wrote:
>
> > what does syntax highlighting have to do w/ a mess of text that could be
> > sorted out by folks willing to take the extra 2 seconds to put their
> > thoughts at the bottom of a
hello dear List
i have a Problem with the Parsing of a html-document:
I tried to run the following perl parser script on the HTML further below...
but i was not lucky - so now i want to try it with PHP - i head about
DomDocument - this should save my backside
i have to get involved with Dom
Toilet seat. Up or down. Same thing? Sort of.
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
I've had a few emails from people making the same request, so what I'm
gonna do is stick them up someplace public like SourceForge or
whatever in the public domain for anyone who wants them.
Legal disclaimer: Please note that, though these have been reviewed
by the legal departments of my past cl
On Thu, Oct 21, 2010 at 4:33 PM, Michael Shadle wrote:
> On Thu, Oct 21, 2010 at 1:21 PM, Nathan Nobbe wrote:
>
>> what does syntax highlighting have to do w/ a mess of text that could be
>> sorted out by folks willing to take the extra 2 seconds to put their
>> thoughts at the bottom of a mail?
On Thu, Oct 21, 2010 at 1:21 PM, Nathan Nobbe wrote:
> what does syntax highlighting have to do w/ a mess of text that could be
> sorted out by folks willing to take the extra 2 seconds to put their
> thoughts at the bottom of a mail?
> i doubt there are any web-based lists that reorganize top-po
On Thu, Oct 21, 2010 at 2:15 PM, Michael Shadle wrote:
> On Thu, Oct 21, 2010 at 12:56 PM, Nathan Nobbe
> wrote:
>
> > um, right, the whole point is that the conversations are not being viewed
> > through mail clients when people are finding them via search engines on
> the
> > web.
> > and some
On Thu, Oct 21, 2010 at 12:56 PM, Nathan Nobbe wrote:
> um, right, the whole point is that the conversations are not being viewed
> through mail clients when people are finding them via search engines on the
> web.
> and some mail clients are dumber than others, lol.
a lot of the time even the w
On 21 October 2010 21:01, Jay Blanchard wrote:
> [snip]
> Orwellian!
> [/snip]
>
> "Nazi's did it!"
!Godwin!
--
Richard Quadling
Twitter : EE : Zend
@RQuadling : e-e.com/M_248814.html : bit.ly/9O8vFY
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/u
[snip]
Orwellian!
[/snip]
"Nazi's did it!"
"Why?"
"Top posting is bad!"
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Ok, I agree with most of those points, but why should I, or anyone, have
to trim down someone else's 'signature', and I'm talking about these
silly ones which are 10 or 20 lines long stating 'If you have received
this email in error.blah, blah, blah'..surely, the banning of that,
along with
On Thu, Oct 21, 2010 at 1:51 PM, Michael Shadle wrote:
> in fact, it's easier to read on mobile devices such as an iphone. it's
> also easier to reply.
>
> email clients like google will hide the common lines anyway.
>
> to me this comes on the heels of a presentation i just read about
> "there's
On Thu, Oct 21, 2010 at 12:42 PM, Larry Martell
wrote:
> http://idallen.com/topposting.html
top posting is no big IMHO.
in fact, it's easier to read on mobile devices such as an iphone. it's
also easier to reply.
email clients like google will hide the common lines anyway.
to me this comes on
Let's adhere to the rules.
--Shreyas
On Fri, Oct 22, 2010 at 1:15 AM, Per Jessen wrote:
> sueandant wrote:
>
> > Hi
> >
> > I'm not familiatr with the term "top-post"; could you please explain?
>
> http://lmgtfy.com/?q=top-post
>
>
>
> --
> Per Jessen, Zürich (3.7°C)
>
>
> --
> PHP General Mail
sueandant wrote:
> Hi
>
> I'm not familiatr with the term "top-post"; could you please explain?
http://lmgtfy.com/?q=top-post
--
Per Jessen, Zürich (3.7°C)
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
This is top-posting.
On Thu, Oct 21, 2010 at 15:37, sueandant wrote:
>
> I'm not familiatr with the term "top-post"; could you please explain?
What you did, posting your message at the end of the email, is in
adherence with the rules.
--
Network Infrastructure Manager
Documentation, W
On 21 October 2010 16:25, Daniel Brown wrote:
* snip *
> The ultimate goal here isn't to start a flame war (or even any
> further discussion on the subject for that matter), but to point out
> that this is a RULE of the official community here, not a PREFERENCE.
>
If only the thread had ende
On Thu, Oct 21, 2010 at 1:37 PM, sueandant wrote:
> Hi
>
> I'm not familiatr with the term "top-post"; could you please explain?
http://idallen.com/topposting.html
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
- Original Message -
From: "Daniel Brown"
To: "PHP General"
Sent: Thursday, October 21, 2010 3:25 PM
Subject: [PHP] Reminder On Mailing List Rules
Hey, Folks;
Just a gentle reminder after watching things get worse by the day:
it is one of the rules of this and all official p
I found this terrific tool for creating dynamic zip files:
http://pablotron.org/software/zipstream-php/
--
Dotan Cohen
http://gibberish.co.il
http://what-is-what.com
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
On Thu, Oct 21, 2010 at 5:39 AM, Gary wrote:
> Is there any nice way to convert a string containing either "TRUE" or
> "FALSE" to a bool with the appropriate value? I know I can just "if
> (strcmp..." but, as the song goes on to say "...ugly, so ugly, it's
> ugly"[1]
>
> Footnotes:
> [1] "Mask",
Daniel P. Brown wrote:
> On Wed, Oct 20, 2010 at 21:04, Bastien wrote:
>> Yeah, it's got a few downsides!
>
> The next app for the iPhone should be a modification to the
> spell-check to verify PHP functions in emails.
>
+1
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe,
On Thu, 2010-10-21 at 12:14 -0400, Paul M Foster wrote:
> On Thu, Oct 21, 2010 at 10:47:53AM -0400, Daniel Brown wrote:
>
> > On Thu, Oct 21, 2010 at 10:41, Robert Cummings wrote:
> > >
> > > I can't speak for everyone here (or who is no longer here)... but my posts
> > > have dwindled significa
On Thu, 2010-10-21 at 11:58 -0400, Paul M Foster wrote:
> On Thu, Oct 21, 2010 at 04:30:03PM +0100, Ashley Sheridan wrote:
>
> [snip]
>
> >
> > I always bottom post when I'm replying from my computer, but when on the
> > move or at work, I'm only left with my Android, and the default email
> >
On Thu, Oct 21, 2010 at 09:37:16AM -0600, Nathan Nobbe wrote:
> On Thu, Oct 21, 2010 at 8:47 AM, Daniel Brown wrote:
>
> > On Thu, Oct 21, 2010 at 10:41, Robert Cummings
> > wrote:
> > >
> > > I can't speak for everyone here (or who is no longer here)... but my
> > posts
> > > have dwindled sig
[snip]
I still hop on threads from time to time, just a lot more picky about
which
ones any more. >ducks<
[/snip]
I seem to go through phases, but I always read. I had gotten away from
everyday coding due to work needs (leading a team of PHP'ers) but have
always tried to keep learning. I may have
On Thu, Oct 21, 2010 at 10:47:53AM -0400, Daniel Brown wrote:
> On Thu, Oct 21, 2010 at 10:41, Robert Cummings wrote:
> >
> > I can't speak for everyone here (or who is no longer here)... but my posts
> > have dwindled significantly due to work and family time constraints :|
>
> Same here, b
On Thu, Oct 21, 2010 at 8:47 AM, Daniel Brown wrote:
> On Thu, Oct 21, 2010 at 10:41, Robert Cummings
> wrote:
> >
> > I can't speak for everyone here (or who is no longer here)... but my
> posts
> > have dwindled significantly due to work and family time constraints :|
>
> Same here, but is
On Oct 21, 2010, at 10:47 AM, Daniel Brown wrote:
> On Thu, Oct 21, 2010 at 10:41, Robert Cummings wrote:
>>
>> I can't speak for everyone here (or who is no longer here)... but my posts
>> have dwindled significantly due to work and family time constraints :|
>
>Same here, but isn't it a
On Thu, Oct 21, 2010 at 04:30:03PM +0100, Ashley Sheridan wrote:
[snip]
>
> I always bottom post when I'm replying from my computer, but when on the
> move or at work, I'm only left with my Android, and the default email
> client doesn't allow reply positioning of any sort, so it's always
> top-
[snip]
.
[/snip]
Fondly remembers mailing list guidelines that used to go out about once
a week when someone would send them, including the section that said
something to the effect of;
"Why?"
"Top posting is bad!"
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http
On Thu, 2010-10-21 at 08:01 +0200, Peter Lind wrote:
> On 21 October 2010 04:59, David McGlone wrote:
> > On Thu, 2010-10-21 at 04:05 +0200, Rico Secada wrote:
> >> Hi.
> >>
> >> I am working on a small system where I am both trying to avoid code
> >> duplication and at the same time I am trying t
On 21 October 2010 15:53, Bastien Koert wrote:
> Parenting ruins everything ;-)
Ideally, yes.
--
Richard Quadling
Twitter : EE : Zend
@RQuadling : e-e.com/M_248814.html : bit.ly/9O8vFY
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
On Thu, Oct 21, 2010 at 10:47 AM, Daniel Brown wrote:
> On Thu, Oct 21, 2010 at 10:41, Robert Cummings wrote:
>>
>> I can't speak for everyone here (or who is no longer here)... but my posts
>> have dwindled significantly due to work and family time constraints :|
>
> Same here, but isn't it a
On Thu, Oct 21, 2010 at 04:05:50AM +0200, Rico Secada wrote:
> Hi.
>
> I am working on a small system where I am both trying to avoid code
> duplication and at the same time I am trying to keep the presentation
> logic separated from the application logic.
>
> I am using sessions and are avoidin
On Thu, Oct 21, 2010 at 10:41, Robert Cummings wrote:
>
> I can't speak for everyone here (or who is no longer here)... but my posts
> have dwindled significantly due to work and family time constraints :|
Same here, but isn't it a bit eerie that many of us hit that same
point almost simultan
On 10-10-21 10:25 AM, Daniel Brown wrote:
P.S. - Those of you who have been around for years will likely
recall with some fondness the level of respect, participation, and
quality of discussions this list once had; the degree of mutual
respect and camaraderie was palpable. If you're wonderi
On Thu, Oct 21, 2010 at 10:34, Bastien Koert wrote:
>
> iphone has the same problem. Cutting and pasting is the only way that
> i have of dealing with it...and I do try to accommodate that when i
> can
I wonder if we have any lurking iPhone and/or Android app
developers here who would be will
On Thu, 2010-10-21 at 10:37 -0400, Daniel Brown wrote:
> On Thu, Oct 21, 2010 at 11:30, Ashley Sheridan
> wrote:
> >
> > I always bottom post when I'm replying from my computer, but when on the
> > move or at work, I'm only left with my Android, and the default email
> > client doesn't allow r
On Thu, Oct 21, 2010 at 11:30, Ashley Sheridan
wrote:
>
> I always bottom post when I'm replying from my computer, but when on the move
> or at work, I'm only left with my Android, and the default email client
> doesn't allow reply positioning of any sort, so it's always top-posting :(
>
> Does
On Wed, Oct 20, 2010 at 05:47:12PM -0700, Kris Craig wrote:
> Hi musicdev,
>
> There are a couple issues I think need to be addressed with what youd
> described. First and foremost, $20/hr is considerably below the going
> rate for PHP work, especially for projects as large as the one you're
> t
On Thu, Oct 21, 2010 at 11:30 AM, Ashley Sheridan
wrote:
> On Thu, 2010-10-21 at 10:25 -0400, Daniel Brown wrote:
>
>> Hey, Folks;
>>
>> Just a gentle reminder after watching things get worse by the day:
>> it is one of the rules of this and all official php.net mailing lists
>> that you must
On Thu, 2010-10-21 at 10:25 -0400, Daniel Brown wrote:
> Hey, Folks;
>
> Just a gentle reminder after watching things get worse by the day:
> it is one of the rules of this and all official php.net mailing lists
> that you must not top-post.
>
> For anyone wondering just one of the reaso
Hey, Folks;
Just a gentle reminder after watching things get worse by the day:
it is one of the rules of this and all official php.net mailing lists
that you must not top-post.
For anyone wondering just one of the reasons why we have this rule
in effect, tab through this thread in the
On Wed, Oct 20, 2010 at 08:08:21PM -0400, music...@gmail.com wrote:
> Hi List,
>
> I'm currently working on a medium sized project as an independent
> contractor. The project is reaching the 2000 hour range and the
> client has asked for a project cost. The problem I have in providing
> the cli
On 10-10-21 09:24 AM, Gary wrote:
Jay Blanchard wrote:
You could even create a function that is more readable than the 'if'
alone;
Of course I can. I could also record an explanation, convert it to mp3,
host it on a website, and include the URL in a comment.
You removed the text in my post th
[snip]
You removed the text in my post that you replied to which said "I was
just wondering whether I had missed some construct in the language".
[/snip]
Yes, I read that and snipped it. I was just referring to the
"readability" statement.
--
PHP General Mailing List (http://www.php.net/)
To uns
settype looks like a no-go for this; per the php docs...
http://php.net/manual/en/function.settype.php
--
$bar = true; // boolean
settype($bar, "string"); // $bar is now "1" (string)
--
I think using a conditional here is the best (only?) way.
$bool = (strtolower($string)=='true')? tr
On 21 October 2010 14:13, Midhun Girish wrote:
> | Name | phone |userid|
>
> ++--+--+
>
> | Mr Sasi | 01225 708225 | 1 |
>
> | Miss Brown | 01225 899360 | 2 |
>
> | Mr Black | 01380 724040 | 3 |
>
> ++--+--+
> Table B
>
> ++--
hai all,
I have two tables a and b as follows to implement a simple block list where
users can block other users.
Table A
++--+--+
| Name | phone |userid|
++--+--+
| Mr Sasi | 01225 708225 | 1 |
| Miss Brown | 01225 899360 | 2 |
| M
On 10-10-21 06:39 AM, Gary wrote:
Russell Dias wrote:
preg_match("/false/i", $string) ? false : true;
,
| $foo = (strcmp('true', $string) == 0);
`
works as well :) I don't like those kinds of things for this purpose
because it takes longer for people new to the code to read and
unders
Really interesting thread :D . Why go for other methods when you can
do it easily using if Is this an exercise or something?
Midhun Girish
Development Lead
MobAlive Technologies
Trivandrum
On 21 October 2010 12:42, Richard Quadling wrote:
> On 21 October 2010 10:39, Gary wrote:
>> Is there any nice way to convert a string containing either "TRUE" or
>> "FALSE" to a bool with the appropriate value? I know I can just "if
>> (strcmp..." but, as the song goes on to say "...ugly, so ugl
On 21 October 2010 10:39, Gary wrote:
> Is there any nice way to convert a string containing either "TRUE" or
> "FALSE" to a bool with the appropriate value? I know I can just "if
> (strcmp..." but, as the song goes on to say "...ugly, so ugly, it's ugly"[1]
What is the response when the string i
On 21 October 2010 10:39, Gary wrote:
> Is there any nice way to convert a string containing either "TRUE" or
> "FALSE" to a bool with the appropriate value? I know I can just "if
> (strcmp..." but, as the song goes on to say "...ugly, so ugly, it's ugly"[1]
>
> Footnotes:
> [1] "Mask", Henry Rol
[snip]
> preg_match("/false/i", $string) ? false : true;
,
| $foo = (strcmp('true', $string) == 0);
`
works as well :) I don't like those kinds of things for this purpose
because it takes longer for people new to the code to read and
understand it than, say
,
| (boolean) $string;
`
On Thu, Oct 21, 2010 at 08:15:40PM +1000, Russell Dias wrote:
> Whats wrong with an if *construct* ? I understand that the ternary
> operator is another way of doing it. Using it in such a small scenario
> is perfectly justifiable. Its ridiculous to use in more complicated
> scenarious because of r
I would stay clear of the ternary operator in nested coditions, for
obvious reasons. If it can fit in a single line and is essentially
clear in its message I dont see why not to use it.
On Thu, Oct 21, 2010 at 8:39 PM, Gary wrote:
> Russell Dias wrote:
>
>> preg_match("/false/i", $string) ? false
>-Original Message-
>From: Gary [mailto:php-gene...@garydjones.name]
>Sent: 21 October 2010 11:39
>To: php-general@lists.php.net
>Subject: [PHP] Re: "My truth comes out" [1]
>
>Russell Dias wrote:
>
> preg_match("/false/i", $string) ? false : true;
>
>,
>| $foo = (strcmp('true', $strin
On Wed, Oct 20, 2010 at 07:02:49PM -0400, ad...@buskirkgraphics.com wrote:
> Hm
>
> I guess the little person inside, just hates the long way of doing
> something.
>
>
> My suggestion
>
> $CD = 1287583899;
> $q1s = 1283313600;
> $q1e = 1291093200;
> $q2s = 1291179600;
> $q2e = 1298869200;
>
Whats wrong with an if *construct* ? I understand that the ternary
operator is another way of doing it. Using it in such a small scenario
is perfectly justifiable. Its ridiculous to use in more complicated
scenarious because of readability issues.
Direct string comparison? You suggested yet anothe
Because it is an if statement, just in a different form, and preg_match is more
computational expensive than a direct string comparison.
Thanks,
Ash
http://www.ashleysheridan.co.uk
- Reply message -
From: "Russell Dias"
Date: Thu, Oct 21, 2010 11:03
Subject: [PHP] "My truth comes out" [
I'm curious to know why 'thats as bad as an if' ?
It's simple, concise, understandble and does the job. So, I'm curious
to know why exactly its bad?
On Thu, Oct 21, 2010 at 8:01 PM, a...@ashleysheridan.co.uk
wrote:
> That's as bad as an if!
>
> What about using settype() on the string? I've not
That's as bad as an if!
What about using settype() on the string? I've not tested it, but it looks like
it should do the trick.
Thanks,
Ash
http://www.ashleysheridan.co.uk
- Reply message -
From: "Russell Dias"
Date: Thu, Oct 21, 2010 10:51
Subject: [PHP] "My truth comes out" [1]
To:
preg_match("/false/i", $string) ? false : true;
On Thu, Oct 21, 2010 at 7:39 PM, Gary wrote:
> Is there any nice way to convert a string containing either "TRUE" or
> "FALSE" to a bool with the appropriate value? I know I can just "if
> (strcmp..." but, as the song goes on to say "...ugly, so u
Bit late to this one, but what about an mvc framework like codeigniter? It's
perfectly acceptable to use if statements and loops in the view, which would
solve your problem. You can set a trigger variable in the controller, and in
the header view, check to see if its set and output your javascri
75 matches
Mail list logo