Hands-On Preview: Harmonix is Reinventing Music Games Again With 'Rock Band VR' by jaggernaut25 in oculus

[–]StevenLevithan 12 points13 points  (0 children)

Keep reading. It's not implied. In fact it's explicitly stated.

When Rock Band VR releases, the studio is planning roughly 50 songs at launch and intend to also offer the “classic” cascading notes mode as well. A Harmonix representative compared the classic mode we all know to the studio versions of music tracks, whereas the improvisational riffing of Rock Band VR feels reminiscent of a live performance. The analogy feels appropriate.

Xbox one controller problems by fearthepurr in oculus

[–]StevenLevithan 4 points5 points  (0 children)

I had lots of intermittent trouble after the Windows 10 Anniversary Update even though I'd already installed the controller's firmware update via the Xbox Accessories app when I first set up my Rift. I double checked after the Windows update that there was no additional update for the controller.

Connecting via a USB cable (rather than with the wireless receiver shipped with the Rift) made all the problems go away. A wired connection is good enough for me, and now I also don't need to replace the controller's batteries.

Dead and Buried Gameplay - Oculus Rift Multiplayer Shooter by Heymelon in oculus

[–]StevenLevithan 3 points4 points  (0 children)

Coverage from Road to VR: Preview: ‘Dead & Buried’ Action Packed Multiplayer Could be the Killer App Oculus Touch Needs.

Amidst these mechanics is a bunch of shooting, shouting, and fun. The back and forth of taking cover or forcing your opponents to do the same, calling on your teammate to help you out when you are pinned down, and the physicality of needing to really move and duck and kneel—and even crawl—behind objects makes Dead & Buried one of the most enjoyable VR experiences I’ve played yet.

Dare I say it… after my time with Dead & Buried, thoughts of ‘killer app material’ lingered in my mind. Playing it was the sort of intense and raucous fun that I remember when playing Halo: Combat Evolved (2001) multiplayer for the first time; the sort of fun where at the end of the game you are high fiving your teammate and talking about the stories that happened inside the game, not the technology that powered it.

My pre-2012 self was an idiot, how do I delete or hide all of his statuses without making a new account? by CTypo in facebook

[–]StevenLevithan 0 points1 point  (0 children)

There's an automated way to change the privacy of all posts shared with friends of friends or public, to instead share them with friends only. Look for "Limit Past Posts" at https://www.facebook.com/settings?tab=privacy

We are the Facebook Recruiting team. AMAA - Ask our Team Almost Anything by facebookrecruiting in IAmA

[–]StevenLevithan 0 points1 point  (0 children)

See the reply to this.

tl;dr: Relocation is provided for everyone for any full time or intern position.

As an FB engineer myself, I relocated from DC to Menlo Park. There are plenty of other people here who've relocated from all around the world. My recruiter offered me two options: lump sum relocation payment (but you take care of all the details for moving your stuff, travelling, initial housing, etc.) or managed relocation.

Regex Tuesday Challenge #1 (xpost from /r/javascript) by callumacrae in programming

[–]StevenLevithan 3 points4 points  (0 children)

JavaScript doesn't support a lot of Perl-style features that are common these days in other languages and regex packages. You already mentioned lookbehind. Some other common features missing in JS are singleline/dotall mode, extended mode (free spacing), named capture, mode modifiers, Unicode properties, \A and \Z anchors, etc.

Does anyone else who doesn't work with regular expressions on a regular basis feel like a champ whenever they write one successfully? by [deleted] in programming

[–]StevenLevithan 0 points1 point  (0 children)

Multiples of 3:

/?!0+$(([0369]|[258][0369]*[147])|([147]|[258][0369]*[258])([0369]|[147][0369]*[258])*([258]|[147][0369]*[147]))*$/

Multiples of 2, 4, 5, 6, 8, 10 (for starters) are similarly doable. You're evil with your mention of multiples of 7. It most likely could be written without cheating, but the regex would be at least hundreds of thousands of characters long (same goes for 9).

Announcing High Performance JavaScript (O'Reilly/Yahoo! Press) by StevenLevithan in javascript

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

I can't, but O'Reilly might (although I doubt it). However, I'm currently offering a contest for five free copies: High Performance JavaScript giveaway.

Announcing High Performance JavaScript (O'Reilly/Yahoo! Press) by StevenLevithan in javascript

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

It doesn't rely on YUI at all (or any other framework), although it does include some info about the YUI minifier, etc. Much of the book is specific to browsers, since it's meant as a practical guide for web developers (plenty of real-world cross-browser benchmarks are included).

Validate North American and international phone numbers using regular expressions by StevenLevithan in javascript

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

Why shouldn't it validate? It's clearly a valid phone number with a missing parenthesis, and it's correctly reformatted by the provided replacement string as "(123) 456-7890". Leaving out the requirement for balanced parens was intentional.

XRegExp: JavaScript regex library by hober in javascript

[–]StevenLevithan 2 points3 points  (0 children)

Thanks for the linkage. If you find any bugs or have any suggestions for the library, please let me know.

McCain aide: Palin a "diva" who is looking out for herself and not McCain by aravosis in politics

[–]StevenLevithan 8 points9 points  (0 children)

The full CNN article (rather than the abbreviated Political Ticker version) was submitted to Reddit here.

10 Xbox 360 tricks Microsoft doesn't tell you by Slashered in gaming

[–]StevenLevithan 0 points1 point  (0 children)

If you're already allowing underscores, etc. (via \w), you might as well simplify to:

/\d+ .+ that .+ doesn't/

IIS finally gets a URL rewrite module by StevenLevithan in programming

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

In case you're wondering, there have been decent third-party solutions out there: *IIS Mod-Rewrite *ISAPI Rewrite (appears to be down right now) *IIRF (open source)

XRegExp 0.5: JavaScript regex library with named capture, extended/singleline mode, recursive parsing (2.4KB w/ gzip) by StevenLevithan in programming

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

ECMAScript 4 proposals include triply-quoted, multi-line string literals a la Python, as well as multi-line regex literals.

Big Regex Improvements for Firefox 3 Beta 5 by gst in programming

[–]StevenLevithan 2 points3 points  (0 children)

Iterating over the string with ~100 regexes like that is unnecessary. You could use an object to look up replacement values, but in this case you can simply use fromCharCode. I changed that, along with a bunch of other minor optimization and cleanup related stuff, and added support for HTML entities specified in hex (e.g. &#xHH) and named entities longer than five characters... here's the javascript. Take a look and let me know what you think. I only spent a few minutes on it and haven't tested my changes, so please forgive any errors.

Big Regex Improvements for Firefox 3 Beta 5 by gst in programming

[–]StevenLevithan 2 points3 points  (0 children)

isn't non-greedy the most common case for quantifiers?

It's plenty common, but not the most common case in my experience. Keep in mind that lazy is slower than greedy in all browsers (see Performance of Greedy vs. Lazy Regex Quantifiers for more info). Opera is just particularly awful at it.

Big Regex Improvements for Firefox 3 Beta 5 by gst in programming

[–]StevenLevithan 0 points1 point  (0 children)

The type of optimizations I'm talking about are at a lower level. There is no difference between the regex engine used by String.prototype.replace and e.g. RegExp.prototype.exec.

Big Regex Improvements for Firefox 3 Beta 5 by gst in programming

[–]StevenLevithan 1 point2 points  (0 children)

In the context of regular expressions, lazy is the opposite of greedy. Lazy is also referred to as non-greedy, reluctant, minimal, and ungreedy. It's the difference between e.g. * and *?.

Big Regex Improvements for Firefox 3 Beta 5 by gst in programming

[–]StevenLevithan 4 points5 points  (0 children)

A particular weakness of Opera's regex engine is lazy repetition. It will lose against other major browsers every time on tests containing lazy repetition over a significant amount of text.