News for hackers. Stuff that matters.

the_tubes

Re:SOPA-Supporting News Outlets Aren't Covering SOPA on Friday January 06, 2012 @04:37PM (#3435148)
I want to call my representatives but I feel they will give me a hard time and use that politician improve skill to make it seem like I don't know what I am talking about. Give me good ideas on what to say when I don't support SOPA and PIPA that they can't fight back. Ideas why I don't like it while playing devil's advocate

  +policing my web site to a point I can't manage it.
  -well your website can't be controlled and needs to be shut down

  +Small time businesses use user created content to advertise cheaply and won't
  be able to when these sites shut down or big business shuts you down with the excuse
  of violating their IP
  -Sites and small businesses will only be taken down when they are obviously
  designed to infringe on others IP

  +The security of the internet will crumble with DNS blocking from other countries
  -How?
I want wording to the point where they say, "Well, damn! I guess you're right."
Your code sucks dude ;) Actually I don't know python so I don't know what's going on. Here is a real man's program in c++, it didn't take long to write but it did take long to figure out how to calculate it correctly.

  #include <iostream>
  using namespace std;

  int main()
  {

    	  int max;
  	  cout << "How big do you like it?\n";
	  cin >> max;
	  if(max<0||max>30)
		  return 0;

    	  for(int row=0; row<=max; row++)
	  {
		  cout << 1 << " ";

		  unsigned int out=1;
		  unsigned int last;
		  unsigned int next=row;
		  for(int i=1; i<=row; i++)
		  {
			  last=out;
			  out=last*next/i;
			  next--;

			  cout << out << " ";
		  }

		  cout << endl;
	  }
	  return 0;
  }
EDIT: there we go :D small errors corrected

For those that are just brainfucked with wikipedia's explanation 1. Wikipedia sucks as explaining math. Never use it to look something up that deals with math. 2. The best explanation is like in the middle of the article, "Calculating an individual row or diagonal by itself"... "For example, to calculate row 5, r = 6. The first value is 1. The next value is 1 × 5/1 = 5. The numerator decreases by one, and the denominator increases by one with each step. So 5 × 4/2 = 10. Then 10 × 3/3 = 10. Then 10 × 2/4 = 5. Then 5 × 1/5 = 1."