« first day (1341 days earlier)      last day (3624 days later) » 

user3010322
2:01 AM
:P
 
public class Pumpkin : Harvestable
{
	public void OnMouseDown()
	{
		if (IsReadyForHarvest)
		{
			print("Harvested.");
			Destroy(gameObject);
		}
		else
		{
			transform.localScale = Vector3.zero;
			Invoke("grow", GrowthStepInterval);
		}
	}
}
this is some random shit that I found
OnMouseDown() is an Unity-managed method
when the player points the mouse at the pumpkin and left clicks it, it gets fired
it's a lot easier to do it like this than to send mouse state and position from a higher entity, down to the lower entities
 
this reminds me of minecraft's design
 
user3010322
 
user3010322
Shadows are behaving extremely strangely.
 
The date on the article is may 03, but if i sort the comments by oldest it gives me at most 1 day old.
Was this recently posted on reddit or something?
 
2:08 AM
@Borgleader Yes[terday].
 
Ah that explains it
 
I'm not sure I've ever seen singleton used by default in Unity's architecture...
you are normally allowed to only have one AudioListener per scene, but if you add two, all you get is an exception that you can ignore
third parties implement weird singletons that basically act like
if there's already an instance of this type in the scene, delete this one.
you normally see this with Ad providers like Admob's plugin
I guess in this case it's better safe than sorry, who knows what might happen if there were two ad banners in a scene
Google bans the fuck out of you if you click your own ads
something like two ads would probably be reported as cheating or something
there are some public static helper methods, but no singletons
I'm talking about stuff like
GameObject.FindGameObjectsWithTag("some tag")
which searches for game objects with that tag in the current scene
 
user3010322
@Borgleader That guy goes on quite the rant.
 
user3010322
But I agree with a lot of his points.
 
w00t, I'm almost at 10k messages here
 
user3010322
2:22 AM
#roadto10k
 
how do you check messages for only one room
 
you have 30766
just hover over the room name when you click your name <--
2
 
oh, neat
 
@Rapptz cool
 
Dec 24 '12 at 0:57, by Rapptz
Oh hey, I passed 10,000 messages here. Cool.
 
2:26 AM
eeh, I wan't here back then
I wasn't even on the SE back then actually
wait, I was, but never in chat
 
user3010322
@JerryCoffin Heeeey. D:
 
heheh.
Aug 24 '12 at 18:28, by Rapptz
I only have 99 rep. I don't really post much, just lurk around.
This is the first post I remember actually
 
user3010322
I used to have less than 100 rep.
 
user3010322
Then, the upvoters came...
 
also called sock puppets
 
2:29 AM
@self: maybe change your nick from "self" to "self-contradiction"? — Cheers and hth. - Alf 3 mins ago
^^ ahahaha
 
@Rapptz It'd be great if we'll all be able to find our first posts, and repost them!
 
good luck with that
 
I want ice cream.
 
@ThePhD Then you died.
 
I've really taken a liking to gdb.
I guess I've become a weirdo.
 
user3010322
2:31 AM
:(
 
user3010322
We've lost him, lads.
 
@Rapptz Not yet. Not yet until you've tried LLDB.
 
Stockholm syndrome, or capture-bonding, is a psychological phenomenon in which hostages express empathy and sympathy and have positive feelings toward their captors, sometimes to the point of defending and identifying with them. These feelings are generally considered irrational in light of the danger or risk endured by the victims, who essentially mistake a lack of abuse from their captors for an act of kindness. The FBI's Hostage Barricade Database System shows that roughly 8% of victims show evidence of Stockholm syndrome. Stockholm syndrome can be seen as a form of traumatic bonding, ...
 
@Cheersandhth.-Alf You, should read it. Big omega is the lower bound, big O ( Omicron ) is the upper bound — self. 27 mins ago
omicron
I'm going to make big M notation
 
user3010322
big D notation
 
2:32 AM
that's big Megatron
 
@AlexM. Omicron persei 8?
 
@ThePhD lol
 
@Jefffrey It's not that bad. :(
 
why is this Alf guy always trying to start a fight
 
it's just how he is
 
2:34 AM
seriously?
4:34AM
 
5:34 here
 
how did that happen
 
I wish Firefox didn't take up 3 GB of RAM
 
:lol:
 
didn't sleep at all because I slept from 21 to 14:40 or something the night before
 
2:35 AM
I want a memory efficient browser.
 
> void insert_node(Node*,Node**,Node*);
 
I know memory is cheap and all but come on :(
 
@Rapptz You're opening pdfs?
 
dat function signature
 
no
I don't open PDFs in Firefox, I delegate them to Adobe Reader.
 
2:36 AM
you are playing youtube videos?
 
pdf.js sucks
 
we're going back in time
 
yeah I have one video up
 
Joan of Arc fought and died for her country at the age of 17
 
youtube videos are the worse on my machine
they usually take something like 80% of CPU
 
2:37 AM
I managed to bring it down to 1.3 GB
 
fans start spinning and everything just goes to shit
 
people piss outside of windows etc...
 
I hate you Firefox :(
 
try closing the youtube tab
 
2:39 AM
I brought it down to 1.3 GB by closing all other tabs
1 tab is taking up 1.3 GB
 
my chrome used to leak memory because of evernote's plugin
a single tab used to take 2GB
after enough time passed
 
I have 16 tabs including a youtube video and im at 1GB
wtf are you doing
 
nothing
Firefox just sucks
 
anyway, time for bed
 
@AlexM. I learned the hard way to not use too many plugins.
I mostly only have some userscripts, AdBlock, and InstantFox
oh and NoScript
 
2:40 AM
yeah, me too, I only have adblock, some regex search plugin and gmail
 
@Xeo I know you're asleep right now. So here's my preemptive "fuck you" before you can nail me when you wake up. :D:D:D
 
the regex plugin has been extremely useful for searching for pizzas in badly organized menus
 
I am now down to 850 MB. It's a miracle.
 
by searching for strings that contain salami but don't contain bacon
and stuff like that
I'm a badass pizza searching machine with that plugin
 
2:42 AM
@Rapptz Run the GC and see if it helps.
 
I did
 
300MB yay
 
That's how I got it to 850 MB!
 
user3010322
@Jefffrey Filthy Mac casual.
 
I guess I'll just reset Firefox.
 
2:43 AM
@Jefffrey jeeze
did you not know the entire mac os is just a singleton?
 
now let's run a youtube video...
 
abandon ship and switch to windows
 
doesn't work, let's try with vimeo
 
I wonder how hard it is to be an F1 racer
the speed of those cars is just incredible
and I'm not talking only about controlling the car
reaction time must be super fast too
 
lol?
 
2:47 AM
@Jefffrey Why does Finder take up 130 MB?
 
I can't drive because I'm reacting slowly to what happens around me and I can't pay attention
F1 racers must be gods compared to me
 
@Rapptz probably because mac os sucks
 
explorer takes up 41!
 
@Rapptz because it's a singleton
man, I should work on my personal projects some more
I forgot about my virtual assistant completely
and things were going so well
 
@Rapptz WTF is with your machine? Almost all of my equivalent processes consume half the memory.
 
2:49 AM
iunno
 
this is mine atm
chrome is doing fine <3
 
I think Skype's leaking memory
the rest seem normal
 
ever since I started using Win 8 I haven't gone over 4GB of RAM used at any time :\
back on Win 7 I used to go up to 5GB and sometimes a bit over 5GB
this is while working
I'm sure games used more memory
 
Win 8 uses less OS resources.
 
yup
people love Win 8 because on their old machines it runs better than Win XP (or so they say)
 
2:53 AM
That is, only on desktop, as it would be unfair to include the metro stuff.
 
to me it seems weird for a fresh XP installation to run worse than Win 8 on an old PC
if it was Win 7 I'd have understood
 
A fair measurement for them would be to install the same crapware the old XP installation has.
 
I agree with that
I remember using Win XP on an old Pentium 3 @ 500 mhz with 128MB of RAM, after switching from Win 98
it was like playing Crysis after Quake 1
I have no idea why people were against Win XP's theme, I find it to be beautiful
for an OS this old, XP looks amazing
look at it
it looks basic, but beautiful
 
terrible
I have bad memories with my last windows machine
 
@Jefffrey I'm sure that caused a lot of BSODs. :P
 
2:59 AM
@Jefffrey c'mon, it has no flaws other than the fact that it looks too basic compared to today's Aero
the colors work well, there are no obvious defects like icons not being visible and whatnot
the eyecandy, though dated, does its work well
it's like 14 years old
I wonder Mac OS was prettier back then
I'm sure no Linux distro reached Win XP's prettiness back then
 
@MarkGarcia I don't remember if it was blue, but I've had RAM and video card malfunctions so many times that I've basically seen more DOS/BSOD interfaces than the actual OS GUI
I've changed something like 2 blocks of RAM and 2 video cards in less than a year
and the computer was 1.5 year old, or something
not actually the OS's fault, probably, but I still have nightmares linked to XP
and then I saved some money and bought a macbook
probably the best investment of my life
4 years and nothing has ever happened to it
 
I haven't had a single BSOD on my laptop in 3 years, since I bought it, and I used both Win 7 and 8 on it
which leads me to think whenever I had a BSOD on my desktop it was because of hardware failures
 
Once I helped revive a very old machine, Celeron @ 200 mhz, 9mb ram and a 20GB drive, win 98. I was so happy it could run starcraft.
 
because I surely use both computers in the same way
 
@AlexM. You've just hit what may be the most important point (and one that Microsoft and Apple among others seem to have forgotten): eye candy is nice, but it should also be functional. It needs to help you use the system, not hinder your attempts at doing so.
 
3:05 AM
@JerryCoffin especially apple
 
@JerryCoffin I found WinXP to be functional
 
the last presentation of the last OS was mostly "oh look at that, IT'S TRANSLUCID"
nothing really changed but OMG WE DISCOVERED TRANSPARENCY
and all the people clapping
good lord
 
I found that thing with dr. dre calling to say hi to the developers to be a bit...
 
@AlexM. That was my point: in XP it was functional--but since then has been neutral at best, and all too often a hindrance.
 
staged
 
3:07 AM
no, not staged
I mean yes it was staged
but it was unnecessary
 
no, I'm telling you: it's staged.
they always do that
 
and I think it put everyone in a bad light, at least from my POV
 
the whole WWDC put everything on a bad light
 
like, I wouldn't want to be known as someone being snoop dogg's buddy for working at some company
@JerryCoffin ah, yeah
I remember how Vista was all about eye candy and ran like shit on everything
 
WWDC wasn't about being part of cult, in the old days
now it's all about forced clappings/screams and stupid staged comedy
and that reflect their products too, unfortunately
fucking squared phones
 
3:10 AM
@Jefffrey Sounds pretty typical. I remember one from about 1996 or 1997, when one of their people was very carefully not saying what was going to be in their next OS version. They were (carefully not talking about) adding desktop shortcuts, and saying that if they were going to do such a thing, the visual indication should look just like this...and showed what looked like a screen shot from Windows 95, but the audience still acted like it was the second coming.
 
I have this phone:
it's fucking great
it's round and comfortable in my hands
 
@Jefffrey I think you're just growing up enough to notice it. The fundamental nature hasn't changed since it first started (see note above--I can't remember for sure, but about 1996 or 1997).
 
now they have this squared, too tall, design that is terrible
@JerryCoffin yeah, they have always been cult-like, but there was much less useless things IIRC (from the videos, not like I was there at the time).
useless things = stupid android stats, staged phone calls, clapping at everything, comedy, etc...
 
@Jefffrey Here's where/when they turned from computer company into hype-machine:
 
lol
 
3:17 AM
@Jefffrey ikr
I don't use iPhones, but I used to have an iPod touch 2G
it was the most comfortable to use handheld thing ever
because it was round and easy to hold
also small
basically, the 3GS was the last iPhone I'd have enjoyed using
 
this is my phone
 
yeah, I don't get the 13'' phones
 
it's 5.5"
 
iphone 3GS was just big enough
 
this is my phone
it's a bit too big
but I got it for half the price, new and sealed, on contract that I don't have to pay myself
 
3:20 AM
my phone fits perfectly
 
and it's fast
 
my iPhone was so small
 
I'd rather they used that GPU for a 720p display so games ran faster
I just don't see the point of 1080p
 
This is my phone:
It's almost, but not quite, big enough.
 
holy shit
 
3:21 AM
I'm probably the only human left that uses phone basically just for calling and texting.
 
Note 3?
My brother has that one.
 
@Jefffrey the plan was to use it as a host for my virtual assistant
as I said, I should work on that more
my old phone was an Xperia X8, slow as fuck, stuck on android 2.1
 
@Rapptz Galaxy Mega. Note 3 is ... puny. :-)
 
even the address book was lagging
what the fuck man
 
they look the same!
 
3:22 AM
@JerryCoffin It's huge.
 
^ Galaxy Mega
does the iMac have a built in microphone?
might as well just use that with Skype
it's only, what, 2 times bigger than Galaxy Mega?
/s
 
@Rapptz Actually, they are the same size (or extremely close to the same, anyway).
 
@AlexM. I think so
 
I saw an all-in-one Windows 8 PC with a touch screen at a store here
it was really sexy
 
@JerryCoffin Yeah I figured. The size seems overexaggerated in the images for some reason.
In real life the phone isn't nearly as massive as you guys make it out to be.
 
3:26 AM
and the touch screen was working well
 
@Rapptz They're pretty much the biggest around, so exaggerating the size isn't really a big surprise (to me, anyway).
 
again, I find my htc one to be a bit big
I can't browse the web with a single hand
 
do you have super tiny hands?
 
and it's too big to take the top cover off without risking to drop it, when I'm being called
 
@AlexM. I can, but I do have pretty big hands.
 
3:28 AM
I use one of HTC's own cases for protection
 
I rarely use two hands with my phone.
 
I'm not sure they're that tiny
 
outside of games I guess
 
my hands that is
lemme take a pic
 
3:34 AM
the CD is there for scale
obviously, I couldn't take a pic of my hand holding my phone
although that would have been most relevant
 
huge hand
 
it must still be like a lot smaller than @JerryCoffin's if he can use the Mega well
I'd so want a smaller phone, but all good phones are big :(
like, all except for the Z1 compact
that one is a race car in a small chassis
but I couldn't get it for HTC one's price
> Wow! This is the phone I would like to buy. But the cons is the non-removable battery. Li-ion battery lasts only for 2-3 years so I guess you'l be forced to change phone when that happens.
uh, how is that even a con, unless you want to change batteries on the fly because you're out of charge
3 years is way too long to wait for an upgrade
even the apps conspire against you, after a year at least they'll start to run like crap
 
Li-ion batteries last longer than that.
 
actually that's an interesting thing
with most apps using cloud based services
you either use the latest versions, or you don't use them at all
and when the latest version requires a faster phone than what you have, you have to upgrade
 
5.7L 4 stroke V8 @ 15:1 mixture would consume 5.7 / 15 / 2 = 0.19L of fuel per revolution. That must be wrong
 
3:47 AM
the original Facebook app that came with my Xperia X8 (3 years old at least) was still connecting to Facebook
but it stopped showing author names
and pretty much everything was broken
the latest update for it was old by any means
for someone wanting to use Facebook, the phone was basically dead
and had to be replaced
because of Facebook updating their stuff and leaving hardware behind
 
almost 6AM
I should really go to bed
 
Dammit.
@doug65536 I'm no expert on cars (I don't even drive one) but isn't that fuel-to-air ratio?
 
Yes. At full throttle it would be richer than 15:1 in a real engine but that makes it even higher
6000 rpm = 600 revs per sec
 
nights
 
Good night.
 
3:53 AM
Oops 100 / sec
 
@AlexM. Galaxy Mega in my hand:
 
So wide open 5.7L @ 6000 rpm uses 19L of fuel per sec? Of course not
Where am i screwing up?
 
@JerryCoffin ok, that's bigger than mine
I think
this is the note 3 next to my phone
that akinator thing still amazes me, even though I understand how it works
 
I figured it out. Fuel mixture is by weight, not volume
 
 
4:04 AM
@doug65536 Even then it would be true if (and only if) scavenging (removal of exhaust gas) and volumetric efficiency (filling the cylinder with fuel/air mixture) were perfect. In reality, the engine's "breathing" is generally limited by other factors. These include the fuel injectors, the intake manifold, the cam (how far the intake and exhaust valves open, and how long they stay open), back-pressure from the exhaust system, etc.
 
@jerry Yes both of those effects are large at high rpm
 
user3010322
4:25 AM
YEEAAAH
 
5.7L 4-stroke consumes 3.39 g of air per revolution (1.19g/L air @ 100% VE)
 
user3010322
I can hit "R" and my multi-threaded raytracer will pause, clear the buffer, and then retry the raytracing. :D
 
@doug65536 I didn't do the math to check, but are you also taking into account that "4 stroke" means you only refill each cylinder with air/fuel mixture once every two revolutions?
 
Yes I divide the displacement by 2 because 4-stroke
 
@doug65536 Well done, thou good and faithful calculator.
 
4:33 AM
So 1:15th of 3.39g = 226mg of fuel per rev
 
> Is your character known for giving great handjobs?
wtf akinator
 
> A piece of paper is thinner than an iPad, does that automatically make it a better computing device? By your suggestion, it does.
lol
 
1L of gasoline = 710g. 0.226/710 = 318 microliters per rev
@ 6000 rpm (100 rev/sec) fuel flow would be 71mL/sec
Right? Lol
31mL/sec*
 
user3010322
Well.
 
@doug65536 36mL/sec?
 
4:47 AM
Of gasoline
 
@doug65536 I was merely commenting on the math (i.e., 71/2 = 35.5, not 31).
 
.226/710=0.000318... = 318 uL
 
user3010322
std::atomics are non-copyable
 
what could be the root cause of all these calculations?
 
user3010322
So if I do std::vector<std::atomic<int>>, I can't use reserve or resize, right?
 
4:54 AM
@alex you mean me?
 
TIL about std::call_once. Could prove to be useful someday.
 
@doug65536 yeah, what's the reason behind them?
 
user3010322
@MarkGarcia Horribly slow on MSVC.
 
user3010322
Better off using magic static.
 
@ThePhD Well, I'll just call it once so... :P
 
user3010322
4:55 AM
Bleh...
 
@alex to compute realistic fuel consumption for a sim
 
oh
 
user3010322
std::vector<std::pair<int, std::atomic<int>>> is exploding on me. :(
 
@ThePhD No sane person uses MSVC :v
 
user3010322
I wish that were true.
 
4:57 AM
@jerry thanks
 
user3010322
Either way, is there a way to get std::pair<int, std::atomic<int>> to not try to copy when I use it with std::vector?
 
Speaking of MSVC, has anyone tried their stuff on the preview?
 
It is true.
 
user3010322
Or am I fucked?
 
copy at what point?
it should move
 
user3010322
4:58 AM
It's apparently just calling reallocate right off the goddamn bat
 
user3010322
I'm only using reserve and emplace_back
 
make an SSCCE
 
@thephd deque
Or some container that doesn't move objects
 

« first day (1341 days earlier)      last day (3624 days later) »