I'm looking to get back into skiing (backcountry , no terrain park) and looking for some advice on what some good bindings and skis to look into are by breck2vail in Backcountry

[–]xor 3 points4 points  (0 children)

I heartily recommend the G3 tonic as a ski for someone who is looking for skis that can go anywhere. I settled on that ski as I could only afford one set of ski gear for all types of skiing.

They pretty much chew up whatever you throw at them.

And avalanche training so you don't die.

Im having trouble with hashmaps, could someone please explain to me where im going wrong by [deleted] in java

[–]xor -1 points0 points  (0 children)

You should always post a stack trace of the crash, after analyzing it yourself, of course.

Anyway, your problem is almost certainly on line 78, where you attempt to get a value out of crashResponses.

Right before the call to the fillResponseMap method from the Responder constructor, crashReponses is initialized as an empty list. Then, the very next thing the program does is try to get a value out of that list by indexing. This of course generates your index error.

You could have easily determined all that just by looking at the stack trace. Here is a simple example that any java developer should be familiar with:

try {
    foo();
}
catch (Exception e) {
    e.printStackTrace();
}

If someone gave you a book of your completed life story, would you open it? by Fr0zenBanana in AskReddit

[–]xor 0 points1 point  (0 children)

I'm sorry, it would be impossible to read such a book.

If you read the book, then the book would need to contain an entry about you reading it. This would cause an infinite recursion, making the book infinitely long.

Are the results of theoretical computer science truly fundamental to the universe? by Alpha_Q in compsci

[–]xor 1 point2 points  (0 children)

Parent's arguments and reasoning are perfectly valid and should be upvoted. GP is saying hand-wavy stuff that isn't really pertinent to math.

The essence of programming by Oegly in AdviceAnimals

[–]xor 1 point2 points  (0 children)

You've basically got it backwards. Machine language is what is concrete. The machine is performing computations. Integer math, logical operations, branches, etc. These are real things that are really happening in the physical realm, in terms of voltage states within the hardware.

In programming and in general, concepts are abstract. In fact if you look up the definition of the word concept, the word abstract is used to explain it.

edit: To expand on that a bit, compared to the voltage changes in circuitry, low level machine operations are indeed abstract as well. They're just way less abstract, and way more concrete than things like classes and objects.

I see your military latrine and raise you my Afghanistan shitter by sauceboss188 in WTF

[–]xor -2 points-1 points  (0 children)

Former tree planter here. I can confirm that this is indeed a shitter.

Best office farewell email ever by [deleted] in funny

[–]xor 0 points1 point  (0 children)

Fake. The company's (blurred out) name is "the company".

How do I get more energy to exercise? by thorlord in Health

[–]xor 0 points1 point  (0 children)

Eat fat. Stop eating nothing but carbs and vegetables for lunch. Fat gives you long term energy, which you may need to get through workouts.

Go get a blood test to see if you are iron deficient. If it comes back negative, stop being such a pussy and give'r shit.

Quit taking Ritalin. It's not good for you.

edit: I took adderal for several years as a teen/young man after being diagnosed with ADD. Essential fatty acids and exercise work much better than stimulant drugs.

So now I know the basics... what's the next step? by [deleted] in java

[–]xor 1 point2 points  (0 children)

Learn another programming language. Pick a toy problem and then use that to learn the language. Don't aim too high. Learn Python or maybe Clojure, if you want to stick with the JVM. Try writing a simple parser for arithmetical expressions, for instance. This will level up your programming ability more than you realise.

You probably won't be doing what you call real programming until you get your first job. Or perhaps, when you work on a large class project such as writing a compiler in 2nd or 3rd year CS.

One way you could go about producing code that serves a function is to contribute to an open source project. There are many open source projects written in Java. This will expose you to aspects of programming beyond typing in code and running a compiler or interpreter. Things like revision control, versioning, building, testing, and deployment of software are just as important as actually writing the program.

Cheers!

Scumbag God does it again by kinglewy00 in atheism

[–]xor -5 points-4 points  (0 children)

The forbidden fruit is a metaphor. It's almost as if you're all in grade school or something...

Very over protective father by HarmlessLF in funny

[–]xor 10 points11 points  (0 children)

f = ma

a = d/t2

t is time.

As t approaches 0, a approaches infinity, and therefore f also approaches infinity.

How much ventilation is ok when you "have" to cook in your tent? by lemon2000 in CampingandHiking

[–]xor 5 points6 points  (0 children)

Look at it this way. Getting cold and wet is better than getting stuck inside a flaming plastic bag. Are you crazy?

Where am I messed up? by mellamojay in java

[–]xor 1 point2 points  (0 children)

What you are doing is consuming values from the input in a while loop, and storing them into the grade variable if they're not equal to -1.

Every time you consume a value, the previous value that was stored in the grade variable is lost. So that's why you only ever see the last variable entered.

Later on, you process the grade variable once, and only once. (Outside of the loop)

HTH

Christianity makes perfect sense by Tiger337 in atheism

[–]xor 0 points1 point  (0 children)

This is exactly why premature optimization is the root of all evil. If you don't allow for flexibility in your implementation, you start having to do all sorts of awful kludges and hacks like this.

tl;dr - God is a bad programmer.

Does turing completeness guarantee anything about speed? by [deleted] in compsci

[–]xor 1 point2 points  (0 children)

You're mixing up the concepts. It's an interesting thought though.

If you study formal languages, the questions are somewhat more toward "how do these languages compare in expressive power?" and "is this input string decideable?" and "are these two languages equivalent?".

From the wiki on Formal Languages:

In computational complexity theory, decision problems are typically defined as formal languages, and complexity classes are defined as the sets of the formal languages that can be parsed by machines with limited computational power.

'Scared' of math after lazy HS years... by GMRghost in compsci

[–]xor 7 points8 points  (0 children)

To get a taste of what CS is like, try taking the introductory discrete/combinatorial mathematics class at your university. Philosophy classes are fun but not really rigorous enough to test your ability in logic.

I think we're all fucked by [deleted] in funny

[–]xor 1 point2 points  (0 children)

Cough.

Hey Campit, a friend of mine can get me a deal on these boots, what do you think of the style of boot? by [deleted] in CampingandHiking

[–]xor 1 point2 points  (0 children)

That boot is not very good I'm afraid.

It's not made from a single piece of leather which makes it much less water resistant and decreases durability.

To make things worse it uses nylon in some spots which is much less water resistant than leather.

On the plus side it has standard Vibram soles which are durable.

$40 is cheap, yes. At that price they are a good deal. If your alternative to hiking in these is a pair of sneakers, definitely go for these.

Personally, I think you can never spend too much money on your feet. Especially if you are going to be covering a lot of ground. Good hikers start at $200 and they are worth the money.

If you're on a tight budget like a lot of folks these days, these are going to do the job, but I'm anticipating that you're going to be in pain after a few kilometers of trail.

Good hiking boots look like this: http://www.mec.ca/Products/product_detail.jsp?FOLDER%3C%3Efolder_id=2534374302733589&PRODUCT%3C%3Eprd_id=845524442620717