« first day (764 days earlier)      last day (4201 days later) » 

5:00 PM
folks
 
user1804599
folk
 
@Aardvark Hey. Sadly that's not possible, because I just had that one :)
@R.MartinhoFernandes Wouch. That must hurt. I hate it when stuff like that happens. Or when you get the impression all you nice template code works out nicely. Until that shady, but essential, part of your template gets instantiated and turns out to not even compile :)
@R.MartinhoFernandes The blessings of identifier highlighting and Vim completion there. However, when the typo has crept in, it will be too late for most of that, usually :(
@DeadMG Always the patient and friendly guy
@R.MartinhoFernandes You evil robot :)
@StackedCrooked I take it google robots don't frequent your site then :)
 
5:18 PM
@sehe It's been nearly two weeks.
 
Wokay. I'm talking to myself here.
@DeadMG Since you've been friendly? Not surprised :)
Anyways, I'm going to submerge two kids with shampoo. See what happens.
 
@sehe I don't think I've seen them.
 
Laterz
@StackedCrooked Of course. The sign reads "Be evil". It's against their mission statement
 
Ah. Clever thinking :)
Ok system("find / | xargs grep cat"); doesn't crash my system anymore after some serious downscaling of the maximum running time.
 
5:27 PM
And you can prevent compilation by pushing the arrow buttons. It's like a sports.
 
5:38 PM
clis
 
Ell
ah I never know when to forward declare
I have a Map with a Game*, and a Game with a Map*. Which one needs forward declaring?
 
90
Q: When to use forward declaration?

Igor OksI am looking for the definition of when I am allowed to do forward declaration of a class in another class's header file: Am I allowed to do it for a base class, for a class held as a member, for a class passed to member function by reference, etc. ?

 
Ell
Oh my, I am an almighty douche.
I was trying to forward declare like this: class Map {};
 
That's a definition.
 
system("wget -q -O - http://www.stacked-crooked.com/compile --post-data='int main(){}'");
^ Deadlock.
 
Ell
5:49 PM
hmm. std::bad_alloc :(
 
^ This tune reminds me strongly of another anime. But I can't remember which one... Azumanga daioh perhaps.
 
Ell
 
Ah, it's Raspberry Heaven that I was reminded of.
 
Ell
6:06 PM
is it called interpolation when a texture is "smoothed" when resized?
anyone know what to look for to disable this? (to get sharp pixel edges)
 
@Cicada hehe
 
@Ell GL_NEAREST
 
Ell
@Pubby I'm using irrlicht, I mean't just in general really
 
Oh, for some reason I got GL out of that
In computer graphics, texture filtering or texture smoothing is the method used to determine the texture color for a texture mapped pixel, using the colors of nearby texels (pixels of the texture). Mathematically, texture filtering is a type of anti-aliasing, but it filters out high frequencies from the texture fill whereas other AA techniques generally focus on visual edges. Put simply, it allows a texture to be applied at many different shapes, sizes and angles while minimizing blurriness, shimmering and blocking. There are many methods of texture filtering, which make different trade...
 
> c32rtomb translates to the CES used for narrow character in the current C locale isocpp.org/forums/…
 
6:19 PM
I wonder why that wiki page links to Daytona USA
 
This person seems to know what they are talking about, but does not give references :(
 
Ell
@Pubby ahh thank you
 
Down with big brother!
 
I think you're missing the message here.
 
It's obviously fake
 
you're obviously fake.
 
Woa, didn't think the puppy of all people would be the one saying that.
 
6:53 PM
what?
even I have grumpy days on occasion
 
7:04 PM
DeadMG you are obviously fake
 
Your mom is obviously fake.
 
Mom jokes still?
 
i've got no mom
 
7:22 PM
hey i joked xd
 
Ell
HI guise
 
it could start a rocket to ask the moon men to tell it the result of the function call and travel back. — Johannes Schaub - litb 3 mins ago
^^ nice
 
7:45 PM
^^ looks like the bottom of a rocket.'
I just did a google image search for "rocket". Was not disappoint.
 
@JohannesSchaub-litb what are you actually doing education/job wise?
 
user1804599
@StackedCrooked "Web Developer" lol.
 
user1804599
"Inventor of the Web"
 
He developed the web.
 
user1804599
He wrote the first web browser in one of the most horrific programming languages imaginable.
 
Ell
7:53 PM
@Aardvark what was it?
 
user1804599
@Ell Objective-C.
 
Can't object to that.
 
Objective-C isn't horrible, especially not in 1990.
 
There are so many languages.
Most of them unknown.
 
user1804599
Objective-C was especially horrible before Objective-C 3.0.
 
user1804599
7:55 PM
It still sucks, but much less. :P
 
I think it compliments well with C++.
It's very dynamic, whereas C++ is stronger on the static side.
 
user1804599
Objective-C and C++ were invented around the same time.
 
user1804599
The compiler cannot inline Objective-C method calls without solving the halting problem. T_T
 
If you algorithms require inlining then you probably shouldn't write them in ObjC :P
 
@StackedCrooked
Is true that a Objective C compiler can run ordinary C?
 
user1804599
8:00 PM
Depends on the compiler.
 
user1804599
But all C code is valid Objective-C code.
 
Objective-C is backwards compatible with C.
 
user1804599
Objective-C is a strict superset of C.
 
Why is Obj-C only used by apple's Os?
 
8:02 PM
It dates back to NextStep I believe.
 
user1804599
Because Apple took over NeXT and NeXT used Objective-C.
 
user1804599
And nobody else used Objective-C.
 
But Why? Does it have problems or weaknesses?
 
But it's a good question. I don't know any example of where it's used outside of Apple's product line.
 
user1804599
@StackedCrooked GNUstep
 
8:04 PM
@AlbertoBonsanto Not that I know. The thing is that everybody chooses the popular programming languages because it feels like a safe choice. That doesn't mean the less popular languages are bad.
 
I mean if C++ is a superset of C and Obj-C is a superset of C, why isn't common to see some apps wrote in Obj-C for Unix ssytems, windows or any other OS's than Apple's?
 
user1804599
@StackedCrooked No, they choose a language because the other giant companies also use it.
 
user1804599
I.e. C++, C# and Java.
 
@AlbertoBonsanto C++ is not a superset of C.
 
@R.MartinhoFernandes sorry i had a shortcircuit
 
8:05 PM
Now. Don't be such a pedant.
 
@R.MartinhoFernandes People will always believe it, no matter how often we say it's not true :)
 
Ell
I hate the C legacy part of c++!
 
user1804599
C++ is not a superset of C, it is a supersede of C.
 
Maybe C is C++'s tumour.
 
xD tumour?
 
8:06 PM
C++ is super over C.
 
@AlbertoBonsanto Because Objective-C is utterly horrific.
 
@AlbertoBonsanto tumor/tumour/neoplasm same thing
 
user1804599
@DeadMG Implies C++ is not utterly horrific.
 
@Aardvark It at least mostly aims in the right direction
 
@DeadMG yes, i read some code and it's a bit ugly, but i feel the << C++ operators ugly too, so that's not important, the important thing is if that language is powerfull as C++
 
Ell
8:08 PM
hmm. "this.authCode = this.loaderInfo.parameters.authCode;"
 
user1804599
@Ell What language is that? JavaScript?
 
Ell
@Aardvark actionscript - 3 I think
I think parameters are passed in the html, not sure
 
I thought it was Js
 
user1804599
ActionScript is similar to JavaScript.
 
user1804599
Both are dialects of ECMAScript.
 
Ell
8:11 PM
either: <PARAM NAME=FlashVars VALUE="lessonLink=numbops/sumsTo20&authCheck=true&guid={58248288-699F-4AD3-9F8A-EAE3F7745D0D}">
or <param value="authCode=1" name="FlashVars">
 
user1804599
What are you writing and why are you still using Flash? It is almost 2013.
 
Ell
I'm attempting to avoid doing maths homework :L
 
user1804599
How?
 
Ell
mymaths.co.uk uses flash for all of the online homework
 
user1804599
Aah. :P
 
Ell
8:13 PM
you can send your score like this:
`urls = "../../studentRecords/saveDataOH.asp?sCode=" + sCode + "&q1score=" + q1score + "&q2score=" + q2score + "&taskID=" + testID;`
the sCode depends on the authCode, which is the bit I can't figure out
 
@AlbertoBonsanto Never said anything about ugly. I said Objective-C was horrific.
 
user1804599
@Ell Contact the developers of the application?
 
Ell
authCode isn't 1 either. I'm thinking something about authCheck :P
@Aardvark and tell them I decompiled their swf looking for loopholes? :P
 
user1804599
C++ is uglier than Objective-C. IMO
 
user1804599
@Ell why not?
 
8:14 PM
...uhhhh, guys halp, what is going on? :/
 
Ell
@Aardvark never thought of that:L
@melak47 chmod +x nqueens?
then it might recognise it? I don't know :P
 
user1804599
@melak47 invisible characters?
 
Does it have GUI? Obj-C?
 
user1804599
Try typing ./n and hit tab.
 
Hello guys... I don't want to create post for one small question... If anyone know please answer... True or False question: 4log(n^2) is O(logn) --> True... Why?
 
user1804599
8:15 PM
@AlbertoBonsanto not built in. It has no standard library either.
 
user1804599
Well it has the runtime library, and that's all.
 
@Aardvark not it
 
user1804599
But Objective-C is really only used with Cocoa and Cocoa Touch.
 
@Ell also not it :/
 
So i conclude that I will not learn it.
 
user1804599
8:16 PM
Unless you want to do OS X or iOS development there is no reason ever to learn Objective-C.
 
man
 
user1804599
Use something superior like Haskell.
 
the LLVM blog hasn't been updated in 11 months
 
@Aardvark I renamed it, made sure...still won#t work. auto compeltes to the name fine, but still won't work
 
@Aardvark Bloody hell, as if we need more Haskell worshippers ^^
 
8:17 PM
smughaskellweenies
 
Ell
@Aardvark haskell sucks
 
user1804599
@DeadMG Are there more besides @FredOverflow? :P
 
user1804599
@Ell you suck.
 
Everyone here uses Haskell
2
 
Ell
not I :D
 
8:17 PM
@Aardvark Pretty much the whole damn chatroom.
 
user1804599
Oh haha cool. :P
 
Ell
@Aardvark also I like the challenge :P
 
user1804599
You know, D would have been such a nice language if it didn't have all the crap like Object.
 
D would have been a nice language if you scrapped it and started from scratch
 
user1804599
8:21 PM
I might design a Lisp dialect once.
 
@Aardvark I remember they are thinking about removing a lot of crap like Object.equals.
 
Wow you guys are brilliant, i feel stupid next to you, hiding my head under a paper bag!
 
I just implemented lisp in lisp, fully, while i was hopping onto a bus and paying for my bus ticket all at the same time.
 
user1804599
@FredOverflow If that requires thinking I think they are morons.
 
user1804599
Lisp is has a simple syntax.
 
8:23 PM
Lisp has syntax? ;)
 
> The proper way to greet a fellow lisper is just a tiny nod of the chin, and about a tenth of a wink from your left eye, then point at your tin foil hat. They will know what you mean. if they don't know what you mean then they are not a true lisp programmer and they don't matter anyway.
 
Ell
(((((()))))))
 
user1804599
s_expression = atomic_symbol
             / "(" s_expression "."s_expression ")"
             / list
list = "(" s_expression < s_expression > ")"
atomic_symbol = letter atom_part
atom_part = empty / letter atom_part / number atom_part
letter = "a" / "b" / " ..." / "z"
number = "1" / "2" / " ..." / "9"
empty = " "
 
seems like programmers these days are anime lovers, just saying....
 
user1804599
^ Lisp grammar.
 
8:24 PM
> Lisp is so elegant that the very fact that you know even the first thing about it will qualify you for a season as principal dancer of the royal ballet. You will go out on stage in your little tutu and just scribble a few round brackets in the air with your toe. People will gasp in wonder. Unless they don't know any lisp. If they don't know any lisp then they are idiots and they don't matter.
 
@Aardvark What is the . part?
 
Ell
I had a thought the other day, not sure if this is the same as concepts or not, but you could declare a function like:
void do_something(std::string-like duck_typed_variable) {
}
 
user1804599
@FredOverflow I have no idea, I just copied it from somewhere.
 
@FredOverflow The fundamental representation for a cons cell: ( car . cdr )
 
Ell
its basically a template, but when the type doesn't fit the requirements, you know what it needs to look like :3
 
8:25 PM
@AlbertoBonsanto Commit to anime SE on area51?
 
user1804599
Oh . I thought that was for variadic functions.
 
user1804599
But I am not sure, I have never really used Lisp.
 
Ell
@Aardvark what is a variadic function? the ( car . cdr )?
 
> If you're good enough to use lisp, you'll soon be frustrated with lisp. Lisp is not an adequate lisp. By the time my bus had made it two blocks I'd written some simple lisp macros that were so powerful they made lisp completely obsolete and replaced it with a new language. Fortunately, that new language was also called lisp.
> And i was able to prove, mathematically, that the new lisp i'd created was both far superior to lisp in every conceivable way, but also exactly equivalent to lisp in every possible way. I was very excited by this. But also found it very boring.
(I'll stop now)
 
@Aardvark For my sins, I once had the pleasure of writing something like 75-80% of a Lisp implementation (in Turbo Pascal, originally on CP/M, later ported to MS-DOS).
 
user1804599
8:29 PM
I'm going to write a Lisp parser in Haskell. I want to play with Parsec.
 
@Aardvark A Lisp parser is barely enough to get your toe wet...
 
user1804599
But I don't like water.
 
@Pubby WTF
 
what the fuck...
./nqueens
Permission denied
chmod +x nqueens
./nqueens
no such file or directory
 
user1804599
The only things I need are a way of interfacing with C APIs and NAND.
 
8:33 PM
it's there. I can see it. I can right click and "execute", and it will tell me "no such file or directory"
 
@melak47 It's probably missing a library
I forget exactly the reason, but you'll get "no such file or directory" when that happens
 
srsly >_>
if it at least was a "libcrap.a" no such file or directory, it'd make sense :/
 
user1804599
@melak47 use a debugger.
 
user1804599
Debug your shell.
 
err, no thanks
 
user1804599
8:37 PM
Why not? That's about the only way of finding the problem.
 
the problem is a missing lib, that's all I needed to know.
 
user1804599
$ lldb /usr/bin/zsh
 
@melak47 You need ld.so I think
 
@CatPlusPlus yep
 
user1804599
8:38 PM
I accidentally removed libc++ some day.
 
user1804599
I couldn't open any programs anymore, so I had to put the library back using a recovery disk.
 
Ell
`lessonLink=numbops/numberBonds&authCheck=false&guid={50D7AF16-A51C-4E04-89FA-854F0E0B52DA}`
hmmm. what could a guid do?
 
user1804599
GUIDs can identify something.
 
guid do sounds like guido
 
user1804599
from __future__ import guido
 
8:40 PM
@melak47 Sound like some high maintenance queens you got there.
 
Ell
all I can see in the code is that this.authCode = parameters.authCode or whatever it was
this.authCode = this.loaderInfo.parameters.authCode;
 
Getting silver badges is very hard
 
@Ell Eeuw, stateful code..!?
 
user1804599
Is ActionScript a superset of ECMAScript?
 
@Aardvark lololol
 
Ell
8:43 PM
@Aardvark I think so
 
user1804599
Does it have type inference?
 
@StackedCrooked well, there's n of them :p
 
99 problems, among which n bitches.
 
my piece of shit router keeps rebooting every couple of minutes...
 
@AlbertoBonsanto Enthusiast and civic duty are fairly easy to get if you want one
Constituent too
 
Ell
8:47 PM
its strange how in cheatengine you can just arbitrarily change values of random memory adresses
that seems unsafe
 
cheat engine
safe?
 
user1804599
It is unsafe since it has side-effects.
 
@melak47 never heard of cheatengine?
 
@Borgleader I never heard of it being praised for being safe :p
 
it is quite unsafe
 
8:50 PM
Oh
 
but then, who cares? if you crash the game, that's your problem
 
How does cheat engine even work? I thought virtual addressing was supposed to prevent writing to other program's memory.
 
Prevent what?
 
@melak47 I had a similar problem, turns out I was running Ubuntu 64-bit but didn't have 320bit runtime installed.
 
Using system APIs designed for foreign memory inspection to inspect foreign memory?
 
8:51 PM
You can change the values though
 
Hint: it does the same thing debuggers do.
 
Ell
oh wait a sec, I just realised you choose the process
 
Well, maybe not precisely the exact same thing, but same principle.
 
@Borgleader that might actually be it. I'm trying to statically link my program so that our professor might have a chance of running it if he's unable or unwilling to install a recent gcc version
 
user1804599
You can always change the memory of subprocesses, and if the OS doesn't provide APIs for that you can do it how valgrind does it.
 
8:53 PM
Virtual memory isolates processes, but that doesn't prevent the OS to provide checked API to inspect and modify foreign memory
Valgrind can't do anything without OS support.
 
Ell
I need a flash debugger that can attach to an existing process
 
Couldn't valgrind just run the binary in valgrind's own process?
 
What?
 
I dunno
 
user1804599
Valgrind is a JIT-compiler.
 
8:54 PM
How?
 
Magic!
 
user1804599
It compiles machine code to IR, inspects/manipulates it, then compiles it back and runs it.
 
That doesn't give you access to working set.
Okay, instrumenting might.
 
Is the Deitel's book How to program in C++ good? I almost finished the C book
 
Is it on the list? No? It's bad. Yes? It's bad, but less.
 
8:56 PM
1784
Q: The Definitive C++ Book Guide and List

grepsedawkThis question attempts to collect the few pearls among the dozens of bad C++ books that are released every year. Unlike many other programming languages, which are often picked up on the go from tutorials found on the Internet, few are able to quickly pick up C++ without studying a good C++ book...

Check this list.
 
Seems it's bad :(
 
user1804599
The best book to learn C++ is Learn You a Haskell for Great Good.
 
Ell
hah. I crashed flash :L
 
user1804599
What an accomplishment.
 
@Ell Reputation gained: None, flash crashes itself.
:P
 
8:59 PM
If they gave out reputation for flash crashing I'd be higher than Skeet
 
Yes flash is not so good.
 
user1804599
Flash is junk.
 
@Pubby Who's to say Skeet doesn't crash flash more than you do?
 
I don't like to use hard adjectives
 
user1804599
There is no reason to use Flash except for backwards compatibility with terrible web browsers.
 
9:01 PM
how far back can I go with gcc/g++ and still have the -std=c++11 option work? (i.e. if my professor tries to compile it with an older version, and his version still has the c++0x option?)
 
@Borgleader Skeet's programs can't crash
 
@Pubby Oh they don't crash, they crash flash and then recover like a baws.
 
Ell
I want to learn to crack software, it intregues me greatly
 
Adobe simply delegates any of his flash crashes to other users
 
@Ell I don't see what all the fuss is about.
 
9:04 PM
@Borgleader Never been to the movies? Crackers are BAMFs.
 
Ell
@Borgleader its kewl :P
 
@Pubby Oh I have (imdb.com/title/tt0113243)
@Ell I played with the ASM instructions and bypassed the CD-key verification, I'm so awesome!!! sarcasm
 
Ell
I couldn't even do that :P
asm confuses the hell outta me
and then I kicked out for using Ada debugger :L
ida?
 
The days of cracking by changing conditional jumps to conditionless ones are pretty much over.
It's not easy.
 
How multi-threading works?
 
Ell
9:09 PM
@CatPlusPlus I even just want to learn to do that. I tried to crack RPG Maker VX :L
 
@melak47 4.7
 
I take all branches unconditionally.
 
Before that, only c++0x
 
Like a real man.
 
@R.MartinhoFernandes so if my professor has 4.6.something, it'll not even compile :/
 
9:11 PM
@StackedCrooked Like a Bahs!
 
any way to make my makefile use c++0x and c++11 for the appropriate compiler version? :S
 
why not just use c++0x and be done with it?
 
@melak47 Just use c++0x
it works every(sane)where since always.
 
c++0x is a a temporary flag.
 
9:14 PM
It will be long before some people cease to use pre-4.7 for GCC and pre-w/e for Clang.
 
@Griwes oh. I thought that wouldn't work :p
 
It will live for quite some time. And I don't think patches for earlier GCC will change anything in that matter, when you look at how silly reluctant people are when it comes to updating the compiler.
 
@Griwes Given the number of questions still being asked about gcc 2.95 I think that's a safe guess.
 
o.O
 
hm, I tried to statically link all the libs in, but it doesn't seem to have worked completely.
Is there an easy way to enable my program to run without my prof needing to install a new gcc/g++?
 
9:19 PM
testcase
 
@StackedCrooked Temporary my ass. What are the reasons for removing it? To break existing code?
 
I mean that it will become default in the future.
 
Everywhere.
 
The compiler that still makes C89 (well, that thing plus the damn extensions) the default for C?
lol
 
9:22 PM
C++11 is just standard C++ so it doesn't need a special tag. Only now in the transitional phase.
 
@sehe I did it for science!
 
@R.MartinhoFernandes Yes, probably. C99 has never really become the mainstream. It was years before any substantial number of compilers made a serious attempt at implementing it. C++11 is already much more mainstream than C99.
 
Wii U is pretty fun.
 
@Rapptz Gesundheit
 
9:39 PM
OMG. It compiles again!
Now let's break it again.
 

« first day (764 days earlier)      last day (4201 days later) »