« first day (608 days earlier)      last day (4333 days later) » 

3:00 PM
@sbi Sioux Leighter
 
@sehe These are not the droids you're looking for.
 
@Neil These aren't the droids we're looking for.
 
you guys know keeping stuff a secret will be impossible
@sbi: oh, you've got a slower CPU :(
 
^^ Look: Profile entry with support for @DeadMG personalities!
 
my pun got double-starred. Watch me be teh awesum.
 
3:09 PM
The Alcoholic, wow
 
user784668
@rubenvb But you're still the guy who wastes time for compiling GCC.
 

Epic Typo Fest

2 mins ago, 2 minutes total – 12 messages, 5 users, 2 stars

Bookmarked 6 secs ago by sehe

Nice. ^
 
@Fanael All I do now is pretty much "./buildall.sh" and enjoy the mild recognition of my faithful users.
 
user784668
@rubenvb We both know ./buildall.sh will fail. You're compiling it on Windows, after all.
 
3:13 PM
@Fanael No I'm not actually. An Arch VM is how I roll.
 
user784668
@rubenvb Ah. Pussy :P
 
@sehe I wonder who that is ¬_¬
 
Damn, I've always wanted to be an "esquire".
 
user784668
@rubenvb But you waste time nonetheless. You can't play $GAME while compiling GCC.
 
3:17 PM
@Fanael I tend to imagine I'm working in the meantime.
 
user784668
@rubenvb Working? What does that mean?
2
 
@Fanael exactly.
 
@thecoshman Well, shit.
 
@EtiennedeMartel Yes, that's the object of all the photography.
 
user784668
The hardest name of every project: picking a (code)name.
 
3:28 PM
Nah, it's easy: just find a random word generator and you're good to go.
 
user784668
@EtiennedeMartel The problem is then choosing one from the ones generated.
 
Pick the first one.
 
@EtiennedeMartel Pick the third one.
 
user784668
@EtiennedeMartel No, because the first ones tend to sound like merde.
 
random word generators miss all the cool ones
you should cycle through a medical or physics dictionary or something.
 
3:34 PM
> My job at the concrete plant seems to get harder and harder
lol
 
Do what most software developers do and pick a name, and marketing renames it to sell more copies
 
@Neil these projects normally aren't for sale.
 
user784668
Will "gdfkgjdgj" be a good name?
 
@Fanael Better than Wii
 
@Neil Or Wii U
 
user784668
3:43 PM
@SamDeHaan Wii URSELF
 
user784668
Oh, I have an idea. I'm gonna use a cat to generate the name.
 
promblem with SFINAE is if it you get a false negative, there's no compiler diagnostic of any sort.
 
I think our project killed this room
 
user784668
@TonyTheLion Start posting links to porn again.
 
3:52 PM
Stop thinking
Problem solved
 
Why does GCC give a warning: base class 'class expression_part' has a non-virtual destructor [-Weffc++] when you inherit privately? Can't you not downcast making the virtual destructor thing irrelevant? Or is it because you can downcast in members?
 
@sehe lol
 
user784668
@MooingDuck Disable -Weffc++.
 
@Fanael or I can just ignore that warning for this project
 
user784668
@MooingDuck So you're not using -Werror? Your compiler flags are bad, and you should feel bad.
 
3:54 PM
@Fanael -Wall -std=c++0x -pedantic -Wextra -O2 -Weffc++ -fwhole-program
 
user784668
@MooingDuck -fdie-now
 
I see no point in Werror, since I basically only use GCC to see what the output is
:4142033 to see what if any errors/warnings GCC gives that MSVC didn't
 
user784668
Eclipse Juno brings autotools support. Cool.
 
user784668
Hereby I declare this room dead.
 
I dislike GCC's error messages, I much prefer MSVC's multiline version
I tried to post a single line from GCC's here, but it says message too long and when I sent it filled my whole screen. That's just unusable.
 
user784668
4:04 PM
@MooingDuck -fmessage-length
 
@Fanael is that like -fdie-now?
 
user784668
@MooingDuck No, it's real.
 
error: unrecognized command line option '-fmessage-length'
 
user784668
@MooingDuck You did g++ -fmessage-length without specifying the length, did you? Use -fmessage-length=123.
 
that just wraps, I want formatting
wait... why is my gcc using my clang library that doesn't compile?
 
4:08 PM
lol, someone watching soccer?
 
Can I create a decorated instance of a function somehow?
 
oh right, that test was clang.
 
in Python?
 
@Nils does Python decorate function names?
 
4:09 PM
so that I can call both, the decorated and undecorated
 
what the hell is a decorated function?
 
oh, you want to call a C++ function from Python code?
 
@Nils Huh?
 
ah and it is a recursive function
 
ukraine vs france interrupted because of thunder xD
 
user784668
@JohannesSchaublitb lol, you serious?
 
Decorator in a Python is a function that receives a function/class and returns a function/class (usually).
There's really not much more to it.
 
@CatPlusPlus oh
 
def decorator(fn):
    return lambda x: fn(x) * 2

@decorator
def frob(x):
    return 2

print(frob(2)) # 4
 
4:12 PM
@CatPlusPlus How can I call an undecorated frob() and a decorated frob()?
 
If the decorated object doesn't expose the original, you can't.
(Well, you can, if you poke around frames and closure objects, but don't do that.)
 
meh fuck it
 
What do you need that for?
 
I would be able to use a decorated version of a recursive function to dump all the recursive calls.
 
If you want to have both, then don't replace undecorated function.
 
4:14 PM
as the make_verbose I posted in the blog
 
def undecorated():
    ...
decorated = decorator(undecorated)
 
yes that works, but not if it's recursive
 
@Nils You don't need an undecorated function for that.
 
What then?
like with the fib example
def fib(n):
return n if n in [0, 1] else fib(n - 2) + fib(n - 1)
fib = memoize(fib)
 
What with it?
 
4:16 PM
on the last line the callback is changed
so it calls the return of memoize(fib) instead of just fib
 
That's the point.
 
exactly, but now let's say you want to call the original fib again
no way?!
 
Why would you want to do that?
 
lol
 
You can add an attribute to memoize that exposes original.
 
4:17 PM
you sound like the Emacs psychiatrist
 
some decorators expose the original as __wrapped__
 
It's in general not needed at all.
 
maybe, but with the verbose decorators
 
Here you memoize the function so that recursive calls don't make it run in exponential time.
It's pointless to go around that and call original, slow function.
 
@rubenvb: My clang was compiling with C:\minGW\include\c++\4.5.4` instead of \4.7.0`, works fine now. Sorry about my persistant complaining that type_traits was broken
 
4:19 PM
@CatPlusPlus Sure, but now just assume that we decorated it with make_verbose.
not pointless anymore, right?
 
If you're decorating to see all calls, including recursion, then pointless.
If you want to see only entry call, then it might be better not to use decorators at all.
 
I want
 
def do_frob(...):
    ... recursive ...
def frob(*args, **kwargs):
    log_entry()
    return do_frob(*args, **kwargs)
 
a decorated version which prints any recursive call and a non-decorated which prints nothing
 
Well, it's a decorated version, but not replacing the original.
@Nils It'll be awkward to do.
 
4:22 PM
what?
what you posted will print the first call, not more
 
Yes.
If you want two recursive versions, it'll be awkward to do with decorators.
 
@Nils What's the point? If you want to turn of a decorator, there's a very good chance you didn't need a decorator in the first place
 
@KillianDS As I explained I would like to be able to decorate it for debugging.
That sole purpose.
 
Use the decorator everywhere and put the debugging on/off check in the decorator itself?
 
I thought of this while I was eating lunch:
What happens when you `void myvar; std::cin >>myvar;`? Is that even legal?
 
4:26 PM
@Drise no, void is an incomplete type, won't compile
it's just the same as "class A; A a; std::cin >> a;"
(The std::cin is irrelevant, it's the declaration that fails)
 
Ok. Then how does void* work then?
 
@Drise you can have pointers to incomplete types, and references. Just not values
 
void* needs to be typecasted before dereferenced
it's invalid to say void *x; *x = ...
 
class A;
A* ptr; //works fine
 
4:27 PM
You simply know the address of an object in memory, but you don't know the size, just he beginning
(size nor "layout" if we're talking classes)
 
@ScarletAmaranth right, that's why you have to cast it to do anything with it
 
I see. Once again @MooingDuck saves the day!
 
@MooingDuck yarrr, you know this comes as a second nature to us and colleges still refuse to teach this nowadays
 
Told you it's awkward.
 
yeah it is
 
4:29 PM
@ScarletAmaranth void pointers are messy though. Useful, but messy
 
It's probably better to integrate logging into the function, if you really need both versions.
 
thanks anyways
 
And switch it with an argument.
This is basically continuation-passing style.
 
@Drise They are messy and, well, BAD by default :) As soon as you forget your type, you're fucked :)
@Drise Metaprogramming in C, i'd rather stab myself in an eye with a fork.
 
@ScarletAmaranth I find them useful when I'm using two libraries that don't know about eachother.
 
4:30 PM
I have to go
 
For example, When I need a Qt form to hold a VTK Actor.
 
Also used to get the address of the most derived type of an object
@Drise we have templates and/or type erasure for that. But I suppose void* is easier in those situations
 
@MooingDuck Do wha?
 
@Drise @MooingDuck is right, templates do that for you and can be even faster.
 
@ScarletAmaranth not when holding generic unknown types they aren't faster. In fact, they're usually slower.
 
4:33 PM
I just need it to hold onto the pointer. I know what that pointer is in all my code, so its no biggy.
 
@MooingDuck Usually is the main keyword there I daresay.
@MooingDuck I said "do that for you and can be even faster" which means that while they are an abstraction, they do it well :)
 
QTreeWidegtItem* pItem->setData(1, Qt::UserRole, QVariant::fromValue((void*)pQtForm));
 
@ScarletAmaranth Type erasure will always be slower than a void*. template means it all has to be header based. If you want to pass an unknown type to a function not in a header quickly, void* is the only way.
 
Qt even requires it.
 
(which is why we need export templates!)
 
4:34 PM
Or you could just subclass QTreeWidgetItem.
And not dabble in void*.
Or variants.
 
Yarr yarr, export templates.
 
I'm about to cut someone. It is at least 80 degrees in my office.
 
I'm told clang has awesome errors and stuff, but I find it's even more useless for SFINAE than gcc. :(
it gives no more information than MSVC did, it's just prettier.
it appears to have less information actually
 
Are they ever going to generate template related errors that will not be 7 pages long ?
 
@ScarletAmaranth that's not possible, if also providing all the useful information. There's simply too much information involved.
 
4:40 PM
It's saddening :(
 
Quick, name an pretty RGB color using 0-255 values.
 
@Drise 0x000000
oh wrong format: (0, 0, 0)
 
Well see, my dev partner put (128, 128, 0), and its butt fugly.
 
@Drise that's... brown? A pale orangy-brown?
 
It comes out more like a puke olive like
 
4:43 PM
(255, 140, 100) "Atomic tangerine"
fascinating page:
The following is a comprehensive list of colors. A large portion of the color swatches below are taken from domain-specific naming schemes such as X11 or HTML4. RGB values are given for each swatch because such standards are defined in terms of the sRGB color space. It is not possible to accurately convert many of these swatches to CMYK values because of the differing gamuts of the two spaces, but the color management systems built into operating systems and image editing software attempt such conversions as accurately as possible. The HSV (hue, saturation, value) color space values, al...
 
Thats much better.
looks like copper almost.
 
Heh, the wiki page has a list of fictional colors
 
Is that where they get their "16 million colors" is 256^3?
So 32 bit color is what, 256^4?
Which is like billions of colors.
 
@Drise 4.29 billion
@Drise yes
@Drise well, the "billions" aren't actually "colors" per se. There's only 16 million colors, the other 8 bits represent transparency, which doesn't really change the "color" per se.
 
Dammit, I hate bugs because they bug me...
 
4:53 PM
@ScarletAmaranth the reason it can't be shortened, is the function I am currently working with is "template<class T> decltype ((expression_multiply<lhs_given, rhs_given>::lhs:: operator()(v) * expression_multiply<lhs_given, rhs_given>::rhs:: operator()(v))) expression_multiply::operator()(const T&) const " and that's with the typedef's shortening it.
and that function doesn't even have SFINAE
that's just a function that I cant get to compile
 
5:13 PM
How can I effectively test something when I wrote it? I have such a hard time testing my porgram because I wrote it, so I subconsciously know how to not break it.
 
@Drise it's hard eh?
 
At least they don't bite. Yet.
 
@Drise You can't. You can unit-test your interface, but for any real project, quality assurance (that is of course more than "testing:) is done by a completely different team. It just requires another mindset that's hard to get about your own application.
 
@KillianDS But I am the QA team.
 
@MooingDuck lol yes, it searches every version, make sure you have a clean prefix.
 
5:18 PM
@rubenvb I stuck the old versions in zip files in case I want them later
 
I mean, I would ask yall to test and report bugs, but I'd probably get fired for it lol.
 
Why would you be fired for that?
 
@StackedCrooked Proprietary.
 
@JohannesSchaublitb Note I didn't say classified, just proprietary.
 
5:22 PM
@JohannesSchaublitb Btw, my "guys" comment that got starred a little while ago just a joke, no offense intended.
 
@StackedCrooked i'm not a girl...
so it's not offending at all
 
Right, I've been hanging out with overly sensitive people then.
 
Damn, a fish and chips is really incredibly greasy.
 
you have
not really.... In python I do it this way: self.grid = numpy.load("./testData.npy") self.grid = self.grid.reshape((4096,4)) In the original input each block of 4 is one ColorRGBA — glethien 9 mins ago
ok anyone care to say something on this?
I don't think there's any other way of doing what he wants than the way I did it in the answer
but I may be very wrong
 
5:26 PM
@TonyTheLion It's Python. I refuse to comment on snakes.
 
self.grid = self.grid.reshape((4096,4))

This is just gold.
 
@rubenvb yea but the answer is C
@DomagojPandža why is it gold?
 
@TonyTheLion My point /sPython/C/ /s/snakes/shit/ still stands.
 
Reshapes itself and then stores into itself.
 
5:29 PM
reshaping sounds like an interesting notion
I think he things that C is dynamically typed just like Python, which is not the case
 
This question needs reopening: stackoverflow.com/questions/9379363/…
 
0
Q: Letter "c" as variable name

kowaltPurely from curiousity - why it's impossible to name the variable "c"? For example... .386 .model flat, stdcall option casemap:none include windows.inc include kernel32.inc include user32.inc includelib user32.lib includelib kernel32.lib Main proto .data hOutput dd 0 hInput dd 0 b...

for those with exquisite asm skillz
 
asm skillz are overrated
 
@rubenvb it's not really on topic for SO
 
is 4.0*atan(1.0) a reasonable PI calculation?
 
5:31 PM
@TonyTheLion wut?
 
maybe more for superuser or serverfault
 
@TonyTheLion bullshit
^see what I did there? I tagged a message as "bullshit"
 
no, off topic
 
ok I get your point already
 
5:33 PM
:p
 
@Drise It's not really a PI calculation, trigonometric functions "embed" pi into themselves and some allow for easy extraction of PI.
Actually calculating PI is a bit more of an interesting errand.
 
@DomagojPandža How expensive is it to extract PI in that way?
 
definitely, @Mysticial knows all about calculating PI
 
@Drise the question is why would you?
 
5:34 PM
you can simply define it
 
................
 
I just need a nice accurate pi const,
 
3.14159265358979323846 is already going overboard.
 
there's a constant in some standard library somewhere
 
Yea, but I don't want to use M_PI
Its fugly.
 
5:35 PM
@Drise dafuq?
 
#define PI 3.14159265358979323846
 
Call it anyway you want it, you can store it inside
 
there you go
 
Just do constexpr double mypi = 3.14159265358979323846;
 
#define mumsapplepie 3.14159265358979323846 if you want
 
5:35 PM
I don't want to use the std:: namespace cause it's ugly.
 
Alright, I get it lol
 
I also don't want using std::*;
I don't want std::vector<double> cause it's against my religion.
4
 
lol
coolness
 
Oh I know you want to star that. (not the pic, my message, obviously)
 
You're right. I do.
 
5:39 PM
lulz
 
I am in control.
I am hypno-toad.
 
They're not artists because nobody can play the guitar!
 
Who? The Who?
in Kyrostat, 16 secs ago, by DeadMG
I don't have an IRC client
lol. All laugh at the clueless one.
 
@rubenvb mibbit
 
Be nice to the puppy
 
5:44 PM
the sheer stupidty of PHP programmers is proven once again
 
clueless would be "I don't know if I have an IRC client".
 
0
Q: Execute PHP code to load a image but there is no output?

leoabbasiWhen i execute this code to load a image and store in database it doesn't store. $img = $_FILES['image']['name']; if($img) { $imgnew = date("YmdHis").".".end(explode('.',$img)); move_uploaded_file($_FILES['image']['tmp_name'],$img_src.$imgnew); echo $sql = "UPDATE news SET `image...

 
but I do have a clue- I know for sure that I don't have an IRC client
 
I don't have an IRC client either.
 
The clue is just dead obvious.
 
5:45 PM
I'm antisocial.
 
IRC != social.
IRC c social
 
@DeadMG I have KVIrc and it works quite well
 
irc is a set of social?
 
Subset, baby.
 
no, IRC is Internet Relay Chat
 
5:46 PM
I got close, give me some credit
 
@DeadMG You can use the web client.
 
hmm, why is GCC now failing to find type_traits?
 
For some reason I can't copy the wikipedia symbol :/
 
@CatPlusPlus I am. Nobody else is there
 
5:47 PM
and now it's too late!!! nooooooo!!!!
 
@DeadMG Did you put the password?
 
see? Clueless.
 
@CatPlusPlus Nobody mentioned a password.
 
It's on the wiki.
 
Oh, right, you should have read the discussion. There's a password on the wiki.
 
5:48 PM
why are we doing this again?
 
cause privacy
 
you just want to take over the world in secret.
 
"Connections via mibbit are no longer supported on freenode. " ?
 
@MooingDuck yup, been that way a long time.
 
5:50 PM
They have their own web interface.
 
Mibbit is kind of crappy too.
 
I don't remember why they don't allow mibbit, but it's been like this for years.
 
right
now I'm still alone in the channel
 
I'm in the channel
Cat is there too, but I don't see you
you've done it wrong
 
[10:51] == #kyrostat Cannot join channel (+k) - bad key
 
5:52 PM
The web form doesn't support channel keys, it seems. Do /join #kyrostat key.
 
@CatPlusPlus they link to it in the disconnection message. Something about not being able to "prevent abuse"
 
@CatPlusPlus So actually, we completely can't use the web host to connect.
 
@CatPlusPlus Doesn't work that way either.
 
@CatPlusPlus is key a literal or some magic thing I have to learn about?
 
@DeadMG Don't put the channel name in the form, instead connect and in the command line type /join #kyrostat key, where key is the password from the wiki, OBVIOUSLY.
Or download a better client.
I just joined from the webclient, so it works.
 
5:54 PM
Oh, god, peoples
in the channel
just #kyrostat+THEMAGNIFICENTKEY
 
why did you leave the IRC channel @DomagojPandža
 
Nope, not even that.
 
christ
 
Fuck this shit.
 
you can tell this BS was invented byLinux users.
 
5:55 PM
oh lol
 
IRC was invented long before Linux.
 
@DeadMG srsly
 
same principles of user-"friendlyness".
 
you're here
 
hehe
 
5:55 PM
Why do developers have to be so spartan?
 
Told you SO chat is pretty nice.
IRC suckz ballsackz
 
A wall of text is not proper communication.
 
yea well, IRC is under our control
SO is not
 
I'll work out a mechanism at kyrostat.com
which will look humane.
 
5:56 PM
OK.. it is under your control lol
switch it off. lemme see whether it shuts down
 
@JohannesSchaublitb trollol
 
I give up, I can't figure out the key
 
it's what's in the wiki, quite literaly
do you have access to the wiki on bitbucket?
 
it's copyleft. you need to copy it with your left hand
 
@JohannesSchaublitb No it means that there is a copy left.
 
5:58 PM
If anyone doesn't have wiki access, and is a regular I know, ping me on IRC (/msg CatPlusPlus foo). Just have a nick I can recognise.
 
@StackedCrooked what i said
 
@TonyTheLion I didn't know to look at the wiki
wiki has no pages for "kyrostat"
 
Our bitbucket wiki.
 
@MooingDuck not that wiki, but the clounge bitbucket wiki
 

« first day (608 days earlier)      last day (4333 days later) »