« first day (1477 days earlier)      last day (3470 days later) » 

12:00 PM
@StackedCrooked both my arguments are int
what should i do to match
 
no.
 
@BhawinParkeria dude, try a little harder
 
mawning
 
@StackedCrooked i got what u meant , i have read something like that earlier , i have problem declaring it
decimal += pow(2,adder);
this is the line of code
 
12:04 PM
Just pick one of the overloads and ensure your types match. Use static_cast if you must.
 
here the value of adder is 3
@stack
@StackedCrooked , ok , thnx man
 
Asio's MutableBufferSequence and ConstBufferSequence are pretty neat.
We should level up from memcpy.
 
I agree.
 
> The buffers_iterator<> class template allows buffer sequences (i.e. types meeting MutableBufferSequence or ConstBufferSequence requirements) to be traversed as though they were a contiguous sequence of bytes.
 
user1804599
12:26 PM
@StackedCrooked Cool.
 
Stuff like this illustrates why the iterator abstraction is so central in stl.
And it also shows why memcpy sucks.
Because this fancy mutable buffer sequence is pretty useless if at the end of the line you have to pass it to a function that accepts (const uint8_t*, std::size_t) as params.
My dreams. Scattered.
 
wow
 
lol
 
I pay for 7Mb
 
Viva Italia
DSL?
 
12:30 PM
Alice DSL yes
It has been like that for a week now.
Can't even load a YT video in 720p.
It defaults to 144p
 
> Researchers at Bell Labs have reached broadband speeds of 10Gbps, while delivering 1Gbit/s symmetrical ultra-broadband access services using traditional copper telephone lines. These speeds can be achieved with existing telephone lines and can be used to deliver broadband where fiber optic cables can't be installed to the premise.[2][3]
 
So close
 
But the speed goes down as the distance increases.
So if you are lucky the company as a fiber cable up to control box near your home.
 
4G is pretty fast. Benchmarked 20Mb/s down and 10 up
Good enough for most things imo
 
Xeo
I have 50/10 \o/
 
12:34 PM
4G?
 
I get about 30Mbps with my DSL.
 
Xeo
@JohanLarsson Oh, no. VDSL
 
user1804599
Yum. Double hotdog.
 
Xeo
@JohanLarsson I do have LTE on my phone though, maybe I should benchmark that
 
I live in an old apartment that have some kind of cable infrastructure that does not allow outgoing traffic.
This kills the internet.
If it weren't for VDSL that is.
3.5 MiB/s is not bad.
> Belgacom has rolled out Alcatel-Lucent VDSL2 equipment in 21,000 street cabinets (Q3-2012) with more than 1,000,000 VDSL2 customers.
Wow, so many. That's nearly 10% of the population.
 
12:38 PM
I tried to clone a repo to my android phone, it failed, dunno why.
 
It's just TCP I think.
 
Xeo
Hm, 2mbps / 1mbps for my current LTE connection.
 
no error message but no dice either
 
Xeo
that seems kinda low
 
user1804599
git config --global alias.clown clone
 
user1804599
12:39 PM
Like a mime player!
 
@Xeo 3G?
 
@Xeo so your download speeds are only around 240KB/s?
Oh, wait, LTE.
I thought it was about your home connection.
 
Xeo
@JohanLarsson I think so
 
user1804599
I don't have slow mobile internet.
 
downside with modile internet is pay per GB and quotas
And signal in the north of Sweden
 
Xeo
12:43 PM
Yeah, it shows 'H', which is a better 3G thing I think
I don't really know
 
I think E < H < 3G < 4G but dunno
 
Xeo
H > 3G
 
ålrejt
 
Xeo
lol
man, my connection is shaky
now I got 3/3
okay, enough testing, that took almost 40MB. wtf.
 
hehe
I found an easy way for making RPG illustrations
Google Maps + PS filters <3
print friendly.
 
12:46 PM
nice
 
borderlands without colors
 
hehe.
too bad Google doesn't host post-apocalyptic Manhattan too
gotta find some construction or demolition sites
 
Actually, that's not even a stupid question.
 
suicidal thoughts are no more than electrical and chemical states, so it's no surprise that they can be chemically altered
 
I suppose it's just some kind of imbalance.
I'm surprised that the side-effect is so specific.
This imbalance leads to suicidal thoughts.
Ah well.
 
12:57 PM
Hello
Is there anyone which want to help me with a regex?
 
lol okay map B&W conversion is even better
because by changing colour balance you can highlight i.e. parks or streets
 
@curiosul What did the regex did to you?
In any case, there you go regexone.com
@BartekBanachewicz Just take any screenshot from a city in russia and it should be alright
 
@LoĂŻcFaure-Lacroix It's like SQL, it's giving suicidal thoughts.
 
Man I have nightmares because of SQL
 
user1804599
1:07 PM
@StackedCrooked tja
 
I really don't understand people supporting SQL... I'd rather have 100 query languages that works well than 100 versions of SQL. Whenever you start writing complex queries it's not sure it's going to work on all databases... MsSQL i'm looking at you
 
user1804599
Datalog.
 
user1804599
Datomic ftw.
 
What would you expect of NoSQL haters?
 
I have that string: <a href="edit.php?id=596"> I want to extract only id (596). My regex (edit.php\?id=)(\d*) returns edit.php?id=596, but I want only id, what I'm doing wrong?
 
1:09 PM
no.
 
@curiosul you can't parse HTML with a regex... end of line
 
And this mean...?
 
@rightføld Thanks, you just ruined she song.
@curiosul you need a different parsing strategy
however, regex can be useful if you just need to extract some stuff ninja style
 
@LoĂŻcFaure-Lacroix lol
might be a good idea actually
 
I can extract the numbers from returned string but I was thinking I can do this only with regex...
 
1:17 PM
But you should be able to figure this out!
Why on earth are you asking about parsing HTML using regex on a C++ chat?
7
 
:)) sorry...
 
I could have got the number out with actual code by now:(
 
@MartinJames <a href="edit.php?id=596&id=456"> Extracting the id with a url like that is much more interesting
Not that it's harder
 
cat file.html | grep href | perl -pe 's,.*?href="(.*?)".*,\1,g'
Is what I usually do.
I have a little experience extracting urls from html :)
perl regex ftw
deciding to use a regex is never not sloppy
 
1:23 PM
Your regex might not work if you have a _=3434&id=234
or if you have multiple href on the same line (all the html on the same line)
 
you can always do dirty preprocessing stuff like 's,href,\nhref,g'
 
This is not the point. My string is this: '<a href="edit.php?id=596">' (not any other strings). I want to extract just 596...
 
if you are working with html you are doing dirty work anyway :)
@curiosul Use \d+ instead of \d*.
And get out.
 
It reminds me the old time when I was downloading all the maps for tremulous
cat maps.html | egrep "regex for downloads" | xargs -n1 wget
 
lol windows piece of shit
 
1:27 PM
@LoĂŻcFaure-Lacroix I've done quite a bit of scraping as well :)
 
@curiosul check out htmlagilitypack
 
plugged external had disk -> disk is recognized under "Manage computer" > "Disk units", but not under "Manage disks"
 
#1 lesson: Always put a sleep in your loop.
because if you mess up your script will suddenly start sending hundreds of failing requests to the server
and that's how you get banned.
 
...
@StackedCrooked do you always give advise so people can write the slowest running code possible?
 
yeah... It reminds me how you can get banned from SSH if you use multiple private keys...
 
1:32 PM
you can get banned from ssh?
@chmod711telkitty yeah, pretty much
 
Well you have to setup something like fail2ban
 
Yesterday I was banned by my laptop.
 
after multiple failure, it bans the ip... when you try to login with ssh with keys and you didn't setup a config that tells which keys with which server, it will try to connect with all of your keys. If you happen to have many keys... you're likely going to get banned by your own server
 
It's at my workplace. And I was messing with reverse ssh tunnels settings. Suddenly couldn't access it anymore. I guess I'll have to wait until Monday.
@LoĂŻcFaure-Lacroix o I see
Yeah, I noticed that yesterday when using --verbose. It tries all kinds of ways to access.
I actually lost my connection to my VPS as well. But I could fix that using the web control panel.
 
I remember how one of my friend banned the school IP and none of my friend could use my git server...
 
1:56 PM
lol, uploading 140MB on dropbox -> 1 hour
 
Main site down?
Main site down?
 
or using gprs
 
@MartinJames WE'VE GOT A MAIN SITE DOWN!!!
 
@StackedCrooked He knew C++ programmers have to do a lot of testing, so we'd be the best at mocking (him for his foolishness).
 
2:10 PM
WOO I DID IT
I managed to configure routed networking
I can assign a public IP to a VM wooo :toot:
 
@CatPlusPlus which what?
oh
well... handy enough I guess...
 
Hetzner has rather strict routing policies, my problem was that I had a separate MAC assigned to the VM IP
But with routed setup the packets are going into the network with hypervisor's MAC
 
user1804599
Killing beauties is so much easier with an iPod.
 
user1804599
Yay I'm already past half of the game and I have 0 kills.
 
2:50 PM
@thecoshman Fucking timeouts/retries/logins shit.
 
Ell
my upstart is borked
 
3:52 PM
@Xeo Anime ratings are a funny things. Looks like the current top 3 ratings for 2014 are Fate/stay night (naturally) followed by Haikyu!! (a volleyball anime, wtf) and Ping Pong The Animation (heh).
TBH I watched ping pong and it was pretty good.
But still... "ping pong" lol.
 
We are about to failover operations to Oregon for read-only mode while we upgrade our core switches in the NY data center.
 
@rightføld And now I learn that the song was created by somebody from the Netherlands. LOL how fitting.
 
@RobertHarvey What did a lounger do this time? :P
 
I'm just here to ask a quick question.
 
No need to be quick. This is the slowest day of the week.
 
4:16 PM
If I learn this list will that make me (more or less) a C++ expert? Which ones are important, and which are trivial or obvious?
 
let me read it
 
skip 2, it's an implementation detail and provided by Standard now.
 
It explains lot's of stuff that most programmers don't know. Like name lookup rules etc.
 
3 useless.
4 holy fuck, that's an "idiom" now? maybe if you're a total moron.
 
4:18 PM
19 copy-and-swap should be known
22 CRTP too
24 EBO. you should be aware that it exists
 
5 not that useful.
 
25 enable-if too
 
6 definitely not required.
7 irrelevant.
8 irrelevant
9 useless
10 is a language feature and 11 is useless.
in short, this sampling is a bunch of useless crap, some of which was never idiomatic, some of which enables you to do things that there's no reason to want to do, and most of the rest stopped being an idiom 20 years ago.
 
OK. Great information, thanks.
 
@RobertHarvey What is your goal? If I may ask?
 
4:22 PM
Qualifying for an aerospace job.
Embedded C++
 
ah.
that is a totally different thing, because they have very hard requirements about predictability of both performance and correctness that regular code doesn't really need.
and also they have problems getting decent implementations of some language features.
that list is still worthless junk, but
there's no way to know in advance exactly what the prospective employer will accept unless you have employer-specific knowledge.
 
I see. What's a "decent implementation?" Numerics in Intel compilers?
 
well I mean things like implementations of exceptions that don't reserve large amounts of memory at program startup.
or implementations of RTTI that don't waste a bunch of space on type descriptors that are never used.
 
greetings fellaz
 
4:25 PM
these things are of no concern to most programmers but EC++ has quite different requirements... depending on the system being embedded, what it's supposed to do, and the amount of corporate bullshit involved.
so you can't really know in advance what language features will be available, or what uses of them will be considered acceptable.
 
but if you have virtual functions, it's still dumb to try to call a derived class virtual function from the base class constructor.
so that list is still worthless.
 
Seems I might be taking the wrong approach. Perhaps I should just purchase an embedded device, and learn C++ on that.
 
also no
 
@RobertHarvey Also this list of questions.
 
4:28 PM
each embedded system has it's own list of what it does and does not support.
in addition, each company has it's own strategy about mitigating the limitations of their environment.
the MISRA folks and the JSF folks did things quite differently IIRC.
 
> How would you implement a class that opens two files if you could not use exceptions? How would you implement that class with two files using exceptions?
How would you handle one of the files failing to open in the case where you have exceptions?
^ This is crucial. (Unless they decided to not use exceptions in their codebase.)
 
@StackedCrooked weird, this message apparently got me hilighted; the question is.. why?
 
@FilipRoséen-refp Operator error.
 
@FilipRoséen-refp I'm certain you imagined it
 
is it possible to list all messages that gave you a PING?
 
4:31 PM
I accidentally pinged you.
 
@StackedCrooked oh, you replied to my message first, and then changed it?
alright, that makes sense
 
@StackedCrooked "why does a destructor in a base class need to be declared virtual?" funny question, it should more accurately be written as "when does ...?"
 
.@BrentO We're discussing how to rig up LEDs to raspberry pis in the cage now. This may happen. With a color scale chart beside.
 
Indeed. Must be a trick question!!
> What is the overhead of calling a virtual function? Are there any situations when this overhead is larger or smaller?
Not sure about the second part here.
I suppose if the compiler could devirtualize it
Or perhaps a mention of temporal locality. But that seems far fetched.
(Calling the same virtual function the second time will be faster.)
 
4:36 PM
@StackedCrooked Well if you know the type at compile time it can call it directly as opposed to calling it through base class ptr
im guessing thats what its asking
 
@Feeds This is why SO is is read-only mode?
 
@Borgleader Ah. Yes.
Not sure if that will bypass vtable lookup though.
 
BTW, I wouldn't be opposed to rehabilitating this question and making it General Reference (when SO comes back up again):
33
Q: What C++ idioms should C++ programmers use?

PartialWhat C++ idioms should C++ programmers know? By C++ idioms, I mean design patterns or way of doing certain things that are only applicable for C++ or more applicable for C++ than most other languages. Why one should use the idioms, and what do the idioms accomplish?

 
We are rebooting core switch #1 in the NY data center now.
 
@RobertHarvey Jerry hits the nail on the head there.
 
4:42 PM
@StackedCrooked You can also cache the vtable pointer or the function pointer, I think.
 
how so?
 
The CPU will have the vtable in cache (unless some other thing got in the way), as well as the instructions in the instruction cache
 
well, you can also just leave it sitting around in a register
 
it might see that it's going to, potentially, execute the same thing one more time; and skip the lookup in the vtable (if it can prove that it hasn't changed)
 
vtables don't change. but the pointer to the vtable itself can change during construction and destruction.
which I think is an interesting thing
I mean, it enables a way to change your vtable entries. I never thought this was possible.
 
4:54 PM
@StackedCrooked unless a derived class provides additional information that is to be stored in a vtable, the pointer to the vtable will always remain the same; but the entries inside it won't
but it's all implementation details, talking about the vtable as a thing only makes sense if you are talking about a particular implementation
 
er, no.
you most assuredly do not mutate vtables.
you only ever mutate pointers to them.
 
Ell
@Puppy chill with the high and mightiness
 
The more I learn about C++, the more interesting I find it..
@Ell he's actually right on this one
 
there's nothing high and mighty about it
he's incorrect and that's all there is to it.
 
modifying a vtable would mean modifying a class, and thus affect all objects
 
Ell
4:57 PM
@StackedCrooked I know, but it's the "er, no."
 
er, no
me so high and mighty
 
@Ell Hows suzanne going?
 
Suzanne?
 
Ell
@StackedCrooked blender monkey that Halloween slut
 
I also want to know.
oh
 
5:00 PM
17 hours ago, by Ell
@Borgleader that is a distorted suzanne
 
Ell
@Borgleader :19735179 glfw is complaining about missing monitors. I assume this is because of my system updates yesterday
as a result, my opengl stuff isn't working :(
Ooh it's working now
 
@Ell you hooked up with a halloween slut? D: you luck bastard
 
Ell
@Borgleader nah I didn't really, I was working :(
 
damn :(
 
Ell
I'm trying to implement basic shading now
but it's complaining about getting a disabled vertex attribute
I think it's because the glsl compiler has optimised it out
> Getting the location of inactive program vertex attribute
but I think I'll just try using normals first
I have to go to work now
 
5:21 PM
how to make c++ forms application using netbeans
?
 
@BhawinParkeria no.
 
can anyone please tell me
 
@BhawinParkeria no.
 
so , what can i do
@BartekBanachewicz
any options
 
@BhawinParkeria no.
 
5:23 PM
@BartekBanachewicz then how programmers make windows applicaiton in c++
 
@BhawinParkeria with magic
 
@BartekBanachewicz great , thnx
 
sure. np.
 
anyone else please
 
Oct 22 at 18:58, by Cat Plus Plus
Don't be a bad apple, read the cheerful rules!
 
5:24 PM
@BhawinParkeria just leave
 
We are prepping a success over back to the NY data center now.
 
SO is coming back. :)
 
@Tacet ...eventually. As usual, the scheduled "30 minutes" of downtime ended up closer to 6 to 8 weeks two hours.
 
@JerryCoffin I prefer to be optimistic.
 
5:40 PM
@Tacet I am being optimistic. I did cross out the "6 to 8 weeks" after all... :-)
 
@Tacet What a sad day
 
@JerryCoffin Hah! Right. :D
@CatPlusPlus Nothing we can do.
 
@Tacet Careful with that. Anybody who remembers him is likely to find "There is nothing we can do" a trigger phrase.
 
@JerryCoffin Ok. I will remember.
 
@Tacet Oh--and stop doing what I tell you to.
 
5:47 PM
@JerryCoffin Damn. It's infinite loop.
 
@Tacet :-)
 
We are bringing traffic back to our NY data center now and restoring full site functionality.
 
6:11 PM
@JerryCoffin Oh. That guy. Is he still around?
 
I forgot what was that about
Oh it was some guy
 
@R.MartinhoFernandes So uh, I've been trying to compile ogonek with clang-cl. Is it possible you're missing a {} here ? (It fixed a compilation error for me)
Also, sadly, it seems MSVC's std lib is not playing nice with your optional type (something about a non constexpr operator bool, I haven't figured out why exactly yet)
 
I'm shocked
 
6:26 PM
@Borgleader Could be. I don't understand why it is needed, but I ran into something similar before.
 
The error message said it was because there was no user provided default constructor, but that doesn't explain much.
 
6:52 PM
@R.MartinhoFernandes Oh and... shouldn't all your std::is_default_constructible<T>() be std::is_default_constructible<T>::value ?
 
true_type/false_type convert to bools
 
note: non-constexpr function 'operator bool' cannot be used in a constant expression
 
lol it should be constexpr
 
MSVC guys fucked up
eh, ima fix it on my machine and see where that gets me
 
I'm shocked again
 
6:55 PM
at least its not a big change
 
@R.MartinhoFernandes ?
 
neat now its complaining about exceptions which i can temporarily fix by disabling them until clang-cl supports them properly
 
7:10 PM
20 hours ago, by Alex M.
I'll make this tomorrow
they turned out to be pretty good
 
Xeo
looks nice
 
I ate them with pickles and mushrooms & rice
the three went well together
 
7:23 PM
@AlexM. what is that?
 
chicken breast covered in flour + curry powder + chili powder + basil + salt + pepper covered in eggs covered in breadcrumbs and sesame
fried
 
user1804599
Yay, now I have infinite ammo.
 
shit, I missed curiosul
he was a fellow Romanian
I'd have told him he's in the wrong room for those questions in his mother tongue
 
ha, I finally found a good map
 
@R.MartinhoFernandes Not that I know of (thankfully).
 
7:39 PM
@BartekBanachewicz game?
 
@thecoshman RPG
 
@BartekBanachewicz dude, talk about bad hosting
 
@thecoshman meh
 
could this loading be any slower
 
it's a big image
 
user1804599
7:42 PM
Looks like NYC.
 
@BartekBanachewicz which one?
 
@thecoshman Neuroshima
@rightføld it's the Manhattan
 
it's so big firefox insists on unloading and reloading it every time I open this tab
 
lol
well I want to print it
so it needs to be big enough
printing 72dpi stuff sucks
 
does'nt help that the images comes with letter boxing
 
7:44 PM
that's irrelevant because png compression
 
@BartekBanachewicz yeah, but to print it, you'll want to crop those off
there's no sense behind those
 
yeah sure
i'm thinking about item layout on player card right now
and because I'm bad at Illustrator it takes me ages :S
 
user1804599
Wunderbar.
 
user1804599
> Kills: 0
 
Evening
 

« first day (1477 days earlier)      last day (3470 days later) »