HNHacker News
TopNewBestAskShowJobs

wendroid

341 karma · joined November 2, 2009

submissionscomments
wendroid··on Ask HN: How do I automatically turn Internet off on mc os x?
check that your interface is actually en0 by typing : ifconfig

of course you'll also lose all network, not just the internet

I suppose the other way is changing /etc/resolv.conf from

    nameserver 8.8.8.8
to

    nameserver 127.0.0.1
8.8.8.8 is google's speedy dns
wendroid··on Our greatest shortcoming is our inability to understand the exponential function
humourless dolts
wendroid··on Our greatest shortcoming is our inability to understand the exponential function
Yeah, JS is pretty good, he's going to win some stuff

http://www.motogp.com/en/riders/profiles/julian+simon

wendroid··on Our greatest shortcoming is our inability to understand the exponential function
I'm not offended by "them food aid."
wendroid··on Apple is Officially Worth More than Microsoft
Yeah, they are well over their real worth. I'm looking forward to the pop.

There's too many people chasing the bus.

wendroid··on Dr Mark Gasson "infected" himself with a computer virus
Interesting read but

> That it be a normal DOS program capable of producing the same results under WINDOWS as well as real DOS mode.

so it's pretty useless to me

wendroid··on Dr Mark Gasson "infected" himself with a computer virus
see also http://news.ycombinator.com/item?id=1381127
wendroid··on The EICAR Standard Anti-Virus Test File
Here's a script to send it, replace wendroid@ycombinator.com and mail.anybots.com with your desired target and superman@krypton.pl as your nasty hackar

    echo 'helo ycombinator.com
    MAIL FROM: <superman@krypton.pl>
    RCPT TO: <wendroid@ycombinator.com>
    DATA
    Subject: virus trigger
    To: wendroid@ycombinator.com
    From: superman@krypton.pl
    Content-Type: multipart/mixed; boundary=----------yeODUdrHXSboO0pEkHkAqW
    MIME-Version: 1.0
    Date: Wed, 26 May 2010 17:42:00 +0100

    ------------yeODUdrHXSboO0pEkHkAqW
    Content-Type: text/plain; format=flowed; delsp=yes; charset=iso-8859-15
    Content-Transfer-Encoding: 7bit

    have a virus matey

    ------------yeODUdrHXSboO0pEkHkAqW
    Content-Disposition: attachment; filename=eicar_com.zip
    Content-Type: application/zip; name=eicar_com.zip
    Content-Transfer-Encoding: Base64

    UEsDBAoAAAAAAOCYuCg8z1FoRAAAAEQAAAAJAAAAZWljYXIuY29tWDVPIVAlQEFQ
    WzRcUFpYNTQoUF4pN0NDKTd9JEVJQ0FSLVNUQU5EQVJELUFOVElWSVJVUy1URVNU
    LUZJTEUhJEgrSCpQSwECFAAKAAAAAADgmLgoPM9RaEQAAABEAAAACQAAAAAAAAAB
    ACAA/4EAAAAAZWljYXIuY29tUEsFBgAAAAABAAEANwAAAGsAAAAAAA==

    ------------yeODUdrHXSboO0pEkHkAqW--
    .' | nc  mail.anybots.com 25 # ycombinator.com's mx
and while we're here, let's send some certified SPAM

    echo 'MAIL FROM: <superman@krypton.pl>
    RCPT TO: <wendroid@ycombinator.com>
    DATA
    Subject: spam trigger
    To: wendroid@ycombinator.com
    From: superman@krypton.pl
    Date: Wed, 26 May 2010 17:42:00 +0100
    
    some spam

    XJS*C4JDBQADN1.NSBN3*2IDNEN*GTUBE-STANDARD-ANTI-UBE-TEST-EMAIL*C.34X

    .' | nc  mail.anybots.com 25 # ycombinator.com's mx
wendroid··on [dead]
As a vegan I've often banged on about how I prefer meat eaters to milk drinkers.

Murder over torture

wendroid··on Ask HN: How do I automatically turn Internet off on mc os x?
turn the router off, or get one of those timer switches for $5 or put this in /etc/crontab

It checks every minute so you still have a window :)

    */1 0 * * * root ifconfig en0 down
    */1 1 * * * root ifconfig en0 down
    */1 2 * * * root ifconfig en0 down
    */1 3 * * * root ifconfig en0 down
    */1 4 * * * root ifconfig en0 down
    */1 5 * * * root ifconfig en0 down
    */1 6 * * * root ifconfig en0 down
    */1 7 * * * root ifconfig en0 down
    */1 8 * * * root ifconfig en0 down
    */1 9 * * * root ifconfig en0 up
    */1 10 * * * root ifconfig en0 up
    */1 11 * * * root ifconfig en0 up
    */1 12 * * * root ifconfig en0 up
    */1 13 * * * root ifconfig en0 up
    */1 14 * * * root ifconfig en0 up
    */1 15 * * * root ifconfig en0 up
    */1 16 * * * root ifconfig en0 up
    */1 17 * * * root ifconfig en0 up
    */1 18 * * * root ifconfig en0 up
    */1 19 * * * root ifconfig en0 up
    */1 20 * * * root ifconfig en0 down
    */1 21 * * * root ifconfig en0 down
    */1 22 * * * root ifconfig en0 down
    */1 23 * * * root ifconfig en0 down
wendroid··on Becoming a "Spamassasin"
I integrated and adminsiter a postfix / sa / clamd / courier system for about 10,000 domains (6 identical blades with local storage for the queues and Global File System GFS once they've been accepted).

SA gets about 95% accuracy on our system even at 5.0

I can also recommend enabling SPF and DKIM see http://www.openspf.org/ Wave bye bye to emails pretending to be sent from yourself to yourself or those annoying "your settings have changed, open this zip file" mails.

wendroid··on Coroutines in C (Simon Tatham, 2000)
Thanks Simon, but I'll use Russ Cox's (co-author of Go)

http://swtch.com/libtask/

wendroid··on Dr Mark Gasson "infected" himself with a computer virus
Was the first thing I got sent this morning.

You've got to be pretty stupid to do this :

    S: any RFIDs around with code for me to execute
    C: sure, here's some 0x1fab214bab3421baeb3f2d287d20d8297d2
    S: Thank yo ... Connection reset by peer
wendroid··on Plummeting Marijuana Prices Create A Panic In California
That's $4.40 a gram, £3. Street price here starts about £5
wendroid··on Hilary Mason: How to Replace Yourself with a Very Small Shell Script
It all got a bit messy by that point, low cashflow, mortgages to be paid etc. The risk takers were using their house as collateral and decided to go safe. It was an amicable parting.
wendroid··on Hilary Mason: How to Replace Yourself with a Very Small Shell Script
When I worked for a "we'll all work from home" company we used to use IRC as our office. Saying hello to everyone every morning got a bit repetitive so I scripted some good mornings and when people arrived it got triggered to say hello for me.

Eventually though, our sales guy twigged that he was being fooled (as he saw it) and got annoyed about it. The tech side thought it was a cool script but to appease the guy I turned it off.

The irony is that he fucked the company by finding cheaper subcontractors to make more money for himself, a phenomena I've encountered quite a few times now.

wendroid··on Fast and slow if-statements: branch prediction in modern processors
:) That's what I came to say

http://kerneltrap.org/node/4705

I also have some other links :

These people saw 10% gain in their Scheme http://people.csail.mit.edu/jaffer/CNS/interpreter-branch

And this concerns reducing power consumption using Branch Prediction Prediction ! http://www.eecg.toronto.edu/~moshovos/research/iccd02.pdf

wendroid··on Obviously, HP Thinks We Are Stupid
Same here with an HP4000+ from eBay. Full duplex, network, two full ream bins, $150. I expected it to die pretty quick but two years later (and 1000s of pages) the spare toner is still on the shelf.
wendroid··on Obviously, HP Thinks We Are Stupid
The only problem I had was the usual - leave it for 6 weeks without printing and it gums up a bit.

I've also had some feed problems where it dumps ink into the printer.

The guys I share an office with got one and didn't read the instructions properly and we stood their (me laughing) as the ink unloaded into the thing.

But when it's all working you get 6+ months of reliable printing.

And for the price of an inkjet, a spare one is cheap, though I'm lucky - my local retailer is 5 mins away by foot and when my dried up I just went and got another one - the dried up one is under my desk waiting for me to clean it!

wendroid··on Obviously, HP Thinks We Are Stupid
1) buy inkjet printer

2) install continuous ink system

3) ???

4) reduce the baseline

wendroid··on Extracting hidden data from an audio file with the FFT
That's because the kiddies had to learn chaos text from us in order to read .nfo files and the like.
wendroid··on [dead]
low, as in brow.

take this shit somewhere else

wendroid··on HP explains why printer ink is so expensive
My CIS costs 1/10 of cartridges.
wendroid··on And, Why Didn't Dijkstra Like Lisp?
That's the point, the abstraction is false
wendroid··on An Inside Look At Facebook Questions: The Next “Killer App” Of Facebook
> it “seems to be more intimate/fun/terse than intellectual/useful/detailed.”

woo, FB invented user polls, one more thing to Hide

wendroid··on And, Why Didn't Dijkstra Like Lisp?
It's just that your eyes are closed, these are just about equivalent (same no of () anyway) :

    i.hate(parentheses).split().doyou()
 or
 
    (doyou (split (i.hate parentheses)))

"GOTO Considered Harmful" Considered Harmful

http://www.ecn.purdue.edu/ParaMount/papers/acm_may87.pdf

You use GOTO every time you turn on the computer, though JMP is the mnemonic instead.

wendroid··on And, Why Didn't Dijkstra Like Lisp?
I should also say that I have experience working with Manchester cpus (AVR microcontrollers) where the code is fixed when you flash it and you cannot jmp into RAM. Of course one then writes an interpreter instead :)
wendroid··on And, Why Didn't Dijkstra Like Lisp?
Well, you know what I mean re: the last bit, it's not just Lisp that can modify code at runtime.

As for C, it's not just the fault of pointers. You just can't shellcode something that doesn't execute data.

Like I say, we'd just have a different class of problems, so it's not a panacea.

wendroid··on And, Why Didn't Dijkstra Like Lisp?
I think it's a bit disingenuous to say that such dislike is nailed to Lisp. Mixing data and code in the memory of a running program is what has lead us to every exploit involving a buffer overflow or a stack smash.

I expoect a different class of problems in their place but self modifying code is rightfully highlighted as unprovably correct.

Lisp is not the only language that can build a string and throw it at an eval function.

wendroid··on Chrome-To-Android Extension: Awesome, Deadly
I downloaded the free Delicious App
Page 1 of 12Next →