HNHacker News
TopNewBestAskShowJobs

em-bee

10,500 karma · joined August 27, 2018

software developer / trainer / mentor / CTO on demand

contact me for mentorship, training or project work opportunities:

embee+hn at societyserver dot net

submissionscomments
em-bee··on China's Regulators Take Aim at "AI Boyfriends"
playing chess and go, kids on the playground

most of those people were likely a bit older, already retired, and were out watching their grandchildren. sunday there is no school or kindergarten.

em-bee··on China's Regulators Take Aim at "AI Boyfriends"
this is exactly it. cities are bigger and denser. the higher population density means that you have to go out of your way to not run into someone or do something that is not common for chinese to do, like walking around in streets where there are no restaurants or shops.
em-bee··on You delete a file on Linux while a program has it open. What happens? (quiz)
story time:

i actually had a situation recently where i wanted to delete a file that a process had open because i needed to free up space.

i had a process that wrote a massive log file (200GB) filling up the disk. i didn't want to kill or restart the process, but i needed to remove the log somehow. there was no log rotating option without killing the process. and i knew that just removing the file would not work, so instead i did "echo -n > logfile" causing the file to be truncated.

since the process still had the file open for writing it kept writing to the position it had written to last, creating a 200GB sparse block of virtual zeroes. not exactly what i wanted, but in hindsight, not surprising, and it did solve the problem of freeing up 200GB of space.

except this morning, a few weeks after i truncated the file the space was gone again, and the file was now 400GB large. how did those 200GB come back? and where even did they come from? it is not another sparse block, it actually has data (maybe junk data, but not all zero)

it is unlikely that the process wrote 200GB of logs in two weeks. the other 200GB were written over 2 years. i have yet to analyze what that data is. so far i only confirmed that it isn't all zero (by using cp --sparse=always, ensuring that all zero blocks would be made sparse which would then be easy to detect) (further cursory inspection suggests that the process did in fact write 200GB of logs in two weeks. the error being "Failed to bind socket". i wonder if that was caused by the disk being full the first time around.)

TL;DR: if you need to free up space from a file opened by another process then truncating works, but beware of side effects.

em-bee··on GrapheneOS' rewritten Messages app is released
fairphone probably rolls out a stock android release with little change whereas /e/OS has to forward port all its changes and patches on all the phones they support. maybe taking 4 months is to much for that, but that's most likely a resource problem that can probably best be solved by buying more murena phones.
em-bee··on After Math
business endeavors that cared only about the process, and would gladly avoid the [...] process

you mean they care about the product...

em-bee··on GrapheneOS' rewritten Messages app is released
as if fairphone ever did that: they don't fully keep up with privacy/security backports and lag a year behind on shipping yearly OS releases

so, again, how is /e/OS being behind on updates any worse than fairphone's own OS?

em-bee··on GrapheneOS' rewritten Messages app is released
They replaced their own non-GMS Fairphone OS with a dramatically less secure /e/OS

it sounds like they are saying that /e/OS is less secure than fairphone's own OS. with all criticism against /e/OS taken into account, i highly doubt that fairphone would have been able to make their own version of android more secure than /e/OS when they are not even interested in working on that.

em-bee··on GrapheneOS' rewritten Messages app is released
exactly, i am looking at screenshots for apps to get an idea about their functionality.
em-bee··on Investing in mothers? The long-run impact of a universal child care
it's true by biological necessity. parenting starts already while the child is still growing in the womb. the way the mother lives, experiences stress, what she consumes, all affect the child. breastfeeding is equally important and is much more than just feeding the child with milk.
em-bee··on Investing in mothers? The long-run impact of a universal child care
actually, i strongly believe that the most benefits come from how (not how much) parents interact with and care for their children. i went to kindergarten too, and i grew up spending a lot of tome outside with other kids with plenty of opportunity to socialize, both supervised and unsupervised, but lack of my parents availability (to put it mildly) created an anxiety that completely ruined any social ability that i would have been able to acquire otherwise.

so sure, each case is different, and you are not wrong, but you are putting to much value on good institutions. the heavy lifting still comes from the parents. your children are doing well because you care that they do.

em-bee··on Ask HN: Anyone still coding like 2021? Where do you work?
that's a bit harsh. the job is to solve a problem, implement a solution. as a developer i should have some leeway on how i accomplish that. be able to choose the tools that i believe are the best for the given task. there may be constraints, but using an LLM as a constraint does not make sense because the LLM affects the process but not the outcome.
em-bee··on Why I'm Not Excited About the Graphene OS and Motorola Partnership
please provide references or evidence for those claims
em-bee··on Why I'm Not Excited About the Graphene OS and Motorola Partnership
Joe would move from stock ROM/Google/manufacturer to custom ROM/random developer on the intertubez and so would his trust. And even Joe knows trusting a random guy on the Interwebtubez is the last thing one should do.

but that either applies to GrapheneOS as well, or there actually are trustworthy alternative ROMs out there. GrapheneOS being one, /e/OS being another, for example.

there are more that i am less familiar with, so i can't talk about them, but /e/OS is run by Gael Duval, who has been running a Linux distribution before that for many years. and even tough there are criticisms against /e/OS including the claim that it overstates its security and supposedly hasn't removed all google connections, i will trust Gael based on his reputation far above anything coming from google. even more so compared to other OEMs who stuff their android versions with bad apps that you can't remove.

so no, i am not trusting a random guy on the internet. i am trusting someone with a known reputation, someone who i have actually exchanged private messages with, someone who i could even meet in person if i were to come to the right conference.

em-bee··on Disconnect your LG television from the internet, now
why would i want to have a second box to play my content when i can have it all in one. HDMI cables can only be so long before they get in the way. connecting the TV to a fileserver via wifi is awfully convenient. i also want to play stuff from my phone or my laptop (which is to far away to connect via cable), not to forget that streaming services require internet too.

so yeah, i totally want a wireless TV screen that is able to connect with all the devices in my house. but it's kind of difficult to achieve that without letting the TV access the internet. (not all home routers do not support blocking internet access to specific devices, and most people would not know that's how to do it)

em-bee··on Cloud in a Bottle: making self-hosting accessible to everyone
that statement does not make any claims about capability, reliability or robustness. the claims are rather cost and independence.
em-bee··on Shutting down our public encrypted DNS
if i live in a country where DNS is filtered then running my own locally is not going to work.
em-bee··on Shutting down our public encrypted DNS
disappointing, because alternatives matter too. quad9 and other well known servers are potentially blocked by some countries, so the more lesser known services there are the better.
em-bee··on Mom gets 6-month suspended sentence for letting 5-year-old walk to the pond
they take a bus or train.
em-bee··on Mom gets 6-month suspended sentence for letting 5-year-old walk to the pond
depends. my kids school in china didn't allow me to let my kids bike to school without supervision. (well, actually, they couldn't stop me from sending them to school alone, but they would not let them out unless i was there to pick them up. (there was only one crossing on the route, and that was close to the school and didn't have a lot of traffic)

in germany on the other hand, there was a case where parents demanded a school bus for a 7yr old, but the court said the kids could take the public train to school on their own.

em-bee··on Uber shuts operations in Nigeria and Uganda with immediate effect
your uber driver better not be drunk, so that's not a passenger problem, but only a driver problem
em-bee··on Maybe We Shouldn't Be Reviewing All This Code
i get where you are coming from, but i suspect that the company that does that would also exhaust people without pair programming. bad work environments exist, and yeah, those are probably not the places where you want to introduce pair programming.
em-bee··on Maybe We Shouldn't Be Reviewing All This Code
you are not being interrupted. your partner is thinking with you and is paying close attention to what you are doing. they will know you well enough to not interrupt you while you are focusing on something specific. they will wait for the right moment to speak up if they have something to add, and even then they will not change the focus to some other part of the task if they know that this would disrupt you.

this takes time to learn of course. and individuals handle this differently. i to can't handle interruptions, but when i am focusing a piece of code, and my partner telling me or asking me something about that same piece of code, then for me that's not an interruption. interruptions are notifications and being asked to change the focus on something different. that should not happen when pair programming.

another aspect not mentioned yet, when there is an actual interruption from the outside, one of the people in the pair can handle that interruption, while the other continues to focus. the interrupted one can then jump back in much faster than you would if you were interrupted while alone.

em-bee··on Maybe We Shouldn't Be Reviewing All This Code
absolutely, for me that's included in the cost of ownership. just like the cost of ownership of physical items includes the cost of disposal of those items once they are no longer useful.
em-bee··on Maybe We Shouldn't Be Reviewing All This Code
you mean the white bump on top of the purple brick that should not be there? well, i saw that as a marking on the brick because if it was a bump it would be purple. and on the left side whether that looks right or not depends on the angle.

(we are nitpicking the nitpicking, it's nits all the way down. my last line in the previous comment was also based on the image. to shatter your steelman, picking on the illustration of the article that is just there to add some color is at best like a code review complaining about style or indenting. with endless bikeshedding opportunities, not something a code review should be focusing on. if the picture were of central importance then that would be different. btw, i am not complaining, i am having good natured fun here)

em-bee··on Maybe We Shouldn't Be Reviewing All This Code
research has shown that the longer work in one day the lower your performance gets. meaning that eg in the first 4 hours i get 60% of my work done and in the remaining 4 hours 40% simply because i get tired later in the day. (numbers made up for illustration purposes only)

4 hours of pair programming per day can therefore possibly be enough to make up for the increased loss of performance in the rest of the day.

em-bee··on Maybe We Shouldn't Be Reviewing All This Code
the other person is a typist that thinks through the ideas they hear and critiques them while they are typing.
em-bee··on Maybe We Shouldn't Be Reviewing All This Code
how is the lego structure impossible? it is unstable because it's made only of 1-stud bricks. and there are some non existent multi colored bricks in use, but those could theoretically be produced. also while the wheels are not connected, you could stack pricks on top. so it's improbable, but not impossible.

just drink a cup of NO and you'll be fine.

em-bee··on Maybe We Shouldn't Be Reviewing All This Code
my performance goes up when i pair program. therefore velocity is not cut in half. depending on the pair, the velocity may even be higher than the combination if the two people working individually.

also if pair programming means saving time on code reviews then that's a further increase in velocity.

em-bee··on Maybe We Shouldn't Be Reviewing All This Code
AI may reduce the cost of code production, but it raises the cost of ownership.
em-bee··on Maybe we shouldn't be reviewing all this code
my performance goes up when i pair program. even if the partner is a junior, simply because i am more focused.
← PreviousPage 3 of 34Next →