November 2008

November 2008

November 2008

New Book Published: Drupal for Education and E-Learning

Drupal for Education and E-Learning is now available from Packt Publishing. This book covers Drupal 6, and describes how to build a community site to support teaching and learning. This book is designed for people new to Drupal, with no prior development experience.

Merging stdClass() objects in php


<?php
 
$foo1 = new stdClass();
$foo2 = new stdClass();
$foo3 = new stdClass();
 
$foo1->one = "1";
$foo2->two = "2";
 
foreach ( $foo1 as $key => $value ) {
  $foo3->$key = $value;
}
 
foreach ( $foo2 as $key => $value ) {
  $foo3->$key = $value;
}
 
var_dump($foo3);

Tags

How to Redirect a Web Page in 12 ways.

301 Redirect

301 redirect is the most efficient and Search Engine Friendly method for webpage redirection. It's not that hard to implement and it should preserve your search engine rankings for that particular page. If you have to change file names or move pages around, it's the safest option. The code "301" is interpreted as "moved permanently".

You can Test your redirection with Search Engine Friendly Redirect Checker

Below are a Couple of methods to implement URL Redirection.

IIS Redirect

Tags

Yoursphere.com case study

One mom's mission to create a safe online space for teens
Yoursphere.com is a safe kids-only social network (built with Drupal 5), which is complemented by an online safety blog and discussion site, internet-safety.yoursphere.com (built with Acquia Drupal).

Using Cookie in NuSOAP

Fault

Array ( [faultcode] => soap:Server [faultstring] => Server was unable to process request. ---> Current session has no workflow instance associated with it. Send activation message to start new instance in current session. [detail] => )

Fix for the solution

Description
adds a new Cookie into $this->cookies array
* return: if cookie-set was successful returns true, else false
* access: public
boolean setCookie (string $name, string $value)
* string $name: Cookie Name

Tags

using NuSoap: consume a .NET web service in 10 min

The WSDL file

This is the URL for a WSDL file that hosted at a IIS server. http://www.webservicex.com/TranslateService.asmx?wsdl

So let's try to compose by our-self the content of the body of our SOAP message to query this web service, we will use NuSoap to achieve the job: we must use the targetnamespace this way, this .NET web service doesn't like the namespace prefix generated automatically by NuSoap
wsdl:definitions targetNamespace="http://www.webservicex.net"
nothing really difficult here, just follow the wsdl, or, use the tool TcpTunnelGui with a working client, or see the documentation generated by the .NET web service on-line

Tags

Installing Trac on the Bluehost or Hostmonster

This guide was made primarily to help Hostmonster customers setup Trac. However, the setup is generic enough, that with only little modification, this guide can be applied to any shared-hosting setup running the Apache webserver (or if you want to use cgi for some reason). To work, you will need access to shell, and have basic understanding of text editing in shell. Hostmonster provides python2.3, and easy subversion repository setup - so these are assumed to already be in place.

Installing Trac on the Hostmonster or Bluehost

This guide was made primarily to help Hostmonster customers setup Trac. However, the setup is generic enough, that with only little modification, this guide can be applied to any shared-hosting setup running the Apache webserver (or if you want to use cgi for some reason). To work, you will need access to shell, and have basic understanding of text editing in shell. Hostmonster provides python2.3, and easy subversion repository setup - so these are assumed to already be in place.

Tags

The Theming Handbook is being reorganized!

While many people say that theming is one of the better organized topics in Drupal's documentation, many have expressed frustration that relevant pages are located in a variety of different branches, and even separate handbooks. The documentation team has also decided that this has created an unsustainable path for forward maintenance.

30 Useful PHP Classes and Components

Simplicity and extensibility are the main reasons why PHP became the favourite dynamic language of the Web. In the last decade, PHP has developed from a niche language for adding dynamic functionality to small websites to a powerful tool making strong inroads into large-scale Web systems.

Below I present 30 useful PHP classes and components that you can use to test, develop, debug and deploy your PHP applications. Let me know if I missed anything or if you have something to add.

Tags

Create a PHP webservice in 5min, Using PHP, SOAP and WSDL Technology , NuSOAP

Introduction

Unless you have been living in a cave somewhere without Internet access for the last few years, you have undoubtedly heard of XML, SOAP and Multi-Tiered Application Programming. If you are like many programmers, including myself, you were quite taken aback by these ideas and technologies. You may have gone so far as to simply dismiss them as irrelevant to your skill set. It's time to wake up and realize they're hereto stay... and for good reason!.

Tags

Open editing is here to stay

Just over a month ago, we announced that we opened up editing rights to much of the handbooks for all users on Drupal.org. Our one month trial period is over and the Documentation team has decided that overall it has been a success. We have seen many more edits and fixes in the handbook and, while we did see some limited mess to clean up, occurrences of vandalism (or playing around) were relatively uncommon. We feel, at this time, that open editing is a significant benefit to our handbooks. We have decided to leave open editing in place, with no further defined trial periods. Keep editing away!

Moving to New Host

This Blog has been moved to HEIDI Software Labs Heshan Wanigasooriya

Drupal wins 2008 Best PHP Open Source CMS


For the third year in a row, Drupal has been nominated for a Packt Publishing Open Source CMS award. Packt Publishing is announcing winners all week. Today they announced the 2008 best PHP open source CMS.

Tags

HEIDI's Programing Lab

----- Experiments - Observations - Conclusions -----

Drupal

Drupal.org is the official website of Drupal, an open source content management platform. Equipped with a powerful blend of features, Drupal supports a variety of websites ranging from personal weblogs to large community-driven websites.

Keepaa.com

Keepaa.com