Hacker Newsnew | past | comments | ask | show | jobs | submit | moridin007's commentslogin

I just ordered my pebble last week from amazon.com and am expecting it today. I'm worried about say connection issues and support in the event of a faulty product being shipped from the factory. Would Fitbit be legally obligated to honor pebble's warranties in the event of a takeover?


steemit.com?


but is it really random or pseudorandom? i feel that services like these can be useful to introduce a higher level of entropy to your own local random number library


> i feel that services like these can be useful to introduce a higher level of entropy to your own local random number library

They just use /dev/urandom + sha512, and them capitalise some characters. You can pipe /dev/urandom input into any number of tools locally to get random strings - base64 is nice as it gives you a wider range of characters.


guys, I think you over-estimate what this tool does. It's not a saas or something to be integrated with projects.

The only reason I've made it is to avoid creating random strings every time I need them. In the past few months I've done the following at least 5 times:

1) run ipython 2) run the following code:

  import os
  import hashlib
  print(hashlib.sha512(os.urandom(128)).hexdigest())
The problem that it takes unnecessary time to do it. `curl -L r.ger.lv` is way simpler and faster for the same result. In fact, it's exactly the same code that's running on this site :) It's a small tool so you have fewer excuses to leave `SECURE_STRING = "TODO_CHANGEME"` in settings files.

I did this tool mainly for myself, thought I'd share it, maybe someone finds it useful.


> guys, I think you over-estimate what this tool does

I don't at all. That's my whole point. You've taken yet another pretty simple command line utility, and made a "web service" for it.

> In the past few months I've done the following at least 5 times

I've probably generated 2x that many random strings just to generate test examples for how else this could be done, compare times, etc. I didn't suddenly think that I should put that on a http server somewhere.

> maybe someone finds it useful

or maybe someone uses it as a source of random data for their production application because they don't know any better.

You can get random strings in a shell by running `base64 /dev/urandom | head -c 30`. If you wanted to make it (or your own solution) easier, why not just create a shell script (or a python script with a shebang line).

Even easier execution (i.e., tab-completion to the path), no reliance on network or a server, no security issues by loading data over a remote connection.


so smooth. much wow


Been using Brew for as long as i can remember. Most of the message usually require a `brew doctor` or `brew update` command which completely fixes the issue. And i cant even remember the last time i had to do that..

When they brought in brew cask i was completely blown away and i use brew exclusively for installing almost everything on my mac.

I tried macports at first, but bailed out of that after i shot myself in the foot inside the hour. Switched to brew and have never looked back since.


i must be the only person on earth that can't get brew to work right.

every so often i'll try to install something with brew, and it just won't work. the last thing i'm trying to do on planet earth is spend 30 minutes debugging a packager on my workstation (as opposed to on servers, where i do this literally all day long), so i just don't bother.


the invisible hand of entropy guides us all



hmm does the order change when you have multiple base classes with different arguments?

ive always believed that you should be able to target a specific base class with the super statement..


I most often run into using super() with __init__(). This makes the problem with calling super from a specific superclass very obvious. Every class along the hierarchy needs to ensure that it's __init__() gets called (or you end up with a Franken-object that hasn't been properly initialized).

I can't remember a time when I've had a class that multiply inherits and I want to change which superclass overrides on a per-method basis (i.e. given class A(B, C), some method A.foo() should call B.foo() and some method A.bar() should call C.bar(), although both B and C can both bar() and foo()). However, I grant that that _could_ happen. I don't have a solution right now that's better than explicitly referring to the unbound method of the subclass to whose implementation you want to refer.


same thing happened to me last night in civ5..


whoa! just checked my linode and found this there too! :D


Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: