Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
Eiwatah4
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
6 ms
·
1.
▲
by
Eiwatah4
12y ago
Just generally, don't write SQL queries as strings. An ORM is one option, language-level extensions another. But for that you need some good macros in your language - or convince the maintainers of your compiler to add it to the langua
2.
▲
by
Eiwatah4
12y ago
There is a relatively recent audit[1] of EncFS with some damning results. I really wouldn't use it. [1]: https://defuse.ca/audits/encfs.htm
3.
▲
by
Eiwatah4
12y ago
Internet Navigator
4.
▲
by
Eiwatah4
12y ago
The CTFs I've played usually had a good mix of web stuff and binary exploitation. Also, the best way to learn this stuff is to do it. Even if this seems out of your league, I'd suggest to just join a team and start playing - if th
5.
▲
by
Eiwatah4
12y ago
You don't have to apply the CBC mode to complete files. If it is secure for a 1 MB file, I don't see why it would be insecure for 100 parts of a 100 MB file. If you manage to merge small files into the same blocks, you even gain s
6.
▲
by
Eiwatah4
12y ago
You do have some information in the browser you can't get to from the outside. For example, the filter with the most hits for me is "@@||192.168.$xmlhttprequest", which whitelists XMLHttpRequests to 192.168.*. A proxy can
7.
▲
by
Eiwatah4
12y ago
What if someone hacked your server and stole, then deleted the private key? (Backing up private keys is bad practice.) What if the CA notices they issued a fraudulent certificate?
8.
▲
by
Eiwatah4
13y ago
> In my opinion, most of TCP's semantics arise not out of the network, but rather the data itself. I can't have packets getting lost in the middle of an SSH session: it just doesn't make sense. My keystrokes are a stream o
9.
▲
by
Eiwatah4
13y ago
If Github would only host git repositories, you'd be right. But people use Github for the issue tracker, source browser, code review system. Those are just as centralized as the svn server. And in my opinion, they are at least as impor
10.
▲
by
Eiwatah4
13y ago
It isn't the default for most people. Download a browser and OS localized to German, French, or British English and Accept-Language defaults to that instead of "en-US".
11.
▲
by
Eiwatah4
13y ago
What's stopping the attacker from reading the user's browser data and replaying it to Google?
12.
▲
by
Eiwatah4
13y ago
For some reason, the #content element is hidden with a `display: none`. Disable that and the content shows.
13.
▲
by
Eiwatah4
13y ago
Either that, or a race condition.
14.
▲
by
Eiwatah4
13y ago
Gcc doesn't have such a warning. Clang has it, but it has to be explicitly enabled. (It's not even in -Wall or -Wextra.)
15.
▲
by
Eiwatah4
13y ago
In Rust, (right now) you can choose between a 1:1 or a N:M mapping between OS threads and Rust tasks. With N:M threading, the runtime necessarily does (some of) that internally.
16.
▲
by
Eiwatah4
13y ago
That works just fine. But if you're working on a big project, a full new download can take a while.
17.
▲
by
Eiwatah4
13y ago
My experience with cgroups is that it's incredibly difficult to get them to do what you want them to do. But systemd seems to be changing that, so maybe their use will get more mainstream soon.
18.
▲
by
Eiwatah4
13y ago
It is for sysadmins. And those are probably Canonical's biggest source of income.
19.
▲
by
Eiwatah4
13y ago
> I don't know how other similar languages deal with GUI. It's always sort of hairy, obscure code when you look at it closely. The best languages for GUIs I've seen are specialized declarative DSLs. Things like QML, XAML,
20.
▲
by
Eiwatah4
13y ago
When there are too many messages, rsyslog will drop them in the default configuration, too. http://www.rsyslog.com/tag/systemlogratelimitinterval/
21.
▲
by
Eiwatah4
13y ago
Who says the function call actually happens? If the function is short enough, they are a very good candidates for the JIT to inline. If they aren't short, the overhead of calling the function shouldn't matter much anymore.
22.
▲
by
Eiwatah4
13y ago
C has variable sized arrays. http://pastebin.com/BEgDNAhu That's no longer backward-compatible to C89, though.
23.
▲
by
Eiwatah4
13y ago
You don't have to simulate multidimensional arrays in C. It's just easier than wrapping your head around the weird syntax required to pass them around: http://pastebin.com/JTjQMfxr
24.
▲
by
Eiwatah4
13y ago
Yes, the 2-4 diagnoses he came up with in the first 35 minutes were always wrong. Only then did he get it always right.
25.
▲
by
Eiwatah4
13y ago
toString() blows up on a null value, the + operator does not. I've written similar Java code for that reason.
26.
▲
by
Eiwatah4
13y ago
Tuition was common for a while, but it isn't anymore. Lower Saxony is the only state where you still have to pay it and they're abolishing next year [1]. [1] https://de.wikipedia.org/wiki/Studiengeb%C3%BChren_
27.
▲
by
Eiwatah4
13y ago
$ 5000 seems way too much. 50 TB of traffic would cost something like $ 200 (if all downloads were from the US or Europe) to $ 450 (if all of were from South America) according to this page: https://aws.amazon.com/cloudfront
28.
▲
by
Eiwatah4
13y ago
I had similar problems, and found a work around that works great for me: bash is configured as my default shell. So every program that runs my default shell and just assumes it can use POSIX syntax, gets what it wants (even though it should
29.
▲
by
Eiwatah4
13y ago
Is there any chance for that most-used software to be secure if the underlying OS is full of holes? (I'm not completely sure myself. But I'd rather err on the safe side.)
30.
▲
by
Eiwatah4
13y ago
Afaik, as long as a weak cipher is enabled on both client and server, a MITM attacker can force it to be used. It involves manipulating the handshake to tell both parties the other one doesn't support any better cipher.
More ›