November 2008
New Book Published: Drupal for Education and E-Learning
Submitted by heshan on Sun, 11/30/2008 - 21:21Drupal 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
Submitted by heshan on Fri, 11/28/2008 - 23:03
<?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);
- heshan's blog
- 1 comment
- 610 reads
-
How to Redirect a Web Page in 12 ways.
Submitted by heshan on Thu, 11/27/2008 - 00:43301 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
- heshan's blog
- Add new comment
- Read more
- 511 reads
-
Yoursphere.com case study
Submitted by heshan on Thu, 11/27/2008 - 00:22One 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
Submitted by heshan on Tue, 11/25/2008 - 12:49Fault
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
- heshan's blog
- 3 comments
- Read more
- 1011 reads
-
using NuSoap: consume a .NET web service in 10 min
Submitted by heshan on Tue, 11/25/2008 - 11:44The 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
- heshan's blog
- 14 comments
- Read more
- 12046 reads
-
Installing Trac on the Bluehost or Hostmonster
Submitted by heshan on Tue, 11/25/2008 - 05:59This 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
Submitted by heshan on Tue, 11/25/2008 - 05:50This 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.
- heshan's blog
- 6 comments
- Read more
- 5417 reads
-
The Theming Handbook is being reorganized!
Submitted by heshan on Sun, 11/23/2008 - 02:43While 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
Submitted by heshan on Sat, 11/22/2008 - 10:41Simplicity 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.
- heshan's blog
- 1 comment
- Read more
- 214 reads
-
Create a PHP webservice in 5min, Using PHP, SOAP and WSDL Technology , NuSOAP
Submitted by heshan on Sat, 11/22/2008 - 09:59Introduction
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!.
- heshan's blog
- 22 comments
- Read more
- 7869 reads
-
Open editing is here to stay
Submitted by heshan on Thu, 11/20/2008 - 06:01Just 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
Submitted by heshan on Thu, 11/20/2008 - 03:32This 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.
- Read more
- 152 reads
-
HEIDI's Programing Lab
Submitted by heshan on Wed, 11/19/2008 - 13:43----- Experiments - Observations - Conclusions -----
- Add new comment
- 1081 reads
Drupal
Submitted by heshan on Wed, 11/19/2008 - 12:42Drupal.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.
- Add new comment
- 150 reads
- 1 of 3
- ››