Custom your own category :

  • 1. Choose the categories by select the check box before category names.
  • 2. Choose the methode to combain the choosen categories between 'Slice' or 'Union' in the drop down list.
  • 3. Execute with click the 'Go' button.

You are currently browsing the archives for the Custom Programming category.

Design Principles in Ruby on Rails

Custom Programming, Framework, Ruby on Rails, Web Articles for Dummies



Within the last few years Ruby on Rails (RoR or just simply Rails) has gained great popularity in the way people develop web applications. It offers web developers to make an architecturally clean web application at a relatively faster time, compared to many existing technologies known. By clean architecture, I mean an application that you could painlessly maintain, change, and extend to meet the objectives of why it’s built, even perhaps by someone who initially didn’t develop it..

..

And thus enters Ruby on Rails. Rails is developed to meet these requirements, it is expected to help developers build a flexible, scalable, and easy-to-maintain web application in a rapid way. Rails achieves this because it follows certain software design principles, which are:

  • MVC: Models - Views - Controllers
  • Conventions over Configurations
  • DRY: Don’t Repeat Yourself

Full article: http://www.slepi.net

License: Creative Commons Attribution 3.0 Unported

Add to any service

Indexed in June 2008

Related Info Web

PHP Sucks

Custom Programming, Server-side Scripting



My work on a tool to migrate Drupal content to Wordpress’ eXtended RSS (‘WXR) led me into some dusty corners of the WordPress codebase, and I’ve been meaning to write a grumpy post about how much I hate PHP (in which Wordpress is written), but Jeff Atwood at Coding Horror beat me to it with his own PHP sucks lament. Like me, Jeff wonders at the success of PHP given what a dreadfully sucky software engineering tool it is, and scratches his head at the many major Internet properties (Wikipedia, Digg, and Wordpress among them) which are successful notwithstanding an implementation in a language a VB6 programmer might reasonable call “shit”.

Interestingly, though, Jeff and I arrived at two different conclusions on the matter. Jeff surmises:

Some of the largest sites on the internet — sites you probably interact with on a daily basis — are written in PHP. If PHP sucks so profoundly, why is it powering so much of the internet?

..

..

Now don’t get me wrong. I’m not one of those backward types who doesn’t see the point in unit testing, thinks object orientation is too complicated, and wouldn’t know a bad code smell from roadkill. I take the practice of software engineering seriously, and strive to build the best software I can within the constraints of our business. In this regard I’m more like the second stonecutter in Peter Drucker’s Three Stonecutters parable:

A favorite story at management meetings is that of the three stonecutters who were asked what they were doing. The first replied, ‘I am making a living.’ The second kept on hammering while he said, ‘I am doing the best job of stonecutting in the entire country.’ The third one looked up with a visionary gleam in his eyes and said, ‘I am building a cathedral.’

..

Full article: http://apocryph.org/php_sucks

License: Creative Commons Attribution 2.5

Add to any service

Indexed in June 2008

No related posts

Apache, MySQL & PHP on Ubuntu

Custom Programming, Database, Free for Web, Server-side Scripting, Web Server



Lately I’ve been performing lots of fresh system installs, a result of testing my Ubuntu respin. Restoring my personal data after such an install is simple enough, but having to reinstall my Apache, MySQL & PHP set-up requires a little more effort. So, for future reference I’ve decided to record the process. By following the instructions below I should be able to get my development server up and running within minutes.

AMP install instructions

1. Open a terminal and issue the following command to install the three main packages:

sudo apt-get install apache2 mysql-server php5

This will install the following packages:

apache2 apache2-mpm-prefork apache2-utils apache2.2-common libapache2-mod-php5
libapr1 libaprutil1 libdbd-mysql-perl libdbi-perl libmysqlclient15off libnet-daemon-perllibplrpc-perl libpq5 mysql-client-5.0 mysql-common mysql-server mysql-server-5.0
php5 php5-common

Full article: http://crunchbang.org

License: Creative Commons Attribution-Share Alike 2.0 UK

Add to any service

Indexed in June 2008

Related Info Web

Introduction to XMPP and XMPP4R for Ruby Developers

Custom Programming, Web Articles for Dummies, Web Server



As Wikipedia says, XMPP is “an open, XML-inspired protocol for near-real-time, extensible instant messaging and presence information.” It’s used by Jabber, the Gizmo Project, Google Talk, Pidgin, Kopete, and all sorts of open source instant messaging applications..

XMPP support in Ruby comes, primarily, from the XMPP4R library (Jabber4R and Net::XMPP are both semi-abandoned), and Frank Lamontagne (of Ruby Fleebie) has written a two part tutorial / guide to using XMPP4R to integrate with Instant Messaging systems..

Full article: http://www.rubyinside.com

License: Creative Commons Attribution-Share Alike 2.0 UK: England & Wales

Add to any service

Indexed in June 2008

Related Info Web

A Very Easy WordPress Tag Cloud Web Page

Custom Programming, Promoting Website, SEO, Weblog (Blog), Wordpress Blog



You may be aware that the Internet is becoming very crowded. Google will attempt to help you get where you want to go, but is having increasing difficulties. Part of that is Google’s doing. Their methodology depends on links from other web pages, so naturally, everyone is producing web pages. Indeed, some use computer software to generate thousands of web pages to influence their Google ranking..

..

Tags To Bring Order To The Cyber Sphere

Tagging certainly seems to be something that has real potential in helping us all navigate our way through the World Wide Web. Tags do of course come in two flavors. You can take a body of text and use a computer to determine what are the most frequently used terms. That is one way and it may be the route that Sir Tim is following..

..

Making Your Very Easy WordPress Tag Cloud Web Page

Displaying the full set of tags generated for a blog is clearly inappropriate for a sidebar display. What is much preferable is a web page displaying the full set of tags..

Full article: http://www.staygolinks.com

License: Creative Commons Attribution 3.0 Unported

Add to any service

Indexed in June 2008

Related Info Web

An Example Zend Framework Blog Application - Part 2: The MVC Application Architecture

Custom Programming, Framework



..

After speaking with any number of users about getting started with a framework, I find many do not have an advanced understanding of the corner stone of a current day web application framework: the Model-View-Controller Design Pattern. So let’s get over that hill right now, and before we start looking at PHP!

As a bit of background, consider the traditional and still popular approach to writing an application in PHP. Usually you take an approach called the Page Controller. Each HTML page of your application may have it’s own dedicated PHP file - often it ends up as many HTML pages per PHP file, but only if those pages are sufficiently similar (e.g. forms and form processing are typical) that the relationship is formed out of the need to re-use source code in the same file..

..

To be clear, the MVC is common as dirt. It is widely used in the Zend Framework, Solar, Symfony, Ruby on Rails, merb, Django, Spring, and countless other frameworks. It is an unescapable concept when adopting a framework for web applications in almost any language.

Full article: http://blog.astrumfutura.com

License: Creative Commons

Add to any service

Indexed in June 2008

Related Info Web

Ajax & Javascript

Ajax, Client-side Scripting, Custom Programming



When it comes to design of modern web-applications, Ajax is considered as a standard approach. Interactive solutions for lightboxes, form validation, navigation, search, tooltips and tables are developed using Ajax libraries and nifty Ajax scripts. Ajax is useful and powerful. However, when using Ajax, one should keep in mind its drawbacks in terms of usability and accessibility. With an extensive use of Ajax, you can easily confuse your visitors offering too much control and too many features.

..

Useful Ajax Scripts

Mocha UI
Mocha is a web applications user interface library built on the Mootools javascript framework. The Mocha GUI components are made with <canvas> tag graphics.

Ajax Script

An Accessible Slider
“Recently we designed and developed an interface that required a slider control, which allows users to choose one or a range of values on a continuum. Values on a slider can represent anything from hours on a clock to the volume on a music player to a complex, proprietary data set. In its simplest form, the slider is displayed as an axis of values with a handle to drag and select a value, or two handles for selecting a range.”

Full article: http://www.sinidaily.com/ajax-java/

License: Creative Commons License

Add to any service

Indexed in May 2008

Related Info Web

How To Display Ads In Your WordPress Sidebar

Custom Programming, Elements of a Web, Make Money from Website, Web Articles for Dummies, Weblog (Blog), Wordpress Blog



A lot of new bloggers want to include advertising on their site, but find the idea of adding an advertisement to their sidebar daunting. If your blog runs on WordPress software, it’s a simple matter of using your text widgets to show ads. In this post, we’ll show you how.

..

What is an ad?

When you sign up for ads, typically via an affiliate program, you will be provided with a username and password which will allow you to login and select the ads you wish to run on your blog.

Nearly all affiliate programs will provide the HTML code that you need to add to your blog. All you will need to do is to copy this HTML code to the clipboard and then paste it into a text widget.

If we walk through an example, you’ll see it really is that simple.

For an image based ad, the HTML will be of the form:

<a href=”…”><img src=”…” /></a>

 …

Full article: http://blog-well.com

License: Creative Commons Attribution-Share Alike 3.0 Unported

Add to any service

Indexed in May 2008

Related Info Web

Automatic Daily Backup with cpanel

Custom Programming, Maintenance Web



This script is an updated version of the one posted by max.hedroom in cpanel.net forums. It supports scp/ftp uploads and remote directories. You can execute this script from you scp host,home computer or your host server. I’d suggest using it from your own machine since it contains plan text passwords!

All You have to do is save the following code to a .php file and add a cron job to execute the php file every tome you would like to have a full backup of your entire web page(emails, DBs, web files) on your own machine.

Full article: http://joro.geodar.com/diary/2005/11/11/233/

License: Creative Commons

Add to any service

Indexed in May 2008

Related Info Web

Drupal : Three simple steps to adding ajax to your drupal forms/pages

Ajax, CMS, Custom Programming, Drupal, Elements of a Web



If you need a simple content refresh system, let me show you an example of a simple (yet powerful) implementation.

Step 1
Download a the lightweight ajax library from ImpliedByDesign, and copy it to a directory called “ajax” in your module directory.

Full article: http://www.kvaes.be

License: Creative Commons

Add to any service

Indexed in May 2008

Related Info Web