Search found 221 matches

by kmatzen
Wed Jan 19, 2011 3:03 am UTC
Forum: Computer Science
Topic: Rebalancing a Quad Tree
Replies: 11
Views: 2904

Re: Rebalancing a Quad Tree

This article has details how to rebalance a quad tree. You just have some entities moving around a map and have to update their coordinates, right?

I don't care too much if this is for homework. This is easy to find via Google.
http://valis.cs.uiuc.edu/~sariel/teach/ ... adtree.pdf
by kmatzen
Mon Jan 17, 2011 7:46 am UTC
Forum: Computer Science
Topic: What would you do if you could solve the Halting Problem?
Replies: 33
Views: 4617

Re: What would you do if you could solve the Halting Problem

letterX wrote:I believe the standard answer is: use the box to solve all remaining $1000000 math problems, and then break encryption to steal yourself infinite money. Both of which are reasonably trivially implementable with a halting oracle.


Wait. Infinite money? Now that's hyperinflation!
by kmatzen
Wed Jan 12, 2011 6:57 pm UTC
Forum: Computer Science
Topic: Biggest issues in CS
Replies: 10
Views: 3274

Re: Biggest issues in CS

Here in the UK, at least, the problem we Computer Scientists have with education is not so much the lack of Computer Science in schools, as what's taken its place. ICT (Information and Computing Technology) is an awful subject (Sample exam question: "Discuss the advantages of using a social ne...
by kmatzen
Tue Jan 11, 2011 6:42 pm UTC
Forum: Coding
Topic: Backup software
Replies: 6
Views: 1129

Re: Backup software

You could use a ssh server on the backup machine, and then use scp or a sshfs mount to transfer files. Might require Linux. If you are using Linux, you might as well just use rsync. Just make a samba share and require a user to login rather than making it a public share. But while the share require...
by kmatzen
Tue Jan 11, 2011 5:47 am UTC
Forum: Coding
Topic: Backup software
Replies: 6
Views: 1129

Re: Backup software

I think what you described is what Time Machine in Mac OS X does. I'm sure there are free alternatives already available for other platforms. I want this to be secure. I have a bunch of people on my network, some more computer savvy then others. I want to be able to back up to a network drive withou...
by kmatzen
Sat Jan 08, 2011 10:04 pm UTC
Forum: Computer Science
Topic: Biggest issues in CS
Replies: 10
Views: 3274

Re: Biggest issues in CS

> If it weren’t for the fact my high school offered AP computer science I wouldn’t have been interested in it, and that a lot of schools don’t offer CS classes. I don't really see the lack of high school CS education to be a problem for the college major. If someone is even slightly interested in it...
by kmatzen
Sun Dec 26, 2010 6:01 am UTC
Forum: Coding
Topic: [OpenGL Windows C++] What exactly am i doing wrong here?
Replies: 7
Views: 1208

Re: [OpenGL Windows C++] What exactly am i doing wrong here?

@kmatzen , I am not 100% positive what the default values are for the glViewport and glMatrixMode(GL_PROJECTION) are, but assuming they are the identity is a bad assumption. Force it to be if you are not sure, also . . . the identity is a wrong matrix completely for those 2. You need to put a meani...
by kmatzen
Sat Dec 25, 2010 6:55 pm UTC
Forum: Coding
Topic: [OpenGL Windows C++] What exactly am i doing wrong here?
Replies: 7
Views: 1208

Re: [OpenGL Windows C++] What exactly am i doing wrong here?

it doesn't look like you are setting any of the matrices : Projection, Viewport, etc. If the screen is redrawing with a solid color, it is rendering, you just don't see the drawing. That's a good point that he's not setting any of the matrices, but I thought the modelview and projection matrices we...
by kmatzen
Wed Dec 22, 2010 9:19 pm UTC
Forum: Computer Science
Topic: Determining Big O() runtime on execution of a matrix
Replies: 14
Views: 5185

Re: Determining Big O() runtime on execution of a matrix

You have to define your model of computation for each problem so you can define the complexity with respect to however it fits in your model of computation.
by kmatzen
Sun Dec 19, 2010 12:15 am UTC
Forum: Coding
Topic: Similarities between C/C++ and Java
Replies: 24
Views: 5830

Re: Similarities between C/C++ and Java

What are people's thoughts on teaching someone to program with an object-oriented approach in mind before teaching someone how to think through a task procedurally? I think OOP is important, but it seems like when people take their into to programming class in Java, the OOP concepts are forced upon ...
by kmatzen
Fri Dec 10, 2010 9:29 pm UTC
Forum: Computer Science
Topic: Grad school for comp sci?
Replies: 14
Views: 5553

Re: Grad school for comp sci?

I don't know how much this will be worth to you, but I'm in my third year of Com Sci at the moment, and I've done a lot of thinking about grad school; personally, I am not going to pursue a master's degree, as the 3 years spent at grad school would be better spent getting experience in the commerci...
by kmatzen
Tue Dec 07, 2010 7:02 pm UTC
Forum: Computer Science
Topic: Grad school for comp sci?
Replies: 14
Views: 5553

Re: Grad school for comp sci?

Both of you have said you have to pay for school at the masters level but I've found several schools offer assistantships to masters students that pay for tuition as well as a living stipend, am I missing something? Sure, but I think it's harder to obtain. I mean, I don't know of a good school that...
by kmatzen
Sun Dec 05, 2010 10:57 pm UTC
Forum: Coding
Topic: In need of a C IDE
Replies: 10
Views: 1893

Re: In need of a C IDE

Also thats C++ and not C! If you give Visual Studio a file with a c extension, then it will invoke the C89 compiler instead. If you need strict ANSI conformance, then you can twerk it. Here's a link to twerk it to conform to C89. http://www.engin.umich.edu/class/eecs381/progenvs/MSVSNotes.html And ...
by kmatzen
Sun Nov 28, 2010 4:35 am UTC
Forum: Coding
Topic: XNA: host, non-host on Live have unwanted offset
Replies: 7
Views: 985

Re: XNA: host, non-host on Live have unwanted offset

Xbox LIVE access through XBLIG has never incurred any additional fees. There's the $99/year subscription which gives you access to the XBLIG and WP7 Marketplace, and then that's it. I know you could use LIVE for it's matchmaking services, but I thought you could pay to have access to the other feat...
by kmatzen
Sat Nov 27, 2010 9:19 am UTC
Forum: Coding
Topic: XNA: host, non-host on Live have unwanted offset
Replies: 7
Views: 985

Re: XNA: host, non-host on Live have unwanted offset

I was just wondering, does Microsoft still charge for an Xbox Live Indie game to use Live? Last year, peer-to-peer and client-server were the free LAN options, but Live required some additional fee.

Edit: Beyond the yearly subscription that everyone pays or gets through their university or employer.
by kmatzen
Thu Nov 25, 2010 1:34 am UTC
Forum: Religious Wars
Topic: Why does Microsoft have a server edition of windows?
Replies: 74
Views: 21682

Re: Why does Microsoft have a server edition of windows?

I believe .NET has moved away from the registry to store user data - by default in .NET to store application settings you use a standardised XML format with an easy API to access it. Doing it this way is also cross-platform. Right. They now have you use app.config files or web.config if it is an AS...
by kmatzen
Wed Nov 24, 2010 5:21 pm UTC
Forum: Religious Wars
Topic: Why does Microsoft have a server edition of windows?
Replies: 74
Views: 21682

Re: Why does Microsoft have a server edition of windows?

The existence of it as a database rather than a set of flat files helps with performance a bit Parsing a text config file takes milliseconds, and only needs to happen at program startup. You can protect against race conditions by simply locking the file for writing (which usually happens just by op...
by kmatzen
Wed Nov 24, 2010 5:04 am UTC
Forum: Religious Wars
Topic: Why does Microsoft have a server edition of windows?
Replies: 74
Views: 21682

Re: Why does Microsoft have a server edition of windows?

They should replace the registry with .conf files Do you mean abolish the registry entirely? It offers some nice things like atomic commits to prevent race conditions between two apps, but it comes into question why two apps should be modifying the same configuration. Windows does support configura...
by kmatzen
Mon Nov 22, 2010 9:45 pm UTC
Forum: Religious Wars
Topic: Why does Microsoft have a server edition of windows?
Replies: 74
Views: 21682

Re: Why does Microsoft have a server edition of windows?

[Windows Server] I don't think it needs to be rebooted often if configured properly. A lot of servers do run this and if they needed to be rebooted that often, then I don't think server farms would stick with them. There is lockin, but if a company is losing so much money from downtime, then they w...
by kmatzen
Sat Nov 20, 2010 10:57 pm UTC
Forum: Coding
Topic: Coding Frustration Support Group
Replies: 4
Views: 3639

Re: Coding Frustration Support Group

We need a coding support group thread. Not a thread for solving problems. Just a thread to vent in. You know, like a stitch'n'bitch for coders. Or maybe not we. Maybe just me. But I'm going to make it anyway. Hi, I'm gorcee, and I am frustrated. So frustrated, I want to punch the shit out of someth...
by kmatzen
Sat Nov 20, 2010 8:17 pm UTC
Forum: Religious Wars
Topic: Why does Microsoft have a server edition of windows?
Replies: 74
Views: 21682

Re: Why does Microsoft have a server edition of windows?

[Windows Server] I don't think it needs to be rebooted often if configured properly. A lot of servers do run this and if they needed to be rebooted that often, then I don't think server farms would stick with them. There is lockin, but if a company is losing so much money from downtime, then they w...
by kmatzen
Fri Nov 12, 2010 2:21 pm UTC
Forum: Religious Wars
Topic: Why does Microsoft have a server edition of windows?
Replies: 74
Views: 21682

Re: Why does Microsoft have a server edition of windows?

If you need to do something amazing, you'll need to write something amazing to do it. Linux lends itself to this very well. That's why all the supercomputers run Linux This statement is just flawed. They run all sorts of things including Linux, Windows HPC, UNICOS, unix, bsd, etc. It just happens t...
by kmatzen
Tue Nov 09, 2010 9:02 pm UTC
Forum: Religious Wars
Topic: Why does Microsoft have a server edition of windows?
Replies: 74
Views: 21682

Re: Why does Microsoft have a server edition of windows?

hintss wrote:IMO, xserv is for whoever is using apples clustering. I forgot what it was called.


Xgrid.
by kmatzen
Sun Nov 07, 2010 9:02 pm UTC
Forum: Religious Wars
Topic: Why does Microsoft have a server edition of windows?
Replies: 74
Views: 21682

Re: Why does Microsoft have a server edition of windows?

(Do not consider this a Unix vs Windows flame thread) Since most (if not all) servers are running nix based operating systems, what does Microsoft have to gain by continuing the releases of its server versions of windows? After all it is expensive, needs to be rebooted often and way less secure tha...
by kmatzen
Thu Oct 07, 2010 5:21 am UTC
Forum: Coding
Topic: Graphics in C++ on a Mac?
Replies: 18
Views: 4749

Re: Graphics in C++ on a Mac?

Guys, he said he wanted t do graphics not GUI. For that you pretty much have to use objective-c with OpenGL, but that's easy to pick up, so I'd just learn it. Good point, but it doesn't change anything about the advice. Both Cocoa and Qt provide neat OpenGL bindings, in both cases accessible with C...
by kmatzen
Mon Sep 27, 2010 4:21 am UTC
Forum: Coding
Topic: Graphics in C++ on a Mac?
Replies: 18
Views: 4749

Re: Graphics in C++ on a Mac?

You can use C++ with Qt GUI. It's not really the Mac way of doing things though. It's more of one of the cross-platform way of doing things.
by kmatzen
Wed Sep 08, 2010 11:50 am UTC
Forum: Coding
Topic: coworker rants
Replies: 92
Views: 14599

Re: coworker rants

Someone deleted some files, and didn't know how to roll back a commit. Instead of asking for help, she added files back one by one, making commits without commit messages. Yup. This happened to me as well a couple of years ago. I think I threw a plastic spoon at the person since it was 8am and I ju...
by kmatzen
Sat Sep 04, 2010 8:14 pm UTC
Forum: Coding
Topic: Need a C compiler
Replies: 3
Views: 1186

Re: Need a C compiler

I'm surprised they didn't introduce the tools to you in your class if they haven't been used in its prereqs already.

Edit: Do you need help finding other tools?
by kmatzen
Sat Sep 04, 2010 8:12 pm UTC
Forum: Coding
Topic: How to access an array of pointers outside it's class C++
Replies: 3
Views: 1004

Re: How to access an array of pointers outside it's class C+

deco05ie wrote:Ok so I have an array of pointers to shape objects inside of a function and I can do everything I want with it inside the function but I can't access it outside of the function.


So, what's the problem? This is how scoping works.
by kmatzen
Sun Aug 29, 2010 8:27 pm UTC
Forum: Coding
Topic: Portable programming device?
Replies: 25
Views: 6448

Re: Portable programming device?

How did we get from the guy using a TI-84 to recommending a Macbook Air??
by kmatzen
Sun Aug 29, 2010 8:21 pm UTC
Forum: Coding
Topic: [C++] Multi-Threaded Server-Client(s)
Replies: 3
Views: 1388

Re: [C++] Multi-Threaded Server-Client(s)

I think it would just be easier to have a single known port to listen on. Then inside your protocol, have the first byte be a 0 or 1 indicating if this user wants to create a new session. If it is 1, then create the new session and respond with a session ID number that the user may distribute to the...
by kmatzen
Sun Aug 29, 2010 4:50 pm UTC
Forum: Coding
Topic: Portable programming device?
Replies: 25
Views: 6448

Re: Portable programming device?

Nokia nXXX series. They run a mobile flavor of Debian called Maemo. The most recent model is the n900. I'm TAing a computer vision course this semester and we are giving these out to students for the projects. They come with 5MP cameras and have sufficient processing power so that they can write sof...
by kmatzen
Wed Aug 25, 2010 3:37 am UTC
Forum: Coding
Topic: The C Killer
Replies: 62
Views: 10133

Re: The C Killer

I dunno, my ideal C-esque language pretty much is C. I'd definitely want to add some of the nicer features from C++, like exceptions, new/delete, and a couple more, but you can already use C++ and just write C code with a couple of extra features. I can't really think of any pressing reason that I'...
by kmatzen
Mon Aug 23, 2010 1:52 am UTC
Forum: Coding
Topic: C++ Compiler For Mac (shoot me, please?)
Replies: 13
Views: 3916

Re: C++ Compiler For Mac (shoot me, please?)

tuseroni wrote:but im not sure what that has to do with anything


His 'someone on the internet is wrong' alarm went off.
by kmatzen
Sun Aug 22, 2010 4:26 pm UTC
Forum: Coding
Topic: Programatically Accessing xkcd
Replies: 9
Views: 1912

Re: Programatically Accessing xkcd

This works on my machine and I don't understand why your WebClient is opening up a connection to your own machine.

Code: Select all

Message="No connection could be made because the target machine actively refused it 127.0.0.1:8877"


Do you run IIS for ASP.NET debugging?
by kmatzen
Sun Aug 22, 2010 2:45 am UTC
Forum: Coding
Topic: Programatically Accessing xkcd
Replies: 9
Views: 1912

Re: Programatically Accessing xkcd

Why would you have to set your user-agent string? Because some sites (eg. Wikipedia) refuse access unless you have a user-agent string. But this one doesn't. I first perform the request for the front page, match the image tag, you really should use the JSON instead. Sorry, I don't really do much we...
by kmatzen
Sun Aug 22, 2010 1:00 am UTC
Forum: Coding
Topic: Programatically Accessing xkcd
Replies: 9
Views: 1912

Re: Programatically Accessing xkcd

Why would you have to set your user-agent string? I just tried it without and it worked. Here is a summary. I first perform the request for the front page, match the image tag, and then make the request for the image. I did this in C# using a HttpWebRequest since I'm guessing this is what the OP is ...
by kmatzen
Sun Aug 22, 2010 12:38 am UTC
Forum: Coding
Topic: coworker rants
Replies: 92
Views: 14599

Re: coworker rants

You are right, I should have been more clear. The accesses are all 4 byte aligned (or 8 byte aligned for the 64-bit registers). That was a given... Forgot to mention it. Inferring a FIFO is to say that if you use an FPGA that has built-in FIFO logic, then the tools can recognize when you've written...
by kmatzen
Sat Aug 21, 2010 10:27 pm UTC
Forum: Coding
Topic: Programatically Accessing xkcd
Replies: 9
Views: 1912

Re: Programatically Accessing xkcd

I don't see why it wouldn't work. Can you post your code?
by kmatzen
Sat Aug 21, 2010 4:37 am UTC
Forum: Coding
Topic: coworker rants
Replies: 92
Views: 14599

Re: coworker rants

Senior Software Lead: I asked my boss and he said they weren't. And 32-bit accesses (to the 32-bit bus) are also not atomic. Does the architecture support unaligned accesses? I've worked with the MPC823 and MPC555 that supported 32-bit unaligned bus transactions with a single instruction that take ...

Go to advanced search