HN user

ankurpatel

401 karma

meet.hn/city/us-Irvine

Ruby on Rails/Frontend Web/iOS App Developer/Writer

Socials: - github.com/ankurp - linkedin.com/in/ankurgpatel - x.com/ankurpatel

Publications: - https://amazon.com/author/ankurpatel -http://shop.oreilly.com/product/9781939902115.do

Interests: Full Stack Development, Open Source, Remote Work, Technology, Web Development, IoT Devices

[ my public key: https://keybase.io/ankurpatel; my proof: https://keybase.io/ankurpatel/sigs/lLqCHbJG3Pc-G2GhPpYVlFd8bMRvEGOs3O-m1AcRGaw ]

Posts100
Comments121
View on HN
www.sfchronicle.com 4y ago

She set out to save her daughter from fentanyl – San Francisco

ankurpatel
3pts0
techcrunch.com 5y ago

Microsoft says China-backed hackers are exploiting Exchange zero-days

ankurpatel
2pts0
www.federalreserve.gov 5y ago

FedNow Service

ankurpatel
3pts3
www.bloomberg.com 5y ago

Jack Dorsey Says Square May Build a Bitcoin Hardware Wallet

ankurpatel
1pts0
www.youtube.com 5y ago

Server Side Components in React

ankurpatel
1pts0
www.watasale.com 5y ago

Amazon Go Clone

ankurpatel
1pts0
www.amazon.com 5y ago

Amazon Guard

ankurpatel
1pts0
www.amazon.com 5y ago

Amazon Halo

ankurpatel
2pts1
hey.com 6y ago

Hey by Basecamp

ankurpatel
9pts3
en.wikipedia.org 6y ago

2011 England Riots

ankurpatel
7pts0
m.economictimes.com 6y ago

India to be under complete lockdown for 21 days starting midnight

ankurpatel
3pts1
www.cjr.org 8y ago

Wild Wild Country

ankurpatel
1pts0
blog.encoredevlabs.com 8y ago

How to make your own Homekit Enabled Thermostat using Raspberry Pi 3

ankurpatel
1pts0
www.stellar.org 8y ago

Stellar Smart Contracts

ankurpatel
1pts0
www.stellar.org 8y ago

Stellar Smart Contracts

ankurpatel
2pts1
federalist-proxy.app.cloud.gov 8y ago

United Sans – A strong, neutral typeface for text or display

ankurpatel
4pts0
github.com 8y ago

Homekit Enabled Thermostat Using Raspberry Pi 3

ankurpatel
2pts0
blog.encoredevlabs.com 8y ago

Homekit Enabled Thermostat Using Raspberry Pi 3

ankurpatel
11pts0
arstechnica.com 8y ago

Delhi becomes “gas chamber”

ankurpatel
1pts0
www.bloomberg.com 8y ago

The Jobs Numbers: Who’s Hiring in America–and Who’s Not

ankurpatel
1pts0
theoutline.com 9y ago

The Outline

ankurpatel
4pts0
www.kickstarter.com 9y ago

Dashbot: Add AI to Any Car for $49

ankurpatel
1pts0
www.theverge.com 9y ago

Google's New York City pop-up shop is now open

ankurpatel
3pts0
ankurp.github.io 10y ago

Show HN: Underscore.js using modern ES7 syntax

ankurpatel
5pts1
github.com 10y ago

Show HN: Underscore.js with modern ES7 syntax

ankurpatel
1pts0
github.com 10y ago

Show HN: Memory Reference Rails

ankurpatel
1pts0
www.jpl.nasa.gov 10y ago

Ceres' Bright Spots Seen in Striking New Detail

ankurpatel
1pts0
thenextweb.com 10y ago

India turned off mobile internet for 63M citizens amid protests in Ahmedabad

ankurpatel
112pts121
getvero.tv 11y ago

Show HN: Vero will play almost anything you throw at it

ankurpatel
1pts0
osmc.tv 11y ago

OSMC is a free and open source media center

ankurpatel
17pts10

Thanks for sharing and it is a great idea. I am currently in same situation where we are moving to a new home where it is big enough for my family and parents to live in one place. There is a lot of activities to do near by and weather is milder where we are going but agree the separation of space you have is the best to avoid petty disputes/differences that occur when living together.

In Indian and Asian culture in general you will take care of your parents just as they have taken care of you when you were a child. Old age is just like childhood age where you have to look after them just as much as you would look after a young child. Having your parents move in with your family is an option so that they don't feel lonely. They can also see their grand children and not feeling lonely at home. Loneliness is one of the main reasons to loose hope in life if they do not have good neighbors or support system. Once hope is lost then motivation to live long also goes away.

Not sure what other think of my opinion but I am living with at my parents at their home currently and just bought a new place and moving with my parents and wife/kids. There is attachment to the home we lived in for this long but we are looking forward to better life in new home together. There can be small disputes living together that may urge you to live separately but I feel if you look past them you all will feel stronger as you all know there is someone in the house to look out for each other.

I will probably get downvoted as I am in minority who still believe Server Side Rendering is the best approach for most of the web with exceptions to some websites that require Single Page App functionality.

I still think web would be best if you do SSR and then replace HTML DOM elements using frameworks like Stimulus Reflex or Hotwire. For millisecond interactivity you may want to write JS in a framework like Stimulus JS is good enough. Personally I do not see why everyone wants to build a Single Page App when 80% of your pages are static and can be server rendered and with SSR frameworks you can build something a lot faster than building a Frontend and Backend separately and fragmenting or hiring extra developers when it is not needed.

DHH said your code reflect your org structure and I agree companies that use SPA and Backends micro service arch usually tend to require more developers rather than companies that use SSR monoliths which appeal to smaller 1-3 developer companies that are building out a POC before committing huge amount of venture capital or their own money behind an idea that may not succeed.

Stripe Identity 5 years ago

You are right but frameworks help with long term maintainability of code and also being able to build out features quickly which is what the comment was referring to originally. If they use Go lang of some other tech stack without framework it can help them achieve their goal but not at the same speed.

Stripe Identity 5 years ago

The tech stack has something to do with it. Stripe has such high velocity because of Ruby on Rails.

Right which proves the point that you believed in it and once it was practically put to use you see it is not practical anymore. Why use a currency that is not practical for day to day activity.

I would consider you wise then to use BTC for day to day activities considering you have used it many times. Did you use it to buy coffee when it was $60K and then use it to buy more BTC when it fell to $30K? Would you buy coffee with it when it is $150K or when it is $1 per coin?

In order for bitcoin to be used as valid currency it needs to be pegged to the local government issued fiat currency. If BTC fluctuates so much would you like a coffee or groceries with it knowing its value can be half or double tomorrow. Real question to ask yourself is have you used it to buy anything in the real world with it.

This is good news in that we will see a real country with decent population use it and fail badly proving that Bitcoin is not viable as a valid currency. Once that is done its value should plummet dramatically. Until now it is not used for any payments and mainly for speculation/gambling to make easy money. Most of the people are just supporting it to hype up the value so they can make most profit.

Performance is really bad. This is good for running a small HTTP server on an embedded device but if plan is to use it for HTTP server to serve production web traffic performance is really bad. Below is report of running the server and hitting a minimal index.html page and hitting it with artillery.

All virtual users finished Summary report @ 09:39:57(-0400) 2021-06-08 Scenarios launched: 33645 Scenarios completed: 2573 Requests completed: 2573 Mean response/sec: 42.57 Response time (msec): min: 0 max: 9029 median: 2 p95: 6027.7 p99: 8778.8 Scenario counts: Get index.html: 33645 (100%) Codes: 200: 2573 Errors: ETIMEDOUT: 31008 EPIPE: 48 ECONNRESET: 16

As a South Asian/Indian and an immigrant to USA coming from a lower middle class background, I would argue that just like Blacks we are also disadvantaged but unlike the African Americans South Asians/Indians have taken over the STEM programs. I do not think acts like these make a change but rather change in mentality of the African American community is what matters for their youth to choose careers and opportunities that help them prosper.

Looking at such articles makes me feel we are going back in time rather than improving efficiencies for developers to build RESTful server. If you look at Ruby on Rails you can build the server shown here in one min that is scalable and backed with database. I know people will complain about speed of execution of language and framework but do you really care if you are not expecting Google like traffic.

There is a story about this mocking Indian culture. One day the captain of the ship was transporting containers filled with crabs. When he discovered it was crabs he got upset and said to his fellow sailors to make sure there is lids on those containers so that they do not get out. To that one sailor said “Dont worry captain. These are Indian crabs. If one gets up another will pull him down.” I remember thinking of this story and feel we are like crabs in India and some of it has to do with huge population and limited resources. If we had a limited population and plenty of resources we would not be doing Jugad.

I agree with your third point. People will take the money and make bad decisions and then ask for more. In US we have food stamp program to grant free food to people who cant afford it then why do people still beg for money. I have heard of people using food stamps program and sell them to store for cash and these types of fraud exist because people easily do them without getting caught. I guess we can apply technology to reduce this fraud as much as possible.

Another thing happening in US is the unemployment program and the Coronavirus relief program which pays unemployed extra $600/week on top of unemployment. This way they make more money than they used to when they were working. In this case their incentive is to just stay home and not work which is also not right as without essential workers in the service industry we cannot get work done and if we start paying them higher than they get with the extra $600 we won't be able to afford them to be hired full time or temporary basis. For example someone even earning the lowest minimum wage can make $800/week and that is about $42,000 annually so we sort of do have UBI currently happening and worth learning from that.

Created a temperature sensor system that can generate alerts whenever temperature or humidity goes above or below a limit configured by the admin portal. Along with Elasticsearch and Kibana graphs can be generated and also data can be seen on top of the floor plan to understand hot and cold spots in a building.

The repository below contains code and instructions on how to setup the Raspberry Pi device to report temperature/humidity data along with manual alerts to the server: https://github.com/ankurp/thermostat-sensor

The server code where data is received and saved, notifications are sent, and the entire system configured via the admin portal is here: https://github.com/ankurp/thermostat