Search found 221 matches

by kmatzen
Fri Sep 04, 2009 4:47 pm UTC
Forum: Coding
Topic: Writing an Open Source Operating System
Replies: 27
Views: 3774

Re: Writing an Open Source Operating System

Yes, I've heard of other "Managed Code Kernels", but I am going to write my own interpreter that will be designed specifically for my OS. The interpreter in my OS will also act as the system shell, giving users direct access to exactly the same stuff that programs access. I'm pretty sure ...
by kmatzen
Tue Jul 28, 2009 5:26 am UTC
Forum: Coding
Topic: C# Namespace Problem
Replies: 4
Views: 923

Re: C# Namespace Problem

It's just like doing a command line compilation (I mean it's just a GUI on top of one.) You include some sort of header or assembly in the file and pass the paths to the libraries that implement that functionality to the compiler. Visual Studio will copy those files by default into your bin dir duri...
by kmatzen
Sat Apr 25, 2009 6:35 pm UTC
Forum: Coding
Topic: I have a project for a REAL programmer...
Replies: 18
Views: 2154

Re: I have a project for a REAL programmer...

I use mschedule.com

Edit: It's open source so you could extend functionality. This was a senior design project at U of M a few years. It's popular enough that our online registration was reworked to export its class data to it rather than mschedule going in and scraping the database.
by kmatzen
Mon Apr 13, 2009 12:12 pm UTC
Forum: Coding
Topic: Sweetest Error EVER
Replies: 31
Views: 3920

Re: Sweetest Error EVER

This is one of those situations where knowing how the compiler works would have helped you out. All string constants are stored in the data segment. http://en.wikipedia.org/wiki/Data_segment
by kmatzen
Sat Apr 11, 2009 4:21 am UTC
Forum: Computer Science
Topic: Essential Matrix a->c given a->b and b->c
Replies: 4
Views: 1103

Re: Essential Matrix a->c given a->b and b->c

I've only started reading about this stuff for my robotics class a few days ago, but wouldn't triplets help reduce error when it comes to loop closures? Do you have any papers on a triplet based method?
by kmatzen
Wed Mar 25, 2009 7:48 am UTC
Forum: Coding
Topic: Why doesn't printf have a binary %?
Replies: 26
Views: 31963

Re: Why doesn't printf have a binary %?

Or use verilog. :wink:
by kmatzen
Sun Mar 08, 2009 2:28 am UTC
Forum: Movies and TV Shows
Topic: Watchmen - Spoilers like a Psychic Undersea Gargant!
Replies: 719
Views: 76777

Watchmen movie question [Spoilers]

At first I thought the New Frontiersman was located in New York City. However, it is shown as surviving at the end of the movie. I remember that when Rorschack drops off his journal, there is a package with the address on it that is already in the basket. Does anyone remember what this address is? I...
by kmatzen
Mon Mar 02, 2009 5:35 am UTC
Forum: Coding
Topic: Homework Help??
Replies: 21
Views: 1542

Re: Homework Help??

Now for more fun, calculate the result in constant time.
by kmatzen
Sat Feb 28, 2009 8:03 pm UTC
Forum: Coding
Topic: Creating a bridge between Java and an exterior program
Replies: 16
Views: 1122

Re: Creating a bridge between Java and an exterior program

Just use sockets and write remote procedure calls.
by kmatzen
Thu Feb 26, 2009 7:03 pm UTC
Forum: Coding
Topic: Need help with Visual C++ byte ordering
Replies: 2
Views: 490

Re: Need help with Visual BASIC++ byte ordering

Nevermind. Coding at 2 in the morning for me is a bad idea. :)
by kmatzen
Thu Feb 26, 2009 7:09 am UTC
Forum: Coding
Topic: Need help with Visual C++ byte ordering
Replies: 2
Views: 490

Need help with Visual C++ byte ordering

I'm used to doing all my C++ in Linux with g++, but for this piece I need it to be done in Windows. I have a device that only has driver support in Windows so I want to create an RPC between the Windows PC with the hardware and the Linux machine with the main program. When I marshal data, I typicall...
by kmatzen
Wed Feb 25, 2009 5:59 pm UTC
Forum: Coding
Topic: Any Suggestions for a Good First C++ Compiler?
Replies: 14
Views: 1619

Re: Any Suggestions for a Good First C++ Compiler?

I've always found it to be a bit frustrating when Visual Studio responds with some sort of weird internal error. I think my most recent one was something along the lines of could not add program to database or something like that. Generally g++ compiler errors will be really compiler errors about th...
by kmatzen
Wed Feb 25, 2009 1:49 am UTC
Forum: Coding
Topic: [Java]Int to Grayscale...
Replies: 11
Views: 1546

Re: [Java]Int to Grayscale...

mabufo wrote:How would one do something like this with C++? I imagine with a third party image library of some kind?


Usually, yes. However, if the end result is something without compression such as an uncompressed bmp, then it's pretty easy to craft the header and just put the data in the body.
by kmatzen
Tue Feb 24, 2009 7:30 pm UTC
Forum: Computer Science
Topic: Computer scientist and academia
Replies: 3
Views: 912

Re: Computer scientist and academia

Lots of computer scientists do R&D in industry. But it usually requires a higher-level degree. So, you have to be part of academia to some extent. You just don't necessarily have to work in academia. I just want to throw in there that I interviewed with several people at Microsoft with PhD's an...
by kmatzen
Tue Feb 24, 2009 7:24 pm UTC
Forum: Coding
Topic: [Java]Int to Grayscale...
Replies: 11
Views: 1546

Re: [Java]Int to Grayscale...

My instructor decided to throw us for a loop and give us five days to create a simple photoshop program. Basically, we need to take in an array that gives two numbers, height and width, and then the followed 2d array that fits the height and width given. We then have to take the numbers and make th...
by kmatzen
Sun Feb 22, 2009 6:09 pm UTC
Forum: Computer Science
Topic: Is there a fast way to find each elem thats in all of n sets
Replies: 19
Views: 2252

Re: Is there a fast way to find each elem thats in all of n sets

Yeah, all I can think of is to use a hash map to assign unique id's to each unique element. As you iterate through, you add it to the hash map if it does not exist or extract it's id if it was already found. Construct bit vectors as you go and in the end perform a bit vector intersection operation. ...
by kmatzen
Sat Feb 21, 2009 3:23 am UTC
Forum: Computer Science
Topic: Computer Science Colleges - A Mega-Merg'd Thread
Replies: 52
Views: 5981

Re: A Computer Science College

The term "undergrad research" puzzles me. I mean I guess it would be theoretically possible, but I don't see how I would go about doing it. I mean, what kind of research can an undergrad do? Especially one at a college with low standards of admission like Stonybrook (meaning that the stud...
by kmatzen
Fri Feb 20, 2009 8:15 pm UTC
Forum: Coding
Topic: Career Advice
Replies: 10
Views: 884

Re: Career Advice

I wouldn't expect to be a one-man band, I'd be happy to collaborate with a team; I could call via skype or something. What I want is to be able to set my own hours and work via the internet. I think what he is saying is, what is the incentive for the client and the team for them to work with someon...
by kmatzen
Fri Feb 20, 2009 3:33 pm UTC
Forum: Coding
Topic: Career Advice
Replies: 10
Views: 884

Re: Career Advice

So, you want to work for only 1 month for only 20 hours a week? I have no ideas for that one. It's not even enough time to get up to speed on something new (or if it is for you I doubt the employer would want to risk it.) If you are saying that you want to work for the summer, companies are still lo...
by kmatzen
Thu Feb 12, 2009 1:41 am UTC
Forum: Computer Science
Topic: Computer Scientists
Replies: 51
Views: 7267

Re: Computer Scientists

Those who code in notepad seriously need beating over the back of the head with a 2x4. It's not cool, it doesn't make you look cool, and seriously, you're just kidding yourself. I could compare writing code with notepad to me walking to work (over taking the train). Yeah, I CAN do it if it's an abs...
by kmatzen
Wed Feb 04, 2009 9:01 pm UTC
Forum: Computer Science
Topic: A fast method for generating (uniform) random spanning trees
Replies: 2
Views: 1397

Re: A fast method for generating (uniform) random spanning trees

I don't know of a faster way for the general case.

However, if you want to uniformly generate spanning trees of Kn then you can use Prufer's Code.
by kmatzen
Mon Feb 02, 2009 6:50 pm UTC
Forum: Computer Science
Topic: Career choices - Programmer or computer scientist?
Replies: 9
Views: 2532

Re: Career choices - Programmer or computer scientist?

Oh, wow. What is the cost of living USD? I ask this because I could not even afford my apartment for 10k annually which would tell me that I would have to obtain corporate sponsorship to host me in another country. I know a decent number of people who choose a college in the US so they can obtain a ...
by kmatzen
Sun Feb 01, 2009 7:10 pm UTC
Forum: Coding
Topic: ...wait, what? (malicious code at fannie mae)
Replies: 10
Views: 1749

Re: ...wait, what? (malicious code at fannie mae)

I'm sorry, but I think it's hard to believe that a financial institution would allow a single employee to deploy code without first going through a peer code review. The hiding of code by using whitespace just seems odd since the code reviews I've done first start with a diff between the head and wo...
by kmatzen
Wed Jan 21, 2009 1:09 pm UTC
Forum: Coding
Topic: How to return to main function in C++?
Replies: 16
Views: 7550

Re: How to return to main function in C++?

I meant so that when the user is prompted to type yes or no it won't matter what case they type it in, even though the code specifies: if (y == "yes") continue; What he is saying to do is accept the input string, convert it all to lowercase characters, and then compare it to "yes.&qu...
by kmatzen
Wed Jan 21, 2009 6:22 am UTC
Forum: Coding
Topic: How to return to main function in C++?
Replies: 16
Views: 7550

Re: How to return to main function in C++?

Use a loop construct. if (y == "yes", "Yes") You seem to be using the comma operator. Is that intended? This snippet of code firsts check to see if y == "yes", discards the value, and then check to see if "Yes" is non-zero (true) which it trivially is since i...
by kmatzen
Tue Jan 20, 2009 2:47 pm UTC
Forum: Coding
Topic: worst bugs ever (or your most hated)
Replies: 196
Views: 22350

Re: worst bugs ever (or your most hated)

Right now I'm stricken with a bug that's pretty damn mysterious. I have a struct (in C) with various function pointers, that take one or two arguments. At some point in the code, the address to the first function argument ends up in the function pointer so when I invoke it I end up in the memory re...
by kmatzen
Tue Jan 13, 2009 3:34 pm UTC
Forum: Coding
Topic: Beginning programmer and some questions
Replies: 33
Views: 3211

Re: Beginning programmer and some questions

Here's the official tutorial by Guido. http://docs.python.org/tutorial/
I read version 2.3.4, so I don't know how 2.6 is.
by kmatzen
Tue Jan 13, 2009 4:37 am UTC
Forum: Coding
Topic: Beginning programmer and some questions
Replies: 33
Views: 3211

Re: Beginning programmer and some questions

I guess you are right that we shouldn't be so quick to judge a language. Everyone learns things in a different way. I suppose my way is that I like to build things from the ground up and in this case that means starting with C, building on top of that with containers in C++, and then finally using S...
by kmatzen
Mon Jan 12, 2009 2:09 pm UTC
Forum: Coding
Topic: Beginning programmer and some questions
Replies: 33
Views: 3211

Re: Beginning programmer and some questions

Now, a good programming language to start off with if you're new and on Windows is Microsoft Visual Basic .NET Epic fail. Learn a real language. This will only act as a crutch. There are a bunch of languages you can use on Vista. C, C++, Java, Python, C#, just to name a few. If you are a university...
by kmatzen
Sun Jan 11, 2009 4:03 pm UTC
Forum: Coding
Topic: Need help with 2D arrays in C++
Replies: 12
Views: 3116

Re: Need help with 2D arrays in C++

Might be easier to see this if you don't use magic numbers. There's a lot of duplicate code you could reduce here. Maybe - but I'd question the value of doing so. Tic-Tac-Toe isn't a game that can be scaled up, and the code's pretty clear the way it is... No, I didn't mean that in terms of scalabil...
by kmatzen
Sun Jan 11, 2009 3:55 pm UTC
Forum: Coding
Topic: Accessing a file on the internet?
Replies: 13
Views: 1508

Re: Accessing a file on the internet?

Hmm, that's an interesting idea. Is your goal just to get the job done or learn how it actually works? My thoughts on it are to first learn how Berkeley sockets function. Once you know that, you can craft your own HTTP requests and learn how to parse the responses. Then it depends if you want to do ...
by kmatzen
Thu Jan 08, 2009 2:39 pm UTC
Forum: Coding
Topic: Need help with 2D arrays in C++
Replies: 12
Views: 3116

Re: Need help with 2D arrays in C++

This is correct. When you statically allocate an array the number in the brackets indicates the width of the array.

char c[2]; //may be accessed with
c[0];
c[1];

Might be easier to see this if you don't use magic numbers. There's a lot of duplicate code you could reduce here.
by kmatzen
Tue Jan 06, 2009 4:41 pm UTC
Forum: School
Topic: Your attendance at college or university - good or poor?
Replies: 44
Views: 5468

Re: Your attendance at college or university - good or poor?

This is how I like to think of it: Personally, I have class 167 times in a semester. I pay $6125 for tuition for a semester as an in state student at the University of Michigan. Each class I skip is like someone taking $36.68 out of my pocket. If I was an out of state student, each class would cost...
by kmatzen
Tue Jan 06, 2009 3:49 pm UTC
Forum: Computer Science
Topic: Computer Science Colleges - A Mega-Merg'd Thread
Replies: 52
Views: 5981

Re: A Computer Science College

My school costs $19,000 a semester in tuition alone...and it's a state school. That makes it one of the more expensive state schools. You must be going to a state school from out of your home state. If you were to go to a school in the state where you claim residence the price would be much lower. ...
by kmatzen
Tue Jan 06, 2009 1:19 am UTC
Forum: Computer Science
Topic: Computer Science Colleges - A Mega-Merg'd Thread
Replies: 52
Views: 5981

Re: A Computer Science College

EDIT: Also I just looked at the tuition cost: $7200 per quarter . This is comparable to what a lot of state schools will charge for a semester or even some for a full year . So on a dollar-per-class-hour basis this is probably one of the more expensive options. That's really not that much for a pri...
by kmatzen
Tue Dec 30, 2008 8:00 pm UTC
Forum: Hardware
Topic: Dell m1330 Overheating
Replies: 2
Views: 1076

Dell m1330 Overheating

Hey everyone. This question goes out to those who own a Dell m1330 with the 8400 gs. I've had the mobo replaced in May and Dell will be replacing it again this upcoming week. I typically have to run the Intel management utility to enable both thermal monitors to scale the proc down to 1.2ghz on both...
by kmatzen
Tue Dec 30, 2008 7:55 pm UTC
Forum: Coding
Topic: What language should I learn in 2009?
Replies: 10
Views: 1888

Re: What language should I learn in 2009?

Erlang looks interesting. Is there a "must-read" book for learning the language, the way that the Camel Book is the must-read for Perl? This summer I interned at National Instruments. At one of their programming lectures they discussed Erlang and recommended The Pragmatic Programmers: Erl...
by kmatzen
Sun Dec 28, 2008 10:02 pm UTC
Forum: Computer Science
Topic: 'Academic' programming language
Replies: 35
Views: 5361

Re: 'Academic' programming language

I have a quick question for the people posting here. I know how to use CLIPS and JESS, but I want to do backward chaining and be able to interface with external C code. Is there something similar to CLIPS that supports this? JESS is the first thing I learned (I don't really know CLIPS, I just used ...
by kmatzen
Sat Dec 27, 2008 1:47 am UTC
Forum: Computer Science
Topic: 'Academic' programming language
Replies: 35
Views: 5361

Re: 'Academic' programming language

I have a quick question for the people posting here. I know how to use CLIPS and JESS, but I want to do backward chaining and be able to interface with external C code. Is there something similar to CLIPS that supports this? JESS is the first thing I learned (I don't really know CLIPS, I just used i...
by kmatzen
Tue Dec 23, 2008 9:37 pm UTC
Forum: Computer Science
Topic: Algorithm for solving logical constraints?
Replies: 5
Views: 1401

Re: Algorithm for solving logical constraints?

Yep, I was going to say prolog as well. Sorry, but this problem is NP-complete unless you restrict it somehow.

Go to advanced search