« first day (432 days earlier)      last day (4530 days later) » 

12:00 AM
You're welcome to cryptanalyze my all-so-secret line protocol...
 
user406009
I need to design a simple network format. I am already going to use google protocol buffers to actually send data over the wire, but I have no idea on how to design the protocol. Anyone have any ideas of tutorials for this sort of thing?
 
12:18 AM
@KerrekSB what about criticizing the UI?
Mainly, it would be better with more IO boxes, that are filled out in a top down matter, instead of at random
Also instructions tell Bob to send to himself :"If you are Bob: Wait for the data from Alice, read it, and enter a secret b. Then send gb to Bob and compute the shared secret. "
Also the instructions never mention the Talk section, and no buttons put stuff there as far as I can tell other than the "Encrypt" button in said section
 
Xeo
 
@MooingDuck Nothing... I just can't be bothered to write a new UI. I have many good ideas myself for how it would be easier to use.... but it's such an unrewarding task
 
Xeo
"Government discards possible secret exchang website because of sucky UI."
 
@Xeo In Soviet Russia.... shops actually looked like that, with only the white parts
@Xeo Message never reaches site owner, shared secret lost
 
bah, and it's still called SecretSexChange
 
12:31 AM
@KerrekSB In Soviet Russia, shops sold you.
 
@MooingDuck You can just fork off your own site :-)
 
Ha, you just told him to fork off.
2
 
@KerrekSB it crossed my mind
 
@RMartinhoFernandes That's the philosophy of Git. I'm merely quoting.
My own sentiments are immaterial.
 
You're right, you're a git for telling him that.
 
Xeo
12:36 AM
Hm, two upvotes and an answer accepted by me and I'd be at 22.222 rep
So, what exactly is git and just how much cooler than SVN is it? I only ever worked with SVN
 
Xeo
What is that?
 
It's like git, but with a sane-ish interface.
 
Xeo
Okay, and what is git? How is it different from SVN?
 
Well, first of all, it needs none of this server thingies.
You just $ git init in some random folder and BAM, you already have a working repository.
 
Xeo
12:41 AM
SVN can do a local repo too
 
Since when?
 
@Xeo It's the shizzle
It's incredibly Much Good
@Xeo With SVN you can't make any personal commits
 
Xeo
@KerrekSB ?
 
With Git, everyone forks off all the time, and you can commit to your own personal fork
And the "main" fork can choose to pull in changes at will
In SVN, everyone commits into the same global project.
 
heh, I wrote a spellchecker and wanted to test it hot and cold. I fumbled for a moment trying to figure out how to make it test cold. Then I realized I can write a different mini-application to simply grow a std::deque until it crashes. Spellchecker is now cold!
 
12:43 AM
If you're offline, you can't commit at all
The "network" and "fork queue" features on GitHub are a dream
 
There you go. You gits always uses GitHub features to sell git.
 
Xeo
Hm. What about branch conflicts?
 
@RMartinhoFernandes It's also a pleasure to use from the command line.
But the power of having many forks really gets to shine through the graphical interface of GitHub
 
@Xeo Sufficiently advanced technology.
 
Xeo
Heh
Hm, a free github account means open-sourcing everything, eh?
 
12:54 AM
Bitbucket has private repos.
 
0
Q: Invalid instruction operands when using if directive with masm

Sonny OrdellI am trying to implement the following basic codeblock. I am trying to implement a basic if, elseif, elseif block to learn to use the conditional directives in MASM, but can't seem to make the logic work. .if a > b sub a, 1 .elseif b >= c1 sub b, 2 .elseif c1 > d mov eax, d add c1, eax ...

the guy keeps on reasking the same question and deleting the old one
anyone with me on undeleting all of them and closing all but the first one as dupe?
 
Did you flag him?
 
no I didn't flag him... yet
 
Xeo
Flag him.
 
@Mysticial Why not then...
 
1:04 AM
I'll give him another chance
depending on how he responds to that comment
 
How can I make SVN show just the names of modified files?
Oh, svn status.
 
On tortoise, it gives me an "!" icon.
 
I just press Enter and look at the new prompt.
 
You see, I now have tons of small changes, but the repo owners are very slow to check in my patches.
This leaves my local checkout in a mess
 
@KerrekSB Why not use git-svn?
 
1:12 AM
In git, I would have my own fork and I could commit things that I finished testing
@RMartinhoFernandes Maybe. Is that Good™?
Can I gitify an existing SVN checkout?
 
I've used it successfully in the past.
Takes forever to clone, so you may want to clip the history.
 
Hm. I'll take a look
 
@KerrekSB That I don't think so. At least you couldn't when I used it. An SVN working copy has no history.
 
1
Q: How can I use "git-svn" to checkout a local svn repository?

Weijia LiI'm practicing how to use svn and git. I created a svn repository on my computer, at "/Users/name/svnRepo/test". I am able to use the svn commands to work on this repository. Then, I tried to use command "git-svn clone FILE:///Users/name/svnRepo/test/ .", and got an error: Initialized empty Gi...

Oh, that guy is hosting his own SVN rep
 
@KerrekSB But an SVN repo is not the same as a working copy.
 
1:15 AM
OK
 
Xeo
Shows you can have a local svn repo
 
Hooray for asterisk art
@Xeo Yes, but it doesn't work that way
 
Xeo
Duplicate
 
@Xeo I.e. you can't use that to merge changes into the other rep
 
Xeo
I remember @Johannes writing the solution to one such asterisk question with TMP, pointers, and a compiler error
Yay for unique user names -.-
Why does "Xeo" always have to be taken wherever I try?!
 
1:24 AM
@KerrekSB What are g and p called?
 
Things.
@Xeo At least you don't have people mailing you their philosophy homework.
 
Xeo
:s
It's still pretty annoying
I don't want any other username
 
@Pubby p is any prime
g is some number that generates a subgroup of the multiplicative group of the field Z/pZ
For example, g = 1 generates the group {1}, and g = -1 generates {1, -1}. Those are obiously to be avoided :-)
Typically, you want p = N q + 1, where q is prime, and you want g to generate the subgroup of order q.
q can be chosen small (like 256 bits), while p should be big (>= 2048 bits)
 
Xeo
I just noticed I have a myspace account. goes to delete that
 
The point is that the actual computations should be fast, which is why q is small, but the discrete logarithm should be hard to compute (because p is big)
@Xeo my-what?
 
Xeo
1:31 AM
@KerrekSB :)
 
@KerrekSB Ok, I got a UI done
 
I just answered that MASM question. I must be really bored.
0
A: Invalid instruction operands when using if directive with masm

R. Martinho FernandesYou get that error because .if and .elseif are directives. They are similar to the C preprocessor directives #if and #elif, not to the if statement. IsFriday = 1 ; Change this to 0 when you get to Saturday ; and change it back after Thursday .if IsFriday eq 1 sub a, 1 ; subtrac...

 
@Pubby Bring it on!
 
I think it works but I haven't tested it very much
 
Xeo
Okay, what the fuck is scribd and why do I have an account there?
 
1:36 AM
Reverse identity theft?
"recieve".
Should be "receive".
 
Xeo
@RMartinhoFernandes No, you can publicly see who is followed by that account and those are guys I met at the Games Academy
I have no fucking clue however when or why I created that account
 
Instead of someone stealing your identity, they're offering you one.
 
Xeo
lawl
 
@Pubby The shared secret isn't stored
 
Xeo
> Member since: February 14, 2011
 
1:39 AM
Somehow a reference to out_gab is broken
 
> Because a question which was downvoted for no reason would likely go ignored, while simply posting anew with clarification works better, imo. – Sonny Ordell 1 min ago
 
@RMartinhoFernandes Identity donation? "Here, be me, too."
 
Xeo
Oh, he finally answered?
 
Xeo
Know why I hate facebook?
Scribd is requesting permission to do the following:

    Send me email
    Post to Facebook as me
    Scribd may post status messages, notes, photos, and videos on my behalf
    Access posts in my News Feed
    Access my data any time
    Scribd may access my data when I'm not using the application
Just because I want to login on that account
 
1:41 AM
Gosh, that thing wants to take over your life. It's like a wife!
 
Xeo
There we go, another account deleted
 
OK, I fixed it. Thanks!
 
@KerrekSB I fixed it too pastebin.com/pcYzQMbc
 
Xeo
Holy shit! Zenonia 4 is out. ♥
 
Still reads "recieve"!
 
1:48 AM
Oh right, forgot to fix that
 
Xeo
Great.
> This app is not compatible with this iPod Touch.
Alas, my epic Zenonia adventures that started in part 1 will now end.
Fuck that.
Hm, 900 unread mails
 
1. Select All
2. Mark as Read
3. Clear Conscience
4. ??
5. Profit
 
Xeo
But maybe there are important ones in there!
 
That's what step 3 is for.
 
Xeo
Hm, the earliest ones are from feb 2011
 
2:04 AM
There is no std::thread_pool, right?
 
Xeo
Uhh, no, I don't think so
 
Seems so. Search yields 0 results.
 
Xeo
God dammit, why do I even bother to go through all those emails.. I plan to abandon that email account anyways.
 
Just apply my plan.
 
I don't get how calling a file "haystack" and a string "needle" makes searching more intuitive.
 
Xeo
2:14 AM
It always feels good to remember my old passwords I used on sites I haven't been on in ages.
 
Because everyone knows that the best place to find needles is a haystack.
3
 
Bigger boxes.
Why won't anyone listen to me?
 
@RMartinhoFernandes Fork off
@RMartinhoFernandes Then submit a pull request :-)
Which box do you want to be bigger anyway?
 
Well, I always get this annoying feeling that I didn't select everything in the box.
Could be just me.
 
2:26 AM
@RMartinhoFernandes The numbers are really long. No box would be big enough
 
Xeo
Maybe add a "copy to clipboard" button
 
@Xeo Needs Flash.
 
Maybe textareas could be used.... but the handshake is a one-off thing, and those numbers aren't really that important later on
 
@KerrekSB At least the message plaintext thing should be a textarea so I can resize it as I please.
 
Xeo
* How do I cancel or delete my Xfire account?
Currently there is no User option to cancel an account.
I hate it when they don't have that option.
 
2:29 AM
Reminds me of a Mac application a friend of mine was trying to uninstall.
 
@RMartinhoFernandes The message must only be 99 chars max, though
 
@KerrekSB Oh.
@KerrekSB Well, make it use as much horizontal space as possible, instead of fixed.
Q: How do I uninstall Crappy Application X 3000?
A: You don't need to uninstall Crappy Application X 3000.
Currently it fits only ~30 characters, and I'm sure it could fit all 99 of them in my screen.
A note about this 99 limit might help too.
 
Why are the attributes called "size" and "maxlength"? Why not "maxsize"?
 
Probably because HTML has history.
 
@RMartinhoFernandes What, "size" came first, and later a different group added "maxlength"?
 
2:35 AM
@KerrekSB Come on, you know how silly those web guys are.
Awesome.
Now I don't have to fight my UI claustrophobia so much.
0
A: Invalid instruction operands when using if directive with masm

R. Martinho FernandesYou get that error because .if and .elseif are directives. They are similar to the C preprocessor directives #if and #elif, not to the if statement. IsFriday = 1 ; Change this to 0 when you get to Saturday ; and change it back after Thursday .if IsFriday eq 1 sub a, 1 ; subtrac...

This guy thinks he knows more about MASM than me and googling skills.
Just because he has a book.
 
Xeo
Hm, seems I didn't leave that much of a trace on the web with my real name. Good™.
The only thing that should get displayed after google updates its cache should be facebook
 
@RMartinhoFernandes At least he won't be able to delete the question again ... :P shhh.... it was me!
 
Xeo
Oh, yeah, and my participation on some Games Academy projects
 
My real name is all over the place. Terrorists in East Timor, philosophy teachers in Portugal, some dude on LinkedIn, a super cool dude on StackOverflow...
At least if someone googles me nowadays, I am the first result. It used to be the terrorist.
 
Xeo
Hm, when googling "Xeo", my MyAnimeList profile comes before my SO profile. :s
 
2:48 AM
Someone with my real name owns a school of beauty
 
Xeo
Great. MAL Profile on page 4, SO profile on page 10. :s
 
Xeo
And everything else is unrelated stuff
 
when googling "Mysticial", I get "Did you mean: mystical "
lolz
and the WOW hit has nothing to do with me
only the SO and MAL links are
 
What's MAL?
Oh, MyAnimeList.
 
2:51 AM
other than that, I go by "poke349" in older accounts on other sites
 
Xeo
"Xeo" is way too common of an identifier, but I don't want to change it. :|
 
@Kerrek instead of a warning for "make sure this is not “1”", it would be neater to just fill the box with "Something went wrong." instead of 1.
 
Xeo
Know what's mean? That this site is taken already: nullptr.com FOR NOTHING!
 
That's awesome dude!
 
@RMartinhoFernandes Hm...
@RMartinhoFernandes Why "something" if I can say it very clearly?
What's missing is the instruction to try a different number, I suppose
But that doesn't fit
There should be a separate block of explanations perhaps.
 
2:56 AM
Step4 is missing a newline
 
@Xeo That's so pre-C++11... and the variable isn't initialized
 
Xeo
That variable isn't even declared.
 
@Pubby I killed that, because the cell is shorter
@Xeo Sorry, that's what I meant
maybe you can get nullp.tr? or nullptr_t.com?
 
hmm, illuminati.org went down.
 
How hard is it to switch from HTML and CSS to C++? Hmmmm...
@Pubby You mean "went dark"?
 
3:02 AM
 
Never seen that page?
 
I'm glad I already have a button to post the "Here's a nickel kid, get yourself a good book." comment.
-2
Q: Want to learn C++, and have prior web programming knowledge

user763349I am actually considering learning C++. I want to become a quantitative financial analyst, and going to pursue my CFQ soon. Java is not heavily used in this field, but C++ is for its complexity. For someone who already has knowledge in HTML, CSS, JavaScript (intermediate), and PHP (intermediate),...

 
Xeo
Now I remember why my C++ score was so low in the last semester
(40/40 in the third, 13/40 in the fourth)
The final test was a stupid C# task
 
What?
How could you?
 
Xeo
3:06 AM
And I just didn't do it
 
This shit just got real.
 
Xeo
One thing that really ticks me off is to have a slow connection for now apparent reason.
Newest example: Youtube. The site itself loads extremely fast, but the videos are streamed extremely slow
 
@keithlayne I love how your politicians seem to like bragging about not knowing a damn thing about the Internet, while making decisions about it.
"I'm not a nerd" is my favourite.
 
They pay people to tweet cleverly for them
Don't forget Al Gore, he's an exception. He invented the internet.
 
Right.
R.I.P. The Internet (Al Gore — Lamar Smith)
 
3:20 AM
Hmm, x99 rep on 2 sites. Any way to gain 1 rep?
 
Xeo
Accept an answer, downvote an answer
I got 22.221 rep, and no answer I want to accept
 
Undownvote something.
 
Xeo
lol
Can I even see what I downvoted?
 
@Xeo Will you get mad if I upvoted something? :-P
 
Xeo
Great, I can't view my flag weight history oO Anybody else?
 
3:23 AM
I see a picture of a cat
 
Xeo
12
Q: Viewing the flag history page causes an error

kiamlalunoI was trying to view the history of my flags on Drupal Answers, and Meta Stack Overflow, but I always get an error. The error page is the generic one that reports an error happened, and has been logged. What I did was simply to click on the username shown on the top of the page, and then on th...

 
Xeo
3:36 AM
There, all emails clear, mwahaha.
And it's 4:30am again -.-
Oh well, off to sleep, see ya.
 
no you're not :)
 
Xeo
Today, I will!
I swear, really!
 
sure......... :D
oh btw, you should watch the Mirai Nikki anime... :P
 
Xeo
I'll just have a nice little 6hour nap and finally start working on my game idea at 11am
It has to be possible for me to get up before 3pm
 
I have a friggen flight to catch tomorrow, so I'm (trying) to repcap now...
doesn't look like it's gonna happen...
 
Xeo
3:40 AM
lol
Anyways!
 
dammit... why do the residuals on the loop question have to stop today... :(
 
user406009
God, why doesn't java have function objects. Makes it so annoying to implement a thread pool.
 
If you're asking that in the C++ room, you know the answer is gonna be: "Because Java sucks! It's retarded! Don't use Java!!! -1 for Java!"
2
:)
 
 
3 hours later…
6:19 AM
@EthanSteinberg There is stuff like the command pattern. If you really must.
 
6:30 AM
so I was just reading about gtkmm...they use a macro for localizing strings like this _("this is my string")...does this not contradict the standard?
 
@keithlayne Leading underscores are not allowed in global names. Macros are always global. So I'd say yes, it violates the standard.
 
6:46 AM
@StackedCrooked thanks
also, the macros are from a glib header file, which is included indirectly from the gtkmm i18n header...
which incidently includes <string.h>. Bad, bad, bad.
okay, maybe that's not so bad, I forgot what was in there.
 
7:49 AM
What's with the room topic. It's a "Tante Betje Zin" ('Aunt Betsy Sentence').
Who's planning on creating an intelligent comma?
@StackedCrooked huh?
@Xeo How suiting. I bet void.com is a bit echoic too
**3 hours later…**
 
8:39 AM
@StackedCrooked depends on how you interpret the word "reserved". You could choose to read it as "the implementation gets first pick of these names, so if there's a name clash, it's your fault and it's an error, but if not, then it's fine"
 
cpx
8:54 AM
Hm, I've known some people suggest me to use _msize() to get the size of dynamic array on windows. Is it safe?
int *p = malloc(5);
int i = _msize(p);
Required header: <malloc.h>
 
@cpx malloc is not safe. look, you called malloc(5) so you got 1.25 ints
 
cpx
oh I see but still _msize returns the size 5.
 
that is 5 bytes
 
cpx
Am I allowed to do that?
 
you would need to do...
`int *p = malloc(5 * sizeof(int));
int i = _msize(p);`
 
9:01 AM
@thecoshman _msize(p) / sizeof(int)
 
cpx
or char *p = malloc(5)
 
@Abyx well, depends if you want i to be the number of bytes, or the number of ints
 
also, assert(_msize(p) % sizeof(int) == 0)
 
@Abyx is this just to ensure you have not assigned a partial int
 
cpx
Does it work well with new operator?
 
9:03 AM
why don't you just use vector or array?
 
@cpx operator new may not to use malloc, or allocate some more data
 
cpx
When I say: int *i = new int[5]; _msize returns the size 20 bytes.
 
if you did _msize(i) / sizeof(int) you would get the number of ints that i is allocated for
 
try new int[100*1024*1024]
 
@Abyx ¬_¬ what you trying to crash
 
cpx
9:06 AM
Hmm.
 
@thecoshman it's just 400Mb
 
@Abyx 400MB FTFY
 
9:18 AM
Morning
@jalf Are unit tests usually = asserts?
 
@ManofOneWay no. unit tests are tests for units, not asserts
 
But it's usually done with asserts?
 
nope
oh well... maybe
you could use asserts to validate that the functions are working as expected
 
@ManofOneWay they should mostly use expectations, rather than asserts
EXPECT_EQUALS(1, a); EXPECT_EQUALS(2, b);
 
usually best to get some sort of unit testing framework
I think Junit has been ported for use with C++
 
9:33 AM
@thecoshman boost.test or gtest
 
if you say so. not looked into unit testing with C++. I was far too fly by night for that
 
also there is MSTest in MSVS
 
@thecoshman you mean cppunit
 
@rubenvb probably :S
 
oh hi
most unit test frameworks I know of use some kinds of asserts, yes, but they're usually not the same ones you might use in your real code
they're not the #include <cassert> kind
I personally prefer Catch for my C++ unit testing needs
 
9:59 AM
Lets say I have written two classes using a TDD/BDD approach, classes A and B. Now, I want to use A and B to get some value so I write a test case for a new class C that has A and B as members. Should I unit test class C?
Or is it enough that A and B is already tested?
 
Arrgh. Why is this tax crap so complicated? Why can we just do something like, I earn my money, and then you tell me: pay X. And I pay and you don't ever again bother me until next year. Arrrgh.
 
you should unit test all your units ;)
 
@manler You should unit test class C and probably you will even do it with mock objects for A and B
 
so yeah, if you want full coverage, you'll want to test C as well
 
But to mock A and B I can't have them be created on the stack. Then I can't mock them?
Have to be dynamic allocated?
Passed through ctor?
@jalf Yes, I would like full coverage...
So to sum up: I write tests for A and B. Then in C I use A and B but to test C I have to mock A and B.
 
10:07 AM
Sorry if I was unclear, you do not have to mock it :), however it is often done because you want unit tests to be contained and minimal (you don't want to retest A and B). However not all composed objects are (easily) mocked, certainly when you don't use pointers/references.
 
@KillianDS I see. But if I am writing a new app, A and B are new classes, there must be a way to design for testability for classes using composite classes.
I mean, have C be a template that uses A and B as template arguments. Or make A and B use some interface. Then I could easily mock them.
Otherwise I would have to override the declaration of classes A and B somehow with some #include statement....
so that my new mocks A and B would be used instead.
 
10:26 AM
-5
A: javascript calling

DmitryBYou should not code, find something else to do.

 
Xeo
@RMartinho: Nuked.
And flagged before that, of course.
Also, mawning.
 
#define vmdispatch(o) switch(o)
#define vmcase(l,b) case l: {b} break;
#define vmcasenb(l,b) case l: {b} /* nb = no break */
I hate Lua source code and C language too.
 
@Xeo I just woke up, went through the flag queue and spent all my daily flags only on "not an answers".
Amazing how many "I hav same problem plz hlp urgent" posts we get these days.
 
Xeo
Whenever I look, there are only 2 or 3 flagged as such,10 at most. :s The rest is 'close vote' and 'low quality'
 
@RMartinhoFernandes <face-palm>
 
Xeo
10:41 AM
Why the hell did anyone just give me a downvote for this answer o_O
Oh, there are still 55 "not an answer" flags ♥
 
Tin
hey guys, short question, before interrupting any open topics. where in the MSVC'10 IDE can I add the /DMOVABLE option for the compiler?
 
Xeo
Project -> Properties -> C/C++ -> Preprocessor -> Preprocessor Definitions
Just add "MOVABLE" in there
Ah, seems the Mods are kinda asleep. up to 10 flags on some answers, normally the max is 4 that I see
 
Tin
@Xeo, thanks a lot. My Prec. Definitions looks like now as: MOVEABLE;WIN32;_DEBUG;_CONSOLE;%(PreprocessorDefinitions) and it works!
 
@Xeo Probably Bill the Lizard is asleep.
He handles like, 90% of flags.
 
Xeo
10:57 AM
Delete votes here please
 
hi
 
Xeo
And another one here.
 

« first day (432 days earlier)      last day (4530 days later) »