Hacker Newsnew | past | comments | ask | show | jobs | submit | coolboy89's commentslogin

wget http://72.18.130.89/hackermonthly-issue1.pdf '--header=HOST: hackermonthly.com'


I was surprised to find that OS X doesn't come with wget, but it does include curl:

curl http://72.18.130.89/hackermonthly-issue1.pdf --header 'HOST: hackermonthly.com' > hackermonthly-issue1.pdf


for future reference you don't have to use curl like that you can just do

curl -O http://72.18.130.89/hackermonthly-issue1.pdf --header 'HOST: hackermonthly.com'

to achieve the same result


I figured the command line option existed but why bother looking it up in a man page and then memorizing it when > works perfectly?



AVG stopped me from extracting that file. Phew!


Can't gauge if this comment is sarcastic or not..


I share the sentiment. Some time ago I was investigating some nasties that were spreading via web (Firefox plugins exploits) and I had to switch off the antivirus just to be able to view the content of the text file.


Yeah, that's pretty much what I meant. No sarcasm. I have 50+ PCs with AVG Network Edition. So I was glad to see that AVG had already put this exploit on the block list.


And at least it's not this: http://www.sysadminday.com/horrors.html


First of all: Programming is learned by practicing, get off HN, books and just do it.

If you are a person who can master a practical subject (typing code) by just reading specifications, I'd recommend stop using PHP and maybe switch to a more thoretical language; LISP, prolog, mathematica why not?

If you are a "mechanic" type of person why learn by experience, just start programming, don't worry, you'll learn!

I recently programmed a site in PHP more or less boilerplaty. The idea to avoid ugly, boring code is to abstract things away, supposedly by a framework or by yourself. Nevertheless if you don't know what you're looking for, you won't find it.

A thing i would probably use next time is MYSQL-classes as described in http://www.justincarmony.com/blog/2008/10/25/php-design-bigg....

A thing i would probably use next time is MORE regular expressions for sanitizing input. Learn regexp, it's a time saver!

1) I too started with basic tutorials, but bit by bit startede gravitating towards PHP.NET, finally landing in some nice PHP-framework. I see PHP as a great language, but not a great framework. There are no prepackaged 'concepts' of programming as in, for instance, ruby on rails. There is however lots of nice low-level type of oppurtunities for clever hacks if you know the technical bits, as in C.

2) I wouldn't think about it, as for always, i would start typing away. It's not LISP, Prolog or Haskell where a lot of planning is involved.


Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: