HNHacker News
TopNewBestAskShowJobs

rraghur

290 karma · joined September 18, 2017

submissionscomments
rraghur··on Samsung's 2019 TVs can remotely access your PC
https://hobo.house/2016/03/10/build-secure-vlan-networks-wit...

Seems good - going to try this out when I get some time next.

rraghur··on Samsung's 2019 TVs can remotely access your PC
Got a good guide for this? I have tomato firmware but just don't know enough on how to get this set up
rraghur··on Amazon reveals private Alexa voice data files
I've never understood the charm of having an always on, listen to everything home assistants... Why? Just why?

To be honest though, I do have Google assistant on my phone and vibe recognition turned on... But at least that's an option. With these in home assistants, voice is the only mode!

rraghur··on Ask HN: How do you teach kids to program?
I've been trying to get my son interested. He's in the same boat... Knows a little about conditionals and loops etc but hasn't caught it yet.

He wanted a RC car.. so I asked him to pick an old one apart. Taking parts from that, he built one without steering and just on off control. So now I've got an esp32 and a servo and got trying to make a steerable rover.. he's not going to get all the programming but he's definitely interested.. also the mechanical parts are also pretty interesting and approachable for him (we burnt a couple of hours trying to make a steering mechanism with LEGOs and didn't get anywhere)

I'll start him with prettifying the web page and adding bells and whistles (calibrating the servo, displaying connected/disconnected status etc and whatever catches his fancy)

Fair warning: requires a lot of time and patience.. also go slow (very hard for me to do).. but yeah, this is the time he's gotten the most interested

rraghur··on Firefox desktop market share now below 9%
Agreed. I'm on nightly and it has been stable - even with WR turned on. I've been pushing my family and friends to use FF - but a lot of them are Chrome loyalists. Still - one must persist.

I'd rather not have a world where only chrome and chrome clones exist - and I certainly don't appreciate that Chrome wants me to log in every time I use the browser (and getting more and more insistent at that lately from what I hear)

rraghur··on Ask HN: Best Command-Line Applications?
Thanks - I'm subbed to that ticket. Will most likely switch over when it's done since a I vastly prefer a single binary rather than having to install python + deps.
rraghur··on Ask HN: Best Command-Line Applications?
Also, I found borg better than restic since borg also does compression

https://github.com/borgbackup/borg

rraghur··on Inside the court of Ashurbanipal, king of the world
Also I've heard in Zoroastrianism asuras are the good guys and devas the bad guys whereas in Hinduism it's the other way around... So ashurbanipal literally means God protects him

Here's one interesting read on how the myths evolved https://videshisutra.com/2013/03/22/hariti-saraswatis-persia...

rraghur··on Vue.js: the good, the meh, and the ugly
I agree - the Typescript support isn't great... I was taking a look at vue + typescript and cobbled together something that worked but there was unpleasant weirdness.

I wasn't aware that vue3 was going to be written in Typescript - that is very welcome news.

rraghur··on Bare Metal K8s Clustering at Scale
minikube start --vm-driver=none doesn't use a VM AFAIK
rraghur··on ServiceFabric: a distributed platform for building microservices in the cloud
We had a similar experience as well.. in our case, tried hard to like SF, but eventually moved out. The Dev experience is sub par and even with the one node cluster, things take a long time to come up. Also, the tooling that pushes for services to be in a single application means that boot up times are impacted negatively. SF's application model means that you can't just run it outside. One of the lead devs had previously got burnt with reliable collections (no way to have it write to an attached disk.. will only write to VM local disk.. reported to ms) and risk potential disaster if you have a cluster loss.

Eventually ported to .net core and Orleans 2 on k8s and it's been a more pleasant experience.

rraghur··on Event Sourcing made Simple
We used to differentiate between projections and event handlers

Projections only create/update/delete views and are idempotent.

Event handlers could do side effecty things like emails or generate another command that goes back into the system.

While playing back events, just didn't hook up the event handlers at all.

Worked beautifully and it was very liberating to be able to wipe out your entire read side and recreate it either exactly the same way or tweak it to handle evolving requirements.

rraghur··on GraalVM: Run Programs Faster Anywhere
How would I go about creating a native image for a gem I've installed? I can't seem to find the documentation for this.

Or have I misunderstood this totally? I thought I could do something like ruby script -> graal ruby --> jvm bytecode --> native image

Update:: Doesn't look like I read it wrong - from this reddit comment[1] from 3months ago

Ahh, I think there's some confusion here. What we do with the SVM is ahead of time compile the TruffleRuby interpreter, not an application. This is akin to what you'd do with MRI. Instead of treating Java as a language you compile to a .class file and load with the JVM, the SVM's native image generator compiles it to a native binary.

There's likely no reason we couldn't compile Ruby applications into a static binary.

I would also love to be able to distribute a ruby binary as a single statically compiled executable. Any pointers/directions?

[1] https://www.reddit.com/r/ruby/comments/7o3wy9/graals_substra...

rraghur··on How kids in a low-income country use laptops: lessons from Madagascar
You make do with what you have :).... However, instead of teaching word processing and such (office s/w)... how about teaching kids that it's just a machine and you can make it do your bidding..

I remember starting with GW BASIC when I was 10 or so and the first 'graphic' program was an analog clock on a 80x40 CRT console, felt like I could build anything with it..

rraghur··on When Functional Programming Isn't Functional
These articles exhorting the benefit of using FP in the small are great, but I'd been lost forever making the leap from small (<10 line) examples vs typical apps with their CRUD behavior and in general state everywhere like a db or file system or network requests and so on. I've found this talk(https://www.destroyallsoftware.com/talks/boundaries) by Gary Bernhardt way more useful in terms of how to apply FP principles in the real world.

The other grouse I have with posts like these are they try to over-simplify FP - "using lambdas is FP" or something like that. I think this leads to folks thinking 'hmm - I know how lambdas work... so if I use lambdas, then it's good' which is missing the point completely.

I think one does need to 'grok' FP concepts completely - composition, higher order functions, tail recursion, immutabililty etc and gain an appreciation of FP vs procedural the hard way before they can hope to utilize it effectively.. I think those things help you think 'functionally' which is much more valuable in the long run rather than 'how do I bolt on FP on OOP'

rraghur··on It’s time to ditch SMS-based 2 Factor Auth
Rightly said... Here in india, the central bank had managed sms based otp validation for all online card transactions... Turns out that just doing that has kept card fraud down. It also helps in our country to inspire confidence with older generation that isn't super comfy with online transactions.

Now there have been cases of sim cloning etc to try and get around the otp, but all in all its a small percentage. Now I get support nervous when I do any international transaction and it just goes through without an otp SMS

rraghur··on Abricotine – WYSIWYM Markdown editor – open source and cross platform
I think the way electron apps abound when there are possibly better alternatives is similar to the way markdown abounds in spite of other better 'lightweight' markup alternatives.. after years of using markdown, I've migrated to asciidoc and couldn't be happier that I don't have to rely on custom extensions..

I guess it's a mindshare thing and a learning curve thing.. I guess markdown is good enough for the vast majority of cases.. but when it isn't, it becomes a pita..

rraghur··on A todo list for new ASP.NET Core projects
I sort of agree that config is more of a service.. but I had the same reaction as the parent here that logging had to be injected!

That just felt insane!

rraghur··on The Kubernetes Effect
I think it's overrated though - not open source, doesn't have an ecosystem.. the dev experience is sub par - services take too long to come up even with the one node cluster on a beefy laptop. Plus you cannot run the service outside of SF as an exe now.

I migrated a decent sized solution still in dev from SF to .netcore and SF - 10/10 would do it again. Not to mention that you also end up saving 50% $$$ on vm costs with linux vms (not considering SF on Linux)

← PreviousPage 5 of 5