Better HN
topnewbestaskshowjobs
Log inSign up

mathgladiator

4,359 karma · joined Mar 1, 2010 (16y ago) · 1,704 submissions

hn [at] mathgladiator [dot] com

I'm an inventor type person. I'm also owner of https://www.adama-platform.com/

Submissions

1441.

Understanding a sea of JSON with Map Reduce(blog.mathgladiator.com ↗)

8 points · by mathgladiator · 15y ago · discuss

comment 15y ago · link · parent

I wrote a simple script to generate cron tab specs for "every X minute", and while I enjoyed using gcd and lcm in a real application; something wasn't right. 7 is a very canonical and crazy case because it takes 7 days to cycle. but even then, it doesn't work with months except for February for non leap years.

comment 15y ago · link · parent

That's why I am writing my own: http://crondom.com/

I wanted very basic things (namely application event monitoring for fraud), so I built my own analytics package around cron jobs.

comment 15y ago · link · parent

I got the idea from pingdom.com , and then I put crondom.com together and my mind was utterly juvenile and told me "WOW, this is the best thing EVAR".

comment 15y ago · link · parent

No, but that does sound like an interesting service. ObitWatch

comment 15y ago · link · parent

I plan to add that to the standard win user system ( https://github.com/mathgladiator/win/blob/master/pages/std.w... ).

comment 15y ago · link · parent

I'll make that generally accessible from the landing page, and It's available within the site.

http://crondom.com/documentation

(very hastily written)

comment 15y ago · link · parent

I'm learning a lot about production node.js and what happens when things go very wrong... Will blog about it.

comment 15y ago · link · parent

I'll probably launch a better brand-name that's more family safe, but when I thought up this name my gut instinct was a giant "YES, this is so awesome".

comment 15y ago · link · parent

It's basically an HTTP crontab replacement that does a bit more than crontab. Crontab is very regular where as crondom can be irregular. For instance, When there is a lot of events to handle, you want polling to be very fast (1 second resolution). However, where there are very few events, you want the polling to be very slow (every 2 minutes). crondom enables this use case by enabling the developer to determine how long to wait until the next hit.

You can also break up a cron job into # of clients. This enables you to process reasonable large # of clients by giving each client a URL to go with rather than doing the work at the moment. For instance, you want to pull 1000 user twitter feed every day. Well, if it takes 1 second, then you have 1000 seconds of work for the script, or 16 minutes. Most developers are forced to live within 30 seconds per request.

In this same scenario, what happens when it fails for user 377? what happens for 378? Handling errors is not always straight forward especially from a business case. Ideally, crondom will enable us to graph for failure cases (coming soon) and isolate which part of the cron task failed.

comment 15y ago · link · parent

This is my first real node.js product that I'm taking into production, and I'm looking for feedback. Thank You.

Please try to break it since it is really fresh. I should have the /etc/init.d stuff and a while true; do bash script set up, so it should come back if it crashes. I would like to have it not crash, but if it does, then things should come back online. It is using https://github.com/mathgladiator/win and https://github.com/mathgladiator/servy

1452.

Show HN: Crondom(crondom.com ↗)

62 points · by mathgladiator · 15y ago · 56 comments

comment 15y ago · link · parent

Sorry, my bad; copy and paste from URL bar

1454.

Best WYSIWYG editor ever(aloha-editor.com ↗)

10 points · by mathgladiator · 15y ago · discuss

1455.

Ask HN: User dependent salting? Is this good enough?

1 points · by mathgladiator · 15y ago · 1 comment

1456.

Database Development Mistakes as NoSQL propaganda(blog.mathgladiator.com ↗)

2 points · by mathgladiator · 15y ago · discuss

comment 15y ago · link · parent

https://github.com/mathgladiator/win/blob/master/lib/win.sec...

I give it both a static prefix and a configurable suffix.

I once had a system that used their login as part of the salt, but that introduced major support issues.

1458.

Why I gave up on static types(blog.mathgladiator.com ↗)

1 points · by mathgladiator · 15y ago · 1 comment

comment 15y ago · link · parent

I wrote a language that did structural sub typing, and I found it kind of encouraged stupid errors. For instance,

function ZeroOut(Point2D p) { p.x = 0; p.y = 0; }

Now, Point3D p3d = { x = 1, y = 2, z = 3 };

ZeroOut(p3d) is poorly defined. It does what I ask, but not what I want it to do.

My intent and implementation did not match up.

This is one of the reasons I just gave up on static types and object orientated programming; it requires too much damn boiler plate code.

1460.

Why Mustache is the WIN(blog.mathgladiator.com ↗)

1 points · by mathgladiator · 15y ago · discuss

comment 15y ago · link · parent

Does anyone have this pen? I'm trying to find details about the company, and I can't find the pen on the market.

1462.

Most awesome pen ever (but how can I buy it?)(apenusa.com ↗)

1 points · by mathgladiator · 15y ago · 2 comments

1463.

3 reasons why I don't key off of email anymore.(blog.mathgladiator.com ↗)

2 points · by mathgladiator · 15y ago · discuss

comment 15y ago · link · parent

That's a good point. Thanks, I'll do that.

1465.

Ask HN: Book title Suggestion "How to kill a zombie with your mind"

2 points · by mathgladiator · 15y ago · 2 comments

comment 15y ago · link · parent

To sell OCaml and convince people its awesomeness, i need unicorns and happy bunnies. I need lots of them.

comment 15y ago · link · parent

He is saying that sometimes you are sheep and sometimes a herder. It isn't an exclusive or.

In life, you want to be a craftsman but you sometimes just need to be a tool. Many times, you have to be both to get the job done. For CEOs are tools to their customers, and that's just how it works.

comment 15y ago · link · parent

Honestly, probably nothing. The ideal step would have been to turn a blind-eye, but when you have lawyers and marketers....
1
484950
57