Better HN
topnewbestaskshowjobs
Log inSign up

nbashaw

1,819 karma · joined May 11, 2010 (16y ago) · 335 submissions

I'm also on twitter - @nbashaw.
Submissions

comment 13y ago · link · parent

Thanks so much, Scott! That is indeed an ace default, but I can try and figure out how to override it. Syntax completion is always tricky.

comment 13y ago · link · parent

It's definitely a possibility! Actually, more like a probability. Just didn't want to build too much into V1

comment 13y ago · link · parent

I could definitely make a drag-to-resize thing, but I opted against it in V1 for simplicity's sake. We do have a fullscreen mode though

comment 13y ago · link · parent

Whoa! Thanks for sending this in! Crazy bug.

comment 13y ago · link · parent

Haha thanks so much!! That is awesome

comment 13y ago · link · parent

I just realized that after HNing it :( Terrible oversight. However, the tooltip when you hover over the arrow button is OS-appropriate https://gist.github.com/4321208#file-scratchpad-js-L344

comment 13y ago · link · parent

I wanted to reduce this:

1. Create a file 2. Open it in your text editor 3. Edit code 4. Switch to browser 5. Open up the file 6. Switch back to editor 7. Edit code 8. Hit save 9. Switch back to browser 10. Hit refresh 11. GOTO 6

to this:

1. Go to http://scratchpad.io 2. Write code

comment 13y ago · link · parent

Thanks!! I really appreciate that. I also like the unique URL feature :)

comment 13y ago · link · parent

Haha this is very true. I like to think of it as an easter egg.

comment 13y ago · link · parent

Crazy! I thought I encountered this once in development but couldn't repro it again. Thought I was going crazy. Thank you so much!!

comment 13y ago · link · parent

Thanks! I'll have to read up on OT. Our backend is totally hosted by Firebase, other than a simple Sinatra app that generates the unique IDs.

When you say synchronizing cursors, do you mean having multiple cursors (google docs style) or having a single cursor be in the same position for all clients? We are doing the latter, and I wasn't aware it was possible to do the former with ace but I would love to do it if I can

comment 13y ago · link · parent

I believe that's it but I'm not sure. I've emailed the firebase founder and he might be able to chime in here

comment 13y ago · link · parent

Basically on keyup I ship the whole contents of the editor and the cursor position to firebase. I'm also keeping track of all the active connections to a scratchpad document so I know who is typing. Anytime the code changes on the server, it triggers a callback function on each client that will update the contents of the textarea. If someone else is typing, the document is locked so only 1 person can type at a time. This way I can avoid all the potential merge conflicting type things that can happen.

I'm not sure what an OT engine is. What is that?

comment 13y ago · link · parent

Thanks! All it took was the lovely tomorrow_night_eighties.css theme :)

comment 13y ago · link · parent

Thanks! It was actually really simple to make with two tools: http://ace.ajax.org and http://www.firebase.com

If you want to chat about building it I'd love to give you any tips - i'm nbashaw@gmail.com

comment 13y ago · link · parent

Ah good call! It's control + i in mac

comment 13y ago · link · parent

Thanks!! Glad you enjoy it

comment 13y ago · link · parent

Just FYI, the images look terribly stretched on my iPhone

comment 13y ago · link · parent

At the bottom of the spam post it says if you delete the post it will delete your Tumblr account. Since this spreads by people viewing it, it's probably important to point out that deleting the posts will not delete your tumblr account, and you should do it immediately so people viewing your blog don't get infected themselves.

comment 14y ago · link · parent

From the article:

"The four-year test at Norway’s government owned Halden reactor could help thorium inch closer to replacing uranium as a possible safer and more effective nuclear power source. Many people believe that thorium is superior because it leaves less long- lived dangerous waste, makes it far more difficult to fashion bombs, runs more efficiently, and can be made meltdown proof."

comment 14y ago · link · parent

Again, I am not an expert on Thorium but it's my understanding that the health and safety risks involved are much lower than traditional nuclear plants.

comment 14y ago · link · parent

I disagree with your argument that email lags behind web design due to pack of effort. Have you ever tried to code a HTML email like you would code a website and looked at the result in email clients? Do this once and you'll see what I mean.

Email clients are definitely to blame.

comment 14y ago · link · parent

Whoops! Thanks for catching that

comment 14y ago · link · parent

I was hoping for more analysis of the game mechanics, rather than the UI.

I love how letterpress is really a territory game disguised as a word game. Instead of rolling a dice like you do in Risk, you find words to form your attacks. Rather than trying to pick up words with obscure letters, or lengthy words, you try to capture strategic tiles and expand your controlled area. Once you cover a large area of dark blue tiles, you choke out your opponent's ability to score points, and the game slowly snowballs further in your favor. It's really fascinating.

comment 14y ago · link · parent

I was there, and he used much of the same slides and material from this talk: http://www.youtube.com/watch?v=G-LBSqm3xh4

comment 14y ago · link · parent

I was there and nothing was said that was very controversial

comment 14y ago · link · parent

Or a modified version of the follow model would be interesting.

comment 14y ago · link · parent

Not everyone knows (or wants to learn) HTML & CSS. I can see this service being valuable for those people

179.

App.net Alpha Review(nbashaw.com ↗)

3 points · by nbashaw · 14y ago · discuss

comment 14y ago · link · parent

Looks cool! As a designer, i must say you have kind of a lot going on and it's a bit unclear to me what to look at first. Maybe simplifying your front page a bit would help?
1
567
12