« first day (633 days earlier)      last day (4315 days later) » 

11:00 PM
why? I don't want anyone to cut off my fingers, ears, or remove my eyeballs...
 
@Jordan scheme is hard to read, and doing it with the expt function is tricky. Sorry, I'm too lazy to help you
 
@JimNorton And fuck robots?
 
@melak47 Most thieves won't go to that much trouble.
 
@JimNorton Better not. It is completely unclear how that will pan out. I'm pretty sure we'll find out in a hurry that biometrics can easily be spoofed, the playful and the nasty ways
 
@sehe @MooingDuck Check out what that guy did.
 
11:00 PM
Don't complain when you're first against the wall.
 
3
A: Is it possible to read infinity or NaN values using input streams?

user315052Edit: To avoid the use of a wrapper structure around a double, I enclose an istream within a wrapper class instead. Unfortunately, I am unable to figure out how to avoid the ambiguity created by adding another input method for double. For the implementation below, I created a wrapper structure a...

 
I don't think breaking hashes was ever NP-complete.
 
@Drise what guy?
 
@melak47 It's more likely someone is willing to steal a computer than a finger. :-)
 
@MooingDuck He's one of those user#####, no identifiable name really.
 
11:01 PM
@Mysticial They are exponential in the number of the input bits, which is arguably the same thing (give or take).
 
user1174868
@MooingDuck That is why I think recursion is so hard
 
Ok nifty. Why not make it an iomanip/facet thing while you're at it? That way, you'll be able to mix and match with any iostreams classes — sehe 9 secs ago
 
Recursion is hard only when it is hard.
 
but
 
@sehe Like hell if I know what you're talking about.
 
11:03 PM
put simply, I'm fairly certain that my current approach can yield the results I am looking for.
 
@Jordan it's not recursion that's hard. The problem you have been given is hard.
 
what even is the problem he's been given?
 
user1174868
Recursion is only recursion when it is recursion
 
user1174868
I am suppose to find an n such that bn > a, where a > 1 and all positive integers.
I am suppose to use recursion and the expt function but other than that I have no idea how to do it like that. I have tried many, many times and I can't get it. Here is some sample code I tried.
[1] http://ideone.com/07cFi
 
@Drise holy....
 
11:05 PM
hmm, well that seems really quite simple
 
@JimNorton It's also more likely that someone will be able to spoof/eavesdrop your fingerprint than other things. Also, reliabilty of biometrics is not very high in consumer grade equipment. The FAR are something to give serious thought.
The only reason we don't see more attacks on these things is because they're not widely applied yet. Much in the same way that the only reason we see few linux-targeting viruses is, 'nobody' uses it
 
given a and b, then n = (a / b) + c, where c is any positive integer.
 
I think that's a borked power.
As in b^n.
 
eh
replace division by b with logarithm to the base of b
 
@Drise I don't like that answer, that code does a lot of strange and questionable things for no apperent reason
 
user1174868
11:07 PM
@deadmg sorry the smallest n
 
@Jordan Then c = 1.
 
@MooingDuck You're welcome to answer it yourself. I am open to changing the accepted answer, but for now, that did give me use of an overload, as I orginally wanted. And it the only code that has been presented that has been thought out (I am lazy and don't want to write it myself).
 
user1174868
@DeadMG I have to use the expt function and recursion
 
@Jordan I have no idea what expt does.
 
user1174868
11:08 PM
@deadmg power
 
but I also have no idea how you're supposed to apply recursion in this case- it's a simple algorithm which involves no iteration or traversal of anything.
 
f(a, b, i) -> if b^i > a then i else f(a, b, i+1)
Shim it with f(a, b) -> f(a, b, 0)
 
@Jordan He's probably looking for a simple for(int i = 0; i < INT_MAX; i++) { if (expt(b, i) > a) return a; }
but with the iteration expressed as tail recursion
@RMartinhoFernandes > a not = a
 
Oh, I missed that.
 
user1174868
He said no counter or loops, just recursion
 
11:10 PM
@Jordan They are the same thing, just expressed differently.
in this case
 
user1174868
I asked specifically if I need to use a counter like that and he said no, just recursion
 
@DeadMG he's required to use exponents, recursion, and scheme
 
@DeadMG I was about to say...
 
@Jordan Well, I don't really see what he's looking for.
 
@MooingDuck All that's missing is the Scheme now.
 
11:12 PM
the direct algorithm does not require exponentiation nor a counter nor recursion
 
@sehe Interesting...
 
the recursive algorithm has a counter
so WTF algorithm is he expecting you to use?
 
user1174868
I already got a working solution that does loga / logb but he said that isn't right
 
@JimNorton Honestly, I can see biometrics being used in two-factor, or as 'lowvalue' authentication (like a more convenient (?) throw-away password; not to be used for highvalue secrets)
 
he's probably just looking for what Martinho said
and will pretend that i is not a counter
 
11:14 PM
@DeadMG Because it's an accumulator! :P
 
lol
 
user1174868
That is my problem, I am not sure how to find the smallest n without a counter
 
@Jordan Just go back to him with the one with an "accumulator" and ask him WTF he wants from you if not that
 
user1174868
What is an accumulator?
 
A counter in recursion.
 
11:16 PM
it's a counter but apparently some people give it a different name if you recurse instead of iterate with it
 
user1174868
"The idea is to use recursion. No counter is required.
We do not introduce any formal loop structures. All looping is done using recursion."
 
oh
 
Well, sounds like what I have above.
 
so you are expected to do the accumulator version
and he is gonna pretend it's not a counter when it really is
 
boost::iterator_facade has a bad interface. Proof by "I always have to look up that thing".
 
11:19 PM
I prefer proof by DeadMG
I say it, therefore it's right
 
user1174868
so I have to learn how to make a counter in scheme and then I can do this problem?
 
@Jordan The robot posted code earlier that does it.
it's basically exactly identical to a for loop (and the compiler even does the conversion for you under the hood) but functional purists pretend otherwise.
 
Ell
@deadmg I think you mean iterative purists pretend a for loop is identical to the functional version ;)
 
user1174868
I am pretty certain I am going to fail this class, this is just one question of 12 for the first weeks homework and it took me 6 days to get this far
 
11:22 PM
@Ell Nah. The fact that they're identical is represented in, say, the automatic transformation that occurs from one to the other.
@Jordan Eh. Once you get past the basics and the new terminology, it becomes obvious that a lot is actually completely the same.
 
@Ell CPS purists pretend both are identical to their continuation-passing form. Also, they're insane, if they exist.
 
lol
 
Ell
cps?
 
Continuation-passing style, noun: insanity.
 
just don't go there
 
Ell
11:23 PM
oh is the return-from or something?
or no return statements
 
it's like two hardcore functional purists had a baby but dropped it on it's head about 99999999 times, then electrocuted it and locked it in a tiny room for 20 years.
 
user1174868
The problem with "f(a, b, i) -> if b^i > a then i else f(a, b, i+1)

Shim it with f(a, b) -> f(a, b, 0)
" is that the function only is suppose to have two inputs
 
@DeadMG lolwut.
 
Ell
man solitary confinement is worse thatln death
 
@Jordan That's the shim.
 
user1174868
11:25 PM
shim?
 
A small function that does nothing but change parameters to be passed to another.
 
I've never heard the term either. I call them "thunks".
 
user1174868
This is harder than working with the IRS
 
@DeadMG It's on wikipedia! It exists!
 
well, if you're a mapper, you find it easy- trivial, almost
but packers find it very hard
 
Ell
11:27 PM
whaaat?
 
In computer programming, a shim (from shim) or shiv is a small library that transparently intercepts an API and changes the parameters passed, handles the operation itself, or redirects the operation elsewhere. Shims typically come about when the behavior of an API changes, thereby causing compatibility issues for older applications which still rely on the older functionality. In such cases, the older API can still be supported by a thin compatibility layer on top of the newer code. Shims can also be used for running programs on different software platforms than they were developed for....
Disclaimer: I may be abusing the term. That's what programmers do.
 
@Ell You don't know about mappers and packers?
 
I'm both. That's awesomeness for you.
 
@Jordan See, you're getting so much positive out of this! You'll be better equipped to put life into perspective :)
 
Ell
@deadmg54 I dont.
 
11:30 PM
There's 53 DeadMG clones? So, it has come to this.
 
deadmg54?
@RMartinhoFernandes Faster and more ad rem :)
 
2 mins ago, by R. Martinho Fernandes
I'm both. That's awesomeness for you.
:P
 
...
 
0
Q: When is C prefered over C++?

Abdelghani Madridista GadiriI want to know in what cases C is preferred over C++11. Are there other languages that might replace C or C++? What do you think of D? I know there are people who love C and hate C++ and vice-versa... I want reasonable answers, NO for racism :)

 
11:32 PM
Oh gawd, 5 language tags.
 
Those are shims
 
@RMartinhoFernandes "NO for racism"?!
 
As in "Vote NO for racism".
 
Ell
oops don't know where that 54 came from
 
11:34 PM
I think he meant "no for language-ism"?
like sex-ism
 
Ell
I dislkike it when people add ism to the of arbitrary words.
 
That's addism-ism.
 
Hater. :-)
 
@Ell Ali Babba only had 50 40 or so (lol). And he saw them coming
Hatism
 
user1174868
11:36 PM
Well apparently you can't input numbers for definitions in scheme
 
I can
 
user1174868
#lang racket
(define (test (a b 2))
(* a b))
 
sbi
@RMartinhoFernandes Damn, I had just dug out the link to the same question on P.SE, when you guys deleted this one.
 
@sbi I didn't.
I just closed.
 
sbi
Well, I just pasted it straight into the question. :-/
Anyway, gotta go to bed now. See you guys tomorrow.
 
user1174868
11:40 PM
I am going to take a break and pound nails into my dick, brb
 
@sbi Have fun.
 
> (define a 2)
> (define b 3)
> (* a b)
6
@Jordan like so?
 
@sehe He's not here right now. He's taking a break to pound some nails into his dick.
 
@JimNorton oh good. What?
 
Also, don't star my posts with bad grammar.
Please :'(
 
11:43 PM
I starred it with exquisite grammar.
 
I hope Jordan is using thin finish nails instead of fat roofing nails....
He is having such a hard time though. Maybe he needs a bullet in the head to relieve him of his misery.
Scheme as a first language... I feel for him.
 
user1174868
I am ready for more punishment
 
:4470339
 
What kind of nails did you use Jordan? Thin finish nails I hope?
 
11:47 PM
Stupid crap quality YouTube videos.
 
YouTube sucks
 
> This "music" is anti american anti capitalist propaganda. If you support this left wing agenda there will be a place for you in hell.
 
Lounge<C++> Where everything sucks!
 
@JimNorton Trying to impersonate Cat?
 
@RMartinhoFernandes Lol yeah..
 
user1174868
11:48 PM
 
room topic changed to Lounge<C++>: Where everything sucks. [brainfuck] [c++] [c++11] [c++-faq]
 
lol
that sucks
 
user1174868
I think the reason this class uses scheme is so you can't cheat on the homework as easily, because everyone hates scheme
 
@Jordan Interesting.
@Jordan I will be honest. I have never heard of scheme.
 
[scheme-sucks]
 
user1174868
11:55 PM
I just won the scheme lottery
 
user1174868
found I website with code on it, in scheme!
 
Ell
@drise a lisp dialect I think
 
user1174868
scheme is what I spent 8 hours a day doing and accomplishing nothing
 
Ell
you aren't accomplishing nothing else you wpuldnt do it
 
@Ell yeah
 
11:58 PM
> Liberals hate free speech and the right to bear arms.
Why am I reading YouTube comments?
 
Ell
I entirely disagree with the right to bear arms
 
Good ole second Amendment.
 
Ell
why on earth would it be legal to have a gun? lest Ye be a farmer ofc
 
Farmers use sickles.
 
@RMartinhoFernandes Your girlfriend said she was bored, and wanted to take things to a new level, so now you're working at a new and more intense level of boredom?
 
11:59 PM
@RMartinhoFernandes you must be bored?
 
@Ell To protect against a tyrannical government of course.
 
Ell
it is completely snd uttery rediculous imho
 
@Ell en.wikipedia.org/wiki/Scheme_(programming_language) "Scheme is a functional programming language and one of the two main dialects of the programming language Lisp. Unlike Common Lisp, the other main dialect..."
 

« first day (633 days earlier)      last day (4315 days later) »