HNHacker News
TopNewBestAskShowJobs

vishaltelangre

507 karma · joined November 2, 2012

https://vishaltelangre.com

https://github.com/vishaltelangre

https://twitter.com/suruwat

my public key: https://keybase.io/vishaltelangre; my proof: https://keybase.io/vishaltelangre/sigs/F8hb34zCZlPNp-TcVXWRxaJ1sHiz6UN5M08gxYfJtKs

submissionscomments
vishaltelangre··on Ask HN: What are tools you have made for yourself since the advent of AI?
I wrote NerdCalci (https://github.com/vishaltelangre/NerdCalci), a free calculator app for Android.

Besides, I made a lot of automation scripts (mostly using Ruby) that run on my raspberry pi to fetch/parse/crunch things and notify me on my Android phone through a self-hosted https://ntfy.sh server.

vishaltelangre··on StarBook 14-inch
> when MBA/MBP are consistently achieving 10-16+ with real-world use.

Really? I have a 2019 MBP and it doesn't last more than 3 hrs on 100% charge. The only usage is for the web development. And this is my third MBP (the old ones are dead because their magic boards became dead after the expiry of 1yr warranty + 2yr AppleCare plan).

The battery drains pretty quickly if I attach it to an external monitor.

Also, the evil `kernel_task` process eats up all CPU cores (for minutes and the machine remains unusable in the meantime) that drains the battery within an hour if I don't keep my table fan pointed at it (probably because Apple doesn't give a sh*t about the products they sell in India and their performance at 30-45 deg celsius temperature which is normal in Indian subcontinents).

vishaltelangre··on Ask HN: Have you created programs for only your personal use?
Very inspiring and insightful story! Thanks for sharing it.
vishaltelangre··on Ask HN: Share your personal site
https://vishaltelangre.com

I write about general programming stuff (but not active for a year now).

A little zine book on Consul I had written last year (it's free, btw) - https://vishaltelangre.com/books/consul.

Also, the site lists some fun projects I have written in my spare time (in many languages such as Rust, Swift, Elm, Elixir, Go, Ruby and JavaScript). For e.g. https://old-version.vishaltelangre.com has a REPL like interactive interface written in Elm; GitHub link can be found using one of the commands.

vishaltelangre··on Ask HN: What's the worst piece of software you use everyday?
Messages app on iOS is the most frustrating app I have to use often and Apple doesn't allow any alternative as well. There is no way to star/pin certain messages in it. It doesn't allow copy-pasting partial text in a message. Results of searched query are often not what I am looking for. Finding historical messages in some date range takes minutes.

Many other Apple-built apps and products (especially those that cannot have any 3rd-party alternatives) are horrible to use.

vishaltelangre··on Find Files (Ff) – File Search Utility in Rust
Here[1] is the detailed case study of rewriting Stylo in Rust which Steve mentioned in the above comment.

[1] https://hacks.mozilla.org/2019/02/rewriting-a-browser-compon...

vishaltelangre··on Find Files (Ff) – File Search Utility in Rust
This is no longer true. `ff` searches through all files recursively by default no matter whether a file or directory is enlisted in ".gitignore" or is hidden. There are flags to change this behavior.
vishaltelangre··on Find Files (Ff) – File Search Utility in Rust
UPDATE: Now ff also uses threads to achieve parallelism.
vishaltelangre··on Find Files (Ff) – File Search Utility in Rust
In ff v0.1.4, the results are dramatically improved.

  > ff '.*.js' ~/projects > /dev/null   
  7.59s user 
  24.21s system 
  337% cpu 
  9.413 total
vishaltelangre··on Find Files (Ff) – File Search Utility in Rust
In ff v0.1.3, the slowness is reduced to some extent.

  > ff '.*.js' ~/projects > /dev/null  
  5.79s user 
  14.77s system 
  97% cpu 
  21.024 total

  > find -E ~/projects -type f -regex '.*.js' > /dev/null  
  3.98s user 
  10.76s system 
  67% cpu 
  21.933 total
vishaltelangre··on Find Files (Ff) – File Search Utility in Rust
> `fd` uses threads and `ff` does not.

Author here. This is true. ff does not use threads right now. I have started learning Rust just a few days ago. I am not quite yet familiar with advanced topics such as achieving parallelism using threads in Rust and other similar stuff. My knowledge of Rust is limited at this moment and I struggled to get the language concepts to work such as ownership, lifetimes, etc. I am sure that I will be able to improvise the ff's performance by some extent by gaining some more knowledge of Rust.

vishaltelangre··on Find Files (Ff) – File Search Utility in Rust
Related discussion - https://www.reddit.com/r/rust/comments/av31ae/ff_find_files_....
vishaltelangre··on Find Files (Ff) – File Search Utility in Rust
I have answered a similar question here - https://github.com/vishaltelangre/ff/issues/4.
vishaltelangre··on Find Files (Ff) – File Search Utility in Rust
Author here. Slow behavior while searching through a large number of files is a known issue at this moment. I will definitely try to reduce it by some extent by immediately streaming to STDOUT (or to a non-TTY device if TTY is not STDOUT). Right now, the results are accumulated, filtered and then printed in one go.
vishaltelangre··on Indian government to intercept, monitor, and decrypt citizens’ computers
> build their dictatorship.

I highly doubt that this is what the motive is. But I agree that this decision is very irresponsible and can have a disastrous impact. It could surely help in detecting a pattern which may put the nation in some sort of risk, but there is a greater and inevitable chance that it can be easily misused by the granted authorities or some personnel working for those authorities.

vishaltelangre··on Ask HN: Best Command-Line Applications?
I found https://serveo.net as a good alternative to ngrok since it requires no signup, no installation and provides a custom subdomain for free.
vishaltelangre··on India’s Aadhaar Software Hacked, ID Database Compromised, Experts Confirm
Sounds like a scam to me.
vishaltelangre··on India’s Aadhaar Software Hacked, ID Database Compromised, Experts Confirm
You've actually reworded what I have already said. Since there is no official statement from UIDAI or multiple private news sources reporting the same incidence; this article/blog is not worth believing yet.
vishaltelangre··on India’s Aadhaar Software Hacked, ID Database Compromised, Experts Confirm
And why do you think exactly that they or any other news agency won't report if such an incidence has occurred?
vishaltelangre··on India’s Aadhaar Software Hacked, ID Database Compromised, Experts Confirm
It is hard to believe by relying on just one source. I just checked other news sources in India, and no one has any news about any recent Aadhaar breach.
vishaltelangre··on Mumbai bans plastic bags, bottles, and single-use plastic containers
Imposing a ban on "public" and practically making sure that it is followed by the huge population of India is really difficult. We have seen such bans imposed on public before, and none of them were successful till the date.

On the other hand, keeping an eye on the handful of (big) companies to restrict them from supplying plastic to people is comparatively an easy task and requires less (man, money and infrastructure) power.

Besides, government(s) can also think of funding research program(s) to synthesize an eco-friendly material alternative to plastic which can be produced with same cost as of plastic; or funding program(s) to at least efficiently recycle plastic directly proportional to its growing usage.

vishaltelangre··on Mumbai bans plastic bags, bottles, and single-use plastic containers
Instead, government could've imposed ban on the consumer products which are wrapped using plastic material. Almost 50% plastic come directly from such consumer products sold by all FMCG companies. Such plastic material which is used as a wrapper (e.g. mineral bottles, wrappers of chocolates, biscuits, wafers, tobacco, etc.) is often useless and people tend to throw it right away.

I agree that "we", the people need to take a pledge to stop using plastic as much as we can. But if there's no restriction put on giant FMCG companies such as Hindustan Unilever, ITC, Patanjali, Netsle, Procter and Gamble, etc. from supplying their products wrapped in plastic, I consider all of these government initiatives merely as a gimmick.

EDIT 1: Another comment I left on this thread - https://news.ycombinator.com/item?id=17400028.

EDIT 2: In India, plastic is a major contributor of blocking sewers and rivers, especially in rainy seasons. Another important problem plastic waste produces is that since government bodies (such as, municipal corporations, gram panchayats, etc.) are unable to dump and/or recycle plastic waste properly, it is accidentally consumed by animals and is the major reason for their deaths. Another issue is that, often "dumping waste" is considered as "burning" it. Burning plastic waste disturbs healthy air and is a major factor among others responsible for the increased air pollution in Indian cities recently.

vishaltelangre··on Curry spice turmeric boosts memory by nearly 30%, eases depression, study finds
Knowledge is everywhere, science doesn't tell you to be narrow minded. If you deny human kind's past experiences, you would just end up reinventing the wheel. It is always hard to find the reason behind anything as it requires us to find the pattern first. Call it symptoms in medical science. Human kind has been doing it since its inception. Ancient texts are just there to help you out. Remember that there were no technological advancements as of today, still our ancestors had found reasons and solutions (cures in medical science) to many problems. You do not need to really trust anything, but what I am saying is that you cannot also simply deny it.
vishaltelangre··on Show HN: Tic Tac Toe Implemented in Elm
Compiler throws following error if I do it.

  Naming multiple top-level values `flipPlayer` makes things ambiguous. When you
  say `flipPlayer` which one do you want?

  128| flipPlayer O =
vishaltelangre··on Show HN: Tic Tac Toe Implemented in Elm
I am thinking to change the board model to use Dict instead of List altogether to reduce the hacks and chances of having a model which represents invalid states. Thanks.
vishaltelangre··on Show HN: Tic Tac Toe Implemented in Elm
Yes, there are lot places I think I can optimize it. It is an initial implementation to get something working. Thanks.
vishaltelangre··on Show HN: Tic Tac Toe Implemented in Elm
Source code is at https://github.com/vishaltelangre/elm-tic-tac-toe.
vishaltelangre··on Ask HN: What is your favorite YouTube channel for developers?
Daniel Shiffman (Coding Rainbow) - https://www.youtube.com/user/shiffman

He is a very funny and a great teacher!

vishaltelangre··on Ask HN: Freelancer? Seeking freelancer? (November 2015)
SEEKING WORK - PUNE / REMOTE

Full stack Ruby and JavaScript developer with 3+ years of corporate experience.

My past works include swing/pitch analysis (Rails, Backbone), LMS (Rails), embeddable third-party js chiclet & paywalls (React.js, Webpack), virtual warehouse builder on GMaps (Express, Angular), embeddable & realtime sentiment voting module (Clojure, Apache Kafka, Apache Storm, React.js), video app for businesses (Swift, AVFoundation, Rails, SQS, React.js, Flux).

Also -- Recurly, Stripe, WePay, Dwolla, MailChimp, Twilio.

I make sure covering critical parts of system with necessary unit test cases. No fuss about TDD, but prefer when really required -- experience with RSpec, BTW.

I have experience of deployment on AWS, Heroku, Digital Ocean & Linode using Capistrano. Use Docker for local development. Can handle (or work along with ops guy) DevOps stuff, can use provisioning tools alike Chef, Puppet when capistrano deployment becomes cumbersome.

Find my CV at http://vishaltelangre.com/cv.pdf

Github - http://github.com/vishaltelangre

LinkedIn - http://in.linkedin.com/in/vishaltelangre/

Homepage - http://vishaltelangre.com/

Drop a mail if interested at => the [at] vishaltelangre [dot] com

vishaltelangre··on How DNS works
- Comic lover (inside me me): "Thrilling story. So sad that it ended in only 6 episodes."

- Techie (inside me): "Oh boy, I can mouse-select the skewed, transformed text in each block, how creator could have done this? Seems pretty tricky. Is there any framework, or from scratch?! Head onto Github..."

Page 1 of 2Next →