« first day (576 days earlier)      last day (4598 days later) » 

00:17
public SimpleExpandableListAdapter (Context context, List<? extends Map<String, ?>> groupData, int groupLayout, String[] groupFrom, int[] groupTo, List<? extends List<? extends Map<String, ?>>> childData, int childLayout, String[] childFrom, int[] childTo)
Simple my ass.
@CatPlusPlus: The hell is that?
Simple list adapter for expandable list, duh.
Android. <3
@CatPlusPlus Wow. I would have never figured that out on my own.
I actually can't grok that
Is that some kind of crazy function declaration?
I don't want to see a complex one.
It's a ctor signature.
There's a list of lists of maps in there.
Ow.
00:20
Yes.
Oh so the class is called SimpleExpandableListAdapter
It's simple, you see.
Not sure if you can call it "simple" if you make an entire class just to adapt an expandable list. :-P
It's a data provider, nothing unusual there.
Does anyone know why UChar is not in the icu namespace in ICU?
00:22
@SethCarnegie: Because someone was either on crack or drunk when they wrote the UChar definition.
But seriously, I don't know
Maybe because it's meant to be used in C as well
I guess they want to avoid having to type icu::UChar every time but that's a stupid reason
Well they put most other stuff in the namespace
I think it is for C's sake
@SethCarnegie: True, but then I would write ICU_UChar and typedef to icu::UChar in C++ code
That is true but they are not you
they don't have that good sense apparently
00:24
You need to enable namespacing in ICU on your own.
@CatPlusPlus if you examine the file, nothing you can do can make UChar be in a namespace
And you don't enable namespacing, you disable de-namespacing
Then it's in C part of the API.
@SethCarnegie: "disable de-namespacing"?
@Insilico you have to use a #define or else ICU will add a using namespace icu; to all the files
That's got to be one of the dumbest defaults I've ever seen
00:27
Backwards compatibility.
lol
break it
IIRC C++ had namespaces since the very first "version" of C++, no?
yep
but the ICU C++ API is a half-assed port of the C API
> A List of List of Maps. Each entry in the outer List corresponds to a group (index by group position), each entry in the inner List corresponds to a child within the group (index by child position), and the Map corresponds to the data for a child (index by values in the childFrom array). The Map contains the data for each child, and should include all the entries specified in "childFrom"
What.
If it's a tree of items, why not use... I don't know, a tree structure?
00:29
needs more boost
Tree would be too complex for a simple adapter, duh.
This guy has an unusual concept of references in C++
0
Q: strange gcc warning - warning: casting "char*" to "char&" does not dereference pointer

Thomas1125I've got a big problem, I've replaced delete[], free() etc, with my own function, which also memset()'s the given pointer automaticly to NULL. That's the header: void _freememblock(char &memblock, int type, int flags = FREE_SET_NULL, int size = 0); #define freememblock(memblock, type) _free...

@CatPlusPlus Yes. Because a List of List of Maps is way simpler than a freaking tree.
> I've got a big problem, I've replaced delete[], free() etc, with my own function, which also memset()'s the given pointer automaticly to NULL.
Sounds like a big problem to me.
And now that I think about it, ExpandableList is not a drop-down list at all.
00:32
@RMartinhoFernandes ... Eh?
Because drop-down list is called a Spinner.
Because that makes perfect sense.
@Insilico from the q I linked
@CatPlusPlus: Time to whack somebody with this.
@Insilico I call that a Numberwang
@SethCarnegie Yes. And I'm still dumbfounded.
It's like somebody asking me "I've got a big problem. I've replaced all the wheels on my car with hula hoops." ...WTF?!
00:35
> What the fuck am I watching :(
It's a numberwang!
Wow that question has everything
Unneeded macros
Unnecessary memory management
Names that begin with an underscore
At least it used enums instead of #defines
I think he needs to relearn references
For starters.
Then RAII.
It looks like a retired C programmer.
To be fair if that's actually the case "Modern C++" is a rather recent development
Hence, the term "modern"
00:41
@RMartinhoFernandes No need for inflammatory insults :)
@Insilico Not the RAII part, I hope.
@RMartinhoFernandes: It's the oldest part of "Modern C++". :-)
(in /. comments) Q: what's wrong with GCC? A: the GPL
Too bad that enough people still don't use RAII when they should
@stdOrgnlDave +1
00:43
hello all
hi @stdOrgnlDave
anything C++y going on?
@Insilico I honestly don't get it. RAII and templates are the C++ features.
"It is too late to undo this operation." (clicks again) "You can perform this action again in 1 seconds."
00:45
@RMartinhoFernandes: Me neither.
Templates are rather complicated, but RAII is pretty simple.
Probably because your typical programmer isn't going to sit down and read The C++ Programming Language by Bjarne Stroustrup
I think that's where RAII was first mentioned or something
Templates are sooooo complicated that I still don't know them. :D
Without RAII C++ is a pretty annoying language.
Numberwang is quite hilarious
00:47
Numberwang is pure win
Welcome back to Numberwang, the show that simply everyone.
In C++ not only do you get type-safe generics you also get a Turing complete compile-time meta-language as a bonus!
Although it's kind of a half-assed Turing complete compile-time meta-language since it's almost entirely an unintentional invention. :-)
I just watched numberwang.
"Welcome to Numberwang, the show that simply everyone is talking about"
@Insilico watch the next episode
it's "the show that simply everyone"
@Mysticial you mystify me
00:51
@stdOrgnlDave how?
@Mysticial your name
Should've been called the "Numberwank" XD
:)
Just curious, are the summers usually this slow on SO? The # of good questions seems to be fallen off a cliff as of 2 or so weeks ago?
@Mysticial: Perhaps it's the inverse of eternal September
Mysticial always seems to have his fingers on the pulse of SO
00:54
This is around the time where the students in semester-system colleges are finishing the school year
He's an addict.
@RMartinhoFernandes There's better things to be addicted to. Like Anime. :D
Don't worry, the students on the quarter-system colleges still have another 4 weeks
@SethCarnegie Not really. It's easily noticable when I suddenly drop down to one answer a week.
Anyways, I'll be disappearing for a few weeks in about 3 days.
So...
How come
00:58
vacation
and won't have internet
Where are you vacationing to, Antarctica?
No, they have internet there too
Middle East
Argh, Java and stupid strings.
Mandatory "have fun" comment.
Y U NO OVERLOAD OPERATORS.
they have internet - but it won't be free.
@CatPlusPlus What do you mean? Strings have overloaded +
@Mysticial: How's that different from everywhere else?
But not !=.
@Mysticial GL HF.
00:59
@CatPlusPlus Oh.
That.
@Insilico More like, I won't in the chat-room.
I might check my email once a week or so.
And maybe check SO to see how many boats I've gotten...
Vacations without Internet?
What's the point.
@CatPlusPlus I've done it many times. Yes it uncomfortable. But I've done it.
I'd prefer vacations where I don't die out of boredom.
Think of the internet as toilet paper. Yes you can live without it, but it's suboptimal.
01:02
Yuck.
@Mysticial: Preemptive see ya.
"I'd spent the morning proving to myself whether or not my chair existed so I could sit down, and it struck me: how do we really know when it is numberwang?"
@stdOrgnlDave whenever the host says "That's Numberwang"
@GManNickG When I get back... I'll probably try to contact you offline for you know what. XD
4
oh my, bash.org still exists
the top #100 still haven't changed in the last few years
01:05
> Both of our contestants are at 140 apart from Amy who's at 36
well, at least they're funny
why am I even still awake?
@Mysticial Damn that sounds bad out of context.
@GManNickG shit, you're right...
@GManNickG: Lots of things in Lounge<C++> can sound quite bad taken out of context. :-P
01:08
Fuck... who starred that?
And now it's starred, in the best tradition of the lounge...
dammit...
LOL
-1 question seems designed to exhibit maximum number of bad practices in a setting with no purpose — Cheers and hth. - Alf 1 min ago
..."and spawned numerous copies around the world, in countries like Australia, such as New Zealand"
That's numberwang.
01:10
I think when I tell hand to put away book, it should not instead spill coffee cup.
Is the book hurt?
@RMartinhoFernandes Yes, also. It was "Accelerando". Lots of coffee in it.
> Android requires source compatibility 5.0 or 6.0 blah blah.
01:13
That means no resource-handling try. It's sad.
@CatPlusPlus you've beaten the wordwangarator. @RMartinhoFernandes you've been worwangaranged.
@RMartinhoFernandes Yes.
It pisses me off to no end.
LET'S ROTATE THE BOARD
Why can't I use a damn source level feature on 6.0?
Stupid AutoCloseable crap.
01:15
Is resource-handling try Java's half-assed version of C++'s RAII?
@RMartinhoFernandes What? 5.0 already had a perfectly fine Closeable.
@Insilico Yes.
@EtiennedeMartel But they went with a new interface, just to break compatibility.
(More fairly, Closeable is on java.io and throws IOException, which is not suitable for many purposes)
church of st numberwangum?
WTF brits are so strange
01:18
@Insilico depends on what java's picked since ten years ago, i dunno. but C# has a using statement that's a kind of manual RAII. Python has something similar, but it's ugly.
as opposed to an automatic RAII?
yes
manual means: must be added at every call site. so it depends on convention, and on Doing It Right in every place. ungood.
It's not ugly.
@CheersandhthAlf It's just like C#'s using.
And Delphi's with
01:21
The main difference being: I can't fucking use it.
@RMartinhoFernandes no, not quite. i remember there are special rules. a bit messy.
Python's with is usable for much more than just resource management.
Before I stop my quoting binge, one last
@CheersandhthAlf kind of like pointers? convention and doing it right in every place?
01:22
@CatPlusPlus maybe in cat years
@stdOrgnlDave i don't understand
which came first?
@CheersandhthAlf pointers. you gotta follow convention and get them right every time. like you said you had to do in C# for its "manual RAII"
google > stackoverflow search
01:41
@stdOrgnlDave oh, it's very different. the things that are similar in that respect, such as cleanup, are usually automated in C++.
@stdOrgnlDave Nah. The other one was more funny. It was too hard to hear that
> Bees also somehow can solve the traveling salesman problem in linear time.
@Pubby What?
user406009
02:00
@Pubby Has it been proven that they solve it optimally?
Na, just someone bullshitting on reddit
Gah, 1h of debugging, because documentation forgot to mention a little fact that application needs to ask for permission explicitly to write files to external storage.
Gawd.
Finally workses.
02:35
can I optimize out poorly optimized code?
@stdOrgnlDave Yes, with your mouse and the backspace key.
@EtiennedeMartel what's a good reg-ex. is it webscale?
02:53
in Java we get CodeFactory. In C++ we get CodeFactoryTemplate
I'm gonna go to sleep now
which I should have done three hours ago but was stuck watching Webb and Mitchell
@DeadMG 'night
goodnightawang
someone say something interesting
03:15
Da Vinci was the first person to draw a human appendix.
hey mongodb has sequels
www.youtube.com/watch?v=5GpOfwbFRcs
In WinRT, is it possible to record audio in the background?
I know that it's possible to play audio in the background using a MediaElement^, but I don't see much documentation about recording.
I do see that there's a way to add an event handler for when the "Record button" is pressed (as an app signal from the volume control), but there seems to be no way to actually do anything with this input.
"how the hell do software developers even get groupies? you never see PHP developers with groupies. PHP developers are too busy making websites that actually work."
"the only constructive thing we could have done was use their source files as random keys for SSL certs"
@RMartinhoFernandes do robots dream of electric sheep?
03:36
@stdOrgnlDave That's a funny one.
PHP websites that work? Woa!
yeah I had no idea the same person made sequels to the mongodb one
03:52
@stdOrgnlDave xtranormal.com
04:14
Dear Eclipse, stop trying to be "helpful", you're bloody annoying. Thank you.
Dear @CatPlusPlus, run a VM with visual studio with a shared folder to your linux drive, and set Visual Studio to just use your makefile when you hit compile. then be happy
goodnight
Yeah, that'd be much better.
Too bad VS doesn't do Java.
 
2 hours later…
06:07
@CatPlusPlus learn to use Eclipse, and you can work so much faster. It is a really good Java IDE once you get in the mind set and stop trying to write everything yourself
I don't want to ever be in Java mindset.
And all those "helpful" features like backspace not erasing last character, but instead jumping somewhere, because last character is closing parenthesis, are. just. annoying.
it's not a Java mindset. You just need to trust Eclipse that it can work stuff out for you
ok, that's a new one on me :P
code in emacs
You using Eclipse on Linux are you? Perhaps it is set up slightly wrongly on Linux
No, Windows.
I'd use vim, but boilerplate level is just too high.
And I don't have time to configure vim to behave like an IDE. And I don't want it to behave like an IDE.
06:13
all I know is, you can write half of your code using ctrl+space in eclipse
though you have probably turned of background compile haven't you
No, why would I do that?
Ctrl+Space is an illusion of productivity.
"When you assume, you make an ass of u and me."
@CatPlusPlus Well, it might be the case that using some of the nice features of Vim is also an illusion of productivity. I've resigned myself that until there are several independent, double-blind clinical tests of programmer productivity using different programmer tools that picking, say, Vim over any other tool is about which one is the more convenient illusion for dealing with boilerplate.
@CatPlusPlus considering you turn of the recycling bin :P
Recycling bin is useless.
@CatPlusPlus you know it does a lot more then just finish of names of stuff for you.
06:18
I'd very much like C++ to be able to have background compilation.
it would be nice indeed, but it would have to be able to also do pre-pro as well
Yeah, and linking.
Oh and compiling.
And 5 minutes later you have 100 background compilation jobs queued.
it's a lot easier to background compile Java
No kidding.
06:21
and Eclipse take full advantage of that by doing so much for you, if learn how to use it
Well, IME, it adds imports, unless it doesn't. And sometimes generates badly-formatted blocks of code.
Also, Java is boring like hell.
I really like that I can start writing a function, realise that I need to use a function from another class and even though I have not yet written it, I can use it. I can then let eclipse stub out the shell of that function ready for me to give it some implementation
but yeah, Java still sucks
Eclipse just makes it bearable
KMC
KMC
does programming c++ on xCode still make the application cross-platform compatible, or do I need Eclipse to do that?
@KMC The IDE in all likelihood doesn't matter (much)
The code is what needs to be portable
You can use another IDE/build system to build it elsewhere
(usually, you may have to, e.g. when compiling for a game console)
KMC
KMC
hm.. since in xCode there isn't an option to build my code to Window executables
i though I may have to use Eclipse
06:34
It's not as simple as clicking "build for another OS".
KMC
KMC
but does xCode has that option/possibility? Or after I complete my code in xCode, I have to find another IDE to build other platform's executables?
Although using C# can come close: .NET assemblies are in fact binary portable (as long as you don't use any OS specific libraries)
KMC
KMC
if that's is what you mean
@KMC the IDE has nothing to do with what platform your code cna run on. The IDE just manages what files need to be feed into the compiler along with what settings
Java archives are portable, too.
06:36
what you want to ask, is it is possible to configure a compiler to run on platform, and compile for another. ie, can I compile a windows exe from linux?
@CatPlusPlus again, if you keep away from JNI. Though then you just need platform specific binaries
KMC
KMC
wait, should I say "compile an executable" or "build an executable"
@KMC technically, 'build'
compiling just takes you source code and converts it into object files. Linking then links these together to form a final executable.
Frob a gizmo.
KMC
KMC
basically, can xCode "build" an Window executable from my c++ code?
i'm confused here. I'm moving from VS/C# to Mac/C++
stackoverflow.com/questions/3660137/… suggest "NO": and have to move the c++ in xcode to Visual studio to build a window executables
so I should be using eclipse after all..
@KMC well, eclipse will let you use the same project settings on what ever platforms eclipse supports
you will still have to compile on each platform you want an exe
KMC
KMC
06:47
so there aren't really an IDE that build solutions "cross-platformly". I still need to get on to a specific OS to build the executives?
@KMC AFAIK, yes
though you can get cross platform build scripts, such as ANT
you still need to run it on the target machine, but you can (in theory) just copy the entire project to the new platform and run the script
I don't see why you can't hook e.g. Codeblocks with a GCC that targets something else that the host machine.
@LucDanton how do you tell GCC to compile for a platform other then what you are running on?
You set a cross-compiler build of GCC at configure time and install the resulting compiler alongside the others.
Usually you get something like gcc-targetfoo-version as a result, to distinguish from plain gcc which is conventionally the compiler for the host.
target-gcc-version, actually.
06:55
so you have to build a specific version of GCC for each platform you want to build for? it's not just some sort of flag?
@thecoshman You use a crosscompile version of it?
E.g. I can install gcc-mingw32 and gcc-mingw-w64 on my system apparently.
You can do gcc -someoption target, too.
(Those are package names and I don't know what the executable is called in it.)
sudo apt-get install mingw32
i586-mingw32msvc-g++ -std=c++0x test.cpp -o test.exe
06:55
It'll restart itself to the right binary
KMC
KMC
thanks
What's best thing to read on GC in C++?
Like a standard paper or something.
@stdOrgnlDave Long time since I saw a good piece of British humor like that.
> ... fortunately, the war intervened, ...
@Pubby Didn't Herb link to some papers in that respect? No time to google it myself. The point is, there are many competing ideas, but some are 'considered' viable for standard c++ blessing
sbi
sbi
07:52
@CatPlusPlus And I was wondering why that smell of burned food comes out of the kitchen.
> I just had a really great thought. But it rolled under the fridge. — Patrick Star
@CatPlusPlus regarding setting window size. I noticed that despite the desired size reaching the window_factory for linux, it was hard-coded to be a 100x100 window. I created a linux version of the template visitors and managed to get that sorted. I then spent he rest of the night trying to work out how to position windows
@sbi I like how you are pre-emptively avoiding one-boxing :P
sbi
sbi
@thecoshman You know, it's much harder that way, because I have to go back and forth twice, in order to copy both message and URL. Plus copying text from the Twitter site is a bit of a pain, because a message wants to expand or collapse the moment you click the left mouse button over it.
I really hate that fucking interactive-web shit.
2
@sbi is that rage at twitter or the one-boxing?
sbi
sbi
@thecoshman My rage is against the whole fucking, stupid interactive web shit.
Wasn't that obvious?
@sbi oh ok then :D I'll start work on reverting all web sites back to static HTML
sbi
sbi
08:07
@thecoshman What do you mean, "you'll start"? I thought you are already halfway through that mess!? What have you been doing the last five years? Procrastinating? What do you think you are being paid for?!
@sbi for the most part of the last five years, I 've not been paid. Now though, fairly sure I am being paid to participate in some sort of nerdy 'Battle Royale', so sort of sanity test
oh God, I think this document manager is so lame as to not let me change the Confidentiality of a document. I think I will need to create a new doc o_0
sbi
sbi
@thecoshman Have you ever considered working for a company with <30 employees?
Where the CEO gives you his first name after you both signed the contract. Where you know the strengths and weaknesses of everyone of the dozen or so developers. Where the most bureaucratic thing you ever encounter is your dev head's mail to the guy in accounting, which you are CC'ed, asking to please order that book you just sent him a link of. Where the most confidential piece of info is your income? (Which you share freely with your mates at your weekly Wednesday night beer.)
Yes, they usually don't pay as good as those multi-billion multi-nationals. Not in money, anyway. But you get to keep being a human even at work. And that is really hard to overestimate.
08:38
@sbi reading that dream almost brought a tear to my eye
sbi
sbi
@thecoshman What do you mean "a dream"? I have never worked for any other company.
problem is, I am still ranked as 'noob' I need grind my soul away a bit longer before I can level up
@thecoshman how would that solve the problem?
would that make the company smaller?
Maybe "grind my soul" means he'll kill his teammates.
sbi
sbi
@thecoshman No, you don't. The first job I ever got was in such a company. Yes, it was a bad job and a bad company (I only stayed there a year), but the boss' name was Ralf, and he gave it to me after we signed the contract. And when I stamped my foot and said "impossible!", they changed plans.
08:42
maybe I shouldn't put so much value into getting 'experience'
sbi
sbi
@thecoshman What value has the experience you are getting there anyway?
actually working in a professional manor (at least, as far as it looks to the outside world) rather then just being able to do things when/how/what ever which way I want
sbi
sbi
Is it Ericsson you are with, or was this only a former employer of yours?
If by "professional" you mean "I'm not allowed to change the confidentiality of a document whose confidentiality I need to change"
it's my current employer. Before that, I have a year placement during uni course as an IT admin at a school and then before that pub work. Not the strongest CV
08:45
I don't think that's the kind of experience you need to make yourself a valuable hire for a sane company
@thecoshman so look for a new job. You don't have to quit the current one until you've found a better one
sbi
sbi
@thecoshman Do you have a degree in a relevant field?
I hardly think the best thing to do during a job application is rant about all the flaws of the old company.
degree in computer games technology (not games design)
It's only relevant to this job in that it is programming, and I did reports as part of uni.
I have very strongly considered it (getting a new job). But I concluded that if I can just get through a year at least, it will make me look like a much stronger candidate
sbi
sbi
@thecoshman You can rant politely and professionally: "I feel like I the corporate setting at my current job is hindering my learning more than it helps it." Speech bubbles like that aren't hard to blow, you don't directly blame your current employer, and you come across as being able to criticize politely and professionally.
@thecoshman Or it will wear you down to the point where you are too depressed to be able to get a good job.
I thought about extending apply to exceptional<T> but I'm not sure what the behaviour(s) should be if the operation fails.
@sbi a very real possibility
08:50
@LucDanton Throw!
@RMartinhoFernandes Should I provide an additional version to spare the user from doing e.g. exceptional<U> f; try { f = apply(functor, e); } catch(...) { f = std::current_exception(); }?
sbi
sbi
@thecoshman FWIW, if I would need to make a hiring decision (not that I do, but I often had a vote to cast in such things), someone who quits after a few months, but can point out exactly why he thinks he's a misfit without blaming it all on the others, has much of an advantage in my eyes over someone who lethargically went along in a treadmill for a year.
@thecoshman Sure, but getting through two years will make you an even stronger candidate. You can always spend more time to make yourself a stronger candidate
Waste Spend your entire life there and then you'll be perfect!
You could spend the next 20 years trying to make yourself a stronger candidate. Or you could just start looking for a better job...
08:53
@LucDanton Maybe that should be the default behaviour.
You know, monadic-ish.
@RMartinhoFernandes Yeah, I'm wondering.
Well, I'm in a general state of wonderment. Wondering.
@sbi well that gives me the confidence to look into applying, thanks :D
(That "Throw!" comment was only half-serious, btw)
@LucDanton That would also obviate the need for a second version: you can always call throw_it() or whatever you call it on the result.
Gday.
Today begin my final exams. :p
raise() it seems.
sbi
sbi
08:58
@RadekdaknokSlupik So what are you slacking here?!
@RMartinhoFernandes And I suppose that if you did care where the exceptions came from you'd have started by checking the original exceptional (and in fact extracted the value, if there were one).
@sbi they begin at 13:30.
So why not?
@LucDanton Exactly.
sbi
sbi
@RadekdaknokSlupik It is 13:30 now (at some timezone, anyway).
Why didn't you add a raise_only_if_exception function? Oversight?

« first day (576 days earlier)      last day (4598 days later) »