« first day (688 days earlier)      last day (4253 days later) » 

10:00 AM
Thanks.
 
@Cheersandhth.-Alf lol
The place to ask questions about C++ is stackoverflow.com
 
sbi
@oopsi This and other questions are answered at the link provided with the if you are new here, read this right away message.
 
Yeah im reading it now. Thanks
 
sbi
Sorry, Alf. Failing at eye-hand coordination.
 
@thecoshman hoisted on my own petard!
 
Xeo
10:05 AM
Lovely, looking at a job offer, the first responsibility (roughly translated): "Extending an XML-based API for remote controlling a backend-server from third-party-clients."
Who the fuck uses XML for that?
 
@Xeo could be soap
 
<ALL_THE_THINGS>XML</ALL_THE_THINSG>
 
SOAP, originally defined as Simple Object Access Protocol, is a protocol specification for exchanging structured information in the implementation of Web Services in computer networks. It relies on Extensible Markup Language (XML) for its message format, and usually relies on other Application Layer protocols, most notably Hypertext Transfer Protocol (HTTP) and Simple Mail Transfer Protocol (SMTP), for message negotiation and transmission. Characteristics SOAP can form the foundation layer of a web services protocol stack, providing a basic messaging framework upon which web services ca...
As I recall some other protocol took over that niche. I just have to do some web-stuff.
 
@thecoshman, spelt and spelled are both different past tenses of spell. Spelled is the simple past tense, and spelt is the past perfect (as well as being a plant substance) of "spell"
 
JSON is rather good for this sort of thing IIRC
@ronalchn hmm... interesting ¬_¬
so you are saying, that "we had spelled the word" is wrong and that it should be "we had spelt the word"?
 
10:16 AM
I have never seen "spelt" and "spelled" be used anything except interchangably.
 
AFAIK "spelt" is North American for "spelled".
 
I'm usually aware of which words are Merkinisms and which aren't
 
I have seen spelt used plenty, but always thought it was mistaken use and that spelt is supposed to only refer the plant substance as a noun
 
nope
I didn't have any idea it was any plant substance, at all, ever.
 
ok, @R.MartinhoFernandes is right, searched it quickly and found it's just different dialects
 
10:18 AM
Wait, wikipedia says it's the other way around.
"spelled" is the merkin form...
 
by the way
I've been thinking about writing some more C++ tutorials
 
you think I could put authoring them on my resume?
 
What do you mean by "some more"?
 
I guess it's similar to 'spilled' and 'spilt', basically interchangeable.
@DeadMG the tutorials them selves? :P
 
10:19 AM
@R.MartinhoFernandes Well, technically, I did write "Hello World" once, a few months ago
but I'll forgive you for never noticing
 
Key question: would your prospective employer care that you wrote those tutorials? It heavily depends on what you are applying for.
 
if you had a good series of them, it can't hurt to mention in the opening paragraph or covering letter, but only briefly
 
Xeo
Apropos tutorials... Robot, started writing on your improved Asio API yet? :P
 
@DeadMG Mentioning your website with relevant content sounds good.
@Xeo No, I'm working on segmentation algorithms for ogonek.
 
Xeo
meh
 
10:21 AM
it seems 'spelt' is indeed the English way, where as 'spelled' is an Americanism... which makes sense to me. English English seems to favour idiotic spellings
 
I wrote grapheme clusters with a generic design so I could reuse code for words and sentences and lines and it turns out grapheme clusters are lots simpler so I won't reuse much code :(
 
@thecoshman More accurately, it takes different words and spellings and pronunciations from many sources.
it would be a lot more sane if they simply stole words from one place
but no- Latin, Greek, German, French
and they were never unified into a single English system
 
Xeo
@DeadMG Not like that isn't the case for any other language...
 
I think that English were a lot more word-grubbing than others
 
You might as well say that all languages basically stole almost everything from other languages
since they basically evolved from various languages no longer in use today
 
10:26 AM
not so true, modern English comes mostly from the language of the Angles and Saxons. It has just had a butt load of other stuff absorbed over the years
 
what is Clang's licence?
BSD, huh
 
@DeadMG Well, what kind of tutorials would those be?
 
@R.MartinhoFernandes Well, pretty extensive. From choosing a compiler to, well, pretty much everything I can think of, which is plenty.
 
I need to get some rss feeds from more easterly regions, I keep running out of stuff to read at around lunch time
 
@thecoshman You could always... work?
:P
@DeadMG Oh, that'd be really cool.
 
10:38 AM
@R.MartinhoFernandes oh yeah... I mean like... when waiting for things to build and what not... <shifty eyes>
 
how do you do an html div thing that will wrap your text for you?
 
@DeadMG what do you mean 'wrap'?
 
well, I mean, like, word wrapping
that thing where you can just type a paragraph and it will insert line breaks for you
 
text with in an element will automatically wrap when it is too wide to fit into the container
perhaps you are not setting the width of the div, thus it is growing to accommodate the text
 
I don't even know how to set the width of a div.
 
10:43 AM
¬_¬ what are you playing with fool
 
HTML
 
Xeo
Websites that don't ask me to enter my password twice when registering are scary
<div width="..."> ... </div>? Just guessing
 
@Xeo Or just expect you to use a PW DB. No point in copy and pasting into two different textboxes.
 
Xeo
I'd still want that, just to be sure
 
@DeadMG Some CSS property?
@Xeo Asterisk textboxes are silly.
If you can see what you type you don't need no silly typing twice.
And you can fix mistakes.
 
Xeo
10:47 AM
@R.MartinhoFernandes but but, people looking over your shoulder!
 
Shoulder surfing is a social problem.
@Xeo Punch them in the face.
@Xeo So, how do you hide your keyboard?
 
Xeo
I type fast enough :)
 
Because you'll be giving them two chances of seeing you type your password.
 
Xeo
heh
 
@Xeo Cameras record fast enough.
 
Xeo
10:48 AM
Okay, if anybody was recording behind me, I probably would punch them
 
@R.MartinhoFernandes except, if you mistype your pword with out realising it, it would be a pain to have to get it reset, a simple enter it twice, let's make sure it matches, and trust you didn't make the same mistake twice. I prefer it
 
Seriously, "can you please get out so I can type my password" works wonders.
 
what does get on my tits though, is having the enter your email twice all over the place
 
@thecoshman It's for the same reason.
@thecoshman Then fine, have me type it twice, but on the clear.
 
@R.MartinhoFernandes derp, of course :P
 
10:50 AM
entering your email twice is useless - getting all emails confirmed is what works
 
@R.MartinhoFernandes ah now, don't be silly. stared my default, with an JS button to toggle it off :P
 
@thecoshman Well, that'd be fine too.
 
if the user wanted to enter a fake email, it is easy to enter it twice
 
@ronalchn again, pain in the ass to sign up for a site to find out you use the wrong email
 
@ronalchn What if you enter someone else's email (by accident)?
 
10:51 AM
well, if you used the wrong email, pick a new username
 
if you enter somebody else's email, they will just get an email they don't click the link to confirm to
 
@ronalchn Except your personal data is now on someone else's inbox.
 
no it isn't - or it shouldn't be if the website is doing the right thing
 
@ronalchn The website is doing the right thing.
 
10:52 AM
commonly it should only include a name at most, a message that you signed up
and a link to confirm
 
@ronalchn That person can simply confirm and then it gets access to the whole account.
 
they don't know the password
 
@ronalchn And what does password reset do?
Send them an e-mail with a link to reset the password?
 
good point
 
You really don't want to sign up with someone else's e-mail.
 
10:53 AM
well, normally only the password is entered twice - because the field is redacted, you can read the email field just fine
 
Xeo
11:07 AM
Somehow, I'm getting annoyed at all the "What is ... means" grammatical errors in questions.
 
please dont donvote,i need you help,not -1 — dato 2 mins ago
 
Xeo
lol
 
I of course downvoted him
 
@DeadMG And that guy has almost 3k rep?
 
not for long
:P
 
11:11 AM
506 questions, 9 answers.
I wonder if there's any user with Q/A ratio above one that actually asks good questions.
 
lol
 
... so sad, everyone jumping on the bandwagon
 
What bandwagon?
 
he asked a shitty question
there's nothing bandwagoning about downvoting him
 
It's a "debug my code for me" question.
It's worse.
It's a "debug my code for me, but figure out what the bugs are first" question.
Typical help vampire behaviour.
And we don't want them here.
 
11:15 AM
I'm going to suck ... your help!
 
I think most users fall into 1 of 2 categories
The people who ask, and the people who answer
quite unlikely for a user to have a relatively even split
 
that's because the people who answer answer their own questions, usually
before asking them
 
I just noticed that SO profiles now show the type of post you have more first: if you have more Qs, Qs are on top; if you have more As, As are on top.
 
I wonder what would happen if you had more accounts than Qs or As
 
@R.MartinhoFernandes That's kinda nice. I think the askers/answerers are rather rare, by and large.
I have this terrible weakness. I want to always search/find things out by myself. Luckily, SO has a large body of existing answers
 
11:30 AM
I actually want to try ask more questions to have a chance to get some of the question badges
But its so hard to think of a question that I don't know the answer to
 
Oh hod, I hate my algorithms class exercises
 
@DeadMG Zing. add to that, that most people don't bother to post answers they had figured out on their own. Self-answered posts are a net energy loss, not to the community, of course.
 
the guy who created them is either retarded or has some anger-management problems
 
@Bartek, I love algorithms
 
@BartekBanachewicz Hehe. Masochism?
Perhaps there should be a bonus on providing highquality self-answers
 
11:32 AM
no, fun
 
@ronalchn fun fun fun...
 
@sehe There's a badge.
 
"A sequence of n integers has been inserted into a binary search tree" (...) "Please print in ascending order all the tree elements whose depth is equal to h-1, where h is the height of the tree."
 
sbi
@R.MartinhoFernandes And you should see his answers. void main(), indentation to cause eye cancer, failure to do basic alignment, and copying from Wikipedia. And those are just from the upvoted ones...
 
11:33 AM
Now, I can't random shuffle these numbers, of course. So I have to deal with retarded tests
And where's the fucking point of this?
 
I wonder if anybody here already tried Scala..
 
@Bartek, that's not an algorithm exercise (well not what I define as one), that's an implementation exercise
 
@ronalchn That's bullshit-implement-your-own-stl kinda thingy
 
algorithm problems are things you see in Google CodeJam, or the IOI
 
11:35 AM
I did particapate in Polish IO, which is very similar to IOI
 
@R.MartinhoFernandes Mmm. Perhaps something more substantial. Allthough a badge is a start
 
@BartekBanachewicz Without any more info, I'd just write the second greatest number. That's the correct solution for a degenerate tree (hey, no one mentioned self-balancing!)
 
Still, these problems are 2 classes lower quality than the IOI ones. And yet I have to do them.
 
IOI always has what I think of as the trivial problems - those are less fun
 
@R.MartinhoFernandes That's the point (or lack of one) - they come in given order.
 
11:36 AM
trivial problems are those that I immediately know the solution to after I read the problem
 
@ronalchn Remember it's meant for students. Did you win the IOI?
 
I'm not as fast as some crazy people though, so it still takes me 10 mins at least to do a trivial problem
 
@sbi Well...
 
Me too. Though it takes me longer to write a solution
 
no, I did IOI years ago
2008
 
11:38 AM
So you must see the problem I have to do is just shitty. If the tree is unbalanced, Robot's answer is of course correct. If it's (nearly) perfectly balanced, the answer is very complicated to calculate.
 
I feel your pain
 
The worst part is that there are more of these. Duh.
 
@BartekBanachewicz No, it's not very complicated to calculate.
There's just no way to do it without knowing the algorithm, though.
 
I also like how they gave you the problem in such a way, that you can't use a library
by asking you for such contrived information
 
sbi
Close votes, please, for this one.
 
11:41 AM
@ronalchn LOL'd here. They usually write You can't use STL and std::string Because f*ck you, that's why.
 
i have corrected index problem,but now it does not work for this points autonlab.org/autonweb/14665/version/2/part/5/data/… figiure 6.1 ,when i input points,it stops working,says KD_Tree.exe has stoped working,what is wrong? — dato 1 min ago
 
@BartekBanachewicz Not if the tree contains 3 elements
 
@sbi Close as what?
 
@sehe The tree can contain up to 10^6 elements.
 
Too localized!
 
sbi
11:42 AM
@R.MartinhoFernandes That's what I voted for.
@R.MartinhoFernandes A help vampire. I wonder whether we should bring the mods down on him.
 
@R.MartinhoFernandes You are supposed to act as a dumbf*ck tree and just insert them without any balancing. Then sort the resulting numbers.
 
@BartekBanachewicz Is the algorithm know or not?
 
I don't have enough rep yet to vote close
 
@BartekBanachewicz Erm, then don't insert..
 
@ronalchn Is that a problem? The site will still work
 
11:43 AM
You don't even need a tree.
 
sbi
you know sometimes human has nerves and please stop such talking and rude speaking,pleaaaase stoooooooooooooooooooop clear?stoooooooooooooooooop — dato 1 min ago
 
Just keep the two greatest numbers as you scan through the whole sequence..
 
sbi
I actually flagged t hat as rude.
 
@R.MartinhoFernandes The question itself links to (sic!) en.wikipedia.org/wiki/Binary_search_tree#Insertion
 
@sehe, no its bcos sbi asked for close votes
 
11:45 AM
@R.MartinhoFernandes But why only 2? If the tree is balanced, it has log(2, n) levels. So, the resulting count would be 2^(n-1)
 
You're not obliged :) And sbi knows not anyone can. I don't always, even though I can
 
k-d trees are annoying, I only kind-of implemented a 2d tree once
and I cheated, I just used 2 arrays
because in that case, I only had to construct it, didn't have to update it
 
what's the syntax for raw literals?
 
@BartekBanachewicz If no algorithm is given, there's an large number of valid answers. I'd do what I usually do when given stupidly underspecified exercises: twist them and provide the trivial answer.
 
sbi
@ronalchn I am not asking you to do things you cannot do.
 
11:46 AM
@DeadMG User-defined literals?
 
@R.MartinhoFernandes No, that thing which is about not having to escape shit.
 
Ah.
R"(the thing goes here)"
The parentheses are part of it.
 
@R.MartinhoFernandes There's only one correct answer, unfortunately. The point is, the guy who leads my classes is a complete moron. He doesn't know what stl means. He doesn't know proper C++.
 
yeah, I tried R"lols" but complaint
 
There are also optional delimiters to ease the use of parens: R"delimiter(the thing)delimiter" (where delimiter can be anything).
@DeadMG R"(lols)"
 
11:48 AM
That's why I didn't study software engineering or computer science, too easy and simple
 
So, I'm looking for a solution that would be able to cope with either balanced (close to random) and unbalanced sequences
 
They still forced me to do a simple C++ course though
 
My brute force approach would be to iterate the turns on each node, and, if I will be able to get deep enough on the given branch, display the result.
This would work nicely with balanced tree, but with the sorted numbers, I would have to be pessimistic and assume the lenght of the path as just n
 
@ronalchn What did you study?
 
Just build the tree and the grab the nodes?
 
11:50 AM
+1
 
Just start with a BST that you can grab online code.activestate.com/recipes/577552-binary-search-tree
and modify it to get the information you need
 
@R.MartinhoFernandes "grab the nodes" seems funny
 
@sehe, Mechatronics Engineering
 
Right
 
Anyway, I will have to do maximum of n indirections... Well,maybe it isn't as stupid?
 
11:51 AM
Right
So, it exists :)
 
@BartekBanachewicz Once the tree is built, compute its height. Then use a modified height algorithm to put those at h-1 into a container.
 
Mechatronics is the combination of Mechanical engineering, Electronic engineering, Computer engineering, Software engineering, Control engineering, and Systems Design engineering in order to design and manufacture useful products. Mechatronics is a multidisciplinary field of engineering, that is to say it rejects splitting engineering into separate disciplines. Originally, mechatronics just included the combination between mechanics and electronics, hence the word is only a portmanteau of mechanics and electronics; however, as technical systems have become more and more complex the word ha...
 
@R.MartinhoFernandes "modified height algorithm"?
 
Is it googleable?
 
11:52 AM
The same algorithm you'd use to compute the height, but with the modification I mentioned. It needs to build the height with an accumulator.
@BartekBanachewicz Oh, are there any other restrictions? It's annoying to come up with solutions to find out that they are weeded out in the original problem statement.
 
@R.MartinhoFernandes Original task : pastebin.com/UitFQ6U2
 
Actually, since it isn't self balancing...
you can just use an array for your data structure
 
@R.MartinhoFernandes cough that's putting it too mildly :)
 
just make a large array, eg. size 2^20
 
@BartekBanachewicz Ah, then my solution seems fine.
 
11:55 AM
@R.MartinhoFernandes Now I understood it, I think I agree. Lemme code and check
 
Then insert the elements by bisecting the array...
actually, stuff it, it won't work
I forgot - if it's self balancing, it might be badly formed
*if it isn't
 
@ronalchn yea, I just wanted to write it's totally nonsense, but since you've figured it out...
 

« first day (688 days earlier)      last day (4253 days later) »