« first day (843 days earlier)      last day (4107 days later) » 

11:00 PM
also
 
You hate Ajax? :O
Why?
 
the preparation one is broken
but if you look at the top, there's breadcrumbs there
because it doesn't work properly with going back and forward and such things.
if you click a link, and then go back, then fuck your javascript state.
 
Right.. yeah that is a problem
That's a good page.. not much navigation needed
 
most of them are like that
I just didn't fix the prep one when I fixed most of the others
 
@doug65536 you have a second?
@LewsTherin i'm sorry for offending you
 
11:03 PM
@DeadMG Looks like a good tutorial to get back into C++. Thanks. Will you keep adding stuff? You can't just stop there :P
 
actually, I have a series on memory due to go up sometime soon.
 
@DeadMG Not true
 
@DeadMG Good stuff.
 
See history.js
 
Hello, are we allowed to ask C++ questions in this chat?
 
11:06 PM
Yeah
 
Ignore Cat++ :P
 
@PatrickNommensen and pel!
perl
 
11:07 PM
Damn, I have to debug my markup PHP style: commenting out chunks to see what makes it crash.
 
user image
7
 
Cute
 
@Rapptz awwww
 
@LewsTherin I know right
 
Cool, well I am working on a function that calculates the # of even numbers between a and b. I'm able to determine whether or not a number is even using if( n % 2==0) ect. However, I'm a bit stuck writing this function...
 
11:09 PM
@PatrickNommensen In pseudocode, it would probably be...
for(i = a; i <= b; ++i) if(i is even) ++n;
(Now, that pseudocode is almost C++, so you can probably do the rest)
 
God damn it! Anybody here ever create an XUL application?
 
yeah that seems incredibly basic.
 
@Chimera I think @StackedCrooked did.
 
@PatrickNommensen define beatwean-it's that eesy
 
inclusive
 
11:11 PM
I once did.
 
@PatrickNommensen Yeah, then my code will work.
 
@EtiennedeMartel Ok. I have a sample "Hello World" but it is not displaying a window or showing any errors. And of course the documentation doesn't really make it clear what the god damned file/directory structure should be
 
cool, thanks -- I have something similar but my primary issue is getting the return value to go back into the main
 
XUL == fucking sucks
 
@Chimera i created some thunderbird extensions. i even wrote about it
 
11:12 PM
@PatrickNommensen With return.
 
yeah, so like return sum; and then I call sum in the main? Because that's not working for me.
 
user142019
Hmm. It seems in C# dereferencing a null pointer is implementation-defined rather than UB.
 
XUL itself is fun. The way you have to register your plugins is very inconvenient though.
 
@PatrickNommensen You have to assign the result to a variable.
 
I offered 500 bounty points for somebody to show me what is required to just show a damn web page using xulrunner... no answers.. wtf
 
11:13 PM
yes DUDE
sorry DUDE
 
yeah, I did that. -- I'll review it again and come back with a specific question....
 
@Zoidberg you get the address when you get an access violation, they special case address==0
 
@Zoidberg Wut. It throws a NullReferenceException.
 
@PatrickNommensen I mean, in main.
 
I wrote a Lecture Capture app in XULRunner.
Also wrote a XUL parser and runner for Windows.
 
11:14 PM
@Zoidberg Microsoft's implementation throws a NullReferenceException. /cc @R.MartinhoFernandes
 
ah, OK -- because I have cout << "There are " << sum << "even numbers between " << a << " and " << b;
 
@PatrickNommensen Yep, you're gonna have to something like int sum = your_function(a, b);
 
user142019
> The effect of applying the unary * operator to a null pointer is implementation-defined. (Section 27.5.1.)
 
@Zoidberg Wait, pointers? Why are you looking at unsafe stuff?
 
11:15 PM
@Zoidberg Oh, wait, a pointer.
 
user142019
2 mins ago, by Zoidberg
Hmm. It seems in C# dereferencing a null pointer is implementation-defined rather than UB.
 
@Zoidberg except in typeid
 
user142019
It says pointer, yes. :P
 
@Cheersandhth.-Alf There's typeid in C#?
 
user142019
@EtiennedeMartel I'm interested in it.
 
11:16 PM
@EtiennedeMartel oh sry didn't notice
 
@EtiennedeMartel Or you can be cleverer and not do it with a loop :v
 
@CatPlusPlus I'm pretty sure the goal of that was to learn about loops and stuff.
 
It's an awful example for looping
 
no difference, if you AV with a null reference or you AV with an unsafe pointer at address 0: same thing
 
@EtiennedeMartel Where's the stuff in your example, then?
 
11:17 PM
@R.MartinhoFernandes The if?
 
@doug65536 You don't AV with a null reference.
 
@R.MartinhoFernandes AV?
 
the hardware catches a page fault that becomes an access violation because there is no memory mapped there. then the exception handler checks the linear address and if it's zero then its nullreferenceexception
 
Access violation.
@doug65536 Not with references.
 
11:18 PM
Also, weapons that explode like grenades on reload in Borderlands are fucking hilarious
 
@doug65536 We're talking about the CLR here.
 
What hardware what are you talking about
 
@EtiennedeMartel yes I know
 
@CatPlusPlus Do you have the achievement for killing a flying monster with a Tediore weapon?
 
@CatPlusPlus MMU - the linear to physical address mapping
 
11:19 PM
Hm.
 
There is no MMU in the CLI.
 
My colleague here tells me that a null reference exception is actually an access violation that gets converted somehow.
 
GC :v
@doug65536 I know what MMU is thanks
 
@EtiennedeMartel Structured Exception Handling.
 
user142019
Heh, in C# T* x, y; makes both x and y pointers. Cool.
 
11:20 PM
There is no SEH in the CLI :(
 
there is in it's implementation
 
@EtiennedeMartel If they do it this way then it's hilariously silly
 
@DeadMG There are many implementations.
 
true.
 
But ~performance~
 
11:20 PM
@CatPlusPlus I think special casing null av is dumb too
 
@R.MartinhoFernandes Oh, I thought we were talking about the only one that matters, i.e. Microsoft's.
 
but it's fairly obvious that he was referring to Microsoft's specific implementation.
 
@EtiennedeMartel Are you living under a rock?
 
Non-nullable references are the way of the future
 
@Zoidberg Really? Nice.
Well it makes sense
 
11:21 PM
@R.MartinhoFernandes Wait, there's what, VC# and Mono?
 
@EtiennedeMartel Yes, and there is more out there than desktops.
 
No code dumps
Nobody cares and it's a bad code anyway
 
@PatrickNommensen try pastebin.com if you want to be polite
 
(Also seriously, it's trivial to do without a loop)
 
@R.MartinhoFernandes I'm pretty sure the biggest use case by far for the C# language is on the CLR, on Windows.
 
11:23 PM
Welcome to the bin, there's lots of shit like this.
 
You just have to think for 5 minutes
 
@EtiennedeMartel Now you are DeadMGing, right?
 
@R.MartinhoFernandes Yes. And I feel ashamed of myself.
 
my question isn't about the code, it's about how to go about bringing it back to main
 
Try FedEx
 
11:24 PM
@PatrickNommensen return.
 
@PatrickNommensen Give a shit: I don't.
 
Would be cool to do without a loop :)
 
try Stack Overflow.
 
I was told we can ask questions here :)
 
By whom
 
11:25 PM
@PatrickNommensen Unfortunately, that isn't exactly true.
 
@PatrickNommensen Not you too..
@CatPlusPlus I did.. my bad.
 
That said, I suggest you get a good book, because what you're asking is beginner stuff.
 
Yeah listening to people who are here like once a year over regulars who are here all day every day makes sense
 
11:26 PM
your very bad
 
@LewsTherin -- oh, I see...
 
@CatPlusPlus It's not like he knew.
 
I have italics
I have the power
OBEY
 
even Pessimistic Puppy agrees with Etienne on this one.
 
11:27 PM
@CatPlusPlus Power? I HAS IT TOO
 
man
the isocpp content has really gone down the shitter.
 
It hasn't really declined.
It's a stable low.
 
@CatPlusPlus I'm kinda here.. I just don't talk.. and he wouldn't know :) C# for me :D
 
@StackedCrooked Very low.
 
The Online C++ compilers post was a rare highlight though.
 
No way the caravan didn't bring a freaking anvil.
Oh, it's at the end.
 
> Bad code ID!
 
perhaps without the suffix, http://liveworkspace.org/code/3fI8zr
no output at the end
curious
oh, i found it!
 
@Cheersandhth.-Alf It's the wrong site.
 
11:33 PM
well i'll try yours also
 
@Cheersandhth.-Alf Yeah, isn't LWS always dead?
 
nothing bad about self-promotion, I guess
 
Semiconductor device fabrication is the process used to create the integrated circuits that are present in everyday electrical and electronic devices. It is a multiple-step sequence of photolithographic and chemical processing steps during which electronic circuits are gradually created on a wafer made of pure semiconducting material. Silicon is almost always used, but various compound semiconductors are used for specialized applications. The entire manufacturing process, from start to packaged chips ready for shipment, takes six to eight weeks and is performed in highly specialized fa...
 
Oh, now I remember: @StackedCrooked, how hard would it be to add gist export?
 
11:33 PM
this shit is crazy
 
@Cheersandhth.-Alf SO's markdown cuts $ off the URL.
 
the amount of steps involved in making an IC
 
@BartekBanachewicz gist? The pastebin for hipsters?
 
is crazy
 
@EtiennedeMartel yea, kind of. However, it is superior, because every gist is a versioned git repo
 
@BartekBanachewicz What is 'gist export'?
@Cheersandhth.-Alf Much better.
 
@StackedCrooked Export the code to gist?
 
@StackedCrooked the button next to "share" that would allow me to copy the code and create gist from it
 
What is gist?
 
makes a bundle of files
 
11:35 PM
@StackedCrooked gist.github.com
 
@BartekBanachewicz Interesting. That could be useful.
 
@StackedCrooked It would be great if you could add it. Just a wish :)
 
i think the ^ program exemplifies problem with online compile-and-run things: can't specify output encoding
 
@Cheersandhth.-Alf Why is that full of replacement characters in the upper half?
@Stacked are you using ASCII or something?
 
If github provides some sort of web api that I can programmatically access.
 
11:37 PM
Shame on you.
 
don't you mean lower half?
 
@Cheersandhth.-Alf Well, it's the upper half of the byte :P
 
@StackedCrooked developer.github.com/v3/gists Also, to get data from it after initial creation you could use regular git.
 
@StackedCrooked It does
 
11:38 PM
@R.MartinhoFernandes Don't know what you mean..
 
What does $ echo $LANG print?
 
@R.MartinhoFernandes nothing
 
@R.MartinhoFernandes Everything
 
It prints an eternity of nothingness.
 
@StackedCrooked $ locale?
 
11:39 PM
LANG=
LC_COLLATE="C"
LC_CTYPE="UTF-8"
LC_MESSAGES="C"
LC_MONETARY="C"
LC_NUMERIC="C"
LC_TIME="C"
LC_ALL=
 
That shouldn't matter, the corruption likely occurs somewhere between reading the output and putting it into the response
 
corruption is a terrible problem
africa has an awful lot of it
 
Assume the output is UTF-8 and decode it that way
 
@NolwennLeGuen At least there's lot's of money in Zimbabwe.
 
AAAAAAAAA TEEBENYAAAA
 
11:41 PM
Though it might even be this way now
 
SHIBAWAMA SUMBA
 
Especially if you just passthrough
 
how do you just passthrough zimbabwe
 
Codes beyond 127 need two-byte encoding
 
And oh, just another thing came to my head : bookmarklet could use minification @StackedCrooked
 
11:42 PM
I'm rambling but it's late and you see what I mean
@BartekBanachewicz Yeah that matters so much
The precious bandwidth that bookmarklet consumes
 
It would speed up the window launching.
 
No it wouldn't
 
It would make it easier to send bookmarklet code to someone
instead of url
 
The gains would be immeasurably!
 
@CatPlusPlus not with windows ansi western, which extends iso latin 1, which was the only standard for html on the web until they started the utf-8 train
 
11:44 PM
Anyway, it's minimal effort-minimal priority
 
I actually stole Google's bookmarklet code and changed the url.
 
@Cheersandhth.-Alf Yeah 8-bit encodings are dead on web
Don't use them
And they should be dead
 
@StackedCrooked You stealing bastard.
 
well no need to reinvent the wheel
 
Death to all 8-bit encodings
 
11:45 PM
he he
 
@Rapptz If I want something I just steal it.
 
Do you steal food too?!?
 
@CatPlusPlus That leaves ASCII! Muahahaha.
 
Yeah, from African children.
 
@R.MartinhoFernandes Better ASCII than thousands of incompatible file formats code pages
 
11:46 PM
@CatPlusPlus 8 bit encodings are better because they take less space
 
3... 2... 1...
 
@BartekBanachewicz They don't.
 
@CatPlusPlus That's right. Six bits should be enough for anybody!
 
11:46 PM
They only give you less data.
@JERRYCOFFIN ALL HAIL OUR NEW ALL UPPERCASE OVERLORDS.
 
There are so many useless unicode characters
 
@JerryCoffin what about people with both uppercase/lowercase keyboards?
 
@Rapptz Insignifcant compared to the useful ones.
 
@R.MartinhoFernandes it's possible that hollerith encoding had some shift in/out thing to allow lowercase
 
11:48 PM
@BartekBanachewicz Six bits is enough for upper and lower case (English only, of course) plus digits, and even a couple of codes left over for punctuation.
 
@JerryCoffin lol, couple
 
Punctuation is for weak
 
3, to be exact
 
No, a couple.
 
... whatever
 
11:49 PM
 
Ell
How does utf-8 know when one coidpoint starts ans another ends?
 
Magic
 
@JerryCoffin Most encodings preferred to sacrifice lowercase for punctuaction, though.
 
@Ell it ends on last byte that doesn't denote continuation. The next starts just after, obviously
 
@Ell You're not supposed to ask that. It's an indecent question man.
 
11:50 PM
@Ell The first bit. If it's zero, it's the beginning of a new code point. If it's one, it's a continuation of a previous code point.
 
But really, read UTF-8 encoding scheme and it's obvious
 
@JerryCoffin Wrong.
 
@R.MartinhoFernandes Well, yes. Most let you pick either upper or lower case, but no both at once.
 
@R.MartinhoFernandes Now don't be so negative.
 
@JerryCoffin Bytes starting with a zero bit encode ASCII, duh.
 
11:51 PM
@R.MartinhoFernandes Shhh...if he asks a silly question here that he can easily look up, and then trusts the answer, he deserves to spend some time wondering what the hell is going on!
 
You evil man
 
Oh btw, Boost.Locale had a security issue with their UTF-8 decoding. Muhahahaha, suckers.
 
damn I always mistake Ell for Luc and vice versa
 
change these goddamn avatars
 
11:52 PM
They're like identical twins, not?
 
Yes it's very easy to mistake those two
 
@CatPlusPlus Thank you. I do try.
 
Luc's name is in italics.
That's how I tell the difference
 
@Rapptz No one reads anything in the Lounge.
 
Or maybe actually read the name
 
11:53 PM
I never mistook @Ell and @LucDanton ...
 
@R.MartinhoFernandes Most of us don't even know how.
 
It's easier to see an italic L than Ell.
 
0
Q: Is this possible to establish a local "cloud computing" network in your home?

user2003564E.g. if you have many computers in your home or your office and commuicated through a wireless router, then is it possible, without losing internet security, to establish your own local "cloud computing" network through MPI? Have anyone done this before? if this is possible, can you give me a ...

 
without losing internet security
 
11:53 PM
HTTP server should do :)
 
@Rapptz They both start with L!
 
@R.MartinhoFernandes he wants internet to be secure
 
@R.MartinhoFernandes "Is it possible to learn Japanese?" - Yes. But we can't give you a 5 min. tutorial.
 
@JerryCoffin I only know how to post
@R.MartinhoFernandes "network"
My enormous cloud content delivery network with ONE COMPUTER
Also I detect changes to SO design
 
@Mysticial One difference is that "learning Japanese" quite clearly describes the goal; "establish a local “cloud computing” network" doesn't.
 
11:56 PM
yeah they redid buttons
 
I love PC games that tell me to not turn off the power when they're saving
 
@CatPlusPlus Straight console port.
 
@CatPlusPlus It's true that you should not turn off power while saving!
 
I also love save slots
WHOLE THREE OF THEM
 
11:59 PM
What game is that?
 
Far Cry 3
 

« first day (843 days earlier)      last day (4107 days later) »