« first day (286 days earlier)      last day (4664 days later) » 

10:00 PM
Yeah, don't get all philosophical on us.
 
Damn almost over my monthly 200 GB limit again.
 
by the way
this is hideously immature, and I'm terribly sorry, but I just have an irrepressible urge
 
@StackedCrooked Is that your home Internet traffic limit?
 
@StackedCrooked NOOOOOOOOOOB
 
@DeadMG Sounds good.
Lol.
 
10:01 PM
@MartinhoFernandes that's the limit that my ISP gives
 
Oh. I thought traffic limits were a thing of the past.
 
There were times I'd get to 200GB in a week.
 
At least here in Portugal, they are.
 
@DeadMG I did not meet your expectations?
 
Damn, I got like 60 GB/month.
 
10:01 PM
And we're a bit of a backwater country.
 
Damn you, Canada!
 
@CatPlusPlus unfortunately I can't have cable in my apartment, so I have DSL which limits my download speeds to 480KB/s
 
The crazy people across the pond seem to like traffic limits.
 
someone posted on my wall "0011010000110010 is the answer to everything" not sure what that's supposed to mean?
 
My Internet is bigger than yours :P
 
10:02 PM
anybody?
 
@TonyTheTiger 42?
 
@StackedCrooked 42 is not the answer to everything.
 
@StackedCrooked in my conversions it's not 42
 
10:03 PM
0011010000110010 is way more than 42
 
@MartinhoFernandes yeah I once tried answering all questions on a test with 42 and failed
 
@StackedCrooked lol
 
@StackedCrooked See, I told ya.
 
so I'm confused
it doesn't make sense
 
@DeadMG But perhaps it's a number coding system that isn't binary.
 
10:04 PM
The zeroes at the beginning would suggest someone randomly typing 0s and 1s.
 
42 is 101010 in binary, cool pattern
 
yes, I like :)
 
42 is 54 in base 13.
 
Which is why 42 is the answer to "What do you get when you multiply six by nine?"
 
10:06 PM
42 is 2A in hex
 
42 is the answer except when it isn't
 
Trivia: 0xAA55 (1010101001010101) is a x86 bootloader magic constant.
 
42 is a star
 
Trivia: 0xCAFEBABE is the magic number for compiled Java classes.
 
@CatPlusPlus mbr?
 
10:07 PM
@CatPlusPlus which is used for?
 
There's a meteor named to Douglas Adams "DA42"
 
0xDEADBEEF is used where?
 
@TonyTheTiger It must be present at the end of the valid boot record.
 
25924 Douglasadams is an asteroid. It was named for novelist Douglas Adams, because its provisional designation of 2001 DA42 coincidentally contains the year of his death, his initials, and the Answer to the Ultimate Question of Life, the Universe, and Everything (42), as given in his novel serial The Hitchhiker's Guide to the Galaxy. The asteroid was discovered by LINEAR on February 19, 2001. See also * List of minor planets: 25001–26000 * 18610 Arthurdent References * [http://www.msnbc.msn.com/id/6867061/ Asteroid named after ‘Hitchhiker’ humorist: Late British sci-fi author honor...
 
@hexa As a marker of free kernel memory on IBM systems.
 
10:08 PM
@MartinhoFernandes meaning what exactly?
@CatPlusPlus kewl
 
@MartinhoFernandes Is it really?
I never knew properly and CBA to google
 
Is everything in space orbiting around something? Or are there also objects just flying around?
 
@TonyTheTiger A "magic number" is a number the start of a file. All Java bytecode files start with that number.
 
@MartinhoFernandes I ran into one recently that hardly sucked at all. I just called Advanced Installer
 
@stackedcrooked: i meant '*'
 
10:09 PM
@MartinhoFernandes oh I see, interesting :)
 
When compressed with Pack200 (a Java algorithm for transferring JAR files), it becomes 0xCAFED00D.
 
Actually where do you put your magic numbers so that they are no longer magical?
Settings.h?
 
@hexa Sorry, got confused it's a free memory marker on Solaris.
@jalf Nice. I'll have a look at it.
 
I once used this system for storing magic values: code.google.com/p/xulwin/source/browse/trunk/XULWin/include/…
But I'm not aware of any best practices on this topic.
 
0xAA55 i used recently, it is the mandatory sequency on this ARM processor to start the watchdog :P
 
10:12 PM
@CatPlusPlus Not just the boot loader -- it's used by the BIOS to signify various code to execute during boot. You mark a bootable partition on disk with AA55, but if you have code in ROM on an adapter that you want executed during boot, you mark that with AA55 as well. The BIOS walks through the range from 640K up to 1024K, and looks for that signature at the beginning of every paragraph (16-byte boundary).
 
1f u c4n r34d d1s u r3477y h4v3 n0 71f3
 
When it finds that signature, it starts executing code some count of bytes later...
 
@TonyTheTiger 7 makes for a poor L.
 
@CatPlusPlus lol
 
@StackedCrooked Why not just variables?
 
10:14 PM
@CatPlusPlus I just felt like using functions at the time. This way the values are very immutible.
 
@StackedCrooked i hear everything is flying around some center
 
no it's not
 
@CatPlusPlus it would also allow you to override them by redefining the function in a narrower namespace :)
 
The Great Attractor is a gravity anomaly in intergalactic space within the range of the Centaurus Supercluster that reveals the existence of a localised concentration of mass equivalent to tens of thousands of Milky Ways, observable by its effect on the motion of galaxies and their associated clusters over a region hundreds of millions of light years across. These galaxies are all redshifted, in accordance with the Hubble Flow, indicating that they are receding relative to us and to each other, but the variations in their redshift are sufficient to reveal the existence of the anomaly. ...
 
there is this great book, called "The 1st 3 minutes"
it explains in a very nice way, the first the minutes of the universe
 
10:16 PM
it's all theory and hypothesis anyway
 
I guess we've found this out in this room
 
also explains a bunch of techniques astronomer uses, its really interesting
 
One cat leads to another.
 
I think describing what happens the first three minutes of the universe is pure speculation.
 
@StackedCrooked most likely yea
 
10:20 PM
Ok, this seems helpful in my quest to run gnome on cygwin: sourceware.org/cygwinports
I just picked the gnome-games package to make sure I pull it all. ;)
 
@StackedCrooked Not to mention somewhat misleading -- under the circumstances, the entire concept of "time" is a bit fluid. With space itself as compact as it was, the entire universe was roughly similar to the interior of a black hole, and there wasn't anything that corresponded very closely to "time" as we experience it.
 
@StackedCrooked Yeah sure.
Though Gnome games suck.
 
@JerryCoffin oh yeah, I read something about that in the book "The science of discworld"
 
@StackedCrooked That's a nice book.
 
@JerryCoffin How even the very laws of nature may have changed over time. :$
 
10:23 PM
sleeptime for me... bye
 
Science is so cool. I think it's awesome that Mendeliev was able to predict the existence of elements by pointing at empty spots in his table of elements.
 
"Hey dudes, I made this table up and stuff is missing. Go find it."
 
Or how Maxwell predicted the existence of radio waves mathematically.
@MartinhoFernandes yep and it all matched
 
"Hey dudes, I made these calculations and it means stuff travels in waves. At the speed of light."
 
Everyone: ಠ_ಠ
 
10:26 PM
huh?
 
Also the existence of one of our planets predicted without it ever being observed. It explained why some planets didn't move according to the mathematical predictions.
 
And Tesla: "Hey dudes, look at my coils! Aren't they cool?"
 
but seriously, i had a plan. i was going to install boost and learn asio, and well... nothing :(
 
Tesla was awesome.
 
alternating current ftw
 
10:27 PM
nikolai tesla is one of the most brilliant guys ever
 
he wanted to provide electricity by air
he thought that it would be absurd to put cables over the whole planet
but that's what happened in the end
 
Ssh, don't tell him.
 
@MartinhoFernandes I told him yesterday :(
Just kidding :D
It's probably stuff like this that makes people flag me...
 
> An experiment in Colorado Springs. This is a bank of lights receiving power from distant transmitter
@StackedCrooked He actually got it working.
 
@CatPlusPlus I just noticed you've never asked a question on SO. WOW! How do you live?
 
10:31 PM
I recently read about research on wireless recharging of devices.The idea was to use waves and resonance.
 
In a litter box.
 
Wireless energy transfer or wireless power is the transmission of electrical energy from a power source to an electrical load without interconnecting wires. Wireless transmission is useful in cases where interconnecting wires are inconvenient, hazardous, or impossible. The problem of wireless power transmission differs from that of wireless telecommunications, such as radio. In the latter, the proportion of energy received becomes critical only if it is too low for the signal to be distinguished from the background noise. With wireless power, efficiency is the more significant parameter.&nb...
 
@TonyTheTiger I have strong Google-fu.
 
@CatPlusPlus oh I see :)
 
No! He cheats with a sockpuppet for questions!
 
10:33 PM
lol
 
Which has the greater lifetime in a GUI application: the model object or the view object?
 
I think their lifetimes are usually coupled.
It's of little use to have one without the other.
 
i think the model object has more lifetime
 
@MartinhoFernandes I have two objects on the stack. If the model outlives the view then you can do: Model model; View view(model);
 
a view cannot exist without a model. but a model can exist without a view, or can exist with multiple views
 
10:36 PM
The other option is to let the GUI construct and destruct the model
 
Hmmm, ok.
 
I have no need for puny sockpuppets!
 
i have multiple sockpuppets
otherwise I couldn't have managed that high scores in the template tag
 
I have no sockpuppets :(
Puppets are gay.
 
10:38 PM
I merely have my puny little brain... that's the entirety of my "sockpuppet" :P
 
@JohannesSchaublitb If the Model is a singleton, then the GUI will exist first and the model will be created once the GUI accesses the instance method for the first time.
 
ugh singletons :(
 
@StackedCrooked You used the S-word.
 
singletons...
 
Not trying to promote singletons now, just making a point.
@MartinhoFernandes yeah, I know.
 
10:39 PM
oh, rly?
 
If it didn't get you suspended, I'd flag it.
 
@StackedCrooked in such code, the model could exit before the gui, if you would have accessed the model before created the gui
 
Singletoon
 
but such code sounds ugly as hell
Ive learned to hate singletons
globals may be alright sometimes, but singletons are just way too horrible
 
It's not a good exercise to discuss this kind of thing of badly designed code.
 
10:40 PM
@JohannesSchaublitb so model outlives the view?
 
Why would model be a singleton?
 
i think that's natural
 
@CatPlusPlus it could be a singleton because model represents the application instance
 
Depends on what the view is, I'd say. In webapps views outlive model instances.
It's a crappy model.
Model is a data source.
Application instance is not a data source.
 
@CatPlusPlus I use "model" for "non-gui aspect of the application"
 
10:43 PM
@StackedCrooked Except it normally doesn't. In a typical case, you can have an application with no model (but obviously not vice versa), and a model with no view. At the same time, having multiple models makes sense (e.g., more than one document open in a word processor or more than one site open in a browser). Singletons just don't make sense here. A singleton should be restricted to things that are inherently singular, or so often that way that you hardly care about the difference.
 
Not to mention the application instance idea is murky as well. What is application instance, really?
A reactor?
It fits the controller role more.
 
An example I've used in the past is software in a copier, and how it deals with the scanner and printer. At least in theory you could have more than one scanner or printer, but a copier that has exactly one of each is so common (and exceptions so rare) that for most copier software, representing each with a singleton could make sense.
 
A controller object only makes sense to me if the view is generated with a designer tool, or from a markup language like XUL.
 
Meh, singletons. If you could have more than one, then why are you wasting time to prevent having more than one.
 
@CatPlusPlus A container of factories.
 
10:47 PM
I have three singletons in my tetris project: Logger, LeakDetector and MainThread. (I could actually remove the LeakDetector because I'm not really using it anymore.)
 
Lemme guess, you have no leaks?
 
@CatPlusPlus The primary motivation is in multithreaded programming, when knowing that there's only ever one instance means it doesn't need to synchronize access to internals. If you allow (even by accident) more than one instance, you end up with a massive, misbehaving mess.
 
@MartinhoFernandes No I have, I just didn't want to see them anymore!
Actually last time I checked with Valgrind I had zero leakage.
 
@JerryCoffin Wait, what? How one shared instance is better than multiple ones?
Or, how global instance means you don't have to synchronize access.
 
@JerryCoffin But creating a thread-safe singleton is tricky.
 
10:51 PM
If anything, having a global instance forces you to synchronise access.
 
Where's boost::singleton when you need one?
 
@StackedCrooked True, but it concentrates the trickiness in one place. After that, you're (sort of) home free.
 
I still don't see how singleton helps, as opposed to creating even more problems.
 
10:53 PM
I think Poco's SingletonHolder is a strange class: code.google.com/p/tetris-challenge/source/browse/trunk/3rdParty/…
 
It still doesn't make the singleton thread-safe. It only eliminates race condition on the lazy construction, at best.
 
Sometimes you really must prevent the creation of more than one object.
 
No, you don't.
 
@CatPlusPlus yes you do
 
Example.
 
10:55 PM
Mu, you mu.
 
MainThread, Logger
 
Logger is bullshit. I might want more than one logger.
MainThread should be what happens in main, and there is really no need for a singleton here.
It might be good to make a logger instance global, but singleton? No.
 
Yeah, but you need to access the MainThread object at various places in your code, and a singleton prevents needing to pass the object every time.
 
@StackedCrooked A global does that just as well.
 
It might indicate god object.
Which is bad.
 
10:57 PM
Just because singleton is overused doesn't automatically mean that it is bad per se.
 
Singleton is hard to justify.
 
@MartinhoFernandes A global doesn't have the lazy instantiation or the scheduled ordering of singleton destruction (when using meyer's singleton).
 
for lulz
 
Lazy construction is not a very good thing, either.
 
This is a stressful topic.
 
10:58 PM
Or rather, implicit construction.
No way to pass arguments to the ctor, because you don't know which call actually constructs the object.
Which leads to workarounds.
 
@StackedCrooked I didn't say that. I said that "because I don't want to pass it around" was not a good justification.
 
Which is bad.
I don't think I've seen one singleton that was necessary.
It's usually just arbitrarily limited global, and that introduces all singleton problems for no good reason.
Not to mention that global state is bad, especially when mutable, and especially in MT.
 
That's why I end up using only two singletons.
 
Which aren't really justified, either.
 
My app is very MT btw.
Admittedly, I ditched lazy initialization in favor of a scoped lifetime of the object.
 
11:05 PM
Why the singleton then?
(And even lazy instantiation does not require "only one instance can exist")
 
Global access to one shared instance. Prevent accidental creation of multiple instances.
Lazy instantiation and single instance are indeed two separate features.
 
Is there a boost::lazy<T>?
I've grown rather fond of .NET's Lazy<T>.
 
@MartinhoFernandes actually I think the SingletonHolder I just posted does that.
 
Isn't it internal or something?
 
wht does lazyT do
 
11:08 PM
(It's in the Foundation folder)
@JohannesSchaublitb Holds an instance of T that is instantiated lazily.
 
@MartinhoFernandes funny, I just notice that the class doesn't follow the rule-of-three
Unless the FastMutex member makes it noncopyable.
@MartinhoFernandes how would the lazy class get the constructor arguments?
 
@StackedCrooked In .NET, the constructor of Lazy<T> takes a lambda.
 
@TonyTheTiger You are talking about a large spectrum in the iq range :)
 
@StackedCrooked yea I'm sure :P
 
11:12 PM
And now I click the link ;)
Hah, that's an interesting article.
Opera users have the highest iq.
 
I think I just learned what an OS really is!
 
It's true that IE users are typically the least technically apt and least informed users.
 
yep
my dad uses IE
oops :P lol
 
You shouldn't expect to much from non-technical users. Most won't know what "operating system" means.
 
11:15 PM
yea I know
it's funny what you get to hear sometimes
and then trying not to laugh in their face
is even harder
 
my one friend uses internet explorer. he said he tried chrome and it would be "horrible"
"it's still somehow on my box. I can't remove it"
 
applicable
@JohannesSchaublitb omg, what planet does he live on?
 
@TonyTheTiger I wish that was common.
 
@MartinhoFernandes yea me too :P
ok, so who comes up with this shit
 
11:19 PM
Let me guess, you're browsing reddit?
 
oh...
 
Have you seen this one?
 
I'm merely clicking links
@StackedCrooked lulz
hahah
 
SO chat should support imgur links
 
what's up with hyundai releasing a 3 door car
 
11:21 PM
@StackedCrooked I thought it did.
 
@StackedCrooked It does. But that's a gallery link, not an image one.
 
@hexa What's wrong with 3 door cars?
 
@MartinhoFernandes just an odd number of doors to have really
 
its just weird :P
 
11:21 PM
Puntastic.
 
indeed heh
 
Huh, it's one on the driver's side, another on the passenger's side, and the trunk.
Nothing new, really.
 
@TonyTheTiger That's not really how this meme goes.
 
3-door cars are an oooold thing.
 
@CatPlusPlus can you give an example of an image link from imgur then? (or do you mean direct links to the image itself?)
 
11:22 PM
@StackedCrooked Yeah, direct ones.
 
@CatPlusPlus I'm no meme expert, sorry
 
They clearly don't exist.
 
TIL the expression: "Fuck you with a cactus."
 
11:31 PM
I think's a paints a vivid image.
 
11:42 PM
oh boy, real winner
hard to take people seriously on that site
 

« first day (286 days earlier)      last day (4664 days later) »