« first day (1382 days earlier)      last day (3559 days later) » 

user3010322
10:00 PM
11/10 helpful information.
 
@CatPlusPlus Doesn't JSON require double quotes?
 
That's Python representation
 
It sure looks as hell like JSON.
 
it's not.
 
Why would I serialise JSON as JSON
 
10:03 PM
Because JSON rocks.
 
I prefer gold rocks
 
So, I'm running a fairly IO intensive operation, and it freezes Visual Studio.
My CPU is barely being touched.
I'm guessing they're doing a hell of a lot of synchronous IO in VS.
 
Waiting for background operation to complete
 
@AlexM. Not sure how you manage with such a small requirement for LOC.
 
user3010322
They do, in hundreds of small operations.
 
user3010322
10:06 PM
On lots of tiny files.
 
VS is not very good :v
 
Windows is not very good
 
user3010322
If one of those file blocks, VS throws a giant fucking pissfuckfit.
 
user3010322
I know, because whne my scratch drive was my failing D drive, VS would eat shit
 
user3010322
As would every other program
 
10:07 PM
@Rapptz it's my own requirement, and usually can't be met when I work with other people's code
only with mine
but for me it works
 
Still, how do you even manage?
 
guess it's a matter of habit
 
user3010322
because the IO operations would just block for an eternity while it waited for a 500 byte temp file.
 
120 LOC is really small
Is everything you do basic or something
 
vOv
 
10:07 PM
@Rapptz Unless you're talking about APL.
 
I think the longest I ever had was...
let me check
 
12 inches
 
user3010322
Each function is in its own file. :D
 
Ell
I wonder when blocking IO is ever a good idea
 
573 LOC was my longest file ever
and I had a very hard time working with it
 
10:09 PM
Base classes for my models are almost 250LOC
 
there was no way to split it though
so I just had to work with it
@ThePhD nah
if it's illogical for two parts to be separate I don't separate them
 
@Ell When you don't have an interactive UI and it doesn't matter if you block or not
Non-blocking I/O is way more complicated flow-wise
 
this function I have is 147 lines
 
If you can get away with not doing it, you should
@Rapptz That's probably too long :v
 
lol probably yeah
 
10:10 PM
well it includes comments, newlines, and braces.
 
I have like 50 lines on screen
So your function is 3 screens congrats
Braces don't take vertical space unless you're bad at them :v
 
only 50 lines on your screen?
how small is your screen? o.o
this laptop is 1366x768 and I can view 75 lines on my screen
 
My font is too small as it is
I'm not going to squint at the goddamn screen to see the code
 
my screen is tiny, I can only see 29 lines it seems :D
well it makes sense
1440x900
 
I use 10pt Consolas
 
user3010322
10:13 PM
16 lines. :c
 
interesting
 
@AlexM. I thought just yesterday I pointed out that 1200 is the minimum vertical resolution for real use. May not have been yesterday, but certainly quite recently.
 
user3010322
p. sure yesterday
 
also I miscounted
 
1200 is kinda huge
 
10:14 PM
it's apparently 50 lines
 
I was planning a monitor upgrade
 
heheh
 
but it was more in the way of 3 x 1080p
to also include surround gaming
 
1200 is quite nice compared to 1080
 
10:16 PM
bah
had to shut down my machine to try and entice some large flying insect to find another home
 
Gah I found the error
Stupid Django querysets repr to lists for whatever stupid reason
Fuck this ORM
 
Ell
How do you get the cool bar at the bottom?
 
vim-airline or similar
 
Old Powerline
 
10:21 PM
That wasn't a password :)
 
Argh Firefox again forgets how to render chat when I switch tabs
Why is everything so bad
 
@RareBox I certainly prefer it. The only way I've been happy with HD monitors (so far) has been (at least) two side by side, turned vertically.
 
Ell
@CatPlusPlus does that for me too sometimes :/
 
@CatPlusPlus How can you like Django. It's basically 60% magic.
 
@CatPlusPlus Don't you wish you lived in the 1600's, so you could blame it on a witch or evil spririt?
 
Ell
10:26 PM
@Jefffrey he doesn't (I don't think)
 
@JerryCoffin I blame it on idiots instead
@Jefffrey All of our projects are on Django, everyone knows it, etc. Also it's still probably the best choice anyway
 
You mean the transparent/black elements?
Happens to me all the time.
 
Yes
Microframeworks might look nice if you're a hipster, but are shit for actually getting crap done fast
The "we're not micro but we're not monolithic actually this thing barely holds together" things like Pylons are no better
 
@CatPlusPlus Yes, but if you could get the idiots put to death in horrible ways...
 
I'm not using Zope
And that leaves things like Tornado that desperately need some batteries included to be actually usable
 
10:28 PM
Zope is like the '90 predecessor of pyramid?
 
Zope is Python meets Enterprise
 
But ok, I see your point.
 
It spawned a lot of standalone components, but the Zope framework was p awful
Dunno if that's still a thing even
Repoze is probably the Zopest thing still alive
 
web development is really terrible
 
@Jefffrey s/development //
 
10:32 PM
Tornado would be a nice base for a new framework
With asyncio/Twisted instead of WSGI
 
TIL my laptop has built-in gps, could not find good use for it. Maybe it needs some app.
 
hah
crushed stupid insect
it tried to hide behind a box.
I simply moved the box.
 
simple & elegant
 
they annoy me because I need my windows open to stay cool; but they are attracted to the light.
I should get some kind of insect netting.
 
nothing from codementor?
 
10:37 PM
Jul 19 at 23:51, by R. Martinho Fernandes
Use a mosquito net.
 
@JohanLarsson nope.
 
Maybe be vacations can explain the delay, would expect business to be really slow this time of the year.
 
@Puppy ...or else move somewhere that insects are so rare you don't need to protect against them. Hardly ever a problem in Antarctica from what I've heard... :-)
 
I also doubt you need to open the window to cool down
 
@Puppy Hardly ever a problem getting just as cool as you want.
 
10:41 PM
@JohanLarsson More likely it seems they just don't need more C++ mentors. The ones they have have low activity.
 
@JerryCoffin I snapped this and this pic @69 deg N
 
@JohanLarsson Yup--that's why advised Antarctica, not northern Canada, Alaska, etc.
 
oh, but then there is the penguin plague
 
penguins are kinda cute
 
@JohanLarsson Hardly ever jump in through windows though.
@JohanLarsson Not to be mistaken for the Penguin Plaque, awarded annually to the biggest contributor to the Linux kernel.
 
10:46 PM
How many do you have?
 
hmm
I want to write a covering letter for this application.
but I'm too tired.
also I need to edit my cv a little.
 
@JohanLarsson None. I only made one really trivial contribution, and that was so long ago you'd probably have a hard time even finding the code today. I believe I was the first to do a serial driver that enabled the FIFO in a 16550 UART if available though.
@Puppy I recommend an "O" in about a 10000 point font. Should be big enough to cover almost any application.
 
@Puppy I read CVs somewhat regularly, can review it if you want.
 
hello
 
@JohanLarsson Tomorrow.
sleep now.
insect crushed..
 
10:52 PM
@Puppy Sounds to me like Samuel Clemens' statement about "classics" applies here. Somebody told him his books weren't really classics, and he replied that a classic is a book nobody wants to read. They just want to have read. You don't really want to write the cover letter. You want to have written the cover letter.
 
11:08 PM
I want to have written this stupid code already
But 'show at revision' seems to work properly
 
Work?
 
Dates are formatted differently, but w/e UI issue
 
Argh I probably have to get fake models for saved related data too
 
found this on /r/programming lol
 
11:10 PM
> For engineers
CLI too hard
 
(Is the real time number of online SO users displayed somewhere ?)
 
No, that's extremely taxing metric to keep
 
@quantdev Doubt it. What exactly does "online" even mean?
 
Who wants that
Maybe they have "real time" non-expired GA sessions
But that's not public anyway
 
I just wanted to see how many are on th site at a given time of the day.
Ok
@JerryCoffin e.g. (I picked a random forum) , look at the right : hardwareforums.com
"Members online now" this is what I meant, never mind : )
 
11:15 PM
@quantdev You could probably get some secondary indications on SEDE, like number of questions read or posted at various times of day.
 
@StackedCrooked Already looking at it.
 
oh god versioning seems to be working
 
@CatPlusPlus Something is working? You're testing it wrong.
 
@quantdev Most such things are really just "how many unique IP addresses have our web servers received connections from in the last N minutes", for some arbitrary value of N.
 
11:17 PM
Well, webapp sessions mostly
 
@JerryCoffin it could also be amount of accounts that are logged in (if they somehow keep track of that)
 
@StackedCrooked Your operator= is messed up.
I assume you did it because you wanted to get rid of copy/move in one blow.
But now you can't do std::is_copy_assignable et al. I don't think.
 
@Borgleader In most cases that'd end up pretty much the same thing (you typically get logged out automatically after N seconds of inactivity).
 
@MartinJames Excuse me I have 0.1% coverage and all 2 tests pass
 
> // increment = decrement; // causes segmentation fault
 
11:21 PM
looking at college fees are painful
 
Ell
I love c++
It is so beautiful
 
Stop taking drugs
 
@Crow s/are/is/ (the subject is "looking at college fees", which is singular).
 
take more drugs
 
@CatPlusPlus Here I was thinking "Cat should take some of whatever he's on."
 
11:23 PM
@Jefffrey Fixed it. (forgot initialization list in copy constructor)
@Rapptz I wonder if it will cause problems in case the object has member pointers that point to other members.
not sure how things like that are usually implemented
 
operator=?
 
@JerryCoffin Drug that might convince me to like C++ would have to be terribly lethal
 
@StackedCrooked You forgot to edit out the "causes segmentation fault" comment (important because code that's known to not work is officially off-topic on CR).
@CatPlusPlus Might be lethal, but you'd apparently die happy.
I you can like C++, you can probably be happy about almost anything (except PHP).
 
Terribly happy
 
Ell
I just think how much you can do at compile time in c++ is impressive
 
11:32 PM
@Ell I think how slowly you can make the compiler run is really impressive (note that I did not say the impression was necessarily positive).
 
Ell
Haha true :L
 
Anybody can do that
 
@JerryCoffin ok, removed it
 
@StackedCrooked Cool. I'll probably post a review tonight after work (which you probably won't see until tomorrow morning).
 
@JerryCoffin That's alright :D
Not in a hurry ;)
Thanks btw.
 
11:42 PM
@StackedCrooked Wait 'til you see the review before you thank me--it might end up pretty useless. :-)
 
@CatPlusPlus you should try some of @DeadMG's drugs
@JerryCoffin Ok. Consider it to be a provisional thanks.
 
@StackedCrooked :-)
 
@StackedCrooked What are you asking for review on?
 
@Rapptz I want to know if it's correct and not ub anywhere.
 
Ell
I think he means what code
 
11:50 PM
4
Q: Function wrapper like std::function that uses "small buffer" (stack) allocation

StackedCrookedMy Function class is similar to std::function but uses stack allocation instead of heap allocation. This code uses some features (placement new etc) and it seems rather delicate so hence this review request. #include <cassert> #include <functional> #include <iostream> #include <new> #include <u...

 
Nah. I meant review on what aspect.
 
@StackedCrooked perhaps not ideal to edit the code all the time in case someone is writing an answer/review :)
 
@Rapptz The rules of the web site are that you can ask people to concentrate on specific aspects, but people are always welcome to review any and all aspects.
 
Ell
Why does the buffer have to be a constant? Does sizeof(some func type) not work? [tag: noob-question]
Ahh wait
 
@JohanLarsson Definitely frowned upon to edit the code after anybody posts a review, but he was quick enough with the editing that I doubt it's a problem.
 
Ell
11:53 PM
I understand nvm
 
Well, I gave an answer
I have to eat now though :p
 
@JerryCoffin yeah
 
@Rapptz I think your proposed copy-assignment op is not correct.
It must delegate to Impl operator=. However, Impl objects can be different even if function signature is same (increment vs decrement).
 

« first day (1382 days earlier)      last day (3559 days later) »