Creating Virtual disks

Alcohol and Daemon Tools are excellent software packages that allow users to mount ISO files as virtual CD-ROMs. Yes, there is a way to use that ISO without burning it to a disk.

Although I love these tools, Microsoft has a free, 60kb program that does the same thing! Of course, it is not supported… and it’s not as friendly as the software listed above; however, it works and it’s free.

Here’s the download link:
winxpvirtualcdcontrolpanel
http://download.microsoft.com/download/7/b/6/7b6abd84-7841-4978-96f5-bd5...

Here’s the readme:

Generating urls very quicky

I recently needed to download a range of files from the web but i didnt want to start every single downlaod there were over 300 files lots of click and lots of time. Luckily for me the file were generic in name so all I had to do was write a script that wrote the files to a txt files, here the first part of the code I'll leave it to some else else to provide the download part.

1
2
3
4
5
6
7
8
9
Arr=[]
string1 = 'http://www.mysite.com/?fileid='
 
for i in range(1, 400):
        Arr.append(string1 + str(i))
else:
        print 'The for loop is over'
 
f = file('c:\\foo.txt', 'w')

Getting FDT setup to run an as3 project

i was trying to get FDT to run a native as3 project this morning. The steps below may indeed help someone or other

1. Set up Eclipse/FDT Preferences

* In Eclipse, open the Preferences panel.
* In the FDT->Core Libraries settings, select the AS3 Core Libraries tab.
* Click the Fast Add… button.
* In the Type drop-down menu, select Pure AS3 (Flex 3) and for the Path field, browse to the directory where you installed the Flex SDK. In my case, I use /usr/local/flex_sdk_3 (figure 1). Click OK.

Theming breadcrumbs

Theming breadcrumbs in drupal is extremely easy, simply using the theme_breadcrumb hook

1
2
3
4
5
6
7
8
9
10
function mytheme_breadcrumb($breadcrumb) {
  if (!empty($breadcrumb)) {
    $lastitem = sizeof($breadcrumb);
    $crumbs = '<div id="breadcrumbholder"><b>Location : </b>';
    
    
    $a=1;
    foreach($breadcrumb as $value) {
        if ($a!=$lastitem){
         $crumbs .= '<p>'.$value.'martin</p>

Theming imagecache content

The more you get into drupal the more you find that it isnt as module as you would hope. I just spent the afternoon trying to find a solution to all my image uploads appearing at the bottom of my posts (Im using image cache with CCK imagefield). For templating this isnt where I would like my images to appear. The main issue is that the relevant string is enbriled in the $content variable.

The solution to get around the problem initially I thought it was the $vars['field_imagename_rendered'] = ''; the %vars vairable coming from the $node.