« first day (503 days earlier)      last day (4438 days later) » 

4:00 PM
@kka I'm sorry but 'a reasonable degree of confidence' is incompatible with the assertion 'the authentication problem is solved'.
@kka Hence you agree that authentication is not solved.
Come on, this is crypto 101, not controversial stuff!
 
kka
Ok, I should have used different words: Identifying/validating the public-key author is a solved problem.
 
And in fact this came into the spotlight very recently when whatever CA 'went rogue'.
 
Bob
@LucDanton I mean; If you are talking to me now using the public key to encrypt the content of the messages. Then since you have not gotten the public key by let say VeriSign ( I may be wrong about this) you can't know if the public key is from a pirate...that was the authentication problem wasn't it? So know you encrypt the messages to me with the pirates public key what do that matter? Doesn't the pirate also need to hijack the location where you sends the encrypted message?
 
@Bob The whole point of encryption is that once a message is encrypted (with the intended key) then it doesn't matter if it falls into the wrong hands.
If you have a reliable way to send a message that will not be seen by anyone else other than the intended party, then why do you even need encryption?
 
Bob
hmm, I think you misunderstood the question
What is the need for PKI then
 
4:09 PM
If you trust one or more CAs, then you can obtain public keys.
I.e. instead of authenticating with your intended party you trust the CA to give you his or her key.
 
Bob
Yeah, but you were talking about the man in the middle
 
What about it?
 
Bah.
I am a victim of my own cleverness.
So, I have separated log4cplus loggers into own DLL.
 
Bob
Luc Danton
9510
@Bob Then someone else than who you intended answers and gives you their key. Then any message you encrypt with that key only they can decrypt.
 
I have changed log4cplus user application to create appenders through log4cplus factory.
 
Bob
4:15 PM
Okey, so if you get the public key of a pirate, what then?
 
This means that log4cplus_appenders.dll is never recorded as a dependency of the application. Only log4cplus.dll is.
 
@RMartinhoFernandes I've just peeked at your for(auto&& item: box.open()) { ... trick. My mind is blown!
 
Which means that no appenders ever register in the factory!
 
@Bob Then your intended party can't read your message and the pirate may.
 
How the hell do I force a DLL to be loaded without actually using any symbol from it?
 
Bob
4:16 PM
Yeah, that is my question: how would the pirate get the message...then he also needs to hijack the location where the message is sent
doesn't he?
 
Depends on how the message is sent really. If it's over the Internet, then it's easy to intercept.
 
Bob
Then we agree:) thanks
 
No, with how the Internet works you don't have to be at one end to intercept the message.
 
Bob
yup
I understand now why this is potential unsecure
 
It's true the message has to be fall into the hands of the attacker but that doesn't mean a) it has to be intercepted (what if the message is public?) b) at the end of the route.
A nosy postal worker can tamper with mail well before final delivery, too.
 
4:21 PM
uh, you mean, nosy, right? :P
 
Yeah, they're discrete most of the time. Those are serious charges!
 
Bob
Is the thing in the middle who gives people the right public key called CA?
 
Yes, although I'd say they're more of the start point :)
 
Bob
Thank you for your help. I will go and read some more about digital signature now :)
@LucDanton Btw: you haven't done iOS development? There you need to sign the content. Not sure I understand what the provisioning profile
 
@Bob I have to say I haven't.
 
Bob
4:26 PM
ok
 
I stretched
 
Bob
@LucDanton Is digital signing a way for Apple to check that you have paid the fee? If you possible could know that
 
@Bob No idea. Not familiar with the details.
 
Bob
ok
 
u has like, no idea bruv
 
4:34 PM
lulz
I yawned
 
> The bandwidth available to mobile phones, digital television and other communication technologies could be expanded enormously by exploiting the twistedness as well as wavelength of radio waves. That is the claim being made by a group of scientists in Italy and Sweden, who have shown how a radio beam can be twisted, and the resulting vortex detected with distant antennas.
 
ohh look
a dog pooping
 
@StackedCrooked nice research but his market introduction estimates are a bit unlikely :)
 
> Conceivably, he says, this could allow small toxic or radioactive objects to be handled remotely.
TRACTOR BEAM ONLINE
 
anyone having trouble getting at the fftw souce for win32?
 
4:47 PM
@TonyTheLion No, it's a bird looking for food.
 
@CheersandhthAlf I prefer to think of it as grass eagerly growing.
 
@L7ColWinters I get a 550 error here, so yes
 
damn
thx tho
 
4:51 PM
0
A: c++ gui programming resources

Cheers and hth. - Alf Are there any ways of creating windows/buttons in c++ that doesn't require me to use something like QT or type up a page of code to create an empty window? I have looked on google and EVERYTHING is about QT creator. Any help would be great. For an easier way into Windows API level GUI progra...

^ I just answered a question.
 
@StackedCrooked My Master thesis is on spiralling electron waves btw.
Anyone figure out where Microsoft put their free MSVC11 compilers? Can I get them without a VS express/Ultimate/... installation?
 
kka
No.
 
every version is free whilst it's still in development
 
kka
but you can get the VC Express..
and just use the compiler
without the IDE
 
@rubenvb The only one I know is the MSVC11 preview. IDK is the beta out yet?
 
4:55 PM
@L7ColWinters just download the unix source and use that?
@CheersandhthAlf yeah the beta is out: they removed the Windows SDK Compilers and they moved the directX SDK into the Windows SDK
Now I wonder if VS express includes a x64 compiler
 
Can I get the beta for free?
 
yes
 
The b*st*r*s evidently decided to not award me MVP, anyway I haven't heard more
 
google-fu
 
4:57 PM
Oh thanks!
 
@CheersandhthAlf Mitral Valve Prolapse?
 
@CheersandhthAlf Didn't know you were up for being MVP
 
Most Valued Professional
 
@rubenvb Microsoft Valued Professional, I think.
 
ah, that was on the top of the acronym list, but it wasn't very funny :)
 
4:58 PM
@DeadMG Someone nominated me. Then someone at Microsoft sent me a form that I should fill out in Word. Written in Word version that I don't have.
 
I also downloaded the free-for-personal-use Intel Compiler suite thing for Linux.
I'm such a freeloader these days
 
those motherfuckers don't ship a free-for-personal-use for Windows
 
What's the "product layout file" download?
 
@DeadMG idd, that sucks balls. There's unfortunately no way to hack the Linux version into creating MinGW/GCC object files that are actually useful :(
My Core i5 is turbo-ing four threads on two cores at 2.8GHz. I thought turbo mode only worked on less-than-full-load loads?
 
the CPU's definition of "full load" is different to "cannot go any faster"
it may well have free SSE or FPU cycles available, but no more integers, for example
 
5:03 PM
I really thought it was temperature/TDP related. Guess not. More GHz for me :)
now 4 threads MSVC and 4 threads MinGW-w64 LLVM build. Gogogogogo
And then I had the idea to set up a ramdisk with Imdisk and let that be used as %APPDATA%/../Local
I am formatting RAM as NTFS. Kewl.
 
Does anyone have any ideas why a char* would return null when I use stringWithUTF8String
Wrong channel nvm
 
why thank you, Visual Studio, for warning me that using std::copy with a bunch of raw pointers is a bad idea
 
@DeadMG isn't there a /DSHUTTHEFUCKUP switch for that?
 
I thought VS11 supported enum classes?
@rubenvb Yes, and I turned it on locally in that file
 
@DeadMG they should have scoped enums, without the forward declaration IIRC.
 
5:14 PM
soon it will warn if you're using C++ or C languages. "C++ has been deprecated. For better safety, use C# alternative provided with this Visual Studio installation".
 
Why doesn't this ideone.com/q57bo work?
 
they have scoped enums as an extension since forever
I want to restrict the non-scoped behaviour, not have both
@mantler Because you took a concrete type as the first parameter. You need a template template.
 
It is a sign of the times that Petzold is rewriting "Programming Windows" with C# as programming language.
 
@DeadMG Aha, ok.
 
A sign of the times in Windows-land.
 
5:16 PM
well, let's face it
who the fuck wants to use the Windows API?
 
Damn. GCC isn't listening to my TMPDIR environment variable
bastards
 
Metro was practically invented because the WinAPI sucks
not, of course, that Metro is actually a significant improvement, but hey...
 
I guess I'm the oddball here for not hating the Windows API.
I guess I just like to wrap stuff.
 
How can I link %APPDATA%/../local/temp to say.. `R:`?
 
it's not that I mind wrapping stuff, per se
it's more that I hate having to wrap the same old shit again and again
 
5:18 PM
@rubenvb subst?
 
@rubenvb subst
@DeadMG so, previous wrappers were not good enough?
 
23
Q: How to make SUBST mapping persistent across reboots?

rickDoes Windows (XP or later) have a built-in way to create persitent drive mappings, like the ones SUBST creates? I found a 3rd party tool psubst. Is there a way to do it without 3rd party tools?

 
find me a file wrapper that uses unique_ptr and move semantics and we'll talk
 
@CheersandhthAlf invalid parameter error
 
@StackedCrooked you can use a logon script, i think
 
5:19 PM
@CheersandhthAlf Wrap them :p
 
I think subst is only cosmetic. I need some sort of symlink that doesn't require Windows superpowers
 
@rubenvb you have to provide a valid parameter.
 
@StackedCrooked your helpful comment is helpful.
 
Symbolic links are possible on NTFS.
 
@StackedCrooked without mucho admin power crap?
 
5:21 PM
@DeadMG Thank you.
 
AFAIK no.
 
@DeadMG Worked fine with template template.
 
Where does MSVC put its temporary files? I can't seem to find them anywhere?
 
fucking everywhere
 
5:23 PM
@DeadMG i'm only talking about cl.exe and link.exe. The IDE has always disappointed me.
 
@rubenvb try switching the parameters
 
@StackedCrooked That's been there a long time (like Clang 2.8 times)
 
Just discovered it now.
 
@DeadMG I thought there was no difference between template<typename> and template<class>. But this ideone.com/LdJVm shows me there is a difference.
 
@CheersandhthAlf nope, same error, just prints the other parameter. I'll see if I can get mklink working.
 
5:24 PM
@DeadMG The second one works.
 
pushd WHERE
subst r: .
popd
 
@mantler There isn't. But there is a difference when template templates are concerned.
 
@DeadMG Ok. That explains that then. Thank you.,
 
a regular template parameter is identical, but a template template can only be class
MSVC, however, accepts both, of course :P
 
@CheersandhthAlf nope. I think R: can't exist when you do that. In my case, it's a 1GB RAM disk.
 
5:26 PM
@rubenvb oh, you meant to map a directory to an existing drive letter? I don't think that can be done. I think you have to remove that drive letter first. But you can place a link to the directory within the existing drive. Except that mklink does not cut it here, because it will be a cross-drive link.
 
@CheersandhthAlf really? Crap me silly. Windows is a bitch.
I just don't want to crap my SSD with compiler's temp files :(
 
Actually, I just tried that in MSVC and only class works.
MSVC 11 Beta
 
IT COMPILES! mwaahahaha
 
OK, GCC uses TEMP or TMP on Windows instead of TMPDIR. I got it to use the RAM disk. Now I need to get cl.exe and link.exe to do the same
 
@rubenvb You can make a pseudo directory that goes to a drive letter. I just don't remember the command support for that. Googling.
 
5:33 PM
@CheersandhthAlf don't, please, found a better workaround
It seems VS also respects TEMP or TMP (I forgot to set it)
I must be pushing RAM memory speed limits now
I didn't know it was this easy XD to set up a RAM disk as temporary storage...
DAMNS. VS is a liar
 
so what's new?
 
and this website is also a liar: codewrecks.com/blog/index.php/2009/08/31/…
 
anyone here knows git ?
 
@IgorKonoplyanko me!
 
how could i push my master to remote rep to new specific branch ?
 
5:36 PM
@IgorKonoplyanko a little
 
@rubenvb Buy SSD -> profit :P
 
@DeadMG have SSD -> Don't want to wreck it in half a year -> RAM Disk!
 
lol
 
@IgorKonoplyanko see this
 
the trouble is that on remote repository is circa 1Gb commit and I can't fetch and merge. but i need to push it to remote )
thats epic
 
5:37 PM
@IgorKonoplyanko you mean git branch -b new_branch and then git push origin new_branch?
 
wtf
doesn't shared_ptr<T> construct from shared_ptr<U> if U : T?
 
@DeadMG dereference?
 
nope
 
@rubenvb I'll try this
 
of course
 
sbi
5:40 PM
The good news: There will be a new version of Nicolai Josuttis's std lib book. The bad news: he isn't using C++ anymore, hadn't followed the C++11 standardization process, and started to learn about the changes only a few years ago in order to meet the demand to update his book. :( Read for yourself..
 
it might help if I include the header where U : T is defined :P
 
has anyone here ever felt the need of an explicit constructor?
 
ok, now enable_shared_from_this is kind of irritating me
it returns a shared_ptr<const T> for the const overload
 
@IntermediateHacker Most of my unary, valued constructor are explicit.
 
whyyyyyyyy :(
 
5:42 PM
@DeadMG Because const T {}; would be a time-bomb :p
 
heh
const, you are so irritating and so totally not worth my time
 
sbi
@IntermediateHacker Any ctor that can be invoked with only one argument (note: that includes ctors with more arguments where default arguments allow invoking them with only one) should be explicit. I understand that it would be very annoying if std::string::string(const char) would be explicit. I don't think I have seen any other convincing example for an exception to that rule.
 
@sbi doesn't have to be that bad? Maybe he won't bother with all the murky design details and get to the core of the intended usage anyways?
 
guys, thanks for help! problem resolved
 
@IgorKonoplyanko did my trickery work?
 
sbi
5:44 PM
@rubenvb Maybe. Or maybe not. His book used to be a great book. Now I am not sure the next edition will be. That uncertainty alone is bad enough to be moaned about.
 
@rubenvb sorry, some dis-info there. mklink does apparently support cross-system links.
[D:\dev\test]
> mklink /d x c:\temp
Cannot create a file when that file already exists.

[D:\dev\test]
> mklink /d baluba c:\temp
symbolic link created for baluba <<===>> c:\temp

[D:\dev\test]
> cd baluba
 
@CheersandhthAlf you meant mklink, not subst. It would have sucked a lot if it didn't, IMHO.
 
@rubenvb yes, and i'm so used to arbitrary mind-numbing restrictions that i almost didn't think twice
 
There's even a WDK RAM Disk example: msdn.microsoft.com/en-us/library/windows/hardware/…
Environment variables FTW!
 
Hi. I've been trying to optimize a function, kind of as an exercise. I was constructing subvectors of a vector, and passing them to a subfunction (slices of the vector, if you will). I thought that passing the entire vector to the subfunction as a reference and letting it take the bits it needed would be faster, but in fact it seems slightly slower. And after passing the whole function down as a reference the call graph is dominated by memmove, which apparently does copying.
 
5:49 PM
@FaheemMitha If we don't see the source code, how could we possibly comment?
2
 
So, I'm puzzled. Does a const reference involve a lot of copying in practice?
 
No.
 
2 mins ago, by DeadMG
@FaheemMitha If we don't see the source code, how could we possibly comment?
 
@FaheemMitha none, you have made a mistake. If it's dominated by memmove, then your code does not do as you described
 
A reference is usually very small.
And so is a const reference.
 
5:55 PM
Ok.
@DeadMG : The code is quite complicated. I could try to pare it down.
 
Post it on ideone.com if it's more than a few lines.
 
@FaheemMitha paring it down (A) helps you find the problem (B) helps us show you the problem
 
yay! I managed to simplify my interface quite considerably
 
@MooingDuck : Sure, but in that case, I might as post on that Stackoverflow site I heard about. :-)
 
@DeadMG nice.
 
6:00 PM
@FaheemMitha that would be step 2 yes. But I think the creation of a SSCCE would show your problem, so it wouldn't get all the way to SO
 
While it is not that important in this case, it might be an instructive learning exercise.
@MooingDuck : I'll try to make an example.
What is a reasonable cutoff for lines of code for an example?
 
depends on how complex the example is
 
@DeadMG : Hmm, Ok.
The problem is that it uses some third party and not very standard libraries. Would the example need to be compilable/runnable?
 
@FaheemMitha generally one hundred. If it's super complex, two-hundred
:2819592 the one with the broken link?
 
:2819592 nothing compared to this girl.
4
 
6:05 PM
@daknøk lol, stupidy doesn't have a cure.
 
... wow
 
@IntermediateHacker so that's why we're all still writing C++ code?
 
@daknøk lol.
 
@daknøk Hey, I'm just taking a break! :(
 
@daknøk I hope that's some form of sarcasm.
 
6:08 PM
Ok, never mind. I guess it does need to be compilable.
 
3 hours ago, by IntermediateHacker
you know, I've just realized..... I've spent the entire day writing complex combinations of words & characters to create a specific sequence of coloured pixels on a screen. I feel so useless. -_-
 
@IntermediateHacker : It's a hard, cruel world.
 
Anyone here work with WPF?
 
@robjb I worked with it for ten minutes and I'll never do that again.
 
@MooingDuck Ok, I think I can get in under the wire here. :-)
 
6:10 PM
@daknøk Really? I quite like it vs WinForms
 
I like Cocoa and HTML5 more than both.
 
Heh
I refuse to pay for an SDK
 
@robjb pay?
 
^ That's the million dollar question. :D
 
6:12 PM
@daknøk Last I checked the Apple SDK was something like $99
 
@IntermediateHacker no, why is "stupid" spelled with a capital letter? That's the million dollar question.
 
That might have been the mobile SDK though :/
 
@robjb the Apple Developer Program is $99 (needed if you want your ~crap~ software in the App Store). The SDK is free of charge. :P
 
Ohh. Well isn't the developer program required to release your apps to their market?
Ah.
 
You can release it on your website if you want, or on GitHub, or wherever else.
 
6:13 PM
Meh. I'll stick with Android if I want to develop something mobile.
 
I was talking about the desktop Cocoa, not Cocoa Touch.
In the case of the iPhone you do need it in the App Store to release it, ignoring jailbreaked (jailbroken?) devices.
 
ObjectiveC ? throw bad_language() : program();
2
 
I feel the need to write more C++ code.
 
jailbroken
 
I feel the need to stop right about now
 
6:20 PM
Is it possible to link a c file and c++ file?
 
@Pubby yes
 
@Pubby even Delphi and C++ files
 
I mean like gcc foo.c && g++ foo.cpp && gcc foo.o bar.o
 
Link using g++. (i.e. g++ foo.o bar.o)
 
Linking with gcc won't work?
 
6:22 PM
g++ links to the C++ standard library. gcc doesn't, for as far as I know.
 
GCC ALL THE THINGS
 
clang ftw
 
You can link any object files recognised by the linker.
 
^ that
 
LINK ALL THE THINGS
 
6:23 PM
Fortran and C are interlinked often.
C and C++.
 
I'm still getting link errors. Where do I do the -l stuff?
 
When linking.
Duh.
 
Yeah, but it's still not working
 
@Pubby -l in the final linkage (after the second && in your example)
 
@Pubby what are the command lines you are using? and what is "not working?"
 
6:25 PM
Use a build system, will ya.
 
shell scripts!
 
And I don't mean hand-written makefiles by that.
 
g++ mod1.cpp && gambitc -obj mod2.scm && g++ mod1.o mod2.o -lgambc
 
And errors?
 
undefined references to the lgambc stuff
 
6:26 PM
Can the linker find libgambc(.so|.dylib)?
 
Try g++ mod1.o -lgambc mod2.o
 
I think so
 
If it's somewhere in a directory your linker can't find add -L/the/directory/
 
@CatPlusPlus Still not working
@daknøk I'm actually doing that, left it out for clarity
 
That was unclear to me. (:
 
6:27 PM
Heh, sorry
 
Does gambitc do name mangling?
 
I don't think so
I think I need to do some gambit link thing, let me try that
(gambit has a -link option)
 
Is libgambc a static library or a dynamic one?
 
Dunno, although it linked last week (without C++ stuff)
 
Now you know why I rant about C++ tools so often.
 
6:33 PM
Could you add the -v flag and post all the output on ideone?
Linker errors suck.
 
Linkers suck.
4
 
somebody got experience here with tbb?
 
@bamboon You mean the Intel thing?
 
@daknøk yeap
 
I haven't got any experience with it. Perhaps @DeadMG has. :trollface:
 
6:40 PM
I've got some experience with PPL, a sister library
none with TBB itself, though
 
have you ever used parallel_for_each? I tried it with some lambdas and found that is drastically slower than the std::for_each
I thought about cache problems?
 
sample code or gtfo
2
 
brb
 
@DeadMG of this type pastebin.com/bjxjKNZs
 
back
 
6:50 PM
ok
what does your benchmarking code look like?
 
Oh God what's wrong with me?
 
ineffective brain, small reproductive organs, no useful skills?
or was that supposed to be a rhetorical question?
 
The latter.
 
kek
 
@DeadMG All, except for the 2nd one.
 
6:51 PM
But the former was also true, AFAIK.
 
well
 
1
Q: Best Way To Work With FileSystems?

IntermediateHackerWhat's the best way to work with file systems in C? There is of course dirent.h , but from what I've heard it isn't completely guaranteed to be available on all platforms and compilers, for example the Microsoft Visual C++ compiler, for one, doesn't support it. For now, the best thing I've se...

 
@DeadMG well my benchmarking didn't look like anything, it was just the comparison of std::for_each(...) vs parallel_for_each(...) and wondering why the latter took way longer to calculate
 
you should never ask that question, because I'm sure that I could create some rather amazingly creative and belittling descriptions of an imaginary person
 
Ok, I figured it out. I needed to do a gambit link step and the exported C++ files need to have extern "C".
 
6:52 PM
@bamboon Well, you could have accidentally done something stupid, like included text I/O in the output time, or not properly reset the time, etc
 
@DeadMG ah ok, no didn't do anything like that
 
show me or gtfo
 
@DeadMG can't show you because there is no more than what I posted
 
there's no timing code in what I saw
therefore you can't possibly have used it to benchmark
 
I have a benchmark that shows weird results, but I won't show you the code.
 
6:55 PM
I want to see a complete reproduction of the entire benchmark code, timing, output of the results, implementation of the computation function, everything
exactly as you ran it
 
@DeadMG Fuck C fan-boys who deliberately name their variables class etc. in their libraries to make using them with C++ impossible. That answer your question ?
 
aaah, I just called someone's answer an "irrelevance"
makes me teh happies! :)
 
@IntermediateHacker #define class fuck_c_fanboys #include "header" #undef class?
 
@IntermediateHacker one of my homies keeps saying to me that C++ sucks compared to C and that it's overly complicated and stuff. :P
 
6:57 PM
@daknøk All you have to do is show an example of non-trivial error handling, and it becomes instantaneously obvious that C is problematically overcomplicated
 
@DeadMG will do :)
 
@DeadMG awesome. but will it really work?
 
I'll show to him something RAIIey with exceptions.
 
@IntermediateHacker You'd have to insert the replacement into all TUs that use the variable in question.
 
I always loved C, until I saw std::string with == comparison. That was the moment I started learning C++.
 
6:58 PM
oh, yeah, that's another good one
 
@DeadMG that complicates things a bit.
 
Always better than if (!strcmp(a, b)) which doesn't make sense at all because of the boolean negation.
 
C's "PLEASE LEAK MY MEMORIES, OVERFLOW MY BUFFERS, AND WHERE DOES THE NULL TERMINATOR GO AGAIN?" string handling is so flawed, it's hilarious
2
@IntermediateHacker If you're dealing with a pre-compiled library, then you don't even have to do that.
 

« first day (503 days earlier)      last day (4438 days later) »