HNHacker News
TopNewBestAskShowJobs

beaumartinez

1,838 karma · joined September 10, 2010

Ruffian. Python developer.

http://beaumartinez.com/

submissionscomments
beaumartinez··on What one may find in robots.txt
"But satisfaction brought him back."
beaumartinez··on John Resig annotates original jQuery source code
In modern Vim (with netrw), you can type `gx` when the cursor is over a URL to open it in your browser.
beaumartinez··on Consistency and discipline over motivation
Great read.

One of my favourite quotes is "motivation follows action". Often times I've found myself loath to do something, but once I start "revving up" (at work, it might be starting with something simple like a small refactor; at home, it could be committing to simply washing one plate of the stack I have remaining) I find I gain the motivation to keep going.

beaumartinez··on The Tyranny of the Forced Smile
Thank you! I'll keep an eye out for those.
beaumartinez··on The Tyranny of the Forced Smile
I tried to take the test—but the fifth time I pressed "next" it gave me a 404.

The key to faking a real smile is in wrinkling the eyes.

beaumartinez··on Photos Preview
> They need to make money somehow.

Yes, because their profit margins are that low (!).

Considering Apple charges you £500 for a phone and £1000 for a laptop, I'd expect a bit more in terms of default cloud storage. 5 gig (and the 16 gig the cheapest iPhone 5S model offers) are incredibly stingy.

beaumartinez··on Testosterone is the drug of the future
Alcohol, plastics (which leech from containers into the liquid they contain), pesticides (on fruits, vegetables)—there are a host of environmental factors that reduce our testosterone levels.

And as for anxiety, I think our modern urban lifestyle far increases our anxiety levels compared to our ancestors.

The human body was not meant for the world we live in!

beaumartinez··on Lifespan depends on month of birth (2000)
I'd think the opposite. Since she is used to having to work hard from a young age, she will be more successful in life.

Others who coasted through—whom were used to everything being relatively easier—will not have the experience she has already accrued when faced with a harder challenge.

beaumartinez··on “I paid $25 for an Invisible Boyfriend, and I think I might be in love”
Funny, it reminded me more of the episode "Be Right Back".
beaumartinez··on The 2014 Panic Report
If only the Nokia of old were still around.
beaumartinez··on Python: Faster Way
Agreed, although it's interesting to see the disassemblies.

Python is a language about readability and conciseness first, performance second.

I would have liked to have seen `map` used in the list comp examples, as well as seeing the tests run on Python 3.

beaumartinez··on Mozilla and KDDI Launch First Firefox OS Smartphone in Japan
Adding my own two cents here—

- You can no longer put your phone into silent from the volume slider

- You can no longer put your phone into vibrate or silent from the power menu

- They removed the shortcut to "app info" from the most recents menu, and from the notifications menu (I used this to force-stop apps)

- Apps randomly restart themselves; I assume this is a memory leak issue (this is on a Nexus 5, I'd never experienced this before)

- Reduced battery life (night-time battery life is abysmal—my first night with Lollipop I missed my alarm because my phone died)

I was so frustrated by Lollipop I reset my phone to Kit Kat. They removed a bunch of shortcuts, and I really don't understand why.

beaumartinez··on Two Simple Steps Helped Me Learn Vim
To to keep your fingers on the home row, in order to have better access to all the other keys in your keyboard.

Having your fingers on the arrow keys mean your hand has to travel that much further to type the other keys—making you slower.

beaumartinez··on Two Simple Steps Helped Me Learn Vim
Good tips. Getting in the habit of explicitly searching (/) instead of scrolling is another one.

On the subject of using fFtT (and other motions), there's a plugin I quite like that works well with my mental model of that motion—I often don't want to go to the first instance of that character, but the second or third in that line. EasyMotion[1] lets you do that.

[1] https://github.com/Lokaltog/vim-easymotion

beaumartinez··on Run to Stay Young
I've always heard a lot of this is due to improper running technique, since shoe technology shifted to a heavily-padded heel. This in turn made people more likely to land on the heel, which sends the shock right up the leg, into the knee.

Barefoot running, and less padded shoes, promote landing on the balls of your feet (as otherwise it's incredibly painful!). Landing on the balls of your feet allows your foot to reduce the force that gets shot up the leg.

beaumartinez··on The Limits of Friendship
Relationships are an investment. It requires some effort but the return on that effort is incredibly high. As I get older I realize how valuable my friendships all are.
beaumartinez··on A Call for a Low-Carb Diet
It's because you weren't eating any fats. On a low-carb diet, your body uses fat as its energy source. If you don't eat any fat, your body will not willingly consume your body fat.

Excess protein you eat is effectively broken down into carbohydrates as well—so everything was working against you.

> With little research

Try it again—/r/keto have an excellent FAQ.

beaumartinez··on I created my own MMO and lost 100 pounds
Thanks! This plays nicely with my confirmation bias; I've been on a ketogenic diet since March and I've felt much better because of it.
beaumartinez··on I created my own MMO and lost 100 pounds
Interesting. What studies did you stick with?
beaumartinez··on Which is better, Adblock or Adblock Plus?
I've posted this on previous ad blocking threads, and I'll post it again because I think it's very relevant—

> "Adblock without the plus" isn't the original Adblock (from which Adblock Plus was forked), it's an extension created for Google Chrome once Google Chrome enabled support for extensions. Very disingenuous name. It piggy-backed on the work already done for Adblock Plus (for Firefox).

> Adblock Plus for Google Chrome came much later.

Nowadays, I use and recommend HTTP switchboard[0]. It's fully open[1], and offers very powerful customization on what exactly to block on a site.

[0] https://chrome.google.com/webstore/detail/http-switchboard/m...

[1] https://github.com/gorhill/httpswitchboard

beaumartinez··on GameCentral talks to the creator of Oddworld, gains insight into games industry
It's a remake of the original Abe's Oddysee.
beaumartinez··on GameCentral talks to the creator of Oddworld, gains insight into games industry
FTL is a bit of an outlier in the sense that they were fully funded. If you're an independent studio without that kind of money, you're still at a publisher (or other financer)'s mercy.
beaumartinez··on Why I can’t stop using Vim
:x

(It's the same as :wq, but one character shorter.)

beaumartinez··on Massive 'ocean' discovered towards Earth's core
Which episode was that? I'm struggling to remember it.
beaumartinez··on The Future of Kinect
Perhaps, but are "regular folks" that inclined to buy an Xbox One just to play a few Kinect games? Sales figures suggest not.
beaumartinez··on Git 2.0
There is, in the linked article.
beaumartinez··on Control-R, my favorite Unix shell command
I'd do this, but the lack of indication of the editing mode you're in destroys how useful this'd be to me (I'd have to paranoidly hit Esc all the time).
beaumartinez··on Ack is a grep-like tool, optimised for programmers
ag has had this for a while now (I'm on version 0.21.0).
beaumartinez··on App.net State of the Union
The problem with App.net was that it offered nothing new. It was an alternative to existing free, established products—Twitter (and, to an extent, Google+ and Facebook).
beaumartinez··on 2048, success and me
This is very well said, and a very good point.

Not all derivative works are strictly bad, in the same sense that copyright infringement (eg, downloading an album on The Pirate Bay to try it out) can be a gateway to purchasing content (albums, concert tickets) a consumer wouldn't have otherwise.

Page 1 of 18Next →