 | News Feed |
 | Jobs Feed |
Sections
|
| feed this: |  |
Nexen.net: Elephpants, 2008 generation
by Chris Cornutt May 02, 2008 @ 17:12:40
So you've seen all of the pictures of the elePHPants floating around and want to get your hands on one of your very own? Good news! Damien Seguy and crew have another fresh batch of huggable blue PHPness on the way and you can place your order now:
If you have missed the boat of the first generation of elePHPants, now is the right time to catchup up and participate to the 2008 generation! As for the first generation, this project is open to every PHP User group and aficionados, that want to adopt elePHPants, small or big.
Pricing is 4 Euros per elephant (in a 50 count box only) or 50 Euro for one of the larger elephants. They're even open to having company logos ("your own brood") added to the other side of his back. You can find more details on getting your hands on one at this page on the Nexen.net website or just head right to the order form to get a little blue PHPer to call your own.
voice your opinion now!
elephpant order stuffed animal small large custom logo
Maggie Nelson's Blog: NTILE() - easy way to generate tag clouds
by Chris Cornutt April 29, 2008 @ 13:44:01
For the Oracle users out there looking for an easy way to pull those tags together and make a handy little cloud out of them, Maggie Nelson has posted about a simple Oracle function that can help - NTILE.
For example, check out the documentation for the NTILE Function. Yeah, sounds kind of boring. What good could it be in the wonderful world of web development? After all, who manages employee or sales tables anymore... Answer: generating tag clouds.
Her SQL statement categorizes the tags for you automatically, dropping them in to "buckets" of font sizes. This makes it simple to loop through them (like with a foreach) and output your tags with a little help from some CSS. You can even specify how many buckets you want it to fill (how many different tag values to get and compare).
voice your opinion now!
ntile tag cloud tutorial oracle sql order bucket
Lee Blue's Blog: How To Sort A Zend_Db_Table_Rowset
by Chris Cornutt February 14, 2008 @ 17:11:00
Lee Blue has posted a handy tip for users of the Zend Framework, specifically when sorting the results from a query to tables linked in a Zend_Db_Table setup.
So you figured out how to define the relationships between your Zend_Db_Tables and you have issued a call to findDependentRowset(). You get your Rowset back but you need to sort the results by one of the columns in the dependent table. How do you do that?
Unfortunately, he's found out that you just simply can't - well, not without a custom function (until the 1.5 release of the framework rolls around). He shows his table set up and some sample database classes to relate to the tables (and link between them). The magic comes in with his DU_Utils class that takes in the data and sorts it based on the given column name in the given direction.
voice your opinion now!
zendframework zenddb table relationship sort order column
DotVoid.com: Reordering nested sets using PHP and Javascript
by Chris Cornutt September 14, 2007 @ 14:44:00
On the DotVoid blog today, Danne Lundqvist has posted about a problem he had - creating parent/child style data and displaying it as nested sets with the combination of PHP and Javascript. He outlines two different methods but only chooses one to run with.
The first method is "adjancency", a method that involves storing a parent ID in each node and recursing to find the related ones. He goes with a different solution, however - a "nested set". This method stores the data in terms of where it's located on the tree (layers from right, layers from left, etc).
Last night I was working on an application that display a full tree where the user must be able to to drag and drop nodes to reorder the tree. The problem is that it is much more difficult to insert or reorder the tree using the nested set model.
This was particularly effective in solving his problem, making a reogranizable listing that could be manipulated via a Javascript interface (the MooTree script from MooTools). Hi sPHP solution is included.
voice your opinion now!
javascript order list nested set adjancency method model javascript order list nested set adjancency method model
Hasin Hayder's Blog: An interesting bug in ReflectionParameter object in PHP 5.2.1
by Chris Cornutt May 14, 2007 @ 10:11:00
In a new blog post today, Hasin Hayder points out an interesting bug he found in the Reflection functionality that's offered in one of the latest PHP5 series release, version 5.2.1 (also found in 5.2.2). It deals with an issue in the ReflectionParameter object.
[Despite the closing of this bug] there is still the following bug alive in ReflectionParameter object, I tested it against the PHP version 5.2.1 . So what is this bug? The reflection parameter cannot retrieve the default value of a parameter if the next parameter has no default value. PHP simply omits all the variables before that variable and return only values after that variable.
He illustrates with a test class that uses reflection to get the parameters for the constructor. Unfortunately, the object only comes back with the last attribute. This is solved later in the comments, however, when it's discovered that the parameters, some of which are optional, are not in the "correct order" - optional parameters should always follow the required.
voice your opinion now!
bug reflection parameter order constructor bug reflection parameter order constructor
|
Community Events
Don't see your event here? Let us know!
|