« first day (376 days earlier)      last day (4555 days later) » 

1:00 PM
@sbi Ok, I looked in the storage and I have some spaghetti here as well. I think I could try that tomorrow.
 
Xeo
Nomnom, spaghetti
even better would be lasagne
 
sbi
@RMartinhoFernandes Noodles is as easy as rice. What you eat with them is usually harder.
 
@sbi lazy cooks also skip #5 and use plastic forks, spoons, knives and goblets.
 
sbi
@Benoit That's lazy dishwashers.
 
@sbi Right, what would you suggest?
 
1:04 PM
@RMartinhoFernandes carbonara is dead easy to do with spaghetti
 
i'm sick
 
cooking.stackexchange.com
 
Xeo
Guys, you're making me hungry. Stop that.
 
sbi
@RMartinhoFernandes My kids usually want a sauce I make from mushrooms, ground meat, garlic, tomato paste, and sweet cream. Well, and onions. :-/ You could do this or simplify it by leaving out some ingredients. Only Tomato paste is essential. :)
@Xeo As a real girl you will have chocolate with you wherever you go. So stop complaining and get it out.
 
Xeo
1:08 PM
@sbi Von Knorr Fix gibt's "Waldpilzsuppe", zusammen mit Pfifferlingen und Speck ergibt das 'ne verdammt leckere Soße.
 
sbi
@awoodland Is that you, @Alf?
 
@RMartinhoFernandes You could just use nutmeg, cream and oregano.
 
sbi
@Xeo I never use any of that dried stuff coming in bags.
 
Xeo
@sbi It saves time and is tasty, imho. :)
 
sbi
@Xeo But he wanted to learn how to cook, not how to warm ready-made food.
 
1:11 PM
@sbi Oh, that I can handle fine.
@sbi Ok, that sounds nice. Minus the onions.
 
Xeo
@sbi Well, you can't just warm up that stuff and eat it... It's still cooking in the traditional sense, just using the fix as part of the souce
call it spices. :P
 
sbi
@Benoit Interesting. I like nutmeg. Did you know that, when consumed in liberal doses, nutmeg is considered an aphrodisiac? When consumed in gigantic doses it's an intoxicating drug. (The downside is that those who ever tried that develop a severe aversion against nutmeg. So you have been warned.)
 
Gigantic doses?
5 grams is enough!
 
@sbi Yes I knew.
A whole nutmeg will certainly kill you.
 
sbi
1:14 PM
@RMartinhoFernandes That is gigantic. That stuff is as light as feathers, after all.
 
in Indonesia they make cigarettes with cloves and some with nutmeg I think. As a non-smoker I didn't try.
 
sbi
@Benoit I put half of one at a dish of mashed potatoes I ate with the kids on Sunday. Nobody complained, and they didn't show any extraordinary amount of love for each other either, afterwards. :)
@RMartinhoFernandes Ok, you will need spaghetti, mushrooms, ground meat, tomato paste, sweat cream, and some garlic. It'd be better with onions, but I won't try to persuade you. Plan an hour to be on the safe side. I'll be online from about 9am my time.
But now I need to get going. See you later!
 
@sbi Ok, cool. Thanks!
 
I like to use pomi crushed tomatoes
more flavor and better texture than tomato paste
 
Xeo
1:20 PM
I'm off too, you guys made me hungry. :(
 
/me eats his oatmeal
 
homemade pesto is ok: garlic, fresh basil leaves, olive oil (not too much), pine nuts and pecorino romano
 
@Benoit yup
@Benoit easy to make too
 
so what about a const_iterator is const? The iterator or the object it points to?
 
It's like a T const*.
 
1:25 PM
so T is const here?
 
Yes.
Given const_iterator it; you can do it++, but you can't do *it = foo.
 
right
 
const T* is the same as T const* right?
 
1:26 PM
Ha! Been a while since I won.
 
but T* const is different
 
ok. I have to make sure I understand that right from time to time
 
it's easier to remember if you read it from right to left IMO
 
yeah, that's what I learned from bjrane (sp)
 
1:28 PM
I did wonder where I picked that up
 
I think it is in the "c++ programming language" book
which every c++ programmer should own imo. I wonder if he is going to make one for c++11.
 
@codemaker Yes, comes out next year.
 
meh, I refactor something and it stops working
I can't see what I've done wrong
 
@TonyTheLion Then it's not a refactoring!
By definition a refactoring does not change behaviour!
 
yea I guess, but it shouldn't be
I just moved some code into a function
 
1:31 PM
@RMartinhoFernandes oh snap! It will be epic
 
time to undo one step at a time until it works again :-)
 
and called the function instead
 
@RMartinhoFernandes what is this funny looking .co.uk domain name?! what is a couk?
IKIK
 
Well, I'm in Portugal, so I use the UK Amazon shop.
 
1:32 PM
(IKIK stands for "I kid, I kid")
 
stay away, it's some Ukrainian warez site full viruses! /jk
 
@codemaker const applies to the left. If there is nothing to the left it applies to the right.
 
@RMartinhoFernandes amazon doesn't have a Portuguese shop?
 
@codemaker No.
 
1:34 PM
@RMartinhoFernandes - is that better than the .es or .fr shops?
 
@awoodland Dunno, never tried it.
I get free shipping from .co.uk, so I never bothered.
 
@RMartinhoFernandes cool deal. Is amazon prime available there?
 
What is that?
 
@codemaker - .co.uk has amazon prime
 
it's available in the UK anyway, not sure about shipping to the rest of the EU
 
1:35 PM
@RMartinhoFernandes $80 a year, free two day shipping, streaming movies
 
don't get the streaming movies (or remember how much it costs)
 
wait maybe that read the pointer right to left stuff came from "the design and evolution of c++" book
ahh ok
 
@codemaker Dunno if I'm eligible for that.
Shipping usually takes less than a week, so I don't mind much.
The only requirement is that I place an order of £25 or more, which is not hard.
 
I think they do that in the US for some items for $25 or more. You guys are getting ripped off
 
1:39 PM
well maybe not. Maybe shipping costs more there
 
yeah, a lot of US companies shit the exchange rates
 
@RMartinhoFernandes because $25 < £25.
 
yeah, £1 > $1 at PPP (thanks, Apple)
 
PPP?
 
purchasing power parity ... or the regular exchange rate, pick either one
 
1:40 PM
companies exploit the fact that 1 == 1 and worry about the units later
 
@codemaker In constrast, I regularly find prices are lower.
 
so here is my old code vs my new code, the old code the block moves down when you press the down arrow key (as there's nothing underneath), with the new code, it doesn't move, as overlapped is true for some odd reason. Blocks are exactly the same position. I don't see what's wrong
 
@RMartinhoFernandes ok, so it may balance out in the end
 
Has anyone got a Careers 2.0 invite they could spare for me? :)
 
@codemaker depending on whether Amazon skips your state sales tax
 
1:41 PM
I would like an invite too if possible
 
> You haven’t earned any invitations yet. When you do, you’ll be able to share them via Twitter and Facebook, or email them directly to friends and colleagues.
:(
 
Thanks for checking, @R. Martinho !
If I may ask, how did you get yours?
 
I was on Careers 1.0 and got 2.0 for free when they did the upgrade.
 
@JohnDibling - I don't have any invites, but I loved that joke on your profile
 
Aha! @awoodland: thx :)
 
1:47 PM
hmmm
 
Hmm, if I complete my profile a little more, I get a batch of invites :) Let's see what I can add there.
 
@RMartinhoFernandes - if you happened to have one going spare later... ;)
 
1:59 PM
Ok, I filled it up to 150 completeness. Now I'll wait for the invites.
> Try out some of the features on your profile. Get to 150 completeness, and we’ll grant you a batch of invites.
 
Thanks!
 
I guess no one has any ideas about why my code is failing me
 
When I look at it, I see some immediate differences.
        if (event->key() == Qt::Key_Down)
This is not on the new code.
 
What code?
 
2:11 PM
@TonyTheLion you should do ++v_iter. And your code may not work because in old code you do current_rect_coords.bottom_right_y += 5, whereas in new code you operate on bottom_right_x
 
@RMartinhoFernandes oh lol, that's just common between the two
 
0
Q: Reverse engineering non-executable files

user1016643how can I reverse engineer a file that is not executable, for example a firmware file. Either in Windows or in Linux. Thank you

Lol.
 
Ah.
@CatPlusPlus What?
 
cpx
4
Q: void* with static_cast vs intptr_t with reinterpret_cast

edA-qa mort-ora-yI want to know if there are specific, standards-based differences between two different types of casts of very particular types. In particular, given: type T and a variable T * object is: intptr_t opaque = reinterpret_cast<intptr_t>( object ); T * result = reinterpret_cast<T*>( opaq...

 
Oh, noes, not one of those questions.
 
2:13 PM
The edit that puts "Windows", "Linux" and "firmware" in code blocks is lol, too.
 
@CatPlusPlus WTF?
Silly.
 
@CatPlusPlus and this edit is from a guy that has a good reputation here.
 
that question (if asked a little better) would be a entire book on reverse engineering!
 
@TonyTheLion did you see my suggestion?
 
@codemaker yes thanks, you were right, works now :)
 
2:22 PM
So, copy-paste fail?
 
@RMartinhoFernandes I copy pasted the wrong one. I realized there's more variable's to this code then first anticipated
now I have to figure out how I can get to pick the right variables to change from a struct passed to my function
 
@TonyTheLion also, you don't really need a "sign" param. You could just pass 5 or -5 depending on how you need to move. Maybe I am missing something though.
 
@codemaker but then I do += by default?
and the sign of the number passed will do the magic?
 
x += (-5) is the same as x -= 5. It's not magic.
What have you been smoking?
 
oh, damn, I suck at math :(
 
2:44 PM
lulz
 
lol
 
how's you today?
 
sick again
 
gonna miss some of my final year project deadline
 
2:48 PM
You spent the past week watching Futurama!
 
yeah, I know
let's be completely fair here, it's supposed to be discussed and approved with my supervisor, who takes over a week to reply to e-mails
 
"Let's be completely fair"? Why don't you mention that fact to your supervisor?
 
I'm going to
 
2:51 PM
@DeadMG - did you get to pick the supervisor?
 
@awoodland OMG, Randomo sounds fun!
 
no
 
I swear our ethics panel wouldn't let that through
 
> Results showed that while Quorum users were afforded significantly greater accuracy compared to those using Perl and Randomo, Perl users were unable to write programs more accurately than those using a language designed by chance.
Awesome!
I'm laughing so hard!
 
I'm not convinced that perl wasn't designed by chance in the first place :)
 
2:54 PM
I've only heard bad things about Perl, so I'm not really inclined to go learn it
 
Did they test other languages?
 
so is Perl as bad as Java?
 
@TonyTheLion perl is like a gigantic tool box, enormous
 
oh right
 
@TonyTheLion perl is nothing like java
 
2:55 PM
And the wrenches look like screwdrivers.
And the screwdrivers looks like hammers.
 
tools for what though?
 
tools for everything
 
and everything is a nail
so we only need a hammer
 
@RMartinhoFernandes - that must be the guy that built my flat then
 
and the screwdrivers and the wrenches and the hammers can sometimes be used for the same thing
 
2:55 PM
@TonyTheLion But you only have wrenches and screwdrivers!
 
it seems like fixing randomo so it's the same for every student using it is wrong
it might have been a lucky/unlucky draw on the ASCII they picked for the operators
 
What do you mean?
 
@RMartinhoFernandes did they test with other languages?
 
You're saying that study is unscientific?
@codemaker No, just Perl and the two controls.
 
2:57 PM
so there is a chance that randomo could actually have been largely the same as quorum
 
@awoodland Doesn't look like from the examples.
 
eh. who's dissin' perl?
lol
 
from the examples you can't tell how far it is from worst case though
 
Well, Quorum uses words.
Randomo uses random symbols from the ASCII table.
 
there's a continuum of languages randomo could have been, some of which are probably better/worse than others
 
3:00 PM
ˆ Main {
˜ x \ z(1, 100, 3)
}
ˆ z(@ a % @ b % @ c) | ˜ {
˜ d \ 0.0
˜ e \ 0.0
@ i \ a
# (b - a) {
: i ; c ! 0 {
d \ d + 1
}
, {
e \ e + 1
}
i \ i + 1
}
: d è {
d
}
, {
e
}
}
Whatever, if your language can't do better than one that looks like this, it clearly sucks.
Also, bad PDF screwed the indentation.
If the conclusion is "Perl sucks", it's definitely scientific.
 
frozen bubble is written in perl. It's good for something.
 
Lots of software is written in COBOL. It doesn't change my opinion a bit.
Yay, 5 Careers invites!
Who was it that wanted one?
 
me
@RMartinhoFernandes also @JohnDibling
 
perl isn't for noobs, is what i'm reading out of it
 
@cHao i agree
 
3:07 PM
@cHao Yeah, that's what I should be reading too, but "Perl sucks" has a ring to it :P
 
@cHao it's like a chainsaw attached to a chain. Deadly in the hands of a skilled warrior, deadly in the hands of a noob (to the noob of course).
 
lol
 
@RMartinhoFernandes - I'd take one if you've got one going spare
 
@cHao you could argue that c++ is similar in that respect. I would counter that c++ has better facilities to write more manageable code though.
 
@cHao - I like perl for all the ugly little results processing tasks I have to do
 
3:09 PM
Perl is a waste of time.
Like PHP or countless other failure languages.
 
@awoodland it's good for that. You write it once and then forget about it.
 
Ok, I could ask for people's names and e-mails, or I could post a link for invites here. I'll post the link.
 
@codemaker and less manageable code as well. :)
 
Leave one for @JohnDibling.
 
@cHao yup
 
3:10 PM
templates....my god. i could see some monstrosities evolving from that
lol
 
Templates could use a less arcane syntax, and concepts/typeclasses.
 
and perl isn't a waste of time. it's the "duct tape of the internet" :)
 
It is a waste of time
 
user784668
Oh, Cat Plus Plus!
 
you have some text to parse, some processes to watch, whatever...there's someone who can do it in one line of perl. :)
c++ can't say that.
 
user784668
3:13 PM
Yesterday you said that const const_iterator end = something.end(); for(const_iterator it = something.begin(); it != end; ++it) { /* ... */ } is a micro-optimization, could you explain why?
 
@cHao - with enough , you can do it in one line in C++ :)
 
One-liners are not a good thing.
 
@Fanael what do you expect to gain compared to for(const_iterator it = something.begin(); it != something.end(); ++it) { /* ... */ }?
 
@R. Martinho Fernandes: Thanks!!! I accepted the invite.
 
@RMartinhoFernandes - I got one too, thanks
 
user784668
3:16 PM
@RMartinhoFernandes: if something is a container that doesn't invalidate iterators, and the loop's body contains e.g. inserts, then these are not equivalent.
 
@Fanael Unless that is the case, it's a micro-optimization.
 
@CatPlusPlus not always. but i'd rather write a line or two of perl than compile a c++ app to try and parse a text file.
c++ sucks horribly at text processing.
 
Bah, it's not the Perl, it's the regexes.
 
which just happens to be where perl shines
 
But then, for (auto it = foo.begin(), end = foo.end(); ...)
 
3:17 PM
If you can write it in one line of Perl, I can do it from inside my text editor.
 
yeah, well, perl has regexps built right into the language
 
For some inexplicable reason.
 
user784668
Also, something may not be a standard container, but something else with horrible complexity (e.g. linear) of begin() and end() methods. Is making O(n^2) from what should be O(n) a good thing or what?
 
gcc 4.6.2 released
 
@Fanael Now, you're just creating silly scenarios.
 
user784668
3:20 PM
@CatPlusPlus: then end is not const and the discussion was about const const_iterator.
 
in fact, the most popular flavor of regexps just happens to be PCRE. meaning, perl-compatible regular expressions.
 
user784668
@RMartinhoFernandes: yeah, nitpicking is awesome, isn't it?
 
perl took regexps and kicked 'em up about 3 notches.
 
user784668
@MrAnubis: oh, that's good to know.
 
@Fanael It doesn't need to be.
 
user784668
3:23 PM
If you say so.
 
user784668
But yeah, it doesn't need to.
 
Do you write T const*const all over the place too?
Because it's the same thing (In fact, T const* is a common const_iterator).
 
user784668
@RMartinhoFernandes: nah, who cares about that const? Also who cares about that T? I'm using void* all the time!
 
Witch!
 
> This is my test case (note the WTF comment):
 
user784668
3:25 PM
In fact I'm using just const T*. But sssshhh, it's a secret.
 
@Fanael yeah! void* all the way. I cast every time I need to deref. EVERY. SINGLE. TIME.
 
user784668
@codemaker: use some macros then! Of course I'm talking about non-parenthesized macros, who cares about operator precedence?
 
I use void** and store all the pointers in a global shared singleton mutable array.
4
 
@CatPlusPlus that is all-pro
 
Oh, we apparently had grammars on last paradigms lecture.
 
3:29 PM
@CatPlusPlus Make it a multithreaded app, forget synchronization, and use an arbitrary fixed size for the array.
 
user784668
@CatPlusPlus: I'm currently considering making that pointer table a thread-local, I think I'll have to change them to void***.
 
@Fanael NO! That will avoid precious data race bugs!
 
It's multithreaded and multiprocess, and the array is in shared memory!
 
@Fanael yeah, I have a macro that evaluates to (void*) to help maintain voidness. I named it AWESOME_BLOSSOM_ROCKEM_SOCKEM_VOID. Saves me time.
 
@CatPlusPlus Now you're pushing it. I want to sleep tonight.
 
3:31 PM
And the IPC is implemented with a custom ring 0 driver.
Which modifies that array.
 
user784668
@RMartinhoFernandes: who told you I'm going to actually make it a thread-local?
 
user784668
Only the docs will say so.
 
user784668
WTF? It's a very good code! Too bad the guys behind C# made the pointers an "unsafe" feature, it could be much better with them.
 
ow my head!
 
3:34 PM
I like how it's called SetX when it actually is a getter.
 
I was wondering where did you find "SeX" in there.
 
initcommoncontrolsex
 
google it
 
Do I want to?
Oh.
Makes perfect sense.
> Locale: Provide localization and Unicode handling tools for C++, from Artyom Beilis.
This is in the next Boost release!
I have no idea how much Unicode handling it has.
 
user784668
3:43 PM
@RMartinhoFernandes: it handles the whole Unicode. In compile time, of course.
 
* Correct case conversion, case folding and normalization.
* Collation (sorting), including support for 4 Unicode collation levels.
(...)
* Boundary analysis for characters, words, sentences and line-breaks.
(...)
* Character set conversion.
* Transparent support for 8-bit character sets like Latin1
* Support for char and wchar_t
* Experimental support for C++0x char16_t and char32_t strings and streams.
Sounds neat.
 
Curried function is the one that takes one argument, and returns a function with another, etc., right? I always mix up curried and uncurried. :.
 
It uses ICU, btw.
@CatPlusPlus Uncurried takes pairs/tuples.
 
Xeo
curry?
 
So I didn't mix them up. Okay, good.
 
3:45 PM
@Xeo curry :: ((a, b) -> c) -> (a -> b -> c)
 
user784668
3
Q: What legal code could trigger C4523 "multiple destructors specified" Visual C++ warning?

sharptoothAccording to MSDN, Visual C++ can emit C4523 warning 'class' : multiple destructors specified. How is such situation even possible? I tried the following: class Class { ~Class(); ~Class(int); }; which yields a destructor must have a 'void' parameter list error and C4523 warning and th...

 
user784668
Nice.
 
@RMartinhoFernandes it uses utf8 for char strings in Windows, thus requiring inefficient conversion to/from for every API call. no Windows programmer in his/her right mind would use that monstrosity. it is very sad, how politics (and incompetence) destroy engineering.
 
@AlfPSteinbach It says it has "Support for char and wchar_t". Wouldn't that help?
 
@RMartinhoFernandes no
 
3:48 PM
> Boost Locale fully supports both narrow and wide API. The default character encoding is assumed to be UTF-8 on Windows.
Ah, I see.
 
@Fanael why isn't that an error?
 
user784668
@codemaker: it is.
 
@Fanael oh. He is just calling it a warning.
 
It is a warning.
 
e.g., the example on the homepage won't work if the literal string is replaced with main argument
 
user784668
3:51 PM
It is a warning, but in the only case it can be encountered, the compiler emits an error anyway.
 
@AlfPSteinbach Sorry, what I example? I don't see any.
 
oh sorry, here
 
Fuck, we can't even do text right.
 
user784668
What data structure would you recommend for a string that is built from very small parts (usually 1-4 characters)?
 
A... string?
 
3:59 PM
OMG!
 
an rray
oh, built from? They're called "ropes". I think
 

« first day (376 days earlier)      last day (4555 days later) »