Better HN
topnewbestaskshowjobs
Log inSign up

pielud

321 karma · joined Feb 18, 2008 (18y ago) · 35 submissions

[ my public key: https://keybase.io/danajp; my proof: https://keybase.io/danajp/sigs/I1JCbsVbG-6pT4k2yiN0RDCeZH9B3CA3LUPy00Vu7-8 ]
Submissions

1.

Hacking Ruby's Net::HTTP to Support X509 Client Certificate Chains(medium.com ↗)

3 points · by pielud · 9y ago · discuss

2.

PagerDuty Announces Downtime Insurance(pagerduty.com ↗)

2 points · by pielud · 11y ago · discuss

comment 12y ago · link · parent

It lets you comment out a line without having to remove the trailing comma from the previous line. That'd be useful if JSON had comments.

I've seen people do this in the SELECT portion of SQL queries too.

Personally, I hate this.

comment 12y ago · link · parent

Ah yes, looks like it does use CONNECT.

comment 12y ago · link · parent

This looks pretty cool, but why not just run sshd on port 80/443 then use corkscrew[1] to tunnel through an http proxy?

[1] http://www.agroman.net/corkscrew/

comment 12y ago · link · parent

For python, there's pexpect: http://pexpect.readthedocs.org/en/latest/

comment 12y ago · link · parent

You could probably do something like that, but it'd be a huge waste of time. The time to brew a batch is pretty much the same no matter the volume. I.E. Brewing a 5 gallon batch takes about the same amount of time as brewing 20 gallons, assuming you have the equipment capable of doing that volume.

comment 12y ago · link · parent

Here are all of the supported ! searches:

https://duckduckgo.com/bang.html

or just search ddg for !bang

comment 12y ago · link · parent

The killer feature for me with ddg (as a programmer) is the ! searches for documentation:

  !php strstr
  !python os.makedirs
  !pypi requests
  !js String
etc.

This gives you a single search bar for all documentation, which is amazing.

edit: formatting

comment 12y ago · link · parent

As another reply has suggested, David Friedman's Machinery of Freedom is an excellent book which describes how private defense, law and dispute resolution might happen.

This video is a good introduction to the ideas presented in the book http://youtu.be/jTYkdEU_B4o

comment 13y ago · link · parent

I take a similar approach. I have a dotfiles git repo in ~/dotfiles/ and have a Makefile which creates symlinks in my home directory. For example, ~/.bashrc is a symlink to ~/dotfiles/bashrc. That way, I can have a whitelist (whatever's in the Makefile) instead of a blacklist (like a .gitignore).

comment 13y ago · link · parent

Any numbers with leading zeroes, i.e. 0000123, excel will interpret as the integer 123 even if you change the column format to "text". It's infuriating.

The only way I found to get around this was to open a new workbook, change the column type to "text" and then paste the data in. I believe this was excel 2010 on windows.

comment 13y ago · link · parent

How do I combine data from multiple log files? How do I tweak my "queries" without scanning all of the data again? You get this kinds of things (joins, indexes, etc) for free from RDBMS. If I'm analyzing log files I have to write my own code to do it.

I'm not saying RDBMS is the best solution for everything and neither is OP. But it's appropriate when you don't necessarily know every way you want to access your data up front.

comment 13y ago · link · parent

> RDBMS exist because people use to query those systems directly , does your users log into your database directly ?

No, but I do. What if I want to analyze my data in some way I hadn't expected? SQL lets me do that with a single query.

comment 13y ago · link · parent

1. Your ORM can derive it's schema from the database's.

2. I think the main point of the post was that you can run ad-hoc SQL queries no matter how much you've denormalized. You can't necessarily do that with a NoSQL database.

comment 14y ago · link · parent

I don't ever use git -p directly, but I use magit (https://github.com/magit/magit) for emacs, which makes staging changes this way very easy.

comment 14y ago · link · parent

Why wouldn't he just grab a knife from his kitchen? Or run them down with his car? Or a bat? Or set their house on fire?

Not having a gun isn't going to stop a person who wants to hurt someone else from doing it. It's just a tool.

18.

Hypermedia APIs using XHTML(vimeo.com ↗)

1 points · by pielud · 14y ago · discuss

comment 15y ago · link · parent

Where is transactional DDL on this list?

comment 15y ago · link · parent

You make a request for several ranges of a file using the range header, something like:

Range: bytes=100-200, 600-800, 1500-

If the server supports ranges, it will respond with a 206 Partial Content status, and send a multipart/byteranges response body, which looks like this http://www.freesoft.org/CIE/RFC/2068/225.htm. Basically a delimited string containing all the ranges.

This is useful for some streaming audio/video formats and especially for large pdfs. IIRC, pdfs typically have header information at the end of the file, so it's useful for a pdf reader to get the end of the file first.

comment 15y ago · link · parent

Do you think the government should have subpoena power in order to collect evidence? Do you think they should be able to search a murderer's home for the weapon?

Of course they should. But that's no the issue here. The issue at hand is whether or not the government can compel you to give them information.

Consider this. You have a box, buried in the Mojave desert, with some documents in it. You've memorized the gps coordinates of this box. Should they be able to compel you state those coordinates?

Sure, they could search 100s of square miles looking for your box, and they might stumble upon it. But they shouldn't be able to force your to tell them where it is.

An encryption key is the same. They can try to brute force it if they wish. They're just looking for a much smaller box in a much bigger desert.

comment 15y ago · link · parent

These protections extend to everyone, no matter how despicable.

In order for good people to be free, some bad guys might also get away. Such is the price of a free society.

23.

The Stone Age to Wells Fargo Online Banking, We Want Our Technology Back(thecodist.com ↗)

1 points · by pielud · 15y ago · discuss

comment 15y ago · link · parent

Oops. Somehow missed that link at the bottom.

25.

Revealed: The guy behind IMDb(alexandrosmaragos.com ↗)

171 points · by pielud · 15y ago · 40 comments

comment 15y ago · link · parent

I like clipperz.com. Completely web based. Encryption is done client side in javascript, so not even clipperz can access my account.

comment 15y ago · link · parent

Can't this be achieved just using ssh instead of setting up a process that listens to the network?

from remote machine:

  ssh me@macbook pbcopy < foo.txt

28.

What Everyone Knows(randi.org ↗)

2 points · by pielud · 16y ago · discuss

comment 16y ago · link · parent

Especially doing anything that requires one bank to talk to another. Why does it take 5 days to move money between banks? It's ridiculous.

I once had mistakenly setup a transfer from one bank to another and I wanted to cancel it. So I called up the destination bank and they said there was nothing they could do. I called the source bank and had to pay 30 bucks to put a stop payment order on the account AND they couldn't guarantee it would stop the transfer.

12