computer-science

What do we mean by Byte array?

Could someone please explain, I do not exactly get it What is a Byte Array Where and when we use it in applications/programs what are the advantages and dis-advantages of using a byte array ...

Is conditional branching a requirement of Turing-completeness?

I've been searching the web and I'm finding somewhat contradictory answers. Some sources assert that a language/machine/what-have-you is Turing complete if and only if it has both conditional and unconditional branching (which I guess is kind of redundant), some say that only unconditional is required, others that only conditional is req...

How to give each object in a document a unique ID?

I'm making a bitmap editor where a document consists of several layers where each layer represents a bitmap. Each layer must have a unique ID compared to all other layers that currently exist in the document. I also need to take into account that I need to save and load documents along with the layer IDs. I'm using the command pattern t...

How do you use the FXMatrix class?

I am trying to format my calculator that I made in FXRuby and right now all the buttons are in one column and so I was wondering how I could use the FXMatrix class so that I can format the buttons into a much more appealing setting. Heres what the program looks like right now: require 'fox16' include Fox class Calc 50, :padRight => 5...

Learning By sample code? And general Programming worries

Ill try not to make this a subjective question, but Im wondering if anyone else ran into this problem or had this feeling, because it's something I can't help to shake. Im going on my last semester of college for my B.S. in CS (comp sci) but I feel like.....the last 2 semesters of college has been mostly "ideas" rather than actual codin...