« first day (1417 days earlier)      last day (3527 days later) » 

user1646075
1:00 AM
@BartekBanachewicz today's homework: use a new word in a sentence.
 
@BartekBanachewicz lol ;p ok
 
user1646075
@CatPlusPlus you might be right.
 
@aclarke better homework
 
user1646075
@LightnessRacesinOrbit where do you find these things? that's going in my screen saver
 
1:02 AM
@LightnessRacesinOrbit It's technically correct. I wonder why there's a "No" in it.
Good morning.
 
user1646075
not sure why orange is Hitler.
 
That too.
 
Orange you glad it's not Stalin
 
user1646075
@MarkGarcia teacher's comment
 
@LightnessRacesinOrbit lol
 
1:03 AM
@aclarke I know.
 
user1646075
ok then
 
@aclarke i will never tell!
@CatPlusPlus anddddd he's back
 
user1646075
@LightnessRacesinOrbit wow! That looks soooo much like
 
Stalin's back????
 
imgur
 
user1646075
 
@aclarke not too far from me, I am either in Hornsby or North Ryde nowadays
 
user1646075
Ryde? Optus?
 
user1646075
The Borg employer of the north-west it seems
 
nope ... labourer, my property is in north ryde I am doing owner building on my property
 
-7
Q: Why is a C++ Hello World binary larger than the equivalent C binary?

JackIn his FAQ, Bjarne Stroustrup says that when compiled with gcc -O2, the file size of a hello world using C and C++ are identical. Reference: http://www.stroustrup.com/bs_faq.html#Hello-world I decided to try this, here is the C version: #include <stdio.h> int main(int argc, char* argv[]) { ...

 
Check the edits.
 
user1646075
in other news - someone at my work here - who's a nutter for farcebook, DOESN'T know what NSFW means - SERIOUSLY?
 
user1646075
@chmod711telkitty and contracting C++, specialty: template traits, in your spare time
 
smart phone apps nowadays
used to be C++ developer
 
1:10 AM
Mmmh, I’m finding duplicates but they point back to a Windows-specific question. Not sure how best to proceed. Another one.
 
no you didn't.
 
user1646075
i languish in rails-land. V2.3.8 no less ;-< Biding my time before finding something else
 
@LucDanton IIRC, Bjarne uses Unix/Linux.
 
It's a rant/trolling/whatever, just nuke this shit and who cares about duplicates
 
1:11 AM
Hey everyone - I'm trying to deduce what sorting algorithm is being used by running a program while piping random integers. Does anyone have an idea of an algorithm that
- IS INCREDIBLY FAST for sorting random integers.
- EXTREMELY SLOW for sorting ascending/descending numbers.
I've never seen such characteristics.
 
user1646075
oh yeah - there is one!
 
@eXtremity Does ‘piping’ mean you want an online algorithm specifically? (I’m not sure I can help either way.)
 
user1646075
some sorts are fooled/misled by cleanish data. Can't think which one it is though
 
Errrr "|". That type of pipe.
program | text.txt
 
My question still stands.
 
1:13 AM
Sorry, I am taking my first C class. I do not know what you are asking. I'm sorry.
 
user1646075
ok, like this:
 
The program takes in user input.
 
@eXtremity No worries. It means ‘no’.
 
user1646075
all sorting methods compare elements to each other. Some compare a cleverly optimised set of elements and they are 'fast'. Some happen to compare them in a way where, if the data happens to be sorted already, then the choices of comparison are REALLY bad and they crunch horribly.
 
It's probably quicksort with a bad pivot selection
 
user1646075
1:15 AM
any general text on sorting algorithms worth reading should point this type of thing out, but I can't recall the specific instance that is known to suffer that problem
 
@CatPlusPlus No it's a perfectly fair question
 
I see. Yeh with 999,999 random integers, it sorts it incredibly fast. But if the integers are ascending....I end up cancelling the program because it is so slow!
 
user1646075
could be at that.
 
In computer science, an online algorithm is one that can process its input piece-by-piece in a serial fashion, i.e., in the order that the input is fed to the algorithm, without having the entire input available from the start. In contrast, an offline algorithm is given the whole problem data from the beginning and is required to output an answer which solves the problem at hand. (For example, selection sort requires that the entire list be given before it can sort it, while insertion sort doesn't.) Because it does not know the whole input, an online algorithm is forced to make decisions that may...
 
1:17 AM
@LightnessRacesinOrbit "Also wow, the optimized assemblies have hundreds of lines of assembly output? I can write hello world with like 5 assembly instructions using sys_write, what's up with all the extra stuff?" yeah right
 
@CatPlusPlus. What is considered a bad pivot?
 
user1646075
@Rapptz "online" ? I would call that streaming....
 
@CatPlusPlus It's totally reasonable. He's asking what the apparently redundant instructions do.
 
I have the following possibilities:
Normal quick sort: (pivot is the last element)
Quick Sort Median of Three:
pivot is the median of first last and middle elements
Randomised Quick Sort:
list is shuffled then vanilla quick-sorted
 
user1646075
@eXtremity if it happens to trick itself into picking the first element as the pivot when the data is sorted, then it'll go postal with it's recursion
 
1:18 AM
its*
 
user1646075
@LightnessRacesinOrbit shoosh, grammar nazi. Wearing an orange shirt today?
 
user1646075
wait, is this homework?
 
@LightnessRacesinOrbit Bah, it's shit and it belongs in trash
 
user1646075
'cos if it's homework, bubble sort is usually the best choice for sorting but it does tend to degenerate, especially for sorting co-prime numbers
 
1:20 AM
But you're right it fits SO perfectly
 
You could say that.
But I do it in class =/ - not at home xD.
 
hey don't laugh
but I've installed an AV software
 
Is there anyway to retrieve emails from a .OST file?
 
Try using a hammer
 
I kinda feel like I've been scammed
but this particular AV really seems well thought
 
1:31 AM
@CatPlusPlus. Thanks for you help. I just found:
http://stackoverflow.com/questions/164163/quicksort-choosing-the-pivot
 
user1646075
for windoze i'm comfortable with microshaft's inbuilt - what's it called? All the commercial AV's ended up feeling like a goddamned virus themselves, the amount of load they put into the system. Gave me the shits they did.
 
I believe it is a quicksort with its pivot at the end.
 
user1646075
... and would that also suck for reverse sorted? Yes, I believe it would suck equally from both ends.
 
@eXtremity No. With a pivot equal to the largest or smallest number of the list. (If you mean the worst scenario)
 
user1646075
he said is was lightening for random lists. ummmmmm
 
1:33 AM
Oh he meant for nearly sorted ones.
 
user1646075
maybe it's picking the point of the smallest number it finds, which would be mostly decent for really messy order
 
user1646075
yup
 
Still applies.
 
Coolest dog ever to not be allowed
 
user1646075
i'm just thinking that picking the first element each time should suck for even random lists. /shrug - ancient science
 
1:38 AM
For random list it's randomly sucking
 
Someone should make an IO library named "toilet" just for the giggles when you call the flush function.
 
user1646075
@MarkGarcia and Toilet::open
 
user1646075
would sitting down be 'buffered mode'
 
@aclarke Yes. ;)
 
user1646075
let's see where we can go with this....
 
user1646075
1:42 AM
 
If you're an expert, even if the lights are turned off and with a sleepy head you can still pee through it.
 
user1646075
exceptions: overflow,
 
if you are an expert, you would know this is a dumb idea ...
 
you underestimate my pooping skills.
 
user1646075
awwwwwwww. Because it was so cute.
 
yeah
poor thing
 
user1646075
just read what an RNLI is. Brave to be volunteering to rescue in the north sea. I bet they end up needing a rescue smoetimes.
 
yeah
poor things
 
user1646075
2:27 AM
this is surprising (me? cynical? p-shaw!) but ... heartwarming bbc.com/news/magazine-29013707
 
user1646075
lots of money donated. That's gotta be a win regardless of why
 
user1646075
geez some people can be seriously cynical.
 
user1646075
 
user3010322
3:11 AM
 
user3010322
Christ, is freetype a bitch to get to behave properly.
 
Well, I vote today the most interesting event of the year
 
@CatPlusPlus I often listen to the Homeworld OST, esp. when going to bed.
 
Why are android emulators so slow? This whole eclipse/android sdk thing seems pretty bad to me.
 
user1646075
3:30 AM
maybe trying to emulate a distinct processor that's reasonably close in performance - could it be hitting a limit of performance? After all your (presumably) x64 chip has to interpet the (what?) RISC chip that's in most phones.
 
user1646075
If emulation efficiency is 1/50 and the two chips are only 1/10 in performance apart, you're going to have a deficit of 1/5 performance
 
I think it's an intel corei7 trying to emulate an intel x86 atom
 
user1646075
@chris How so? what evidence do you base this on?
 
@chris You mean yesterday?
 
it takes several seconds to move from page to page in the android OS
 
user1646075
3:32 AM
@AaronKyleKilleen emm - I would naively expect an i7 to be able to run at least most of the atom code under some sort of protected mode. Then again, I'm assuming tehy're the same instruction set to be that naive
 
user3010322
 
user3010322
KEEEMMMMIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIII‌​IIIING
 
user3010322
Y U NO LISTEN ;~;
 
@Rapptz Yeah, it's still 11:30 here.
 
Same here.
But the cool events happened 31/8 not 1/9.
 
3:33 AM
And today was pretty much the reaction and updates on everything
 
nah
yesterday was way cooler
 
I was asleep >.>
 
sucks
 
user3010322
Holy shit
 
I still got a lot out of updates today.
 
user3010322
3:34 AM
This laptop has the worst plug design
 
user3010322
Jesus christ it's been nearly 3 weeks since they've had my laptop hostage
 
user3010322
I want my fucking laptop back
 
user3010322
Who takes a laptop for 3 weeks to do repair?!
 
user3010322
Fuck tech support.
 
Plus I topped my top Reddit comment today, and it was just a normal AskReddit one.
 
user3010322
3:35 AM
Fuck them and their bullshit.
 
@ThePhD 3 weeks lol
 
user3010322
@chris Called in the RMA and shipped it to the the same day they sent me the box. I've been prompt and answer all their phone calls. Then they go just completely radio silent for 2 weeks.
 
user3010322
I can't even.
 
user1646075
@chris show
 
@aclarke Giving away Reddit username. Too risky.
I'd rather go for disbelief. It was something kids think they fool their parents by doing.
 
user1646075
3:39 AM
@chris heh ok
 
In any case, my comment karma rose like 50-100% in one day.
 
user1646075
@chris useful forensic evidence...
 
@aclarke I kind of counted on no one figuring it was worth the time.
 
user1646075
@chris pity about that, 'cos it is(n't)
 
user1646075
3:45 AM
sometimes I wonder how easily some of my alter-ego's from way back could be found. I should try one day
 
user3010322
4:08 AM
@JerryCoffin You know, I'm not sure I like GDI+ anymore.
 
user3010322
I just used GDI/GDI+ to rasterizer some text to a bitmap. I then used FreeType to produce nearly the same results.
 
user3010322
FreeType is nearly ten orders of magnitude faster than the GDI solution.
 
user3010322
I can rasterize fonts on-the-fly now.
 
user3010322
And by "nearly the same results", I mean that my eye can't tell the difference between 20 point GDI and 20 point Freetype Arial Regular ASCII.
 
user3010322
The code is drastically smaller, and it's abut 2000% simpler to reason about than GDI/GDI+.
 
user1646075
4:11 AM
are there setup costs that get amortized in GDI? (being an apologist here)
 
user3010322
I front-load GDI+ in my TextDevice class, that's then passed to the GDIRasterFontLoader just like FreeType.
 
user1646075
so you timed only the working biz ... ok
 
user3010322
FT_Library is init in TextDevice, which also stores a reference to the target window / surface.
 
5:32 AM
hi ppl
does the world really need another C++ tutorial book?
 
user1646075
@FrozenFrog ummmmmmm, does it cover new business?
 
user1646075
@MarkGarcia kill me now. They're Monty Pythoning
 
6:46 AM
@FrozenFrog Yes, if it is C++14 based.
 
or C++11 really
 
user1646075
or just a new edition of a previously successful book would be sufficient.
 
user1646075
wonder how many Java books there are out there. Scary thought.
 
user1646075
also HTML also CSS also blah blah blah
 
So this name came up in design stuff at work: "Lucy Wilkilson". Sounds like "Will kill son."
 
7:01 AM
@FrozenFrog no.
 
7:22 AM
@MarkGarcia The one who wrote "No" down was clearly a fan of Hitler.
 
:O The trello board was closed!
¬_¬ Arnaud Bellec
 
Not sure if reasonable. ideone.com/Mt5JH0
 
Xeo
@PolymorphicPotato eeeh
 
@TonyTheLion ¬_¬ do I have to?
@FrozenFrog is it good?
 
@Xeo I think the reasoning is that D::i shouldn't know it can override B::i, since B::i is private, so it cannot know B::i exists at all.
Or it is an optimization bug. :F
 
1 message moved to bin
That one lasted a long time
 
So I was playing with the Stylish plugin for Chrome and FireFox, trying to make one web look better to me.
It seems to me that CSS is being abused rather than used as intended for setting up layout of the page.
 
@MarkGarcia With what, actually? I don't always "get" reddit.
 
All the things you have to do to get individual divs into the positions that you like is completely unintuitive.
 
7:51 AM
@sehe How people comes up with these stuff. Mostly because I can't.
 
@VáclavZeman it seems to me that HTML/CSS is built for vertical pages. Trying to get things side-by-side neatly is very awkward.
@MartinJames o_0 I worry about you
@sbi I just get the feeling that you would be half inclined to a similar such act. vOv don't think too much about it.
 
@MarkGarcia Oh, talking nonsense is nice. But it's not a spectator sport for me
 
Xeo
8:10 AM
@LightnessRacesinOrbit Should've been "Hitler brown"
 
@Xeo Totally, especially also because Eva Braun was his wife.
 
A friend of mine recommended this yesterday :c
 
8:29 AM
@Jefffrey Omg, are people that gullible?
 
I don't see how gullibility comes into play
morning
 
When I expressed my concerns, he calmly reassured me the password is not actually sent to the server. You don't actually submit it.
I swear to God, this guy is smart. Sometimes though...
 
so, the worst programming question is "how do you detect a cycle in a linked list"
without reading the rest of the article, my answer is "insert a guard and iterate until the end or until you find it"
 
would not a linked list be able to return you both the (what it thinks) is the start and end object?
for they would normally track what the head and tail are, right?
 
what if it's singly linked?
 
8:39 AM
thus if you get those two, and they have pointers in both directions, something is wrong... though I guess that's not strictly speaking a cycle....
 
it doesn't have to have an end object
 
@BartekBanachewicz then you only need to look at the head/tail object. but again, not strictly detecingi a cycle
true
 
> In this case, the generally "correct" answer is a tortoise-and-hare algorithm, where you have two pointers at the head of your linked list, one traverses the list two nodes at a time, and one traverses the list one node at a time; if ever the pointers point to the same node, you have a cycle somewhere.
 
@BartekBanachewicz but that can loop for some time...
your method is what, o(n)... you just have to go through each item once.
 
@thecoshman the point is that the question is terrible.
 
8:41 AM
that method could require you to loop through it many times, no?
 
> Sure, there are easier answers, like marking each node with some kind of 'seen' boolean, or traversing the list from each node to see if you come back to it, or duplicating the list into a hash and looking for a collision, but as soon as you provide those answers, the interviewer will add restrictions saying to use less memory or use less time or don't modify the underlying data structure. The only one that makes the question "stop" is the tortoise-and-hare algorithm.
 
soo... the idea is the 2n iterator will hit the loop-back point first, and will be either in front of behind the 1n iterator... and will soon catch up with the 1n iterator...
It just feels like to me there are going to be certain numbers of elements that will result in that failing...
 
In computer science, cycle detection is the algorithmic problem of finding a cycle in a sequence of iterated function values. For any function ƒ that maps a finite set S to itself, and any initial value x0 in S, the sequence of iterated function values must eventually use the same value twice: there must be some i ≠ j such that xi = xj. Once this happens, the sequence must continue by repeating the cycle of values from xi to xj−1. Cycle detection is the problem of finding i and j, given ƒ and x0. == Example == The figure shows a function ƒ that maps the set S = {0,1,2,3,4,5,6,7,8} to itself....
 
MC 1.8 is here!
 
Xeo
ooooh
ooooooooh!
 
8:48 AM
must... upgrade... server!
o_0 there's a reason to sort out my pi
I use that to hop to my dedicated server
 
@Greg: Yeah, and a permanent record of our fingerprints :( I'm still waiting for the day that they show up, thousands of miles away, at some crime scene... — Lightness Races in Orbit 10 secs ago
@Jefffrey What concerns?
 
Xeo
@thecoshman We can't yet, our server runs on bukkit :(
 
@Xeo lol lol lol
 
9:03 AM
@thecoshman MC?
 
@VáclavZeman minecraft :D
 
@thecoshman Oh......boring.
 
ooh, some sort of EULA thing you need to sort out for 1.8
 
Xeo
Only if you take money for your server in some way
 
with the standard mc, there is now a 'eula.txt' that you have to update to have a setting to true to say you agree
oh my god, here I go :D
 
9:15 AM
my class names are officially exceeding 25 characters
 
9:39 AM
yaaay a smartwatch
 
@BartekBanachewicz I have to admit having class names longer than 25 characters, but it's all unofficial.
 
you're unofficial!
also your mother's unofficial!
 
hm this pebble thing looks really nice
I mean an e-ink screen is a sensible idea for a watch
 
9:58 AM
lol a new microsoft commercial youtube.com/watch?v=nRV76VbTq-8
okay, it seems the only commercials microsoft is able to do are essentially those in which they point at others' products and say they're bad
at least in this one they didn't say "siri sucks", though the video's title gives it away
in the last surface ad there was a line like "you mean your surface is better than my macbook?"
or something like that
 
my arse is better than a macbook
 
@Puppy typical puppyism
 
my arse is better than a typical puppyism
 
that's also a typical puppyism
 
10:09 AM
you're a typical puppyism
 
no, I'm not a typical puppyism
 
i disagree
shit, i was eating a thing and I dropped it
 
they also got htc tho make a phone for them, which makes sense because htc was doing really bad
 
hmpfh I can't get gmail notifications to work
 
your mother can't get gmail notifications to work
3
 
10:14 AM
I bet they have this entire division constantly looking out for companies almost going bankrupt
i.e. the only companies desperate enough to make WP devices
 
Xeo
I like my WP so far
 
WP really isn't doing that bad.
 
@Puppy lol it's getting hilarious
 
you're getting hilarious
 
yeah I wanted to inb4 "your mom is getting hilarious"
 
10:16 AM
I don't usually go straight to "your mother", even when I'm feeling brainless
 
I always thought I might be socially impaired but you're just on a whole new level
 
your mother's socially impaired.
 
@Xeo it's nice but not exactly popular among manufacturers, and I'm not sure it's microsoft refusing them
 
@Puppy you must have a lot of brains if you can understand how brainless you are.
 
they're occupied doing something far more important than chatting
 
10:19 AM
@Puppy fapping? you don't need to use brains to do that
 
no.
 
what? are you afraid of being discovered? worry not we won't tell it your mother
 
I doubt that my mother believes that I don't fap
 
that's because you don't do anything else
 
that's not true
I also play games, help my mother play Scrabble against the computer, and play with the dog.
 
10:24 AM
poor dog.
 
that useless mutt lives a perfectly happy life
all she wants to do most of the day is bark at workmen and sleep on your lap
 
she just pretends to be happy
 
I bet you that if I go stand near the sofa she will leap on top of it and bark at me to take her for a walk
in fact I might just do that
 
BOOST_ASIO_ENABLE_HANDLER_TRACKING doesn't seem to work on Windows :<
 
is that the flag for debug output?
 
it worked for me
I had to #define-it in each file that used asio's stuff
 
I am not a primitive savage, so I defined it in the build script.
 
10:46 AM
haha
 
I'm not sure why what I did was necessary, I remember seeing a SO answer stating that you have to define it in each file
it didn't work w/o doing it, that's for sure
 
say what
 
$ ./a.exe
$ ./a.exe 2>a.txt
$ cat a.txt
@asio|1409655066.305706|0*1|io_service@00AA7640.post
@asio|1409655066.305706|>1|
@asio|1409655066.314712|<1|
@asio|1409655066.861193|0*2|io_service@00AC9BE8.post
.
.
.
 
I don't get it.
 
10:53 AM
If I don't redirect standard error, I get nothing.
If I do, I get the stuff.
No idea why.
 
Xeo
lol
 
are you using cygwin or does redirection also work like that on windows?
 
I don't think windows has cat
 
that's true but then there is anything on windows in some obscured ported way
 
Windows has all the tools if you install them
 
10:57 AM
I use git's bash from time to time
 
Pretty sure that's unrelated.
 
@Jefffrey huh didn't hurt at all
 
Normally stderr goes to VS's output window.
Not this one.
 
@R.MartinhoFernandes ah yeah, I was actually just wondering
 
Asio must go out of their way for this to happen.
 
10:59 AM
Can C++11 enum class have conversion operator or some such thing?
 
@R.MartinhoFernandes They might use OutputDebugString() or something like that.
 
i.e. going out of their way.
 
Xeo
@VáclavZeman nopes
 
@Xeo OK, thanks.
 
11:18 AM
> dot: graph is too large for cairo-renderer bitmaps. Scaling by 0.407524 to fit
WTF is this.
Why am I being pursued by idiots that refuse to use the transistors I paid for?
After the scaling, I got a 1561x32767 image :<
32767 :<
 
> 3D Printed Concrete Castle Completed hackaday.com/2014/09/01/…
whoa
 
@AlexM. Meh, it doesn't print its own supports.
The one we have at work does.
 
0
A: why is c++ std::max_element is so slow?

Vlad from MoscowYour function my_max_element is simply invalid. inline int my_max_element(const std::vector<int> &vec, int size) { auto it = vec.begin(); int max = *it++; for (; it != vec.end(); it++) { if (*it > max) { max = *it; } } return max; } F...

One valid point, two completely invalid ones. Nice.
 
grump grump
bad mood
 
Xeo
this is what I got. max_element is so slow that even max_element is 70% faster — Bryan Chen 2 mins ago
haha
 
11:29 AM
hahha
 
@Xeo :D
 
@Mysticial should write an answer with over 9000 score on that.
@R.MartinhoFernandes Wat.
 
It's the scaled graph that cairo rendered for me.
Very useful.
 
@R.MartinhoFernandes please tell me that is not an inheritance tree
6
 
11:34 AM
@thecoshman lol, no, it's an asynchronous event tree.
@Griwes -1 not enough nonius.
 
Xeo
@Vladp Who do not understand you or me?:) — Vlad from Moscow 1 min ago
 
yh
pebble integration with android isn'tt particularly good
 
@Vladp I answered your question. So it is your problem that you do not understand what I wrote. — Vlad from Moscow 3 mins ago
 
Xeo
wow
I forgot how bad Vlad can be
 
yeah... those stupid Russians...
 
11:46 AM
Hmm, think I broke something.
Ah, nope.
 
@Griwes the main issue there was discovered ages ago, it's that the c++ standard requires min and max to take and return references.
 
0
A: why is c++ std::max_element is so slow?

Maxim YegorushkinYou are probably running your test in 64-bit mode, where sizeof(int) == 4, but sizeof(std::vector<>::iterator) == 8, so that assignment in the loop to int is faster than to std::vector<>::iterator (this is what std::max_element does). If you change std::vector<int> to std::vector<long> results c...

wat
 
Xeo
2
A: why is c++ std::max_element is so slow?

dypThere seems to be an optimizer bug/artifact. Compare the times of: template<typename _ForwardIterator, typename _Compare> _ForwardIterator my_max_element_orig(_ForwardIterator __first, _ForwardIterator __last, _Compare __comp) { if (__first == __last) return __first; _ForwardIterator __resul...

nasty
 

« first day (1417 days earlier)      last day (3527 days later) »