HNHacker News
TopNewBestAskShowJobs

nickpresta

521 karma · joined November 4, 2011

submissionscomments
nickpresta··on Gotchas, Irritants and Warts in Go Web Development
> You can't just copy over a folder (or file) and call it a day ...

Yes, yes you can.

nickpresta··on Why are payment forms so complicated?
Full disclosure: I work on the team that implemented this feature.

On Wave Invoices [1] we try to make it ridiculously easy for people to get paid. As such, we have a very select number of fields that are mandatory and don't require things like address, country, province, phone number, etc.

Here is an example: http://i.imgur.com/yqSUMNb.png

The payment amount is already filled in - set to the full amount of the invoice in question. The rest is relatively easy to fill out.

We use the awesome jquery.payment [2] and Stripe.js [3] on this form so you get formatted input - like on the credit card number and expiry date - and inline validation.

[1] https://www.waveapps.com/invoicing/

[2] https://github.com/stripe/jquery.payment

[3] https://stripe.com/docs/stripe.js

nickpresta··on Why PyLadies?
There seems to be some escaped HTML in your header text: http://i.imgur.com/RG5bBDp.png
nickpresta··on We just launched OpenSignal 2.0 for Android
Kindle, not available in their country, etc.
nickpresta··on We just launched OpenSignal 2.0 for Android
LBE Privacy Guard is only for rooted phones - i.e. most users won't have it.
nickpresta··on The Firefox OS marketplace is brilliant
The apps that I have experience with have all been no-cost.

I don't know what an IAP is, so I can't comment. :-)

edit: Thanks to Samuel for the explanation. No, I don't have experience with IAP.

nickpresta··on The Firefox OS marketplace is brilliant
I've published an app to the Mozilla Marketplace and for the most part, it just work.

As for the manifest file, you can get by with as little as:

  {
    "name":"Example",
    "developer": {
      "name":"Developer",
      "url":"https://example.com"
    },
    "description":"My Description",
    "icons":{
      "128":"/img/icon.png"
    },
    "launch_path": "/",
    "installs_allowed_from": ["*"]
  }
With this, you can install your app from the Marketplace or from your own site (by serving it with the correct mime-type).

It is relatively easy to get the app installed from your own site, if you choose to ignore the Marketplace entirely (our code does it in ~80 lines of CoffeeScript) as seen here: http://www.youtube.com/watch?v=FMxeK1_xY98

One thing to keep in mind is that the window chrome which will house your application does not have back/forward buttons, does not have bookmarks, or an address bar. Remember this when designing your interface (you may been to provide in-app back/forward buttons, bookmarks, etc).

The only problems I ran into when developing this was that the API was unstable at the time (a few months ago) and that relative URLs for installation didn't work (https://bugzilla.mozilla.org/show_bug.cgi?id=745928) but the devs in the mozilla #webapps IRC channel were helpful.

The nice thing about the Marketplace is that you can specify which form factor you want your app available to - Desktop/Laptop, Phone, Tablet.

On the phone side, things are easy:

https://lh3.googleusercontent.com/-7uT3PPCyPD8/UP9RTN-392I/A...

https://lh3.googleusercontent.com/-GB4Vt6YVTKA/UP9RSDzDy8I/A...

https://lh5.googleusercontent.com/-dXnc0iuIBdM/UP9RRW_UILI/A...

https://lh6.googleusercontent.com/-NReWzbudobw/UP9RnJEiHpI/A...

nickpresta··on Hello, PushBullet - push anything to your Android phone from your browser
Pushing files is interesting, but addresses, notes, and lists are easily done already.

Pushing an address:

1. Search address on Google Maps

2. Open up Maps on Android

3. Click on "My Places" from dropdown menu

4. Swipe to Recent

Pushing notes:

1. Create notes in Google Drive

2. Open on Android

Pushing lists:

1. Create list in Google Drive

2. Open on Android

Pushing websites:

1. Open website on laptop in Chrome

2. Open Chrome browser on Android

3. Select the "Other Devices" tab

4. Open website

I suppose you could push files via Drive as well.

Pretty cool though; I may give it a try.

nickpresta··on HTML-based weather app
Android since version 4.0 has the ability to natively take a screenshot.

Hold the Volume Down + Power button and you should see a little camera flash and a notification about your screenshot.

nickpresta··on HTML-based weather app
Which homescreen integration would that be? With the exception of having the chrome (URL bar) hidden by default, Android can add webpages to the homescreen and treat the tile like a native app, already.

It isn't so much that we should be able to run it in our browser, it is that the author is intentionally looking for iOS, with the site added to your homescreen. Had the title been "HTML5 Homescreen App for iOS" I think people's expectations would be different.

nickpresta··on HTML-based weather app
✓ Claims to be an HTML5 app

✓ Requires iOS for no apparent reason

✓ You must install to homescreen first, even if you are on iOS

What does this do and why did you make the above decisions?

EDIT: To get around this, open up your JS console, put a breakpoint on line 509 inside sunny.js and set `window.navigator.standalone = true;`. Things should be fine from that point on if you have "emulate touch events" turned on.

nickpresta··on Show HN: Wavo.me - A social network for music to take on Spotify and iTunes.
Seems cool but I noticed a problem with Chrome on OSX (I assume this affects all browsers).

The right scroll arrow is blocked by the page scroll bar: http://i.imgur.com/YfVUf.png

It is very difficult/frustrating to click on that arrow.

nickpresta··on Rebuilding Facebook for Android
I am using a Galaxy Nexus.

I was able to bring the loading times down to something reasonable but it isn't consistent. Out of 10 times, only 30 or 40 percent were < 5 seconds.

There are anywhere from 5 to 10 articles at any given time on the first page of my feed. It still takes a second or two to reload and after about 6 pages, the scrolling is so laggy so I can't be bothered to use the app.

It's a shame, really, that a platform that popular with all the resources, still has massive performances problems and still has legacy stuff lying around (like the three dot menu in the bottom right on 4.0+ devices).

nickpresta··on Rebuilding Facebook for Android
The app is still ridiculously slow for me on WiFi. Start up takes ~10 seconds to bring up the Facebook logo/splash screen. Then another 3 - 5 to bring up my feed and load the images.

Scroll is laggy and there are only ~5 articles before I have to refresh.

I end up using the mobile version because it isn't as laggy and doesn't require location services and the potential to track me as easily.

The Facebook app should be like the Google+ app if they want to make Android users happy.

nickpresta··on BootyLog: The Overshare App
The video started playing automatically for me, no interaction required.

shrug

nickpresta··on BootyLog: The Overshare App
Your site automatically played audio that was sexual in nature without any warning or indication.

Why do you think this is a good idea?

nickpresta··on Welcome to a New Gist
There is no preview mode for a gist :-(
nickpresta··on List of Twitter Bootstrap Resources
TWITTER BOOTSTRAP NOTIFICATIONS, FROM NIJIKO YONSKAI is gone: http://nijikokun.github.com/bootstrap-notify/

Thanks for the list!

nickpresta··on Nexus 4 Includes Support for LTE on Band 4
Yes.

Confirmed working on Rogers in Canada. :D http://imgur.com/bkyWL It's not only faster than the HSPA speeds I was getting, but it's faster than my home internet connection from Telus. This is awesome.

I had to add an apn with these settings: Name - Rogers LTE APN- ltemobile.apn Port- 80 MMSC- http://mms.gprs.rogers.com MMS Proxy- 10.128.1.69 MCC- 302 MNC- 720 Apn type 1- (default,supl,mms) 2- (*)

Taken from: http://www.reddit.com/r/Android/comments/13nr12/this_video_s...

nickpresta··on An Ode To W3Schools
There are many sites like that. The one I use most frequently is http://jsfiddle.net/
nickpresta··on An Ode To W3Schools
I would argue that http://htmldog.com/ or the MDN (https://developer.mozilla.org/en-US/) are much better resources for even the newbie. Correct information always trumps easily accessible information. It isn't like the MDN is hard to navigate or anything, anyways.

For comparison sake:

https://developer.mozilla.org/en-US/docs/HTML/Element/articl...

http://www.w3schools.com/tags/tag_article.asp

With the exception of the "try it yourself" link, the MDN page has everything the W3School's page has, and then some, as well as being more accurate as it contains version numbers, links to the spec, as well as related usage notes.

nickpresta··on Node.js and Go application: Optimizing for speed and scalability (Part 1)
That grey font on dark background is almost impossible to read.
nickpresta··on Twisted History of Python Packaging
Here is the video from PyCon Canada 2012 (with download link and such): http://pyvideo.org/video/1601/twisted-history-of-python-pack...
nickpresta··on Show HN: an app to help your family be on time
If I schedule an event that starts at 7:00pm and it is on the other side of town, Google Now will tell me that I need to leave at 6:15pm to make there on time.
nickpresta··on Show HN: HoRNDIS - an Android USB tethering driver for Mac OS X
Although not an ideal solution, I just use Airdroid when on OSX.

http://airdroid.com/

nickpresta··on The Future of Markdown
I really like the Mou text editor for Markdown: http://mouapp.com/

Mou + the (built in) Github theme = best Markdown editing experience.

nickpresta··on Ubuntu ported to the Nexus 7
HDMI out is done via MHL adapter: http://www.amazon.com/Menotek-Adapter-IMPROVED-Protocol-Sens...
nickpresta··on Cookie-checker.com - check safely which cookies are set by a site
The site doesn't appear to load any sites for me.

I keep getting "Error: Something went wrong. Please try again."

nickpresta··on Show HN: Chrome Extension to automatically block the annoying Quora login prompt
I understand the alternatives, but it is more the principle of the matter.

I regard Quora as a more technical focused Experts Exchange; Slimy, and not really worth the effort.

nickpresta··on Show HN: Chrome Extension to automatically block the annoying Quora login prompt
While I appreciate this extension, I think a better tactic would be to not visit Quora if you don't agree with the way the site is run.

Between the blurred answers and the login prompt, I will never visit Quora, for any reason, ever.

← PreviousPage 3 of 5Next →