A Conversation for LIL'S ATELIER
The Atelier computer technology lab
Asteroid Lil - Offstage Presence Posted Jul 26, 2005
It's the DOS disk partition utility, the only way to really and truly and absolutely destroy the contents of a hard drive, including the boot sector (and any viruses dwelling therein).
After you run FDISK to create one or more partitions, you have to format the hard drive. I might be wrong about this, but to reformat without first running FDISK leaves boot sectors intact.
And then after you format you start installing the OS and then your software.
The Atelier computer technology lab
Good Doctor Zomnker (This must be Tuesday," said GDZ to himself, sinking low over his Dr. Pepper, "I never could get the hang of Tuesdays.") Posted Jul 26, 2005
That is correct Lil.
The Atelier computer technology lab
Asteroid Lil - Offstage Presence Posted Jul 26, 2005
I've simulposted with GDZ.
FDISK is very obtusely designed. I have a copy of the Sybex DOS 6 textbook in the house for those times when I have descend below stairs and use those utilities.
Remember the days when dot com meant something else??
The Atelier computer technology lab
marvthegrate LtG KEA Posted Jul 26, 2005
fdisk transcends the DOS platform. You use it in *nix as well.
Ah, remember the yahoo.com virus of a few years back? That was due to people not knowing that the .com was also a file extension for an executable. Fun stuff that.
The Atelier computer technology lab
Good Doctor Zomnker (This must be Tuesday," said GDZ to himself, sinking low over his Dr. Pepper, "I never could get the hang of Tuesdays.") Posted Jul 26, 2005
I remember the original .com. Still use it on occasion.
The Atelier computer technology lab
Bagpuss Posted Jul 26, 2005
*peeks round the door*
Hi all, may I ask a question? Should Real Player be this rubbish? See, I want to watch Mighty Boosh on the BBC website, but it only made it to about 3 minutes in before pausing with the explanation that it was "Communicating". On top of that, the picture tends to freeze or go partly blocky.
The Atelier computer technology lab
Good Doctor Zomnker (This must be Tuesday," said GDZ to himself, sinking low over his Dr. Pepper, "I never could get the hang of Tuesdays.") Posted Jul 26, 2005
Sounds like it isn't buffering properly. Personally, I don't like the RealPlayer.
The Atelier computer technology lab
Asteroid Lil - Offstage Presence Posted Jul 26, 2005
I won't allow it on my computer. If something is offered in realplayer only, I give it a miss. Which is a shame, because NPR is all Realplayer. But I've been prejudiced against it since the days when it used to insert itself all over the place without asking, as well as pre-empting default preferences.
Not to mention the ads.
The Atelier computer technology lab
Phil Posted Jul 27, 2005
Do you have a broadband connection Bagpuss? If not then it will do as you say it does as it gets little bits of the data then has to wait to get some more and so on. It's not as bad for the radio stuff (speech programmes rather than music programmes I mean). If you do have broadband and you're trying to do all sorts of other network things as well (download stuff, read hootoo etc) then these also will take some of the bandwidth away from realplayer. If you're not doing those things then there is a problem somewhere between you and the BBC that's causing it to happen (or it may be at the bbc end if everyone is trying to get the same stuff all at once - see all the hootoo glitches and earthquakes when big stuff happens).
The Atelier computer technology lab
Bagpuss Posted Jul 28, 2005
Yes, broadband. I just experimented by downloading something and it seems to have settled down at 35KB/s, which is probably a lot less than it should be. I suspect that there's a problem between me and the BBC. I call the problem "NTL".
The Atelier computer technology lab
Good Doctor Zomnker (This must be Tuesday," said GDZ to himself, sinking low over his Dr. Pepper, "I never could get the hang of Tuesdays.") Posted Jul 29, 2005
Anyone know anything about programing in java? Specifically, I need info on if-then-else.
The Atelier computer technology lab
marvthegrate LtG KEA Posted Jul 29, 2005
Ping Courtesy. He will know. But then he might charge ya
The Atelier computer technology lab
J'au-æmne Posted Jul 29, 2005
I studied java for a couple of terms I don't know if this is what you're after, and you might have found the solution already, but this is how to do if statements in JAVA...
if (condition1) {
statement1;
statement2;
}
else if (condition2) {
statement3;
statement4;
}
else {
statement5;
statement6;
}
if you've only got one statement to do for one condition, the following shortcut works:
if (condition) singlestatement;
else singlestatement;
Oh and Lil, have you ever tried RealAlternative? It plays real player files, but without trying to take over your life, and is free:
http://www.free-codecs.com/download/Real_Alternative.htm
We use it on all the machines at college.
The Atelier computer technology lab
dElaphant (and Zeppo his dog (and Gummo, Zeppos dog)) - Left my apostrophes at the BBC Posted Jul 29, 2005
Does Java have that strange 3-in-one if-statement, or am I thinking of PHP? It looks something like
condition ? statement A : statement B;
I find it terribly confusing and never use it, so can't remember to which language it belongs.
The Atelier computer technology lab
Phil Posted Jul 29, 2005
C certainly has that ? thing for if. I could never remember it and it makes much more readable code to use the full IF, ELSE etc.
The Atelier computer technology lab
Asteroid Lil - Offstage Presence Posted Jul 29, 2005
Phil, that is SUCH a good point! Inheritable code may not be as compact, and it doesn't show off skill as much, but boy, is it easier to read by the person who has to add things to it!
I can still remember code I had to change where the I'm-too-sexy-for-my-shirt programmer had written the code in impenetrable blocks using all the most extreme shorthand methods. This was in C. The result was that the code couldn't be changed; the whole set of routines had to be re-written so that we could make it more flexible.
The Atelier computer technology lab
Good Doctor Zomnker (This must be Tuesday," said GDZ to himself, sinking low over his Dr. Pepper, "I never could get the hang of Tuesdays.") Posted Aug 1, 2005
OK java gurus
I have a method call set up and have run into a problem. I've listed the code below.
*
OutputFile answerFile;
answerFile = new OutputFile("c:\\documents and settings\\Ben\\My Documents\\School\\1st Semester Summer 2005\\CIS 1030\\answers.txt");
answerFile=("c:\\documents and settings\\Ben\\My Documents\\School\\1st Semester Summer 2005\\CIS 1030\\answers.txt");
*
The third line in there is giving me an incompatible type error. It says it found java.lang.String and requires Programs.OutputFile, I've got all my method calls in the same folder and am not having any problems with any of the other method calls.
Thanks for the assist.
The Atelier computer technology lab
dElaphant (and Zeppo his dog (and Gummo, Zeppos dog)) - Left my apostrophes at the BBC Posted Aug 2, 2005
/* Loosens collar */
Hmm, lets see. Now keep in mind that when I learned programming Pascal was the "it" language. And all this talk of "instances" and "classes" is still confusing.
But I'll take a guess that since you've declared answerFile to be an instance of an OutputFile class that you can only assign other OutputFiles to it - the 3rd line is unnecessary since (presumably) the second line already made answerFile reference that particular file, plus if you really wanted to do that you would have to cast it from a string to an OutputFile in some way.
I'm also guessing that if I blather on enough I'll sound like I know something about this, and only the real Java programmers will be able to call me out. So I'll continue.
Think of the famous line:
A rose is a rose is a rose.
What you are trying to say is:
A rose is a rose is the word "rose"
The 3rd part is not true.
The Atelier computer technology lab
Good Doctor Zomnker (This must be Tuesday," said GDZ to himself, sinking low over his Dr. Pepper, "I never could get the hang of Tuesdays.") Posted Aug 2, 2005
That was the solution d'E, I'd already gotten it fixed before your post, thank you though.
The Atelier computer technology lab
Phil Posted Aug 2, 2005
Yeah, like what was said just before (but you knew that anyways )
The biggest problem I have with that code fragment is the use of hard coded file paths in the declaration of answerFile.
You might find it much easier in the long run to have something like:
answerFile = new OutputFile("$homedir/$this_class/$my_answers");
where you've already declared the variables somewhere near the start or in some sort of class/header file
homedir = "c:\\documents and settings\\Ben\\My Documents\\School";
this_class = "1st Semester Summer 2005\\CIS 1030"
my_answers = "answers.txt"
This means that if you ever want to reuse the code in a similar but not quite the same way or you're going to be writing to multiple files in the same directory or even just a single change to a filename you don't have to go through the code and change every instance.
This is good if you ever have to take on someone elses code or write code for someone else to maintain. Much easier to maintain that way.
Having inherited a fair chunk of php code when I took on this job I can say it would have been much easier dealing with it if the guy who wrote it had done those kind of things.
Key: Complain about this post
The Atelier computer technology lab
- 521: Asteroid Lil - Offstage Presence (Jul 26, 2005)
- 522: Good Doctor Zomnker (This must be Tuesday," said GDZ to himself, sinking low over his Dr. Pepper, "I never could get the hang of Tuesdays.") (Jul 26, 2005)
- 523: Asteroid Lil - Offstage Presence (Jul 26, 2005)
- 524: marvthegrate LtG KEA (Jul 26, 2005)
- 525: Good Doctor Zomnker (This must be Tuesday," said GDZ to himself, sinking low over his Dr. Pepper, "I never could get the hang of Tuesdays.") (Jul 26, 2005)
- 526: Bagpuss (Jul 26, 2005)
- 527: Good Doctor Zomnker (This must be Tuesday," said GDZ to himself, sinking low over his Dr. Pepper, "I never could get the hang of Tuesdays.") (Jul 26, 2005)
- 528: Asteroid Lil - Offstage Presence (Jul 26, 2005)
- 529: Phil (Jul 27, 2005)
- 530: Bagpuss (Jul 28, 2005)
- 531: Good Doctor Zomnker (This must be Tuesday," said GDZ to himself, sinking low over his Dr. Pepper, "I never could get the hang of Tuesdays.") (Jul 29, 2005)
- 532: marvthegrate LtG KEA (Jul 29, 2005)
- 533: J'au-æmne (Jul 29, 2005)
- 534: dElaphant (and Zeppo his dog (and Gummo, Zeppos dog)) - Left my apostrophes at the BBC (Jul 29, 2005)
- 535: Phil (Jul 29, 2005)
- 536: Asteroid Lil - Offstage Presence (Jul 29, 2005)
- 537: Good Doctor Zomnker (This must be Tuesday," said GDZ to himself, sinking low over his Dr. Pepper, "I never could get the hang of Tuesdays.") (Aug 1, 2005)
- 538: dElaphant (and Zeppo his dog (and Gummo, Zeppos dog)) - Left my apostrophes at the BBC (Aug 2, 2005)
- 539: Good Doctor Zomnker (This must be Tuesday," said GDZ to himself, sinking low over his Dr. Pepper, "I never could get the hang of Tuesdays.") (Aug 2, 2005)
- 540: Phil (Aug 2, 2005)
More Conversations for LIL'S ATELIER
Write an Entry
"The Hitchhiker's Guide to the Galaxy is a wholly remarkable book. It has been compiled and recompiled many times and under many different editorships. It contains contributions from countless numbers of travellers and researchers."