yardbarker

OT: Alex Jones freaks out on CNN

Moderators: moocow007, magnumt, j4remi, nyknicks2k2, Knickstape1214, NoLayupRule, kane2021, Thugger HBC, knicks742

ImageImageImageImageImage

Re: OT: Alex Jones freaks out on CNN

Postby J9Starks3 on Tue Jan 08, 2013 8:52 pm

21shumpshumpst wrote:A simple question here. If we eradicate guns from the hands of citizens would there be no more gun murders committed by citizens yes or no?


No - even in the UK there is still gun violence and gun murders. Is it less than in the US, of course, but it is not 0.
User avatar
J9Starks3
Sixth Man
 
Posts: 1881
And1: 2
Joined: May 22, 2007
Location: CT

Re: OT: Alex Jones freaks out on CNN

Postby AndroidMan on Tue Jan 08, 2013 8:55 pm

What about using MapReduce. I apologize, but I was having difficulty understanding this. Please take a few minutes and explain it to me. It may be harder to explain then your 2 cent code piece, but give it a shot, I have faith in you.
User avatar
AndroidMan
Starter
 
Posts: 2264
And1: 17
Joined: May 6, 2010

Re: OT: Alex Jones freaks out on CNN

Postby johnnywishbone on Tue Jan 08, 2013 8:56 pm

AndroidMan wrote:^^^^^

Nice. I'd probably join Android and Man together as AndroidMan otherwise your main won't be functionally correct, boy.


Here you go:

public static void main(String args[]) {
if(args[0].equalsIgnoreCase("Andoid Man".replaceAll("\\s",""))) {
System.out.println("BULL **** COMING -- SHUTTING DOWN SYSTEM.");
System.exit(0);
}
}
For rent
User avatar
johnnywishbone
Lead Assistant
 
Posts: 5922
And1: 33
Joined: Sep 4, 2009
Location: In the land where palm trees sway...

Re: OT: Alex Jones freaks out on CNN

Postby 21shumpshumpst on Tue Jan 08, 2013 8:57 pm

johnnywishbone wrote:
AndroidMan wrote:^^^^^

Nice. I'd probably join Android and Man together as AndroidMan otherwise your main won't be functionally correct, boy.


Here you go:

public static void main(String args[]) {
if(args[0].equalsIgnoreCase("Andoid Man".replaceAll("\\s",""))) {
System.out.println("BULL **** COMING -- SHUTTING DOWN SYSTEM.");
System.exit(0);
}
}

:rofl: :rofl: :rofl: :rofl:
21shumpshumpst
Veteran
 
Posts: 2655
And1: 31
Joined: Aug 14, 2012

Re: OT: Alex Jones freaks out on CNN

Postby AndroidMan on Tue Jan 08, 2013 8:58 pm

johnnywishbone wrote:
AndroidMan wrote:^^^^^

Nice. I'd probably join Android and Man together as AndroidMan otherwise your main won't be functionally correct, boy.


Here you go:

public static void main(String args[]) {
if(args[0].equalsIgnoreCase("Andoid Man".replaceAll("\\s",""))) {
System.out.println("BULL **** COMING -- SHUTTING DOWN SYSTEM.");
System.exit(0);
}
}


or you could just write it efficiently and not waste a call to replaceAll(). Why not just equalsIgnoreCase("AndoidMan") and be efficient.
User avatar
AndroidMan
Starter
 
Posts: 2264
And1: 17
Joined: May 6, 2010

Re: OT: Alex Jones freaks out on CNN

Postby johnnywishbone on Tue Jan 08, 2013 9:04 pm

AndroidMan wrote:What about using MapReduce. I apologize, but I was having difficulty understanding this. Please take a few minutes and explain it to me. It may be harder to explain then your 2 cent code piece, but give it a shot, I have faith in you.


I've never had to use it professionally. And i've been out of school for 20 years. But looking at the wikipedia page it looks like a system for analyzing large sets of data to see repeating patterns. The fact that Google uses it in there search is probably a function of them processing large amount of web pages to see reoccurring patterns of keywords.
For rent
User avatar
johnnywishbone
Lead Assistant
 
Posts: 5922
And1: 33
Joined: Sep 4, 2009
Location: In the land where palm trees sway...

Re: OT: Alex Jones freaks out on CNN

Postby AndroidMan on Tue Jan 08, 2013 9:09 pm

johnnywishbone wrote:
AndroidMan wrote:What about using MapReduce. I apologize, but I was having difficulty understanding this. Please take a few minutes and explain it to me. It may be harder to explain then your 2 cent code piece, but give it a shot, I have faith in you.


I've never had to use it professionally. And i've been out of school for 20 years. But looking at the wikipedia page it looks like a system for analyzing large sets of data to see repeating patterns. The fact that Google uses it in there search is probably a function of them processing large amount of web pages to see reoccurring patterns of keywords.


Ya that's the basics. Much tougher in practice, but Google definitely employs it while scanning the web. Getting it setup in a distributed environment is a bitch. You passed the Basic computer science test. I'd be a dick and ask you some astrophysics concept I don't even know about, but I'll leave it at that.
User avatar
AndroidMan
Starter
 
Posts: 2264
And1: 17
Joined: May 6, 2010

Re: OT: Alex Jones freaks out on CNN

Postby AndroidMan on Tue Jan 08, 2013 9:11 pm

AndroidMan wrote:
johnnywishbone wrote:
AndroidMan wrote:^^^^^

Nice. I'd probably join Android and Man together as AndroidMan otherwise your main won't be functionally correct, boy.


Here you go:

public static void main(String args[]) {
if(args[0].equalsIgnoreCase("Andoid Man".replaceAll("\\s",""))) {
System.out.println("BULL **** COMING -- SHUTTING DOWN SYSTEM.");
System.exit(0);
}
}


or you could just write it efficiently and not waste a call to replaceAll(). Why not just equalsIgnoreCase("AndoidMan") and be efficient.


neither your code or my suggestion would work. We both left out the R in AndroidMan. Fail on both of us.
User avatar
AndroidMan
Starter
 
Posts: 2264
And1: 17
Joined: May 6, 2010

Re: OT: Alex Jones freaks out on CNN

Postby johnnywishbone on Tue Jan 08, 2013 9:13 pm

AndroidMan wrote:
johnnywishbone wrote:
AndroidMan wrote:What about using MapReduce. I apologize, but I was having difficulty understanding this. Please take a few minutes and explain it to me. It may be harder to explain then your 2 cent code piece, but give it a shot, I have faith in you.


I've never had to use it professionally. And i've been out of school for 20 years. But looking at the wikipedia page it looks like a system for analyzing large sets of data to see repeating patterns. The fact that Google uses it in there search is probably a function of them processing large amount of web pages to see reoccurring patterns of keywords.


Ya that's the basics. Much tougher in practice, but Google definitely employs it while scanning the web. Getting it setup in a distributed environment is a bitch. You passed the Basic computer science test. I'd be a dick and ask you some astrophysics concept I don't even know about, but I'll leave it at that.


Now my turn. Please describe the difference between inheritance and interface and when you would use one over the other.
For rent
User avatar
johnnywishbone
Lead Assistant
 
Posts: 5922
And1: 33
Joined: Sep 4, 2009
Location: In the land where palm trees sway...

Re: OT: Alex Jones freaks out on CNN

Postby AndroidMan on Tue Jan 08, 2013 9:18 pm

johnnywishbone wrote:
Now my turn. Please describe the difference between inheritance and interface and when you would use one over the other.


I believe inheritance you have to initialize some variables and methods, while interfaces are implemented, rather then instantiated. As for their usage, I believe interfaces are used when you don't know what the values of certain variables or parameters may be until runtime. Thereby you kind of implement on the fly.

You can also simulate multiple inheritance while using interfaces.
User avatar
AndroidMan
Starter
 
Posts: 2264
And1: 17
Joined: May 6, 2010

Re: OT: Alex Jones freaks out on CNN

Postby johnnywishbone on Tue Jan 08, 2013 9:19 pm

AndroidMan wrote:
neither your code or my suggestion would work. We both left out the R in AndroidMan. Fail on both of us.


You can't pass Object[] args to the main method. I didn't think you could but I was looking for an easy way to show reflection.

And that's why when you get out of school you should avoid string literals. a better way would have been:

if(args[0].equalsIgnoreCase(AndroidMan.class.getName())
For rent
User avatar
johnnywishbone
Lead Assistant
 
Posts: 5922
And1: 33
Joined: Sep 4, 2009
Location: In the land where palm trees sway...

Re: OT: Alex Jones freaks out on CNN

Postby AndroidMan on Tue Jan 08, 2013 9:23 pm

johnnywishbone wrote:
AndroidMan wrote:
neither your code or my suggestion would work. We both left out the R in AndroidMan. Fail on both of us.


You can't pass Object[] args to the main method. I didn't think you could but I was looking for an easy way to show reflection.

And that's why when you get out of school you should avoid string literals. a better way would have been:

if(args[0].equalsIgnoreCase(AndroidMan.class.getName())


well that's making the assumption we are even doing a search for AndroidMan which isn't even evident in your code. Silly piece of code, which I even laughed at for the humor, only noticed the R later missing on.
User avatar
AndroidMan
Starter
 
Posts: 2264
And1: 17
Joined: May 6, 2010

Re: OT: Alex Jones freaks out on CNN

Postby johnnywishbone on Tue Jan 08, 2013 9:24 pm

AndroidMan wrote:
johnnywishbone wrote:
Now my turn. Please describe the difference between inheritance and interface and when you would use one over the other.


I believe inheritance you have to initialize some variables and methods, while interfaces are implemented, rather then instantiated. As for their usage, I believe interfaces are used when you don't know what the values of certain variables or parameters may be until runtime. Thereby you kind of implement on the fly.


An object can only inherit from one class but an object can implement many interfaces. Interfaces only define the methods that an object has to implement. You can inherit an instance variable from your super class but not from an interface. Interfaces are often used in delegation.

You get a C on that. Show a method in any language where two instance variable swap their values.
For rent
User avatar
johnnywishbone
Lead Assistant
 
Posts: 5922
And1: 33
Joined: Sep 4, 2009
Location: In the land where palm trees sway...

Re: OT: Alex Jones freaks out on CNN

Postby AndroidMan on Tue Jan 08, 2013 9:34 pm

johnnywishbone wrote:
AndroidMan wrote:
johnnywishbone wrote:
Now my turn. Please describe the difference between inheritance and interface and when you would use one over the other.


I believe inheritance you have to initialize some variables and methods, while interfaces are implemented, rather then instantiated. As for their usage, I believe interfaces are used when you don't know what the values of certain variables or parameters may be until runtime. Thereby you kind of implement on the fly.


An object can only inherit from one class but an object can implement many interfaces. Interfaces only define the methods that an object has to implement. You can inherit an instance variable from your super class but not from an interface. Interfaces are often used in delegation.

You get a C on that. Show a method in any language where two instance variable swap their values.


Damn, I was really trying to ace this internet pop quiz as well. i didn't even bother google the info. Damn it.

swap(int a, int b)
{
int temp = a;
a = b;
b = temp;
}
User avatar
AndroidMan
Starter
 
Posts: 2264
And1: 17
Joined: May 6, 2010

Re: OT: Alex Jones freaks out on CNN

Postby johnnywishbone on Tue Jan 08, 2013 9:40 pm

AndroidMan wrote:
Damn, I was really trying to ace this internet pop quiz as well. i didn't even bother google the info. Damn it.

swap(int a, int b)
{
int temp = a;
a = b;
b = temp;
}


Sure you didn't? http://stackoverflow.com/questions/1039 ... es-in-java

:lol: :lol: :lol: :lol:
For rent
User avatar
johnnywishbone
Lead Assistant
 
Posts: 5922
And1: 33
Joined: Sep 4, 2009
Location: In the land where palm trees sway...

PreviousNext

Return to New York Knicks

Who is online

Users browsing this forum: Bobby11230, Bran Fast Hands, defjux21, eliw23, ezmoney707, Fury, GONYK, Im Coming Home, isiah_thomas, Jay10, Jazzball, Knicksfan20, Lin Your Face, MelosSoreWrist, moocow007, mrknowname, MSN [Bot], nykfan42, R-DAWG, rdogg1026, sixersfan23, SkyMason21, Xenoblade