HNHacker News
TopNewBestAskShowJobs

srijan4

1,970 karma · joined July 18, 2010

submissionscomments
srijan4··on The Warp Agent CLI
Maybe try ghostel with evil-mode, if you're okay with Emacs? https://github.com/dakra/ghostel
srijan4··on Knoppix
Oh man, fond memories.

I remember being very interested in programming in middle/high school, but all the environments in our school computer lab had windows (this was in India), and I think at that time (maybe 2001-2003) I didn't even know there were other operating systems.

Our school was participating in something called International Cyber Olympiad, and of course I gave the eligibility exam.

They sent all students who passed a Knoppix Live CD to prepare for the actual competition. We did not have a PC at home until a couple of years later, but I used that CD in any PC I could find anywhere - the school computer lab, the school library computers, and my dad's office computers. It was my first experience with a Linux system (and I found it awesome). Also my first experience with gcc instead of borland c++.

srijan4··on Seconds Since the Epoch
Somewhat related: I really like Erlang's docs about handling time. They have common scenarios laid out and document which APIs to use for them. Like: retrieve system time, measure elapsed time, determine order of events, etc.

https://www.erlang.org/doc/apps/erts/time_correction.html#ho...

srijan4··on Show HN: I made a site that lets you punish yourself
A much better alternative for this is: https://www.beeminder.com/
srijan4··on Ask HN: Could you share your personal blog here?
My personal blog with not much content, but I try: https://www.srijn.net/
srijan4··on Why Kakoune – The quest for a better code editor (2016)
The first part of this https://karthinks.com/software/fifteen-ways-to-use-embark/ also talks about how inverting action and object can be useful, and how Emacs's embark package makes it possible to even go back and forth between object and action as needed.
srijan4··on Somehow AutoHotKey is kinda good now
Or https://github.com/ReimuNotMoe/ydotool for wayland.
srijan4··on ChatGPT has no inner monologue or meta-cognition
The part that was interesting for me was:

> So if you positively encourage it to “think out loud”, it stands a much better chance of being able to use its deduction and reasoning capabilities (which are quite significant).

srijan4··on Running Python micro-benchmarks using the ChatGPT Code Interpreter alpha
That was my first thought as well. I'm sure a 4th prompt to choose different colors for the graphs would work.
srijan4··on Todoist AI Assistant
I think it can definitely help overcome the "mental block" that we (I?) face sometimes when staring at a task list. If something is too hazily defined, even an incorrect breakdown of the task can help me spur into action.
srijan4··on Using SSH_config Match to connect to a host using multiple IP or Hostnames
I used ssh_config's `Match` recently to route only okta-managed servers via their auth proxy command. That was quite powerful.
srijan4··on CircleCI Announces Support for Gitlab
We recently started using buildjet, and it has been nothing short of awesome. So I can highly recommend them.
srijan4··on Rethink-app: DNS over HTTPS, firewall, and connection tracker for Android
You can use it when roaming.
srijan4··on Host Firewalls (2020)
I think the alerts would have to be at a higher level hierarchy than plain URLs or domains.

I'm imagining a categorized whitelist of domains based on purpose (essential, telemetry, ads) which the user would choose from at first run, and the program would just block the other domains without asking again and again.

srijan4··on Ignoring bulk change commits with Git blame (2019)
Emacs' magit blame mode also supports recursive blaming - you can effectively step back and forward in time.
srijan4··on Open Source Continuous File Synchronization
Ah, I never considered or used Dropbox as a backup tool, only for synchronization. Backup is separate.

For simple undo operations (recover a recently deleted file), Syncthing's version history is good enough.

srijan4··on Open Source Continuous File Synchronization
I've been using syncthing for more than 3 years, and it's been just amazing. It replaced dropbox for me completely, and provides a better experience in all aspects - speed, stability, low power usage on mobile.

One of the few projects I'm sponsoring on Github.

srijan4··on A few notes on message passing
> Can you also share small objects by reference?

No.

But, you can use a cheap cache layer instead of expensive db layer - ETS.

srijan4··on A few notes on message passing
The only sharing is for large binaries (>64 bytes)[0].

Like all messaging mechanisms, this can be handled by passing a reference or id, and the receiver fetching the actual large data from db/file/source of truth.

[0] - http://erlang.2086793.n4.nabble.com/how-message-size-effects...

srijan4··on A few notes on message passing
There's also an old discussion on this here: http://erlang.2086793.n4.nabble.com/Why-are-messages-between...
srijan4··on A few notes on message passing
But, the internal state is still changed by the owner process, in the owner process' context. The external process cannot change it's state behind it's back.

Effectively, mutations to the internal state are "serialized" by the owner process, so it's easier to handle possible race conditions without using explicit locks/semaphores.

srijan4··on A few notes on message passing
Yes, messages keep piling up and memory usage keeps increasing until the Erlang VM goes out of memory.

To debug, there's a max_heap_size parameter which can be configured to log an error message when heap size of any process goes beyond a threshold, or it can even kill the process[0]. Although I don't know if this takes the "off-heap" messages into account.

Also, there are lots of libraries which can provide a "top" like view of the running system.

[0] - http://erlang.2086793.n4.nabble.com/Max-heap-size-td4716974....

srijan4··on DBLog: A Change-Data-Capture Framework
Kafka or similar is already used by the existing solutions mentioned in the post.

I think what this adds is a better way of dump processing without using database specific features.

srijan4··on Firefox 25 will get a major UI overhaul
What are you using for those side tabs?
srijan4··on Fish 2.0 shell beta
Does anyone know how to initially import zsh's history into fish?
srijan4··on FreeBSD 9.1 Release Announcement
VDS6 (http://vds6.net/) has some very cheap IPv6-only plans. They use BSD Jail for virtualization.
srijan4··on HTTP Headers For Fun & Profit
curl -I www.pinboard.in

    HTTP/1.1 200 OK
    Vary: Accept-Encoding
    Content-Type: text/html; charset=utf8
    Connection: keep-alive
    Server: You got SERVED!
    X-Cache: MISS
srijan4··on Swedish Exchange paralyzed by buy order for "-6 stocks"
I'm guessing because 4294967290 = 2^32 - 6
srijan4··on Command line tool for blocking sites to be more productive
I upvoted so that others share their similar setups/scripts (as you did).
srijan4··on (l)uriel has passed away
Some quotes about him:

http://uriel.cat-v.org/quotes

Page 1 of 2Next →