« first day (776 days earlier)      last day (4172 days later) » 

10:00 AM
Then you can add that server in your hosts and add a route to tunnel traffic to it.
</spanishInquisition>
 
@Cicada OK, I’m intrigued … how do I do that? Is nsresolve a command? (doesn’t exist here if it is …)
 
nslookup
 
ah
and where do I issue this command/
 
On the other side of the tunnel
 
@Cicada Hm. That’s a problem. I’m using an SSH gateway server on which I don’t have a shell
well, not a Unix shell at least
 
10:06 AM
@KonradRudolph Hmmm, let me think
 
@Cicada incidentally, if you know your way around network things and like that kind of stuff, have you considered looking for a job at EBI? They often have open positions in the systems/IT group
and let me tell you, EBI is a kick-ass place to work at
too many French people for my taste but otherwise very nice
 
@KonradRudolph Oh, so there in one French person working there?
 
@R.MartinhoFernandes Nah, tons more. In fact, I could say the same about Portuguese. My god, you are a fucking Mafia! There are, what?, 9 million Portuguese in the world. But of those, 2 million work at EMBL and EBI
 
@KonradRudolph 11 million in Portugal.
But yeah, we emigrate a lot.
Not saying that I did, but... wait, I did.
 
lol
welcome to Berlin :p
 
10:12 AM
@KonradRudolph You really can't land on a machine with a shell?
@KonradRudolph I'm not good at networking/IT, I just know the basics.
 
@Cicada That's it baby, show him how dumb he is.
 
@Cicada It’s a special kind of restricted shell. No idea what software that is actually running but essentially you get options to 1) connect to another server inside the network, 2) set up a public key and/or OTP and 3) quit
 
@KonradRudolph Okay. Well, basically to resolve your ebi-002 either you need them have you provide the IP of the server, or somehow query their internal DNS server. Which, uh, requires knowing who is their DNS server.
@R.MartinhoFernandes I don't do that kind of things.
@R.MartinhoFernandes You people here constantly remind me of how dumb I am :p
 
Why is the C standard lib so badly designed?
that's a rhetorical question, I don't really want to know the answer, by the way
 
Because, like C++, it's old.
There.
 
10:20 AM
but that explains why it's primitive, not why it's seemingly designed to trip you up by doing the wrong thing by default
 
@Cicada You once used a 56k modem, don't you feel nostalgia?
 
@jalf What tripped you up this time?
 
@jalf Because the definition of "the wrong thing" has evolved over time (surely you know that better than me!)
@Neil I never did. I had internet for the first time in 2007.
 
Maybe because they were incompetent
 
isdigit which yields undefined behavior if you call it with a char with a value outside the 7-bit ascii set
 
10:22 AM
Ah, that one. Yeah, probably incompetence.
 
because it takes an int as a parameter, and expects the value to fall in the range of an unsigned char, rather than a char
 
I mean, you don't want to assume malice, right?
 
@R.MartinhoFernandes I don't want to, but I'm finding it hard to imagine another reason
 
<Insert famous quote>
 
@Cicada I feel so old... ಥ_ಥ
 
10:22 AM
@jalf Yeah, and it does say so very clearly in the docs.
 
@R.MartinhoFernandes So is it Rui, Rinaldo, Ricardo or what?
 
@R.MartinhoFernandes Your name
 
@Cicada yeah, but a function which is designed to work on characters, and yet blows up if you pass it a character is just badly designed, no matter how well documented. ;)
 
10:24 AM
@R.MartinhoFernandes ah. Boring ;)
 
@jalf Broken by design is the worst kind of broken.
 
@jalf A function that blows up if you pass it a non-ascii character. Sounds a bit extreme to me, but not too crazy.
 
@Cicada but you are allowed to pass it non-ascii characters if you cast them to an unsigned char first
 
@jalf Really?
 
yeah, it accepts input in the range 0x00-0xff
 
10:25 AM
@jalf Yeah but that is you asking for trouble.
 
@KonradRudolph Huh? Why is that boring? Everyone has first names, initials. Not everyone has significant nicknames related to mysterious 'prefix' initials, that allude to significant cultural works.
 
so it's fine if you take a char with a negative value, cast it to unsigned char, and pass it to the function. But if you omit the cast, BAM, undefined behavior
@Cicada is it? I want to know if a character is a digit. So I pass my character to the isdigit function. I think that's quite reasonable
 
@jalf But that goes outside 7-bit ASCII.
 
@jalf If you are truly passing it as an ascii character (uchar) then there will be no problem.
 
@R.MartinhoFernandes Yeah, but that's fine. The function accepts a value in the range represented by an unsigned char.
 
10:26 AM
@sehe It isn’t actually boring, my girlfriend was just trying to guess his first name and apparently not many names in Portuguese start with “R”
 
@jalf Ah, ok.
 
If you stick within the 7-bit ASCII range, it'll always work even without the cast. If you go outside that, you need to insert a cast
 
Anyway char in C is broken.
 
@KonradRudolph She was never in Brazil, I guess.
 
Ruiz, Riccardo, Romano, Ronaldo, just making suff up etc.
 
10:27 AM
@jalf Precisely!
 
@Cicada sure, but they could just have defined the function to accept values in the range of, you know, a char, since it's designed to work on characters
rather than requiring the user to jump through needless and error-prone hoops
 
@R.MartinhoFernandes You guessed correctly (she can’t go there because of her last name)
 
@jalf At that time there was probably only ASCII, so a character was 7 bits. So the function makes sense.
 
heck, they could have defined it to return false for any value that can't be represented by an unsigned char, that'd have been acceptable too
@Cicada I doubt it
and even if so, they could've fixed it later when the magic of extended ASCII was invented
 
Xeo
10:29 AM
@KonradRudolph What?
 
that wouldn't break existing code, since it'd just turn UB into well-defined behavior
 
bool is_it_a_digit = ogonek::ucd::get_general_category(u) == ogonek::ucd::category::Nd;
 
I still maintain that a function which operates on a char, and yet can't actually handle the values that a char can take is broken.
 
@Cicada I am going to assume EBCDIC existed.
 
Anyway, the reason this bugs me is that it wasn't even in our code. The problem is in a third-party library, which we now have to try to get the maintainers to fix because the C standard library is broken by default
 
Xeo
10:31 AM
@R.MartinhoFernandes Nd? Really?
 
@Xeo her last name is “Pinto
 
@Xeo Number, digit. It's the official code. That was autogenerated, so... I need to go through all the zillion enums and change the names to not use codes, but lazy.
 
Xeo
I don't know why that would be bad, sorry.
@KonradRudolph Still don't get it. :(
 
@KonradRudolph Google did not do a god job at explaining.
In Brazil "pinto" means "small dick".
 
@Xeo hint: the first translation is wrong, check alternative translations
 
Xeo
10:33 AM
Ah.
 
@R.MartinhoFernandes Until recently the first shown translation was “dick”. – That’s why I just blindly linked there
 
Can you use an Android's phone GPU for GPGPU stuff?
 
The Ford Pinto is a subcompact car produced by the Ford Motor Company for the model years 1971–1980. Initially offered as a two-door sedan, Ford offered "Runabout" hatchback and wagon models the following year, competing in the U.S. market with the AMC Gremlin and Chevrolet Vega, as well as imported cars from Volkswagen, Datsun, and Toyota. By January 1971, the Pinto had sold over 100,000 units. In its last model year, Ford built 68,179 units. Overall, during its 10 year production run there were over 2 million Pintos sold. A rebadged variant, the Mercury Bobcat, debuted in 1974 in Ca...
 
I doubt it, would be my first answer
 
This thing was a sales disaster there.
 
Xeo
10:34 AM
Ouch.
 
Hmm, the English wikipedia does not mention it.
> Mas além dos prováveis altos custos de adaptação da linha de montagem para produção, outra coisa que ironicamente inibiu sua fabricação em terras brasileiras, foi justamente seu nome. A Ford provavelmente teria que decidir por outro, caso fizesse o modelo no Brasil. Pinto é uma gíria popular no Brasil, para descrever o órgão sexual masculino, usada inclusive como termo infantil, pueril;
 
> //define a custom iterator type that can be used to iterate over both std::map and boost::unordered //map keys.
erm, smart people?
0
Q: Defining a generic transform iterator for iterating over different container types

adiI have a class along the following lines : class ArraySim{ public: DataStructure* ds; ArraySim(bool which){ if(true) ds = new STDMap(); else ds = new HashMap(); } value_type& operator[](int idx){ return ds->getValAtI...

from here ^
 
Any iterator? That's been done.
Also, eeeeeeeeeeeeeeeewwwwwwwwwwwwwwwwwwww. Inheritance-powered containers.
 
Xeo
Add virtual get_range() function that returns any_range, done.
But yeah, fuck the design.
 
Xeo
10:49 AM
I kinda don't want to post an answer to such a bad design... meh.
Anyone else willing? I'll hand over the finished answer :P
 
Xeo
Oh, someone posted an answer just now.
 
no
 
Xeo
Seriously, working while my Debian vbox is trashing away in the background with 2/3rd of my RAM and an estimated 100% of my CPU compiling Clang is tedious.
 
Xeo
10:54 AM
Nah, again
Since I had a compiler error this morning.
 
Once that is done, would you mind building me some ogonek binaries?
 
Xeo
Which turned out to be because I forgot to ../llvm/configure
 
My current Linux box is ARM.
 
Xeo
Sorry, --enable-targets=host-only :3
 
@Xeo So? Isn't that a Linux box?
 
Xeo
10:55 AM
@R.MartinhoFernandes Do you know the German word "arm" yet?
 
x86 or x64?
@Xeo Now I do.
 
Xeo
@R.MartinhoFernandes Debian on amd x86-64.
 
Then it's nice. I don't have that.
No.
 
Xeo
@R.MartinhoFernandes Both meanings?
 
I have drawn two ER's
 
10:56 AM
Grr, server storage at work is full. How the hell is that possible? We have > 500 TB storage on this volume alone
 
Xeo
4 messages moved to bin
 
I don't know mentor is an Entity or not
 
Xeo
As we said, no.
 
Hi.
@KonradRudolph Someone left a yes > file running overnight.
 
10:58 AM
@R.MartinhoFernandes you think that would fill it up? Peanuts!
 
Xeo
@KonradRudolph Did someone play around with unpacking 42.zip overnight?
 
@KonradRudolph Overweek?
 
Xeo
@DextOr You're welcome.
 
thx
 
@R.MartinhoFernandes That’s more like it … but still, we have bigger fish to fry
 
11:01 AM
Maybe your backup system is filling your drive
 
Xeo
As I said, maybe someone found out about 42.zip and thought it was funny to see if it really contained several PB :)
 
-1
Q: Remove item from std::list using pointers

user1813390Is it possible to remove an object from std::list using .remove and the object as a pointer? Im getting quite confused with pointers. I have the following class for example: class AsteroidGen{ public: std::list<Asteroid*> listAsteroids; void AsteroidGen::generateAstero...

 
@KonradRudolph Do a du -sh and find the culprit! Maybe someone is running a minecraft server on your machine!
 
I love the Americanized spelling of "laser" here.
 
@Cicada If I run that on / they’re gonna kill me
for my part, I occupy less than 650 GB
 
11:04 AM
@KonradRudolph But you will die knowing.
 
Or, since you work in a scientific environment and scientists love their verbose logs, it's just that there's plenty of text log files eating up space! I remember generating terabytes of data from a simulation... as text...
 
I rigorously throw away logs myself but I suspect that this is part of the reason
 
Xeo
Holy shit, now my PC is really crawling...
 
@Xeo Oh my god this is the first PC ever that can swim!! Quick! Patent it!!
 
Xeo
Swimming in its own sweat. As a matter of fact, it's also the first PC that is able to sweat.
 
11:08 AM
ow, ow, ow
 
Xeo
Amagahd, Clang compilation has finished.
 
why oh why did I eat that bit of chocolate cake.
 
Xeo
Now I just need to shut down that vbox to reclaim my RAM...
 
I'm always amazed by the diversity of the different parallel topics going on in this room.
@KonradRudolph <spanishInquisition> Did you manage accessing that server, finally?
 
Xeo
With Clang updated, I should be able to finally update libc++...
 
11:11 AM
@Cicada Accessing it is not a problem, the SSH connection just times out at some point, and resets
… but that doesn’t matter now anyway because since the file system is full I cannot start new jobs anyway
 
@KonradRudolph But how about that hostname not found?
 
Xeo
@Cicada He mentioned that the servers aren't reachable from the outside, so tracert can't find it.
 
@Cicada Ah, that. Well, like I said the server isn’t visible to the outside, and from the inside I’m either already on the server or I’m on the gateway which doesn’t give me a Unix shell so I can’t check connectivity from there
 
@KonradRudolph Oh. I had understood that the servers weren't reachable from the outside but that you didn't land on the correct machine.
 
@Cicada We are multicore.
room topic changed to Lounge<C++>: We are multihardcore. [c++] [c++11] [c++-faq]
 
11:14 AM
@KonradRudolph you are a mac user right?
 
@R.MartinhoFernandes multi-threaded superscalar out of order
 
Xeo
room topic changed to Lounge<C++AMP>: Way too much blood flowing around here. [c++] [c++11] [c++-faq]
 
Konrad is a mac.
 
Xeo
lol
 
Xeo
11:14 AM
I was just editing it!
 
@bamboon ja
 
Yours sucks.
 
Xeo
room topic changed to Lounge<C++AMP>: We are multihardcore. [c++] [c++11] [c++-faq]
 
Guys guys! Mutexes before changing topic!
 
Xeo
lol
 
11:16 AM
You don't want to end with room topic changroom topic changeded to Lounge<LounC++Age<C++>MP>: We are multihardcore. [c++] [c++11] [c++-faq]
 
> I'm trying to print the contents of an unordered_map in reverse order
Kids these days.
 
Xeo
sigh
 
> I'm trying to hold my breath underwater without water
@R.MartinhoFernandes in reverse disorder
 
Xeo
Though I was kinda surprised that unordered_map doesn't have bidirectional iterators.
 
@KonradRudolph cool, you prefer homebrew over macports, right?
 
11:19 AM
@bamboon Obviously ;)
 
@KonradRudolph do you have boost with-c++11 installed?
 
Xeo
12:14:30 $ clang -v
clang version 3.3 (trunk 168978:168987M) (llvm/trunk 168977)
 
@bamboon Yes, but at the moment my whole Homebrew installation is fucked up and I can't do anything
 
Xeo
Hell yeah.
 
there's cross-talk between Homebrew and Mono apparently
 
Xeo
11:25 AM
@R.MartinhoFernandes: Really, had you told me a few minutes earlier that you want me to cross-compile something, I could've left out the host-only :P
 
@Xeo I don't need any cross compiling.
 
@KonradRudolph oh, that sucks
 
Xeo
@R.MartinhoFernandes Oh, wait, you just wanted me to test your ogonek lib?
 
@Xeo is 3.2 even final yet?
 
Xeo
../src/exception.cpp:50:38: error: use of undeclared identifier '__unexpected_handler'
    return __sync_lock_test_and_set(&__unexpected_handler, func);
                                     ^
@bamboon No idea.
 
11:30 AM
What is that?
 
Xeo
Most likely feature-locked, though.
@R.MartinhoFernandes libc++
 
@Xeo That and get some Linux binaries :)
 
Xeo
I see.
Lemme try to get libc++ running first, though.
 
Though now I remember that have initializer_lists in there (those variable sized static array things I mentioned). Hopefully libc++ ones and libstdc++ ones are binary compatible :S
 
Since when are UNIX signals considered as "an asynchronous synchronization mechanism"?
 
11:33 AM
But I'll have to work around it eventually.
@Cicada Since you mentioned it yesterday!
 
@R.MartinhoFernandes I didn't get any reply and it was before yesterday!
 
Xeo
libc++ is pointer+size
and
> namespace std // purposefully not versioned
 
I'll try the PHP room.
 
Xeo
lol
Again?
 
Or one of the 2873628 android rooms.
 
11:35 AM
@Xeo Matches, then. I still need to ABIfy that safely anyway.
I can simply grab the begin/end pointers and use them at the boundary.
 
Xeo
And I have no fucking clue how I'll fix that __unexpected_handler error.
 
Oh boy.
There's a guy trying to figure out how to create an operating system (!!!!) in PHP.
 
Are you trolling?
 
I tried that too
When I was 10
 
in PHP, 25 mins ago, by Christian
@DaveRandom I've got some design issues though. Let's say I'm extending the PHP part with direct access to kernel functions, how should I do this interface? Kernel::shutdown() (ugh) (static class as a collection of functions), $KERNEL->shutdown(); (global variable) or $k = new KernelInterface(); $k->shutdown(); (instantiate kernel interface, can be coupled with DI, Factory, Registry etc)
 
11:37 AM
That's not OS
 
Not sure if he's trying to do a driver or kernel.
 
That's god object
 
@CatPlusPlus No. He mentions the WDDK.
 
Yet another shitty design thingy
> FPC kernel + embedded PHP interpreter
Okay
You really only need some low-level glue and the rest can be written in anything
Using PHP for anything is stupid, but that's beside the point
 
0
Q: c++ dynamic allocatinon 2d array

János Balázsi'm practicing c++ and want to make a dynamically allocated 2d array, but i don't really know how to do it. I've searched the google and everithyng ,but just couldn't make it work. My cod so far is: postaH.h: #ifndef POSTAHH #define POSTAHH #include <vector> #include <string> #inclu...

WTF is that.
 
11:40 AM
@R.MartinhoFernandes allocatinon, clearly
 
getSzovegek?
 
@R.MartinhoFernandes // Returns the szovegek
 
according to The Google, Szovegek is Hungarian for text
 
@TheForestAndtheTrees lol, here it detected it as German, but did not translate. And fajlbakiir was classified as Malay.
 
Seems to be Hungarian yes
> Look at miss fancy pants C++ user
This derailment is going well.
 
11:45 AM
You are Miss Fancy Pants C++ user?
 
source?
 
Xeo
../src/cxa_exception.hpp:66:9: error: unknown type name '_Unwind_Exception'
        _Unwind_Exception unwindHeader;
        ^
I must be doing something wrong.
 
@R.MartinhoFernandes I suppose.
Derailed the room onto talking about... slicing food mechanisms...
 
Oh, I recognize that Christian guy. Came here trolling once.
 
can you start type names with underscores in C++? I thought was was disallowed
 
11:46 AM
Tried to convince us how bad C++ is.
 
Xeo
@TheForestAndtheTrees This is not my code
 
@TheForestAndtheTrees He is building the standard library.
 
Xeo
@R.MartinhoFernandes In this case, it's the ABI - libc++abi
Also, *trying to build
 
@TheForestAndtheTrees Technically, one underscore is legal, but frowned upon from what I hear.
 
11:48 AM
@Cicada Not always.
 
Xeo
underscore+uppercase is reserved.
and just underscore is reserved in global scope
 
Easier to just not use it and not need to remember all the rules.
 
in PHP, 40 secs ago, by DaveRandom
@Cicada So, essentially, you came in here to troll us with your pedantry skills? Also you seem to be under the impression that it is our fault that people use things for purposes other than that for which they were originally intended. Also, I really don't see what's wrong with that.
 
We can read.
 
All the PHP philosophy in here.
 
11:49 AM
Why are you in PHP room
2
 
I had a question about UNIX signals.
 
That's all I can say
 
I don't know. I was bored.
 
gifs, etc
 
cpx
11:53 AM
AMP?
 
Asymmetric multi processing.
 
cpx
Oh, I thought something like "Accelerated Massive Parallelism".
 
sbi
If I pass a string to std::bind(), will that be used (to call the function I also passed) per copy or per reference by default?
 
Ahwell. Did manage getting blocked by 2 users, which is a moderate success, I believe.
 
Xeo
@sbi copy
To get a reference, you have std::ref and std::cref (for const)
 
sbi
11:59 AM
@Xeo Thanks!
 

« first day (776 days earlier)      last day (4172 days later) »