« first day (1232 days earlier)      last day (3713 days later) » 

12:01 AM
: D
 
Most cars use Keeloq. [I believe] they've updated it since, but a few years ago I did some looking, and their (supposedly highly secret) private key was pretty easy to find on the Internet. A friend and I figured out a way at the time that could break it after capturing two transmissions from your key fob to the car.
 
;0 interesting!
 
@JerryCoffin key fob?
 
@Borgleader The keyless entry thing for the car. Sometimes done as part of a key, other times as a separate "thing" that goes on your keychain.
 
12:11 AM
@JerryCoffin Oh, thanks /cc @BartoszKP
 
@Borgleader A great many.
 
@Borgleader I think 3 or 4.
 
I think 1e5298342934
 
That's a very precise number. You seem to have internal knowledge :P
Alright, time for Kill la Kill.
 
I have much internal and external knowledge
(not sure if relevant though) ;0
 
12:24 AM
And for anyone who doesn't have 10k:
 
@Mysticial Heh, I flagged someone's comment as rude in that question.
 
love that answer
it's straight to the point.
 
I wonder though...
what if it was taken to code golf
 
@AlexM. ahahaha DO IT DO IT
 
I'm sure someone could come up with a clever way of trying to get a particular function called w/o explicitly calling it
 
12:28 AM
this meme is bad and i should feel bad
but i dont care!
 
@Mysticial I would but I'm still trying to confirm it wouldn't be stupid even there
 
@AlexM. If you define a set of rules for it, I think it might work.
 
well I could go with something like
 
my friend said "it's possible just do asm { jmp %address% }"
lol
 
void the_function(void)
{
	printf("Hi there!\n");
}


int main(int argc, char** argv)
{
        the_function(); //NO! Bad! Don't do it like this.
	return 0;
}
basically, find a clever way to get the_function to execute w/o calling it
@Rapptz yeah but that's sort of how you call "methods" in assembly anyway afaik
I'll try to come up with the question
 
12:42 AM
@Milhous Are you saying a != b != c won't work, but a ^ b ^ c will? In that case, you are wrong. — FredOverflow 1 min ago
Is it retarded to comment on a five year old comment?
 
0
Q: Call a method without calling it

Alex M.Inspired by a now deleted StackOverflow question. Can you come up with a way to get a particular method executed, without explicitly calling it? The more indirect it is, the better. Here's what I mean, exactly: //Call this. void the_function(void) { printf("Hi there!\n"); } int main(int arg...

I have no idea if there's a template for code golf or w/e, first time I post there
 
@AlexM. Don't forget to link the deleted question. Even though not everybody can see it. Adding the screenshot would also work.
 
How do these guys get jobs writing C code? This alarmingly doesn't appear to be a student.
@GeorgeNewton The argument passed to malloc is the size. Your responsibility is to save that information. No, the system will not otherwise give it back to you, at least without platform-specific tricks. — Potatoswatter 1 min ago
 
added the screenshot
 
@FredOverflow But… he's wrong!
 
12:46 AM
@AlexM. I'm thinking C# event handlers would probably count.
 
in any case, I mentioned "The more indirect it is, the better" so event handlers would still be pretty direct
should I have mentioned that interaction with the OS is also allowed
 
Java/C# finalizers maybe?
 
also
could someone please downvote him?
I don't have 125 rep on code golf :(
 
@Borgleader: Imagine you have two trains, A and B, on the same track. A is in front of B and goes twice as fast. If A ever rear-ends B, then the track must contain a circle somewhere that allowed A to get behind B; conversely, if the track contains a circle then A and B cannot traverse the circle forever without a collision because A is moving twice as fast as B. Therefore this mechanism will always determine if a track contains a cycle. The same is true of linked lists. — Eric Lippert 1 min ago
 
12:49 AM
Eric Lippert addressed me :O
 
@AlexM. Have the preprocessor insert it into a quine, which saves it to a text file, then use system to compile and execute it.
 
@Borgleader That guy is awesome.
 
@Mysticial Youre just saying that because his example has trains in it :P
 
@Borgleader lol no. It actually didn't even cross my mind.
But now that you mentioned it...
 
@DeadMG only one issue with that
you have to call the original method
"Call a method without calling it" implies that you have to execute the original method
yours would have been a valid answer to "Get the result of calling a method without calling it"
@Potatoswatter that actually sounds interesting
 
1:01 AM
0
A: Call a method without calling it

FredOverflowWell, how is malware able to execute functions that aren't called in the code? By overflowing buffers! #include <stdio.h> void the_function() { puts("How did I get here?"); } int main() { void (*temp[1])(); // This is an array of 1 function pointer temp[3] = &the_function; ...

@Mysticial The idea is well-known, though.
 
Here on this site you need to specify an objective winning criterion to decide the winner of the challenge. I would recommend you to tag this as a popularity contest, meaning that the answer with the most upvotes will be accepted. — ace 13 mins ago
@AlexM. So I win 0 : -1!
:-D
 
so far it seems so
 
Oh wait, now my answer even has 1 upvote.
It would have been way more funny to win with 0 votes :)
 
the first thing that came to mind was something along the lines of overriding the return address when getting ready to leave another method
so yours is close enough to my idea
 
1:09 AM
Sure, it's easy to claim that in hindsight ;)
just kidding
 
heh :D
I wonder if there's some rule for the duration of contests on codegolf, should read about it
if not, I'll leave it till tomorrow
@Mysticial you've got a fan here
+10471 ... nice — qwr 1 min ago
 
Sorry guys. It seems Google Forms doesn't want to show the fucking entries in the results.
 
lol
 
@AlexM. That's for real. Look at the screenshot. (Perhaps he avoids clicking the live rep indicator.)
 
I'll see if I can fix it later. Jet was Jefffrey's entry, btw.
Actually you can see them on the wiki. They're in the same order there
 
1:15 AM
@Potatoswatter I haven't clicked on it since Winter Bash.
 
why am I so bad at programming?
 
Because you lack the passion and discipline?
 
American Hustle is a nice movie.
 
well that's true
 
Well, why are you into programming?
 
1:16 AM
money.
 
@R.MartinhoFernandes Yes. But, they took some liberties with the true story. For example the real-life mayor was completely corrupt.
 
+10471 ... nice — qwr 6 mins ago
+10741 I can't stop to laugh with this. — Victor 1 min ago
??
 
lol... Maybe I should start cutting that out of my screenshots.
 
@Potatoswatter well, it makes the movie better, I think.
 
@R.MartinhoFernandes Yeah, I'm just making a jab at New Jersey :)
 
1:18 AM
god damnit, instead of actually writing confusing code everyone is talking about Mysticial's rep lol
 
I'll tell everyone half of it will go to the winner
 
I was googling why my thing only goes up to 125% now :v
I just liked my old 200% slider
even if I never put it over like 125%
> I'm not condescending, but answering (on my free time, should I mention that) hundreds of support question takes a lot of time. So answers are short. Deal with it.
lol this reminds me of @LightnessRacesinOrbit
10
Q: Reverse a String in Java

Jane FosterHere is the code for the CString class that I created. public class CString { public String reverse(String s) { char[] array = new char[s.length()]; array = s.toCharArray(); for(int i=0; i<array.length/2; i++) { char tmp = array[i]; array[i] =...

people prefix their classes with C in Java?
 
@Rapptz Yeah, they have the same condescending tone :)
 
1:33 AM
@FredOverflow I see you really want to win :D
 
@AlexM. Three answers should be more than enough.
 
haha, the C++ one seems to be the most interesting if you ask me
 
But if I can think of another way, I'll post a fourth answer :)
 
@Rapptz If they're insane enough to write Java voluntarily, why would "C" as a prefix on their classes be surprising?
 
I mean, String is taken... but I don't know...
 
1:34 AM
@Rapptz Probably a former C with classes programmer.
 
@Rapptz \o/
That does sound like me
@Rapptz means "Class"
 
Yeah I know but everything in Java is inside a class.
Pretty redundant
 
I totally agree
./CMyProgram
 
SGU plays off the "welp, no, he didn't actually die" trope waaaaaaaaaaaaaaaaaaaaay too often.
 
1:41 AM
Really?
 
wow thief has some craaaaazy graphics
 
Every other episode depicts some important character dying but not.
 
@R.MartinhoFernandes One of my least favourite tropes
 
"Oh, it was a dream" "Oh, I planned to kill him and then do CPR" "Oh, he was abandoned to die but he was rescued by hostile aliens"
It's all over the place.
 
@Rapptz What about C for classes and E for enums? ;)
 
1:46 AM
I doubt anyone but Haskell programmers will say that their code is pointless and be proud of it. — eBusiness Mar 18 '11 at 1:12
 
((.) . (,)) The "weird left nipple operator"
 
@eBusiness "point free" is not at all the same as "pointless". — FredOverflow 33 secs ago
 
@FredOverflow It's an oft repeated joke.
 
party pooper
 
now i'm imagining someone pooping at a party
 
1:51 AM
0
A: Call a method without calling it

grcimport sys def the_function(*void): print 'Hi there!' sys.setprofile(the_function) This sets the_function as the profiling function, causing it to be executed on each function call and return. >>> sys.setprofile(the_function) Hi there! >>> print 'Hello there!' Hi there! Hi there! Hi ther...

a non C answer! :D
 
@AlexM. lol
 
huh, interesting
41
A: How do I find the longest palindrome in a string?

grcPython def longest_palindrome(s): return 'racecar' Example usage: >>> print longest_palindrome('I like racecars!') racecar Note: this may only work for certain strings.

lol
 
@Rapptz lol
 
Oh, it's him again.
 
dat finger
I wanted to validate it.. but when I saw it staring at me I just couldnt.
 
2:08 AM
Look. Morons. If you don't like someone, plonk them. End of.
enough of the whining
 
chrome is eating up 1.3+GB per tab on SE again
what sort of black magic does the SE use on its websites
 
JavaScript
 
yeah good point
they're probably not using enough jQuery
I mean wth jQuery even has that DontCauseMemoryLeaks() thing
 
2:23 AM
Chrome will do that? I only used JavaScript for mobile (read: embedded) programming, and iOS limits you to 8 MB. JavaScript does not elegantly handle out of memory conditions, so you learn to be careful.
Hmm, that might apply only to the Webkit UI widget though, not the browser app.
 
this was some time ago
 
So the "sandboxing" strategy actually turns into something like a fork bomb. LOL
It could be counting shared memory in that count, but SO doesn't seem to do anything suspicious like plugins along those lines.
 
In function âint main()â:
cc1plus: warning: dereferencing pointer â<anonymous>â does break strict-aliasing rules
cc1plus: warning: dereferencing pointer â<anonymous>â does break strict-aliasing rules
cc1plus: warning: dereferencing pointer â<anonymous>â does break strict-aliasing rules
cc1plus: warning: dereferencing pointer â<anonymous>â does break strict-aliasing rules
/usr/local/include/boost/optional/optional.hpp:423: note: initialized from here
seriously; how the fuck am I supposed to debug this?
main doesn't do anything except instantiate four simple objects. whatever's wrong is deep inside them. I don't use boost.optional anywhere
-.-
 
Check Boost discussion forums.
 
2:29 AM
:/ sorry. You must be using something that uses optional
 
2:41 AM
@LightnessRacesinOrbit your code was so UB that it caused weird characters in the compiler output?
 
@StackedCrooked :/
@Potatoswatter not directly
 
Bjarne Stroupstrup has a comment in his FAQ: "Like all powerful techniques they [Template metaprogramming] are easily overused" Don't get me wrong, I love template metaprogramming. But it must be used with common sense. Its only an advise, not a critic about your code. — Manu343726 Aug 8 '13 at 8:27
I don't get this stuff
:v not even relevant
this noise irks me
 
"This isn't a critique, so if you make a rebuttal, you must be hypersensitive." BS.
Hmm, nobody posted the correct answer, which is to put the SFINAE into the noexcept specifier.
 
doxygen is fucking up my thing hardcore
I wish I had a way to hide the template parameters
 
user3010322
Stop using doxygen. :D
 
2:49 AM
too late
 
You need to use a not yet existing library... RapptzThemDocs
 
so as I've just found out, there is no way to do what I want
god damn it
 
@LightnessRacesinOrbit ???
 
@Borgleader looks like I'm running into a compiler bug
 
2:53 AM
This is exactly why I stay away from template metaprogramming in C++. It's ridiculous. — You Aug 8 '10 at 17:17
See there it is again
no one asked for your rhetoric damn it
 
Actually, an old boost.optional behaviour that triggers excessive warnings (groups.google.com/forum/#!topic/boost-developers-archive/…)
from within boost.unordered_map, it seems
 
I wanna be done with school :\
 
well it's a few weeks old but it's new to me :P
 
3:09 AM
lol.. I lol'd reading it. Especially when I saw: markZuckerberg.length()-massOfTheSunCantChooseUsernames 9 mins ago
 
lol, the call a function without calling a function question is on the hot questions list.
 
apparently they've had the qch thing for a long time!
but it's news to me still
 
@herohuyongtao: You're introducing confusion. First of all, a literal is never a std::string. Even if it were, by symmetry, since you're talking about sizeof everywhere else here, the answer is definitely not 1. If you are talking about std::string::size(), I think you should make that very clear. — Lightness Races in Orbit 15 secs ago
good night
 
@Rapptz Nice! Thanks for sharing.
 
I tried to use it but it crashes on me :<
 
3:23 AM
Some Qt docs are hard to set-up, let's see this if it works with the new version.
 
it doesn't work very well (if at all)
shame!
would have been cool
 
3:38 AM
I guess @Jefffrey's logo won. Congrats!
Though too bad I can't see them in the result page.
 
woooooooooo i reached 8k rep
 
@Borgleader Congrats! Why don't we get ahead of @Rapptz for 9k. :P
 
Not sure I can pull that off =/
Rapptz has an innate gift for getting tons of rep on his answers
 
@FredOverflow lol
 
3:47 AM
@FredOverflow Screenshot plox D:
 
Feed us hungry-for-rep men!
 
Oh hey.
I'm 1200 rep away from 10k
that's like 6 days of rep whoring
 
Fred's comment at the bottom.
> You have a getter called listInfo and a setter called getInfo? Seriously? – FredOverflow 3 mins ago
 
@Mysticial lol. Even your green rep thingy is bigger than my whole rep.
 
@MarkGarcia T_T same here
 
3:49 AM
do not fret children
that's SE wide!
and over like, months :P
 
not one person said they liked me the most in the Lounge. twats
 
@Mysticial Also, an array of Product* of length 20? Ouch.
 
@Rapptz ಠ_ಠ
 
also
0
Q: Drag and Drop into TPanel

user3366292It seems it is possible to create a drag and drop for a TPanel in C++ builder. However, I can't get it working. When the user drags a file into a TPanel, I want to extract its filename. But right now, I'm getting the following error: "E2316 'Drop' is not a member of 'TMessage'". This is right be...

What the hell is C++ Builder?
 
@LightnessRacesinOrbit There's one that rhymes with your name:
> randomness and trolling the noobs
And perhaps your character. :P
 
3:51 AM
@Rapptz Borland?
 
@LightnessRacesinOrbit Where can I see the results?
 
> In April 2013, "C++ Builder XE4" was released, which included a 64-bit Windows compiler based on Clang 3.1. The 32-bit compiler is still based on Embarcadero's older technology.
 
3:52 AM
@FredOverflow There is a panel to the right-hand side of this conversation stream, known as the star list. In the star list, you will find not only funny quotes, but useful pieces of information that are pinned to the top, for easy access.
2
 
lol
 
this C++ Builder thing does not seem as ancient as it sounds
 
it's not
the problem is not in the toolchain; it's in the teaching habits of those who tend to encourage its use
 
@Rapptz __fastcall for ultimate performance!
 
3:54 AM
I mean, it's not Embarcadero's fault that 95% of their customer base writes #include "iostream.h" and #include "conio.h" at the top of their code files before even beginning to think about what's going to be in their program. Or about, y'know, anything.
 
lol it's proprietary
 
Why's that "lol"? Are you an OS zealot?
 
Totally.
 
Seems everyone wants something for nothing these days
 
That's why I'm using Windows!
 
3:55 AM
@Rapptz Ooh, thanks for the info. I was trying to research recent compiler project abandonments but didn't catch that.
 
Bet you pirated it
 
I think that brings the number of currently maintained C++ implementations to 6.
 
Actually it came with this computer
 
@Rapptz What, along with My Cute Photo Scrapbooker?
 
@Potatoswatter Except for C, that may be the most number of implementations for a language.
 
3:58 AM
Oh, Windows. Not C++ Builder.
 
I'd probably switch to debian if I wanted to.
 
@MarkGarcia Python also has lots of implementations. And JavaScript. Probably more JVMs although I don't know how many remain maintained.
C is hands-down the most implemented language though.
 
@LightnessRacesinOrbit The thought of someone paying for something called C++ Builder (which uses open source compilers and a UI frontend) is pretty funny.
 
@Potatoswatter Python has multiple implementations? TIL.
 
Yes
 
Forth might be the second-most implemented language. There's an intrinsic bonus from addressing the fragmented embedded market.
 
> So we made the decision to use Clang and LLVM on the C++ side, for the 64-bit compiler. We’re going to keep our existing compiler for 32-bit Windows for now, and then eventually replace that.
RIP
 
4:17 AM
lol
> Be nice
> Trolls will be persecuted.
 
Comments can't contain "What have you tried?" but can contain "What have you attempted?"
fuck the rules :P
 
Oh shit, Russia invaded Ukraine. This does not bode well.
 
WTF?
 
morning
 
> “I look back wistfully at the Cold War,” Inhofe said Thursday at a breakfast meeting with reporters. “There were two superpowers, they knew what we had, we knew what they had, mutually assured destruction meant something. It doesn’t mean anything anymore. Now we have these people who are not rational, not logical, they’re nuts.”
Hmm, the US conservative leaders would have the country prepare for total war against Russia, and hand Ukraine back just for the sake of a kind of superpower honor code.
 
4:31 AM
@Potatoswatter No. Everything stops before "and".
 
5:08 AM
wutttttttttttttttttttttttt looks like matlab on steroids
 
somebody got time this weekend? I've got an elder scrolls online beta weekend key I can share
@ScottW ask him if he's got one and if he doesn't he can have mine
 
@Borgleader I linked this a few days ago.
It's just Mathematica
 
@Rapptz Oh, I didn't see it. I'm having my mind blown right now.
 
It has a kitchen sink full o' operations, and that interactive command-driven interface makes a good demo, but is it really a good source code editor?
 
5:17 AM
@ScarletAmaranth I know a guy who interned on that.
 
well, I have no use for it, downloading 20gibs to play over one weekend and then never touching it again - meh :)
 
A "language" is a system for developing programs that can be deployed… not just seeing the result of one operation at a time.
 
@Borgleader this shit is scary /cc @Rapptz
 
it already exists
come on guys
:(
Outside of "The Cloud™" you can do most/all of it in Mathematica 9.
 
fuck I'm quitting C++ and just roll with Mathematica ^^
 
5:21 AM
@Rapptz I've never used that :(
DONT JUDGE ME!
 
By calling the new version of Mathematica a "language" without making it so, they've basically reduced their credibility in the arena, or the likelihood of developing a turnkey system that could compete where Matlab still dominates.
 
I'm just surprised Wolfram's marketing works so well
66
Q: Why do loot drops contain (mostly) useless items?

tieTYTI was thinking about this and couldn't figure this out. In Diablo you kill enemies and they drop random things. But usually the drops are worthless to you relative to what you already have equipped. Why bother building a drop system that gives you crappy drops? Maybe I'm not communicating my ...

 
> At the age of 12, he wrote a dictionary on physics,[25] and soon by ages 13 and 14 he wrote three books on particle physics.[26][27][28] They were not published.
What a dick.
 
Yeah if you actually read about Wolfram you'll notice he's a selfish, arrogant, and narcissistic dick.
 
@Rapptz Why does that remind me of Linus?
 
5:26 AM
He's worse than Linus
 
His product should be renamed to Hype Machine.
 
Linus kind of had fame thrust upon him. His dickery is just a lack of coping with having hit the jackpot… a bit like John Carmack. But he doesn't actively play God (at least outside the domain of his own real authority).
 
@MarkGarcia I can't see how his product isn't awesome :)
 
@Potatoswatter Carmack isnt a dick though AFAICT
 
Depends on perspective. I'm not really familiar with him or Linus TBH, but I think folks just take Carmack with a bigger grain of salt because of his subject matter.
 
@ScarletAmaranth It maybe is, but it's better that you should read this: venturebeat.com/2013/11/29/…
 
"In 2002 Stephen Wolfram released A New Kind of Science and immediately unleashed a firestorm of wonder, controversy, and criticism" — well, mainly criticism :D
 
class A * A;
Huh, never knew you could do that.
 
how?
this is sort of how linked lists work
 
I think he means the name collision.
 
5:43 AM
Oh right
 
rofl, I clicked on the learning center and I can't seem to easily access something like: where do I type the code ^^
 
What learning center?
 
@ScarletAmaranth Like I said, there isn't a language there, unless they forgot to put something in the demo. The command prompt is all there is. Good luck maintaining any conceptual development.
 
the mathematica 9 you linked :)
 
It's a great programming tool if you have the attention span of Stephen Wolfram. :D
 
5:45 AM
@Potatoswatter that's not true
@ScarletAmaranth you know Mathematica costs money right?
 
@chris Even class A A.
 
@Rapptz unless you uh... acquire it by shady means
 
@Rapptz I was expecting a big: "buy now" button
 
@Rapptz Last I used it, you could save your session as a notebook. I forget if you're allowed to edit it later, or if you can only copy-paste commands back to the prompt at the bottom.
 
@MarkGarcia Mine works on its own: coliru.stacked-crooked.com/a/2ebdbf1f62be423d
 
5:46 AM
@Potatoswatter like R
 
I found it while reading part of the standard. Yay for reading random sections.
 
@Potatoswatter Sorta. It still has that dumb notebook interface but going to Other you will find Text File available for you to mess with.
 
dayum, I found it, noice
 
It declares A as a new incomplete type, then redefines A to be a variable of type pointer to that. The original can still be accessed via class A.
 
@chris Nice. Class declaration and pointer instantiation in one statement.
 
5:48 AM
@Rapptz What happens when you export those shiny interactive symbolic representations to a text file? I'm not saying there isn't a language there to invent, but if they did the necessary work it would show up in the demo.
 
anyway Mathematica Language, as I'll call it, just formalises it so you can mess with it like a real language I hope.
 
I feel like answering this but I'm gonna get mega downvoted if I do.
 
@chris I also never knew you could do that.
 
@MarkGarcia Took me a little bit to figure out A wasn't a type after that. I started off thinking A was just the type OldA *.
 
you'll see him mess with large texts here
very.... briefly
 
5:50 AM
@Borgleader Largely optimization dependent, I think.
 
How many minutes in? I already watched most of it.
 
10 minutes
 
@MarkGarcia I was gonna write "You can think of it as a const pointer without the annoying *&" but compilers are allowed to and will directly replace the reference by the original variable if they can. So I'm not gonna write that.
 
@Borgleader that guy has no idea, he says: " p can only point to an address of integer variable." durr
 
@ScarletAmaranth Though, he's also correct if your concern is type safety.
 
5:53 AM
@MarkGarcia sure, but it's Stack-Pedantry
 
@Rapptz Hmm, I'm not sure that part is new either. Anyway, it's definitely fun to play with. I don't want to disparage the product so much, only the hype-robot who tries to take too much credit for it.
 
I feel like your title pretty much answers your question. — Borgleader 6 secs ago
 
@Borgleader <that burn image of yours> !!!
 
@Borgleader Yes!
 
5:57 AM
this kelso: google.sk/…
 
@ScarletAmaranth I'm sorry but Micheal Kelso, best Kelso
 

« first day (1232 days earlier)      last day (3713 days later) »