HNHacker News
TopNewBestAskShowJobs

alexcasalboni

3,195 karma · joined August 12, 2014

Italian, Musician and Software Engineer.
submissionscomments
alexcasalboni··on Pandas 3.0
Haven't used pandas in a while, but Copy-on-Write sounds pretty cool! Is there any public benchmark I can check in 2026?
alexcasalboni··on Announcing Go Support for AWS Lambda
The maximum payload is 6MB for synchronous invocations and 128KB for asynchronous invocations.

More info here: https://docs.aws.amazon.com/lambda/latest/dg/limits.html

alexcasalboni··on WannaCry: End of Year Retrospective
"the six-month anniversary"? lol
alexcasalboni··on Ask HN: How was your experience with AWS Lambda in production?
I'd recommend using a framework such as the Serverless Framework[1], Chalice[2], Dawson[3], or Zappa[4]. As any other (web) development project, using a framework will alleviate a big part of the pain involved with a new technology.

Anyways, I'd recommend starting from learning the tools without using a framework first. You can find two coding sessions I published on Youtube[5][6].

[1]: https://serverless.com/

[2]: https://github.com/awslabs/chalice

[3]: https://dawson.sh/

[4]: https://github.com/Miserlou/Zappa

[5]: https://www.youtube.com/watch?v=NhGEik26324

[6]: https://www.youtube.com/watch?v=NlZjTn9SaWg

alexcasalboni··on BigQuery vs. Redshift vs. Athena simple benchmark
Absolutely! Efficiency and cost will change drastically by using a columnar format!
alexcasalboni··on Little Alchemy
You can download these files:

- resources: https://littlealchemy.com/resources/base.560.json

- names: https://littlealchemy.com/resources/en/names.560.json

Then you can run this Python code to extract/merge into one single file:

  import json

  with open('res.json', 'r') as f, open('names.json', 'r') as ff:
      res = json.load(f)
      names = json.load(ff)

  for res_id, res_name in names.iteritems():
      print("%s:" % res_name)
      for id1, id2 in res[str(res_id)].get('parents', []):
          print("\t %s + %s" % (names[str(id1)], names[str(id2)]))

Expected output:

  glacier:
  	 ice + mountain
  cart:
  	 wheel + wood
  nerd:
  	 human + glasses
  doctor:
  	 human + hospital
  wagon:
  	 cart + horse
  newspaper:
  	 paper + paper
  paper:
  	 wood + pressure
alexcasalboni··on Dawson – A Serverless Web Framework for Node.js on AWS
It really depends on how you use it. If you structure your code well and you mostly use it to build RESTful APIs (which is what dawson is meant for), you will be able to easily migrate it to any other system. Especially if you use Lambda + RDS, you won't need too much work to re-deploy the same database and functions elsewhere (either another serverless vendor or your own infrastructure).
alexcasalboni··on Dawson – A Serverless Web Framework for Node.js on AWS
Here's the meetup event link -> https://www.meetup.com/Serverless-Italy/events/237189798/

(no videos though)

alexcasalboni··on Dawson – A Serverless Web Framework for Node.js on AWS
Well, everything is still based on CPU registers, but I guess everybody here prefers the abstraction provided by C, Python, Java, Ruby, JavaScript, or Go.
alexcasalboni··on Dawson – A Serverless Web Framework for Node.js on AWS
Yes, I think you can do much better with IAM. Experienced AWS users will not follow such a suggestion, as I suppose that doc is meant to provide a quickstart for beginners.
alexcasalboni··on Dawson – A Serverless Web Framework for Node.js on AWS
Mostly serverless web applications in JS (and Python coming soon!), served with CloudFront (static S3 files) and API Gateway (dynamic APIs).
alexcasalboni··on .NET Core Web API on AWS Lambda Performance
I think showing latency is useless without the corresponding throughput (req/s).
alexcasalboni··on Splix.io
RIP RAM
alexcasalboni··on Radiobox.css – Tiny set of CSS3 animations meant for your radio inputs
Nice but pretty useless for 99% of web users.
alexcasalboni··on SW-delta: an incremental cache for the web
Here is a Python serverside implementation:

https://github.com/alexcasalboni/sw-delta-python

alexcasalboni··on AWS Lambda Coding Session
Note: the video is hosted on YT, but you can find the whole transcript plus some useful links and screenshots below the player.

Also, I would like to gather some feedback and ideas for my next webinar later this month. It will be an advanced coding session about AWS Lambda, covering more complex scenario such as Alexa Skills, Kinesis, Cognito, CloudFormation, etc.

Here's the registration link: https://attendee.gotowebinar.com/register/685101884609607936...

Thank you all.

alexcasalboni··on Dsxyliea
If you are wondering about the JS code:

https://gist.github.com/alexcasalboni/ba7c99fb3484579c0dad

alexcasalboni··on Nginx module by Google for rewriting web pages to reduce latency and bandwidth
Wow. Is this compatible with AWS, Load Balancers, etc.?
alexcasalboni··on LocalStorage error: QUOTA_EXCEEDED_ERR
Note: the same error is thrown on Safari in private browsing mode.

http://stackoverflow.com/questions/14555347/html5-localstora...

alexcasalboni··on The Case Against Third Party Libraries (2014)
It's just against every software engineering best practices. You find a library which implements what you want/need? You don't copy&paste 10% of it into your repository just to make sure it won't ever brake. What if it's broken already? They will fix it and your version won't be updated. This logic is not even ok with your own code, why should it be promoted with somebody else's code?
alexcasalboni··on The Case Against Third Party Libraries (2014)
"Ctrl-C, Ctrl-V"? This is so wrong...
alexcasalboni··on Light Bootstrap Dashboard – useful freebie for web developers
You can find it here, for free:

http://www.creative-tim.com/product/light-bootstrap-dashboar...

alexcasalboni··on Search-Script-Scrape: Web scraping exercises in Python 3 for data journalists
Many of those scripts will most likely fail within a few weeks, as their data extraction logic is way too simplistic and based on unstable and non-semantic HTML structures (i.e. doc.cssselect('small a')[0] ).
alexcasalboni··on AWS Billing: 5 things you should do right now
Well, AWS's costs have been constantly decreasing during the last years. I am actually quite impressed with the new RDS Aurora update, both as far as performance and pricing. Especially since migrating from MySQL is as complex as a configuration switch, with a 5x increase in performance!
alexcasalboni··on AWS Billing: 5 things you should do right now
I think everybody forgets to shut down an instance or two, at least once.

Luckily, you can experiment a lot within the Free Tier, especially for tests and simulations.

Anyways, which size and what kind of database were you migrating? Have you tried Aurora yet?

alexcasalboni··on Ask HN: Who is hiring? (August 2015)
For more info:

https://cloudacademy.com/labs/

You'll be joining a whole family of Cloud experts and trainers:

https://cloudacademy.com/cloud-trainers/

alexcasalboni··on SEO hidden text and AJAX
Showing that it gets indexes does not show how well it would rank wrt normally visible text, though.
alexcasalboni··on Africa Dwarfs China, Europe and the U.S
Wow! That is awesome, seriously mind-blowing and fun to play with!
alexcasalboni··on AWS CloudFront: can you choose to serve content (or not) to specific countries?
Not really, unless you store the whole site on S3/CloudFront.

Although not being able to access your JS resources might be enough to hide your submit URL.

alexcasalboni··on Google Prediction API: A Machine Learning Black Box for Developers
That's exactly the point.

I believe "common" developers are totally fine with it, they always need some sort of abstraction layer. On the contrary, the (quickly growing) data scientists community is not: they need full control for their specific use cases and will never blindly use a black box API.

Disclosure: I am the author.

Page 1 of 2Next →