« first day (1406 days earlier)      last day (3546 days later) » 

4:19 PM
"Writing preprocessors isn't hard, but I can't figure out how to have optional arguments"
 
28
Q: How can I deal with senior colleagues constantly getting my name wrong?

IlythyaI work in the UK and I have a fairly normal "British" name. Having worked in my company for three years with my name plastered all around my desk, my person and my email, some senior colleagues still don't get my name right. This has led to serious problems when, for example, a group email gets s...

> a group email gets sent around with actions for "Jill Bloggs" when my name is actually "Jane Doe", or worse, for "JB".
Jill Bloggs lol
 
@AlexM. Stop using Outlook. Whenever I meet anyone in person that I've only known via Outlook, I'm usually greeted as 'Mr. Martin'.
 
"If it helps, over the last couple of years I have been called Amanda, Ruth, Julia, Rebecca, Elizabeth and Sarah (none of which are my first name), with a mix of my actual surname and other common british names like Baker, Brown, etc. This isn't just mixing up something like Jo/Joanna/Joanne (also not my name)."
 
@MartinJames Perhaps I should call you "Dean Martin" (even if you and I are probably the only ones where who know who he was)?
 
@CatPlusPlus I finally figured out what 22 means there.
I should go home.
 
@JerryCoffin :|
 
@R.MartinhoFernandes Home again, Home again.
 
@JerryCoffin thanks, could not find that quote in the standard... will accept soon.
@JerryCoffin Oops wrong dest, forget it
 
5:02 PM
@quantdev That I can do. Forgetting is my specialty. Just ask my wife...
 
Let me ask her, just a sec
 
> Not really. I make friends. They're toys. My friends are toys. I make them. It's a hobby. I'm a genetic designer.
 
@R.MartinhoFernandes A great scene from a truly great movie.
 
Django documentation is terrible
 
A true testament of how Dick's material can be made into great movies if only you disregard a significant portion of it. (totally tongue-in-cheek; I'm a huge fan of both Blade Runner and Philip K. Dick)
 
5:10 PM
There's not a single example of extending model fields, by subclassing an existing field.
> When planning your Field subclass, first give some thought to which existing Field class your new field is most similar to. Can you subclass an existing Django field and save yourself some work?
"Yes, I can. Now, how do I do it?" -- * silence *
 
5:25 PM
@CatPlusPlus I'm say in le mumble if you want to do what ever it was you might have said maybe needed doing
 
@thecoshman Do you smell burning toast?
 
@LucDanton ?
 
@thecoshman A what
 
@R.MartinhoFernandes My mom used to laugh about a movie that (in the credits) said something like: "Based loosely on the story XXX, YYY". I think that's about right here. Maybe even "Inspired by the story ..." would be even more accurate (since, no question, it doesn't really even attempt to be a movie of the same story as Do Androids Dream of Electric Sheep).
 
Yeah. But I'm glad it is so.
 
5:29 PM
@CatPlusPlus vOv permissions and shit?
 
@Jefffrey Uh you subclass it the same way you do Field
@thecoshman Oh, that. Register yourself and I'll get to that eventually
It's not that important anyway
 
@CatPlusPlus Yes, and then were do I override max_length/min_length? class definition, constructor, elsewhere?
 
@Jefffrey They're ctor arguments
 
@CatPlusPlus 'register'? I've logged in... what/where do you register for mumble?
 
They are also object properties
 
5:31 PM
@thecoshman Click on yourself and press 'register' butan
Also fields don't have min_length
 
@CatPlusPlus oooh
 
GAH Hot dog stand flashback — mikeTheLiar 4 hours ago
lol
 
class MyWhateverField(WhateverField):
    def __init__(self, **kwargs):
        kwargs['max_length'] = -42
        super(MyWhateverField, self).__init__(**kwargs)
 
@thecoshman I want to make sure you’re fine.
 
This isn't Django specific, it's pure Python issue, i.e. you're bad
 
5:33 PM
:D
 
Hmm, I have to eat horrible dry beans.
What sauce to add to make them swallowable?
 
@CatPlusPlus well yeah, that's done now vOv. Does that lobby permit voice chat?
 
Sulfuric acid
@thecoshman Default channel is set for talking
Custom channels is where people can create additional ones if they need 'em
 
@CatPlusPlus tis a nice feature to not use :P
 
@CatPlusPlus Sounds reasonable.
 
5:35 PM
Literally 10 seconds to set up so whatever
 
You are hitlerally Litter.
 
Hitler is literally hitler.
 
Also fuck OpenGL, let's try integrating CEF with Allegro instead
 
Mein Kampf is literary Hitler.
Dammit.
Fucking typos.
 
@CatPlusPlus > [18:25] UDP packets cannot be sent to or received from the server. Switching to TCP mode.
o_0
 
5:40 PM
Well that shouldn't happen
 
Famous last words.
 
P sure I forwarded UDP too
 
boom
 
Time to play dramatic music.
 
DNAT udp -- anywhere helios udp dpt:64738 to:192.168.122.10:64738
vOv
Maybe it uses different port like a dumbo
Nope, the same one
 
5:42 PM
woops
cannot install kdirstat to free up disk space because... no disk space available
 
More dramatic music.
 
Xeo
 
-> # netcat -vu axiom 64738
Connection to axiom 64738 port [udp/*] succeeded!
So dunno
 
@Xeo Perfect. And loud.
 
Xeo
I probably should've warned about the loudness.
 
5:45 PM
Oh I know, I forgot about FORWARD rules
 
YÖÖÖÖÖW.
so.. the top voted messages in this channel are all links, have Lounge<C++> effectively turned into a miniature version of reddit?
 
I guess iptables ${action} FORWARD -d ${ip}/32 -p ${proto} -m state --state NEW -m tcp --dport ${port} -j ACCEPT is not appropriate for UDP :derp:
 
@FilipRoséen-refp It seems so all too often.
ok here's a question
 
@Puppy you are DeadMG, your opinion is so often in the fifth percentile that it is often regarded as flawed - by default.
 
how the fuck can you empty the Ubuntu Rubbish Bin, and then it's not empty?
 
5:51 PM
^ jokes, but kinda serious.. but mostly jokes
0
Q: Can't empty rubbish bin

MrThompsonSo, I had issues having a full disk, but for now I solved it. Now, after I installed Bleachbit, this program was Wipping free disk space and all of suddenly it freezes. I left it like 30min but as it was still frozen I decide to reboot the notebook and do it again, same thing happens, so I decide...

speaking of rubbish bins and weird behavior.. deleting files from a memory-card under mac os x is the most confusing shit I've ever encountered, been some time since it happened but I reckon it's still the default behavior
1. delete files on an external storage
2. realize that the files are "gone", but that the storage used remains unchanged
3. scratch fucking head
4. realize that mac os just moves the files into storage_location/.Trash, and that you must "empty the trash" to remove them completely
 
@FilipRoséen-refp do you consider deprecated functions for this ?
 
@quantdev no, I didn't (and don't). Deprecated entities are still valid, but not guaranteed to be available in upcoming revisions of the Standard, meaning that they are not "breaking changes" yet.
 
@FilipRoséen-refp ok thats what I though thx
 
> This drink is whiskey filled with caramel and Bacon!
 
6:12 PM
-2
Q: Any way of reducing the speed penalty of using dynamic instead of static arrays?

Rupert Thornely-TaylorI have just changed a c++ program from using static arrays to dynamic arrays, in order to work round the Windows image size limit. The program with the dynamic allocation (using new) runs about half the speed of the one with the static arrays. Because the arrays are exceedingly large, it seems I ...

ac = new (std::nothrow) double****[3];
What's the type of ac, double*****? :)
double***** looks like something was censored.
 
boost::any
@FredOverflow "penetration"
 
0
A: C++ initialize map of pairs

cubuspl42The best way in C++11: std::map<string, pair<some_enum, string>> my_map = { { "1234a", { BOSS, "Alice" }}, { "5678b", { SLAVE, "Bob" }}, { "1111b", { IT_GUY, "Cathy" }}, }; It's that easy. It's not possible at all in C++03.

best answer ever :)
@PolymorphicPotato hehe
 
Okay UDP mode works
Mumble ACL is weird as fuck
 
@FredOverflow 4-star programmer
 
Aargh it's top-to-bottom but without stopping on match
 
6:20 PM
@Mysticial Look closer, ac has five stars.
 
fuck, you're right.
 
the last star is the compiler, shouldn't be included in the calculation :P
wait
they are all the compiler, that made no sense, nevermind
 
ac has to be declared somewhere. And there's gonna be five stars in that declaration.
 
@thecoshman See if you can join "Custom channels" (shouldn't work) and "test channel" (should work)
Anyway should be fine
 
Ell
I'll be mumbling some time after 8
I can't drink until then so :P
 
6:26 PM
@CatPlusPlus worked as you said
 
Good
I like ACL systems that have no way of testing effective access
 
I can add to test, but not to custom
 
Ell
I bought some creme de menthe and its smells heavanly
 
@FredOverflow ptr<ptr<ptr<ptr<ptr<T>>>>>
 
Ell
I also bought some chocolate liqueur but that looks bad
it looks like shit
 
Argh does @all not catch people who are in other groups
 
@Ell chocolate <3
 
I don't get how this shit works
Should work now?
I guess
 
how you use password rooms?
 
Fuck knows. There's "access tokens" in Server menu but how does it work I have no idea
Mumble docs are shit
 
6:34 PM
that is the worst fucking thing ever
 
How do you even set them
 
edit the room to set a rooms password
 
Oh right there's a field
Of course it's not in ACL why would it be
 
then go to server->access tokens to add a password
 
Ell
lol
 
6:36 PM
Beh
 
yay for unicode
boo no unicode room names
 
Ell
I'll probably on at 9 or so
 
There's a regex that limits names but I have no idea how shitty Mumble is about rendering them
 
@CatPlusPlus it seemed ok rendering my about me thing...
 
That's explicitly HTML though
 
6:40 PM
oh
 
Cool I can drag people around
I guess this could be 'move' on ACL
 
:D I like my comment description thing
simple, but effective
who's the other person in there?
ooh, I can just drag people from room to room
 
a lot of people pronounce _ptr as "unique putter", but it sounds funny.. what about "unique peter"? As in "P tr".
the standard should have a reference dedicated to pronunciation
 
it's POINTER fuck tards
 
wouldn't the obvious pronunciation be "pointer"? :/
 
6:51 PM
@thecoshman agreed, but then someone will yell out: "I TRIED TO USE UNIQUE POINTER BUT IT DOESN'T WORK!!!11"
 
STL says putter
I don't know about anyone else
 
Note: "STL" as in the maintainer of the standard library at M$
 
@melak47 to anyone who is not an idiot, yes
@chris no one is perfect
 
@chris Sutter does to, and I'm quite sure Meyers joins 'em
 
@FilipRoséen-refp I want new videos :(
 
6:52 PM
Would you interpret sizeof(this) as a typo?
 
probably sizeof(*this)
sizeof(this) is a constant, regardless of class
 
Jun 27 at 19:02, by Etienne de Martel
So we took the habit of saying "ptr" as "peter". Sure makes a lot of things sound weird.
 
I really want the size of the pointer. :P
 
@FredOverflow me too, but preferrably from someone who doesn't work with msvc and the standard library @ microsoft.. their talks are often filled with "alright, this doesn't work because we are behind schedule so we won't mention it"
 
I already made that joke.
 
6:53 PM
@cat is it possible to have a channel that people can't leave? so we can move people there if they are dicks?
 
@FilipRoséen-refp I thought MS had finally caught up?
@thecoshman Yes. It's called "jail".
 
@FredOverflow not according to the standard, is it?
 
@FredOverflow
 
@PolymorphicPotato sizeof(void*)
 
@FredOverflow ew void* :p
 
6:54 PM
@FredOverflow caught up with C++99 maybe
 
static_assert(sizeof(this) == sizeof(void*));   // justified?
 
@thecoshman There's kick/ban
 
@thecoshman the fuck is C++99
 
That's the second time I've heard C++99 in two days.
 
MSVC++
 
6:55 PM
@FredOverflow It's always true.
 
@CatPlusPlus not that I see
 
@chris I once tried static assert and wondered why it didn't work :)
 
@FredOverflow wasn't 99 the first standard? then 03?
 
98
 
probably been looking at too much static if code in D.
 
6:56 PM
or am confused... again?
 
Right click someone
Isn't it there
If not then :acl: whatever I'll fix it when it's needed
 
98/03/11/14/17/...
 
I can kick people so
 
@CatPlusPlus nope
 
erhm, where in the standard is sizeof(T*) guaranteed to be equal to sizeof(U*) where T and U are unrelated? afaik there's no such guarantee..
 
6:58 PM
Beh flatmate managed to finish up terrain and physics and all I did was install NSight
 
@FilipRoséen-refp It is guaranteed if they are pointers. Note: pointers to functions and pointers to members are not pointers in this respect.
 
@FilipRoséen-refp AFAIK, only if one is a member function pointer
 
the only guarantee I can think of related to the size of pointers is that of sizeof(std::nullptr_t) == sizeof(void*)
 
Or rather pointer to member in general
 
@FredOverflow no, read what @chris wrote; that's guaranteed
 
6:59 PM
Woops, forgot function pointers
 
@Ell what you sue to generate your image?
 
Ell
@thecoshman Gravatar :P
 
one pointer-to-member can be converted to another pointer-to-member and back, holding the same value (which implies that they have the same size), but object pointers (ie. "regular" pointers) can only be converted back and forth to void* (unless inheritance is involved between the types, or the other explicit rules where such pointer cast is allowed)
 
Ell
I used saved my original one
 
@thecoshman Oracle.
 
Ell
6:59 PM
I'm hand making a .svg now
 
@Ell how did you get the base64 encoded data though?
 
@PolymorphicPotato That's funny.
 
if I link to the actual png, it just show the html for the img tag
 
Ell
@thecoshman I'm not sure what you mean. I just copied my SO one when I first signed up
 
@FilipRoséen-refp Is that a quote?
 
7:01 PM
@R.MartinhoFernandes blocked in my country :(
 
Ok I couldn't quite remember if void * was the same or at least as big.
 
I wonder what for, other ting tings songs are fine
 
@FredOverflow erhm, what?
 
@FilipRoséen-refp It reads like Standardese or something.
 
@Ell look at my description thing on mumble, compared to yours
 
7:02 PM
@chris sizeof(void*) is at least as big as any other object pointer
 
@FilipRoséen-refp Yeah, function pointers are special ofc
 
Ell
@thecoshman Yours is a little icon o.o
I just dl'ed the image and uploaded in the comments
 
@FredOverflow maybe I've spent too much time with the standard
 
And ok, I'm still trying to find the actual standardese again
 
@Ell my avatar?
 
Ell
7:03 PM
yeah
 
really?
I see the raw html for the img tag
 
@FilipRoséen-refp I remember when I was like that... quoting the Standard like it was the holy document.
 
@FredOverflow and now you burn the standard in the streets? :p
 
@chris yes, function pointers and pointer-to-members all have the same size (since it's implied by the T->U->T conversion, ie. that converting one to another function/member pointer type and back yields the same value
 
7:06 PM
@Ell oh no, it's meant to be my pirate face :S
 
@FredOverflow I'm not quoting it, but I sure have let it infect my mind with its craziness
 
@ell if I look at the source for your description though, it's some base64 encoded data for the raw image, mine is just a link to the gravatar hosted image
 
@EtiennedeMartel Wow
 
anyone who has worked with wayland?
 
7:09 PM
@EtiennedeMartel boingboing.net ?
 
Does this mean the federal election is coming up soon again?
 
Ell
@thecoshman try pastebin.com/KxBQcNxq
@FilipRoséen-refp I've tried it, never worked with it
but it looks great
and makes much more sense than x11
 
@Ell I'm tempted to write an implementation in C++, and a dwm clone (with some added features, mostly the ones I've already patched into it myself.. but from scratch)
 
Ell
@FilipRoséen-refp I think they'd appreciate anyone helping people show what it can do
 
@melak47 I don't want to spend the rest of my life in a >1000 pages PDF document.
 
7:11 PM
@Ell I have some ideas, the major problem is that I'm a backend kinda guy.. graphics rendering has not interested me in the past
but I really wanna do it, mostly because I wanna move away from Xorg, so it started out as a "for personal use" idea. when I noticed that there aren't any C++ implementations, and nothing similar to dwm I started consider writing it up publically
 
@Ell What good would a Mic be for Text-To-Speech?
 
@FredOverflow you never used a mic as a speaker as a child?
 
no
But I think I used speakers as a Mic, now that you meantion it :)
 
@FilipRoséen-refp Yes writing things from scratch is always such a good idea
 
Writing things from scratch is an excellent waste of time.
 
7:14 PM
Nobody needs another crappy implementation
 
@FredOverflow the source is latex right? you can compile it to whatever you like :D
 
@CatPlusPlus I sense some sarcasm, but if you knew that there isn't any WM like dwm for wayland... well, that's that really.
 
sbi
> 4, 8, 15, 16, 23 and 42
@R.MartinhoFernandes Gorillas are much bolder. Chimps are skinny.
 
@sbi Funny that you mention the numbers, I've spend some time watching Lost the last couple of days...
 
Ell
@FilipRoséen-refp I don't think you'd have to do the graphics rendering yourself. I'm probably wrong but you'd just be writing a compositor so you'd pass it all onto opengl
but idk, it's been a while since I looked at it
 
sbi
7:15 PM
@JerryCoffin I remember him, too.
 
Ell
but a c++ wrapper would undoubtedly be easier
than implementing the protocol from scratch
 
> dwm is customized through editing its source code, which makes it extremely fast and secure
3
:lol: C programmers
 
Never implement anything.
LIBRARIES.
 
@CatPlusPlus they should add a "if you know what you are doing"-clause
 
sbi
@FredOverflow That's about the only TV series I watched in the last 25 years. (Note: The main reason I watched it was because for some time I had a lot of spare time to kill and it was accessible.)
 
7:16 PM
@FilipRoséen-refp You can make terrible mistakes even when you know what you're doing.
 
sbi
@Jefffrey My comment at the article ("Your comment is awaiting moderation."):
> So you copied text verbatim from Stackoverflow, paste it into your blog, attach a few “Source: someone’s answer”, and sell this as your own, interesting article?
> I know, this is the Internet etc., but that’s still pretty damn low.
 
@PolymorphicPotato that's like saying that you can fail while succeeding
 
@sbi Did you watch it in its entirety?
 
@sbi inb4 "You comment was reviewed by a moderator, and it was rejected."
 
sbi
@Mysticial I don't think I posted even half a dozen answers last year. And I haven't come to the chat often.
@FredOverflow Yeah. (I had a lot of time at my hands.)
@Jefffrey Let's see how the moderators feel about it at this site... :)
 
7:19 PM
@sbi Well, you can probably do it in 1 week, 2 weeks tops.
 
sbi
@FredOverflow You can fit half a dozen episodes in a day, if you try.
 
My record is a dozen. From 21 Uhr to 6 Uhr ;)
 
sbi
I wasn't that keen on going crazy.
 
LOST isn't that long
 
> Because dwm is customized through editing its source code, it’s pointless to make binary packages of it. This keeps its userbase small and elitist. No novices asking stupid questions. There are some distributions that provide binary packages though.
 
7:21 PM
@sbi Who was your least favorite character? Mine's Michael. He's just so annoying with his "They took my son" and all.
 
I like this one better. :)
Especially the last sentence.
 
sbi
@FredOverflow Um. I dunno. I guess I have forgotten most about the series by now. I cannot remember who Micheal was.
 
The black guy with the son.
 
how is it now.. "the senti-something-something still holds"? or have I just imagined that there is such a word in english?
 
sbi
@FredOverflow Shrug. I forgot.
It's only TV, after all.
 
7:23 PM
right
@FilipRoséen-refp sentiment?
 
sentiment!
@FredOverflow thanks
 
You mean when somebody gives you an awful gift? :)
"It's the thought that counts" says the German :)
 
sbi
Awful thoughts count a lot.
 
@FredOverflow I paraphrased a quote in a really bad manner, far from the original citation; but the "sentiment" still applied
@FredOverflow .. so says the Swede
 
@FilipRoséen-refp sweet!
 
Ell
7:33 PM
I changed gravatars
Not sure if I like my new one.
It's a little too bright maybe
Yes let me fix it
Oops an it's inverted
There we go.
 
user1804599
@thecoshman ping pong
 
Ell
woahh wut
 
@rightfold Today I implemented a feature that I have been planning for about a year. It ended up at about 20 lines of code :)
 
Ell
@FredOverflow What feature was that?
 
auto indentation
it looks at your braces and indents your code accordingly
It even works if your code is syntactically invalid, which is crucial for beginners.
 
user3010322
7:47 PM
Sanity check so I can bang my head against the wall a bit: No such thing as Variadic Generics, right?
 
What is that supposed to be? Variadic templates exist.
 
Ell
@ThePhD aren't variadic templates variadic generics?
 
user3010322
C#.
 
Ell
Oh.
 
user3010322
I forgot to specify.
 
7:48 PM
@FredOverflow Thinking about something for a long time is often a good way to make such things happen.
 
Ell
IIRC no
 
Pretty sure it doesn't have them, no.
 
user3010322
Maybe I can make do with params Type[] types
 
val lines = program.lines.map(_.dropWhile(_ == ' ')).toArray
val indentation = new Array[Int](lines.length)
var reference = 0
for (i <- 0 until lines.length) {
  val braces = lines(i).filter(c => (c == '{') || (c == '}'))
  val leadingClosers = braces.prefixLength(_ == '}')
  indentation(i) = reference - leadingClosers
  reference = reference + braces.count(_ == '{') - braces.count(_ == '}')
}
val minimum = indentation.min
val zipped = indentation.map(_ - minimum).zip(lines)
zipped.map { case (n, s) => "    " * n + s }.mkString("\n")
It's not beautiful, but it works :)
 
@sbi Yes, but you weren't around (right then).
 
7:50 PM
Why not +=?
 
no reason really
 
user3010322
I can't pass void
 
user3010322
As a type...
 
user3010322
Fuck my life.
 
Why do you want to pass void?
 
7:52 PM
@ThePhD Sure you can
 
user3010322
Delete<void> () // return nothing after delete and don't attempt to serialize
 
var indentation = 0
val result = new StringBuilder
for (line <- lines.split("\n")) {
    indentation += line.count("{") - line.count("}")
    result.append("    " * indentation + line + "\n")
}
result.result
@FredOverflow something like this should work. :v
 
user3010322
Delete<NotVoid>() // return stuff
 
C# doesn't do specialisation
Just overload
 
user3010322
But I can do an if statement and return default(T) or something
 
7:54 PM
void Delete()
T Delete<T>()
 
bah
 
@PolymorphicPotato That doesn't take into accout code with more closing braces than opening braces. See the minimum part of that code.
 
fuckin ubuntu went to sleep and killed my build of llvm/clang
 
@FredOverflow isn't such code just broken?
 
Resume it?
 
7:55 PM
Yes, but you want to indent it so you can see where it's broken!
 
@CatPlusPlus if (typeof(T) == …) :D
 
Beginners have missing or spurious braces all the time.
 
That's because they suck at indenting.
 
@CatPlusPlus Going to, but I really wanted the build to finish whilst I was AFK
 
They should suffer and learn!
 
user3010322
7:56 PM
Question.
 
user3010322
Can I use Task, without anything?
 
user3010322
Everytime I try weird funky shit happens.
 
user3010322
Like the Wait() method not fuckingt working
 
@PolymorphicPotato Also this won't work because {} needs to be indented differently than }{, even thought the number of braces is the same.
 
user3010322
or return or await not doing anything, even after the method that returns a plain Task is finished.
 
7:57 PM
Oh, right.
Fuck multiple braces on a single line.
Also it does work.
Because I subtract them, and 1 - 1 = 0.
Oh I should do the += after the " " *. Oh well whatever.
 
if (whatever)
{
    {}      // this line is intended differently
} else {    // than this line, even though the
    {}      // number of braces is the same
}
That's why I look for leading closing braces first.
 

« first day (1406 days earlier)      last day (3546 days later) »