« first day (389 days earlier)      last day (4545 days later) » 

sbi
7:07 PM
@awoodland My answer has passed 100 upvotes since I wrote the above message wondering about it. I'm baffled.
Anyway, gotta reboot. It seems to be patch day.
 
Seems like they're nuking the comments.
 
How do I let users pick who they want to talk to on my chat program?
Do I do all the contact list business?
Should I make it like a chat room?
 
No.
(Quick someone say "Maybe.")
 
Maybe.
 
7:20 PM
Nothing.
 
I think I'm coming down with Second System Syndrome.
 
SSS sounds like Super SS.
 
The what?
 
The second-system effect refers to the tendency of small, elegant, and successful systems to have elephantine, feature-laden monstrosities as their successors. The term was first used by Fred Brooks in his classic The Mythical Man-Month. It described the jump from a set of simple operating systems on the IBM 700/7000 series to OS/360 on the 360 series. Explanation Although expressed as a problem of software design, the second-system effect is observable throughout all human design effort. It is somewhat akin to the idea of "fighting the last battle." People who have designed something...
 
7:21 PM
Gotta love "elephantine":
 
But yeah. I considered using automake for a project that's (so far) only three files...
 
Gosh, why do insist on autotools? What do you like about that crap?
 
make is nice. The rest is pretty bad.
At least I didn't invent my own build system. Boost, I'm looking at you!
 
@RMartinhoFernandes - I like that with autotools I know I'm either writing sh, Makefile rules or something that writes those for me. With cmake I still haven't quite worked out what it is I'm actually writing at any point
@Maxpm jam predated boost, boost just made it famous
 
I stand corrected.
 
7:26 PM
Perforce Jam is an open-source build system developed by Christopher Seiwald of Perforce Software. It can be used as a replacement for make. Its primary feature is its ability to express build patterns in an imperative language which supports structured namespaces (similar to Pascal records) and simple lists. Jam can be used with autoconf, although it is often not necessary because of Jam's portability features. Perforce Jam runs on Unix (including many clones), OpenVMS, Windows NT (including Windows 2000 and Windows XP), Mac OS, and BeOS. It can possibly be configured to work on Windows 9x...
 
sbi
@Maxpm You may sit down now.
5
 
groan
 
sbi
@awoodland You may groan all you want, but this is a lounge, and meant to be a place to relax, so I oppose anybody having to stand for too long, even corrected.
 
@awoodland but boost isn't using Jam. They built their own originally based on Jam
 
Also, they're slowly porting the core to Python.
 
7:42 PM
Is there a concept in inheritance that says derived members don't have a particular method?
 
That sounds silly.
 
Why?
 
Er, what?
 
sbi
Who?
 
@KianMayne Of what use would be such a restriction?
 
7:44 PM
Say you had an class that gave you complete control over something, then in an inherited class, that
 
Where?
 
I've just realised
Never mind :L
 
Security 101: don't blacklist, whitelist.
 
You would just call the method that did the internal stuff from within the inherited class
But how would you make that method inaccessible?
 
7:46 PM
Can you show an example of what you want with hypothetical code?
 
I can't think of an use for this, really.
 
A message class which lets you set the message code, the payload, and the rest
 
And where is the silly "cannot have X method" thing in that?
 
Then a TextMessage class that just sets the payload from a string and can assume the rest and doesn't let you alter the message code or payload
Oh there is none it's just how do I not let the programmer run an inherited method and run it through a different method automatically
 
You mean, the base class has setCode and the derived class doesn't?
 
7:54 PM
Or the base class has setcode and the derived class makes it inaccessible
 
If you want that, either you don't want inheritance, or you don't want setCode on the base. Polymorphism doesn't work if the derived classes don't abide by the base class's interface.
 
and calls it from the constructor
So if I had an abstract setValue method that, on the base class, accepts the code and the value and in the inherited class override with a string parameter
 
You can't override with a different signature!
 
sbi
@KianMayne Derivation establishes an Is-A relationship. A car is a vehicle, and it can be treated as such. If a vehicle has a goto(destination) method, the for a car to actually be a vehicle, it also needs to have that method.
 
@RMartinhoFernandes Dammit
 
7:57 PM
Substitutability is a principle in object-oriented programming. It states that, in a computer program, if S is a subtype of T, then objects of type T may be replaced with objects of type S (i.e., objects of type S may be substitutes for objects of type T) without altering any of the desirable properties of that program (correctness, task performed, etc.). More formally, the Liskov substitution principle (LSP) is a particular definition of a subtyping relation, called (strong) behavioral subtyping, that was initially introduced by Barbara Liskov in a 1987 conference keynote address entitled...
 
sbi
@Kian, I suggest instead of asking how to pursue a specific way to tackle your actual problem, you explain to us what your problem is.
 
OK
This is mark two of the chat program
 
sbi
@RMartinhoFernandes Well, that says it so much more eloquently than I ever could...
 
and I want to simplify it and make it easier to read and understand by implementing a message class and other things
Because when I send a message, it (currently) has a header consisting of 5 bytes - the first is the type of message - e.g. message send, message recieved, name
the second and third is a int16 split into two bytes that describe how big the message is
 
In my BT client, I have a similar structure.
This is what the base class looks like:
class message {
public:
    virtual boost::optional<message_type> type() const = 0;
    virtual uint32_t packet_length() const = 0;
    virtual std::ostream& put(std::ostream& os) const = 0;
};
No setters.
 
8:02 PM
Oh right :)
Then I also have intended and sending client
Then the rest is the payload
 
The derived classes can provide the data as they want (the type codes are actually constants and never stored).
 
On some of the message types there is no payload because it's just to describe a particular function the client or server has to do
E.g. shutdown
 
I don't like custom domains pointing to bitbucket. I want to be logged in, dammit!
 
The inheritance problem is not the main hurdle at the moment though
and then there's security concerns
I've really realised how much more detailed my planning needs to be
 
8:13 PM
is anyone familiar with ios development here?
 
Because I already had to rewrite the basic concept when I realised I had overlooked port forwarding
 
I only know I don't want to do touch it, ever.
 
6
Q: Test iOS app on device without apple developer program or jailbreak

CycloneHow can I test an iOS application on my ipod touch without registering for the apple developer program or jailbreaking my ipod? Neither is a viable option at the moment. I'd like to test on the device itself instead of the onscreen emulator, to see how it performs on an actual ipod.

I wonder if this is still up to date for IOS5.
I can build it but not push it on my iPad
 
Of course it is. Why would Apple grant you freedom?
4
 
I know I'm not prepared to pay $100 as well as royalties as well as their hardware (/operating system if i decide to do a hackintosh)
 
8:16 PM
how to print unicode letters like § in gcc in windows ?
 
Ugh. Ask @Alf.
 
100$ for the app store is ok
 
With a printer.
 
He's been wading through that mess for the last few weeks.
 
It's best to forget about Unicode in console.
 
8:17 PM
but I'm more concerned that I pay these 100$ and then never manage to do anything useful for the app store
 
Less hassle.
 
;)
 
Write to file instead.
I bet there's a way to make vim automatically reload files without prompting.
 
And I was wondering weather the ipad is fast enough for some of the stuff I want to do..
 
@CatPlusPlus :set autoread
 
8:20 PM
The weather is good.
 
Meh I used to be an Apple fan boy then Microsoft stopped sucking so bad
 
For an Autumn weather.
 
@CatPlusPlus Really? Here we've had nothing but rain for a good week
 
8:57 PM
You know - I haven't been taught about logarithms in Maths so I just had to teach it to myself just now
How ridiculous it's not exactly hugely complex
 
9:43 PM
Oooh, Mercurial 2.0. And nobody told me!
 
What's up in it?
 
Cherry-picking got added into core, and they bundled largefiles extension.
 
@CatPlusPlus meaning what? That it handles large files transparently, just like that?
 
hmm, interesting
 
9:54 PM
And bitbucket is already testing hg 2.0, apparently, so maybe there's a chance they'll enable largefiles server-side.
 
10:16 PM
I don't want to know what Robin meant.
 
Freudian slip ;D
 
10:41 PM
@MrAnubis > how to print unicode letters like § in gcc in windows ?
 
:message_id
 
Whoa, 126 upvotes for @sbi :)
 
@CatPlusPlus thx but i can't gbet the quoting to work?
 
You can also include just the link to quote.
 
tried that first...
 
10:43 PM
:1837345 http://chat.stackoverflow.com/transcript/message/1837345#1837345
2 hours ago, by Mr.Anubis
how to print unicode letters like § in gcc in windows ?
 
hm
the system doesn't like me
oh, he isn't here
 
Bah, Consolas has no ⍽ glyph.
It's glyph-starved. Time to evaluate competitors.
 
WTF is that?
 
Usual NBSP indicator.
Or maybe ␣, whatever.
It hasn't got either.
And I'm already using middle dot for trail, reusing it for nbsp is silly.
 
cpx
§ reminds me of spec
 
10:54 PM
Who wants this superpower?
Oh wait, there's worse.
 
Hahaha I'd rather them than no super-power :D
 
What about super mathematics?
Apparently, super mathematics is the ability to get simple math wrong, without using X-ray vision.
 
:L I don't know ounces and pounds
Oh it's 16 ounces
 
20x16x10 = 3200.
 
Oh yeah
Good eye
 
11:01 PM
And I didn't use X-ray vision :)
 
You clearly do have super mathematics!
 
No, I don't. I got it right.
I'm not a superhero :(
 
No he doesn't actually have super mathematics
He has super wrong mathematics
I've got to write about society's responsibility - if any - towards suicide
What a lovely topic
 
Yay, I've managed to get Vundle working.
Also split my vimrc neatly.
 
The heck's that?
 
I've never really used Vim
I mainly use either Visual Studio when I'm at home (+ Dreamweaver for web programming - I've seen sites made with the the visual view and they should be destroyed - I'm mainly drawn in by the great syntax hilighting and the live view) then Notepad ++ for tiny things or when I don't have anything else
 
Dreamweaver still exists? Woah.
 
Yeah CS5 it's got crazy FTP stuff as well which I personally find really irritating
 
Vim has HTML syntax highlighting with <strong> bolds </strong> and <emph> italics </emph>!
:)
 
11:16 PM
That's pretty impressive
Maybe it's time to download it
 
Really? I was just throwing in random trivia (and testing the Markdown a bit). I don't find that very impressive.
 
Well it's at least unique
Woo
 
If you want unique:
> You know that Vim lets you undo changes like any text editor. What you might not know is that it doesn't just keep a list of your changes — it keeps a goddamed tree of them.
 
Yeah, that's freaking awesome.
I also like time travel.
:ealier 10m brings you to the state you had 10 minutes ago.
 
11:30 PM
How do you do those commands?
 
You type them.
I know that looks like a silly answer, but it's the correct one :)
 
In normal mode.
 
Normal mode is where all the magic happens.
 
But I am typing it :L
Nothing's happening
 
Did you type the colon?
 
11:32 PM
Huh
It's working now...
 
11:48 PM
I think I have a plan for how I'm going to implement this whole message routing business
 
I think I'll use the style of the overlay I show when connecting to the message server and I'll have nice pretty buttons with usernames on
@RMartinhoFernandes Why? :L
 
> The REAL REAL WTF is all the ToLower() fanboys here, when ToUpper() is obviously superior. There's nothing a totally lowercase string can do, that a totally uppercase string can't do louder.
I like this from the comments there.
 
Haha that's funny
 
Configuration files be serious business.
 
11:59 PM
OMG there's Perl there.
 

« first day (389 days earlier)      last day (4545 days later) »