Better HN
topnewbestaskshowjobs
Log inSign up

ianbishop

968 karma · joined Feb 28, 2009 (17y ago) · 204 submissions

Clojure programmer.

You can contact me at bishop14 [at] gmail [dot] com.

----------

* http://stackoverflow.com/users/84328/ian-bishop

* https://github.com/ianbishop

* https://twitter.com/ianbishop

* http://www.linkedin.com/profile/view?id=78275015&

[ my public key: https://keybase.io/ianbishop; my proof: https://keybase.io/ianbishop/sigs/TOMtrb7Dgq30v2K7t_CP8fNig7LAx1bIVqVIMTAQpKA ]

Submissions

comment 12y ago · link · parent

Isn't that what a traditional co-op is?

comment 13y ago · link · parent

It's a query API, no different than any REST API.

comment 13y ago · link · parent

Modern CLJS does a pretty good job of guiding you through Clojurescript's tooling:

https://github.com/magomimmo/modern-cljs

comment 13y ago · link · parent

There is actually an LRU map implemented in Java, though it is sort of hidden in the LinkedHashMap using a special constructor.

http://docs.oracle.com/javase/1.4.2/docs/api/java/util/Linke...

comment 13y ago · link · parent

Yeah, I just noticed that now.

It seems to just grep through the diff itself, so adding a fake sign would be a pain and, as you mentioned, probably not display correctly anyway.

I'm sure my eyes will adjust :).

comment 13y ago · link · parent

Is there any way to make it so that the gutter is always present? There's a bit of a noticeable jump to include it when I save a file, it's sort of annoying me.

I tried

  let g:gitgutter_enabled = 1
but that does seem to work.

I'll have a poke through the source.

comment 13y ago · link · parent

The named functions were just an attempt at better highlighting what is going on for some readers. Not sure if it worked, but sorry it annoyed you :).

comment 13y ago · link · parent

Agh, this is an editing mistake. I re-worded this last minute and reading again next day, it was a mistake.

Really what I meaning to say is that it's much clearer as to what is happening. I was trying to point out that success and error were actually functions on the deferred returned from $.post, not just functions you can pass into $.post (as they once were - hence "circa 2009").

comment 13y ago · link · parent

Awesome, I didn't know that such a book existed. Thanks!

10.

Escape from Callback Hell(ianbishop.github.com ↗)

107 points · by ianbishop · 13y ago · 84 comments

comment 13y ago · link · parent

This sort of already exists through the service hooks they have, there are 122 services atm.

12.

UCSB researchers demonstrate that 15=3x5 about half of the time (eurekalert.org ↗)

3 points · by ianbishop · 14y ago · 1 comment

comment 14y ago · link · parent

There is one! http://www.hnsearch.com/api

comment 14y ago · link · parent

Valve's organizational structure has always been of great interest to me from an idealistic point of view. There have been a lot of articles written recently that cover nearly all aspects of this interest-based economy for developers, artists and so on. Other companies, such as Github, seem to have adapted similar models.

Regardless of the article though, one detail always seems to slip past me. Who answers the phones?

comment 14y ago · link · parent

Sorry, I misread that you concluded that people must be moving away from hotmail/yahoo from this analysis.

comment 14y ago · link · parent

Generally early adopters tend to be tech people though, which would explain the gmail addresses.

comment 14y ago · link · parent

This sort of cheater purgatory existed even in the later days of CS 1.6 as well. Secure servers were only available from legitimate STEAM accounts but players could create 'insecure' (no VAC) servers that were still publicly listed.

These servers quickly became havens for players connecting using modified software (free clients and so on) and those who had steam accounts which had been "vac'd".

Ironically, included in this list were a lot of servers who hosted third-party anti-cheat software, as it conflicted with VAC - creating unjustified bans.

comment 14y ago · link · parent

I think Microsoft took a really interesting strategy for enticing developers to come develop for the platform. Rather than hold a $1M prize competition (a la Android), they went in a similar direction to the offerings that RIM used for the playbook.

Instead of just giving away a device though, Microsoft really gamified the experience by offering several different prizes (including pre-paid credit cards) and tiers based on the number of apps developed. I think this really helped draw the college crowd in.

They also approached individual companies who have successful applications on other platforms and offered to pay them large good amounts of money to develop for the platform.

It seems like throwing all that money around really did work out for them in the end :).

comment 14y ago · link · parent

I've always found APL really intriguing. A professor of mine told me about how one of his students used to be able to solve ACM competition problems incredibly fast by simply not having to type very much. There are some insane videos on youtube of people solving problems in APL [1].

But, you know - it's write once, read.. never again.

[1] http://www.youtube.com/watch?v=a9xAKttWgP4

comment 14y ago · link · parent

Yeah, I didn't realize it was 1-indexed until you guys pointed it out.

Unsurprisingly, it still works (it just loops a few too many times).

comment 14y ago · link · parent

I made a prime sieve: http://i.imgur.com/Elk5A.png

It was pretty fun.

JS generated isn't so bad..

  var n;
  var A;
  var i;
  var x;
  var j;

  n = 100;
  A = [];
  for (i = 0; i <= n; i++) {
    A[i - 1] = true;
  }
  var i_end = Math.sqrt(n);
  for (i = 2; i <= i_end; i++) {
    if (A[i - 1] == true) {
      j = Math.pow(i, 2);
      while (j <= n) {
        A[j - 1] = false;
        j = (j || 0) + i;
      }
    }
  }
  for (x = 2; x <= n; x++) {
    window.alert([x,': ',A[x - 1]].join(''));
  }

comment 14y ago · link · parent

I'm happy to hear that CloudFare was able to help out in this situation.

I am especially happy because I came to know CloudFare not through HN, but through constantly seeing their failed cache page.

Edit: That sounds really brash, but I sincerely do mean that they have lots of clients that I frequent and if their reliability improves, it will prove to be very valuable.

23.

Want to talk to Mark Cuban? Call him up on Clarity(gigaom.com ↗)

1 points · by ianbishop · 14y ago · discuss

comment 14y ago · link · parent

I'm doing this now!

I've got a linode box running arch. I configured it with all my dev needs. I'm currently in university and I spend a good amount of time at school, bouncing between labs and then also working from home.

Right now the process is simply:

  ssh me@mydomain.com
  tmux attach
Up comes a familiar |- split console with vim running in a window, a terminal at the root of whatever project I'm working on and the server output of that project below it. If I have to leave suddenly, Ctrl+A+D and walk away. It'll be there when you log in next time.

It also has huge advantages if you're working remotely with teams or just want to launch stuff. I have nginx already configured and running. When I need to launch a new project:

1) Go to the Linode DNS Manager and setup a new subdomain

2) Go to /srv/http and git clone my project

3) Edit my nginx.conf, reboot nginx and done.

Some stuff worth checking out:

* https://github.com/thoughtbot/dotfiles

* http://www.thegeekstuff.com/2009/04/ctags-taglist-vi-vim-edi...

Edit: formatting

25.

CljDCPU - Clojure implementation of the DCPU(github.com ↗)

1 points · by ianbishop · 14y ago · discuss

comment 14y ago · link · parent

Not to be that guy, but a lot of people have been requesting features such as being able to search by city, intern/remote and all that.

My friend & I built http://supzu.cc earlier this month and it has most of these features. Maybe that can scratch some people's itch.

It's missing a lot of stuff that this wonderful version has such as support for freelancers among other things. We posted it when we made it but it never got much attention so there's obviously a reason for that :).

comment 14y ago · link · parent

I experienced something similar to this a few weeks ago. Except there were no real copycats. A friend of mine and I had difficulty parsing the Who's Hiring thread for just intern posts in SF. So we wrote a beautified, searchable version of HN Who's Hiring (http://supzu.cc).

We hacked on it for about 2 weeks between classes. During that time, someone wrote a beautified version of Who's Hiring with regex search. By the time we posted it, there were several comments on the thread to the effect of 'I was actually writing this'.

A similar situation took place in the last few weeks with Bootstrap theme-ing websites. For each posted, there were a slew of 'No way! I've been working on this too - see here'.

I don't necessarily think it's a matter of people copycating, per se. There is a certain amount of emulation that can be seen. Consider when Path created a unique menu that gained some attention on here. Within a week, numerous JS clones were released. A week later, CSS3 complete clones started rolling out.

Overall, I think the story here is that you've got 100,000 users browsing HN. Many of whom have similar skillsets and 'scratch your own itch' engrained in their personalities. The result is often an almost autonomous convergence on a few good ideas. I think this can be attributed to a sort of pidgeon hole principle of code hungry hackers and a few obvious but good ideas.

This practice itself isn't really new. If you look at mathematics alone, you'll find many things with multiple names or a concatenation of names. This is usually because n people happened to all be working on it at the same time without knowledge of each others advances. Sometimes ideas just seem to be 'in the air' at a given point in time.

comment 14y ago · link · parent

Ah man, I couldn't agree more. I've learned a ton just messing around with the first few, though getting this was a real bummer:

Run till exit from #0 run (str=0xffece7ec "cat /home/level04/.password") at level03.c:53 cat: /home/level04/.password: Permission denied

Ah well, a sign to go to sleep. Tomorrow I'll have to learn more things to figure it out if it's still up.

1234567