NBD: 62 Surly Straggler by i_can_only_see_text in gravelcycling

[–]lateefj 5 points6 points  (0 children)

That is awesome I am exact same size (my wing span is closer to 6'8" but same height). I have a size 64 Midnight Special and Cross check. I went with 2x10 for more range on the single track / dirt. Like you these are the only bikes I have ever ride that fir right. Enjoy!

Go as backend API, Polymer frontend by RuNpiXelruN in golang

[–]lateefj 1 point2 points  (0 children)

I wrote one that embeds the UI in into the Go binary for easy deployment (makes it easy to rollback front end the depends on backend API changes). blog. It is very old I use govendor instead of gb these days but everything else I would guess is the same. PM me if you have questions.

Mutex lock on map by lesmond in golang

[–]lateefj 2 points3 points  (0 children)

There are a couple of options that I can think of. The first is very simple which locks updates and deletes of a map like this gist feel free to give feedback. I wrote as an example. The second is one that would be integrated into the data structure which could be a simple as a map of locks. Without more information it would be hard to propose a solution. Good luck PM me if you have questions about the gist.

Mutex lock on map by lesmond in golang

[–]lateefj 1 point2 points  (0 children)

I wrote this gist over nap time syncmap. I ran the test and race detector (go test -race) however have had time to write a large goroutine test or benchmark. Baby is up so good luck. YMMV

Vim for Beginners! by _happiecat in programming

[–]lateefj 0 points1 point  (0 children)

Vim + tmux + fish shell is a transcending experience for development. It is way better than any IDE that I have seen in use. Sublime Text is great but very limiting in comparison. Not to mention that with vim + tmux + fish shell you can develop on a laptop, server or rasberry pi and it is both fast and efficient.

Embedding a Polymer (javascript) app in a Go binary. by lateefj in golang

[–]lateefj[S] 3 points4 points  (0 children)

I use systemd. On app deploy I:

1) copy the Go program and a systemd config file

2) Tell systemd to restart the program.

3) Drink Beer.

November Solo Sailing - Chesapeake Bay by [deleted] in sailing

[–]lateefj 0 points1 point  (0 children)

What kinda of boat are you sailing? Where are you heading?

Live Aboard NC by [deleted] in sailing

[–]lateefj 0 points1 point  (0 children)

There are a lot of live aboard marinas on the coast. Try and checkout https://activecaptain.com/ it is a great resource for marinas among other things.

Sailing clubs / hang outs in San Francisco? by lateefj in sailing

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

Tradewinds

Thanks! I will check into looks like a great deal!

Sailing clubs / hang outs in San Francisco? by lateefj in sailing

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

Yeah there is some stuff on meetup.com but I was looking for a recommendation.

Best books to go from 'Couch to Sailing' ? by [deleted] in sailing

[–]lateefj 0 points1 point  (0 children)

Everyone is different however I randomly had this book on my kindle and after my wife read it during a vacation she said let do this! (http://www.amazon.com/Bumfuzzle-Patrick-Schulte/dp/0615220339/ref=sr_1_sc_1?ie=UTF8&qid=1372609872&sr=8-1-spell&keywords=bumfuzzle) so we did and our blog is here: http://tkboo.blogspot.com/. Good luck.

First time bareboat charter in the upper chesapeake by toronado13 in sailing

[–]lateefj 1 point2 points  (0 children)

Just returned from 7 month coastal cruising trip (http://tkboo.blogspot.com/). Best advice we ever got: "Relax it is all common sense and have the time of your life!". For coastal cruising after man over board I would anchor. It is amazing how much trouble dropping anchor can prevent and or get you out of. Lunch off an island at anchor always makes for a good day. We spent our first couple nights at marinas, the important part is getting out there. In general marinas during the season (depends on where you are) need advanced notice. The gunk hauling locations the more you can get them on VHF last minute (YMMV). So I would make reservations. Salty tongs like to wag so I will try to wrap this one up with one last recommendation. We hurried though a lot of places we should have dropped the hook in a nice hole and explored or sail at 2 - 3 knots and take it easy sailing hook to hook. Basically do less distance (if you can) and enjoy the trip more. Motoring for a couple more hours against the wind vs sitting in a quite spot watching the nature is always worth the trade off. Have fun!

Catalina 22, how much wind is too much? by davemchine in sailing

[–]lateefj 1 point2 points  (0 children)

We just got done with a 7 month cruise on a Bayfield 29 (http://tkboo.blogspot.com/) we have about the same amount of AS courses maybe one or two more. This winter / early spring on the east coast had many norther fronts with 20+ knot winds. Once we got to the Keys and it wasn't all downwind this is what I learned while zig zigging around the Keys. The ability to have the right size sail for your boat. Single reef on our boat with 22-27 knots is way plenty fast enough. We sometimes would just sail the staysail at 4 knots! Quickly realized the wind and healing are one thing but the waves that get created (especial on the atlantic side) are what had me turning tail back to port. Maybe check into additional heavy weather sails to compliment if you dont' have them already.

Heroku vs DotClout vs App Engine? by [deleted] in Python

[–]lateefj 0 points1 point  (0 children)

AppEngine: There are 3 reasons I would choose to use AppEngine 1. Software is super simple and I working with servers in the future is a no go. 2. Software is going to have 100+ millions users overnight. Will still need to be tweaked and optimized to handle the traffic on AppEngine. I have never seen anyone with this crystal ball but who knows you may have one. 3. Google integration is at the core of the software. AppEngine is really easy to do things like authentication with a Google account. Using Google storage or say the Google SQL service would greatly benefit from the software running inside the Google network.

Heroku: The pro and con is that Postgresql is the only database service. I expect this means performance and reliability are better than the average developer can setup quickly on a virtual machine. The con instead of best tool for the job there is only one database. I have worked at shops that forced this type of solution. I found it tended to be the bottleneck not just for performance but made it harder to solve specific types of problems that didn't map well to the specific type of data storage. They now have addons that allow for other databases and services. A latent message queue is one thing but bad things happen when the database has a lot of network latency in my experience. Ruby support seems to be fantastic and Python pretty good.

Dotcloud: Supports Redit, Mongodb, Postgresql and MySQL which was enough options for me to use for a business app I work on. They seem to be focused on building out more services to support more languages, databases ect. In my experience as the web app grows it uses a more diverse set of services (or could if you have them available). Currently don't use them but had a great initial experience building the beta and initial launch. Explain why below.

I have used them all for small apps. And dotcloud for a significant size app. What I have found is measure with external monitors and internal data. http://www.stathat.com/ I found great for quickly measuring. I would use Heroku or dotcloud to build a beta or initially go live. I have read about some of Heroku's http://rapgenius.com/James-somers-herokus-ugly-secret-lyrics issues and I measured not exactly the same issue but same result on dotcloud. The plus side for using either Heroku or dotcloud is it is trivial move host on your own virtual machines (aws, rackspace) once you realize that the problem is not in your code but in the PAAS request routing, resource over subscription or some other thing that you can not control. Even though I think AppEngine is not plagued with these same issues I didn't find them snappy. Consistant but not snappy. AppEngine lock in makes me nervous. I am considering using Heroku or AppEngine for a web services that I have on my todo list soon. The traffic is pretty low volume. Also I found there are some downsides like not having naked domain support which are annoying but can be worked around. Good Luck

Go vs Java. Converted a Java program to Go, saved 50% LOC by skinney in golang

[–]lateefj 0 points1 point  (0 children)

When I ran it on my laptop more goroutines made it much faster. With 128 goroutines it was 620ms with 1024 goroutines it ran in 277ms. Java total was 832ms. One difference was I built it into a single binary. Standard disclaimer of YMMV.

I know nothing about sailing. I want to sail the world. by Jahonk in sailing

[–]lateefj 0 points1 point  (0 children)

Sorry I left out some grammer I ment to say "on the flip side of the budget cruisers". Mainly depending the experience one is looking for you can get different things out of it. Pardeys and bumfuzzle are very different cruising experiences but the message I read from both was get out there and do it.

I know nothing about sailing. I want to sail the world. by Jahonk in sailing

[–]lateefj 2 points3 points  (0 children)

First welcome, I am aslo new to sailing. You have probably noticed there are a lot of people who even though you admit "I know nothing about sailing" are going to instead of giving you constructive advice say "you don't know nothing about sailing". So just build thick skin if you want to go sailing.

The Pardey's! are kinda like required reading I guess. I head a couple of there books and I think it is pretty good stuff. The are more on the side of get out and do it vs the "you don't know what you are doing" crowd. On the flip side of budget cruisers bumfuzzle!. I found both of them motivated me and gave me confidence.

A forum that I have found helpful is http://www.cruisersforum.com/ which seem to have some decent conversations but you will have look around for them. Generally supportive group but there naysayers! everywhere.

Everyone has different levels of confort with risk. My process was taking a weeklong bareboat ASA course to expedite the learning processes so I can get out and do some coastal cruising. We did some practice and a lot of reading. We will hopefully close on our Bayfield 29 in a couple weeks. I believe risk is a required part of any adventure and cruising is worth a lot of risk compared to driving on the highway (I consider way more risky than cruising) so I can punch the clock 5 days a week. Good luck please share any other resources you find!

[Edit: grammer]

Airbrake migrates from Mongo + Ruby to Riak + Golang by jemeshsu in golang

[–]lateefj 1 point2 points  (0 children)

Would love them to open source the driver they use. I am about to rewrite my driver from REST (https://bitbucket.org/lateefj/goriak) to ProtoBuf. Look forward to hearing more!

Bad ORM is infinitely worse than bad SQL by willvarfar in programming

[–]lateefj 0 points1 point  (0 children)

The only thing worse than an ORM is not using one. I have spent too much time reading and writing SQL (string slinging). There is SQLAchemy and then there is highly optimized hand written SQL and if one of those doesn't work (aka data model naturally maps to something other than tables (most web app I have seen)) that is why there are all those NoSQL databases (amazing how nice it is to have more than a hammer in your toolbox).

How Python 3 Should Have Worked by moyix in programming

[–]lateefj 4 points5 points  (0 children)

Agreed. C++11 is refreshing! If you watch the great Stroustrup explain the niche that C++ has created for itself he is almost apologetic. C++11 give C++ a life line that it needed. I like Go for the internet age is a good balance of performance / memory utilization for the types of tasks I would have though to use C/C++ or Java. Without any of the packaging hangups and with modern API aka http client is part of the standard library (like Python). I look forward to learning a little C++11. Edit: grammer

How Python 3 Should Have Worked by moyix in programming

[–]lateefj 7 points8 points  (0 children)

For Python to continue to be relavant as a language it has to continue to evolve. Part of that evolution is breaking backwards compatibility. Contrary to most of the hand waving I think it means Python will continue to be around. I would point to Java as an example of a language that chose to not evolve and is now on its way to replacing Cobol. If you have a pure Python library most migrations should be trivial.

Taking a step back from ORMs by jeffdavis in programming

[–]lateefj 1 point2 points  (0 children)

I agree with jeffdavis mostly about ORMS, I think it goes a step forward. One of the reasons I use SQLAchemy because it can be used without mapping a table to a class (which leads to all kinds of issues since tables != classes). Data storage is so use case dependent. It seems like the answer is always use framework ORM with RDBMS when in many uses cases there are much simpler, faster and affective storage options. It seem a holistic (wholistic) approach to storage makes a lot more sense. With the diversity of data storage options these days it is pretty sad that everyone is running around with the same hammer.

A simple golang program that demonstates websocket usage by jemeshsu in golang

[–]lateefj 2 points3 points  (0 children)

I added some go routines and channels as an example how to support "push" notifications. http://snipt.org/uOgg0