 | News Feed |
 | Jobs Feed |
Sections
|
Perplexed Labs Blog: PHP Forking to Concurrency with pcntl_fork()
by Chris Cornutt March 10, 2010 @ 13:05:59
On the Perplexed Labs blog there's a recent post looking at how to fork processes in PHP with the help of the pcntl_fork function and the process management extension.
Let's say you want to take advantage of more than one core for a given process. Perhaps it performs many intensive computations and on a single core would take an hour to run. Since a PHP process is single threaded you won't optimally take advantage of the available multi-core resources you may have. Fortunately, via the Process Control (PCNTL) extension, PHP provides a way to fork new child processes.
He gives a quick snippet of code showing how to spawn off a few new processes, get their process IDs and watches a max number of children until one dies (then starts another).
voice your opinion now!
process control extension tutorial concurrency pcntlfork
Community News: Microsoft Returns with The Ultimate Coder Battle
by Chris Cornutt March 10, 2010 @ 12:15:18
Microsoft is back with another round of their Ultimate Coder Battle for Canadian developers wanting to create Windows-based PHP applications for some great prizes (like a Dell computer makeover or a Dell notebook).
Now's your chance to put those skills to the test, going toe-to-toe with Canada's best and brightest web developers during the FTW! Coding Competition. Choose your weapon...ahem...language and platform to develop the next great Canadian Web App. Walk ten paces, turn, and…dazzle the country with your incredible new app!
You can get the full details about the competition from the FTW Coding Competition site including information on the rules, what kind of platform your application needs to run on and what kind of data it needs to use. The deadline for signups is April 20th, 2010 so get those ideas in and get started developing!
voice your opinion now!
ultimatecoderbattle microsoft competition azure cloud
php|architect: It's not all about the code
by Chris Cornutt March 10, 2010 @ 10:47:23
In a recent (quick) post to the php|architect site Koen Van Urk reminds us that it's not all about the code, there's planning to consider too.
Sure, it is important to have your code as bug free as possible, well documented and as optimized as possible. It is, however, impossible to achieve this all without prior planning. Good project coordination.
He suggests one of the most useful and reliable forms of planning and defining the requirements for an application - writing them down on a normal piece of paper. Then from there let the ideas flow with things like look and feel, mapping out page structure, etc. Website planning tools are good, but when it comes down to basic prototyping, sometimes there's just nothing better than a pencil and a few sheets of plain white paper.
voice your opinion now!
opinion prototype planning paper
Joseph Crawford's Blog: ZF Creating RESTful Applications
by Chris Cornutt March 10, 2010 @ 08:50:25
Joseph Crawford has a new post to his blog today with a look at his use of the Zend_Rest_Controller and Zend_Rest_Route components of the Zend Framework to create a simple REST service.
You might be asking yourself why do I have to use both components, why is it not rolled into one nice component. The answer is really basic and if you look at the source code for the Zend_Rest_Controller you will see that it is solely an abstract class that defines the methods required for use with the Zend_Rest_Route.
He includes the code to add to your bootstrap file to get the routing working and a sample controller (MyController) that extends the Zend_Rest_Controller and sets up some basic actions - get, put, post and delete. He does mention one issue he's coming across in a feature he's wanting to add - putting the version number of the API in the URL for easier separation.
voice your opinion now!
rest application tutorial zendframework
CMStr.com: How to manually install Joomla 1.5+
by Chris Cornutt March 09, 2010 @ 14:40:12
From CMStr.com there's a new tutorial showing you how to set up Joomla manually just in case something happens with the install and you need to change things yourself.
Why would I want to do a manual install when my web host has this Fantastico thingy that will install Joomla for me? Good question. [...] If you are building websites for a living, and or plan on using Joomla a lot, then you really need to start doing your own installs. [...] If you are an experienced parachute jumper, you would pack your own chute right? This is no different.
Screenshots are included to help make the process easier as they walk you through setting up the basics like language settings and database information. They also touch on the FTP setting (off for security) and removing the admin user's information to help make things a bit more secure. It's not a comprehensive list of the things you'd need to do to get it 100% configured for just what you need, but it's a start.
voice your opinion now!
manual install joomla tutorial screenshot
Kavoir.com: Just Hashing is Far from Enough for Storing Passwords (Dictionary & Rainbow Attacks)
by Chris Cornutt March 09, 2010 @ 13:11:01
On Kavoir.com there's a new post that reminds you that hashing isn't enough anymore to protect your users and their passwords. They offer a suggestion or two of what you can do to help lock things down a bit more.
The common practice is to hash the user password and store the hash string of the password in the database. When the user tries to log in and supplies his password, it is used to generate a hash string to be compared to the one stored in the database. [...] This approach may be secure in the 70s of the last century, but barely any more.
Computing has evolved enough to where hashed can be matched, sometimes in less than two or three minutes. Their answer to the problem? Generate a random salt each time you create the hash with a constant being used as a base. A code snippet calling a user-defined function and the sha1 function are included.
voice your opinion now!
hash password salt dictionary rainbow attack
Brandon Savage's Blog: Upgrades In Open Source
by Chris Cornutt March 09, 2010 @ 12:50:56
Brandon Savage has posted his own response to the "don't be afraid of the upgrade" thread that's been going around concerning updating to PHP 5.3. He takes a different approach to the matter, though - one of a bit more caution.
When it comes to open source projects endorsing PHP 5.3 as their one and only PHP platform, I encourage caution. When it comes to open source projects that use PHP, there are three main issues that I believe should be considered before making the leap to PHP 5.3 (or any new release of any new software).
He sees three considerations projects and companies should consider before making the upgrade on their servers - the amount of control you have over the environment, deciding if the upgrade is worth possible backwards compatibility breaks and how much support you want to still provide for the pre-5.3 version(s).
voice your opinion now!
upgrade opinion caution considerations
|
Community Events
Don't see your event here? Let us know!
|