« first day (858 days earlier)      last day (4083 days later) » 

9:00 AM
@FredOverflow mine was a bit costlier
 
@GamErix : Cya! :D
 
@BartekBanachewicz well, you have listed three tools that I use, and thrown 'integrated' in front of them. My tools are eqaully 'integrated' by the OS. So again, what does an IDE offer you?
 
@thecoshman no, they aren't integrated by any means. Also, your debugger sucks.
 
Xeo
Question: Who in here, that uses VS, uses the tab-groups feature?
 
@thecoshman I have been meaning to replace my monitor with a bigger one, but I cannot bring it over my heart (?) to buy a new one while the old one still works. Sucker's been running fine since 2006.
@BartekBanachewicz Can you suggest one? I am looking for the perfect model :)
 
9:01 AM
@thecoshman shall we say something more than meh?
 
Xeo
@FredOverflow Buy the new one and put it on as an extra screen!
 
@FredOverflow sure! Dell U2412m. Perfect quality/price ratio
 
@BartekBanachewicz In one sentence, why is it perfect?
 
Xeo
Ugh, Dell. :/
 
@BartekBanachewicz only difference being I run a command, you press a button (a button that I to could have I really wanted it).
 
9:02 AM
@FredOverflow It's a $300 24" IPS screen with usb hub, pivot, great stand (very high), surprisingly good colors and many ports.
 
Hm, 4.5 stars on amazon and only €250... does it have VGA? :)
 
@TonyTheLion sure thing honey
 
@FredOverflow Did I mention it's 16:10 , 1920x1200? Uhh why would you want to plug VGA? but yes
@thecoshman and your debugger sucks
 
My motherboard has native VGA. I don't use it, but should my graphics card die on a Sunday...
 
it has DisplayPort, VGA and DVI
 
9:03 AM
So no HDMI. Can monitors even have that? :)
 
if you are willing to spend a bit more, get U2410
why should it have hdmi? Adapters to DVI are cheap.
 
@thecoshman so what you doing today?
 
also, displayport is superior to hdmi
@thecoshman and no, you couldn't have, because when you run an IDE on linux, you've already lost.
 
@BartekBanachewicz Hm, has quite many bad reviews on amazon due to red/green problems or whatnot.
I guess I will never be able to decide on a new monitor :(
 
Xeo
@FredOverflow I have the same problem, but with Headset and HDDs. :|
 
9:06 AM
@BartekBanachewicz well, I tend to rely on well placed logs more then debugging, and have yet to really do serious debugging work with out an IDE. But from what I have been told, the debugging tools you can run on linux are very good
 
@FredOverflow There's an unlikely chance you might get a faulty one, but then just return it
 
@BartekBanachewicz (hint, you don't need need an IDE to have a button)
@TonyTheLion in theory, shitty work. you?
 
@thecoshman "I tend to rely on well placed logs more then debugging" - that's because you have no debugger, maybe?
I've heard this countless times
"I just put a shitload of logs/msgboxes"
It's so stupid it makes me wanna cry
@thecoshman wow, button. You know, VS has more than one.
 
Hokay, flattened my build stuff to be less COPYTHESHITOUTOFEVERYTHING
So now it only copies the specific required dependencies... good, saves some space.
 
Wait, you can get 24" monitors starting at €135? Wow, times have changed.
 
9:11 AM
@BartekBanachewicz perhaps you lack of logs is not a problem. But think about when you are giving your program out. If you get a wild bug, you are going to wish you had logs saying what was going on, so you can just take a copy of those, look through them and see 'oh yes, of course if this edge case comes in, we need to do it this way'
 
@thecoshman work. It's got better my job has, after 5.5 months of persistent bitching at HR and every management person in my dept I got what I want.
 
@thecoshman I am not saying you shouldn't log.
I am just saying that shitload of logs isn't a substitute for a debugger.
Can your log change the value of variable during execution?
Or can you change the code and recompile on-the-fly, preserving data in memory?
 
@TonyTheLion lucky fuck :P
@TonyTheLion so what are you going?
 
@thecoshman writing code, adding features to our software.
 
My screen is just 1366 by 768
 
9:25 AM
I forgot my headphones
meh, that really sucks ass
 
user142019
> The operation was cancelled by the user.
 
user142019
What fucking idiot makes the program show that dialog box.
 
user142019
Those people must be skewered.
 
user142019
I KNOW RIGHT I JUST CLICKED "CANCEL" I'M NOT A FUCKING IDIOT
 
Guys, for the vector.at() function, do you still need to give an unsigned int as input
 
user142019
9:27 AM
Also MS SQL is a nightmare.
 
@GamesBrainiac it takes size_type, so use that and you don't have to worry about signed or unsigned
 
@TonyTheLion : I can see that. But what does that mean. In this example here: cplusplus.com/reference/vector/vector/at
it uses unsigned
 
it means that you treat it as it's own type
 
and do not worry about it's underlying type
because that could change, and being dependent on it, is silly
 
9:29 AM
so i just go for (size_type i = 0;
and I'll be fine/
 
normally it`s unsigned int
yes
 
holy crap
no book told me that
do i need to declare size_type as a template
or will it just work?
 
no
9
A: size_t vs container::size_type

TimW size_t is defined as the type used for the size of an object and is platform dependent container::size_type is the type that is used for the number of elements in the container and is container dependent All std containers use size_t as the size_type but other library vendors choose a type th...

 
that is awesome
 
you should use std::size_t
 
9:33 AM
@TonyTheLion : Thanks man! :D
 
@GamesBrainiac example
-1
Q: Link between Earth and Mars

Sukirna RoyI am trying to the calculate the link budget for link between a ground station on Earth( with a particular latitude and longitude ) and a rover on Mars, at a particular location on the surface of Mars, either directly or through a satellite on Mars. Now, if I need to determine the link availabil...

lol
 
lmao
@TonyTheLion : Don't see anything tony
just a blank place
 
Are there still any errors on this answer? I got a downvote…
0
A: boost shared_from_this and multiple inheritance

PotatoswatterA shared_ptr is an observer to an invisible container object. The container is always on the heap, never on the stack, and you can't get direct handle on it. Although shared_ptr and weak_ptr provides the only means of observation, there is still a concrete object which owns the object. The syste...

 
hmmm why couldn't you create a class called time in C++?
 
user142019
using time = long long int;
 
user142019
9:42 AM
Because Unix timestamps is the only valid way to represent time.
 
user142019
All other ways lead to terrible nightmares and tears.
 
user142019
Also UTC.
 
here is an example
 
@TonyTheLion It could shadow with ::time() with #include <time.h>. You could still declare it, though.
 
@TonyTheLion : That makes no sense, the example that is
 
9:45 AM
@GamesBrainiac it shows the errors you get when creating a time class
 
oh, i see
 
Don't use the global namespace.
 
@R.MartinhoFernandes : Was that directed at me?
 
At everyone.
The global namespace is hopeless. Don't use it.
 
user142019
Visual Studio's autoformatting makes me lazy. I want it in Vim.
 
it shouldn't exist
BUT OMG WE HAVE TO BE BACKWARD COMPATIBLE WITH C
 
@R.MartinhoFernandes: you mean using namespace std?
 
@Zoidberg =iB, [[V}=, qqj and :%!astyle -ajUx
 
@GamesBrainiac no, he means global namespace
 
oh, ok
 
9:49 AM
@Zoidberg Visual studio is making you lazy: you have to wait all the time
 
gloabl::
 
?! that's C#
 
user142019
@sehe does that also do things like reformat on } and such?
 
@GamesBrainiac no. ::
 
user142019
@sehe not for me; it's fast as hell.
 
9:50 AM
using namespace std; carries many of the same problems.
 
@Zoidberg astyle is pretty neat
@sehe for me it's fast
 
@R.MartinhoFernandes: Care to explain?
 
user142019
For example, if I type this:
 
@Zoidberg Yup. Though not where you expect. Do :he } to see what motions there are, and which I used
 
@GamesBrainiac Have you seen the example Tony posted above?
 
9:51 AM
hey, is anyone here familiar with the SFML licence?
 
@Zoidberg Which OS/version?
 
user142019
if(x==0){foo();
}
// becomes this:
if (x == 0) {
    foo();
}
 
@BartekBanachewicz SoFuckMyLife :)
 
user142019
@sehe Windows 8, Visual Studio 2012 Professional.
 
yes, @R.MartinhoFernandes I have. What about it?
 
9:51 AM
It doesn't work because of an accidental name collision. Namespaces exist to avoid name collisions. using namespace exists to defeat namespaces.
 
@sehe : Is that a class I see? :P
 
@Zoidberg Or even if (x==0) foo(); becomes the same
 
user142019
@sehe eww :c
 
@sehe OHNOES IT HAS ITS OWN STRING CLASS OHNOES IT MUST BE TERRIBLE
 
i see
 
9:52 AM
@Zoidberg you can configure it, iirc
 
user142019
@BartekBanachewicz Of course, it's Vim.
 
@Zoidberg If you wannit. You can use -o (IIRC) to keep oneline braceless statements. man astyle for all options and config file format
 
@Zoidberg no, it's astyle
 
@Zoidberg Oh. Sorry, vim's = doesn't add braces
 
user142019
@sehe awesome thanks.
 
user142019
9:53 AM
@sehe I don't want it to.
 
Me neither. Although I sometime use astyle to 'normalize' code posted on SO
 
user142019
I only want it to reformat.
 
user142019
It may only add and remove whitespace.
 
@Zoidberg : If you are using vim, why not just use sublime text?
it has good cpp support
 
user142019
Because Vim is superior.
 
user142019
9:53 AM
And I hate the C preprocessor.
 
ugh fuck
sf::ThreadLocalPtr<sf::priv::GlContext> internalContext(NULL);
    std::set<sf::priv::GlContext*> internalContexts;
    sf::Mutex internalContextsMutex;
ugh
 
@GamesBrainiac If your driving an Audi, why not just buy a BMW?
@Zoidberg lol
 
@GamesBrainiac vim is a lot better than sublime
 
@sehe and @BartekBanachewicz : Dunno about that, I used sublime text for JS, CSS and C++
worked pretty well
 
that's cool that you've used one editor
 
9:55 AM
@BartekBanachewicz Granted, Sublime is pretty nice. But I find myself escaping to vim a lot of times:
Dec 11 '12 at 16:08, by sehe
I just did a Sublime Text2 plugin. Needless to say, it is to smoothly open the current file/line in gVim: https://gist.github.com/4259744
^ That is the first thing I did in Sublime. It copies (multiple) selections as well (setting marks for alternative selections) and positions the cursor in the same spot.
 
@BartekBanachewicz : Nope used plenty. I just like it the most
 
The next thing I did was create some pull requests to improve VintageEx. They got merged :)
@FredOverflow The graaaavy train
 
For my everyday uses VS is enough
I sometimes use NP++
 
@BartekBanachewicz Yeah I noticed. I'm nearly done fixing your stuff so it can actually build on a normal compiler :)
 
user142019
Ctrl+K, Ctrl+D.
 
9:58 AM
@sehe Does it mean you are building Minicraft too? o.O
 
user142019
My most-used shortcut. xD
 
@DeadMG Awesome.
 
Oh god I feel so much shame now.
 
@BartekBanachewicz I just downloaded it for fun
 
@sehe You would be like... 5th person here, I guess. I didn't expect so much interest.
 
9:59 AM
@BartekBanachewicz I hope I'm not the 5th one to fix it to build on linux :o
 
 bool operator()( const T& a, const T& b ) const
         { return *a < *b; }
what?
 
@sehe only Ell built it on linux AFAIR
 
how do you even dereference a reference?
dafuq?
 
@TonyTheLion T is a pointer or an object with overloaded operator*, (e.g. iterator)
 
@BartekBanachewicz Kudos to him. It wasn't overly simple.
 
10:01 AM
Or a smart pointer, which you might not want to be passing by value
 
@sehe I don't expect it to be. I still didn't choose what library should I use for input and context creation. I've revised Rocket after Cat bashing, and came to a conclusion that fuck it, he's got the point. Right now I am trying to extract SFML window only.
Too bad sfml window is thread safe, and without draggin half of the "system" library, it will be hard to extract
So I either rewrite thread-safety in C++11, or drop it alltogether. What do you think?
 
SUCCESS. I built it. Who wants to bet wether it runs?
Oh, wait. I just built the Engine :)
 
lol
minicraft will be easier
just link the engine and you're good to go
okey, I am dragging system too. It's whooping 72kB of code
 
Good I'll report back
 
holy fucking shit balls
glext.h has 10k LOC
ohwell
let's get it rolling.
 
10:11 AM
 
@BartekBanachewicz I'm missing bits. CSimpleDirectLoader is where? Also, there seems to be a missing conversion from glm vec3 to your vector3 type. Is there a commit I'm missing?
 
@sehe oh no. You checkouted master branch of engine :/ whilst you need develop-2.0
Each and every one made that mistake
I have to put that up in minicraft readme -.-
sorry for that
 
user142019
 
@BartekBanachewicz You might just as well ;-
 
user142019
Similar to Parsec. :3
 
10:18 AM
anyway, I just built SFML into my engine
let's see if minicraft will get rolling on it
 
user142019
Super Fragile Markup Language?
 
@Zoidberg Needs more yield: gist.github.com/sehe/4994490
 
user142019
@sehe Yes I JUST thought of that. :P
 
user142019
I was just about to say it. xD
 
Too late :)
 
user142019
10:21 AM
Also list is not needed anymore.
 
Well, I forgot to remove a declaration? It's not like gist.github is a good editor :)
 
user142019
Wait what.
 
(removed)
 
user1357851
yes
 
user142019
> Cannot yield a value in the body of a try clause with a catch body.
 
user142019
10:22 AM
Why not?
 
@Zoidberg FUCK IT. I didn't post my gist for nothing
 
user142019
How is that relevant?
 
@Zoidberg Okay. Put yourself in the shoes of the compiler and imagine generating the class for the enumerator block
 
@Zoidberg Makes for hardcore transformations.
Not at all impossible though.
 
@Zoidberg I showed exactly that you cannot y/r from the try/catch block :) Why else would I have introduced that variable
 
user142019
10:23 AM
@sehe My question is still valid.
 
@R.MartinhoFernandes Well. It's prohibited by the spec anyway
 
@Zoidberg Reasoning is in here somewhere: blogs.msdn.com/b/ericlippert/archive/tags/iterators (part four; or three)
 
@Zoidberg True. Stack Overflow has about a dozen answers on that. The most relevant being: Eric Lipper/Anders Hejlsberg (watshisname) said so
@R.MartinhoFernandes Ah thanks for sparing me the effort
 
user142019
@sehe well the throw happens before the yield return happens so I don't see the problem.
 
10 hours ago, by sehe
in bin, Nov 20 '12 at 8:45, by Cicada
@ThePhD Get on a boat and drown, please.
IOW. Stop plinking me on your lame puns
 
10:27 AM
Pro-tip: if you want to drown you need to get out of a boat, not on.
Well, unless you sink it. If that's the case, carry on.
 
user142019
public AST.CompoundStatement ParseCompoundStatement() {
    AssertToken(TokenType.OpeningBrace);
    var statements = ParseMany<AST.Statement>(ParseStatement);
    AssertToken(TokenType.ClosingBrace);
    return new AST.CompoundStatement(statements.ToList());
}
 
user142019
I like this. :)
 
@Zoidberg It's a logical bug
 
Le wild unresolved external appears
 
user142019
Probably.
 
user142019
10:30 AM
@sehe My code is always bugged by definition.
 
It doesn't make (much) sense to eagerly enumerate statements after you have asserted the lexer state to be at a } token
 
@Zoidberg Didn't you just make ParseMany deferred?
 
user142019
Oh fuck.
 
So, either you make statement eager before the Assert, or include the assert in ParseMany, somehow
 
user142019
public AST.CompoundStatement ParseCompoundStatement() {
    AssertToken(TokenType.OpeningBrace);
    var statements = ParseMany<AST.Statement>(ParseStatement).ToList();
    AssertToken(TokenType.ClosingBrace);
    return new AST.CompoundStatement(statements);
}
 
10:31 AM
Welcome to the confusing dizzy-dizzy land of lazy enumerators :)
@Zoidberg See. This is still good exercise
 
user142019
@sehe yielding functions should return ILazyEnumerator<T>!
 
@Zoidberg Well derp. yield already says it out loud. It takes a mental switch to really notice that. But yeah, this is a nice source of bugs for a while - and also a nice source of performance hogs if you don't pay close attention
 
user142019
As a user of the function, I don't want to know its internals.
 
You want to know its docs.
 
user142019
That's annoying.
 
user142019
10:33 AM
Oh well.
 
There's no reason to assume any old IEnumerable is materialised.
You just start from the wrong premises.
 
Xeo
Gah, I have a clue now why this thing is failing... post-review doesn't seem to have the permissions to execute p4 - however, no matter what I change the permissions to, still no dice. :|
 
@sehe You're reusing that one way too much, I'm gonna ask for royalties
 
The BCL already has interfaces for materialised enumerables (hint: IList and friends)
 
@Cicada 2x? I'm only using it for this particular person, and only on a particular kind of transgression. It's contextually relevant too.
 
10:34 AM
Granted, those are not fine-grained enough.
 
@sehe it was a joke
 
@Zoidberg Return ICollection if you insist. I believe C# 4 might have gotten somewhat less than utterly useless readonly collection interfaces.
@Cicada Oh. Chute. How did I miss that
 
@sehe haha, no, it did not :(
 
ohai @Cicada
 
hai
 
10:36 AM
i can has steal codez from sfml
 
#canihas <sfml>
 
user142019
Okay fuck yield.
 
You're terribly bad
 
10:37 AM
Btw, don't you want the exception to propagate out?
 
user142019
It's fugly.
 
user142019
@R.MartinhoFernandes no, of course not.
 
You just suck.
 
@Zoidberg So... syntax errors are swallowed? WTF.
 
user142019
10:38 AM
@R.MartinhoFernandes no.
 
user142019
It restores the lexer state on syntax error and returns the successfully parsed nodes.
 
And the error?
 
@R.MartinhoFernandes it disappears!
 
user142019
There is no error since the lexer state has been restored.
 
user142019
The error is reversed.
 
10:38 AM
Because who cares about errors when compiling right
 
user142019
It's like Parsec's many.
 
@Zoidberg And what will happen when you continue to lex?
 
oughghth sfml Y U complain about joystick i aint gonna use it anyway
 
Oh. Backtracking?
 
user142019
Yes. :P
 
user1357851
10:40 AM
@Cicada error or warning?
 
bool Joystick::isConnected(unsigned int joystick)
{
    return priv::JoystickManager::getInstance().getState(joystick).connected;
}
 
user142019
Say you have a five null statements followed by something else:
 
@Telkitty both!
 
user142019
;;;;;foo();
 
It's a manager and a singleton.
 
user142019
10:40 AM
ParseMany will go like this:
 
@BartekBanachewicz That's typical.
 
user1357851
@Cicada nobody cares about warning, but if there is a error the thing won'r run
 
@BartekBanachewicz I told you
@Telkitty uh you didn't get it :)
 
@Cicada that's SFML, actually
 
@R.MartinhoFernandes oh then it must be planned for next version
 
10:41 AM
@BartekBanachewicz I told you "you won't find the perfect library"
 
@R.MartinhoFernandes that piece of crap is giving me unresolved externals
 
user1357851
@Cicada probably because I missed half of the conversation :p
 
probably
 
user142019
ParseNullStatement();
save lexer state;
ParseNullStatement();
save lexer state;
ParseNullStatement();
save lexer state;
ParseNullStatement();
save lexer state;
ParseNullStatement();
save lexer state;
ParseNullStatement(); // this errors, so restore lexer state and return five null statements
 
@Cicada I will. I am not linking it; I embedded the source into my engine; consider this as a fork
 
user142019
10:42 AM
This is what ParseMany(ParseNullStatement) does on ;;;;;foo.
 
@Zoidberg perpare for sucky performance
 
user142019
@sehe //care
 
Your grammar is too complex.
Or you're just sucking at parsing it.
 
user142019
@R.MartinhoFernandes How?
 
@Zoidberg What. Ewww. Just don't make it lazy. It's useless. Unless your parsing will be non-sequential and correlated...
@R.MartinhoFernandes I expect the latter
 
user142019
10:43 AM
This is the first non-Lisp parser I write.
 
user142019
Of course I suck at parsing. XD
 
You should not need backtracking except on very specific situations. (if-else comes to mind)
 
You shouldn't ever need backtracking AFAIK
 
user142019
Oh well.
 
You should take a course on language theory Zoidberg
 
10:45 AM
Did you even read Parsec's manual?
 
@Cicada you don't need one if you're 18; at this point, you still know everything
 
user142019
Maybe.
 
@BartekBanachewicz That faggot is 18???
 
Crazy, I'm just working now on exception/error/warning handling in my compiler framework :)
 
10:46 AM
@Cicada and you thought how old, exactly?
 
A bit older
~20
 
user142019
lol
 
duh, I am 20
 
user142019
I could use Lexer.Peek but yeah that's difficult to make generic.
 
@BartekBanachewicz Yeah you
@Zoidberg read the dragon book srsly
 
user142019
10:49 AM
I hate reading.
 
@Cicada I mean, don't you see the great maturity barrier between me and him?
 
@Zoidberg That probably contributes to your terribleness
@BartekBanachewicz The what?
 
user142019
lol
 
@BartekBanachewicz haha
 
@Cicada nevermind
 
10:50 AM
@Cicada It's like the Berlin Wall, but for their maturity.
 
@R.MartinhoFernandes Yeah that's precisely what I'm saying
 
hehe
 
:hint hint:
 
@R.MartinhoFernandes They're homophobes?
 
user1357851
@R.MartinhoFernandes English/french tunnel more likely
 
10:51 AM
Yea, I keep kicking the lobster from the wall every day.
You know, pushing ladders off etc.
Not that he's trying too hard
 
Xeo
Omg, seems the symlinking confused post-review ... just copying the p4 binary to /usr/bin with +x made it work. :|
 
0
A: Speed comparison with Project Euler: C vs Python vs Erlang vs Haskell

jxyWith Haskell, you really don't need to think in recursions explicitly. factorCount number = foldr factorCount' 0 [1..isquare] - (fromEnum $ square == fromIntegral isquare) where square = sqrt $ fromIntegral number isquare = floor square factorCount' can...

^ Haskellians, is there much merit in that one?
@Xeo Pro tip: make sure the symlink uses a correct and traversable path relative to the directory containing the link inode
 
Xeo
@sehe The symlink itself was working fine, for my current user anyways.
But post-review tried to execute it with no user, and it broke.
 
Hm...
Box.
Rectangle.
.... Span?
Span seems like the 1D equivalent.
 
Surface? è_è
 
10:58 AM
3D, 2D, 1D.
 
Simplex?
 
1-Simplex, though?
Really?
Can't I just call it a span? D:
SPAN SOUNDS COOL
 
Call it interval then
 
@Cicada Simplexes are triangle-ish.
 
@R.MartinhoFernandes That's a 2-simplex to be exact
 
Xeo
10:59 AM
@ThePhD Line?
 
Interval sounds a lot less generic.
 
user142019
In geometry, a simplex (plural simplexes or simplices) is a generalization of the notion of a triangle or tetrahedron to arbitrary dimension. Specifically, a k-simplex is a k-dimensional polytope which is the convex hull of its k + 1 vertices. More formally, suppose the k + 1 points u_0,\dots, u_k \in \mathbb{R}^n are affinely independent, which means u_1 - u_0,\dots, u_k-u_0 are linearly independent. Then, the simplex determined by them is the set of points C =\{\theta_0 u_0 + \dots+\theta_k u_k | \theta_i \ge 0, 0 \le i \le k, \Sigma_{i=0}^{k} \theta_i=1\} . For...
 
user142019
TIL
 

« first day (858 days earlier)      last day (4083 days later) »