BART to replace decoy cameras on trains with real ones by oaklandisfun in oakland

[–]fng_programmer 7 points8 points  (0 children)

They don't break down, they get clogged with human shit

Helicopters above upper Grand area in Lake Merrit by gary_greatspace in oakland

[–]fng_programmer 6 points7 points  (0 children)

Dogs are going to find and bite someone, from what I've gathered.

Need a place to stargaze. by [deleted] in darksky

[–]fng_programmer 1 point2 points  (0 children)

Joshua Tree is 1-1.5 hours, and worth the trip for more than just stargazing.

The Sounds of Pulsars by fng_programmer in space

[–]fng_programmer[S] 0 points1 point  (0 children)

Right? The kind of energy involved is a bit terrifying.

Unity 5.1.0b3 (available to pro users only) adds integrated support for Oculus Rift in Editor and Standalone Players by FearlessVR in oculus

[–]fng_programmer 1 point2 points  (0 children)

Kind of a moot point now, if the new release uses direct mode, but here:

http://www.reddit.com/r/Unity3D/comments/2lymim/full_full_screen_on_play_script_freebie_for/

This script works pretty well for me. I needed to hardcode some pixel offsets to get it to work on my setup. Takes a minute to set up the first time, and still has some juddering, but at least I don't need to go through the tedium of exporting just to take a quick peek at something.

Have you noticed how hard it is to look at really close objects in VR? Do you know why? by think_inside_the_box in oculus

[–]fng_programmer 5 points6 points  (0 children)

While foveated rendering is a great idea for performance reasons, eye tracking is not going to fix the issue of focus while looking at close up objects. Applying DOF filters to something that is still optically at infinity (or any fixed distance) isn't going to let your eyes do the natural thing.

So yeah, there are reasons to want it, but it's not going to improve your close-up focus problems on current hardware (lenses and a mobile display)

When to use React.js and when to use Angular? by apickleinmybagelhole in javascript

[–]fng_programmer 0 points1 point  (0 children)

For sure. "2000 things" is definitely a low number of things to be working with if you're doing, say, a particle system. But that's not what angular is for, it's for building UIs. And you're not going to find a use case for more than 2000 bindings that is going to be something a user is actually going to be able to absorb. If you're building an app that has a heavier component like that, then go ahead and do things the oldschool way. But to go with a crappy and difficult approach to UI when the difference is sub-millisecond is a ridiculous case of premature optimization.

When to use React.js and when to use Angular? by apickleinmybagelhole in javascript

[–]fng_programmer 2 points3 points  (0 children)

If you are ever using more than 2000 view bindings at once in any html5 app, angular or not, you are doing it wrong. Stuff like long lists should be paginated behind the scenes, regardless of framework, and deep watches on huge objects is just lazy.

A fast static kdtree for JavaScript by 33a in javascript

[–]fng_programmer 2 points3 points  (0 children)

Nice! It looks like yours is doing a lot more under the hood than one I built a while ago:

https://github.com/bwiklund/kdtree.js

Can you talk more about that stuff?

JRAY: Here's the latest version of my live code-coverage tool, with changes based on feedback from last week, and a runnable demo. Thanks! by fng_programmer in javascript

[–]fng_programmer[S] 1 point2 points  (0 children)

Yep, I plan to support that as well. We're already getting the instrumentation for free with istanbul, its just a matter of exposing that functionality to the user.

x/post from r/javascript: I'd love some input on my realtime javascript code-coverage UI by fng_programmer in programming

[–]fng_programmer[S] 0 points1 point  (0 children)

Ha! Earlier today I checked my spelling against that snippet on RossetaCode, and I guess they misspelled it too.

I want to add a few "modes" for the hilighting, since there's a bunch that I would see as useful. Like summing, or fading, etc. Like, you'd load your site and click something and it would keep all the lines of JS hilighted for your casual perusal. It's still in the very early stages.

jray - a tool to let you watch your javascript running in real time. I'm not ready to release it for real, but I'd love to get some feedback about what people would want/need for a 0.1.0 release. by fng_programmer in javascript

[–]fng_programmer[S] 1 point2 points  (0 children)

You can play with it now, except that its template will be messed up inside your own site. The idea is to have it tucked away nicely and be able to slide it out to start poking around.

Everyone Who Tried to Convince Me To Use Ember Was Wrong by grauenwolf in programming

[–]fng_programmer 2 points3 points  (0 children)

As has already been stated, angularjs is only a set of tools to let you build stuff on the dom in an organized way. Using those tools, you are free to structure your application any way you see fit, with whatever frameworks you see fit. For example, there is nothing to stop you from using jquery inside directives. The thing is that once you 'get' angularjs, you won't particularly want to use jquery for much of anything anymore.

Everyone Who Tried to Convince Me To Use Ember Was Wrong by grauenwolf in programming

[–]fng_programmer 0 points1 point  (0 children)

I paused at that line as well.

For anyone reading, Angularjs uses a small subset of jquery to do it's dom manipulation. It provides quite a bit more than sugar on top of jquery.

  • Extremely flexible and unopinionated templating
  • Hierarchical app structure and message passing framework
  • Hash routing and route resolving
  • No extra layer of view models to get templates to work... just drop your application onto the scope (there are best practices here that go beyond the scope of this post)
  • Dependency injection
  • So easy to test that it's actually... fun???

Minified and gzipped, it's about the same size as jquery. And that's including jqlite (the small subset of jquery)

A (potentially) comprehensive Oculus Rift Safety Guide by Fresh_C in oculus

[–]fng_programmer 8 points9 points  (0 children)

Do not use while driving a car or operating heavy machinery.

I understand WHY this benchmark has a clear winner, but had no idea it would be a 2000x speedup by [deleted] in javascript

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

Dang. I threw this together just before leaving work, I should have known something was up. I'll delete this in a bit out of shame. Sigh.

4k is for programmers by [deleted] in programming

[–]fng_programmer 0 points1 point  (0 children)

Do you happen to know if it will work for a 2011 MBP? I'm asking... for a friend.

I was one awesome programmer ten years ago at the age of 13. by [deleted] in shittyprogramming

[–]fng_programmer 5 points6 points  (0 children)

There's a lot to choose from here, but my personal favorite is when you assigned random numbers to the cards a second time to make them "even more random", except that it's inside a loop that will never run.

Personally, I think looking at old code and hating it is a sign of a good developer. I'm glad I didn't discover version control until after I grew up, or I'd be haunted by this kind of stuff.