Hacker News new | past | comments | ask | show | jobs | submit | more eklavya's comments login

Any guides or blogs on how to do that?


Loads, but it'll depend on what you want to do exactly. I think this should be the approximate list of things:

- domain at Cloudflare set up to cache requests (this will take the brunt of the site traffic)

- static IP at home (call your ISP)

- port forwarding on your router to the Pi for 80 and any other ports you need, maybe a vlan if you're feeling like isolating it

- a note on the Pi that says "don't unplug, critical infra"

- the same setup on the Pi as you'd do on a cloud server, ssh with key pairs, fail2ban, etc.


Because tradeoffs and diminishing returns are a thing? For example having one backup is better than having no backups. Backups spread across earth, moon and mars would be better but probaboy not worth the cost.


"resource hog" is a thing. Eclipse is java as well.


Well fair point. During my university days, there were 2 prominent Java-based IDEs: Eclipse and Netbeans.

Even after installing some plugins, Eclipse ran faster, and thus become my primary IDE. I kinda miss Eclipse. On the other side, seems like most Java dev nowadays already switch to IntelliJ.


I used to not understand this as well. Then I switched to Android after some 8 years and can't really remember why I "needed" iOS. Everything works and I am happy. really just choose the better product (for you). Regulation may not happen in time or at all but declining sales will make any business do an about turn at record pace. And even if it doesn't, why do I care?


You change your phone every year?

Because I have this Android phone sitting on my desk for development. When I bought it it was almost as responsive as iPhones (and much cheaper). 4 years later the UI is a lagfest [1].

Meanwhile, my iPhone XS is over 5 years old and almost as responsive as on day one. And I have major version OS updates to blame for the "almost", while the Android one got one major update and was lagfest even before that.

[1] I don't even use it every day, Android development is kind of a side job once in a while.


> You change your phone every year? Because I have this Android phone sitting on my desk for development. When I bought it it was almost as responsive as iPhones (and much cheaper). 4 years later the UI is a lagfest [1].

As a counter anecdotal evidence: I bought my current Android phone before the pandemic started (that is, more than 4 years ago), use it daily, and it's as responsive now as it was when I first used it. While I don't have any iPhone experience to compare, I feel no lag when using it.


Same here, I have a Samsung XCover Pro bought 4+ years ago that still feels the same as when I got it. The only thing notable is the lack of 5G support, but it's only when I switch between it and my work phone (which has 5G) that I really notice the browser loading times.


This is the problem many have with android - there’s a massive difference between different handsets

That isn’t the case with an iPhone


You're comparing Android (an OS) with iPhone (a phone brand).


90% of people think of a phone as “an iPhone” (various versions) or “an android” (various versions)


Because the hardware isn't so relevant. You have exactly two gatekeepers.


I seriously don't understand why performance should degrade so much in time. Do they use crap flash chips in the cheaper models and Android writes so much to them that they run out of scratch space or something?


Your experience seems pretty unique to me.

My family uses Android exclusively (including extended family) and the only cases where performance degraded is with very cheap 10+ y/o phones that could no longer keep up with system updates that now take most of the storage space.

Even those more or less still work after reflashing a leaner FLOSS ROM.

Did you perhaps buy a crapware chinese phone and are receiving bloat/spyware?


> Did you perhaps buy a crapware chinese phone and are receiving bloat/spyware?

No, this latest one is a crapware Samsung phone. Doesn't mean I'm not receiving bloat/spyware.

Come to think of it, the Huawei I used before this Samsung degraded less. But I had to abandon them when they got kicked out of google services. Need a full featured phone so I can develop whatever the customer wants.


Is it because you got used to it? Or maybe it JITs most-used applications? I don't think their experience is unique at all (I also have an Android device for development and it is a lagfest after a couple of years).


> Is it because you got used to it?

No, I know what you mean, I've seen this happen with very cheap (or not cheap but just rubbish/spyware) brands/models that quickly filled the system partition over time with bloatware during updates.

Being cheap, the system partition was already tight on purchase, so the bloat/spyware quickly turns it unusable. The cheaper models tend to have inadequate storage to begin with and install bloat/spyware to subsidize them.

I just don't think it's an "Android" thing, most of those can be revitalized by installing a custom ROM without the spyware (but the crappiest brands are probably not even FLOSS-supported).

What is your device brand+model?


Hmm mine is a Galaxy A21s.

/dev/block/dm-4 3.4G 3.4G 22M 100% /

/dev/fuse 23G 14G 8.2G 64% /storage/emulated

I haven't worked with AOSP in ages, just normal apps. Is root supposed to be 100% full?


Honestly it's been a while for me too and I don't even know how to see the actual device partitions instead of just mounts (e.g. I think in this case your / is just a read-only ramdisk so it doesn't really matter what df says... mine is 100% too.)

I don't even know how this works anymore since I think since Android 10 they use some sort of overlay FS for updates?

I tried installing parted on Termux but it refuses to do so and I have no energy to fight it.

I know it's cliché but... have you tried a factory reset?


> I know it's cliché but... have you tried a factory reset?

I will when it starts to annoy me.

Or I may just get a new phone the next time I need to do Android. This one has 12, they're at 15 now. I may need to be on whatever's the latest on a new project, whenever that comes (not soon).


I don't. I haven't experienved any lags. My mother has had a samsung m30 for a while and everytime I used it, it was absolutely fine. This was a 4.5 years old phone. I got her a samsung a35 this time.


It's about how many apps you install, my phones get laggy as well, but when I format them they're back to being as responsive as day 1.


It's a development phone. It has whatever I run on it through adb, a few nfc and bluetooth test apps and that's all.


Hm, and it got laggy? Is it running out of space?


How do you know what is or isn't null?


Linux has had support for not doing duplicate pages for a long time now. I am forgetting the name of the feature but essentially this duplication is a solved problem.


That's only the case if the libraries loaded are identical, It won't work with slightly different versions of the same library (unless the differences are small and only replacements, so the pages remain aligned between different versions), and that case is very unlikely to be solvable


The parent comment doesn't talk about different versions and I wasn't either.


For different minor versions and builds of libraries?


This is basic paging and CoW (Copy on Write) behaviour. I agree, it's mostly a non-issue


Am I reading it wrong or are you admiring deafness which shouldn't be cured? Or the deaf people who are admirable?

Why should curing deafness not be a goal of medicine?


I'm reading it like the hedonist's treadmill. Why be happy with a 6 figure salary when there's people with 7 figure salaries? Are you content with your current situation, or are you missing a part of what it means to be human by not having better eyesight, better teeth, better hearing?

I think what OP was referring to was how rich the lives of the deaf can be, and how discouraging it might be to hear "y'know, you're not /really/ experiencing life until you can hear"


Why would bringing up sustainability of any business be comical at Hacker news?

How do you make money? Why should it not be for free? Your sustainability is important?

We agree on hardware belonging to the user by the way.


Hacker ethos is about freedom to control what you own and put it to the purposes that you, its owner, want. DRM takes away that freedom, so it is obviously incompatible.

If that freedom makes e.g. Disney business model unsustainable, then that business model is itself incompatible with the ethos.


You're still missing the point, and I believe intentionally so.

> We agree on hardware belonging to the user by the way.

You absolutely do not or you would not engage in the work you do. Actions speak louder than words. Being dishonest only makes it even worse.


It doesn't make sense when you use this reasoning on established languages like C++ and Go. Makes all the difference when you are less than a year old language.


I see what you mean but how is it academically useful to identify transpilers something of their own? It's still compiling (lowering) from one notation to another.


Join us for AI Startup School this June 16-17 in San Francisco!

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: