pielud's comments

pielud | 11 years ago | on: W3C HTML JSON form submission

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.

pielud | 12 years ago | on: So You Think You Want to Open a Brewery

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.

pielud | 12 years ago | on: Inside DuckDuckGo, Google's Tiniest, Fiercest Competitor

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

pielud | 12 years ago | on: Using GNU Stow to manage your dotfiles

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).

pielud | 13 years ago | on: How to share your data effectively

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.

pielud | 13 years ago | on: SQL is Agile

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.

pielud | 13 years ago | on: SQL is Agile

> 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.

pielud | 13 years ago | on: SQL is Agile

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.

pielud | 13 years ago | on: Gunsmith Uses 3D Printer To Make A Rifle

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.

pielud | 14 years ago | on: Apache vulnerable to easy DOS attack - workaround available

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.

pielud | 14 years ago | on: DOJ: We can force you to decrypt that laptop

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.

page 1