Better HN
topnewbestaskshowjobs
Log inSign up

nodesocket

6,537 karma · joined Mar 10, 2011 (15y ago) · 4,332 submissions

Building a trading journal that helps investors log, tag, and review their trades and market insights with clarity. https://marketdiary.io

HN'er since 2011 when PG responded and was active.

Other companies: NodeSocket, Commando.io, Elastic Byte.

Living in Nashville, Tennessee. Charlie Munger "there are three ways to go broke... liquor, ladies and leverage."

  - GitHub: https://github.com/nodesocket
  - justin [at] HN-USERNAME {dot} com
Submissions

comment 13y ago · link · parent

Nice. We use jquery-filedrop, which is really simple, but does the trick.

https://github.com/weixiyen/jquery-filedrop

comment 13y ago · link · parent

If you want random but don't care about globally unique, use a function that calls `/dev/urandom` is your best choice for cryptographically secure tokens.

comment 13y ago · link · parent

The same problem applies with php using the function `uniqid`. The function does not generate cryptographically secure tokens. Here are 10 generated in a row:

    5123ed3e43a9c
    5123ed3e43c3c
    5123ed3e43c44
    5123ed3e43c4b
    5123ed3e43c51
    5123ed3e43c56
    5123ed3e43c5c
    5123ed3e43c62
    5123ed3e43c6b
    5123ed3e43c74

comment 13y ago · link · parent

This is a bit expensive, to purchase the data I require (http://www.ip2location.com/databases/db5-ip-country-region-c...) costs $349.00, then I have to spinup a server.

4025.

Ask HN: What do you use to do GeoIP lookups

1 points · by nodesocket · 13y ago · 4 comments

comment 13y ago · link · parent

Yup, makes sense. Thanks.

comment 13y ago · link · parent

What is the difference between doing:

     git checkout -b bugFix
     git commit
     git checkout master
     git commit
     git merge bugFix master
And

     git branch bugFix
     git commit
     git checkout master
     git commit
     git merge bugFix master

comment 13y ago · link · parent

The queue was really a genius tactic. It's addicting to check back, open the app, and see the number of people in front of you drop by hundreds or even thousands, and the total number of people behind you increase as well. Their traction is insane, seems to be somebody requests an invite every other second on average. The real-time updating of the queue was a super smart move.

comment 13y ago · link · parent

10gen also has a nice python app which syncs by tailing the MongoDB oplog to an external source. Most common is Solr.

https://github.com/10gen-labs/mongo-connector/tree/master/mo...

Seems to be high quality, and supports replica sets.

comment 13y ago · link · parent

This doesn't protect again using an <img> tag to accomplish the same thing correct? Assume a malicious user wanted to delete something and the URI was formatted like: http://mydomain.com/delete/some-id-here. Then assuming the user is logged in, a simple <img src="http://www.mydomain.com/delete/some-id-here /> on a third party site would execute the request successfully correct?

comment 13y ago · link · parent

Thanks. Gearman works out lovely for background tasks like emails, tracking, anything you want to fire and forget. Makes sense though that you can't have the dependency of Gearman for your public library.

Are you guys in San Francisco?

comment 13y ago · link · parent

Sorry if I am misunderstanding, but why not use Gearman (http://gearman.org/). We wrote a nice blog post on how we use Gearman for tracking API requests to Mixpanel http://blog.nodesocket.com/how-we-tracking-api-requests-with...).

Or, use React (http://reactphp.org/) a PHP async library.

comment 13y ago · link · parent

Prevent nginx from serving files that start with a period or tilde will help.

    # prevent hidden files from being served and logged
    location ~ /\. {
      access_log off;
      log_not_found off;
      deny all;
    }

    # prevent tilde files from being served and logged
    location ~ ~$ {
      access_log off;
      log_not_found off;
      deny all;
    }

comment 13y ago · link · parent

How is this different than just using Mandrill with templates, and sending content/HTML into placeholders?

comment 13y ago · link · parent

Nice graphs, courtesy of TechCrunch for visual people.

http://techcrunch.com/2013/01/23/apples-record-first-quarter...

comment 13y ago · link · parent

Here is how to check if you ever committed your private SSH key by accident:

    https://github.com/search?q=%40user-name-here+path%3A.ssh%2Fid_rsa&type=Code&ref=searchresults

comment 13y ago · link · parent

Should be good now. Just working on a solution for GitHub buttons not supported over SSL.

comment 13y ago · link · parent

Good catch, fixing that now.

comment 13y ago · link · parent

At http://commando.io we implement HSTS in the nginx server block:

    # Enable Strict-Transport-Security for one year
    add_header Strict-Transport-Security max-age=31556926;

comment 13y ago · link · parent

The amount is charged server-side, no way.

4041.

DigitalOcean offers 512MB/20GB SSD virtual machines for $5/Mo(digitalocean.com ↗)

8 points · by nodesocket · 13y ago · 2 comments

comment 13y ago · link · parent

2003 Safari keynote by the master himself, Steve Jobs.

http://www.youtube.com/watch?v=T_ZNXQujgXw

It's so crazy to watch the demo, and see all the absolute crap websites back then. How far we have come.

What will the web look like in another 10 years?

comment 13y ago · link · parent

Would be awesome if it generated all the different HTML link tags as well. For example:

    <link rel="shortcut icon" href="favicon.ico">
    <link rel="apple-touch-icon-precomposed" sizes="114x114" href="apple-touch-114.png">
    <link rel="apple-touch-icon-precomposed" sizes="72x72" href="apple-touch-72.png">
    <link rel="apple-touch-icon-precomposed" href="apple-touch-57.png">

comment 13y ago · link · parent

> being controversial is actually a good thing for a publication.

Very true. I am sure Dustin has a vision which obviously we don't fully see yet. Still, it seems a bit absurd for a blog to raise. But hey, let's all wait and see what comes. After all, the investment was probably in Dustin and team, and not necessary in Svbtle.

comment 13y ago · link · parent

Yeah it is free, with a premium version. The free version does everything I need so far though. They also have mobile versions.

comment 13y ago · link · parent

I just switched from Asana to WorkFlowy which seems very similar to Cheddar. WorkFlowy is awesome, because it is so simple. In my mind, it is perfect for software development management and managing bugs, todo's, etc.

Here is a nice intro video: https://www.youtube.com/watch?feature=player_embedded&v=...

Shameless, I know, but if you signup for an account use my referral code, we both get 250 more items a month free.

https://workflowy.com/?ref=eaca8a6

comment 13y ago · link · parent

I am not trying to be an Apple fan-boy, but does anybody run anti-virus on their Mac's? AntiVirus these days seems like snake oil.

comment 13y ago · link · parent

Can I get http://placeit.breezi.com/productshots/12 and http://placeit.breezi.com/productshots/15 in transparent background.

Thank you very much.

comment 13y ago · link · parent

Would love MacBook Air, but with no (transparent) background.
1
134135136
145