HNHacker News
TopNewBestAskShowJobs

prashnts

669 karma · joined March 18, 2016

submissionscomments
prashnts··on TikTok requests access to devices on local network
Curiously, I have seen this prompt in apps that did not normally ask for this permission when I was on a captive network without having logged in. No idea why it was prompted, but could be related somehow?
prashnts··on Beautiful ideas in programming: generators and continuations
Right, thanks!
prashnts··on Beautiful ideas in programming: generators and continuations
Article briefly mentions:

> Using yield in a function definition is not the only way in which generators can be constructed in Python

Anyone can point out what do they mean by that? Googling didn’t help much.

prashnts··on The PsychDOS Desktop Environment
The quickguide [0] is beautiful and quite well written catalog of the features and included programs.

[0] https://psychoslinux.gitlab.io/DOS/QCKGUIDE.PDF

prashnts··on Animated Engines
Quite interesting! Reminds me of http://507movements.com/

Edit: It’s linked in the website as a “sister site”.

prashnts··on Technical Debt Doesn’t Exist
No it does. You make a point before bikeshedding.
prashnts··on A Short Guide to Minimal Web Development (2018)
I constantly need to add a couple of exceptions to the defaults though. And only because it's pretty weird syntax to let you get the block level meaning become obvious for a small part of the otherwise current standards we are using. (Whenever the indentation fights settle down...) Couple of constants look good together if you look at their semantics, but the rest turns into a mess!
prashnts··on A Short Guide to Minimal Web Development (2018)
Also add polyfills.

Few devices (usually the slightly older fw locked devices) which can get a reuse on local net will get some reuse benefit if you added polyfills. I am doing this by conditional "polyfills with SSR" with nginx/lua at the moment. (kindle os/etc. is a pretty good catchall proxy for those browsers; since they still show some html, you can get a very reliable static+interactive (page refresh syncs nicely with the latency) use out of them. (actually, just to periodically update the view of some react page, running headless...)

Edit: Well, that's an extreme, but it has happened that latest react code won't work on a newly unwrapped device still awaiting next fw update).

prashnts··on Shakuntala Devi – The Human Computer (2016)
Check out my own thread earlier up the thread. I think that'd be the difference, since she didn't get critical peer reviews on her work which is how we've decided to do science. The thread is interesting to me because I was recounting fun memories, which can very easily end up to a conspiracy theory. But thankfully, I did not start solving them then.

https://news.ycombinator.com/item?id=24295270

prashnts··on Shakuntala Devi – The Human Computer (2016)
Completely agree. This is the "formal training required" part that we miss while recounting these anecdotes. I still love the book, as in, It's giving you a sea to dip a little, look at pretty cool turtles, but one's gotta take a deep dive once in a while.

Thankfully I was never very good with numbers, so I only memorized it till the 6th digit so I could use it as my password!

(thankfully I can let my computer fix those for me :)

Better memory: "I used to think, hey I got sorta close to 10th digit, soon I'll know a lot more, yay!"

Ah, Edit: The deep dive should be with someone to pick you back out, in my experience.

prashnts··on Shakuntala Devi – The Human Computer (2016)
Yep, I still remember reading the book when my dad it got for me (I was 8!). I don't recall everything, but few things stuck with me from the book. Exponential growths, for example. I sort of recall that she took the example of either how does a rumor spreads, or about MLM selling cookers. Or it was the two together! (I need to check the Archive link after demonstrating that some nuggets stuck with me, and have helped made sense of stuff somehow :)

I was never good with numbers so didn't actually tried those calculations, but just reading the book was like enlightenment. (We got pleased too quickly as kids...).

Thanks for this!

Edit. My memory is very hazy! I read most of her books, these examples were in her "Puzzles to Puzzle you" and other books. Or maybe not, but here are some more: (found on a pdf... http://sriramanavidyalaya.school/assets/files/More%20Puzzles...)

Edit. Check out 66th puzzle. Not related to examples, but hey -- this is something I still use to get paid! Highly recommend this book for your young ones. :)

prashnts··on The cost of 1GB of mobile data in 228 countries (Feb 2020)
I used to have unlimited 512kbps "broadband" via public tel (BSNL, Phone line), up until 2013. I moved to delhi and as a broke university student, I'd gone through incremental upgrades with cable, fiber, wi-max connections, and have seen it stablise.

I moved out in 2017, but I'm glad for the LTE access that my parents can use from the same tiny city (with DSL Line, now at 1mbps as an alternative). It's great! Indeed, lots left to do about other issues, but I think we get to be happy about this particular development.

prashnts··on Exactly-Once Initialization in Asynchronous Python
Your main function needs to be async as well, since the one_time_setup is async. Linking this SO answer that also links to the docs (may come handy!).

https://stackoverflow.com/questions/57399157/runtimewarning-...

Edit: Also tangentially relevant is the article linked by pansa2 in another thread, which was also discussed on HN a few months ago: http://journal.stuffwithstuff.com/2015/02/01/what-color-is-y...

prashnts··on Amazon Warehouse scam: 16TB HDD swapped for 8TB, returned for full refund
I posted some pictures and linked it in sibling comment.
prashnts··on Amazon Warehouse scam: 16TB HDD swapped for 8TB, returned for full refund
I took a few pictures and uploaded them here [1].

I recall that I'd already de-soldered a few components (for the salvage-drawer!) and cleaned the awful flux residues so the my pictures look much cleaner than how it was when I opened it [2].

It still turns on though, so I might end up doing more digging into it. I'd add whatever I find in the repo soon.

Hope that this is useful for "reasons"!

[1] https://github.com/prashnts/mods/tree/master/devices/dubious...

[2] https://github.com/prashnts/mods/blob/master/devices/dubious...

prashnts··on Amazon Warehouse scam: 16TB HDD swapped for 8TB, returned for full refund
Interesting. I tore one down recently. It was a gift for my nephew but didn't work out of the box. Well, it did "work", as in, it identified as genuine controller; had all "real stuff" look, but buttons skipped, lagged, or just didn't work.

The insides revealed a mix of genuine components (probably off of scrap?) and an assembly-line quality bodge-work. (I didn't take any pictures, but I still have it -- so I can post some pictures if anyone's interested.)

prashnts··on Mcfly – neural-network powered directory and context-aware shell history search
I tried LinuxBrew on my Raspberry Pi to install couple of packages not in Debian. Unlike MacOS, you don’t get « bottled » packages (pre-built), so it took a while to compile and pulled in build dependencies. Wasn’t pleased, but:

I would consider it for writing build/install recipes for personal projects since I’m familiar with it. So that’s at least one use case. :)

prashnts··on Multiple service providers are blocking DuckDuckGo in India
Haven’t been back in India for a while, but the DNS blocking happens all the time. One big provider (AirTel) even injected ads in non-https pages quite frequently.

Anecdotally, I had a cable service in Delhi where the provider started throttling me if I didn’t make any request to their dns server in some arbitrary time interval. So changing your dns might not be the fix (i fixed it by sending random queries to their server...).

prashnts··on Cleaning My MacBook After 16800 Hours of Use
This... is a good warning (after I found this googling [1]), thank you!

But, this made me more curious; is there something specific about IPS panel (vs. TN) that I should know? In that link, it seems like that the panel survived but the backlight diffuser layers got ruined. Theoretically, one could replace that...

I ask this because I wonder if you meant the glass-sandwich construction of the panel when you say "inner layers", and some chemistry of the liquid crystals. Or am I assuming too much?

In any case, thanks!

[1] https://forums.macrumors.com/threads/isopropyl-alcohol-under...

prashnts··on Cleaning My MacBook After 16800 Hours of Use
I ended up rubbing it off. Used a mouthwash for it (alcohol didn't work, perhaps "microcrystals" did the job). If you do that there will be lots of micro scratches on screen, but it's still better than looking at stains, and quite pleasant in dark.

I couldn't get the replacement (didn't know "stain-gate" was a thing).

prashnts··on Decoding radio telemetry heard on news helicopter video footage with GNU Radio
Thanks for the tip, this definitely narrows down problem space to poke around with.
prashnts··on Decoding radio telemetry heard on news helicopter video footage with GNU Radio
Any recommendations for softwares to play around with?

I got a NooSDR (€30 ish on amazon). I agree so much that its 1090MHz(?) leaves so much to explore, but I didn't have much luck other than decoding TV/FM/DAB using CubicSDR, GQRX, and VLC.

I am more interested in using it with Python/GNU Radio so didn't bother installing those super cool web based tools yet. Since I'm just starting, I'd like to get a feel of using it with a general purpose "summary software" first. Essentially something that can lookup the frequency databases, etc. to tell me: what is it that I'm looking at; if its LSB/USB/FM, and these sorts of things. Overall, I quite enjoy CubicSDR for this, but I'd appreciate if you have suggestions or resources I could check out. Thanks for the info above!

prashnts··on Decoding radio telemetry heard on news helicopter video footage with GNU Radio
Thanks! I never found her blog with all my quacks and googles on SDR keywords.
prashnts··on Esprit Board for Exploring ClojureScript on ESP32 Processors
I was also curious, and from their Design repository:

> Note: You don't need to use this particilar board to run ClojureScript.

> Any ESP32 WROVER with 8 MiB SPIRAM is capable of running a ClojureScript REPL

https://github.com/mfikes/esprit-board/#esprit-board

I also looked at the schematics, which is your standard ESP devboard layout.

Edit: I'm not an expert, but have used tons of ESP based dev boards so there are a couple very frequent issues I've observed. Usually I have had trouble if the USB-UART chip is not wired correctly or doesn't reset quick enough. Lower baud rate makes it work. Also, the GPIO numbers on silk screen may not be correct, so double check those.

prashnts··on Writing to the Framebuffer (2018)
(Not parent) Thanks! I needed this a while back for a bodge. Ended up stashing it, but this will help a lot!
prashnts··on Ask HN: What are your favorite developer-efficiency tips?
I'd really like to know how you use tig for that. I am overwhelmed with the options and keystrokes that I can't remember.
prashnts··on Do We Need Specificity in CSS? (2015)
Ah, thanks for the explanation -- I thought that you meant that custom.css would be disregarded, now I see you meant that css _rules_ should use "last declaration wins".

Not really a followup on my previous question: what would be done if, say one can't change the order: so custom.css is still before original css. In such cases, without the specificity rule, wouldn't the only option we'd have is to somehow inline the styles, or spray !important everywhere?

To be clear, I only ever did this once for jupyter, and using very specific selectors was the only way I could do it -- of course I learned it hard way why this approach isn't great when jupyter changed the layout slightly. :)

If you're curious, https://github.com/prashnts/dotfiles/blob/0a2e98a848a98b7010... is that custom.css

prashnts··on Do We Need Specificity in CSS? (2015)
Not so sure that “last declaration wins” would be great — a very specific example: jupyter notebooks (used to?) add custom.css before the original stylesheet. It’d be impossible if that were the case, I guess?
prashnts··on Using a 1930 Teletype as a Linux Terminal [video]
Reminds me of this article on the complexities at different levels of abstraction (sorta). http://johnsalvatier.org/blog/2017/reality-has-a-surprising-...
prashnts··on IBM will offer free COBOL training
Thanks for posting this. Our computer teacher in high school skipped the outdated COBOL sections (just an intro, around 2004) I realise i'd never seen an actual code sample yet!

Aside, RE testing, a wild guess: could the "accept char" be tested with emulated keyboard inputs?

← PreviousPage 2 of 10Next →