HNHacker News
TopNewBestAskShowJobs

UberMouse

368 karma · joined February 11, 2013

submissionscomments
UberMouse··on Things I wish I knew about state management when I started writing React apps
> e.g. having the “NavigationService” change which links should be available by listening to a state change on the “UserSession” service as a user becomes authenticated.

Could you expand on how you're achieving this? I'm creating a new project using xState at work and this is one of the things I've been trying to come up with a solution too.

My biggest problem is the pattern I've set up for routing on top of xState (It's an electron app so no URL management required which makes that easy) requires you to create the state machine yourself, so it can't for example be used as an actor in part of a larger system.

It sounds like your NavigationService and UserSession service might be similarly separated so I'm curious how they're communicating?

Something that occurred to me last night is that I can probably make a coordinator of some sort somewhere in the tree which forwards actions from state machine to another as required.

UberMouse··on Ask HN: How do you deal with professional envy?
It's from Snow Crash by Neal Stephenson
UberMouse··on How Id built Wolfenstein 3D using Commander Keen tech
That advertising campaign wasn't Romero's idea; it was the idea of someone else at Ion Storm. Romero was initially a bit hesitant on the slogan but caved to pressure.

At least that was how it was presented in (iirc) Masters of Doom, who knows what the actual truth is.

UberMouse··on Internet speed guarantees must be realistic, says Ofcom
I have an unlimited gigabit connection that I pay $120NZD per month for. And for content on good CDNs or hosted in the country I do get near the advertised speed. It took me just under 4 minutes to download the Star Wars Battlefront 2 beta from Origin which had a size of 23.78GB, averaging 90+ MB/s.

I probably use around 5TB of data per month as well.

UberMouse··on Xbox 360 Emulator Research Project
They are not porting, they have built an emulator that runs the 360 OS and then they boot the games inside of that.

>Delving deeper, Spencer explained exactly how the emulator packages the Xbox 360 games, and how it compares to Xbox 360's emulation of original Xbox games.

>"You download a kind of manifest of wrapper for the 360 game, so we can say 'hey, this is actually Banjo, or this is Mass Effect. The emulator runs exactly the same for all the games.

">I was around when we did the original Xbox [backwards compatibility] for Xbox 360 where we had a shim for every game and it just didn't scale very well. This is actually the same emulator running for all of the games. Different games do different things, as we're rolling them out we'll say 'oh maybe we have to tweak the emulator.' But in the end, the emulator is emulating the 360, so it's for everybody."

>Asked about whether Microsoft would require permission from game publishers to adjust game code, Spencer clarified it would not be interfering with code.

>"The bits are not touched," he said. "There's some caveats, and as always I like to be as transparent as I can be on this: Kinect games won't work from the 360, because translating between the Kinect sensors is almost impossible."

http://www.gamespot.com/articles/revealed-how-xbox-one-can-p...

I also remember watching a video where they talked about it, it had some more details. I can't remember what it's called though and I couldn't find it with a cursory search.

UberMouse··on Storage for Photographers, Part 2
onethumb says here in this comment that they recompress videos for streaming https://news.ycombinator.com/item?id=9939270

Now I'm not sure if that means, it's recompressed when it's streamed, or if it's recompressed when it's uploading, for streaming.

UberMouse··on Why we're all-in on virtual reality
Here is some very interesting tech from OTOY that is basically doing that, http://uploadvr.com/diy-wormholes-hands-on-with-otoys-light-...

"Recap: the rig takes two Canon DSLRs and spins them around in a circle, capturing a dense light field image. The resulting data, when properly processed, can be rendered with OTOY’s pipeline and delivered to a VR headset with full head tracking. It’s a static scene but OTOY have alluded to future video capture."

UberMouse··on Why we're all-in on virtual reality
cumbersome is only a temporary thing, VR is definitely going to be an enthusiast thing for the next couple of years, but once the form factor/price starts coming down and the content is actually starting to come out at a reasonable rate I can't see it doing anything but exploding.

It's not something you can really understand until you've experienced it first hand, but I think the experience can turn a decent amount of people into enthusiasts.

UberMouse··on Why we're all-in on virtual reality
Mirrors Edge is practically guaranteed to cause nausea unless you have an iron stomach. Doesn't have native VR support and it's a first person platformer. Not to mention the fact the CV versions of the headsets coming out are going to be a LOT less likely to cause motion sickness with the higher refresh rates, better screens and improved SDKs/tracking solutions bringing down latency and hopefully eliminating any judder.

Still, I don't think we'll really be seeing games like Mirrors Edge in VR for a long time, not until we've figured out locomotion that doesn't cause sickness. Things with 1:1 movement (ie the camera never moves unless you move your head) and/or things with static elements to give you a point of reference (like a cockpit, apparently even just having a helmet in your vision giving you a point of reference helps) basically don't make me sick. But if I try to play an FPS for even 10 minutes I come away rather queasy, whereas I can play Elite: Dangerous for hours with only minor discomfort (because I am sitting in a seat in the cockpit of the ship).

UberMouse··on Vim's 400 line function to wait for keyboard input
It's a third party plugin, it's definitely a Neovim issue because the file corruption doesn't happen with Vim. No idea why it happens. I'm fine living with it because I just check the file back out if it corrupts it. It's only an issue when opening a new file so it doesn't cause work to be lost.

A github issue about it https://github.com/junegunn/fzf/issues/206

UberMouse··on The Icy Mountains of Pluto
I think it's 16 months to transfer every piece of sensor and imaging data back. The article says it takes ~40 minutes to transfer back a losslessly compressed full resolution image from the LORRI scanner
UberMouse··on Vim's 400 line function to wait for keyboard input
I use Neovim as my daily editor, it definitely has it's quirks over Vim (sometimes it takes over 10 seconds to write to certain files, locking up Neovim and there are some bugs with the fuzzy finder I use that cause file corruption that aren't present in Vim) but on the whole it's pretty stable. Haven't encountered any issues yet that are more than a minor annoyance.
UberMouse··on The Electric Car
This would not be referring to the Model S, but something like the $20-30000 Model 3.
UberMouse··on After the Layoffs
Aston Martins are expensive, it's just a way to show the guy had a lot of money and he still had to pry the £60 out of his hands.
UberMouse··on Simpler UI Reasoning with Unidirectional Dataflow and Immutable Data
I'm not quite understanding how the component determines whether it should redraw itself in this example. The component gets redrawn when the render function is called (if the data it's passed is different and if the output of the render changes) and the render function gets called when a "swap" event is raised, which is raised when a component updates the app state, but it's not saying "please redraw me now". It's not aware it's getting redrawn, it just happens.

Unless I've mis defined what "letting the component determine it needs to redraw" means in this context.

UberMouse··on Toyotas Unintended Acceleration and the Big Bowl of “Spaghetti” Code (2013)
Doh, all the reddit links were from today didn't realize it was from 2013. Updated the title.
UberMouse··on Why do buses bunch?
This doesn't even seem like an accurate simulation, if bus 1 is unloading/loading at a bus stop and bus 2 catches it, bus 2 waits for bus 1. This makes sense in the context of the website because buses always drop off/pick up passengers when they get to a bus stop. But that isn't how it works in real life, if bus 2 doesn't have to drop off someone while bus 1 is at the stop it will just leapfrog past it.

The fact that busses don't overtake each other seems to be the reason the bunching happens, as soon as the front bus starts slowing down a little it's inevitable bus 2 will catch it and then the situation can't be fixed.

UberMouse··on Microsoft makes it easier to build Minecraft Mods using Visual Studio
They don't have to release the source code. They just need to stop running the bytecode through an obfuscator.
UberMouse··on Android’s 10 Millisecond Problem explained
The website font? I'm viewing it on a 27" 2560x1440 screen, Chrome 42 and OS X 10.10 and the fonts are normal sized for me. In fact larger than the HN font.
UberMouse··on Too little is known about whether money spent on higher education is worth it
A computer science degree at University will not teach you 'working skills' for the software world, you only get those from working on software with a team. I started my first job as a part time software developer at a local company in my last year of highschool and I'm now working full time at my second software company (And I'm only 20), I attended the first year of a computer science degree through my highschool which is the only higher education experience I have. As long as you demonstrate the ability to learn I think you would do fine at a software company, it's definitely something I would investigate before committing to university.

Now this is only my perspective as someone living in New Zealand, I'm not very familiar with the UK. But I think it would still be similar in the UK.

P.S I feel I should disclose that I am biased against universities, none of my friends have gone to uni and my flatmate is in the same situation as me. I don't really believe in the reasons most people go to university, I certainly don't think it's a decision someone should make coming out of highschool.

UberMouse··on The 'SimCity' Empire Has Fallen and 'Skylines' Is Picking Up the Pieces
The problem stems from the car AI being crazy aggressive in it's lane switching. They will switch to the lane for their exit the instant they can, even if they still have to travel around the entire city to get to it. Leading to middle lanes not getting as much use (At least without careful planning to ensure there is something they can exit the road from the middle lanes with) and potentially large backups of a single line of cars waiting to turn right (Even when the lane right next to it is also a right turn lane). They also cannot merge properly so I end up placing exits on both side of my highways (For both incoming and outgoing traffic) with one side coming up and over the road to join into the other sides exit to limit congestion.

Not that any of these things are completely unrealistic but it is occasionally annoying when your traffic is backed up solely because they're ignoring the adjacent lane.

UberMouse··on The Dark Web’s Top Drug Market, Evolution, Just Vanished
The article mentions that Evolution provides such a service, but it didn't get heavily used. Quoting from the article

>That system, would require at least two out of three parties in a transaction—the buyer, the seller, and Evolution’s administrators—to sign off on a deal. But due to its complexity, buyers rarely used the feature.

Edit: apparently this does not use bitcoins version of it, but their own that requires them to hold the funds in escrow. Which seems pretty stupid.

UberMouse··on The Hating Game
I'd take a look at React depending on the complexity of what you're building. If it's not too complicated, React is fairly easy to pick up and it's a joy to work with. If it's a larger project the guidance of Angular/Ember is probably worth it though.
UberMouse··on How Google Inbox shares 70% of its code across Android, iOS, and the Web
With React Native you still need to write the UI for each platform. But you can share the models/business logic between platforms because it's all Javascript.
UberMouse··on Google SoundScript: faster OOP for JavaScript
Pretty sure they still are syntactic sugar for prototypes, just like in ES6. But SoundScript enforces that you cannot modify prototypes. There's not really a problem with that, it's doing it for speed. So it's not for your average Javascript app where performance doesn't matter as much.
UberMouse··on Relay FAQ: Facebook's Data-fetching Framework for React
Component requests n fields of data, actually uses n+1 fields and the only reason the field is populated is because another component has requested the data, remove that component and boom unrelated component breaks. With GraphQL you have to specify exactly what fields you want and you can't accidentally get access to more than requested.
UberMouse··on GraphQL - Data Fetching for React Applications [video]
If they can pull off what they're saying they can, this will be mind blowing. Pretty interested in seeing what the server code for this looks like.
UberMouse··on Firefox Hello
Both Firefox Hello and appear.in use WebRTC which is a Javascript API provided by the browser for this sort of stuff. So appear.in does require browser support.

Firefox Hello also is a website, it's just running inside the browser. http://mxr.mozilla.org/mozilla-central/source/browser/compon...

UberMouse··on Next Week's Bloodbath At IBM Won't Fix The Real Problem
>for each $10000 of employee salary

So a billion saved per 10k of average employee salary, just way of quantifying it in something understandable.

UberMouse··on Tuxedo.js – A Framework Built on React and Flux
Those actions can be named whatever you want. The person who wrote the code that appears in the documentation just went with those names, they're completely up to you, the developer.
← PreviousPage 2 of 4Next →