ifs

Add or extend file system support under windows

I've seen that Mac Drive 7 adds HFS+ and HFS support to windows for both hard-drives and CDs, which includes handling problems like the mac partition format. Clearly that must mean that file system support in windows is extensible somehow, even if it is slow. So where could someone start to write a simple (or not) file system driver for ...

validating correct answer with loops in python

Sorry for the non descriptive question I had no idea how to word it. I'm trying to write a program (GUI) where I ask the users questions and then in return they answer and see if they are correct however when I enter the correct answer it's still showing as being incorrect. My code looks something like this. prompt for question 1 txt...

Is something wrong with this MySQL query?

Hey guys, I'm trying to update a site that was coded horribly, and I think there is an error in this multiple IF statement. I've been Googling for a while and can't find any example of multiple IFs in a MySQL UPDATE query. The idea is, we want to update a certain column of the row based on a different column of the row. Here's the que...

BASH: How do you "split" the date command?

Cygwin user here (though if there's a suitable solution I will carry it over to K/Ubuntu, which I also use). I have a Welcome message in my .bashrc that looks like the following: SAD=(`date +%A-%B-%d-%Y`) DUB=(`date -u +%k:%M`) printf "Today's Date is: ${SAD}.\n" printf "Dublin time is now ${DUB}. (24-Hour Clock)\n" After numerous at...

String tokenisation algorithm won't tokenise

Morning all, I am writing a bash script to extract the values of certain XML tags from all files in a given directory. I have decided to do this by tokenising each line and returning th4e relavent token. The problem is that it isn't tokenising correctly and I can't quite work out why. Here is the smallest example that I could make tha...