 | News Feed |
 | Jobs Feed |
Sections
|
| feed this: |  |
Linux Magazine: Micro-Frameworks Big Things in Small Packages
by Chris Cornutt May 11, 2009 @ 10:26:12
Martin Streicher has written up a new article for the Linux Magazine website looking at microframeworks - one in Ruby and the other in PHP (Limonade).
Indeed, the quality of Rails, CakePHP, Django, and Catalyst notwithstanding, some developers have rebuffed the large frameworks, citing bulk and complexity, to create smaller and simpler alternatives. Dubbed micro-frameworks-think microcomputer versus mainframe-the tools shape incoming requests into something manageable and leave the rest up to you. Choose your design pattern, object-relational mapper (ORM), and rendering technology, and off you go. As you'll see, a working Web application can be composed in less than ten lines of code in a single source file.
He covers the Ruby framework first (Sinatra) and Limonade next. The framework takes incoming requests and maps them into the developed code. It works like a basic MVC-formatted framework - the request comes in with an action and is sent to a method by the same name. You can use wildcards in the URI, regular expression matching, views, templates and it includes error handling support and configuration option support.
voice your opinion now!
microframework sinatra limonade mvc small light
Oren Solomianik's Blog: Zend Framework Database Admin
by Chris Cornutt May 11, 2009 @ 08:41:54
In his recent blog entry Oren Solomianik takes a look at using the zdbform software (a web-based, simple database administration tool) he's put together using the Zend Framework.
If you're looking for a simple tool that uses Zend Framework's robust database classes (such as Zend_Db and Zend_Db_Table), you can check out zdbform. It's a short yet effective library that let's you perform simple administration tasks on your database, with minimal coding. It's not a full blown phpMyAdmin, but it's a simple way to view, edit and add your tables rows on a web interface.
He shows how you can use it in a script - from the front controller to the input forms - and some of the changes he needed to make in the form class itself to handle a few of the bit more tricky parts.
voice your opinion now!
zendframework zdbform database admin simple light example download
Brian Moon's Blog: Wordcraft, a simple PHP blogging application
by Chris Cornutt November 10, 2008 @ 14:28:52
Brian Moon has released a simple blogging application he's worked up - a super-simple, lightweight application that already has several of the common blog features built in.
Up until now, I have used Wordpress.com for my blogging. It works quite well. You can get started quite quickly and it does what most people need. My wife uses Blogger for our family blog. It is, IMO, not as nice as Wordpress.com in some ways. But, it does allow you to edit your styles (for free) and such which is nice. So, why would I want to reinvent the wheel? I am a control freak and rarely run other people's code. I know, it is a character flaw. I am working on it.
His application, WordCraft, already includes things like Akismet/CAPTCHA support for comments, custom page creation, pingback support, temlpating and email notifications. You can download the latest release (version 0.5) from his google code page.
voice your opinion now!
wordcraft blog application simple mysql light feature download
Mikko Koppanen's Blog: Color analysis
by Chris Cornutt November 05, 2007 @ 10:26:00
In the latest entry to his blog, Mikko Koppanen shows how to take the power of Imagick and harness it to check and see what sorts of colors an image contains:
The code in the example reduces the image colors to 10, then discards all but one pixel of every color and then creates the palettes out of those colors. This might not be the most accurate way to do this, but at least it's fast.
His code makes three different "palettes" from the image - average, dark and light - and outputs them as a range of colored boxes for each all of the three palettes. Examples of the output are also included in the post.
voice your opinion now!
imagick color palette average dark light tutorial imagick color palette average dark light tutorial
Synfony Project: New testing framework
by Chris Cornutt September 19, 2006 @ 07:44:42
On the Synfony project's blog, they've posted about a new testing framework that they've implemented for their framework based around something they call "lime".
If you keep an eye on the timeline, you probably saw that the symfony unit tests have been completely reworked lately. This is because we switched from simpletest, which was fine but had side effects when functional tests were executed all at once, to our own testing framework, lime.
Lime is more lighweight than PHPUnit or simpletest and has several advantages. First, it launches test files in a sandbox to avoid strange effects between each test file run (one of the reasons we were unable to fix the old symfony core tests). It also introduces a new sfBrowser, sfTestBrowser and more importantly sfDomCssSelectorBrowser that allow you to write functionnal tests with ease. It is not backward compatible but is a lot more powerful than the old system. Oh, and it holds in a single file, lime.php, without any dependence.
They show some examples of its usage (and a note on which tests will need to be updated) as well as the output that would come of it. They've also included some sample tests (in the "test/" folder of the release) if you'd like to check it out more throughly.
voice your opinion now!
testing framework lime simpletest light example results testing framework lime simpletest light example results
Matthew Weir O'Phinney's Blog: The light has not set on PHP
by Chris Cornutt June 06, 2006 @ 17:16:23
Matthew Weir O'Phinney has posted his own rebuttal to the wide-spread Why the Light Has Gone Out on LAMP article posted recently.
In the post, the author makes an analogy of using PHP + MySQL as the equivalent of using BASIC, and then uses a quote that claims BASIC "has become the leading cause of brain-damage in proto-hackers."
I'm sorry, but using a language doesn't cause brain damage. And there are many levels to programming. And using Python, Ruby, C, C++, Java, etc., does not automatically make you a better programmer than those using one of "those other languages". You can write crap code in any language. You can also write great code in just about any language.
Matthew also mentions a real truth behind programming, no matter who you are - that it takes practice, lots and lots of practice. That's what it is - constant practice so you know better how to combat the troubles you might find the next time they rear their ugly head.
voice your opinion now!
light set programming practice light set programming practice
NewsForge: Real world control from a Web page
by Chris Cornutt May 23, 2006 @ 07:20:11
If you've ever wanted yout scripts to do something more "outside the box" and out in the real world, you might want to check out this new tutorial from NewsForge for a good start.
In "Acquiring data from the physical world" we examined how to use a microcontroller to turn physical events (such as reading a switch) into data and send that data to a Linux box via the serial line. With this capability you can do things like counting people passing through a gate or recording how the temperature changes over time in a factory process. You can then send the data to a Web page. In this article, we'll do it in reverse -- from a Web form, instruct a microcontroller to perform some actions
The concept's pretty simple - the form they build submits back to the page and writes the input out to a file. This file is then read by the controller for the LED they have connected and, with the proper input, will turn it on and off. The code for the PHP/web side of things is included, but it might take a little work to get the rest of the hardware interfaced (as the author saw as well).
voice your opinion now!
real world control web page microcontroller led light real world control web page microcontroller led light
Builder.com.au: LAMP lights way on open source security
by Chris Cornutt March 07, 2006 @ 07:25:42
From Builder.co.au, there's this new article that talks about the LAMP software, how's it's "showing the way" to Open Source security.
The most popular open-source software is also the most free of bugs, according to the first results of a U.S. government-sponsored effort to help make such software as secure as possible.
The so-called LAMP stack of open-source software has a lower bug density--the number of bugs per thousand lines of code--than a baseline of 32 open-source projects analysed, Coverity, a maker of code analysis tools, announced Monday.
The results are a product of a Homeland Security effort (performed by Stanford University) for three years. They found that the LAMP combination contained about 0.434 bugs per 1,000 lines of code. Unfortunately, their results also showed, of those problems, PHP had the higest bug count of the four.
voice your opinion now!
lamp light way open source security most secure lamp light way open source security most secure
|
Community Events
Don't see your event here? Let us know!
|