HNHacker News
TopNewBestAskShowJobs

karl_gluck

325 karma · joined June 22, 2012

[ my public key: https://keybase.io/karlgluck; my proof: https://keybase.io/karlgluck/sigs/gzNpgSBv9GjAUGBD7XIGlEynRqHc1MJKlCESBgSWDjw ]

karlgluck.com

submissionscomments
karl_gluck··on Spotify and Facebook: Is that phishing?
The problem of sharing passwords across domains is one of the things that prompted me to write the password-generating service Cryptasia [1].

In short, Cryptasia uses a Google Spreadsheet entirely owned & controlled by each user as a 3rd party data store. Each row contains the friendly name of the site, the login URL, the password generation key, a list of allowed characters, which characters are required, and the length of the password to create. By using the same generator key and character sets, one can have the same password for multiple websites. The password can also be changed for a website without having to change your master passphrase, since just changing the generator key (say, adding a "1" afterward) completely changes the created password.

I know it's not as easy to use as a browser extension, but when I visited Europe it was nice to be able to hop on any computer in one of the hotels and check my email.

I can throw this on Github if anyone's interested (the source-code is all in unobscured JS, too).

[1] crypt.asia or http://www.cryptasia.com

karl_gluck··on Use long flags when scripting
Sure; I'll elaborate. First, I am arguing against the unapologetic championing of arcane knowledge, not the tools. I agree that awk/sed/grep/etc are powerful, and knowing how and when to use them is highly useful.

I take issue with the attitude that the way these tools are used, with their billion cryptic parameters, is some flawless pinnacle of achievement.

Some people have put a lot of effort into memorizing Unix switches already--but the difficulty doesn't mean that work was meaningful. Unfortunately, to justify their sunk cost, a subset of those individuals tout their knowledge as something by which the rest of us should be impressed. In fact, this comment thread is littered with disdain for peers who dare to tread on their domain with "human-readable names" and "documentation".

In the root article, the author simply suggests that it is more maintainable to use full names for arguments because the code is then self-documenting. It's like using completeVariableNames instead of sht_y1s. Actual comments would suffice, but most code (unfortunately) isn't commented or the comments are done badly.

If a programmer is solo, whatever. Go nuts. Use shortcuts; don't comment. Hard-code paths in your scripts and write 600-line functions. A coder only has herself to blame for the problems she caused.

However, when programming with a group there will always be coworkers that can start being productive sooner (without interrupting you) if things are named and described in plain English and do exactly what it looks like they do.

Script switches are not a remotely interesting problem. Which style you use is a meaningless debate--until you factor in time. Time to debug. Time to look up documentation. Time to memorize. Time is a truly scarce resource, and there exists a better way than rote memorization: making code work in an obvious way. Actively choosing not to employ this idea steals time from others and those of us that lose minutes so a shortcutting programmer can save seconds of typing don't appreciate it.

That said, it's up to one's discretion about what "obvious" means. But nobody should try to argue that making things more readable is inherently bad.

karl_gluck··on Use long flags when scripting
I completely agree. I use various flavors of Unix every day at work, and I can only identify half of the flags mentioned at the root comment.

This reminds me of the whole "replace" debacle [1] a couple weeks back, where the power nerds jumped all someone who wrote a bit of code to simplify common tasks. It's hard to understand how some people think flexing their arcane knowledge in everyone's face makes them look good. They trash efforts to make software more accessible and maintainable so they can pretend to be king of a tiny hill.

[1] http://news.ycombinator.com/item?id=5106767

karl_gluck··on Tcl the misunderstood (2006)
> It's not The Best Language(tm), but it really ties the room together.

Haha, very well put. A lot of the time, I just want something that lets me tinker interactively with C/++ code (changing variables, calling methods, etc) to make sure it's doing what I want without having to recompile, dive into the debugger, or write a custom command interface. Plus, some things are just far less painful to write in Tcl--namely, anything to do with strings.

karl_gluck··on Tcl the misunderstood (2006)
Agreed. List functions stringifying everything in sight is really inefficient and error-prone, and definitely one of the things that I dislike about Tcl.

For most purposes I've used it, the convenience of the language outweighs its problems, but I've thought about rewriting some of Tcl to fix the minor annoyances like these.

karl_gluck··on Tcl the misunderstood (2006)
I actually wrote some code to find unbalanced braces in the codebase I was maintaining at work. One big downside of Tcl is that the parser gives you practically no help with syntax errors--never a line number, and only sometimes does it give you context.

Another common mistake is that curly brackets are VERY significant in [expr]. The author writes statements like "expr $i * $i" in several places, and it makes me cringe for two reasons:

1- This code prints "5" because expr does a double-substitution:

  set a 5
  set b {$a}
  puts [expr $b*1+0]

What's going on here is that $b is evaluated (to the string "$a") before calling expr, then expr itself evaluates its argument:

   $a*1+0
to 5. This is a problem because $b can be anything--for example, a call to [eval] arbitrary code.

2- Calling expr without putting braces around the argument is unfathomably slow. Tcl precompiles procedures as much as possible, and calls to functions requiring dynamic evaluation (like eval or expr without braces) can't be precompiled.

I once solved a huge performance problem by finding and fixing calls to expr made without braces. What was a process that took 40+ hours to finish was reduced to around 45 minutes by this change alone.

edit: formatting

karl_gluck··on Tcl the misunderstood (2006)
The author missed one of the other huge advantages of Tcl: it is extremely easy to add Tcl to a C++ project as a scripting language. It took me about half an hour, and I had never done it before. Once added, it makes interactive debugging of big projects almost pleasant.
karl_gluck··on Show HN: Online SMS, My Weekend Project
I'd also be interested in knowing more about GCM. Hit me up at karl.gluck@gmail.com if you get a chance to write something up! Thanks for a view into a cool project, too.
karl_gluck··on Get a review of your website. Launched today.
Ah, I checked when it was first posted but it seems to be better now. It was probably the site itself and not the screenshot functionality that was the problem.

As suggested in another reply, linking via iframe would still be a nice option to have when submitting.

karl_gluck··on Get a review of your website. Launched today.
Great idea!

Unfortunately, it looks like you're already getting spammed. I just reviewed Google.com and what I think would have been nsfw site had I let it load.

Also, it takes too long to generate the screenshot. I waited a few minutes before giving up on my third review. Why not just open the site in an iframe?

Getting to try it out without having to log into anything is fantastic.

karl_gluck··on Teaching Programming To A Highly Motivated Beginner
Wow, that's an impressive first project, congratulations on finishing it! I definitely agree that the developer community for a language makes a big difference in how easy it is to use.

We are really into StarCraft II, so she's thinking of building a build order identification game for her first bigger project. We'll probably go ahead and use JQuery Mobile + PhoneGap to make it a free Android app we can give to our friends. Not quite as complex, but it should be fun!

For those of you that don't play StarCraft: A build order is like an opening in chess: it sets up the rest of the game, and recognizing/responding to a build order is key to being a good player. The game she wants to build would help train people to recognize build orders by showing them a quiz with pictures.

karl_gluck··on Teaching Programming To A Highly Motivated Beginner
Thanks for the tip! Would you mind posting a screenshot of Pong? I know that I loved being able to use graphics when I started, which is why I stuck to QBASIC as long as I did. Do they give you a library to use for drawing primitives (circles/squares/cthulhu), or is it all image-based?
karl_gluck··on Teaching Programming To A Highly Motivated Beginner
I am in a similar situation to the author: I am an experienced programmer, and I am tutoring my wife, who left her job so she could devote all her time to learning to code. She's gone through all of the HTML, CSS, and JS CodeAcademy courses, and is now doing the Python course on Udacity.

While she hasn't needed a lot of help with those, she has also been working on extracurricular projects that I've helped put together for her. This is where I think the article was most revealing: I have been worried about helping too much, but now I can see why the opposite is true.

The author mentions that struggling with what you're learning is important. I agree. However, I think I have been letting my student struggle with the wrong things in the name of not "doing it all for her". I think it would be better to err on the side of providing every resource I can to define a straight path to a completed project. When she gets comfortable at a certain level, we can make the projects more complicated by involving more parts, rather than more frustrating by giving her less information.

karl_gluck··on Teaching Programming To A Highly Motivated Beginner
I'm curious; what was the first project you built on your own?

It's been so long since I started programming that I can't really remember mine. My wife is learning now and I sometimes worry that my gauge of what are good beginner projects is off.

karl_gluck··on WebScript.io: Just choose a URL and type in a script. No servers, no deployment
Very cool! I can definitely see this being useful.

Out of curiosity, what encouraged you to choose Lua instead of JavaScript or another server-side language?

karl_gluck··on HN Spoof
ctrl+f app.net ...I am disappoint...
karl_gluck··on One Thing Outlook.com Mail Needs To Fix Immediately
I completely agree. It's ridiculous...but that's Microsoft. And I'm not just bashing them here. It seems to be something about how they implement passwords. When I was doing research for Cryptasia, I found that Hotmail/Live was by far the most restrictive of any service out there--and I was examining at hundreds. Only banks (lol) come close.
karl_gluck··on Show HN: passwd.io - a no frills no setup password store
Hey, that's a lot like what I built--and from the comments so far, the gripes about having to trust that the files are not modified would also apply to Cryptasia (http://www.cryptasia.com).

Having to trust that the site won't be hacked is an interesting problem--I suppose both our projects could be made more Trustworthy if users had a separate service that ensures that files served by the website don't change... a Chrome extension might be an interesting way to do this validation. Sounds like another weekend task :)

Anyway, cool project!

karl_gluck··on Show HN: Cryptasia - A Better Secure Password Website
Hi everyone! I've read HN for a while and am often inspired by the projects I see here, but this is my first time to submit something and get feedback, so it's pretty exciting. :) My fiancee and I were inspired to create a secure password service after seeing the Vault (by James Coglan; https://getvau.lt/) posted here a couple weeks back. We stayed up all night putting together Cryptasia and, now, finally think it's ready.

First: What is Cryptasia? It's a service that takes a website's name, your secret phrase, applies some hashing, and generates a unique password for that website. By using Cryptasia, you can log in to any website requiring a username/password using just one single secret phrase. Your password on every website will be unique and cryptographically unrelated to your secret phrase, so if one website is compromised--which seems to be happening a lot recently--you won't have to change your password on any other website.

Now we know what you might be thinking... great, what's the big deal about yet another password generator? Why is it any better for keeping track of all your passwords than, say, KeePass, 1password, lastpass, or even Vault?

1 You'll never have to invent a password for any website. Cryptasia knows which characters can and can't be used, which characters are required, and how long the password needs to be. Using this, it automatically generates a password that meets the requirements. We have a lot of services programmed in already, but with an account, adding new websites or changing a website's settings just takes modifying a line in a Google spreadsheet.

2 The website's name isn't actually used to create your password. Instead, Cryptasia uses an associated key string. By sharing key strings among the password settings for different websites such as youtube.com and gmail.com, you can log in to different sites that share an authentication service (in this case, Google's) but have different names. The other benefit is that Cryptasia lets you change passwords for a website without changing your secret phrase.

3 Copying your password and logging in to another website is really streamlined. We autocomplete the website name (including shortcuts, like "aws" for Amazon Web Services), and the "copy+go" button both copies the password to your clipboard and jumps you to the login page for whatever website you selected. Try out Hacker News!

4 We don't store any personal information. We don't even have a database! You don't need to trust us in order to use Cryptasia--the source code is unminified and in plain sight.

5 Cryptasia shows an image based on your secret phrase, so you know you typed it correctly

6 It works great on mobile! It was a huge pain, but we got copy+paste working for Safari, the Android default browser, Firefox mobile and Chrome mobile.

7 An account with us doesn't require you to remember yet another password. That would be ironic. Your account is based on data in a Google Spreadsheet, so the privacy settings of that spreadsheet will apply to your version of Cryptasia. For example, my personal Cryptasia account is "crypt.asia/karlgluck". I've left mine public so anyone can see it and, theoretically, use it to generate passwords--however, I can modify the spreadsheet at any time, so that probably wouldn't be a good idea. Still, if I didn't want people to know at which websites I had accounts, I could make the spreadsheet private and it would be nonfunctional unless I was logged in to my Google account.

Speaking of, a Cryptasia account is free for the first month, but we have to set them up manually so it might take a little while for us to get yours going.

Let us know what you think!

Get started here: http://crypt.asia

karl_gluck··on Lookup any software license shortly summarized in plain English
This is a great idea! I would agree with brixon that there is no need for a search box, yet, but I've been looking for something exactly like this. I'm sure you'll get the kinks worked out. Thanks!
karl_gluck··on Announcing Vault: safer passwords for the web
You inspired me :)

http://crypt.asia

← PreviousPage 4 of 4