HNHacker News
TopNewBestAskShowJobs

puzz

91 karma · joined February 19, 2008

http://github.com/tkrajina
submissionscomments
puzz··on I found a useful Git one liner buried in leaked CIA developer docs
Or git-old-branches/git-recent from git-plus

https://github.com/tkrajina/git-plus

Disclaimer, I'm the author ^^

puzz··on Half a million lines of Go
Look at any piece of Java code and try to guess the cyclomatic complexity of it. It's not simple. Because every line, and every function call can fail. And that failure is one more place where the execution tree of your code branches. You can't see it unless you check every method call in your code.

In Go -- every error is obvious, and you get a sense of a cyclomatic complexity of any piece of code by just going through it quickly.

So, that's it for me. The complexity of the code is visible.

puzz··on Show HN: I made a site where you practice typing by retyping entire novels
That's a cool idea. I once made a similar site but for a completely different purpose -- language learning. Unfortunately I never finished it but it's still in my TODO list.

The workflow was:

- you read the sentence

- the sentence disappears

- then you type from memory

- every time you mistype something -- the next couple of words appears for a few seconds and you keep typing

That way you not only learn to type that foreign language. But you also memorise the sentence in your short-time memory and you get a feel for sentences are created (order of words, phrases, etc.).

PS. Didn't finish the site, but I did made a simplified version as an Android app: https://github.com/tkrajina/10000sentences

puzz··on Show HN: Gita – a CLI tool to manage multiple Git repos
I wrote a similar tool (along with some other git helpers) a while ago: https://github.com/tkrajina/git-plus. Note that there is another (more popular) git-plus repository used in Atom. My own has nothing to do with it (but it's older).
puzz··on Train Your Brain Like a Memory Champion
Right, spaced repetition isn't good at memorising things quickly. Where it shines is that it lets you decide the things you want to keep in your long term memory.
puzz··on Australian software engineer got asked algorithm question when entering US
I have never been in the US, but I always thought it's the personnel in embassies who are educated/qualified to check and (in)validate my visa documentation. Once on a border, they will only check that I'm not carrying anything illegal, and that's it.

But the idea that my education/knowledge/experience will be checked again, that's weird to me.

puzz··on UK votes to leave EU
Tax reasons or not, people are actually moving there. A lot of my former colleagues moved to Ireland (from Croatia).

Now Ireland has both: human capital and tax reasons.

puzz··on Google App Engine Silently Stopped Sending Email 5 Weeks Ago
Hm, I tried now with:

l.Infof("version=%s", runtime.Version())

...and it gives me:

version=go1.6 (appengine-1.9.36)

puzz··on Views of the Sea Floor Near the Entrance to San Francisco Bay
Water 1m below the sea surface is drawn like 4m deep. Land 1m above the seal level is drawn like it is 2m high.
puzz··on Show HN: Lisn2.me – Practice language listening skills
This is a small side-project I'm working in my free time, for the last 2 months. The idea is that users will (hopefully:) share/exchange short voice recordings in their native language (and use existing recordings to practice language comprehension with other languages). Recordings are uploaded with text, translation and they are "synchronised" with the audio.

Here's an example: https://lisn2.me/exercise/1458307740540341002 . You can listen to the recording in various speeds (normal/slow), with/without text/translation.

Then, you can also practice listening and writing: https://lisn2.me/exercise/1458307740540341002/quizes/dictate (listen to a couple of words and then you need to write them down, if it's correct it's shown in green, otherwise it's red, Type ? for help).

puzz··on Visual Studio Code for Go
A lot of people complains about Go because they expect a better Java/C++/C#. If you expect a "better Java", then you are going to be disappointed.

For me Go is more like C with garbage collection and some features of a scripting language -- and that's exactly how it feels programming in Go for me. At the moment it's my language of choice for all side-projects; from web applications, microservices, shell "scripts", ...

puzz··on An app for practicing language listening skills
Hi all,

This site is born out of my frustration when trying to learn a new language. It is a "language learning application", but you won't learn a language by using it. I made it to practice one specific (and I think important) thing - the skill of listening a new language.

The idea is simple, the site contains short user-uploaded voice recordings with transcription and translation.

Here's an example in Spanish: http://lisn2.me/exercise/1455534102678176880 . Users who learn Spanish can then listen to it (with/without transcription and translation).

After that you can exercise listening to chunks of the recording and then guess the text and translation: http://lisn2.me/exercise/1455534102678176880/quizes/guesschu...

The second exercise is to listen and type (in the original language): http://lisn2.me/exercise/1455534102678176880/quizes/dictate The app will show (in green or red) when you got the transcription right.

This is still a proof-of-concept, the site html is very simple (but to be sincere, I like simple html websites:) and there are some bugs.

Now, I'm looking for feedback/suggestions/questions before deciding how (if) to proceed with this project.

puzz··on AWS Java documentation is fucked
My latest Java project is cca 70,000 lines of code. 1 XML file (because the first developer didn't know about spring annotations). No need for eclipse plugins, in IntelliJ I install only two: vim-plugin and lombook.

I'm not saying the Java world isn't too complicated (it is) but if you know all the possible problems -- you can keep it sane.

Nowadays, I'm moving slowly to golang. But I don't think I will stop programming in Java. I still think it is a nice language, but if you inherit a project from a "enterprise Java developer" who thinks in EJBs, then just run away :).

puzz··on Listen to Wikipedia
Very nice, I think I'll use this as my background music when programming. Reminds me of a similar (real life!) thing: The Sea Organon in Zadar, Croatia: https://www.youtube.com/watch?v=mtDYTeB5J-8 Skip to 5:00 to listen.
puzz··on Greatest: C unit testing library in one file
Yet another very simple single-file in 65 lines of code here: https://github.com/tkrajina/yactest
puzz··on Vim 7.4a ready for beta testing
I use http://www.viplugin.com/index.htm . It costs 19$ and it is worth it. When it lacks some vim feature -- there is an easy way to invoke the real vim, do some editing there, and then swith to eclipse back.

I tried eclim but it lacked too many eclipse features. It is maybe that I didn't try it enough, but I was (and still am) happy with viplugin to really try something else.

puzz··on Vim 7.4a ready for beta testing
> Does anyone even use Vim without plugins anymore?

I use vim for almost 20 years for everything except when I'm developing in java (but even then I use eclipse with a vi plugin).

And no plugins at all.

puzz··on Ask HN: Non Americans: Do you care about SOPA?
"For non US entrepreneurs this law is potentially great news"

That would be true if other countries wouldn't use USA as a role model. The way it is now, I think this is a big problem for the world...

puzz··on Show HN: FeedSnatch - A Reader for the Lazy. Tear it apart please.
What's the big difference between this one and other RSS readers. Why should I use your instead of google reader? I think you should answer to this question on the first page.
puzz··on The relationship between Readability and Instapaper
+1 for open sourcing it (from another ViewText user who also happened to need good open source text extractor).

BTW, what programming language you used for ViewText?

puzz··on The worst program I ever worked on
I'll never forget when I saw a code in a production java app with lots of JSP, SQL, jdbc, html and javascript in the same file. One of the lines was something like:

<a href=# onclick="document.getElementById('field').innerHTML+=parseInt(this.parentNode.parentNode.parentNode.parentNode.parentNode.parenNode.childNodes[7].childNodes[13].split('|')[3])">...</a>

puzz··on Ask YC: Review my app (Panoye)
Thank you all for your comments/suggestions/criticism. I added all suggestions in my TO-DO list, and will look to implement them as soon as possible.
puzz··on Ask YC: Review my app (Panoye)
I tried it once when starting with gmaps API. But, I probably did something wrong then.

Thank you (both) for pointing out that I was wrong. I'll look at the javascript API again and see what can be done.

puzz··on Ask YC: Review my app (Panoye)
"People like much more to put useless photos of their cats on flickr."

Right :) In fact this is why it is an "app", not a "startup". I have no idea on how to bring it the masses and/or how to make some money from it.

It is still a hobby project and it will probably remain so.

puzz··on Ask YC: Review my app (Panoye)
You're right, I should make it more visible... There is a google custom search field on the homepage (at the bottom of the right column). Or on the menus: Panoye -> Search.
puzz··on Ask YC: Review my app (Panoye)
If you still want to try with panoramic photography, here is a very short tutorial on how to stitch them:

http://panoye.blogspot.com/2008/02/tutorial-panoramic-photos...

puzz··on Ask YC: Review my app (Panoye)
The "hand vs scroll" issue is a problem. I asked a few of my friends but the results were 50:50. That's why I'm still not sure which one to make the default.

Anyway, thank for your suggestions!

puzz··on Ask YC: Review my app (Panoye)
Thanks for your observations. I'll make a panorama author link more visible.

Permalinks are a problem, I agree. I would, for example, like to have links like panoye.com/country/city/panorama-name.html but the problem is with google maps. When you signup for your gmap key - you have ONE key for ONE directory on the web server (for example country/city/). It means that I should have (and use) houndreds of gmap API keys :(

Thank you again for your comment!

puzz··on Startup feeds on Alltop, including News.YC
I'm probably missing something, but I don't see what's the big deal with alltop.com? OK, it is Guy Kawasaki, but the site -- yet another basic RSS aggregator.