« first day (908 days earlier)      last day (4038 days later) » 

11:00 PM
String manipulation hahahahahaa
 
user142019
String manipulation in C is absolutely retarded.
 
@R.MartinhoFernandes stroke a nerve? :))
 
@kaᵠ Compiling (on the basis of lines of source code per second) is generally faster. For decently written code with a reasonably decent compiler in both cases, C++ will usually be at least as fast, and often somewhat faster.
 
best reason I heard all day (trice) and now I really wanna do it :)
 
@JerryCoffin lol
 
user142019
11:01 PM
Man, I love Vimium.
 
@kaᵠ Nope. But string manipulation is funny in C or C++.
 
Huh... what exactly is this question asking? "Work out the first ten digits of the sum of the following one-hundred 50-digit numbers."
 
user142019
@R.MartinhoFernandes you once said that you disliked Ruby's Unicode support. Why, specifically?
 
@Zoidberg Lemme check my notes.
 
@R.MartinhoFernandes oh, you misunderstood, 'nerve' is his special name for penis; he's telling you masturbate
 
11:02 PM
@R.MartinhoFernandes you came the other day in the PHP room for a test in different languages, that was the first sign something's wrong with string in C
 
user142019
PHP and C are both bad at strings, but C is worse.
 
strtok is pretty mediocre
 
@Zoidberg in PHP strings are very easy! really
 
$ irb
irb(main):001:0> "é".upcase
=> "\303\251"
irb(main):002:0> "é"
=> "\303\251"
irb(main):003:0>
 
user142019
@kaᵠ And the function names are also very easy to remember, yes.
 
11:04 PM
@Zoidberg Strike one.
 
Ell
Stroustrup? :P
 
user142019
You get funny output.
 
user142019
irb(main):001:0> "é".upcase
=> "é"
irb(main):002:0> "é"
=> "é"
 
@Zoidberg who cares!!! about that, really !
 
user142019
Heh, but yes, it's wrong indeed.
 
user142019
11:04 PM
@kaᵠ any sane programmer.
 
@Zoidberg I get usable output.
Regexes have no Unicode support, which is a recurring theme.
 
@Zoidberg any sane programmer knows to RTFM, has a decent IDE
 
@ScottW first ten being like, sum%10000000000 ?
 
@Zoidberg what happened to your gravatar?
 
user142019
Oh God why am I arguing with a PHP programmer anyway.
 
11:07 PM
@Zoidberg In regexes \w is always ASCII, even when you use the /u modifier to, supposedly, enable Unicode support.
 
user142019
xD
 
@Zoidberg i learned programming the C way first, went thru asm also, stuck with php in the end
 
Many other regex classes are broken that way.
 
@ScottW So really, the other end of the number?
 
user142019
@kaᵠ Congratulations. You learned three abysmal languages.
 
11:08 PM
Hm...
 
Oh, this guy's been pestering Tomalak as well. Hah, nice, concise fuck offs by @LightnessRacesinOrbit.
 
XNA draw loops came at 0.96, .70, and 0.07...
 
Hm
 
That cannot be right :\
 
Ell
What does regex support actually? More than ASCII I assume
 
11:09 PM
@ScottW I got the right answer
 
Ell
Ignore what I said
 
@Zoidberg ah, and the silliest is that Unicode string escapes are... well \<decimal number here> which is fucking retarded.
 
user142019
@Ell Regex supports Doctors Without Borders.
 
My goodness. 1.8 seconds between draw loops. I cannot imagine what the code would be that causes that.
 
user142019
@R.MartinhoFernandes "\u{1F34C}" works for me.
 
user142019
11:11 PM
irb(main):001:0> "\u{1F34C}"
=> "🍌"
 
Yes. I think at this point, I need to optimize, as testing is pretty difficult otherwise. It is consistent, though.
 
I feel like I did this problem in a terribly wrong way, though
 
@Zoidberg Oh, I guess I missed that bit. Nevermind.
 
user142019
Note that I'm using Ruby 2.0.
 
It's still crappy.
 
user142019
11:12 PM
Maybe it changed.
 
$ python
Python 3.2.3 (default, Mar 25 2013, 20:28:30)
[GCC 4.7.2] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> "\N{LATIN SMALL LETTER E WITH ACUTE}"
'é'
>>>
<3 Python.
 
user142019
lol
 
user142019
> We hope you're ready: the Qualification Round for Google Code Jam 2013 starts in under 24 hours.
 
What? Someone gets Unicode right?
 
I am using python right now! It's counter-intuitively well-made
 
11:14 PM
@EtiennedeMartel Oh, I have notes on Python too, don't worry.
 
So, nobody gets Unicode right.
Well, I now have another attack vector against Wide.
"You better have decent Unicode support!"
 
@EtiennedeMartel "decent Unicode" is an oxymoron.
 
@JerryCoffin So, "have decent support" or "have Unicode support"?
 
user142019
@JerryCoffin you get it wrong.
 
user142019
"Decent" and "Wide" don't go well together in a sentence.
 
user457812
11:17 PM
All wide things are indecent, praise the skinny?
 
user142019
@R.MartinhoFernandes how well does Perl do?
 
Perl has pretty much all the minimum requirements on anything, and more.
 
user142019
Cool.
 
But it's full of gotchas...
 
user142019
Yes, but it's Perl. :P
 
user142019
11:19 PM
> In order to preserve backward compatibility, Perl does not turn on full internal Unicode support unless the pragma use feature 'unicode_strings' is specified. (This is automatically selected if you use use 5.012 or higher.) Failure to do this can trigger unexpected surprises. See The Unicode Bug below.
 
@Zoidberg Yeah, it appears it's new.
 
Ell
Hmm best way to iterate over enum values
 
user142019
@Ell Some do it this way:
 
user142019
enum foo {
    a,
    b,
    c,
    d,

    _n_enumerations
};
 
@EtiennedeMartel I'm saying Unicode is fundamentally indecent, with all manner of cruftiness, largely due to attempting to combine largely conflicting goals.
 
user142019
11:23 PM
It's a hack, but it works if you never set the value of any of the enumerations explicitly.
 
Ell
I want to write enum_iterator now
 
@Zoidberg I don't think so. Based (if nothing else) on the percentage of languages that suck, it's safest to guess that Wide will also suck. In the case of Unicode, however, the chances of it not sucking are precisely zero.
 
user142019
EVERYTHING SUCKS
 
Any GCC expert here?
If I compile with -Wall -Wextra, I get the "missing prototype" errors.
Yet I declare them.
function declared at line:56
then referenced at line:83
(declared = int filesReadDatabase();
referenced = defined
oh sorry it's a Clang message.
gcc compiles it without any error and warning
 
 
11:30 PM
@Shiki Prototype sounds like C. If so, ` int filesReadDatabase();` is a declaration, not a prototype. Change it to: ` int filesReadDatabase(void);`.
 
I love linode. Doubling RAM on all their VPSes.
 
oh
 
@JerryCoffin You're so nice. I was gonna move it to the real room :)
 
well guess I always knew this one wrong... hah!
I thought you just write the functions in a block so the compiler can find them.
 
Hint copying random things from Wikipedia is not a good way to learn a language
 
11:32 PM
oh.. well, this is like.. double weird.
 
Ell
Enum class Type { Major, Minor } vs bool Major. I need to be able to do opposite, bool allows that succinctly with !. I'm not sure
 
@Shiki prototype vs declaration
 
ah no it was a professor years ago Cat. :)
 
@sehe I was being nice again? Darn it. I'll have to work harder on fixing that.
 
@JerryCoffin :)
 
11:33 PM
@JerryCoffin You're ruining our reputation
 
now I modified the FIRST function to > int ....(void);
All the other warnings disappeared.

PANIC
 
@Ell enum foo : bool { x = true, y = false }
 
@Shiki lol. "WARNING: The compiler was unable to find any of your errors"
 
Kinda like that. There was some silly Clang messages too (candidates for "noreturn") and similar. Not too much though. Now there are no errors.
 
It's dead
 
11:35 PM
Time to fix the code so there will be some errors. Logic!
 
@sehe Linode's awesome.
 
@DomagojPandža Yay. Didn't quite get a live migration, but hey, I'm getting a RAM upgrade for free:
 
How is XEN compared to KVM? (I pay 23$ monthly)
 
mathematically speaking, is there a way to find out how many digits are in a number easily?
 
I love when applications put their dialogues in the middle of two-monitor extended desktop
 
Ell
11:37 PM
Logs maybe :3
 
@Shiki I think it's mainly more enterprisey. It (used to) score(s) better on 'bare metal' access. But I think in real life, the quality of the hosting company is far more decisive
 
@Crowz log(N) (using logarithm in the base in which you're going to convert the number -- e.g., log10(N) for decimal).
 
Is there a way to "fix" this?
main.c:52:10: warning: implicit conversion loses integer precision: 'int' to 'char' [-Wconversion]
ch = getchar();
~ ^~~~~~~~~
 
Yes, if you read what it says and get a book on C and stop asking C questions here
 
:(
Stop being racist, Cat.
 
11:39 PM
@CatPlusPlus Or conversely, when Microsoft Visual Studio puts it's solution explorer on the second monitor. Because it was there, last time. But now it isn't. Good luck getting it back into view (Alt-Space, M, cursor keys)
 
@Crowz I remember doing something where I needed the number of digits
 
@Shiki make ch an int
 
I didn't do it "mathematically" though, I just used this
 
@sehe - I read user input in there. Will that work?
 
11:40 PM
@R.MartinhoFernandes It was a VM too :)
My second monitor died. After ~10 years. RIP. I'll need a replacement though, because one screen is... not enough
 
@Shiki Yes. When you read a character in C, it should (nearly) always be into an int, not a char.
 
@Shiki What do you think? getchar() returns an int. Why would that be?
 
'a' is an int.
 
@Rapptz wouch
 
(Why does GCC is silent about this, while Clang cries?)
 
11:41 PM
@sehe :(
 
@Rapptz You could at least had made it a loop :/
 
I actually explicitly didn't want a loop
 
@Rapptz I wonder if it's faster~
 
@Rapptz .... premature
 
@Rapptz Right now I am just practicing python with project Euler.
 
11:42 PM
@Rapptz Ahahaaha
 
Hey hey.
 
@Shiki different warning defaults. Use -Wall -pedantic?
 
Woot, finished all the machinery in the iterators-must-go branch! Now all that's left is getting rid of the fuckers.
 
user142019
 
@sehe No, not really. I was just answering stuff on PE and didn't want to violate the 1 minute rule so I fixed everything I could.
 
user142019
11:43 PM
(Repost, I know.)
 
@R.MartinhoFernandes So it's all Boost.Range ?
 
?
@ThePhD Boost.Range is iterators.
 
i'M ON A NEW KEYBOARD
 
@Rapptz That's basically a loop unrolled binary search (lower_bound) right. I'm pretty sure that the performance should be identical to std::lower_bound on an array.
 
///
 
11:44 PM
The letters are like next to each other
 
I hate this keyboard.
 
@sehe Yeah
 
YOU SHOULD BUY A MECHANICAL ONE
 
@ThePhD It's a carefully guarded secret that Boost.Range is iterators (it's guarded in the documentation)
 
11:44 PM
Or something
 
@Rapptz I'm trying to remember when I did the same trick myself. I did once. I think it was on SO. And it didn't pay
 
There's non-mechanical keyboards?
 
@ThePhD "i'M ON A NEW KEYBOARD" "I hate this keyboard." why do you do this to yourself.
 
It's not my choice. :c
I'm on a different computer now.
I don't get it, though
 
ThePhD is anything ever your choice?!
 
11:46 PM
@CatPlusPlus Can you give me a link to a quality one?
 
Thre's like this giant CLEAVE
In the middle of the keyboard.
 
"I got a new smartphone" "I hate it" "It wasn't my choice though"
 
No letters or numbers or anything
Just a big block of emptiness.
Why?
 
One of those ergonomic ones.
 
Oh gross.
 
11:46 PM
@Rapptz I was forced to get the smart phone. :c
 
Good for your hands, they say.
 
@ScottW I love you <3
 
@R.MartinhoFernandes The microsoft one is meh for me but a lot of people like it.
 
@R.MartinhoFernandes It's bad for my aolready horrible productivity.
@ScottW >333
... GODDAMN THSI KEYBOARD
 
@Rapptz Which one?
 
11:47 PM
I can't even make hearts. D:
 
Ah.
I don't like that.
 
Is the tag any good? I mean, is it a battlefield of SO masturbators?
 
I have this one at work: cdn.pocket-lint.com/images/4TvM/…
Except it has Function keys instead of multimedia crap on the top row.
 
I'm thinking about going after the gold badge.
 
11:49 PM
The bit twiddling hacks suggests a way to get the int log10, given the int log2. It suggests several way to get int log2, mostly involving few compare/branches. (I think you're underestimating the cost of unpredictable branches, Vitali). If you can use inline x86 asm, the BSR instruction will give you the int log2 of a value (i.e. the bit index of a the most significant set bit). It's a bit slow on K8 (10 cycle latency), but fast on Core 2 (2 or 3 cycle latency). Even on K8, may well be faster than the comparisons. — Peter Cordes Dec 6 '09 at 0:08
 
ooh bithacks.
 
@DomagojPandža I got bored of it a while back.
 
@DomagojPandža I wouldn't bother, there are always 3 people always answering it
sfrabbit, drew and Andy I think
 
Back in the day it was me and Xeo and someone else.
Shit, I need to stop using "Back in the day". I don't want to be old.
 
and . The former has no golden residents, the latter only Nicol Bolas and datenwolf.
 
11:52 PM
New frequent tab?
Or have I never noticed it
 
posted on April 11, 2013 by Roberto Sonnino - MSFT

Welcome back to our third and final post on using the Visual Studio 3D Starter Kit! If you read our previous posts in this series (here and here), you’ve got an app that has an animated die, and you’re ready to make the last few changes to get this app to run on Windows RT devices and Windows Phone 8.  If you haven’t read the previous posts, you may want to go throu

 
Oh it's a renamed FAQ
 
@sehe - Managed to fix the "no error" problem. It was an error in the build script I wrote. Anyway. Yay, no errors anymore. And now I know how to use prototypes properly. Thanks for the help!
 
Yeah, that.
> Managed to fix the "no error" problem.
lol
 
@Shiki /cc @JerryCoffin cheers
 
Oh I'm also one of the few people who don't like mechanical keyboards that much.
@R.MartinhoFernandes lol
 
@Rapptz Thank god, someone reasonable in the Lounge.
@DomagojPandža lol looks like a crap tag to lurk.
 
Hey everyone
 
Hi
 
@R.MartinhoFernandes Yeah, I'm looking at it right now. Shitty. :(
The only way to make it interesting would be to blast posts FAQ style. And I'm not into that. Feels weird.
 
11:56 PM
About three questions a day, and the highest voted of all time is...
79
Q: DirectX SDK (June 2010) Installation Problems: Error Code S1023

JamesI seem to be having some problems installing the DirectX SDK. Everything seems to be going well during the install, but at the end I get the message: Setup failed. Errors were encountered during installation of redistributable packages. Please close all open programs and try running setup...

 
At least no one's asking to make a 3D FPS MMORPG
 
I want to make a 3D FPS MMORPG sidescroller with elements of CCGs
 
How can I make a really fast video computer game?
 
@DomagojPandža Don't worry. Most tags are crap these days. And is probably an even worse tag.
gist: “I want it as fast as possible”, 2013-04-11 14:37:07Z
int main() {}
 
I searched for 3d mmorpg and got this
 
user142019
11:57 PM
@Rapptz delvoted
 
user142019
Concatenation of random words is not welcome.
 
@Rapptz lol, "it's a bit to complex" and then "felt like being held back and that too much was already done for you"...
 
> The game is going to be a 3D RPG/MMORPG.
 
Bah, I think I'm going to go inactive again. Most questions look like way too localized problems which just throw up huge log files of errrors.
 
11:59 PM
@R.MartinhoFernandes I wonder how people mess that up.
 
And I almost just answered a question from Nov 24 2012 because I can't search for shit.
 

« first day (908 days earlier)      last day (4038 days later) »