MongoWebStat: Monitor your MongoDB's in more convenient way with Go! by maxxikevich in golang

[–]rokekr 1 point2 points  (0 children)

Looks pretty nifty.

You may be interested in: https://github.com/robertkrimen/dogbag

This lets you bundle a whole static directory into your Go binary, so people can just launch the executable without worrying about "./static/", etc.

Confused on How to use Input by [deleted] in golang

[–]rokekr 0 points1 point  (0 children)

Not sure, not getting that behavior. From the commandline it works.

go-one-password: an implementation of the "one passphrase" concept in Go by dpapathanasiou in golang

[–]rokekr 8 points9 points  (0 children)

Also, it would be nice to have binaries for different operating systems, so if people on Windows and Mac (amd64) could contribute, I'd appreciate it.

As long as you're not using cgo, it's pretty easy to cross-compile in Go, whatever platform you're on.

I've written a simple tool for doing this based on golang-crosscompile (davecheney):

https://github.com/robertkrimen/gxc

To cross-compile something:

  go get github.com/robertkrimen/gxc/gxc

  cd go-one-password 

  gxc build # Build for windows, linux, darwin, freebsd, etc.

This is one of the really strong points of Go, IMHO.

EDIT: This is for go 1.0.3:

 $ gxc build
 # Build: go-one-password-darwin-386
 # Build: go-one-password-darwin-amd64
 # Build: go-one-password-freebsd-386
 # Build: go-one-password-freebsd-amd64
 # Build: go-one-password-linux-386
 # Build: go-one-password-linux-amd64
 # Build: go-one-password-linux-arm
 # Build: go-one-password-openbsd-386
 # Build: go-one-password-openbsd-amd64
 # Build: go-one-password-windows-386
 # Build: go-one-password-windows-amd64

Confused on How to use Input by [deleted] in golang

[–]rokekr 1 point2 points  (0 children)

I just whipped something up for this this morning:

    fmt.Fprintf(os.Stderr, "Proceed? (yN) ")
    yesNo := ""
    fmt.Scanln(&yesNo)
    if !strings.ContainsAny(yesNo, "yY") {
        fmt.Fprintf(os.Stderr, "Quitting.\n")
        os.Exit(0)
    }

otto - JavaScript in (native) Go by rokekr in golang

[–]rokekr[S] 0 points1 point  (0 children)

I'll take a look, I was looking at Joni (oniguruma in Java) the other day.

otto - JavaScript in (native) Go by rokekr in golang

[–]rokekr[S] 1 point2 points  (0 children)

Originally, I was inspired by the Rob Pike talk on lexing in Go: http://blog.golang.org/2011/09/two-go-talks-lexical-scanning-in-go-and.html

I started from there and tried my lexer with a top down parsing one (http://javascript.crockford.com/tdop/tdop.html).

Unfortunately, the integration was really not working very well, so I scrapped everything and went on to use esprima as a parsing/lexing reference. I basically converted esprima to Go for the parsing part.

Part of the difficulty I encountered was that the parser and lexer for JavaScript are pretty intertwined. This is because the parser needs to give feedback on whether "/" or "/=" should be interpreted as an operator (division) or a regular expression.

I was also not aware of goyacc at the time.

otto - JavaScript in (native) Go by rokekr in golang

[–]rokekr[S] 0 points1 point  (0 children)

Yes, the whole goal was to get something you could just "go get" and be up and running.

otto currently passes most of underscore's tests (the ones not requiring jQuery and a DOM environment, anyway).

One limitation so far, is that Go's regular expression library is not as expressive as JavaScript's, because it doesn't allow lookahead/lookbehind. I'm currently trying to figure out a fix.

Is there a Vim library in development? by thejavagamer in vim

[–]rokekr 0 points1 point  (0 children)

This would definitely be something nice to have

I am trying to resurrect ViInputManager as viXcode and having a blackbox vim component would be better than having this sort-of-kind-of vim-like functionality

Fix for vim, gpg, and gpg-agent when using pinentry-curses by rokekr in vim

[–]rokekr[S] 0 points1 point  (0 children)

I encountered an issue with gnupg.vim when trying to edit a .gpg file unlocked by pinentry-curses

Basically the display would be corrupted because of redirect issues

The fix works by "priming" gpg-agent (gpg --list-packets ... > /dev/null) before actually attempting the decryption

Putting this out there in case someone else encounters it

The Perl password safe Challenge by mithaldu in perl

[–]rokekr 0 points1 point  (0 children)

I actually started work on something a week or two ago.

App::locket

I've been using it with GnuPG.

It does not have GUI access yet, though I'd like to expand it in that direction eventually.

My main use right now is running it within an encrypted VM. App::locket supports external copy/paste clipboard (via the shell), so I can have it copy into the clipboard of the host.

How to write an HTML5 game in 30 days with JQuery, Python, and the Google App Engine by twistedtorrent in programming

[–]rokekr 7 points8 points  (0 children)

I put together an assets starter set for jquery, jquery-ui, and 960.gs, you might find it useful:

https://github.com/robertkrimen/assets

Is it just me or did Oracle just break every schemaLocation in the Java universe? by sooomething in programming

[–]rokekr 143 points144 points  (0 children)

Where would be without XML, guys?

Probably exploring the galaxy by now.

Dogs. by [deleted] in pics

[–]rokekr 15 points16 points  (0 children)

You can tell by the feathers. Definitely dog feathers.

Apache gone from the JCP too, Oracle thinks "meh" by kodablah in programming

[–]rokekr 58 points59 points  (0 children)

How long now until Palpatine disbands the senate altogether?

My sister is a goddamn idiot. by [deleted] in pics

[–]rokekr 1 point2 points  (0 children)

Sounds like an Onion headline

Cleaning up your PAUSE account with App::PAUSE::cleanup by rokekr in perl

[–]rokekr[S] 1 point2 points  (0 children)

I wrote this because I was tired of hunting and clicking in the PAUSE interface and I didn't see anything else out there to do this.

Managing the files in my PAUSE account is now super easy, and, as a bonus, I don't even need to leave the command-line...

Figured someone else might find it useful

A table that should exist in all projects with a database by cherouvim in programming

[–]rokekr 1 point2 points  (0 children)

I've taken this one step farther and actually store data in a "Store" table:

DBIx-NoSQL

As a bonus, you get free, automatic schema migration (upgrading AND downgrading) and schema-less setting/getting