HNHacker News
TopNewBestAskShowJobs

abetlen

346 karma · joined January 12, 2017

submissionscomments
abetlen··on Ask HN: Should you use a fake landing page to validate your idea?
Fair enough, and to clarify that is what I meant by "fake". I guess just fake in the sense that the user clicked through to your page expecting there to be a real product.
abetlen··on Ask HN: Should you use a fake landing page to validate your idea?
Personally? I don't know if I'd feel right with it but I also don't work in marketing. I was involved in observing a focus group once for a startup I worked for, but even that felt weird for me.

I'm more interested in what other people here have to say. A lot of HN users have started their own businesses and been involved with startups during product validation. I guess that makes this is as good a place as any to ask strangers what they think.

abetlen··on JWT is Awesome
I think you're mistaken on point one, sites that use localStorage to store tokens are not in general susceptible to CSRF attacks [1]. The reason being that seperate domains can't access eachothers sessionStorage or localStorage in the browser. In fact that's one of the advantages of using the DOM storage APIs over sessions/cookies [2].

1. https://stackoverflow.com/a/35347022

2. https://youtu.be/WlmKwIe9z1Q?t=3658

abetlen··on ESbuild – A fast JavaScript bundler and minifier in Go
Very cool project, do you know how this compares with Hugo's javascript minifier / bundler?
abetlen··on Python dicts are now ordered
TIL

I suppose Python doesn't even have backwards compatibility within the same major release as we saw with the addition of the async keyword in Python3.5. Many older Python 3 packages broke because they expected that to be a legal identifier for a variable name.

abetlen··on The Shadow Inc. app that failed in Iowa last night
It certainly could've been done by design but I think more likely this was a doomed project from the start. They rushed this app out with too little time for testing.

I don't want to speculate too much on that screenshot but it looks like they have an error in their Auth0 integration. When you use a service like Auth0 you give it a redirect url to send authenticated users to. It looks like they passed in an invalid url for that redirect. Maybe they only tested this 2fa step locally and something was different when they deployed to users' phones, I can't say for sure, but it doesn't look good.

abetlen··on The Shadow Inc. app that failed in Iowa last night
This Motherboard article has more details on the app including screenshots https://www.vice.com/en_ca/article/y3m33x/heres-the-shadow-i...

My favorite screenshot is the last one, it looks like a generic mobile Firefox error for a misspecified URL.

abetlen··on Sharing an SQLite database across containers is surprisingly brilliant
Late reply but you might find it useful to check out this post which is much more detailed https://segment.com/blog/separating-our-data-and-control-pla...

I'm also left with some questions however. If the issue is the high read latency with a centralised settings database, why not deploy read replicas?

abetlen··on Visa Buys Plaid
I developed both Yodlee and Plaid integrations for a customer last year. I remember the Yodlee sales rep mentioning that over 75% of their supported institutions are direct API integrations. Now, this is coming from a sales rep so take it with a grain of salt.
abetlen··on Ask HN: How hard is it to build a platform like Netlify?
I guess it depends on how far down the rabbit hole you want to go and what you want to learn?

For example, we recently built something to the same effect to deploy our single page applications to AWS. It creates a new Cloudformation Stacks for each site, sets up CodePipeline for continous deployment, build artifacts are placed in a public S3 bucket, and then it's served through CloudFront as the CDN. Beyond that you just need to set up Route53 for your domain and use the Certificate Manger to handle SSL.

I know that's pretty specific to AWS but hopefully it gives you an idea of where you'd start.

Basically to build it from scratch you'd need: - A service that can respond to GitHub webhooks, build projects in an isolated environment based on a config, and push build artifacts out.

- A content distribution network that you can deploy those artifacts to.

- A DNS server to route traffic.

- An SSL service like Let's Encrypt CertBot to issue certificates periodically.

abetlen··on AirSim: open-source simulator for autonomous vehicles
Not OP but I was just looking through their repo and I've done something similar in the past for a different application. We both used Blender for generating the rendered synthetic data. Blender has a really simple python API that was originally made for simple scripts but you can run it in a headless mode. You start with a base scene that has all of your objects and use the api to randomly generate samples and render them out to a file.
abetlen··on Ask HN: Do you use automated tools to create APIs, or do you code them manually?
Yeah a couple years ago we switched from using vanilla Flask to Connexion which lets you describe your API through the an OpenAPI spec. Connexion handles routing and request validation and our developers can just import the yaml into Postman for testing as well as use Redoc for generating pretty documentation sites. Overall the biggest pain point as others have mentioned is writing and maintaining the spec. OpenApi's structure can take some time to get used to and maintaining the whole API in one file is a little tough, but it's not unmanageable with code folding and good schema definitions.
abetlen··on Actix-web 1.0 – A small, pragmatic, and fast web framework for Rust
Not OP but to answer #2, based on the benchmark code here [1] the difference is that actix-pg accesses the database through message passing in the actor system [2] while actix-core accesses it directly [3].

[1]. https://github.com/TechEmpower/FrameworkBenchmarks/tree/mast...

[2]. https://github.com/TechEmpower/FrameworkBenchmarks/blob/mast...

[3]. https://github.com/TechEmpower/FrameworkBenchmarks/blob/mast...

abetlen··on Use links not keys to represent relationships in APIs
No I work mostly with REST apis and I find that api consumers don't really care about having nice relative links or references to self. If anything the popularity of GraphQL indicates that they want more flexibility than is usually available through REST and posts like this are the ones really addressing non-problems.
abetlen··on Use links not keys to represent relationships in APIs
I think the issue brought up in this blog post pales in comparison to the two biggest problems faced when working with REST APIs: querying for nested data, and the limitations of CRUD interfaces to model complex behavior.
abetlen··on Ask HN: How does your development team handle database migrations?
I'm more interested in hearing about what the workflow is like for developers on larger teams. Do they each work on their own features, write separate migrations, and have a DBA approve and merge them.
abetlen··on Ask HN: How does your development team handle database migrations?
Thank you, the Fowler article is very helpful. Does your team have someone act as a DBA to oversee each migration?
abetlen··on Ask HN: How does your development team handle database migrations?
We use Alembic as well and it does make the process easier. I like the suggestion of not applying destructive migrations immediately.

Just out of curiosity, has your team used Alembic's branching system with any success?

abetlen··on Open Source Doesn’t Make Money Because It Isn’t Designed to Make Money
Very relevant is this old post by Joel Spolsky on tech companies using free and open source software to commoditize their complements. https://www.joelonsoftware.com/2002/06/12/strategy-letter-v/

Basically, you can increase the demand for a product by decreasing the cost of it's complements. You can increase the demand for managed Redis services by investing in making Redis better. The caveat is that you can't control where that demand goes and you might end up helping out your competitors more than yourself.

abetlen··on TensorFlow.js: Machine Learning for the Web and Beyond
This and ONNX.js are two projects I'm following very closely even as someone who mostly only works in PyTorch or Tensorflow. I think they both have a lot of potential to reduce the cost of deploying machine learning solutions, especially with everyone in the cloud essentially paying the Nvidia tax.
abetlen··on Comparing Rust and JavaScript Ergonomics with a Simple Linked List
Your comment kind of reminds me of this implementation http://www.rosettacode.org/wiki/Power_set#C for generating a power set in C. The code recursively calls a function that permutes through the members of the power set and creatively constructs linked lists pointing up the call stack.
abetlen··on WWII Bombe operator Ruth Bourne: I'd never heard of Enigma until after the war
Someone can correct me if I'm wrong but I was under the impression that they where the first to realize that the Enigma machine wasn't able to map any letter onto itself. This being the core principle behind all of the machines built to crack the messages, guess part of the plaintext message and discard all the enigma settings which could not have produced that cipher text.
abetlen··on The Future of Notebooks: Lessons from JupyterCon
As a pretty heavy notebook user (for computer vision and machine learning), I have to say that all of these new features are nice but they don't address the real problems with the current ecosystem. Namely, there's no good way to transition exploratory notebook code to python modules. We need linting and refactoring tools in the notebook and something better than `aimport` for moving code into separate `.py` files.
abetlen··on Home Assistant: Open-source home automation platform running on Python 3
I've heard about the problem with the RPi's constantly corrupting SD cards before. I'm curious though, did you try out any other microcomputers in the RPi's price range before upgrading to the NUCs?
abetlen··on Mechanical Characterization of Structured Sheet Materials
Here's another fantastic one they published in SIGGRAPH on a tool for mechanical design https://www.disneyresearch.com/publication/a-computational-d...
abetlen··on Facebook Sued by Investors Over Voter-Profile Harvesting
I get this argument for users but we're talking about investors, surely they should be taking an interest in the companies they put their money into.
abetlen··on JupyterLab is ready for users
There's also an official Google drive extension for jupyterlab worth checking out. I know they demoed it a few times before the v1.0 release it looks very promising.

https://github.com/jupyterlab/jupyterlab-google-drive

Also worth checking out is the renderers, the vega and geojson ones are really cool.

← PreviousPage 2 of 2