'Twas brillig, and sexyprout at 06/03/11 15:16 did gyre and gimble:
∞
And beyond!
--
Colin Guthrie
gmane(at)colin.guthr.ie
http://colin.guthr.ie/
Day Job:
Tribalogic Limited [http://www.tribalogic.net/]
Open Source:
Mageia Contributor [http://www.mageia.org/]
PulseAudio Hacker [http
to stop older versions of IE from exploding... these
probably are not worth worrying about these days tho')
Col
--
Colin Guthrie
gmane(at)colin.guthr.ie
http://colin.guthr.ie/
Day Job:
Tribalogic Limited [http://www.tribalogic.net/]
Open Source:
Mageia Contributor [http://www.mageia.org
--
Colin Guthrie
gmane(at)colin.guthr.ie
http://colin.guthr.ie/
Day Job:
Tribalogic Limited [http://www.tribalogic.net/]
Open Source:
Mageia Contributor [http://www.mageia.org/]
PulseAudio Hacker [http://www.pulseaudio.org/]
Trac Hacker [http://trac.edgewall.org/]
--
PHP General Mailing
reasons/arguments for preferring the other way.
WDYT?
Col
--
Colin Guthrie
gmane(at)colin.guthr.ie
http://colin.guthr.ie/
Day Job:
Tribalogic Limited [http://www.tribalogic.net/]
Open Source:
Mageia Contributor [http://www.mageia.org/]
PulseAudio Hacker [http://www.pulseaudio.org
');
$main_class-doSomething( 'foo' );
--
Colin Guthrie
gmane(at)colin.guthr.ie
http://colin.guthr.ie/
Day Job:
Tribalogic Limited [http://www.tribalogic.net/]
Open Source:
Mageia Contributor [http://www.mageia.org/]
PulseAudio Hacker [http://www.pulseaudio.org/]
Trac Hacker [http
PHP 5.3
CentOS has not released even a beta 6 version yet that supports PHP 5.2+
The *official* RPMs for CentOS 5.5 are PHP 5.1.6 but there are plenty
third party repos where never versions are made available.
e.g. http://iuscommunity.org/getting-started/
HTHs
Col
--
Colin Guthrie
gmane
about these things rather and learn
about the consequences than just blunder on and hope for the best. This
module will result in a bit of dumbing down of devs, but that's not to
say I'm against it generally.
Col
--
Colin Guthrie
gmane(at)colin.guthr.ie
http://colin.guthr.ie/
Day Job:
Tribalogic
to make it more streamlined.
Col
--
Colin Guthrie
gmane(at)colin.guthr.ie
http://colin.guthr.ie/
Day Job:
Tribalogic Limited [http://www.tribalogic.net/]
Open Source:
Mageia Contributor [http://www.mageia.org/]
PulseAudio Hacker [http://www.pulseaudio.org/]
Trac Hacker [http
for a while.
Col
--
Colin Guthrie
gmane(at)colin.guthr.ie
http://colin.guthr.ie/
Day Job:
Tribalogic Limited [http://www.tribalogic.net/]
Open Source:
Mageia Contributor [http://www.mageia.org/]
PulseAudio Hacker [http://www.pulseaudio.org/]
Trac Hacker [http://trac.edgewall.org
the variable type
is. In this case it's a 32 bit integer number.
Col
--
Colin Guthrie
gmane(at)colin.guthr.ie
http://colin.guthr.ie/
Day Job:
Tribalogic Limited [http://www.tribalogic.net/]
Open Source:
Mandriva Linux Contributor [http://www.mandriva.com/]
PulseAudio Hacker [http
(apache-mod_php) or cgi
(php-cgi). I work with LAMP stacks on various flavours servers and I
find the Mandriva one to be very, very well thought out, and very
flexibly mainly due to the excellent work of Oden Ericsson.
Col
--
Colin Guthrie
gmane(at)colin.guthr.ie
http://colin.guthr.ie/
Day Job
proxy
ultimately cause problems for some users (i.e. storing a cache for page
1 and page 2 of the same listing but with different randomisations)? And
if so can this be mitigated?
Thanks for reading and any insights you may have!
Col
--
Colin Guthrie
gmane(at)colin.guthr.ie
http
net
result as a 32 column table. If I just change my seed offset then I
get the same result as re-generating my random data tables.
From an operational perspective, RAND(seed) is certainly easier.
I'll certainly look into this. Many thanks.
Col
--
Colin Guthrie
gmane(at)colin.guthr.ie
http
--
Colin Guthrie
gmane(at)colin.guthr.ie
http://colin.guthr.ie/
Day Job:
Tribalogic Limited [http://www.tribalogic.net/]
Open Source:
Mandriva Linux Contributor [http://www.mandriva.com/]
PulseAudio Hacker [http://www.pulseaudio.org/]
Trac Hacker [http://trac.edgewall.org/]
--
PHP General
'Twas brillig, and Andrew Ballard at 20/08/10 15:04 did gyre and gimble:
On Fri, Aug 20, 2010 at 9:31 AM, Colin Guthrie gm...@colin.guthr.ie wrote:
Speaking of SEO, that was one of our concerns about randomising listings
too. What impact do you think such randomised listings will have on SEO
a solid control over it and make sure
that the name were relevant and accurate!
Col
--
Colin Guthrie
gmane(at)colin.guthr.ie
http://colin.guthr.ie/
Day Job:
Tribalogic Limited [http://www.tribalogic.net/]
Open Source:
Mandriva Linux Contributor [http://www.mandriva.com/]
PulseAudio
for the two LSBs and 0's for all other bits).
FWIW, the fact that ~2 == -3 is due to twos compliment binary notation:
http://en.wikipedia.org/wiki/Twos_Compliment
Col
--
Colin Guthrie
gmane(at)colin.guthr.ie
http://colin.guthr.ie/
Day Job:
Tribalogic Limited [http://www.tribalogic.net
'Twas brillig, and Andrew Ballard at 20/08/10 15:55 did gyre and gimble:
On Fri, Aug 20, 2010 at 10:19 AM, Colin Guthrie gm...@colin.guthr.ie wrote:
The customer is always right - in his own mind (even if not in his RIGHT
mind) - after all!
Corrected that for you. ;-)
:D
--
Colin
do need to sit down and learn how
everything works and how things fit together.
As you're presumably just starting out, I'd recommend sticking to the
basics, install task-lamp and then go from there.
HTHs
Col
--
Colin Guthrie
gmane(at)colin.guthr.ie
http://colin.guthr.ie/
Day Job
don't know the internals of APC but that smells like a bug to me.
Can you post the bug number here if you report one?
Cheers
Col
--
Colin Guthrie
gmane(at)colin.guthr.ie
http://colin.guthr.ie/
Day Job:
Tribalogic Limited [http://www.tribalogic.net/]
Open Source:
Mandriva Linux Contributor
?
Rather than check if an appropriate sized image is available then the
image is requested, why not check when you generate the link to the the
image? If when you generate the link it is NOT available, do the
necessary stuff to generate it and upload to AWS, then carry on.
Col
--
Colin Guthrie
:
ini_set('memory_limit', '50M');
and you'll be fine.
Col
--
Colin Guthrie
gmane(at)colin.guthr.ie
http://colin.guthr.ie/
Day Job:
Tribalogic Limited [http://www.tribalogic.net/]
Open Source:
Mandriva Linux Contributor [http://www.mandriva.com/]
PulseAudio Hacker [http
the relevant authorities. I couldn't remember
off-hand where it came from so figured I'd not blame PHP just yet :p
Cheers
Col
--
Colin Guthrie
gmane(at)colin.guthr.ie
http://colin.guthr.ie/
Day Job:
Tribalogic Limited [http://www.tribalogic.net/]
Open Source:
Mandriva Linux Contributor [http
* password. If you user is allowed
to administer the machine, you should become root temporarily and run
the command.
If you run several sudo commands in relatively quick succession, you
wont have to type your password in again.
Col
--
Colin Guthrie
gmane(at)colin.guthr.ie
http://colin.guthr.ie
name
as a type specifier on an argument to another function/method etc.
Col
--
Colin Guthrie
gmane(at)colin.guthr.ie
http://colin.guthr.ie/
Day Job:
Tribalogic Limited [http://www.tribalogic.net/]
Open Source:
Mandriva Linux Contributor [http://www.mandriva.com/]
PulseAudio Hacker [http
I found on this issue which explains it
a bit.
http://codeutopia.net/blog/2009/03/06/sending-files-better-apache-mod_xsendfile-and-php/
Col
--
Colin Guthrie
gmane(at)colin.guthr.ie
http://colin.guthr.ie/
Day Job:
Tribalogic Limited [http://www.tribalogic.net/]
Open Source:
Mandriva Linux
has been satisfied
(i.e. ultimately I don't fully agree with you! :p).
Cheers
Col
--
Colin Guthrie
gmane(at)colin.guthr.ie
http://colin.guthr.ie/
Day Job:
Tribalogic Limited [http://www.tribalogic.net/]
Open Source:
Mandriva Linux Contributor [http://www.mandriva.com/]
PulseAudio
doing tests
on other dbs etc. is a pretty simple switch of the connection code.
Also telling the db engine what database you want to use in every query
is not, IMO, leaving the selection in the the database's hands.
Just curious as to the rationale here :)
Col
--
Colin Guthrie
gmane
system.
HTHs
Col.
--
Colin Guthrie
gmane(at)colin.guthr.ie
http://colin.guthr.ie/
Day Job:
Tribalogic Limited [http://www.tribalogic.net/]
Open Source:
Mandriva Linux Contributor [http://www.mandriva.com/]
PulseAudio Hacker [http://www.pulseaudio.org/]
Trac Hacker [http
of array
definitions to cut down on VCS diff/patch churn. Excellent :)
Col
--
Colin Guthrie
gmane(at)colin.guthr.ie
http://colin.guthr.ie/
Day Job:
Tribalogic Limited [http://www.tribalogic.net/]
Open Source:
Mandriva Linux Contributor [http://www.mandriva.com/]
PulseAudio Hacker [http
bobbing around
downstairs.
I hope they've gone to Silicon Heaven.
Sad news indeed.
Col
PS Oh yeah and congrats on the whole baby thing too although it's hardly
the most poignant story :p
--
Colin Guthrie
gmane(at)colin.guthr.ie
http://colin.guthr.ie/
Day Job:
Tribalogic Limited [http
) == false
empty(2) == false
empty('foo') == false
I suspect you were just being bitten by a misconception of what empty()
was supposed to do when you passed certain values to it.
isset() and empty() are subtly different.
Col
--
Colin Guthrie
gmane(at)colin.guthr.ie
http://colin.guthr.ie/
Day Job
for file upload
built in.
http://www.framework.zend.com/manual/en/zend.file.html#zend.file.transfer.introduction.uploadprogress
HTHs
Col
--
Colin Guthrie
gmane(at)colin.guthr.ie
http://colin.guthr.ie/
Day Job:
Tribalogic Limited [http://www.tribalogic.net/]
Open Source:
Mandriva Linux
the newer stuff from PHP 5.3.
That's probably the way I'd go, and you can give people some prior
warning to try and get a PHP 5.3 install up and running for the x'th
week of the course.
Col
--
Colin Guthrie
gmane(at)colin.guthr.ie
http://colin.guthr.ie/
Day Job:
Tribalogic Limited [http
--
Colin Guthrie
gmane(at)colin.guthr.ie
http://colin.guthr.ie/
Day Job:
Tribalogic Limited [http://www.tribalogic.net/]
Open Source:
Mandriva Linux Contributor [http://www.mandriva.com/]
PulseAudio Hacker [http://www.pulseaudio.org/]
Trac Hacker [http://trac.edgewall.org/]
--
PHP General
enforces the use of the getInstance() method.
This is a very common design pattern, and is ideally suited to this use
case.
HTHs
Col
--
Colin Guthrie
gmane(at)colin.guthr.ie
http://colin.guthr.ie/
Day Job:
Tribalogic Limited [http://www.tribalogic.net/]
Open Source:
Mandriva Linux
'Twas brillig, and Larry Garfield at 02/05/09 20:00 did gyre and gimble:
On Saturday 02 May 2009 9:30:09 am Colin Guthrie wrote:
'Twas brillig, and Paul M Foster at 02/05/09 06:07 did gyre and gimble:
If this is going away, how do you return things by reference, so as to
ensure a single copy
?
Proposal and discussion page is here for the overall Zend_Payment concept:
http://framework.zend.com/wiki/display/ZFPROP/Zend_Payment+-+Vadim+Gabriel
But check the zend framework general mailing list archive for better
information.
Col
--
Colin Guthrie
gmane(at)colin.guthr.ie
http
an API function.
Also, most of the cases that you would use these functions are with
input from GET args and the like. Most frameworks provides wrappers for
this with handy ways to get the defaults etc.
So overall, I can't see this becoming a core PHP feature.
Col
--
Colin Guthrie
gmane
with?
Col
--
Colin Guthrie
gmane(at)colin.guthr.ie
http://colin.guthr.ie/
Day Job:
Tribalogic Limited [http://www.tribalogic.net/]
Open Source:
Mandriva Linux Contributor [http://www.mandriva.com/]
PulseAudio Hacker [http://www.pulseaudio.org/]
Trac Hacker [http://trac.edgewall.org
* a.dat not it's
contents. You probably want to use cat instead.
3. You care redirecting () rather than piping (|).
So waht you really want is:
cat a.dat | sha1sum
(the -t is not needed).
You can also do:
echo -n 1234567890 | sha1sum
Col
--
Colin Guthrie
gmane(at)colin.guthr.ie
http
;)
Of course this may not be appropriate in this circumstance.
Col
--
Colin Guthrie
gmane(at)colin.guthr.ie
http://colin.guthr.ie/
Day Job:
Tribalogic Limited [http://www.tribalogic.net/]
Open Source:
Mandriva Linux Contributor [http://www.mandriva.com/]
PulseAudio Hacker [http
webserver
via http://private.office.com/;.
If you wanted to access the office web server on your local machine you
would do:
ssh -L 8080:private.office.com:80 m...@my.office.com
Then you would point your browser at:
http://localhost:8080/
And you should see your office website.
Col
--
Colin
() properly. Perhaps slap all
your files somewhere so we can download and test for you.
Col
--
Colin Guthrie
gmane(at)colin.guthr.ie
http://colin.guthr.ie/
Day Job:
Tribalogic Limited [http://www.tribalogic.net/]
Open Source:
Mandriva Linux Contributor [http://www.mandriva.com/]
PulseAudio Hacker
://www.w3.org/1999/XSL/Transform;
xsl:template match=/
html
head
XSL needs to know that you are outputting XML-derived data...
eg. try putting this before your xsl:template:
xsl:output method=html indent=no encoding=UTF-8
omit-xml-declaration=yes/
Col
--
Colin Guthrie
gmane
'Twas brillig, and Michael A. Peters at 16/02/09 00:10 did gyre and gimble:
Colin Guthrie wrote:
'Twas brillig, and German Geek at 15/02/09 22:32 did gyre and gimble:
Please enlighten me why it is so expensive? Is it maybe just the
hassle of
setting it up?
The whole thing is about trust
'Twas brillig, and Richard Heyes at 16/02/09 15:04 did gyre and gimble:
...
Sorry, should've mentioned, I'm talking about PHP6.
Not heard about it but I'd like it. Short tags are evil but the ?=
thing is pretty handy so having a ?php= option would suit me quite nicely.
Col
--
Colin
'Twas brillig, and Per Jessen at 16/02/09 13:49 did gyre and gimble:
Colin Guthrie wrote:
Yeah the cheap CA's are IMO actually a problem.
I (personally) think we should have a new system for this scenario:
http:// = totally insecure
https:// = secure and to a reasonable degree of trust (e.g
'Twas brillig, and Eric Butera at 16/02/09 20:01 did gyre and gimble:
On Mon, Feb 16, 2009 at 2:58 PM, Colin Guthrie gm...@colin.guthr.ie wrote:
'Twas brillig, and Richard Heyes at 16/02/09 15:04 did gyre and gimble:
Those reply lines are funny. =)
Can't take credit as I saw someone else
.
Col
--
Colin Guthrie
gmane(at)colin.guthr.ie
http://colin.guthr.ie/
Day Job:
Tribalogic Limited [http://www.tribalogic.net/]
Open Source:
Mandriva Linux Contributor [http://www.mandriva.com/]
PulseAudio Hacker [http://www.pulseaudio.org/]
Trac Hacker [http://trac.edgewall.org/]
--
PHP
manages to get a secure certificate for a domain they do not own they
could then use some form of DNS hijacking (e.g. via an open wireless
network or similar) to perform some pretty convincing phishing scams.
So it's not just about the cert. It's the trust that goes with it.
Col
--
Colin Guthrie
The PHP Group
Zend Engine v2.2.0, Copyright (c) 1998-2009 Zend Technologies
You should report the bug:
http://bugs.php.net/
Col
--
Colin Guthrie
gmane(at)colin.guthr.ie
http://colin.guthr.ie/
Day Job:
Tribalogic Limited [http://www.tribalogic.net/]
Open Source:
Mandriva Linux Contributor
'Twas brillig, and Jochem Maas at 12/02/09 12:47 did gyre and gimble:
Colin Guthrie schreef:
'Twas brillig, and Nick Cooper at 12/02/09 11:38 did gyre and gimble:
Outputs:
a1: 09d264fcececf51c822c9382b40e3edf
a2: 45701af64172cbc2a33069dfed73fd07
a3: 09d264fcececf51c822c9382b40e3edf
a4
threading wise. It has various locking mechanisms that you can compile
in to APC, including filelocks, IPC semaphores, spinlocks and pthread
mutexes.
So while I don't want to comment inaccurately, I suspect that APC is
pretty solid in this area.
Col
--
Colin Guthrie
gmane(at)colin.guthr.ie
).
If you don't want any output, make sure your catch block first calls
ob_end_clean() before it exits.
Col
--
Colin Guthrie
gmane(at)colin.guthr.ie
http://colin.guthr.ie/
Day Job:
Tribalogic Limited [http://www.tribalogic.net/]
Open Source:
Mandriva Linux Contributor [http://www.mandriva.com
invested in Trac (and the plugins I wrote)
to jump ship right now.
I wish you all the best of luck tho', and I'll monitor this to see what
progress you make :)
Col
--
Colin Guthrie
gmane(at)colin.guthr.ie
http://colin.guthr.ie/
Day Job:
Tribalogic Limited [http://www.tribalogic.net/]
Open
) for you.
Col
PS FWIW, I have adopted Zend_Framework and while some of the paradigms
don't fully suit me I have extended and adapted them to make it work
very well for me.
--
Colin Guthrie
gmane(at)colin.guthr.ie
http://colin.guthr.ie/
Day Job:
Tribalogic Limited [http://www.tribalogic.net
it to be efficient, you can format your code in such
a way that a script would process your files and comment out all the log
calls. Depends whether it's worth the effort to do this really!
Col
--
Colin Guthrie
gmane(at)colin.guthr.ie
http://colin.guthr.ie/
Day Job:
Tribalogic Limited [http
.
The other way of doing it would be to insert a row into a database row
with an auto-increment field and use the value of that auto-incrment
field as your identifier (SELECT LAST_INSERT_ID() in mysql or via the db
layers API).
HTHs
Col
--
Colin Guthrie
gmane(at)colin.guthr.ie
http
the
wheel.
Thanks,
Feris
Zend has their ACL as part of the framework
http://framework.zend.com/manual/en/zend.acl.html
+1 on that one. Remember that you don't need to use the whole
framework... you can just pick out the Zend_Acl stuff easily enough.
Col
--
Colin Guthrie
gmane
'Twas brillig, and Jay Blanchard at 24/12/08 12:07 did gyre and gimble:
[snip]
...greetings from around the world
[/snip]
Merry Chrismakwanzica! Happy Festivus!
Indeed. Happy Annual Gift Giving Day (when it comes!) to one and all.
Col
--
Colin Guthrie
gmane(at)colin.guthr.ie
http
are trying to retro fit it to an
existing project).
But if you just spend a few days reading through the manual you'll be
totally fine.
Col
--
Colin Guthrie
gmane(at)colin.guthr.ie
http://colin.guthr.ie/
Day Job:
Tribalogic Limited [http://www.tribalogic.net/]
Open Source:
Mandriva
and __wakup functions that
essentially do the save/load for you.
Col
--
Colin Guthrie
gmane(at)colin.guthr.ie
http://colin.guthr.ie/
Day Job:
Tribalogic Limited [http://www.tribalogic.net/]
Open Source:
Mandriva Linux Contributor [http://www.mandriva.com/]
PulseAudio Hacker [http
things.
Col
--
Colin Guthrie
gmane(at)colin.guthr.ie
http://colin.guthr.ie/
Day Job:
Tribalogic Limited [http://www.tribalogic.net/]
Open Source:
Mandriva Linux Contributor [http://www.mandriva.com/]
PulseAudio Hacker [http://www.pulseaudio.org/]
Trac Hacker [http://trac.edgewall.org
extensively to
ensure good data integrity. The trade off on extra load on insert/update
is IMO well worth it.
Col
--
Colin Guthrie
gmane(at)colin.guthr.ie
http://colin.guthr.ie/
Day Job:
Tribalogic Limited [http://www.tribalogic.net/]
Open Source:
Mandriva Linux Contributor [http
that hiding or disabling data is not enough in
many cases.
Food for thought!
Col
--
Colin Guthrie
gmane(at)colin.guthr.ie
http://colin.guthr.ie/
Day Job:
Tribalogic Limited [http://www.tribalogic.net/]
Open Source:
Mandriva Linux Contributor [http://www.mandriva.com/]
PulseAudio Hacker [http
the instructors who have taught them
etc. keeps things nice and tidy without having to put the structure in
your code all over the place.
Col
--
Colin Guthrie
gmane(at)colin.guthr.ie
http://colin.guthr.ie/
Day Job:
Tribalogic Limited [http://www.tribalogic.net/]
Open Source:
Mandriva Linux Contributor
, basically I want to know which is
easiest? LOL...
Personally I'm a ZF fan, but each to their own.
Col
--
Colin Guthrie
gmane(at)colin.guthr.ie
http://colin.guthr.ie/
Day Job:
Tribalogic Limited [http://www.tribalogic.net/]
Open Source:
Mandriva Linux Contributor [http://www.mandriva.com
'Twas brillig, and Chris at 12/12/08 01:20 did gyre and gimble:
Micah Gersten wrote:
Colin Guthrie wrote:
The ON DELETE CASCADE option is key here... DELETE FROM students
where student_id=1 will remove all traces of that student from the
db... all the course they've attended, all
control how many jobs are performed at the same time
and thus limit the load.
Just some thoughts.
Col
--
Colin Guthrie
gmane(at)colin.guthr.ie
http://colin.guthr.ie/
Day Job:
Tribalogic Limited [http://www.tribalogic.net/]
Open Source:
Mandriva Linux Contributor [http://www.mandriva.com
on google I found:
http://sourceforge.net/project/showfiles.php?group_id=235455
If it works or not I have no idea!
Col
--
Colin Guthrie
gmane(at)colin.guthr.ie
http://colin.guthr.ie/
Day Job:
Tribalogic Limited [http://www.tribalogic.net/]
Open Source:
Mandriva Linux Contributor [http
, not 5000 to 6000.
Col
--
Colin Guthrie
gmane(at)colin.guthr.ie
http://colin.guthr.ie/
Day Job:
Tribalogic Limited [http://www.tribalogic.net/]
Open Source:
Mandriva Linux Contributor [http://www.mandriva.com/]
PulseAudio Hacker [http://www.pulseaudio.org/]
Trac Hacker [http://trac.edgewall.org
MimeDecode classes do
a fair job of this.
Col
--
Colin Guthrie
gmane(at)colin.guthr.ie
http://colin.guthr.ie/
Day Job:
Tribalogic Limited [http://www.tribalogic.net/]
Open Source:
Mandriva Linux Contributor [http://www.mandriva.com/]
PulseAudio Hacker [http://www.pulseaudio.org/]
Trac Hacker
help in some circumstances. If
you want to expand to a dual server with round-robin DNS load balancing,
then memcache will defo help.
No idea about benchmarks and performance vs files tho' so can't really
help with that!
Col
--
Colin Guthrie
gmane(at)colin.guthr.ie
http://colin.guthr.ie
Jochem Maas wrote:
you're not 'loose' the asylum is just bigger than you realise ... most people
know it by it's other name ... Earth.
Yeah the outside of the Asylum is pretty small... if you don't
believe me, ask Wonko the Sane...
So long :p
Col
--
Colin Guthrie
gmane
is just a new mail filter etc. etc.
As the original problem showed a IMAP+Webmail solution, I'd imagine IMAP
support and a dedicated client is important.
Col
--
Colin Guthrie
gmane(at)colin.guthr.ie
http://colin.guthr.ie/
Day Job:
Tribalogic Limited [http://www.tribalogic.net/]
Open Source
--
Colin Guthrie
gmane(at)colin.guthr.ie
http://colin.guthr.ie/
Day Job:
Tribalogic Limited [http://www.tribalogic.net/]
Open Source:
Mandriva Linux Contributor [http://www.mandriva.com/]
PulseAudio Hacker [http://www.pulseaudio.org/]
Trac Hacker [http://trac.edgewall.org/]
--
PHP
--
Colin Guthrie
gmane(at)colin.guthr.ie
http://colin.guthr.ie/
Day Job:
Tribalogic Limited [http://www.tribalogic.net/]
Open Source:
Mandriva Linux Contributor [http://www.mandriva.com/]
PulseAudio Hacker [http://www.pulseaudio.org/]
Trac Hacker [http://trac.edgewall.org/]
--
PHP General
:p
Col
--
Colin Guthrie
gmane(at)colin.guthr.ie
http://colin.guthr.ie/
Day Job:
Tribalogic Limited [http://www.tribalogic.net/]
Open Source:
Mandriva Linux Contributor [http://www.mandriva.com/]
PulseAudio Hacker [http://www.pulseaudio.org/]
Trac Hacker [http://trac.edgewall.org
recommend using the Zend_Cache system.
http://www.framework.zend.com/manual/en/zend.cache.html
Zend cache will support disk-based caching and memcache or APC too all
via the same API.
Col
--
Colin Guthrie
gmane(at)colin.guthr.ie
http://colin.guthr.ie/
Day Job:
Tribalogic Limited [http
vladimirn wrote:
Thank you Col
I will go into Zend_Cache as you suggested.
One more thing- does Zend_Cache saces data into file or use a server memory?
As I said in my original mail, but perhaps wasn't clear, Zend_Cache can
support file, memcache, APC and other backends.
Col
--
Colin
increase you'll get during the read operations if you don't have
to dick around with the data :)
(yes I'm comparing bits to time, but I don't have time to explain that bit).
Col
--
Colin Guthrie
gmane(at)colin.guthr.ie
http://colin.guthr.ie/
Day Job:
Tribalogic Limited [http
currently backing that
particular horse), but for an application-level caching strategy, I
think Zend_Cache has a lot going for it :)
Col
--
Colin Guthrie
gmane(at)colin.guthr.ie
http://colin.guthr.ie/
Day Job:
Tribalogic Limited [http://www.tribalogic.net/]
Open Source:
Mandriva Linux
was in the hospital. Internal
bleeding is overrated. Some day I'll have to check the archives.
Ohh dear, doesn't sound like fun :s Hope you're on the mend now.
Col
--
Colin Guthrie
gmane(at)colin.guthr.ie
http://colin.guthr.ie/
Day Job:
Tribalogic Limited [http://www.tribalogic.net/]
Open
Daniel P. Brown wrote:
Mandriva Linux Contributor [http://www.mandriva.com/]
Hooray for Cooker!
:D
--
Colin Guthrie
gmane(at)colin.guthr.ie
http://colin.guthr.ie/
Day Job:
Tribalogic Limited [http://www.tribalogic.net/]
Open Source:
Mandriva Linux Contributor [http
);
}
public static function getInstance()
{
static $instance = null;
if (!isset($instance))
$instance = new self();
return $instance;
}
}
$bar = Singleton::getInstance();
$bar-getFoo(); // Singleton
(entirely untested)
Col
--
Colin Guthrie
gmane(at)colin.guthr.ie
crap. I didn't realise there was such a
limitation in PHP's object heirarchy. Wonder why it's like this... Can't
think of a valid reason...
Col
--
Colin Guthrie
gmane(at)colin.guthr.ie
http://colin.guthr.ie/
Day Job:
Tribalogic Limited [http://www.tribalogic.net/]
Open Source:
Mandriva
Jochem Maas wrote:
Colin Guthrie schreef:
if(!empty($_SESSION['userInfo']['loggedin'])) {
if (Sess::userLoggedIn()) { /* ... :-) */ }
Well, yes, that's how I do it in my apps too, but in internally in that
function you may want to use the empty() call :)
I agree that when checking
? such as !empty = not empty?
Yes. That's what the ! always does. It's the not operator in PHP (and
most languages):
http://uk3.php.net/manual/en/language.operators.logical.php
Col
--
Colin Guthrie
gmane(at)colin.guthr.ie
http://colin.guthr.ie/
Day Job:
Tribalogic Limited [http://www.tribalogic.net
app as you see fit, like a TTL (time to live) or specific
(i.e. restricted) permissions assigned to different API keys generated
by a user.
Col
--
Colin Guthrie
gmane(at)colin.guthr.ie
http://colin.guthr.ie/
Day Job:
Tribalogic Limited [http://www.tribalogic.net/]
Open Source:
Mandriva
0maxresident)k
0inputs+0outputs (0major+2797minor)pagefaults 0swaps
There's a benchmark for you (not sure if it's the one you wanted) which
proves that the !empty() is ~4.5x faster.
Use !empty() :p
Col
--
Colin Guthrie
gmane(at)colin.guthr.ie
http://colin.guthr.ie/
Day Job:
Tribalogic
. array_key_exists().
Col
--
Colin Guthrie
gmane(at)colin.guthr.ie
http://colin.guthr.ie/
Day Job:
Tribalogic Limited [http://www.tribalogic.net/]
Open Source:
Mandriva Linux Contributor [http://www.mandriva.com/]
PulseAudio Hacker [http://www.pulseaudio.org/]
Trac Hacker [http
() would fail, e.g.
$arr['foo'] = null;
isset($arr['foo']) == false
!empty($arr['foo']) == false
array_key_exists('foo', $arr) == true
Col
--
Colin Guthrie
gmane(at)colin.guthr.ie
http://colin.guthr.ie/
Day Job:
Tribalogic Limited [http://www.tribalogic.net/]
Open Source:
Mandriva Linux
() but tests for all sorts of empty cases ('',
false, null and 0 are all considered, empty).
Col
--
Colin Guthrie
gmane(at)colin.guthr.ie
http://colin.guthr.ie/
Day Job:
Tribalogic Limited [http://www.tribalogic.net/]
Open Source:
Mandriva Linux Contributor [http://www.mandriva.com
(..) is a better way of
doing this as it works in the case when the value is set to FALSE too.
Col
--
Colin Guthrie
gmane(at)colin.guthr.ie
http://colin.guthr.ie/
Day Job:
Tribalogic Limited [http://www.tribalogic.net/]
Open Source:
Mandriva Linux Contributor [http://www.mandriva.com
://www.xdrtb.org/
For those that don't know it, TED.com is an awesome site. It's very
informative and well worth adding to your RSS subscriptions.
Col
--
Colin Guthrie
gmane(at)colin.guthr.ie
http://colin.guthr.ie/
Day Job:
Tribalogic Limited [http://www.tribalogic.net/]
Open Source
without actually taking a
little time to consider it.
Col
--
Colin Guthrie
gmane(at)colin.guthr.ie
http://colin.guthr.ie/
Day Job:
Tribalogic Limited [http://www.tribalogic.net/]
Open Source:
Mandriva Linux Contributor [http://www.mandriva.com/]
PulseAudio Hacker [http://www.pulseaudio.org
.
If in doubt, pick *one* list and if you picked wrongly, you will be
redirected by someone on that list who will no doubt explain why your
question is inappropriate.
So please don't cross post unnecessarily.
Col
--
Colin Guthrie
gmane(at)colin.guthr.ie
http://colin.guthr.ie/
Day Job:
Tribalogic
).
It won't happen again I promise :-) . It is the damn reply all button
that does all the ugly demonic things these days.
:D
--
Colin Guthrie
gmane(at)colin.guthr.ie
http://colin.guthr.ie/
Day Job:
Tribalogic Limited [http://www.tribalogic.net/]
Open Source:
Mandriva Linux Contributor
to you and yours Rob. I missed that little
snippet... :)
Col
--
Colin Guthrie
gmane(at)colin.guthr.ie
http://colin.guthr.ie/
Day Job:
Tribalogic Limited [http://www.tribalogic.net/]
Open Source:
Mandriva Linux Contributor [http://www.mandriva.com/]
PulseAudio Hacker [http
1 - 100 of 500 matches
Mail list logo