elitheeli
elitheeli on Hacker News
If you take version 4, stop the first while loop once the size is at most 32, and then do linear search from there, it's faster (on my machine). For example, version 4 is 102ms and this tweak puts it at 83ms. (On clang x64.)
Posted by
elitheeli on Monday April 02, 2012 @02:30PM
from the self-post dept.
Hi HN,I'm collecting data on that line in email messages that indicates the replied-to message is below. Example: "On Apr 2, 2012, at 2:15 PM, John Smith wrote:".I'm asking for 5 minutes of your time to collect as diverse a sample of those as you can from your inbox, anonymize them, and paste them here (or link to a gist or something).Extra points for non-American-English ones (like "2 апреля...
Hadn't seen that. Doesn't show up when searching for "timer" or "countdown". If I'd seen these, probably wouldn't have wasted an hour.
I didn't bother to test in anything besides Chrome on Mac. I was going to put in an audio alarm, but then I'd have to put in a button to disable audio, then I'd have to make it look pretty, and find a good alarm sound.
That feature is on my todo list, as well as email notification, persistent countdowns (you go to /23h and it'll redirect you to a permalink for that timer), email/SMS notification. Next time I have an hour to dedicate to this, I'll them done.
I always have a browser open, so being able to see the countdown status in the titlebar was sufficient for my needs. If I really wanted something to alert me, I'd use my phone in case I step away from my computer.
EDIT:
Yeah, looks like Firefox performs awfully with this.
EDIT2: seems to be fixed on FF now.
Posted by
elitheeli on Saturday April 09, 2011 @12:29PM
from the self-post dept.
It's taken me all four years of college to realize that my productivity and interest usually tail off after about an hour of distraction-free work. Lacking time to do a weekend project, I threw something together in under an hour.Your turn to make something marginally useful in http://quicktick.me/1h(Also: http://quicktick.me/3h1m4s, http://quicktick.me/5:14, http://quicktick.me/111:22:33,...
I should have phrased as "what is the minimum number of characters that need to be seen by a Ruby parser in order to have something Turing equivalent to Ruby without a limited character set?"
But what's in that string? That still counts. What I should have done was put an additional restriction on what IO is available. Otherwise, something like "eval `cat f`" or something could be all powerful.
My first attempt shows Ruby simulating a cyclic tag system with only 15 unique characters including newlines and spaces: https://github.com/elitheeli/oddities/raw/master/only_a_few_...
EDIT: down to 14 characters.
Sorry, you're totally right. My bad.
When I say "Turing complete", I mean Turing equivalent to a Turing machine. Since there are infinitely many Turing machines but I'm pretty sure humanity has access to a finite amount of state. I mean it strictly in the theoretical sense.
TeX is very Turing complete. As is Java sans semicolons, C macros, and many other things that probably shouldn't be. Right now, I'm trying to figure out what the minimum number of characters you need in Ruby is to make it Turing complete. I'm pretty sure that if you restrict yourself to under 12 characters, it's still possible.
I tried to do a little bit better of a job explaining it above. I was caught off guard... I intended to post this in a few days with a proper explanation.
Is my MacBook Pro any more Turing complete? All of the memory came with it. There's no way to expand the memory as it's running.
Way to steal my karma.... :)
As the original author of this, I was going to put it into a much more presentable state before showing it off here.
For those confused, here's a proper explanation. No real-world thing can actually be Turing complete (able to express basically any computation that we might want to perform of any size). That's because there are finitely many atoms in the universe, so we can only construct machines of finite size.
It's well known that Rule 110 (Google it) is Turing Compete.
What I've done is made an implementation of Rule 110 in HTML and CSS. Since CSS can't actually really manipulate state, some user interaction is required to "drive" it. In the one that bgruber linked to, it's clicking.
Here's a bigger version that doesn't require the user to know where to put his mouse. The tab-space combo is just as legitimate as requiring that you plug a computer into a wall to power it in order to run a Java program. http://elilies.com/rule110-full.html
Also, I haven't tested it on anything besides the latest Chrome on Mac.
ActiveRecord (Rails) provides counter caches for this instance. There are also gems that will analyze the queries your ORM performs to tell you which ones you should optimize.
I tend to stick with "premature optimization is the root of all evil".
Thanks, we'll try to get these fixed ASAP.
I'd also like to thank everyone in advance for feedback. In exchange, here's a clickable link:
http://statusdot.com
Posted by
elitheeli on Thursday October 28, 2010 @09:58PM
from the ask-hn dept.
If you're willing to share, how much time does your company spend per client per month on customer service or technical support? How much does that cost you, compared to how much that user is paying?