Dothemath:15stillcontend
446973
The final berths for the revolutionary new playoffs will be determined in a deeply traditional way, slam-banging around a short track on a Saturday night.
731858
Really cool blog post about hidden Java features.  These are little tricks that you forget about from time to time but that make life more pleasant.  This is a good one:  "Instance initializers -- I've been exploiting these lately to abbreviate list initialization (in unit tests only): > List triple = new ArrayList(3) { >   { add("a"); add("b"); add("c"); } > };"  I've been using static code blocks but this looks like it might be a better trick.  Example:  "public static List = new ArrayList(); > static {     list.add( "foo" ); }"  Also this final Closure  hack seems pretty cool:
739439
Tycho:  I uploaded the comic early, as many of you noticed.  I entered the wrong number in the update field.  You may also have noticed that the spelling in these posts has really gone to hell.  So, that's numbers and letters.  I hope to one day discover a set of pictograms with which I can manage some baseline fucking proficiency.
489113
Perl script that automatically searches for new episodes of your favorite TV shows and downloads the corresponding NZB files from various free sources on the internet.   This release is mostly just to update the .shows file and the README.  I was sleepy, and I stupidly said that you do not have to have the  element in your shows file.  Turns out I'm just an idiot, and you do.  I have updated the .shows file to include the proper template for most shows, which is %name%.S%season%E%episode%  Sorry about that!  I also started a code optimization run which will hopefully over time make things run faster and more efficiently.  I just picked off the low hanging fruit on this release, because I wanted to get the updated README out before too many people had problems.
546437
Related to an issue from a previous post, Greg Beaver has posted a solution to his Relax NG schema problem in PHP.   Shortly after my last blog post, I got a very helpful email from Rob Richards, who offered to help me with my trials and tribulations. He took a quick look at the schema for package.xml, and a sample package.xml and was able to find two small tweaks to make parsing actually work (gasp). This changes everything. I am abandoning the creation of a relax NG schema in favor of the battle-tested xsd. The error messages for xsd validation are far clearer than the rng ones.   The code included shows how much simpler the error messages are with the XSD validation option versus the RNG ones.
607723
Tobias Schlitt has provided a helpful hint for developers working with lots of objects, methods, and singleton patterned functionality to keep out of the same trouble he faced.   During my current exam phase I'm working on some tiny private project to relax after learning. In there I'm using a main controller class, which implements a singleton pattern and initializes several sub-controllers while being created. The singletons purpose is, that the other controllers can access to main controller and its functionality whenever they need, without storing a reference each.   The problem with the code (he gives snippets) was a recursive loop that was suddenly appearing. He finally tracked it down to a constructor in another class that was accessing the main controller's constructor. The issue was that the constructor was never finishing up, so a valid instance wasn't returned, so the whole thing started all over again.
174774
Aumentato del 15% nel quarto trimestre dell'anno
84867
Tobias Schlitt has a great (long) post responding to a proposal made on the php.internals mailing list for the inclusion of "taint mode" in upcoming PHP versions.   Tobias starts with an overview of what "taint mode" is so that everyone's on the same page. His example involves the incoming and outgoing data usually involved in an application and how the incoming can be the most problematic when it comes to the values inside. This is where taint mode can come to the rescue. At its most basic level, it's a method for, assuming everything coming in is "tainted", creating a mechanism to automatically clean the data before it's even touched.   With the basics down, Tobias looks back to the proposal for a few additional comments. He considers the proposal a great way to introduce the functionality to the language. There are some draw backs he mentions, though, including the additional overhead of working through every inputted value.   Overall, I think this whole thing would be a great addition to PHP and I hope this could come for 6.0. What do you think?   You can also check out some other opinions on the matter:  "Tainted mode" pour php on the Kamelot Blog
542072
Language Implimentation Pack, that is
742375
DevShed is moving right along with their series concerning Command objects with this new article showing even more examples of how they're used.   Turning special attention to this second article of the series, I'll develop a few more hands-on examples concerning the pattern in question, thus you can reaffirm the concepts learned in the preceding installment.   They start off by building an array command class to act as a base for the rest of the tutorial. They make two more command classes to point to the commands to be issued (lowercase or reverse a string). Next up is the commanded class to handle the actions themselves. Finally, they plug it all together and show a complete example, including usage.
445025
Popular posts from PHPDeveloper.org for the past week:Stijn Leenknegt's Blog: [PHP6] function-return-array idea!GeesNotNerds Blog: Free PHP + Ajax chat appStefan Mischook's Blog: Object Oriented PHP Tutorial Updated - Steps 18 - 22Dave Dash's Blog: SymfonyCampWebDigity.com: PHP geotargeting techniquesEtienne Kneuss' Blog: Late Static Bindings ExplainedDevShed: Handling Static Data with PHP 5PHP-Learn-It.com: Cooking Cookies with PHPMichael Kimsal's Blog: PHP PredictionJob Posting: Steinman Recruiting Seeks Senior Developer (Littleton, CO)
495510
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.
767747
Jikes is a great compiler but they could really benefit from better project management.  This bug  has been open for greater than 3 years now with no resolution.  One of the developers sent me a *private* email (without commenting or closing the bug) this this could be fixed by avoiding the use of symlinks but wasn't sure. Of course this email was sent more than 2 years ago so I have no decent way of finding it.  Adding insult to injury is the fact that IBM won't let me comment on the bug without an account.  The only problem is that my account won't activate.  In a nutshell if you want to use incremental compile with jikes you need to specify relative paths not full paths.  For example if y ...
647066
DevShed has posted the second part of their (three part) series looking at the construction of a blogging application in PHP5. In this part, they look at how to handle the user's desire to input entries into the application via a HTML form.   In this second installment of the series, I'll show you how to expand the initial functionality of the already familiar "BlogProcessor" class so that it is capable of addressing all these (displaying all the entries, show the insert/update forms) issues.   They start with the simplest of the group - the displayBlogs method, outputting the full contents of the entries for the blog. Things get a bit tougher with the next step - creating the insert and update forms for pushing content into the database. Finally, they defined the header and footer functionality to make setting up the structure of the page simpler.
405165
In a new note from the BitFlux blog, Christian Stocker has information about the latest patch comitted to the PHP 5.1 branch that allows you to parse not well-formed XML documents and adds the missing elements, eg. missing closing tags.
102291
'Length isn't everything. It's what's inside that counts' Also in this week's column:â¦
65525
By WERDER, Eric  FARM VIEW by ERIC WERDER   --------------------   --------------------   RECENTLY Henry van der Heyden said farmers should expect $4 per kilogram of milksolids for the next 10 years. He must be joking.