Tuesday, January 26, 2010
Link To Full Story: www.webdeveloperjuice.com

Thinking of implementing caching for your php application , you are at a right place. Just in 10 simple (copy and paste) steps you can install and access Memcached Server.
Step1: Install libevent ,libmemcached and libmemcached devel (dependency)
1
2
| yum install libevent
yum install libmemcached libmemcached-devel |
.
Step 2: Install Memcached Server
Tuesday, January 26, 2010
Link To Full Story: java.dzone.com
With all the buzz around Twitter these days, it's no surprise that
we see new clients popping up everywhere - on our desktops, the web and
as mobile applications. While some applications are done quite well, it
can be difficult to find the one that has the features that you want.
But like all software developers, you have a choice - you can go ahead
and build one of your own. That's where Twitter4J fits in.
I first became aware of Twitter4J as I was working on my Twitter client
using ECF. No matter what feature I needed from Twitter, it was
supported in Twitter4J. Of course, you can integrate into any Java
application from version 1.4.2, and there's also support for the
Android platform. In this article i'm going to give a brief overview of
how to use the framework to connect to, and use, Twitter. With the
basic building blocks that the library provides, you can create your
own rich Twitter interface.
Getting Started
It couldn't be easier to get going with this library - simply download the latest version, and add the core library to your classpath.
Tuesday, January 26, 2010
Link To Full Story: KILLERPHP.COM

Hi,
I’ve been busy with things and so not too many updates lately. Not to worry thought, we have a brand new course and lots of free videos coming out soon on advanced MySQL.
In the following podcast (it was a video but I changed my mind …), I talk about the pragmatism of the Zend Framework dudes.
MP3: zendframework-and-doctrine
Short and sweet.
Stefan Mischook
www.killerphp.com
Link To Full Story: www.wait-till-i.com
Here’s how this works:
You can guess the location of a user by their IP and Rasmus Lerdorf wrote a nice API to do that at http://geoip.pidgets.com/. Using that, you can read the IP in PHP and call the API with cURL:
if ($_SERVER['HTTP_X_FORWARD_FOR']) {
$ip = $_SERVER['HTTP_X_FORWARD_FOR'];
} else {
$ip = $_SERVER['REMOTE_ADDR'];
}
$url = 'http://geoip.pidgets.com/?ip='.$ip.'&format=json';
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, $url);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
$output = curl_exec($ch);
curl_close($ch);
$data = json_decode($output);
$lat = $data->latitude;
$lon = $data->longitude;
Link To Full Story: ria.dzone.com
Data-centric development is an exciting new Rapid
Application Development (RAD) feature in Flash Builder 4 beta 2, which helps
traditional web and novice Flex developers to quickly build rich data-centric
Flex applications that fetch data from various back-ends including ColdFusion,
PHP, BlazeDS, LiveCycle Data Services ES, web services, and HTTP services.
Because web
services are such a popular mechanism for exchanging data between different
applications and platforms on the Internet, Flash Builder 4 provides easy and
efficient ways to import, explore, and use web services. Through its unified
workflow wizards, Flash Builder 4 helps developers quickly build Rich Internet
Applications that leverage existing corporate or public service
infrastructures, including web services.
In this article, I will demonstrate these capabilities by
showing you how to build an application (see Figure 1) that uses Zenfolio's web service to display photos.

Link To Full Story: net.tutsplus.com
What is YQL?
Web apps and web services multiply like rabbits. They’re all fun to play with (like rabbits) and fun to integrate into other projects (unlike rabbits). But learning a new API every other day isn’t feasible or fun. And that’s the problem the Yahoo Query Language (YQL) is out to solve.
Think of YQL as the API for the web, the one API to rule them all. It’s not a hard one to learn, so let’s get you up to speed right now!
How do I use it?
Yahoo has put together a pretty nice console for us to flex our muscles with YQL. Load up that console, and let’s explore it.
In the right sidebar, you can choose a “table” in the “database”; a sample query will show up in the statement box at the top. To the right of the statement box, you can see what the corresponsing REST query would. Below, you have the data returned from the query; you can receive data in either XML or JSON.
So, let’s try a query!
Link To Full Story: www.sellmix.com
4: Do not trust your users!
90% of beginner PHP programmers trust their users. I may have completely made that statistic up – but I’m pretty sure it would be close enough to that figure. Sure, the majority of the people who will use your web application will be nice people who would never dream of damaging your website. However, all it takes is one a!*hole with enough knowledge about web applications to ruin the entire show. If you’re asking the user to enter a number, check that what they entered is actually a number. If you’re asking a user to enter their email address, check to make sure that what they entered was actually an email address.
5: Brackets – use them.
if($condition)
//do something
The above piece of code may work etc, but it makes your code far less readable. Instead, you should always try to use full parenthesis:
if($condition){
//do something
}
It just makes your code easier on the eye and gives it some structure, that’s all.
6 – The often liberal assignment of variables onto one another
When you are constantly assigning variables onto one another, you’re not only using up memory – you’re also making it difficult to track any bugs that might pop up:
require_once("inc/vars.php");
$tax_insurance = $total_tax;
$cost = $tax_insurance + $other_variable;
$another_cost = $cost + $other_variable;
$cost = $another_cost;
$goddamit = $another_cost;
Ugh.
Link To Full Story: gojko.net
During the last two years, I was involved in several projects deployed on the Amazon cloud. Being a relatively early adopter was a fantastic experience that provided lots of opportunities to burn my fingers and learn from mistakes. It also seriously challenged my view of scalable software architectures. I spoke about key lessons learned at CloudCamp London last week – here is the summary of that presentation.
Before I start, I’d like to point out that judging from this post it might seem that I have a negative view of cloud deployments, but nothing could be further from the truth. I have many nice things to say about the cloud, but lots of other presenters at CloudCamp do that all the time. I wanted to play the devil’s advocate a bit and expose some of the things that you won’t necessarily find in marketing materials.
First fundamental rule of cloud deployment: No single machine on the cloud is going to be any more reliable than any other machine there
Before the cloud, I was used to investing more in machines which were more important. Database boxes would have better power supplies than web servers, ideally redundant. Content servers got better disks and lots of them. A nice Cisco appliance would balance requests to web servers, and was infinitely more reliable than them. Web servers, for all I cared, could crash and burn at any time, as long as they did not all decide to do it at the same time. With the cloud, this isn’t possible. No matter how many virtual cores or memory you rent, all the boxes are running on very similar hardware. Or, putting it in another way:
Link To Full Story: papermashup.com
I’ve never really got the hang of PHP frameworks and have tended to use my own custom built CMS but even with this I still find myself writing the same code over and over again. In the past I’ve dabbled with CakePHP and the Zend Framework and not really got very far, so a few days ago I downloaded CodeIgniter. Although I’m extremely new to this I was pretty blown away by the simplicity of setting things up and getting an actual webpage that processes something online.
How It Works
CodeIgniter uses the MVC or Model View Controller architectural pattern, if your not familiar with MVC it is a logical object orientated development approach. below we look at a simple example of how we use the MVC.

Link To Full Story: subversion.wandisco.com
Yesterday, the Subversion development community released Subversion 1.6.9, the latest patch release in the 1.6 series. Subversion 1.6.9 contains several bug fixes, some of which include:
- Support for Berkeley DB 4.8.
- Reduce errors when committing to an out-of-date pass-through proxy.
- Fix a couple of segmentation faults, one in FSFS, the other when using "svn resolve".
- "Future-proofing" the 1.6.x release line by allowing 1.6.9 to notice when the current working copy was created by a 1.7-era Subversion client.
The complete list of changes can be found in the change log.