php-general Digest 27 Jul 2009 02:55:26 -0000 Issue 6251
Topics (messages 295846 through 295853):
Re: Language translation
295846 by: Miles Thompson
295851 by: Rudi Ullon
OOP Design Software
295847 by: Daniel Kolbo
295848 by: Caner BULUT
295849 by: Eddie Drapkin
295850 by: Daniel Kolbo
Re: Sorting mySQL query - one order from multiple fields
295852 by: George Langley
JS alert that links to a file
295853 by: Skip Evans
Administrivia:
To subscribe to the digest, e-mail:
php-general-digest-subscr...@lists.php.net
To unsubscribe from the digest, e-mail:
php-general-digest-unsubscr...@lists.php.net
To post to the list, e-mail:
php-gene...@lists.php.net
----------------------------------------------------------------------
--- Begin Message ---
gettext -not PHP, but a GNU project.
PHP hooks: http://ca.php.net/manual/en/book.gettext.php, which
contains a link to the project.
In the past I've coded arrays of prompts, this is a more native solution.
Cheers - Miles
On Sat, Jul 25, 2009 at 10:37 PM, Skip Evans<s...@bigskypenguin.com> wrote:
> Hey all,
>
> We got a new project and language translation of content is a major
> priority. I've googled around and seen lots of options, but I'd like to hear
> from the list about more real world experiences about what some of you found
> and what both you as a coder and the client were most satisfied with.
>
> Big Hugs,
> Skip
>
> --
> ====================================
> Skip Evans
> Big Sky Penguin, LLC
> 503 S Baldwin St, #1
> Madison WI 53703
> 608.250.2720
> http://bigskypenguin.com
> ------------------------------------
> Those of you who believe in
> telekinesis, raise my hand.
> -- Kurt Vonnegut
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>
--- End Message ---
--- Begin Message ---
I'm also starting with a multilanguage project, and after a little research,
we've decided to use this gettext
http://savannah.nongnu.org/projects/php-gettext/
Take a look.. might be useful to you also.
---------------------------
Regards / Saludos
Rudi Ullon
--- End Message ---
--- Begin Message ---
Hello,
Is there an objected oriented programming software that can help me keep
track of my methods and properties of my objects. My memory is not what
it used to be, and i'd like to have a quick 'overview' or layout of all
the objects I have to work with. Maybe the software would even let make
a process flow chart. This would really help my design (and save me time).
Thanks,
dK
`
--- End Message ---
--- Begin Message ---
Hi Daniel,
You can use Eclipse with plugin PDT or Zend Studio. They can track your
classes and methods. They can remember your methods and classes also they
have code completion abilities.
Thanks
Caner.
-----Original Message-----
From: Daniel Kolbo [mailto:kolb0...@umn.edu]
Sent: 26 July 2009 19:46
To: PHP General
Subject: [PHP] OOP Design Software
Hello,
Is there an objected oriented programming software that can help me keep
track of my methods and properties of my objects. My memory is not what
it used to be, and i'd like to have a quick 'overview' or layout of all
the objects I have to work with. Maybe the software would even let make
a process flow chart. This would really help my design (and save me time).
Thanks,
dK
`
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
--- End Message ---
--- Begin Message ---
On Sun, Jul 26, 2009 at 12:54 PM, Caner BULUT<caner...@gmail.com> wrote:
>
> Hi Daniel,
>
> You can use Eclipse with plugin PDT or Zend Studio. They can track your
> classes and methods. They can remember your methods and classes also they
> have code completion abilities.
>
> Thanks
> Caner.
>
> -----Original Message-----
> From: Daniel Kolbo [mailto:kolb0...@umn.edu]
> Sent: 26 July 2009 19:46
> To: PHP General
> Subject: [PHP] OOP Design Software
>
> Hello,
>
> Is there an objected oriented programming software that can help me keep
> track of my methods and properties of my objects. My memory is not what
> it used to be, and i'd like to have a quick 'overview' or layout of all
> the objects I have to work with. Maybe the software would even let make
> a process flow chart. This would really help my design (and save me time).
>
> Thanks,
> dK
> `
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>
There's plugins for Eclipse that generate UML, too.
--- End Message ---
--- Begin Message ---
Caner BULUT wrote:
> Hi Daniel,
>
> You can use Eclipse with plugin PDT or Zend Studio. They can track your
> classes and methods. They can remember your methods and classes also they
> have code completion abilities.
>
> Thanks
> Caner.
>
> -----Original Message-----
> From: Daniel Kolbo [mailto:kolb0...@umn.edu]
> Sent: 26 July 2009 19:46
> To: PHP General
> Subject: [PHP] OOP Design Software
>
> Hello,
>
> Is there an objected oriented programming software that can help me keep
> track of my methods and properties of my objects. My memory is not what
> it used to be, and i'd like to have a quick 'overview' or layout of all
> the objects I have to work with. Maybe the software would even let make
> a process flow chart. This would really help my design (and save me time).
>
> Thanks,
> dK
> `
>
Wow. Thanks for the reference. I've been playing with EclipsePDT for
about 30-45 minutes. I've been developing strictly off of a text editor
(with some syntax coloring but that's it). This Eclipse project looks
so big. There'll be a bit of a learning curve with the EclipsePDT but
seeing that it was developed in part by Zend and also that smarty.net
uses it, i can rest assured that my time learning/implementing eclipse
will save me a great deal of time in the long haul. I am glad to see it
has integration with xdebug and CVS. I'll have to postpone my weekend
coding goals to learn Eclipse and see how to integrate it into my
development process. Thanks for the recommendation (and quick too).
Thanks,
dK
`
--- End Message ---
--- Begin Message ---
In case anyone else was wondering, the command to use is COALESCE()
as in:
$theQuery = mysql_query("select variousFields from theTable where
date = '$currDate' ORDER BY COALESCE(rotime2,rotime1,time)");
COALESCE() will use "one" of the variables, being the one it finds a
value for first, for each record. Note how this differs from a multi
sort, which sorts by the first field, then subsorts by the second,
third, etc.
Hope this helps someone.
George Langley
Multimedia Developer, Audio/Video Editor, Musician, Arranger, Composer
http://www.georgelangley.ca
-------------------------------------------------
On 14-Jun-09, at 8:30 PM, George Langley wrote:
Hi all. Am trying to sort baseball games by time, where there can
be up to 3 times listed per game.
Each game has an original "date" and "time" field, plus fields for
2 rain-out dates/times ("rodate1" "rotime1", "rodate2", "rotime2"),
to use if the game gets rained out. Note that rotime1 and rotime2
are NULL if no time has been entered. Also note that the original
date and time fields are not changed - they are kept for posterity.
Usually, the rain-out date is set to a day that the teams were
already going to play each other again, with the rain-out game
going first. So need to sort those 2 games in order: rain-out
first, then normally-scheduled.
But, I can't just sort on the "time" field, as the rain-out game
could now have a different time. I need to use the rotime2 (if it
exists), else use the rotime1 (if it exists), else use the time.
Can not get my query order to work. One of the variations I've tried:
$theQuery = mysql_query("select variousFields from theTable where
date = '$currDate' ORDER BY CASE WHEN rotime2 THEN rotime2 WHEN
rotime1 THEN rotime1 ELSE time");
Is there a query sort that will work in this case? Is not the
usual "sort by last name, then sort by first name" scenario!
Thanks for any pointers.
--- End Message ---
--- Begin Message ---
Okay, I know I've done this before, but now I'm blanking out.
I have code that creates a CSV file, and when it's done I want
a JS alert to pop up and let them save the file.
Isn't this some kind of alert() type call on the JS side???
I know I've done this before and I've been on Google an hour now!
--
====================================
Skip Evans
Big Sky Penguin, LLC
503 S Baldwin St, #1
Madison WI 53703
608.250.2720
http://bigskypenguin.com
------------------------------------
Those of you who believe in
telekinesis, raise my hand.
-- Kurt Vonnegut
--- End Message ---