HNHacker News
TopNewBestAskShowJobs

jackewiehose

1,011 karma · joined March 31, 2017

submissionscomments
jackewiehose··on Show HN: `fzf` * `Git` done right
How is the state of Magit on MS-Windows? For me it's unusably(!) slow with a 3-4 GB repository. What is the best way to run Emacs on Windows? I'm using cygwin because I need so many unix tools anyway.
jackewiehose··on Well-known web sites that port-scan their visitors
> Heck, you can literally run BitTorrent on a website using WebTorrent. You could force users to download and share copyrighted movies or other illegal material in the background without their knowledge when they visit your website

Yes, I wrote this a few times in threads like this but for some reason this is mostly ignored. Having WebRTC enabled by default can get you in legal trouble (at least in a country like Germany where lawyers send you letters based on IP addresses).

jackewiehose··on Why Is This Website Port Scanning Me?
The alternative is to ask the user on a site basis.
jackewiehose··on Why Is This Website Port Scanning Me?
There is media.peerconnection.enabled in about:config. When set to false, WebRTC doesn't work but I'm not sure if there isn't anything left active.

Also uBlock has an option "Prevent WebRTC from leaking IP adresses".

WebRTC should be disabled by default or firefox should ask explicitly like with webcam-access.

There have already been reports where sites use your browser as a peer in a P2P-network (without your consent). This can be really problematic depending on where you live.

jackewiehose··on Polyglot Makefiles
Yes, I remember using zsh and in my experience this was barely useful since most Makefiles are auto-generated with hundreds or thousands of targets.

> one could always have a 'help' target that prints a short documentation

Sure, that's fine. But the point is that if you have an unknown Makefile you can't (or shouldn't) just execute it without knowing what it will do. Makefiles should be treated as individual programs just like any other executable and there's no guaranteed standard way to get help from it.

jackewiehose··on Polyglot Makefiles
I was just referring to the --targets option which I thought was meant as an answer to the missing standard help.
jackewiehose··on Polyglot Makefiles
> remake --targets; No idea why this hasn't been merged upstream

I would think because it's useless. The targets in a Makefile are very often just internal and aren't always meant to be run by the user.

jackewiehose··on Polyglot Makefiles
"make help" is definitely not a standard. For all I know "make help" builds help.exe. But there is a standard way to get available commands: Just look at the README or open the Makefile with a text-editor!

The lack of a standard argument for getting help doesn't make it problematic for use as a command runner. You can't get atomatically all available commands from a Makefile just like you can't get all command-line flags from an executable. The program/Makefile has to provide it by itself.

jackewiehose··on The modern HTTPS world has no place for old web servers
> it's wrong to insist as you do that there's no benefit without them.

Ok, that wasn't really my intention. I was stating that a false sense of security is worse than having (knowingly!) no security at all.

So yes I agree, you're generally better off even with untrusted encryption but that doesn't help in practical terms with our current situation of HTTPS in web-browsers. Maybe it would have been better if web-browsers would have just silently accepted self-signed certificates while still showing the big red warning about an insecure connection. I guess that will be solved with QUIC/HTTP3.

jackewiehose··on The modern HTTPS world has no place for old web servers
> but now my traffic is in plaintext for anyone on the local network to trivially intercept

If they are able to trivially intercept your network traffic they are probably also able to modify it (=> hijack untrusted HTTPS) or what scenario am I missing here?

Of course unencrypted communication isn't a solution if your goal is to have secure communication. But so isn't untrusted communication.

Either it's secure or not. You can't have something in-between. The browser would have to display an icon that says "This connection is secure but actually we don't really know so maybe it isn't". What are you supposed to make of such information?

jackewiehose··on The modern HTTPS world has no place for old web servers
> I don't like that mindset that an unverified certificate is somehow not better or even worse (see browser UIs) than no encryption

Of course it's worse when the user thinks the connection is encrypted when he actually has no idea who he's talking to.

What kind of attack do you have in mind where someone can sniff on the data but not tamper with it?

And how should a browser explain this situation to the user? No, the mindset that an unverified certificate is better than no encryption is very dangerous.

jackewiehose··on Scraping Recipe Websites
> I usually add "BBC" to my search term

Do you mean at chefkoch- or google-search?

Yes, recipes are very hard to translate. For example I don't know what "cream" is and I never want extra sugar or salt in canned tomatoes.

jackewiehose··on Scraping Recipe Websites
> Makes me wonder if a super barebones recipe site that literally just has recipes and absolutely no fluff would be something people would gravitate towards

In German there's chefkoch.de. It's full of ads but its core is basically a big DB of user-submitted recipes without fluff. Don't you have something like that in English?

jackewiehose··on Google, Facebook make statements to staff about working from home for 2020
> Ubisoft is going to start letting people return to the office

You say you're working at Massive which is a studio "part of the Ubisoft family". Is it the ubisoft part that hinders remote-work? I would have thought that such technical things are in responsibility of the local business. And I think the decision of going back to the office should also be in the local business as it's highly region dependent.

Would you say you work for Ubisoft or for Massive?

jackewiehose··on WebWormHole: Send files quickly using WebRTC
You always need a at least a STUN server and in my experience that 85% isn't remotely true. For example STUN-only never worked from mobile internet (only tested some german providers).
jackewiehose··on WebWormHole: Send files quickly using WebRTC
> The nice thing about WebRTC is this works (pretty much) everywhere! Someone could throw up Python/Android/iOS/Go/Web/C++ Clients really easily.

Huh, what did I miss?! How do you make a WebRTC-client in language-of-your-choice? The last time I checked for C++ I only found answers like "look at the chrome source". lol.

jackewiehose··on A one-line package broke `npm create-react-app`
> It's a DSL, not a general purpose programming language

Sorry, but I fear that ship has sailed ;-)

And I've heard JS was developed by someone who wanted to give us Scheme (you can't go more general purpose than that) but had to resort to a more "friendly" java-syntax. IMHO javascript would be a great general purpose language if the ecosystem wouldn't be such a mess.

jackewiehose··on A one-line package broke `npm create-react-app`
> The size of the package doesn't make it less bug-prone.

Of course it does. It's more bug-prone just by being a package. More code is more bugs and more build-system annoyance is more terror (=> more bugs). If I only need one line of functionality I will just copy and paste that line into my project instead of dealing with npm or github.

> Dependencies are part of your source

I agree. If you see news about broken packages like this and you don't just shrug your shoulders your build-system might be shit.

jackewiehose··on A one-line package broke `npm create-react-app`
> Not everyone would use it

If the right people would provide the library, it would be used by enough people.

> Yes, in my mind you'd have to change everything from the ground up, starting with no longer using javascript outside of the browser

Whats the point of inside or outside of the browser?

jackewiehose··on A one-line package broke `npm create-react-app`
Does it need much to change? I didn't mean to fix NPM. The problem is the non-existing standard-library. Just create one that everybody will use and everybody could cut their dependencies by thousands.
jackewiehose··on A one-line package broke `npm create-react-app`
I think these one-line-packages aren't the right way to go. Either JS-developers should skip the package-system in that case and just copy and paste those functions into their own project or there should be more common used packages that bundle these one-liners. I mean is_promise() and left_pad() are not worth their own package. Packages-dependencies of 10000 packages for trivial programs are just insane.

Is someone going to fix that?

jackewiehose··on A primer on some C obfuscation tricks
You don't have to enforce a conversion from int to bool if you just want a bool. In this example you don't want to increment by 'bool', you want to increment by 1 or 0 (which are ints). So you use !!x to convert to bool and back to int.

The reason I'm pointing this out is that often enough I had to work with code where this distinction was unknown to the author and you come across code like if (!!x) which is, again, just nonsense.

jackewiehose··on A primer on some C obfuscation tricks
Ints are automatically converted to bool, there is no need to cast. What this does is it restricts the int to 1 or 0. The clean way to write this is x ? 1 : 0. This is understandable even if you don't know the Boolean inversion of 0 is 1 (Which isn't self-evident. For example in Basic its -1).
jackewiehose··on A primer on some C obfuscation tricks
> I don't find those obfuscatory at all either, and instantly understood them upon first reading

I understood the whole list of these obfuscation tricks upon first reading but its still obfuscation.

Creating an array instead of an if-else-switch like the second line is fine but for just two elements and in combination with !!x (and !!x in general) its just nonsense and doesn't help at all.

I'm all for code-density and avoiding repetition so I too use ?: whenever I can but not on the left side of an assignment. That's just an obfuscated if-else-statement. If normal code results in very long and "branchy" code you can rearrange your code in a better way.

jackewiehose··on A primer on some C obfuscation tricks
> Is it bad that I've written some of these in my normal code?

yes

jackewiehose··on An important safety note about chown and symlinks (also chmod and chgrp)
> So on a command like 'find' on Linux, you probably always want -xdev in addition to -P.

No, why? A default of -P is fine but a default of -xdev would mean you couldn't search everything like find / ...

edit: Not sure where you got "physical" hierarchy. Here is the debian explanation of -P:

    -P     Never  follow  symbolic links.  This is the default behaviour.  When find examines or prints information a file,
           and the file is a symbolic link, the information used shall be taken from the properties of  the  symbolic  link
           itself.
jackewiehose··on An important safety note about chown and symlinks (also chmod and chgrp)
-flags+commands

I can say I've never heard of -h/-H and never thought much about symlinks vs. chmod and I never had a problem with it because I've never thought that a symlink can have its own permission (I didn't even know such systems exist).

So for me the default of -H is fine.

jackewiehose··on Valve's Proton Has Brought 6000 Windows Games to Linux So Far
I exclusively play single-player games (mostly AAA) and I still have more games than time to play. But I remember having your feelings when I only had a PC. Get additionally PlayStation+Switch!
jackewiehose··on A Message About Vanguard From Our Security and Privacy Teams
As parent comment noticed there is no need to bypass anything. Just ask the user for root permissions like any other installer and the user will accept.
jackewiehose··on Zoom Endpoint-Security Considerations
> Building SQL queries from strings is possible safely, in the same way that C's memory model is safe.

But still you wouldn't say that every software written in C is automatically insecure. You have to look into the actual case. Just grepping for SQL-string-concatination or uses of sprintf doesn't say much.

← PreviousPage 4 of 10Next →