|
Donald Duck posted:I was looking through this thread originally to find books to read, as a CS student. Found them on the first page, but just wanted to ask some questions. I'm just finishing my second year now. quote:Second question, pretty much everything we've done has been just in Java, with a tiny bit of C in one of my modules. I've picked up the K&R C book to help me learn C over the summer. Since I want to know more than just Java, what else is worth learning? quote:Edit: I was reading reviews on the Knuth books and saw they code in them is in MIX? This would make them pretty out dated would it not?
|
# ¿ Apr 26, 2008 18:01 |
|
|
# ¿ May 4, 2024 04:53 |
|
HB posted:A general algorithm for sorting a dataset that will not fit in RAM might still have some applications. Never say never
|
# ¿ Apr 26, 2008 19:40 |
|
Magicmat posted:Would getting a BA hinder me? No. As they said, your curriculum is what matters, not what your degree is called.
|
# ¿ Oct 4, 2010 21:56 |
|
Thermopyle posted:I have a Windows app that I'm writing in python and will be packaging up with py2exe or something similar. It requires a DLL to be registered on Windows. I'm not familiar with distribution of Windows apps. You'll need to write an installer. It's pretty easy to get started with NSIS, and it's free, so you should definitely check it out.
|
# ¿ Oct 16, 2010 19:12 |
|
gggiiimmmppp posted:I'm working on a standard dynamic linked list assignment for a 200 level computer science class. We had a question on the last test to the effect of "if these cout << ... lines were added to the different constructors, destructor, and assignment operator, what would the output be for these code snippets?" Basically, a roundabout way of asking which bit of code you're dealing with on the back end to do various tasks. Is your destructor declared as virtual? If not, add that and see if it fixes the problem.
|
# ¿ Oct 26, 2010 20:45 |
|
bobua posted:Not specifically a programming question, but probably people who know the answer in here. How does XML handle storing XML data? For example, if I made a program that writes the contents of a textbox to an XML file, and someone typed in some xml text that conflicted with mine, wouldn't that break it? Mark it as CDATA.
|
# ¿ Dec 14, 2010 00:10 |
|
jstirrell posted:No one expects you to have significant experience with any of those things when you're coming out of school. The more you can expose yourself to that part of the job, the better--this is why summer internships are so great--but there's only so much you can learn when your projects never extend beyond four months.
|
# ¿ Feb 2, 2011 04:53 |
|
What are you writing in? There's a lot of high-quality numeric code out there that you might be able to just use.
|
# ¿ Mar 17, 2011 04:26 |
|
shrughes posted:Unless you're incapable of reading facts and understanding them, you shouldn't have a problem. C is not complicated. This. If you really want to be a C guru, you need to have some vague idea of how computations work in hardware, but that won't stop you from getting started.
|
# ¿ Apr 12, 2011 21:23 |
|
Yeah, C# is pretty not related to straight C at all.
|
# ¿ Apr 14, 2011 02:13 |
|
tef posted:try That's symmetry, not transitivity. You want something like code:
|
# ¿ Apr 17, 2011 07:24 |
|
Rocko Bonaparte posted:I have an XML schema question. I have an element with two attributes whose rules change together. Look at this example for what I mean: Regular expressions. I guarantee you that there are a hundred examples of exactly what you want to do out there.
|
# ¿ Apr 25, 2011 21:46 |
|
_aaron posted:I'm looking at getting a Master's degree, but I'd like to do it part-time, and online if possible. I see that the University of Illinois offers an online "Master of Computer Science" (http://courses.illinois.edu/cis/2011/fall/programs/graduate/computer_science.html). This is a non-thesis program, which differentiates it from the standard "Master of Science, Computer Science." What disadvantages would such a program entail? If I wanted a PhD in the future, would this be problematic? Would employers view MCS differently than MSCS? Is this really not a big deal at all? Some employers might care, but others won't. If you really want to do a PhD, there are a number of reasons why a traditional master's degree is a much better choice.
|
# ¿ May 6, 2011 21:54 |
|
pokeyman posted:I'm not the one who was asking, and I believe you, but what are some of those reasons? Three major reasons:
|
# ¿ May 6, 2011 23:24 |
|
qntm posted:To answer this question we need to know the probability distribution which was used to drop the treasure on the line. We can't assume a "uniform" distribution because there's no such thing on the real line, or indeed on the integers. Who says the treasure is deposited at random? Edit: The scenario I have in mind is one where the treasure is placed deterministically on the line by an entity who knows your algorithm and wants to see you perform badly. There are a lot of problems like this where you can do pretty well by using a randomized algorithm, and this could be one of them.
|
# ¿ Jun 4, 2011 17:44 |
|
Zombywuf posted:I thought we were talking about the prior pdf for the position of the cow over the entire set of integers. There is no appropriate scaling factor for your function in that case. Not that it's particularly relevant, but there's a lot of work in bayesian statistics on using so-called improper priors that have infinite mass. The math works out and the statistical methods work well; the only downside is that it's a bitch to assign meaning to a distribution with infinite mass.
|
# ¿ Jun 6, 2011 19:08 |
|
Zombywuf posted:Got any references for that, I need to increase my reading backlog by a few MB. There's a little bit in Gelman's book on bayesian computing, and the theory's laid out in Hartigan's book (which you'll have to find in a library--it's pretty badly out of print). Other than that, it's spread out across the objective bayesian literature, and I don't really know where to start there.
|
# ¿ Jun 6, 2011 21:21 |
|
cannibustacap posted:I am looking to write some Java classes/methods in Eclipse and have them run in my team's Visual Studio C++ application. The easiest method by far will be to have one process kick off the other from the command line, and read the appropriate output from a file. Edit: You can look into other interprocess communication mechanisms like sockets or shared memory, but all of them are basically a more complicated version of reading/writing from files.
|
# ¿ Jun 16, 2011 21:52 |
|
Misogynist posted:I'm playing around with machine learning before I start getting heavy into the network monitoring app I'm writing. What are some cool things to attempt with hidden Markov models that are more complicated than doing pattern analysis on Rock-Paper-Scissors or something? There's a pretty large literature on financial modeling with HMMs. You can easily find data and some ideas if you go digging around.
|
# ¿ Jun 21, 2011 20:15 |
|
Is there already a thread on Amazon web services? I'm beginning to play around with some of their stuff, and it sure would be nice to have one.
|
# ¿ Jun 28, 2011 00:05 |
|
pokeyman posted:Keep in mind what a reader of your code will likely expect. If an exception in the given language or domain typically means "terrible things happening", using them for flow control makes it harder for the reader to understand your code. If an exception is raised whenever an iterator completes, however, your reader may be used to seeing exceptions used this way. Exactly. It's not syntactically or semantically wrong to use exceptions for control flow, but it's pragmatically very bad.
|
# ¿ Jun 28, 2011 19:14 |
|
TheJazzMess posted:Can anyone recommend a good intro to comp sci book? I'm looking for something that will let me get a "feel" for CompSci. If you must have a book, take a look at Computer Science: An Overview or Foundations of Computer Science. If you don't mind sitting in front of a computer for a while, Wikipedia's article on computer science is an excellent overview of the field. On preview: Most intro CS books are an introduction to programming in the author's favorite language. That is material that you'd have to learn eventually, but you won't get any sense of what computer science is just by learning to program.
|
# ¿ Jul 24, 2011 19:22 |
|
Nodrog posted:Those books seem to be more about the (to me) more boring aspects of computer science (hardware, lowlevel stuff in a non-programming way, general IT concepts, etc). I guess the key point is that computer science is a really huge field, and that different people are going to enjoy different bits. But a book like that is going to put people off, I think. I mean would you personally read it? Its 200 pages in before it even mentions algorithms. I wouldn't read the whole thing cover to cover, but if someone wants to become familiar with the breadth of computer science, reading the introduction to each chapter is a very good way to go about it. Then they can go through and read the chapters that interest them, and maybe skim the rest. There's nothing in either book that's safe to ignore, even if your goal is to be a software engineer.
|
# ¿ Jul 24, 2011 21:15 |
|
TheJazzMess posted:How important is school rank in this field? I am currently going to community college and will be transferring to a 4 year uni (preferably in-state) but I'm not sure if the CS programs at Rutgers/Rowan are any good. Depends on what you want to do afterwards, but Rutgers is definitely good enough for almost anything you'd want to do. Rowan is probably fine for local employment, but it's not well-known as you get further away from New Jersey, so that might present some issues.
|
# ¿ Jul 25, 2011 18:45 |
|
calcio posted:I move pixel by pixel towards the middle and I can query my x,y location and the board's width/height. You need some information on your position relative to the rectangle. If all you know is your absolute position and the size of the rectangle, you don't even know whether you're inside its boundary.
|
# ¿ Aug 14, 2011 01:58 |
|
calcio posted:It's 0,0 top left and movement will wrap around. If the rectangle is height h and width w, the corners are at (0, 0), (w, 0), (0, h) and (w, h). You can view your problem as finding the point (x, y) that minimizes the sum of the squared distances from the corners, which works out to be 2(h^2 + w^2 - 2wx - 2hy + 2(x^2 + y^2)). What it sounds like you want to do is to use a coordinate descent algorithm with a small step size.
|
# ¿ Aug 14, 2011 04:03 |
|
ColdPie posted:I have a dumb language theory/implementation question. In large part, it's because the return keyword indicates that a value is being passed back to the callee. If you're going to change a function's signature so that it returns something instead of nothing, you probably should be altering its body as well.
|
# ¿ Sep 7, 2011 00:38 |
|
The CONCATENATE function is exactly what you want.
|
# ¿ Sep 21, 2011 17:52 |
|
Emong posted:I've never used a debugger before and I have no idea what I'm doing here. You're really handicapping yourself as a programmer if you don't know how to use a debugger. That's probably the most important skill you can be developing right now, so get to it ASAP.
|
# ¿ Sep 30, 2011 22:04 |
|
If you're EE, you're going to have to learn Matlab eventually anyway, so why not start now? The student edition is only about $100, and that'll be good enough for a while.
|
# ¿ Oct 5, 2011 01:58 |
|
Probability is a full-semester class, and not something that you can teach yourself quickly. What are your options if you drop the networking class?
|
# ¿ Oct 15, 2011 06:06 |
|
ancient lobster posted:Ok, stats wasn't a requirement, but I'll take your advice about my other books. That's as good a place as any to start.
|
# ¿ Oct 15, 2011 17:50 |
|
AlsoD posted:I'm just starting to use LaTeX and while finding out how to do a particular thing doesn't seem that hard, knowing what to do is a lot less certain. Haskell actually supports LaTeX annotations. I recommend doing it that way.
|
# ¿ Oct 25, 2011 23:04 |
|
PDP-1 posted:If you're up for a bit of math to mix in with your programming, Project Euler has a list of things to work on. Project Euler has always struck me as a bit of programming to mix in with your math rather than the other way around. Some of the early problems are good, but the later ones can get pretty esoteric.
|
# ¿ Nov 6, 2011 02:13 |
|
Variable names can't start with numbers. If you saidcode:
|
# ¿ Nov 24, 2011 03:48 |
|
ShoulderDaemon posted:write.csv( data, "file.csv" ) Or more generally, write.table.
|
# ¿ Nov 26, 2011 04:45 |
|
Gogey posted:Hey guys, I'm a freshman in college so I'm just kinda planning things out now for a Major in Computer Science (in an engineering program if that changes anything, doubt it will but the curriculum might be different, who knows), and I know Linear Algebra is really important for CompSci and it's required by my school either way. On the other hand, Differential Equations isn't, and I was just wondering if a class in it would be worth it? Does it apply to the field nearly as much as Linear Algebra? Not as much, but most engineering programs require it. Are you sure you can get away without it?
|
# ¿ Nov 26, 2011 19:28 |
|
Yeah, what those guys said.
|
# ¿ Nov 27, 2011 04:24 |
|
TasteMyHouse posted:I'm lookin' to read the tr0 binary data format generated by hspice into R. Anyone have anything that might point me in the right direction? Useful R packages, information on the hspice format's layout, etc? Nothing shows up on Google. You should see if hspice will allow you to export data into a more standard format.
|
# ¿ Nov 29, 2011 21:23 |
|
|
# ¿ May 4, 2024 04:53 |
|
TasteMyHouse posted:It can output ASCII but I was specifically tasked with figuring out how to read the binary format. Right now I'm working on reverse engineering it. Can it output Matlab format? There is an R package (matlab, appropriately enough) that can read those files.
|
# ¿ Nov 29, 2011 22:37 |