Perl Script to Fetch PNR Status reservation on train from Indian Railways

2010
04
Feb

The code below is a perl script that fetches the PNR status from the indianrail.gov.in website and displays it on the command line.

Warning: No one is authorised to make any type of commercial usage like putting web advertisements or SMS service and Reproducing/Transmitting/Storing in its database, any content of www.indianrail.gov.in website, without prior written permission from Indian Railways. Violators will be severely prosecuted.

Read More

List of Publically accessible drupal sites you can play around with

2009
18
Dec
2

Here's a list of sites for drupal developers to play around with.

HTML Comments without moderation

  • www.themallblog.com
  • www.eatsleepandcode.com
  • www.layt.net

Anonymous node editing

  • mature-ip.eu/node/115/edit
  • drupal.kldp.net (Its all Korean I dont know what all is possible)
  • drupal.x73.ch
  • proves2.iws.es/drupal
  • emusic.mozdev.org/drupal
  • www.news7newslinc.net
  • futuregrid.org
  • www.aidsvancouver.org
  • jennycrumiller.com
Read More

Detect in form_alter if the node submitted is added or edited

2009
15
Dec

When you want to alter a form on Drupal, it is useful to detect if the form being submitted is to add a new node or edit an existing node. To detect if a form is being added or submitted, check the
$form[<content-type>]['nid']['#value'].
Example :
$form['book']['nid']['#value'].
If the value is new, the node is being added.
If the value is numeric, the node with nid as the number is being edited.

Anyone got better ideas ? Smiling



Making symbolic links on Windows xp using junction from sysinternals

2009
14
Dec

Symlinks is a utility that allows two paths to point to the same set of files and subfolders. This is a handy utility on linux which lets you point one path on linux to another path. To do achieve the same functionality on Windows XP, software called junction can be used. provided by SysInternals.

Here is the help from the junction.exe

D:\>junction /?
Junction v1.05 - Windows junction creator and reparse point viewer
Copyright (C) 2000-2007 Mark Russinovich
Systems Internals - http://www.sysinternals.com

Read More

Mall Blog XSS in Comments

2009
11
Dec
4

So you came from the The MALL blog, this is because of opened out HTML comments on the MALL blog.
The MALL blog has full html support in its comments, which is a dangerous feature.

More sites :

  • www.eatsleepandcode.com
  • www.layt.net
  • mature-ip.eu : Any nodes can be edited on this site, wierd!!! Fix it ASAP


Installing Google Chrome on Ubuntu 9.10

2009
09
Dec

Google Chrome on Linux Ubuntu

Instalation

Click Here to install Google Chrome on Ubuntu.



Syndicate content