Search found 48 matches

by Zanik221
Thu Jun 18, 2009 11:52 pm UTC
Forum: The Help Desk
Topic: Computer not powering on
Replies: 2
Views: 409

Re: Computer not powering on

Never mind. I managed to dig up a working power supply from an older computer. I plugged it in and the computer powered right on. Unfortunately, the motherboard promptly exploded. So, the dead power supply became a somewhat of a non-issue. And by exploded, I mean a capacitor, or something, shorted a...
by Zanik221
Thu Jun 18, 2009 11:20 pm UTC
Forum: The Help Desk
Topic: Computer not powering on
Replies: 2
Views: 409

Computer not powering on

I came home today to find my computer not powering on at all. Very occasionally, pressing the power button causes the lights to flash and the fans to spin up for less than a second, but for the most part nothing. No power, no beeps. I've taken it apart and put it back together one piece at a time (e...
by Zanik221
Fri May 01, 2009 5:06 pm UTC
Forum: Coding
Topic: JavaBat Help - mergeTwo
Replies: 3
Views: 916

Re: JavaBat Help - mergeTwo

In a merge sort, you have 2 functions. 1 which takes an unsorted array and breaks it into two arrays, then recurses using the two new arrays. The second takes two sorted arrays and merges them into one sorted array. Your problem only requires the second half of this. Think of the two existing arrays...
by Zanik221
Thu Apr 30, 2009 8:00 pm UTC
Forum: Coding
Topic: JavaBat Help - mergeTwo
Replies: 3
Views: 916

Re: JavaBat Help - mergeTwo

Given the parameters of the problem, I'm fairly certain that by using arraylists and Collections.sort(), you are missing the point of the problem. Look into the mergesort algorithm. Also, In your existing code, when you remove an element from the list, you are changing the numbering of all subsequen...
by Zanik221
Tue Apr 21, 2009 5:45 pm UTC
Forum: Computer Science
Topic: Journey sucks
Replies: 4
Views: 1199

Re: Journey sucks

I went to Rochester Institute of Technology, which isn't even top 100, I don't think. Still, I know plenty of people from there who work for Microsoft, Cisco, Boeing, Lockheed Martin, etc. I, myself, am working for IBM. The school written on your diploma is really not the most important thing on you...
by Zanik221
Tue Apr 21, 2009 5:16 pm UTC
Forum: Coding
Topic: Verilog Scrambler/Descrambler help
Replies: 2
Views: 2912

Re: Verilog Scrambler/Descrambler help

You're given the circuit diagram? When I was learning VHDL I have to design the circuits in addition to writing the VHDL code.

I don't see anything obviously wrong. Exactly what problems are you having?
by Zanik221
Thu Apr 16, 2009 6:51 pm UTC
Forum: Movies and TV Shows
Topic: Most twisted movie you've seen?
Replies: 101
Views: 12217

Re: Most twisted movie you've seen?

Easily "Philosophy of a Knife". It's based on the activities of the Japanese Army's Unit 731. It's pretty horrible to see in a movie...but to know that much of it is real is very disturbing.
by Zanik221
Thu Apr 16, 2009 6:39 pm UTC
Forum: Movies and TV Shows
Topic: The Sarah Connor Chronicles (Now with spoilers!)
Replies: 341
Views: 36313

Re: The Sarah Connor Chronicles (Now with spoilers!)

On an unrelated note, is there anything definite yet on Season 3? Does anyone know for sure yet whether or not there's going to be one? The producers say there might be a third season. Currently, the reports of it's cancellation are all from disreputable sources. Additionally, according to Brian Au...
by Zanik221
Fri Mar 20, 2009 2:55 pm UTC
Forum: Coding
Topic: Killing all children of a forking daemon?
Replies: 23
Views: 2822

Re: Killing all children of a forking daemon?

Even easier, then. At the start of your signal handler, register SIG_DFL, or exit(), or something along those lines as your new handler. signal(SIGTERM,exit(0)); Assuming you're raising SIGTERM for the process group, the signal will get sent to all the children, terminating them, and simply call exi...
by Zanik221
Thu Mar 19, 2009 12:54 pm UTC
Forum: Coding
Topic: Killing all children of a forking daemon?
Replies: 23
Views: 2822

Re: Killing all children of a forking daemon?

signal.signal(signal.SIGTERM, kill_children) now try doing that with SIG KILL instead of SIG TERM . The problem with that is that SIGKILL is kind've defined as "cannot be caught." The side-effect of #2 is that the parent can get into a loop of sending SIGTERM to itself. A sentinel could b...
by Zanik221
Wed Mar 18, 2009 3:41 pm UTC
Forum: Coding
Topic: Killing all children of a forking daemon?
Replies: 23
Views: 2822

Re: Killing all children of a forking daemon?

Probably the easiest way is to a set a process group id in your daemon when it starts using setpgid(). From there, it and it's decedents will share that pgid, so long as none of the children are changing it. So you can simply send a term signal to the group id and terminate all of them at once. It l...
by Zanik221
Mon Mar 09, 2009 9:03 pm UTC
Forum: Computer Science
Topic: Linear Alegbra 2 or no?
Replies: 4
Views: 919

Re: Linear Alegbra 2 or no?

Mach1ne wrote:Hmm whats involved in object recog and computer vision that is found in LA 2?

Markov Chains. Though they have many more AI applications than just computer vision.

http://en.wikipedia.org/wiki/Markov_chains
by Zanik221
Wed Oct 08, 2008 11:15 pm UTC
Forum: Coding
Topic: The ultimate in exception handling...
Replies: 7
Views: 1379

Re: The ultimate in exception handling...

Berengal wrote:Random data = white noise. Try a sine wave.

Or even better, the dial-up modem noise.
by Zanik221
Fri May 09, 2008 1:07 pm UTC
Forum: Coding
Topic: Swing is being an ass; show me the errors of it's ways
Replies: 21
Views: 2995

Re: Swing is being an ass; show me the errors of it's ways

There's no problem with your code that I can see. At least not this snippet. I tried it and it works fine for me. Why can't you just attach the same ActionListener to every button, and change the ActionCommand to reflect the position? You'd have to do a bit of string parsing, but that seems a lot ea...
by Zanik221
Fri Apr 25, 2008 6:08 pm UTC
Forum: Coding
Topic: Question on generics and inheritance in java.
Replies: 2
Views: 1190

Question on generics and inheritance in java.

Let's say I have a class, foo, with a particular method, bar, that looks something like: public class foo { ... public void bar(String str) { ... } } And a generic derived class of foo that looks like: public class foo_derived<T> extends foo { ... public void bar(T str) { ... } } Such that foo_deriv...
by Zanik221
Tue Apr 15, 2008 3:46 pm UTC
Forum: School
Topic: Awesome Teacher Quotes
Replies: 1764
Views: 355306

Re: Awesome Teacher Quotes

My old professor for Assembly programming, and VHDL is widely loved at my school for his quotes. Someone even decided to collect them all. http://adelie.us/doctor_hu.html Some examples: "Parallel processing is like sisters, you've got to do them both." "Every time I see my boss I say ...
by Zanik221
Mon Apr 14, 2008 5:45 pm UTC
Forum: General
Topic: Show the world your desktop! [Mommy, what's 56K?]
Replies: 2356
Views: 400390

Re: Show the world your desktop! [Killing 56K since January]

Observe my (edit: severely shrunken) XP desktop. http://img.photobucket.com/albums/v253/Shadow221/desktop-1.jpg Probably been asked before, but what software are you using to achieve that magical taskbar? Emerge Desktop It's a windows shell replacement. The various applets (laucher, tray, VWM, etc)...
by Zanik221
Fri Apr 11, 2008 8:49 pm UTC
Forum: General
Topic: Show the world your desktop! [Mommy, what's 56K?]
Replies: 2356
Views: 400390

Re: Show the world your desktop! [Killing 56K since January]

No bashing, I prefer Vista to Windows XP, etc. Just saying I'd rather look at a lot more Linux screenshots as there's a chance to be more creative instead of just different backgrounds. Clearly you are not looking hard enough for windows customization options. Observe my (edit: severely shrunken) X...
by Zanik221
Fri Feb 29, 2008 5:27 am UTC
Forum: Science
Topic: A question on the speed of light
Replies: 42
Views: 4411

Re: A question on the speed of light

It is also worth noting that if you were travelling at just under the speed of light, and you shone a torch forward, that it still leaves you at the speed of light. IE: Nothing can reach the speed of light, because the speed of light is always C+Yourspeed. The really crazy thing is that if there's ...
by Zanik221
Thu Feb 14, 2008 3:17 pm UTC
Forum: Coding
Topic: help turning python code into an actual program
Replies: 13
Views: 3650

Re: help turning python code into an actual program

pieaholicx wrote:
OmenPigeon wrote:I don't know of any way to convert it into a *nix executable.

Add "#!/usr/bin/env python" at the beginning of the source code.
:D
by Zanik221
Fri Feb 08, 2008 4:02 pm UTC
Forum: Coding
Topic: Java graphics
Replies: 0
Views: 945

Java graphics

What I'm trying to do in my gui is draw a circle on a JButton when that button is clicked. Here's my quick test program. import java.awt.*; import java.awt.event.*; import javax.swing.*; public class GUIDrawing extends JFrame implements ActionListener{ JButton button; JButton button2; public GUIDraw...
by Zanik221
Tue Jan 29, 2008 3:36 pm UTC
Forum: Coding
Topic: Braindead Code
Replies: 98
Views: 9368

Re: Braindead Code

From a freshman CS student's lab:

Code: Select all

 
public boolean equals ( Object other )
    {
        return ( this.equals ( other ) );
    }

I don't know how he thought this would work.
by Zanik221
Wed Jan 23, 2008 4:12 pm UTC
Forum: Religious Wars
Topic: Best *nix Desktop Environment/Window Manager/whatever
Replies: 243
Views: 45504

Re: Desktops and UIs

Has anybody used Enlightenment ? I'm thinking about using it, but I'd rather get some opinions before I install it. I'm running E17 right now. It took a bit of time to get used to a few of it's quirks, and it's still not 100% stable(The volume module, in particular, is very unstable). I do miss the...
by Zanik221
Thu Jan 17, 2008 3:16 pm UTC
Forum: Coding
Topic: How many programming languages do you know?
Replies: 119
Views: 32761

Re: How many programming languages do you know?

Java, C, C++, Ruby, Python, Flex/Bison (I'm counting them as one since I've never seen them used separately), Common Lisp, Prolog, Motorola 68k assembly, MIPS assembly.
by Zanik221
Mon Dec 24, 2007 5:59 am UTC
Forum: Hardware
Topic: Processor Preference?
Replies: 18
Views: 2443

Re: Processor Preference?

As a CPU architecture guy, I try my best to avoid x86 whenever possible. My primary workstations are an SGI MIPS desktop running IRIX, and an old G4 notebook. I do have a windows PC with an Intel Core Duo for gaming, but I find it hard to work with, as the thought of what my CPU looks like under the...
by Zanik221
Mon Dec 03, 2007 1:08 pm UTC
Forum: Coding
Topic: Program in C/C++? Ultimate optimization tool!
Replies: 17
Views: 2966

Re: Program in C/C++? Ultimate optimization tool!

Also, how does a NOP take up the whole pipeline? I was under the impression it takes 1 cycle per NOP and is merely there to protect from hazzards (And waste CPU cycles, if you really want); Technically, every command uses the same number of cycles to execute. Equal to the length of the pipeline, in...
by Zanik221
Thu Nov 15, 2007 12:49 am UTC
Forum: Religious Wars
Topic: Best *nix Desktop Environment/Window Manager/whatever
Replies: 243
Views: 45504

Re: Desktops and UIs

zenten wrote:I like gnome. I don't care if you think it's too bloated. Fluxbox just isn't usable.

That's what xfce is for.
by Zanik221
Sun Nov 04, 2007 6:08 pm UTC
Forum: Coding
Topic: defining structs with mapcar (lisp)
Replies: 3
Views: 1612

Re: defining structs with mapcar (lisp)

Well, make-struct isn't a valid function. I just didn't know how else to generalize it. When you define a struct using (defstruct label ( data_member value ) ( data-member value ) ...) (ex: (defstruct node (data nil)), you then use make- name to actually make the struct. The problem is, how it's arg...
by Zanik221
Sun Nov 04, 2007 4:24 am UTC
Forum: Coding
Topic: defining structs with mapcar (lisp)
Replies: 3
Views: 1612

defining structs with mapcar (lisp)

I have a list of data That I want to use to create structs. I know mapcar will call a given function on lists of arguments, but because of the way make-struct's arguments are laid out, I'm not sure if it's possible to use with mapcar. Anyone have any insights on how to do this? My only other thought...
by Zanik221
Mon Oct 29, 2007 5:39 pm UTC
Forum: Coding
Topic: Hoping for a little bit of help with java...
Replies: 10
Views: 1651

Re: Hoping for a little bit of help with java...

This wouldn't happen to be the CS3 interpreter project at RIT, would it? If it is, he most likely doesn't know regular expressions. Your professor is most likely expecting you to use nextLine(), then use string functions to parse it. Which, baring regular expressions, is probably the easiest to unde...
by Zanik221
Mon Oct 15, 2007 12:49 am UTC
Forum: Coding
Topic: Does anyone here...
Replies: 38
Views: 4831

Re:

phlip wrote:I feel superior when coding in Whitespace, since it is, without exception, the greatest language in the world.

After having to write a Whitespace interpreter in Flex and Bison, I never want to see another whitespace program again.
by Zanik221
Tue Sep 18, 2007 10:14 pm UTC
Forum: Coding
Topic: Abstract Classes and Interfaces
Replies: 21
Views: 3449

I guess that's what I get for not using Java in so long.
by Zanik221
Tue Sep 18, 2007 9:01 pm UTC
Forum: The Help Desk
Topic: Backing Up a RAID array
Replies: 12
Views: 2632

I thought the point of RAID was that you don't need to back it up? You have an array of hard drives and if one fails, the data stored on the others is redundant enough that you can recover what was on the lost drive. *doesn't know squat about RAID 0 You're thinking of a RAID 0 (mirroring) array. Hi...
by Zanik221
Tue Sep 18, 2007 8:26 pm UTC
Forum: Coding
Topic: Abstract Classes and Interfaces
Replies: 21
Views: 3449

As far as I know, interfaces and abstract classes are for confusing those who should not take AP Comp Sci AB and for providing the teachers with even more pointless exercises :). I think abstract classes are more for the programmer than for the compiler/interpreter (nod to jzamor), since simply pro...
by Zanik221
Sat Aug 11, 2007 9:32 pm UTC
Forum: Computer Science
Topic: Building logic gates
Replies: 30
Views: 11285

Re: Building logic gates

thebeanie wrote:I want to build logic gates. Lots of logic gates. ANDs, ORs, NORs, NANDs, XORs, the lot of them.
Why bother with all that? Just make NAND gates. NAND is a functionally complete boolean operator, and is both cheaper and easier to manufacture than other gates.
by Zanik221
Sun Jul 08, 2007 10:01 pm UTC
Forum: Science
Topic: Silver- The Best Conductor
Replies: 24
Views: 9722

It has to do with the resistivity of the metal. Silver resists the flow of electricity less than any other conductor.
by Zanik221
Sat Jun 30, 2007 6:47 pm UTC
Forum: Coding
Topic: Assembly... BUH BUM BAAHH
Replies: 90
Views: 22439

b0b wrote:I hacked a lot of ... 68k back in the 80's.
I'm so sorry. I first learned assembly on a 68k processor. Not fun.
by Zanik221
Fri Jun 15, 2007 5:13 am UTC
Forum: Coding
Topic: Facebook App
Replies: 21
Views: 5519

Yeah, it cuts off the comic. You really need to scale the image to fit whatever column it's displayed in.
by Zanik221
Tue Jun 12, 2007 1:43 am UTC
Forum: Coding
Topic: Ubuntu Help - Installing jre - new to linux
Replies: 15
Views: 4170

Easiest is to use synaptic. However, the java command will still point to the GNU jre. If you want to change that, you'll need to run the command

sudo update-alternatives --config java

You can use that to select sun jre 1.6.
by Zanik221
Wed May 23, 2007 12:21 am UTC
Forum: Coding
Topic: New C project i'm working on
Replies: 42
Views: 10692

Re: New C project i'm working on

I also really, really dislike your unsure use of pointers ("if (error && *error)"). You really should go learn how pointers work, if you're that scared of them. I'm not sure why that's a problem. He checks that the pointer is not null, then dereferences it to check it's contents. ...

Go to advanced search