HNHacker News
TopNewBestAskShowJobs

adzicg

2,615 karma · joined January 9, 2014

Gojko Adzic, http://gojko.net/about

Stuff I’ve built/participated in:

https://www.narakeet.com, https://votito.com, https://bugmagnet.org

Previously worked on https://www.mindmup.com, https://claudiajs.com

My books: https://gojko.net/books/

submissionscomments
adzicg··on Introducing Apex – Serverless Architecture with AWS Lambda
i'm working on MindMup, and we're moving almost all our APIs gradually to lambda and api gateway. we have two APIs running there in production at the moment. the benefit is being able to interact with the rest of the AWS stack easily (we use S3 to upload documents for exporting and heroku to process them at the moment, and dynamodb for storing user accounts and license information). ideally, at the end of the migration, we'll just kill all the heroku exporting and licensing services. should be cheaper as well, because we will be able to kick off lambda functions on s3 events instead of polling for s3 changes from heroku.

everything is versioned (so different api endpoints for staging, prod and development can talk to different versions of the lambda function), which is a big plus.

the api gateway stack is highly opinionated, as in it's good for JSON data parsed using Java on the back end (API gateway uses velocity). our strategy is to use it as a nodejs backend, so there was a lot of magic involved in the setup. it's not well documented and it discovering things like "$input.json('$') means entire body" is not easy. also we wanted to return errors as HTTP codes, not just in the JSON message body.

the setup initially was horrible and magic, but it's luckily automatable. I got it working well so that a single lambda function can receive calls from multiple api paths (so we can deploy an entire API at once, and manage dependencies simply), and that all the environment configuration is in the api gateway, not lambda (so a single function can be invoked with production/staging/development environment parameters).

it took me a while to figure out exactly how to pass things up and down the stack, and we ended up building something similar to apex (but significantly simpler due to a limited use case). a single command-line request packs up everything, uploads lambda, creates and configures the API gateway functions, manages versions and permissions, so it's relatively easy to create a new JS function tied to a URL in the API gateway now. It kind of looks like sinatra. we might end up opensourcing that if I get a chance to clean it up.

adzicg··on Show HN: GitHub Hovercard v0.3.3
From what I can see, it's not developed by github but an independent developer. Chrome extensions are a way for third-parties to inject content/scripts into sites they don't own.
adzicg··on Ad Blockers Are Also Changing the Game for SaaS and Web Developers
I'm working on a collaboration tool that uses google drive APIs, and we occasionally get e-mails from people claiming that the product is broken, but in 99% of the cases they installed disconnect or an overly zealous ad-blocker to explicitly block access to drive APIs. I assume this is just a blanket block on anything being loaded from google domains using ajax.

Even though the error message suggests that they blocked it themselves, somehow that thought doesn't come across to users before they start complaining that our product is broken. Given that google loads APIs mostly in the background through several chains of dynamic JS, there isn't much to do about this, really.

adzicg··on Clipboard.js: Modern Copy to Clipboard
execCommand paste is limited by browsers, so synthetic events don't have the content (see section 8 of http://www.w3.org/TR/clipboard-apis/). although that would increase the capabilities of web apps so people could nicely integrate custom copy/paste, it seems to be a security risk (eg you can grab the clipboard contents and paste to a hidden input field, then post to server without the user knowing).

you can plug into the paste pipeline and replace the data pasted when a user causes paste, either by clipboard or clicking on the browser menu/context menu though, just using the html5 events. You don't need a separate library for that.

adzicg··on Premium Android hits the wall
I used to buy premium android phones until a few months ago and switched to an Iphone exactly because of this... The upgrades go through carriers in the UK and EE couldn't be bothered to follow security patches, so I figured it's better to go somewhere that I can at least download updates as soon as they come out.
adzicg··on Show HN: Creators selling files from their own host, Dropbox etc.
leanpub does it for books
adzicg··on Show HN: Creators selling files from their own host, Dropbox etc.
how are you handling redownloads later?

I used to offer my books through my web site directly, but I moved everything to leanpub because I didn't want to respond to 'bought six months ago, want to download again' emails any more.

adzicg··on Dallas Buyers Club case dealt blow by Australian court
tldr version: Federal Court of Australia said DBC would have to pay A$600,000 ($442,000; £283,000) to obtain BitTorrent user details, to prevent speculative invoicing to alleged copyright infringers.
adzicg··on Show HN: Big List of Naughty Strings for testing user-input data
for anyone testing web sites, I built a chrome extension that makes things like this available in the right-click menu [1] the code is on github, so it can be easily extended [2]

[1] - https://chrome.google.com/webstore/detail/bug-magnet/efhedld...

[2] - https://github.com/gojko/bugmagnet

adzicg··on How Instagram closed my account and gave it to a football celebrity
This is assuming that instagram held the only copy of those pictures (so loss leads to IP being destroyed). I doubt anyone would keep the only copy of any serious IP on a third-party free service. (just to make things clear - I'm not defending instagram, but deleting photos on a service users don't pay for can hardly be called 'destroying IP')
adzicg··on How Instagram closed my account and gave it to a football celebrity
> The modern policy of no customer support by these services is a little worrying.

I've got a mixed feeling about this.

On one hand, because a friend and I operate a mostly-free opensource online service, I can appreciate the cost associated with even reading customer e-mails and triaging which one is important to reply to. For a free service, especially one that has millions of users, it's just not economically justified to run effective customer support. And it's not a good move to take someone's account away, but then again, it's a free service so pretty much the account belongs to the company, not the person.

On the other hand, not being able to get any support from Google when their APIs change and break our stuff is annoying (keeping it polite :).

Perhaps there is a model there for services such as Instagram to offer paid support. I'd gladly pay for Google developer support if that was an option, but it doesn't seem that they care enough to offer it.

adzicg··on Huge data breach prompts resignation of OPM director
> usernames and passwords that background investigation applicants used

if this is correct, I guess that means passwords were stored in cleartext or reversibly encrypted. that is either epic stupidity, or someone wanted to keep passwords of potential employees so they could use them elsewhere

adzicg··on Reddit boss apologises after staff sacking causes 'revolt'
why is this related to the question of making community sites profitable? community-driven isn't the same as a non-divided society, lots of communities form around various division lines.
adzicg··on Reddit boss apologises after staff sacking causes 'revolt'
FB is an example of a system where all content is there due to users, but it's profitable. On the other hand, at least from what I could see, FB never really promoted any kind of special culture or community ethos.

based on that, at least two good ways to make a community-based site profitable would be to use it as a platform for this party profit - allow others to embed profitable apps/games/... and take a percentage of their income, and sell ads based on people's interests.

adzicg··on Airbnb JavaScript Style Guide
we use double quotes for HTML and single quotes for JS. that makes it easy to embed HTML snippets in Js code and JS snippets in HTML attribute values without escaping.
adzicg··on Twitter moves non-US accounts to Ireland away from the NSA
the article suggests that weak privacy laws in Ireland allow them to sell more data to advertisers
adzicg··on Show HN: MindMup Storyboards
Author here. This video shows a feature we've been experimenting with lately, aimed at people who write articles and blog posts and like to plan the structure of their writing using mind maps. I'd love to hear your feedback.
adzicg··on Performance tests in a continuous deployment pipeline
Another completely pointless and potentially damaging patent - Performance tests in a continuous deployment pipeline
adzicg··on Ask HN: Writing a book – Where to publish?
I've self-published several books.

I primarily use lightning source for print books (both for getting copies for myself and delivering to conferences and for distribution to retail and amazon). I used Lulu for my first book and was disappointed by their responsiveness in case of problems (note this was in 2007/8, so things probably changed since). I've published two books through lightning source and those got into Amazon very quickly, and have been selling quite nicely.

For e-books, I use a mix of things. The Kindle store is #1 in terms of revenue for me, and I guess not having a book there is akin to creating an IOS app and not publishing it on the AppStore. Having a book there is a must for discoverability. I still use Lulu.com to get things on the apple iBooks store and other lesser ebook stores, and to sell the PDFs online. The amount of money I earn from those places isn't enough to justify bothering with each individual submission. For the Kindle store, the submission process is pretty straightforward and there is no need to pay Lulu commission.

My two latest books are in progress on leanpub. I think this is a pretty good early-access channel. They now have github support and will generate PDF, MOBI and ePub, so this fits nicely with my workflow and toolchain. Leanpub didn't do anything special in terms of discoverability or promotion for my books, but they were a good channel to republish stuff frequently and let people buy early versions. I plan to re-do the PDF completely for print publishing, but I'll use the MOBI and ePub they generated to sell the books directly on the Apple iBooks and Amazon Kindle stores. I think that's going to be better than just keeping it on Leanpub, again because of discoverability. So if the book is already done, I don't think you'll get much from them.

Smashwords.com is another option that looks popular with fiction writers, but I never really did anything there so I can't provide much more than a pointer.

adzicg··on Ask HN: What's going on with all the new cookie warnings?
but this has been around for a while, and I probably already accepted this a long time ago on all those sites. last week or so many sites I visit regularly started asking for another cookie approval, so I'm wondering whether there is some new regulation causing this to happen again.
adzicg··on US sends military draft notices to men born in 1800s
Y2K bug finally strikes!
adzicg··on Ask HN: How do YOU make money from open source projects?
many opensource application developers make money from selling auxiliary services (eg premium support) or training workshops around their products. this is particularly a good idea if your target market are developers.
adzicg··on Ask HN: How do YOU make money from open source projects?
a lot of people use us for planning, mind mapping seems to be popular for test session planning and for project roadmaps. we built some nice features to address this vertical (see http://discover.mindmup.com/impactmapping).
adzicg··on Ask HN: How do YOU make money from open source projects?
By running a service - a lot of software today isn't valuable because of the product, but because of the service it provides. Facebook, Twitter or Drobox software is not particularly difficult to clone - many companies built clones. What sets the popular sites apart from clones is the service they provide (community, reach, availability, easy access). I guess that's one of the failures of G+ - the software was there, but the service wasn't.

Our code is in the open[1], and anyone could install it and run it, but there is a convenient web site[2] out there that lets people get the service easily without bothering with an install. We make money from subscription fees for higher capacity.

[1] - http://github.com/mindmup

[2] - http://www.mindmup.com

adzicg··on Why Everyone Should be Concerned By the Seizure of MyRedBook.com
Many European gambling sites filter and self regulate users by origin country - to prohibit US users from gambling. In most countries here online gambling is legal and regulated, but there were a few cases in 2005 where US police arrested UK citizens - company directors - coming through their borders, for being involved in online gambling. As a result, most gambling operators decised it's safest to just block business from the US.
adzicg··on PayPal Shuts Down Secure Messaging Service ProtonMail’s Crowdfunding Account
Paypal used to be the easiest thing to integrate - especially because they would handle the entire backend server workflow, and you just get a ping from their back end when the thing is done. They also have the instant payment button that would accumulate payments and consolidate orders without you even having a backend.

If you're looking for something similar to the payment integration, Stripe is pretty similar in terms of development effort and can even run a form on your (static) web site. You still have to do a bit of processing on your end, but we're talking about a few hours of work tops.

We ran a subscription business for a few months without a real backend or a database (validating that there is a demand) using stripe and JotForm. Jotform is a very simple forms builder and server online that can handle a trivial product selection, collect custom information, execute a payment workflow and send the customer and you an e-mail at the end, optionally showing the customer a confirmation page. Yes, all this is doable by a good programmer in a day or two, but it costs next to nothing on JotForm and allowed us to play with the process until we got it right. Their site can run paypal and stripe (and a few other things) so in case paypal blocks you it's easy to switch to a different provider without customers noticing anything.

Stripe doesn't offer seller or buyer protection - which is another benefit of PayPal. I don't know anyone else who does that.

adzicg··on Searchcode: A source code search engine
just tried searching for a few obscure things I can find through Github and the site couldn't find anything. meh... not much of an index then
adzicg··on Poll: Are you moving to the Amazon Fire Phone?
I bought the Kindle Fire HD tablet as an experiment a few years back, and found it almost useless for my daily tasks. It was OK for watching movies and reading books, but none of the productivity stuff I wanted from an android device was there.

Stock Gmail app on android is much better integrated with Gmail than a bare-bones IMAP client (multiple accounts nicely recognised, different sync policies for labels etc), I missed the nice Google calendar integration etc.

My business pretty much runs on google apps, so for that use case there is a huge difference between something running android and something running well integrated google services. I assumed getting google apps on Fire would be just a matter of installing, but it would require rooting the device and rebuilding the OS from scratch, which I didn't want to waste time on. I assume Fire phone will have the same issue.

It is Android, but Android without Google services is pretty much pointless for me.

adzicg··on Gmail adding prominent 'Unsubscribe' option to marketing emails
lists aren't always advertising.

I had a list for people who read my books and want to get early previews of new material - kind of insiders view into new thinking, more an irregular newsletter than any form of advertising. every single person manually subscribed to the list, there was never any spam, but e-mail open rates on the list have been dropping over the last few years to the point that I stopped sending it out last year. Of course, content might be at fault, but the engagement among the group that opened the e-mail was still good, so I guess this was collateral damage of the general trend in fighting circular e-mail.

I read an article in HBR a few months ago that people mostly now get notifications on mobile devices, so the logical step for promotional marketing (soft spam) would I guess be to move to mobile apps. the stuff that I was sending out wasn't really suited for that, but if I started the whole thing again I'd probably do it with a mobile app.

← PreviousPage 6 of 6