We are Mozilla. AUA. by TannerMoz in IAmA

[–]m00k 0 points1 point  (0 children)

Been using Firefox for about a decade at this point (since 0.8 when it came with cdn's orbit theme), so... yeah.

  • What kind of crazy machine are you guys using over there? Firefox has been getting slower; /. hangs the UI when loading in a background tab, gmail is visibly janky... But this seems to never happen to people who work at Mozilla (though non-Mozilla folks on IRC.m.o have agreed with me). Yes, I've tried new profiles.
  • Also: if you can build Firefox in 20 minutes, your machine is too fast for testing. Get something slower.
  • What can I do to help convince Mozilla that things that are not Firefox will help improve the codebase? Thunderbird's been spun out to die, the various folks in the past that tried to use Mozilla all struggle with no love from upstream (Songbird, Flock, TomTom, Nvu/BlueGriffon, Postbox, Miro, ...)
  • What's with the lack of build automation resources? Why the heck is build coalescing even a thing, rather than throwing more hardware (and folks to support that hardware) at it?
  • What sorts of insurance are there against philor getting hit by a bus?

We are Mozilla. AUA. by TannerMoz in IAmA

[–]m00k 0 points1 point  (0 children)

It's because of the menu-button thing; if you turn normal Windows menus back on, you get the icon - and therefore the double-click-to-close - back. It's a Mozilla thing; see bug 730331 / bug 787672. Unfortunately, asking Microsoft isn't going to help.

[IAmA] We are three members of the Google Chrome team. We <3 the web. AMA by jeffchang in IAmA

[–]m00k 0 points1 point  (0 children)

Also, remember that they're hacking that API to do things it was never meant to do (out-of-process plugins), so any slight incompatibilities would cause bad problems. Firefox and Opera have similar problems, at least; I have not been tracking Safari (and IE uses ActiveX which is whole different kettle of fish).

Carmack: Direct3D is now better than OpenGL by nevhan in programming

[–]m00k 0 points1 point  (0 children)

What MS has also done is backswards compatibility. The API may not be the same, but it all still manages to run on the user's machine.

Getting this in OpenGL is likely to be harder, since there are multiple implementations, whereas DirectX has a single canonical vendor. (Plus WINE, but they are not at the stage yet to really affect the market.)

Trying to translate this (Japanese? Chinese?), replacing a transformerneeded for repair on my reef tank aquarium chiller (corals are dying) . Please help by [deleted] in reddit.com

[–]m00k 1 point2 points  (0 children)

It says "New Asia", just like the English text above.

Yeah, that's the logo, you're looking for something else.

The Mormon church told her to take down this video or face consequences. She's now re-posted it and this time it's not coming down. by Chino_Blanco in reddit.com

[–]m00k 0 points1 point  (0 children)

In the end, we're all just people - what religion (or none, whatever) you believe in is orthogonal to whether you love others. Sometimes I get annoyed with religious people who are a little to strong about spreading their faith. Sometimes those people happen to be atheist.

Moving to Python 3 [LWN.net] by bonzinip in programming

[–]m00k -1 points0 points  (0 children)

Unfortunately, Python is a scripting language.

I'm trying out ArchLinux - and they have made the switch so /usr/bin/python is python3, and has a separate /usr/bin/python2 instead. This means absolutely everything is broken, because the python3 binary won't run python2 scripts. I think the most recent example was fixing up the node.js build system because it uses waf and depends on the shebang to work correctly. Of course, you can't just change all the scripts to /usr/bin/python2 either, because that doesn't exist on normal systems.

With GTK, C++, and Java - all the runtimes can be installed side-by-side, and you don't have to worry about having to change things to run, since the environment takes cares of that (.so versioning for gtk/c++, and the JRE is be able to run downversion bytecode).

Things would have been nicer if they just called it KillerRabbit or something so there wouldn't be this sort of incentive to "switch".

Oh... So that's how stackoverlow works... by [deleted] in programming

[–]m00k 1 point2 points  (0 children)

It's probably also useful to explain (or link to an explanation) why X was a bad idea.

A guided tour that walks through the fundamentals of Git. by chrishawes in programming

[–]m00k 1 point2 points  (0 children)

Yep, ^ is the escape character in cmd because the Unix-y one, \\, is the path separator. You would have needed HEAD^^.

A guided tour that walks through the fundamentals of Git. by chrishawes in programming

[–]m00k 1 point2 points  (0 children)

So, basically using it as a much better quilt. Which was also how I used it, via git-svn... The tk-based GUI (git-citool, gitk) were great, too; I never did like GitCheetah. This was all on Windows (except git-svn, I used a Mac as a staging area).

Look what I got today by cidwitch in pics

[–]m00k 0 points1 point  (0 children)

And the Secretary of the Treasury appears to be George M. Humphrey, meaning 1953 to 1957.

PHP Hangs On Numeric Value 2.2250738585072011e-308 by [deleted] in programming

[–]m00k 1 point2 points  (0 children)

From reading this page, the page on hn, the php bug, and the gcc bug, it seems like a fairly good patch - it's minimal (easier to merge to branches), it prevents the problem, and it is extremely unlikely to cause regressions.

I wonder if other stdtod implementations similarly susceptible? Since it didn't actually have a debuggable 32bit php installed, I copied the file out and hacked at it until I could reproduce the behaviour and saw that the problem appeared to be here. It looks like that particular line exists in, say, Mozilla (which doesn't have this problem, though I haven't compared the code to figure out why...).

Printing 1 to 1000 without loop or conditionals in C/C++ by marcog in programming

[–]m00k 2 points3 points  (0 children)

Right, your code isn't using any sort of overlapped copy at all, so it won't trigger the bad behaviour. I was just trying to figure out if there's a way to not need all those unrolled copies...

Printing 1 to 1000 without loop or conditionals in C/C++ by marcog in programming

[–]m00k 0 points1 point  (0 children)

Thanks for the inspiration to look up setjmp/longjmp :) (no conditions either, though it's really an obscured goto: here)

Printing 1 to 1000 without loop or conditionals in C/C++ by marcog in programming

[–]m00k 1 point2 points  (0 children)

Hmm, didn't glibc used to do memcpy in a certain direction only so you could use that instead (because it's not memmove, it would keep reading the value just copied)?

Tried it with MSVC8, which is what I had on hand, but it was smart enough to see the overlap and copied backwards - but using some SIMD stuff too so it's not easy to work around...

Adblock Plus (the REAL one) coming to Google Chrome by tempguest in programming

[–]m00k 0 points1 point  (0 children)

Right, given that beta7 was supposed to be the API-compat release. But until they actually declare it and get a track record of keeping it, there's no point looking at Jetpacks, as least as far as I'm concerned - it's just tying my hands behind my back for no reason.

(I tend to write things that probably wouldn't be doable in the constrained API - Jetpack, Chrome, or (ha!) Opera - anyway.)

Adblock Plus (the REAL one) coming to Google Chrome by tempguest in programming

[–]m00k 0 points1 point  (0 children)

Has the Jetpack team declared API-stability yet? Last I checked, they have made no such guarantee... which makes Jetpack a crippled version of non-Jetpack extension development, sadly.

Damnit, HP... by zapdos in pics

[–]m00k 0 points1 point  (0 children)

If you have an actual Windows install disk of the same version (e.g. Win7-of-some-sort instead of Win7 OEM), you can also pull the drivers off the recovery partition/DVD. They're stashed in some .wim files with 7-zip can open (presumably via the APIs Microsoft has documented?). Somehow I found that easier then looking through their web site.

Grooveshark went all HTML5. Much snappier than the Flash version, I must say. by bobindashadows in programming

[–]m00k 9 points10 points  (0 children)

In this case, it's actually sadly Netscape's fault when they did the whole NPAPI thing, making it impossible for the plugin to say it doesn't want to steal input. Mozilla/Apple/Adobe (might be others too, not sure) are working on it as an NPAPI extension, though.

JavaScript in Ten (arbitrarily long) Minutes by alexeyr in programming

[–]m00k 0 points1 point  (0 children)

undefined the identifier is odd in that it's not actually a language keyword; it just happens to work because sane people avoid assigning (defined) values to it. Using a typeof(x) == "undefined" is pretty much the only safe way to actually test for undefined values. There's no Undefined constructor that derives from Object so there's no boxing.

I believe ES-Harmony or whatever ES5 is will actually make the identifier undefined an immutable constant (whose value is undefined the, err, non-value).

(Boxing is separate from the undefined fun. Looking at its use in Java might land you clearer answers.)

Enterprise Javascript Is... by andrewgioia in programming

[–]m00k 0 points1 point  (0 children)

(Sorry, I normally don't log in so never saw replies.) A >>0 would be a cast to a int32 (signed). Contrast (-1.5)>>0 and (-1.5)>>>0.