HNHacker News
TopNewBestAskShowJobs

assafmo

151 karma · joined October 11, 2016

https://github.com/assafmo
submissionscomments
assafmo··on The cost of 1GB of mobile data in 228 countries (Feb 2020)
> the government broke up the monopoly and forced competition into the market by making existing players share infrastructure.

Yeah, this was excellent for 4G prices (I'm paying $8/mo for 40 GB), but now telecom companies are wary of installing 5G infrastructure, because they are forced to share it with other service providers who did not have to invest millions in new 5G infrastructure.

assafmo··on Quick and dirty full-text search with SQLite3 and Golang
https://www.sqlite.org/fts5.html
assafmo··on Diving into Go by building a CLI application
Bash Bonus #2:

   seq 1 10 | xargs -n 1 ./go-grab-xkcd -s -n
assafmo··on Text Processing in the Shell
Lately I've started to use Perl instead of sed for replacing text. Its regex support is much better IMO:

  cat a.txt | perl -pe 's/banana-(\d)/papaya-$1/g'
Or in-place:

  perl -i -pe 's/banana-(\d)/papaya-$1/g' a.txt
assafmo··on Text Processing in the Shell
Personally I like parallel better because of the `--bar` option and `{}`, `{.}`, `{/}` and `{/.}`. And I usually just use it with `-P 1` anyway.
assafmo··on WARP is here
Also for me. Instagram, Facebook, WhatsApp and Google Photos just load forever. Android 8.1.
assafmo··on Partnering with publishers for a better journalism experience
So what does viable mean?
assafmo··on For the Love of Pipes
I usually replace cat with pv and gets a nice progress bar and ETA :-)
assafmo··on Show HN: Glycemic load calculator
Done.
assafmo··on Show HN: Glycemic load calculator
It's pretty hard because of the source data. I'll see what I can do about dividing search results into food categories.

Thanks for your feedback.

assafmo··on Show HN: Glycemic load calculator
Done. :-)
assafmo··on Show HN: Glycemic load calculator
Thanks for the feedback! I think I'll do this. :-)
assafmo··on Show HN: Glycemic load calculator
Moved to https://github.com/assafmo/gl-calc/tree/master/data
assafmo··on Show HN: Glycemic load calculator
Cool!
assafmo··on Show HN: Glycemic load calculator
The data was taken from http://www.diogenes-eu.org/GI-Database/Default.htm (https://github.com/assafmo/gl-calc/tree/master/src_data)
assafmo··on Show HN: Glycemic load calculator
Weird, pasta is in the database. What happened to you is probably the slowness of the search. The database is loaded entirely to the client and searches are done in memory.

Right now it's pretty jumpy even on high-end hardware. I need to fix this.

assafmo··on Show HN: Glycemic load calculator
Thanks for your feedback! I'll address this.
assafmo··on Tcpdump Examples
tshark always hogs my RAM and eventually crashes on > 4GB pcaps. I'd love to have a solution for this.
assafmo··on Shell Style Guide
When breaking a pipe into two lines, I find it cleaner to end the first line with pipe instead of backslash. Then I indent the second line. Bash knows a command cannot end with pipe, therefore it's syntactically ok.

E.g.

  cmd1 |
    cmd2
Instead of:

  cmd1 \
    | cmd2
assafmo··on Mounting partitions from a dd image
Thanks! I missed this. Fixed. :-)
assafmo··on Apps of a Feather
What about their new webhooks API for notifications?

https://dev.twitter.com/webhooks

assafmo··on Ask HN: Do you note the author of a HN comment before upvoting/replying to it?
No, but sometimes I feel like others do. I often see downvoted comments with no apperant reason why.
assafmo··on Ask HN: How did you start your business?
This looks interesting! I love the idea of crypto currencies index fund.
assafmo··on How I've built a profitable Slack bot as a side project in Rails
You can maybe save the 9$/month by replacing PostgreSQL with a more generous cloud database. Maybe Cloudant (https://www.ibm.com/cloud/cloudant/pricing) or Firestore (https://firebase.google.com/pricing/).

You should also check out the lambda services of google/azure/aws/webtask.io, maybe they are cheaper for your usage than the $7/month you are paying Heroku for the dyno.

assafmo··on Show HN: Jq-in-the-browser -– jq compatible JSON processor in JavaScript
jq is awesome, but i wish it'd know to ignore broken json and not just fail and exit.
assafmo··on Turning a side project into an open-source project
This looks awesome! I'll test this later and give feedback.
assafmo··on Show HN: Hooks Data API – Realtime Data about Thousands of Topics Over Webhooks
I'll definitely test this with Twitter!

I'm using IFTTT to send webhooks from twitter and the delay can get up to 15 minutes. I also tested Microsoft Flow and the delay was bigger than IFTTT.

assafmo··on Ask HN: Monetize a small R&D lab?
Teach a class for kids in your lab. Teach them electronics and how build cool small stuff.
assafmo··on Ask HN: What are fun entertaining YouTube channels/videos you watch in free time?
Wendover Productions

RealLifeLore

assafmo··on Cities with Uber Have Lower Rates of Ambulance Usage
Can't you pay directly for private insurance in the US?

I pay directly to the insurance company. It costs me about 145 usd/month and includes health insurance (with urgent care), long term care insurance, life insurance (about 500k usd) and some more.

I could have done it through my employer, but when I leave for another place I'll have to renegotiate the price with the insurance company, and also this option has less good of coverage IMO. It is cheaper by 70% tough.

Page 1 of 5Next →