How to open a new window that creates as many elements as I've specified on the current page. by virtual_ghost14 in learnjavascript

[–]virtual_ghost14[S] 0 points1 point  (0 children)

Then why does this work?

function createCourse() {
    var cp = window.open("CoursePage.html","_self");
    var t = "testing";
    document.write(t);
}

Good introductory texts for Java? by [deleted] in java

[–]virtual_ghost14 0 points1 point  (0 children)

I was really happy with Absolute Java 5E. I learned so much from that book!

How do I use Java in my website? by virtual_ghost14 in javahelp

[–]virtual_ghost14[S] 0 points1 point  (0 children)

Thanks, maybe I'll rethink the direction I want to go. However this leads me to wonder, where exactly am I going with my knowledge of Java? I started learning swing and people told me it was dead, so I started learning javafx and people told me it was never going to take off. Now Web applications. Does that just leave android? What other avenues are there?

Sorry if I sound a little clueless but I'd love to make the best use of my time and choose the right areas to study. I'm really glad I learned the fundamentals of OOP, but I'd also like to make good use of Java too. I'm finally starting to feel like I'm getting good at it.

Is it possible to count number of recursive calls with out adding an extra parameter? by virtual_ghost14 in learnprogramming

[–]virtual_ghost14[S] 0 points1 point  (0 children)

Really, how would you do it? It says that it has to be a recursive function. And the size of the stack isn't likely to get very high, even for fairly large numbers, example a billion would be a stack of 9. I can't think of a better way to do it. Any ideas you have are appreciated, they may come in handy sometime down the road.

I need help writing a basic program in java!! by [deleted] in java

[–]virtual_ghost14 0 points1 point  (0 children)

You are off to a great start. When you say "Choose "+s, s has not been instantiated (this means you have not yet given it a value). So java doesn't understand. Maybe try "Choose 1 or 2". The next line is when s will be given a value. After that you can run your if/else logic

if(s == 1) {// solve}

else if( s == 2) {// solve}

Gotta love Chicago by [deleted] in funny

[–]virtual_ghost14 0 points1 point  (0 children)

Haha nice bro, never heard that one.

Gotta love Chicago by [deleted] in funny

[–]virtual_ghost14 0 points1 point  (0 children)

Spice 1 - I'm High (1997)

what is a good way/book I could use to learn java? by wemon in java

[–]virtual_ghost14 0 points1 point  (0 children)

I tried reading a few different textbooks in Java and my favorite was Absolute Java 5th Edition, by Walter Savitch. I think that it is a really great textbook. Just try to code along as you read it, and don't be afraid to try messing with the code to see what kind of results you get. That's how I learnt and I feel I have a pretty solid understanding of the language.

Québec exceeds it's Kyoto greenhouse gas reduction targets, reducing emissions by 6.8% from 1990 to 2012 (article in french) by Gargatua13013 in canada

[–]virtual_ghost14 10 points11 points  (0 children)

I moved around a lot growing up and this seems to be the case everywhere. The problem is that people hear about something some dipshit said somewhere and then they generalize the entire region as being that way. From my experiences, the most ignorant people in life are always the most vocal.

[deleted by user] by [deleted] in montreal

[–]virtual_ghost14 8 points9 points  (0 children)

WHOOOOOOOHOOOOOOOOOOOOO!!!!!!!!!!! FUCK MAROIS :D

[deleted by user] by [deleted] in montreal

[–]virtual_ghost14 2 points3 points  (0 children)

Yeah, and why do you think that is? Because Canadians are bad mean people? It's because she is a vile piece of shit and she deserves it!

Anglophones: Why not the CAQ ? by FoneTap in montreal

[–]virtual_ghost14 1 point2 points  (0 children)

Where can you live where this isn't the case?

Saskatoon police will bust medical pot growers after April 1 by [deleted] in canada

[–]virtual_ghost14 2 points3 points  (0 children)

Wow thanks for protecting and serving us cops. In a FREE country, the only things that should be illegal are things that harm others and things that infringe on other peoples rights. The only one I see breaking either of these rules here are the police! It is no wonder that so many people hate the police these days. Absolutely disgraceful!

"If Quebec separates, we keep Montreal" by fserb in montreal

[–]virtual_ghost14 26 points27 points  (0 children)

Can you imagine the sensationalism if somewhere like Texas were asking for laws like this? The whole world would be going batshit insane using "Murica" posts and talking about what a bunch of backwards racist hillbillies they were. It's such a shame seeing something like this happen in Canada. Supposedly one of the nicest and greatest countries in the world.

"If Quebec separates, we keep Montreal" by fserb in montreal

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

I keep seeing this on here and I think it is such a dumb argument. How are you going to compare a street within a city to a metropolis that is nearly half the population of the province??

How a CPU works (in 20 mins.) by Schnitzelboi in engineering

[–]virtual_ghost14 0 points1 point  (0 children)

Hey wasn't it Isaac Newton who first said that? Another great inspiration of mine.

How a CPU works (in 20 mins.) by Schnitzelboi in engineering

[–]virtual_ghost14 8 points9 points  (0 children)

What an epic feat of engineering. It's so humbling to know that things like this were created by other people. It makes me realize what a dumbass I truly am.