bradediger

- friends
59 link karma
1,037 comment karma
send messageredditor for
what's this?

TROPHY CASE


  • Five-Year Club

    Verified Email

How do YOU say ".gif"? by letsdochemistryin AskReddit

[–]bradediger 0 points1 point ago

sorry, this has been archived and can no longer be voted on

"Dot gif". :-)

Ask CS: What NP-problem am I trying to solve here? by chimein compsci

[–]bradediger 2 points3 points ago

sorry, this has been archived and can no longer be voted on

I solved a similar problem for a client (room assignments given sparse preferences) by using genetic optimization. Assignments were represented by permutations (positions in the permutation corresponding to rooms / seats). You have the standard operators transforming one generation to the next (selection, mutation, crossover). PMX crossover combines permutations while preserving their permutation-ness. And there's an elitism factor (the top x% of the population is held across generations). The genetic optimizer minimizes a loss function corresponding to the "badness" of the permutation (in my application, it was the number of unmet preferences).

HELP! HP isn't honoring my netbook warranty because I'm running linux! by grdlockin linux

[–]bradediger 0 points1 point ago

sorry, this has been archived and can no longer be voted on

It's the Magnuson-Moss Warranty Act, and though it was inspired by this sort of thing in the car industry, it actually covers all consumer products.

Whats the most frightening situation you can possibly fathom? (Real situations - no dragons or unicorns) by battlemetalin AskReddit

[–]bradediger 0 points1 point ago

sorry, this has been archived and can no longer be voted on

Narcan is an opioid antagonist. LSD acts mostly at serotonin receptors. I'm not a psychopharmacologist or anything like one, but I don't think naloxone would have any effect.

Get Your Neighborhood Next To Your Name Here! by f4ntin chicago

[–]bradediger 0 points1 point ago

sorry, this has been archived and can no longer be voted on

Humboldt Park here.

Burger King introduces Eggshell Skull Whopper by legalskepticin law

[–]bradediger 1 point2 points ago

sorry, this has been archived and can no longer be voted on

This might be the most awesome title on Reddit today.

Places to donate books by Mypetmummyin chicago

[–]bradediger 0 points1 point ago

sorry, this has been archived and can no longer be voted on

Open Books is a nonprofit that operates an awesome bookstore whose proceeds support literacy programs throughout Chicago. They are a 501(c)(3), so book / cash donations to them are tax-deductible.

What's the funniest thing a professor has ever said in front of your class? by nandercolumbusin AskReddit

[–]bradediger 2 points3 points ago

sorry, this has been archived and can no longer be voted on

Hah, for the science. I'm a nerd and I listen to online courses on random topics in my spare time.

What's the funniest thing a professor has ever said in front of your class? by nandercolumbusin AskReddit

[–]bradediger 1 point2 points ago

sorry, this has been archived and can no longer be voted on

Funny thing is, I've never even set foot on the Berkeley campus. I've just listened to his Drugs lectures online and recognized the mannerisms from shakenbuck's comment.

What's the funniest thing a professor has ever said in front of your class? by nandercolumbusin AskReddit

[–]bradediger 6 points7 points ago

sorry, this has been archived and can no longer be voted on

Sounds like David Presti.

I woke up this morning to piss, smelled smoke, and after checking my furnace realized the neighbors house was burning down. by [deleted]in self

[–]bradediger 6 points7 points ago

sorry, this has been archived and can no longer be voted on

Then which country am I speaking to?

Steve Jobs is still kind of a dick - Apple TV won't let you access Netflix's Gay and Lesbian category. Seriously? by darkmannxin gadgets

[–]bradediger 1 point2 points ago

sorry, this has been archived and can no longer be voted on

Should there be a section on Netflix for "black movies?"

Netflix has a blaxploitation category. Link for those logged in: Action & Adventure -> Blaxploitation.

Stupid question: why isn't water flammable? by gndnin AskReddit

[–]bradediger 0 points1 point ago

sorry, this has been archived and can no longer be voted on

That, or homeopathy.

Pastors to openly endorse political candidates for office. Time to start revoking tax-exempt status for these churches. by rhinoBoomin politics

[–]bradediger 1 point2 points ago

sorry, this has been archived and can no longer be voted on

Churches are 501(c)(3) organizations, but they are exempt from some filing requirements that other 501(c)(3) organizations must follow. Churches are automatically treated as tax-exempt, without having to apply for 501(c)(3) status, and they don't have to file annual information returns as most other tax-exempt organizations do.

TIL: Why I have to add an item to my shopping cart to see the price. by msaleemin technology

[–]bradediger 14 points15 points ago

sorry, this has been archived and can no longer be voted on

That was certainly a factor. But I think the vendor's primary concern was that they had a bit of a "premium" brand (boutique clothing) and didn't want their resellers to compete on price. Think "Cheap Gucci lowest price handbags".

TIL: Why I have to add an item to my shopping cart to see the price. by msaleemin technology

[–]bradediger 51 points52 points ago

sorry, this has been archived and can no longer be voted on

It's quite real. I worked with a business that lost a vendor contract because the vendor thought we were advertising below the MAP. Wasn't true, alas...

What's the most annoying habit you've encountered during a date? by huntahanin AskReddit

[–]bradediger 0 points1 point ago

sorry, this has been archived and can no longer be voted on

I've been hearing about it so much that it's lost all meaning.

Chicagoans: This is how you request a pot hole get filled in Chicago by honestbleepsin chicago

[–]bradediger 2 points3 points ago

sorry, this has been archived and can no longer be voted on

I don't get it. Where do I put my credit card number?

Casino employees, what's the craziest thing you've ever seen? Desperate bets? Drunken fights? Insane winnings? Let's hear some good stories! by CakeSmackin AskReddit

[–]bradediger 2 points3 points ago

sorry, this has been archived and can no longer be voted on

It's a more obscure reference from the same episode.

Search for "golf"

While I know that Pi is a strange number, this shocked me. What's the deal here? by Slagathor91in AskReddit

[–]bradediger 0 points1 point ago

sorry, this has been archived and can no longer be voted on

^ due to linearity of expectation.

The Apollo astronauts were literally uninsurable through conventional means. This is how they improvised.... by MeetJoeWhitein offbeat

[–]bradediger 2 points3 points ago

sorry, this has been archived and can no longer be voted on

Psh... everyone knows robots are powered by old folks' medicine.

Let's play a game called "Buy This Shit!" Suggest one thing you think the average redditor has no clue about and tell them how awesome it is. by KarmaKaiserin AskReddit

[–]bradediger 1 point2 points ago

sorry, this has been archived and can no longer be voted on

I don't know about other carriers, but with T-Mobile the unsubsidized (non-contract) plans are currently about $20/mo cheaper.

Reddit, what brands are you unceasingly loyal to? by MimsyBorogovein AskReddit

[–]bradediger 1 point2 points ago

sorry, this has been archived and can no longer be voted on

Pretty much. Here in Chicago, we're lucky enough to have both in reasonable driving distance.

One in a million shot? by Mutant321in programming

[–]bradediger 2 points3 points ago

sorry, this has been archived and can no longer be voted on

I don't even think we're in disagreement here.

Didn't see that in your original post. Don't get me wrong -- I'm not trying to argue, just to refine. The code I fixed was doing it quite the wrong way (storing the dates as UTC as if the appointments were all on January 1, 2000, or some such) and storing in local time made much more sense in the application domain and cleaned things up quite a bit.

One in a million shot? by Mutant321in programming

[–]bradediger 0 points1 point ago

sorry, this has been archived and can no longer be voted on

A 10 AM appointment is always going to be a 10AM appointment.

And that's why you don't get a lot of benefit from storing it as UTC, when "10 AM" can do just as well. In your example, the recurrence rule would have to take into account the fact that the event is anchored to local time, not UTC, and adjust accordingly. The only conversions required when storing in local time are to answer questions like "has the meeting started yet?" (convert UTC server time to local time and compare).

The original case that inspired me to write on this was actually a scheduled in-person meeting with a publicized local time, so that truly was the most natural form to store the data. I'm really not advocating for all recurring appointments to be stored this way -- there are great advantages to UTC, and it's appropriate in most cases. I was simply providing a counterpoint to the idea that UTC is always the most natural form in which to store times.

One concrete advantage that local time offers, in my specific case, is the ability to refer to a meeting as "the 10 AM meeting" without having to anchor it to a specific date (because it does not depend on the date). This is actually something that is used often in the application I based this example on, and it's not easy with UTC storage.

view more: next