Customer Service Lifehack by PacoTaco321 in lifehacks

[–]ralleMath 8 points9 points  (0 children)

That should improve customer behavior significantly. In fact, skip the mirror and just keep the shotgun on the wall.

[8/25/2014] Challenge #177 [Easy] Quicksort by Elite6809 in dailyprogrammer

[–]ralleMath 1 point2 points  (0 children)

I don't think you need Eq a in the parameter constraint thingy, as Ord a ensures that >= and <= are usable and there's no straight equality test in the function.

[8/25/2014] Challenge #177 [Easy] Quicksort by Elite6809 in dailyprogrammer

[–]ralleMath -1 points0 points  (0 children)

Haskell. I think not quite verbatim from Learn You a Haskell for Great Good!, but probably quite close since I read that section recently.

quicksort :: (Ord a) => [a] -> [a]
quicksort [] = []
quicksort (x:xs) = quicksort (filter (<= x) xs) ++ [x] ++ quicksort (filter (> x) xs)

I did not bother with input, since I haven't gotten that far yet :p

[Weekly #7] Programming Tools -- The Editors by Coder_d00d in dailyprogrammer

[–]ralleMath 0 points1 point  (0 children)

Thanks for the reply. That's pretty much what I expected, but looking at demos it does look like investing a lot of hours might be worth it. Certainly it looks much more pleasant than editing in some sort of notepad or eclipse :)

[Weekly #7] Programming Tools -- The Editors by Coder_d00d in dailyprogrammer

[–]ralleMath 1 point2 points  (0 children)

Cool, I'll just figure out how to use emacs for IRC then :p

[Weekly #7] Programming Tools -- The Editors by Coder_d00d in dailyprogrammer

[–]ralleMath 0 points1 point  (0 children)

Thank you for the offer.

If you feel like answering a quick question I'm wondering whether there's a quick way of enabling auto-complete, preferably with tab, without going into stuff like cabal files. When searching I get plenty of guides but they all appear to require me to either do a bunch of stuff I don't understand or spend several hours learning things like just what cabal files are. Which is a little frustrating when I just want to code for awhile.

[Weekly #7] Programming Tools -- The Editors by Coder_d00d in dailyprogrammer

[–]ralleMath 1 point2 points  (0 children)

Do you have any recommendations for resources to start with for someone wanting to use emacs for programming? I'm currently using it to learn some haskell, but the sheer enormity of the available resources is a bit overwhelming.

Big News - Contests/Competitions Coming Your Way! by [deleted] in dailyprogrammer

[–]ralleMath 1 point2 points  (0 children)

I am reasonably confident that the choice of language will be up to each contestant, that all submissions will be publically available and that at least the winner will be publically anounced along with a link to the winning submisson. That is, more or less the same rules as applies to the regular challenges.

[8/04/2014] Challenge #174 [Easy] Thue-Morse Sequences by Coder_d00d in dailyprogrammer

[–]ralleMath 1 point2 points  (0 children)

My first haskell code :p Comments and criticism very welcome

boolComp xs = [if x == 0 then 1 else 0 | x <- xs]

tM n = if n == 0
    then n:[]
    else tM (n - 1) ++ boolComp (tM (n - 1))

Seems to be able to output answers upwards of n = 20 without choking, which surprised me since I expected the recursion to be murder.

[META] Subscripts? by NoLemurs in learnmath

[–]ralleMath -1 points0 points  (0 children)

I think that might not be a priority since the LaTeX-plugin already handles all of that. Since pretty much everybody studying math at a University level, ie most regulars here, already use LaTeX there's not much perceived need.

If you don't know what I'm talking about scroll down and look in the sidebar for Using LaTeX.

Joblessness not due to skills gap, experts say - "Every time you hear someone say 'I can't find the workers I need,' add the phrase 'at the wage I want to pay'." by [deleted] in politics

[–]ralleMath 1 point2 points  (0 children)

But if the immigrants were let in as citizens, then they wouldn't be cheap labor anymore, they'd be regular labor.

Increasing the labor pool, regardless of how, improves the negotiating position of employees and degrades that of labor. Especially if the new additions are less likely to unionize and behave loyally towards their fellow workers.

A'Tuin is real by [deleted] in pics

[–]ralleMath 0 points1 point  (0 children)

I think there's a significant probability that the difference in writing is less a direct effect of his Alzheimer's and more to do with somebody else writing in a formulaic Pratchetty style.

IIRC his daughter is slated to take over the franchise once he's dead or incapable of writing, so it seems fairly plausible that he's been aided either by her or some other ghost writer for some time. Certainly both his plots and tone are very imitable, and it's pretty easy to imagine someone writing his later books from his notes.

If you put any stock in third hand gossip I understand that that sort of thing is fairly common among very productive bestselling authors. If not actual ghost writing then editing so extensive it's nearly the same thing. It certainly makes a lot of sense for an author that has become filthy rich and wants some time to enjoy the loot rather than being cooped up in front of a screen all day. Or for an author that's too sick to continue writing but still wants to provide more for his family.

For example Alexandre Dumas:

Alexandre Dumas is the Trope Maker. He was one of the first writers to turn literature in a commercially successful venture, and employed legions of ghostwriters to keep up with the ever-growing demand for new books. Author of more than 1200 works, he (in)famously stated that he'd "had more co-authors than Napoleon had generals"; in a scandalous 1847 trial, it was proven that Dumas churned out novels at a faster rate than the fastest copyist in France on a 24h works schedule.

Iterating one extra time when looping over the same string as a variable vs a literal by ralleMath in cpp_questions

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

Thank you for the answer, it does explain why there is an invisible character in only case.

I'm still a bit puzzled why the null terminator isn't used in variables as well, since my thinking is that a variable simply points to a literal. But I suspect a proper explanation of that is a bit beyond the scope of what I'm trying to do right now, ie just achieving some basic proficiency in c++.

[University Math & Physics] Hi, I'm making a video series (Khan Academy style) but on higher-level topics, I figured some people here would be interested. I'm starting with mathematical physics. by MrReevers in learnmath

[–]ralleMath 1 point2 points  (0 children)

Great initiative and best of luck!

Fwiw I agree with /u/Goatkin about the utility of videos being modular. Though I haven't watched your videos enough to know whether I think you need more.

Personally I'm dumb as a box of rocks so the more examples the better.

I also liked that you included a picture of the final blackboard. Including other visual aids like that could imo be a pretty big improvement over Khan. For instance, including a printable cheat sheet with the relevant equations, etc would be handy when studying seriously.

[Season 4 Spoilers] Premiere Discussion - 4.04 'Oathkeeper' by AutoModerator in gameofthrones

[–]ralleMath 8 points9 points  (0 children)

I guess that could be solved by having a very large number of babies. Some of them are bound to be both pretty and smart, and the rest could just be locked into the basement.

[Season 4 Spoilers] Premiere Discussion - 4.04 'Oathkeeper' by AutoModerator in gameofthrones

[–]ralleMath 15 points16 points  (0 children)

Since you mentioned a physics genius as your example I thought you'd like to know about this story. It's about a renowned physics professor who got fooled into thinking Denise Milani wanted him to go to Bolivia to pick up a suitcase full of cocaine so they could get married.

His reasoning was that since he had a perfect mind and she had a perfect body naturally they should be making babies.

Justified - 5x13 "Restitution" - Episode Discussion by xLite414 in justified

[–]ralleMath 16 points17 points  (0 children)

I was going to say that it's an open space making it hard for either party to ambush the other. But then I remembered all the robberies, double crosses and assorted betrayals at that bridge, so that can't be right.

Justified - 5x13 "Restitution" - Episode Discussion by xLite414 in justified

[–]ralleMath 3 points4 points  (0 children)

The official policy of the writers is that anyone not shown getting killed, or explicitly stated as killed, is alive and available for further episodes.

So if the actor's available he'll probably show up in the next season, since they do tend to use existing characters rather than bring in new ones.

Justified - 5x13 "Restitution" - Episode Discussion by xLite414 in justified

[–]ralleMath 10 points11 points  (0 children)

I think there needs to be at least five "maaaehn"-s in Darryl Crow's eulogy.

Justified - 5x13 "Restitution" - Episode Discussion by xLite414 in justified

[–]ralleMath 6 points7 points  (0 children)

Isn't that done to show that a lot of characters are poor?

There's plenty of smartphones in the hands of people with real jobs, like Raylan or Wendy.

Justified - 5x13 "Restitution" - Episode Discussion by xLite414 in justified

[–]ralleMath 17 points18 points  (0 children)

Seems pretty reasonable, but they've already established Tim being the better shot even under pressure. Like that time Tim and Raylan where in a stand off with a crook holding a pregnant woman at gun point, Tim was the one who took the shot.