News for hackers. Stuff that matters.

dc-tech-fan

Re:Amazon Allowance on Saturday June 13, 2015 @01:50PM (#9711872)
I want this for something like Fiverr.

Instead of my kids accumulating more junk, they learn the skills of hiring and delegating.

Don't want to mow the lawn in this heat? Use your allowance to somebody else to do it. As long as the job is done they will earn their allowance.

I just need a way to make sure they're not outsourcing their homework or paying somebody buy them alcohol.

My mom wrote books using WordStar on the original IBM PC. She didn't like the default keys so she learned assembly to change them.

She didn't change ^K^B, I still remember that one.

I had to learn WordPerfect in High School and hated the clunky command codes and the keyboard overlays required to make sense of it all.

Re:Ask HN: #Gaza – What can hackers do? on Sunday July 20, 2014 @05:42PM (#8061610)
I wish Facebook, Twitter, etc had some kind of "accuracy checker" built in.

For example, if somebody posts a photo and describes as something that shocking that recently happened, the social network could add a tag "original photo taken year in location, context."

This would also be helpful in election years.

Ask HN: Why hasn't the email client been reinvented lately?

For a tool we are all required to use but hate using, I'm surprised there haven't been huge improvements in email clients since Google introduced Gmail 10 years ago.There have only been small features added over time, like inline attachment viewing, and minor UI tweaks, like matching OS UI trends, but for the most part it's the same Outlook, Apple Mail, Gmail, etc as we had 10 years ago: a...

( Read More... | 4 comments | 8 points | on HN )
Ot: how did they do that header in github-flavored markdown?

Github's preview mode doesn't render it correctly and I can't find anything about it in Github's docs.

Here's the source:

  ---
  title: Michael Abrash's Graphics Programming Black Book,   Special Edition
  author: Michael Abrash
  date: '1997-07-01'
  identifier:
  - scheme: ISBN
    text: 1576101746
  publisher: The Coriolis Group
  category: 'Web and Software Development: Game Development,Web   and Software Development:
    Graphics and Multimedia Development'
  chapter: '01'
  pages: 004-019
  ---
https://github.com/jagregory/abrash-black-book/blob/master/s...
Re:Winning at Candy Crush on Friday November 15, 2013 @06:18PM (#6742773)
Hi, I'm one of the creators of Doodle or Die.

The drawing tool in the game and the anti-cheating systems are both things I created.

I'm impressed with your app. Instead of converting a bitmap to a pixel-by-pixel rendention (which people have done and it looks obvious) it re-draws it like a real drawing, picking one color at a time.

Paying users get a replay feature. It replays fairly realistically and that's difficult to detect as cheating.

Nice work!

Re:How I made $10k in one day with Facebook Ads on Tuesday July 31, 2012 @02:04PM (#4318737)
$10,000 at $3/album means over 3000 albums were sold that day, out of 6000 available (according to his ad). So more than half of this random collection was worth buying, and if lets say each person buys three albums, over 1000 people came to his house?
Re:Show HN: DoodleCam on Sunday May 27, 2012 @08:47PM (#4031505)
Works on the new Evo 4G LTE.

I wish it had drawing ability, but your art skills are way better than anything I could do.

Was this inspired by Windoodles? http://windoodles.tumblr.com/

I see you are using Node and Express on the frontend - what other Node modules are you using or found useful?
Doodle or Die is all HTML5.

Doodles are stored as JSONP: http://doodles.s3.amazonaws.com/d2/5iSFn-ME/8qp73zuBe.js

This json renders in canvas as the page loads like these amazing drawings: http://doodleordie.com/profile/underwearhero

We want to make a native mobile app because we've heard that HTML5 is slow enough to frustrating. I tried a Lua-based framework and it was fun to use but the resulting drawing too was too slow to be usable because every line had to be created as a new object, instead of Canvas-like pixel manipulation.

Re:The love and hate of Node.js on Wednesday May 16, 2012 @01:18PM (#3982994)
> The only technical problem where I've seen node be a unique solution is dealing with third party apis concurrently.

Use a library like Async, it makes this really easy.

https://github.com/caolan/async

(assume redis, mongo, facebook, and callback are all functions)

async.parallel([ redis, mongo, facebook], callback);

callback is called when all of the others are complete. If you have dependencies, like facebook needs the output of redis and mongo then use async.auto which will automatically run things in parallel and in the order you need them.

Awesome, thanks.
Retain users: More than 70% of our daily visitors are return users, but we do need to figure out some way to notify users when their chains are complete, etc. We'll probably ask for email for this. Do you have other ideas?

Yes you get to keep your hearts in Ghost mode. It's for people like me who are embarresed about how bad they draw. Fun fact: I made this game because I wanted to make a game and my art skills are so bad I hoped instead I could get players to create the art for the game.

That is so cool, thanks for sharing the screenshot! I love seeing how different developers show the final chain.

There have been many times when I've wanted to give up on Doodle or Die. For example when somebody created a site called Screw Your Doodle to upload offensive images and users were asking for a reporting system that we didn't have yet and I had already been working every night on the site for much of the night...

NPM Modules:

mongodb

async - no more insane levels of nested indents when doing async javascript

express - middleware

ejs - templating system

logging - very simple logging module i wrote more than a year ago when there weren't good logging modules for Node yet.

knox - for storing doodles and static assets on S3

uglify-js - compress that client-side javascript

stylus - much nicer way to write css. variables, functions, mixins, etc.

everyauth - authentication - supports more than we could ever want but we're just exposing Facebook and Twitter for now.

useragent - we only support modern browsers, sorry IE users!

shortid - module I created to give us very short unique ids that are not guessable for chain sharing, like http://doodleordie.com/c/Eih5TDOHk or http://doodleordie.com/c/1hODyac94#1to4

moment - nice time references, like "7 days ago"

canvas - we render doodles on the server and then save those pngs instead of accepting pngs from the browser because people figured out they could send us any image they wanted.

ansi - doodles above a certain number of brush strokes we convert to ansi and echo in our console log. This is my favorite feature of the whole site, especially because I got my start in online communities in the 2400 Baud BBS world when ANSI art ruled.

Server Config: 1 GB of RAM vm at Joyent.

This much ram has been perfect. We've actually had 1000 people playing at once on our first machine which only had 256 MB of RAM.

Database: Mongo

We're using a 5 GB instance at MongoHQ with backups to S3.

Mongo is insane fast compared to what I'm used to with MySQL, and I love the JSON-based query syntax over SQL.

Not being able to do relational-type queries has made some things more difficult, like building "Top 10 List" of arbitrary data is a bit more tedious.

I agree about a colophon!

We have a lot of this information on our About Page but maybe that's not the best place for it.

http://doodleordie.com/about

I'll reply to each technology separately to make it easier to reply to questions about a specific tech.

We have a reporting system to get rid of those few bad apples from 4Chan (amazingly most 4Chan players love the site and play legitimately).
Do other drawings load slowly for you? Most images you see are drawn via canvas using the same code that runs when you draw with your mouse.

For example:

http://doodleordie.com/profile/underwearhero

Let me know if those drawings load very slowly or not at all.

Anybody else using Chrome on Linux having this issue?

It is very simular - but we actually had never heard of or played Broken Picture when we created the game.

I wish we knew about it before launching because there have been many times when deciding how the game should work that it would have been much easier to know how Broken Picture did things, such as how long chains should be and how to handle jerky players.

Doodle or Die by about 6 months

2011-Aug-28: Doodle or Die

2012-Feb-06: Draw Something

2012-Mar-26: Drawception

(edit: formatting)

We want you to have a user name, and the Node module we're using for authentication (EveryAuth) makes it easy to require a user name and password but not easy to require a user name without a password.

EveryAuth: https://github.com/bnoguchi/everyauth

What browser and version are you using? I developed the drawing tool using Chrome, tested in Firefox, and people tell us it works on the iPhone and iPad.

Also the game is 100% Javascript - if you are disabling Javascript it won't work.

Wow, excited to see a shout out on HN for something I created!

I'll try to answer any questions you have, especially technical questions about running a game with thousands of users on Node.

(Edit: spelling)

Re:PhoneGap 1.6 Released on Thursday April 12, 2012 @08:53AM (#3832098)
I'm giving Phonegap a try to make the mobile version of http://doodleordie.com. Thoughts/recommendations/inspirational success stories with Phonegap?

Of course Native is better but the Doodle or Die fans want a mobile app now and Phonegap seems like a quick win because I know JS well and I don't know Java or Objective C.

Re:Looks Like Zynga Just Bought OMGPOP For $200 Million on Thursday March 22, 2012 @12:17PM (#3740452)
I started to build one using Corona SDK but the drawing part wasn't smooth enough so we're going to start over using native code.
Re:Looks Like Zynga Just Bought OMGPOP For $200 Million on Wednesday March 21, 2012 @10:44PM (#3738099)
thanks, glad you are enjoying Doodle or Die!
Re:Looks Like Zynga Just Bought OMGPOP For $200 Million on Wednesday March 21, 2012 @10:44PM (#3738098)
thank you!
Re:Looks Like Zynga Just Bought OMGPOP For $200 Million on Wednesday March 21, 2012 @08:31PM (#3737650)
Thank you!

We are actually working on improving Doodle or Die for mobile safari right now.

Older »