Better HN
topnewbestaskshowjobs
Log inSign up

JoeAcchino

270 karma · joined Jun 22, 2012 (14y ago) · 42 submissions

Submissions

comment 5y ago · link · parent

Linking that video you're playing their game, adding pointless rambling is a way to increase video length for more ads.

comment 6y ago · link · parent

Clicking on StartGame does not work beacause the button is not wired to anything:

  func _on_StartGame_pressed():
      pass # Replace with function body.
Probably not ready for the public, but fun to hack around and trying to understand how it works from the inside out.

comment 6y ago · link · parent

Bottleneck is the brain, English is not my first language and I usually score 10 wpm less than my native language.

comment 8y ago · link · parent

Same for me. I like her writing stile and the content.

comment 9y ago · link · parent

Would this work?

  c := colly.NewCollector()

  // this functions create a goroutine and returns a channel
  ch := c.HTML("a")  
  e := <- ch
  link := e.Attr("href")
  // ...
I'm a bit rusty (ah!) with go, so bear with me if the above contains errors.

comment 11y ago · link · parent

I'm reading How to Fail at Almost Everything and Still Win Big: Kind of the Story of My Life by Scott Adams and I'm about to start The Power of Habit by Charles Duhigg.

I'm also reading again Comme un roman by Danil Pennac, a beautiful essay about the joys of reading.

7.

Learning the Cello as an Adult (1997)(ethanwiner.com ↗)

92 points · by JoeAcchino · 11y ago · 29 comments

8.

Go Challenge 3: write a photo-mosaic generating web application(golang-challenge.com ↗)

69 points · by JoeAcchino · 11y ago · 18 comments

comment 11y ago · link · parent

I didn't know that there are homebrew games for Atari 2600.

They also assembled a tutorial for beginners: http://atariage.com/forums/topic/33233-sorted-table-of-conte...

10.

From Magic to Science (sort of)(blog.dilbert.com ↗)

2 points · by JoeAcchino · 11y ago · discuss

comment 12y ago · link · parent

Is this guide specific for Go on Heroku or its concepts can be easily applied elsewhere?

comment 12y ago · link · parent

Nightwatch runs against Selenium, Nightmare uses Phantom.js

With Selenium you have full cross browser support, while Phantom is Webkit based.

comment 12y ago · link · parent

> You know what else I hate? Typing in long commands in the Mac OS X terminal and then them wrapping weirdly.

I solved this by adding the following line in my ~/.bashrc

  shopt -s checkwinsize
Never tried on Mac OS X though, so I don't know if it works.

comment 12y ago · link · parent

Nice to know, if an oscar-winning pure mathematician working on science-fiction projects found difficult to learn Haskell, I can save myself the trouble.

comment 12y ago · link · parent

In addition, I would track with a web analytics tool the number of queries and the time they took for each page, so I could easily have them as metrics in the Pages Report.

Next, sort pages by query time and optimize them first.

comment 12y ago · link · parent

How do I compile this? GCC complains:

    CFLAGS="-g -pipe" make -k donut
    cc -g -pipe    donut.c   -o donut
    donut.c:1:2: warning: data definition has no type or storage class [enabled by default]
    donut.c: In function ‘main’:
    donut.c:4:16: warning: incompatible implicit declaration of built-in function ‘printf’ [enabled by default]
    donut.c:5:12: warning: incompatible implicit declaration of built-in function ‘memset’ [enabled by default]
    donut.c:9:63: error: ‘s’ undeclared (first use in this function)
    donut.c:9:63: note: each undeclared identifier is reported only once for each function it appears in
    donut.c:10:18: error: expected ‘,’ or ‘;’ before ‘in’
    donut.c:11:32: error: ‘t’ undeclared (first use in this function)
    make: *** [donut] Errore 1
    
    Compilation exited abnormally with code 2 at Thu Jan 23 16:11:12

comment 12y ago · link · parent

I don't know how useful is this to track unique visitors, the next month I will probably have a different fingerprint.

All it takes is a new release of Firefox (different version in the User-Agent string) a new font or any plugin update.

So with that fingerprint you can possibly identify me now, but you cannot track me over time.

comment 12y ago · link · parent

"They didn't use any JavaScript to get this information."

The list of installed plugins is retrieved via JS: window.navigator.plugins.

Not sure about fonts, though.

19.

OrgMode(orgmode.org ↗)

2 points · by JoeAcchino · 12y ago · discuss

comment 13y ago · link · parent

The guy pictured in the photo is Richard Branson, aka the boss at Virgin. Just search his name on Google Images to get the humor.

http://it.wikipedia.org/wiki/Richard_Branson

comment 13y ago · link · parent

I use this game to practice touch typing more or less regularly and what I really miss is a way to monitor my progress.

comment 13y ago · link · parent

HTTP Proxies do this.

23.

Profiling and creating call graphs for Go(saml.rilspace.org ↗)

3 points · by JoeAcchino · 13y ago · discuss

comment 13y ago · link · parent

Transcribe! is awesome, thanks for mentioning it.

comment 13y ago · link · parent

So you don't need to build a new Firefox OS release on your PC and flash it, the phone will just update itself?

comment 13y ago · link · parent

I'm very interested in this because this is the kind of web server I was planning to write for my work, but from a quick glance I didn't find HTTPS support.

Is HTTPS supported or planned?

comment 13y ago · link · parent

Great, now I'm totally reassured.

comment 13y ago · link · parent

This regexp

    [^ @]*@[^ @]*
will validate strings like `@example.com` and `joe@` and even a single `@`. Probably

    [^ @]+@[^ @]+
is what he wants, plus server side validation (that is the classic "click link to validate address" email).

comment 13y ago · link · parent

Just use tabs for indentation and spaces for alignment.

comment 13y ago · link · parent

    find ~/my/docs/ -type f -name '*.txt' -exec sed -i.bak 's/inheritance/composition/g' {} +
This will search all files ending in `.txt` and will exec `sed 's/inheritance/composition/g'` on it. Sed modifies files in-place and saves a backup file with .bak extension (-i.bak) and is called the minimum necessary times (-exec +).

My best advice to someone using the command line is to learn `find` + `xargs` or, even better, `find` + `parallel`.

12