Everything posted by Hedgehog
-
"I want a girlfriend/boyfriend", and other such relationship advice
The only people that say they love people are those who are under the age of 16 and fools. Well I mean, that's kinda naive
-
"I want a girlfriend/boyfriend", and other such relationship advice
I remember I saw an episode of one of those nanny shows where the father just played video games all day. Had his desktop setup in the kitchen and "looked after" the kids from there. The first thing the nanny did when she came over was force the dad to get his ass off the computer and interact with his kids
- Today...
-
Today...
That's a good idea. Let's debate pizza toppings. [bleep] pepperoni. Just cheese is better I like olives on my pizza Bell peppers and onions don't belong on a pizza, but jalepenos are fine [bleep] you if you like pineapple on your pizza Underrated pizza: Alfredo sauce, beef, extra cheese
- Today...
- Today...
-
Today...
I think I'm going to learn Elixir. I "learned" Haskell a little while ago (i.e. I read a book on it and wrote some small programs with it), but its syntax is kind of off-putting since half of the learning curve is just figuring out what all the damn symbols mean. Elixir seems to have the simple syntax of javascript or ruby, but also enforces functional thinking like Haskell, plus it has a bunch of really neat features. Here's an example of a module that computes the standard deviation and variance of a set in JavaScript (the language they pay me to write in): 'use strict'; const StdDev = (function StdDev(){ const stddev = function(set){ const square = function(a){ return a * a; }; const add = function(a, b){ return a + b; }; const sum = function(set){ return set.reduce(add); }; const average = function(set){ return sum(set) / set.length; }; const mu = average(set); // Christ alive! return Math.sqrt(sum(set.map(function(x){ return x - mu; }).map(square)) / (set.length - 1)); }; const variance = function(set){ const square = function(a){ return a * a; }; return square(stddev(set)); }; return { 'stddev': stddev, 'variance': variance }; })(); console.log(StdDev.variance([1, 2, 3, 4])) Here's the same code in Elixir: defmodule StdDev do def stddev(set) do square = fn a -> a * a end divide = fn (a, b) -> a / b end add = fn (a, b) -> a + b end sum = fn set -> Enum.reduce(set, 0, add) end average = fn set -> sum.(set) / length(set) end mu = average.(set) Enum.map(set, fn x -> x - mu end) |> Enum.map(square) |> sum.() |> divide.(length(set) - 1) |> :math.sqrt end def variance(set) do square = fn a -> a * a end stddev(set) |> square.() end end StdDev.variance([1, 2, 3, 4]) |> IO.puts That's so much more readable, especially when the actual calculation occurs. JavaScript needs native lambda functions desperately. They're part of the ES6 spec, but there's not a whole lot of browser support and it isn't supported by Node nor io.js. The pipe operator |> also makes life sooo much easier, but it's only in the strawman phase of the ES7 spec, so it's not going to be usable for a while in JavaScript. Also, a couple of those anonymous functions in the Elixir example aren't necessary, but I can't figure out the syntax to use + or / as a bounded anonymous function lol. It is necessary in javascript though because operators are not functions.
-
What are you listening to right now!?
I only just noticed that there's a shot at my favorite bar in this vid
- Today...
- Today...
- Comeback 4 events
-
Busted CD ROM drive?
Worst case scenario, you can usually open up your case and manually remove the drive. Usually it's just held in by 1 screw, so it's pretty easy to take care of
- Today...
-
What are you listening to right now!?
Christ, what a good song
-
What are you listening to right now!?
The fave
-
What are you listening to right now!?
Saw them play on Halloween. Hell of a show. Their singer played a song with Dikembe, since Dikembe's singer's wife gave birth an hour before their set A good band from that list that I hadn't heard of
-
What are you listening to right now!?
http://www.buzzfeed.com/ryanhatesthis/dont-worry-snowing-is-not-on-this-list#.gqpLLjW0d Thought some of you guys would enjoy this list, since there's a few bands on there that have been posted here, including some of my favorite bands right now
-
What hapened to the original TIF?
Are you talking about scapeboard? It's been gone since summer 2005
- It's Not Very Effective...
- It's Not Very Effective...
- Today...
-
What are you listening to right now!?
Deftones was a band that had a lot of potential, but no really good albums for a long time. I feel like they finally reached their potential with Diamond Eyes, and exceeded it with Koi No Yokan. Real excited to see what their new album sounds like, but it looks like it won't be coming out til 2016. I'm glad I got to see them in 2013, it was a great show. Btw Dax they're coming to Australia in January
-
What game should I play instead of RuneScape?
If you like dinosaurs and guns, you'll enjoy Ark
-
Today...
Well, first of all, tickets aren't $10. Student tickets are usually pretty cheap (ours were $15), but other tickets are usually $50-$100. For big games, you'll have to pay upwards of $200 for a ticket. And then factor in the fact that these stadiums are enormous (Faurot Stadium seats 75k, the Swamp seats 90k), and ticket revenue becomes pretty significant. Mizzou isn't a huge school, but they'll still pull in close to $100m this year, almost entirely from football. Some schools will get more than double that. Football in power 5 conferences is absolutely a cash cow. They make so much money, it's ridiculous. Even in conferences with reduced scholarships and smaller stadiums, schools still operate with budgets in the tens of millions. Teams are only unprofitable when they make longer term, more expensive investments into their program (expanding their stadiums, hiring more expensive coaches, increasing scholarships, upgrading facilities), but the vast majority pay off. Outside of those large investments, a football program's actual deficit will only be about 40-50% of its revenue. The other 50-60% gets put into other sports primarily, with the rest being used however the university wants to use it. Typically, a football program will fund every other sport, then the leftovers + basketball revenue gets reinvested into the school. Whatever's leftover gets marked as profit and is usually saved for a rainy day. The only real exception is HBCUs, like Gambling St., but I don't want to open that can of worms.
- Today...