php-general Digest 9 Oct 2010 09:59:00 -0000 Issue 6980
Topics (messages 308600 through 308604):
Re: [IDEA] date_moonrise, date_moonset, and date_moon_info for calculating
moonrise and moonset
308600 by: Tommy Pham
Re: php5 - website development - what next
308601 by: Sharl.Jimh.Tsin
308602 by: Laruence
Re: What other languages do you use?
308603 by: Richard Quadling
Re: Heredocs, print_r() and newline "\n" and fnmatch() -curious failures ...
308604 by: YAD(YetAnotherDavid)
Administrivia:
To subscribe to the digest, e-mail:
[email protected]
To unsubscribe from the digest, e-mail:
[email protected]
To post to the list, e-mail:
[email protected]
----------------------------------------------------------------------
--- Begin Message ---
> -----Original Message-----
> From: Bob McConnell [mailto:[email protected]]
> Sent: Friday, October 08, 2010 11:15 AM
> To: [email protected]; [email protected]
> Subject: RE: [PHP] [IDEA] date_moonrise, date_moonset, and
> date_moon_info for calculating moonrise and moonset
>
> From: Steve Staples
>
> > On Fri, 2010-10-08 at 13:33 -0400, Daniel Brown wrote:
> >> On Fri, Oct 8, 2010 at 13:29, ELY M. <[email protected]> wrote:
> >> > I did a search thru all places on php.net for moonrise and moonset
> >> > functions or any comments about moonrise and moonset.
> >> > I can not find anything about moonrise and moonset.
> >> > I am not sure where to submit my ideas.
> >> > I would like to suggest to php developers to add in the moonrise
> and
> >> > moonset functions.
> >> > I think the moonrise and moonset functions should be added in php.
> >> > date_moonrise
> >> > date_moonset
> >> > date_moon_info
> >> > those functions would be great to have in future version of php.
> > >
> > > Do it as a feature request at http://bugs.php.net/ and we'll
> look
> >> into it. In related matters, I just approved a user note with a code
> >> snippet example for sunrise and sunset.
> >>
> >
> > In his defense, he was talking abut moonrise, and moonset... in some
> > cases, the moon is up during the middle of the day...
> >
> > this originally started out a joke reply... but then after thinking
> > about what to say, I realized that the moonrise/set does not follow
> the
> > sun... crap, i hate my brain... LOL
> >
> > on a side note, where would you even get this info? is there a set
> > formula for sunrise/set?
>
> It would also require both latitude and longitude input parameters.
> Rough guess in temperate zones is that for each 250 miles you move west,
it
> delays the event by 15 minutes. But when you get within 22 degrees of a
> pole, the event may not occur for days, or weeks, or ...
>
> Bob McConnell
>
The latitude and longitude would only give relative perspective view. For
accurate measurement, doesn't it requires time of year also since it depends
on rotations of earth around the sun and how far/close the earth to sun,
which will affect the moon's rotation too? Just remembering my high school
AP Physics on gravitational forces.
Regards,
Tommy
--- End Message ---
--- Begin Message ---
how about woking on open source projects?
Best regards,
Sharl.Jimh.Tsin (From China)
2010/10/8 Nathan Rixham <[email protected]>:
> Rakesh Mishra wrote:
>>
>> Hi All,
>>
>> I am PHP 4 & PHP 5 developer for last 6 yrs. Last year also got Zend
>> certification.
>> Since now I have work on different CMS, Social Networking, telecome ,
>> horse
>> racing domains.
>>
>> But now I am little bored with developing website. What other things I can
>> do with PHP ?
>>
>> Even I believe my knowledge, interest, & market value with PHP 5 is
>> getting
>> saturated.
>> Do you guys suggest me what other thing I can learn or work which help me
>> to
>> keep my lust for PHP alive
>> and also boost my career.
>
> I suggest you concentrate less on the language and more on:
> - interesting / challenging projects
> - using PHP with other new interesting technologies
> - applying design / programming paradigms from other languages in PHP
> - contributing to PHP internals
>
> Status.net, GNU Social, DISO Project, lorea.cc and elgg all occupy a rather
> interesting project space with small but inspiring communities of people who
> like to push technical boundaries and merge technologies, particularly
> within the social space.
>
> http://www.ushahidi.com/platform is a thriving project which combines
> technical excellence and forward thinking with real world large scale
> community needs, being critical in several major world events, even if you
> don't get involved, their code bases for ushahidi + related on
> http://github.com/ushahidi is brilliant, likewise the swiftriver project
> http://swift.ushahidi.com/ doesn't look much on the face of it but is really
> good - just check out the SwiftRiver Research at the right.
>
> There are many interesting protocol based communities who often implement in
> PHP, and these can be rather interesting / challenging and active spaces -
> ActivityStreams, Salmon-Protocol, OneSocialWeb to name just a few.
>
> On the technology side of things, you may want to consider going down the
> NoSQL route for a while, http://nosql-database.org/ gives a good summary of
> database - I'd recommend CouchDB, MongoDB and Redis for a nice well
> supported start that will introduce you to new design paradigms and bring
> many performance increases to your applications.
>
> Alternatively you may find it refreshing to try some other languages,
> perhaps a functional language like Scala, OCaml or Haskell, or maybe in to a
> very active language such as ECMAScript (server side js) via something like
> http://node.js/ you may just find that you don't want to use PHP any more,
> or you may find that you want to apply the paradigms and lessons learned to
> PHP using the new features in 5.3
>
> Hope that helps a little, I'll stop here because I could list projects till
> the end of time!
>
> Many Regards
>
> Nathan
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>
--- End Message ---
--- Begin Message ---
Hi:
good idea.
I need assistance.
lol, http://code.google.com/p/yafphp/
On 10/09/2010 09:22, Sharl.Jimh.Tsin wrote:
how about woking on open source projects?
Best regards,
Sharl.Jimh.Tsin (From China)
2010/10/8 Nathan Rixham<[email protected]>:
Rakesh Mishra wrote:
Hi All,
I am PHP 4& PHP 5 developer for last 6 yrs. Last year also got Zend
certification.
Since now I have work on different CMS, Social Networking, telecome ,
horse
racing domains.
But now I am little bored with developing website. What other things I can
do with PHP ?
Even I believe my knowledge, interest,& market value with PHP 5 is
getting
saturated.
Do you guys suggest me what other thing I can learn or work which help me
to
keep my lust for PHP alive
and also boost my career.
I suggest you concentrate less on the language and more on:
- interesting / challenging projects
- using PHP with other new interesting technologies
- applying design / programming paradigms from other languages in PHP
- contributing to PHP internals
Status.net, GNU Social, DISO Project, lorea.cc and elgg all occupy a rather
interesting project space with small but inspiring communities of people who
like to push technical boundaries and merge technologies, particularly
within the social space.
http://www.ushahidi.com/platform is a thriving project which combines
technical excellence and forward thinking with real world large scale
community needs, being critical in several major world events, even if you
don't get involved, their code bases for ushahidi + related on
http://github.com/ushahidi is brilliant, likewise the swiftriver project
http://swift.ushahidi.com/ doesn't look much on the face of it but is really
good - just check out the SwiftRiver Research at the right.
There are many interesting protocol based communities who often implement in
PHP, and these can be rather interesting / challenging and active spaces -
ActivityStreams, Salmon-Protocol, OneSocialWeb to name just a few.
On the technology side of things, you may want to consider going down the
NoSQL route for a while, http://nosql-database.org/ gives a good summary of
database - I'd recommend CouchDB, MongoDB and Redis for a nice well
supported start that will introduce you to new design paradigms and bring
many performance increases to your applications.
Alternatively you may find it refreshing to try some other languages,
perhaps a functional language like Scala, OCaml or Haskell, or maybe in to a
very active language such as ECMAScript (server side js) via something like
http://node.js/ you may just find that you don't want to use PHP any more,
or you may find that you want to apply the paradigms and lessons learned to
PHP using the new features in 5.3
Hope that helps a little, I'll stop here because I could list projects till
the end of time!
Many Regards
Nathan
--
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
--
Laruence
Senior PHP consultant
http://www.laruence.com
--- End Message ---
--- Begin Message ---
On 8 October 2010 18:30, Nathan Rixham <[email protected]> wrote:
> As per the subject, not what other languages have you used, but what other
> languages do you currently use?
>
> I guess it may also be interesting to know if:
>
> (1) there's any particular reason for you using a different language (other
> than work/day-job/client requires it)
>
> (2) about to jump in to another language
>
> Best,
>
> Nathan
私の名前はリチャードであり、私は日本語を学んでいる。
--
Richard Quadling
Twitter : EE : Zend
@RQuadling : e-e.com/M_248814.html : bit.ly/9O8vFY
--- End Message ---
--- Begin Message ---
Thanks for the response - I found the answer to Q1 - the problem of
formatting newlines - I was running the code outputting to browser - and
got lazy on some - just pasting the PHP manual examples code directly,
without bracketing with HTML tags such as <pre> ... etc. Of course that
won't produce the formatting I was expecting and as shown in the manual.
What confused me? - some example code includes the <pre> HTML tags and
produce formatted output! So, I feel really stupid about that one.
Perhaps there is a PHP manual update project in here somewhere to
normalize the examples code so they can be run to get the output as printed.
-----------
Q2 re the undefined function - fnmatch() - still needs an explanation. I
need to get PHP's fnmatch() function, Xdebug, and iMagick's readImage()
function working in the same setup.
Using Xammplite_Win_32_1.7.1, PHP ver 5.2.9 reports fnmatch() is not a
defined function and I haven't been able to get Xdebug functioning on
this setup. readImage() works just fine.
Using Xammp_Win_32_1.7.3, PHP ver 5.3.1 fnmatch() is defined and Xdebug
works 'out of the box' but Apache crashes when iMagick readImage() is
called. I think I should communicate this to the extension author. Will
post here if I get a result.
Thanks again, Peter.
YAD
Peter Lind wrote:
On 23 September 2010 21:47, YAD(YetAnotherDavid) <[email protected]> wrote:
Question 1 : how to get the newline functioning ....? even print_r() output
is not 'newlined' as it should be. Also note the \n is missing between the "
" in the output text of the second test!
Are you outputting to browser or to command line? Browsers have a
habit of ignoring whitespaces, reducing them to one whitespace
character regardless of their type or how many.
Regards
Peter
--- End Message ---