Live data from Hacker News

Poor man's IFTTT in 3 lines of code

blog.lagentz.com

31–36 of 36 posts

Re: Poor man's IFTTT in 3 lines of code

#31
post #28

Earlier quoted context omitted.

I've never seen why that would be useful. Switches and Ethernet cards aren't that unreliable in my experience, and I've plugged cables into a different switch in less than a few seconds :) I think if you really needed that, the nicest way would be to add it as a feature to net.backend.waitlink(). See source [1] of this command, and source of sleep() [2] to see how to use a timer. It may also be possible to hack it up…

I've had a situation where an Ethernet connection would occasionally drop link for a very small fraction of a second, which unnecessarily shut down the interface and reset all TCP connections. Maybe a few second delay is too long, but 500ms seems reasonable. Also, maybe I wouldn't want to keep the old address blindly, but trigger a DCHP request if the link is dropped and restored before the timeout. Also, thanks for…

[deleted]

Re: Poor man's IFTTT in 3 lines of code

#32
post #30

Earlier quoted context omitted.

I've had a situation where an Ethernet connection would occasionally drop link for a very small fraction of a second, which unnecessarily shut down the interface and reset all TCP connections. Maybe a few second delay is too long, but 500ms seems reasonable. Also, maybe I wouldn't want to keep the old address blindly, but trigger a DCHP request if the link is dropped and restored before the timeout. Also, thanks for…

So you really need this, would that mean you may be able to use my language for something? If so, just say, and I can add this little feature, but I wouldn't like spending time for nothing :)

I haven't seen this problem recently, so don't worry about it. I appreciate the offer, though. Maybe some day I'll look into adding the feature for my embedded Linux systems, if I ever add Ethernet disconnection detection.

Re: Poor man's IFTTT in 3 lines of code

#33

Earlier quoted context omitted.

Didn't see any of it with noscript on. What's the "try me" pointing to? I tried clicking it and it did nothing, scrolling down it just points to blank right margin all the way ...? I have no problem with "you may also like" and have found the links useful on occassion; anything animated without user interaction however is generally a turn off for me.

What's the "try me" pointing to? Some kind of feedback tool about the site.

I used the feedback tool to inform the author that the "Try me!" was annoying enough to cause me to want to leave a nasty note.

So I guess it worked?

Re: Poor man's IFTTT in 3 lines of code

#34
post #12

Earlier quoted context omitted.

make figures out which files need updating make allows to write pattern rules (.c.o:, or %.o: %.c) you don't need to move files out of the 'inbox' to ignore them regenerating a file is a touch(1) away make is descriptive, not imperative (invaluable readability when you're coming back on it years later) should you ever need a second transformative step or a new dependency, it's trivial to insert, and make will figure…

"make is crazy fast" Make calls the shell in order to run programs, correct? (IOW, does make call execve directly, as the shell does?)

Indeed, execve in exec_command (job.c). That does not make it slow, since it's the very last part of the game, and one you could not really do without.

Re: Poor man's IFTTT in 3 lines of code

#36

Is usersnap.com really facilitating better feedback or is it just annoying people that visit your website?

Used as a feedback tool you are way faster to understand what your visitors mean. Used as a bug reporting tool it's unbeatable: you get exactly what your testers / users see in their browser. Please note that the Try-Me arrow is not part of usersnap - that's maybe the annoying part you are referring to?
Post reply on HN