HNHacker News
TopNewBestAskShowJobs

cafeinux

306 karma · joined June 12, 2022

submissionscomments
cafeinux··on Orbit by Mozilla
uBlocK Origin is natively supported on FF mobile, and to me this is the only feature without which I couldn't live.
cafeinux··on Portspoof: Emulate a valid service on all 65535 TCP ports
Sure, here you are! 127.0.0.1 Thank you for your thoughtfulness.
cafeinux··on Portspoof: Emulate a valid service on all 65535 TCP ports
So what you're saying is that I should open 30 ports on my critical servers so that they are ignored as honeypots by the attackers? Noted.
cafeinux··on How do you do, fellow web developers? A growing disconnect
I never understood the struggle people have with pointers, to me they are quite obvious, unless I'm missing some important thing about them. You have something you need to store; it's stored in memory; so you need to store its address if you intend on accessing it; so you store it in a pointer. From there, the rest comes logically.
cafeinux··on Colour in the Middle Ages
Funnily, when I was a child my favourite colour was "dark yellow". It was orange, but I would have died on the hill that said it was dark yellow.
cafeinux··on A liar who always lies says "All my hats are green."
And that's why we must conclude that there must be a ten-foot tall man, so it can have non-brown hair, so that the liar indeed lied.
cafeinux··on 65% of Employees Bypass Cybersecurity Measures, New Study Finds
Most renown password managers are well integrated, making their use (usually) easier than just typing out a password. There's a good chance your company chose a outlier, or that the company or yourself don't use it correctly (and training employees to use the mandated tools is not always obvious to companies). This with the resettable password makes me think your company should really think again about which solution they chose.

I use a password manager in my daily life because I have 3 e-mail accounts, two domains, a cloud service not tied to any of my E-mail accounts, two banking accounts and the need to sometimes log into my wife's account (because she asks me to while she's at work), one PayPal account, and other services for which I wouldn't dare to write down the password to, nor would I dare to use the same password (or slight variations) for them. Using a password manager makes all of these easy to use at the click of a button, without me needing to remember any.

Post-it notes get lost, thrown away, burn, suffer water damage, and are bothersome to copy for backup purposes. Online password managers take care of backing up the DB for you, or if you don't trust them, offline solutions as pass or KeePass (and variations) let you backup the DB on offline drive and store them safely while you continue to use the main DB.

What's your excuse?

cafeinux··on 65% of Employees Bypass Cybersecurity Measures, New Study Finds
Why would you need to write your password on a post-it note if you use a password manager? Also, why would the note need to be specifically "on your desk"? If I really had no other choice than writing down a password, I would keep it in a more subtle/hidden place (my wallet, or my phone case, or in my locker). That's still not secure against a targeted attack, but I wouldn't be the lowest hanging fruit at least.

Also, if you are able to reset the master password of your password manager, then something is seriously wrong with the solution your company uses.

Advice for a good and rememberable master password: use a passphrase. 6 random words are easier to recall than lots of characters. Throw in one number and one capital letter in two random places (replacing o with 0 or i with 1 is not random, neither are start and end of words), use a special character as words separator, and you got an easy to remember password that checks all the security requirements.

Heck, even using a line or two from the lyrics of a song you know (but obviously not your favorite or the one you sing every morning) is easier and better than most passwords. Some time ago I used the first line of "Toxicity" by System of a Down, when I didn't have the time to craft a good passphrase. Checks all the marks (special chars and numbers included), and was not anymore guessable than a random passphrase during the short time I used it.

cafeinux··on Why pipes sometimes get "stuck": buffering
I usually use PCRE mode and prepend what I want to be displayed with `\K` (and append a lookahead if needed):

  ~ $ echo "foo bar1 baz foo bar2" | grep -oP 'foo \Kbar\d'
  bar1
  bar2
  ~ $ echo "foo bar1 baz foo bar2" | grep -oP 'foo \Kbar\d(?= baz)'
  bar1
  ~ $ echo "foo bar1 baz foo bar2" | grep -oP 'foo \Kbar\d(?=$)'
  bar2
Of course, it implies using a version of `grep` supporting the `-P` option. Notably, MacOS doesn't by default, although if -P is utterly needed, there are ways to install gnu-grep or modify the command used to achieve the same result. Your way is perhaps more cross-platform, but for my (very personal) use cases, mine is easier to remember and needs no setup.

Edit: worst case, piping to `cut` or `awk` can also be a solution.

cafeinux··on A pretty visualisation of the European power grid (2022)
Disclaimer: I'm working for an actor in the electricity market, although not on the business side so I don't know everything about it.

They do know who paid for what. And actually anyone is able to know. It's a very regulated market, and most of its data is published, although I have to admit that if you don't know how to fetch it and read it, it's a bit hard to figure out by yourself.

You should be able to find published data on the ACER Remit Portal (https://www.acer-remit.eu/portal/home), ENTSO-E Transparency Platform (https://m-transparency.entsoe.eu/) and JAO website, Market Data tab (https://www.jao.eu).

cafeinux··on Voyager 1 stops communicating with Earth
It is, and afaik no Voyager probe has been destroyed by the Klingons.
cafeinux··on Stuxnet Source Code
I am sure big software companies wouldn't agree on this: decompile Excel or Photoshop and copyright the resulting code, and you shall get a nice lawsuit within days, if not hours. However, I guess there would have a bit of ToS breach, a pinch of DMCA and a lot of copyright infringement for reverse-engineering the software, maybe not that much for copyrighting the decompiled code.
cafeinux··on Ghostlike dusty galaxy reappears in James Webb Space Telescope image
For the time being, being certain that life is common (or rare) is akin to believing in God: there's nothing that can prove or disprove that belief, and it is at this point a matter of faith.

Fortunately, not like religion, we may one day have a definitive answer on the matter of life in the Universe, but today there's just not enough data to affirm anything.

cafeinux··on Salad Fingers and the dawn of ‘weird YouTube’
Oh, I see you've met my godson...
cafeinux··on Bitwarden is down with blank screen under Linux OpenSuse
It's just that keypass seems to me more reknown (I had never heard of Enpass before), so I would have assumed one would have compared both before choosing one or the other. I was then wondering what were the benefits of Enpass over Keypass. Not that I have any preference or bias: I know keypass and wondered how it compared to a similar solution.
cafeinux··on Bitwarden is down with blank screen under Linux OpenSuse
Genuinely curious here: why not keypass?
cafeinux··on Android 14's user-profile data bug
That asks a question: is a malware defined by its intent, or by what it actually does? Functionally speaking, NotPetya was indistinguishable from a ransomware. It's creators intent however would make it a wiper.
cafeinux··on Android 14's user-profile data bug
Well, NotPetya was a ransomware, yet paying wouldn't have decrypted any data.
cafeinux··on How Games Used to Look: Why Retro Gaming on a CRT Looks Different [video]
I've always been an avid reader and for as long as I've able to read I've always read multiple books at a time, depending on my mood, and I finish them all. Granted I didn't grow up with the massive amount of available media kids have today, but I don't see a problem with kids reading multiple books at a time, if they go through them anyway. I much prefer this than kids not reading at all.

I can see your point though, I just can't agree with the books part, from my personal experience.

cafeinux··on Could Earth be the only planet with intelligent life?
This still needs to be proven. And although I do have religious beliefs, here is the wrong place to discuss that kind of topic.
cafeinux··on You Don't Really Own the Digital Movies You Buy (2021)
If I look at my (now old) DVD collection, I realise I've not watched them for... 10 years at least. There's only one movie that I get the urge to watch at least once a year, if not more, and for some unknown reason, it's Shrek. And I don't even own the DVD. I guess that one I should buy.
cafeinux··on Could Earth be the only planet with intelligent life?
Yet, if the primordial soup is indeed what happened, it created a birthday cake complete with icing, candles and balloons, through the creation of humans. The primordial doesn't speculate that life appeared from one day to another, it speculates a long and slow process, just as the refinery of wheat into flour then a pastry (along with other ingredients) is a long and slow process (faster than the creation of life, but still).
cafeinux··on Could Earth be the only planet with intelligent life?
Our lack of evidence tends to suggest that we are alone. But it's a mere conjecture. A single counterexample would invalidate it.
cafeinux··on Could Earth be the only planet with intelligent life?
For the moment, astronomers found 0 life forms out the 42 we seeded. Unfortunately, 0/42 is equal to 0/n where n ∈ ℕ, so we don't gained much knowledge on the matter so far.
cafeinux··on Could Earth be the only planet with intelligent life?
Assuming that they are currently roughly at the same stade of evolution as us, or less, and knowing that Voyager 1, the farthest human made object in space, only crossed the heliopause eleven years ago, it's not highly probable that "something" would have reached us by now. Of course, it's based on an assumption, but the contrary is too. The thing is we don't know enough to estimate when, where and how life might have appeared elsewhere.
cafeinux··on Could Earth be the only planet with intelligent life?
Once a 256th develops, the overflow causes every intelligent form of life to disappear.
cafeinux··on "You have a 27% 'AI' issue in here"
I would try to pass the teacher's message through an AI checker, then answer "Sorry, I can't accept your comment because it was 34% written by an AI, and I only obey to my teacher, not ChatGPT". I don't know if that would work, but that's very clearly the kind of thing I would have done when I was a teenager.
cafeinux··on A literary history of fake texts in Apple's marketing materials
At least you get asked about those events. In my family I'm known as the guy who knows everything last: often conversations go like "He's been sad for two months now, but it's understandable – Why? What happened? – Well, you know, the break-up... – What? John broke up? I didn't even knew he had someone..."

So now, my mother (who lives on Facebook) usually calls me to let me know when she learns something she might deem important on Facebook. And I honestly appreciate the attention, it's good when you feel that people think about you. And it's usually important information she gives me, because we're not into gossip.

cafeinux··on A literary history of fake texts in Apple's marketing materials
I don't usually text in English so my style is definitely different, but I wonder if I may be living in the Apple Dimension (despite my last Apple device being an iPod Touch from 10 years ago and a MacBook Air from the same time that I bought used to try to install Linux on it): I do end every one of my texts with grammatically correct punctuation, never use "lol" or other abbreviations, and typically write in a very clean, sometimes too verbose, style. I wonder if something up with "us". Maybe a new pathology name ought to be coined.
cafeinux··on Ask HN: How to handle Asian-style “Family name first” when designing interfaces?
Not sure how it is done in other countries, but it's very likely that the custom of using the last name in all caps exists elsewhere. AFAIK, it comes from the fact that some last names are also common first names, so it's easier to distinguish between the two like this, as the order isn't really that important. For example, if I see a DIDIER Bernard or a Bernard DIDIER, I know I need to call him M. Didier in a formal context or just Bernard in an informal one.
← PreviousPage 3 of 6Next →