News for hackers. Stuff that matters.

JoeAcchino

Re:I Miss the Old Internet (2019) on Sunday June 13, 2021 @10:21AM (#27492841)
Linking that video you're playing their game, adding pointless rambling is a way to increase video length for more ads.
Re:A Godot reimplementation of SuperTux on Saturday March 14, 2020 @01:15PM (#22576839)
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.
Re:GNU Typist (2017) on Saturday February 01, 2020 @04:07AM (#22209562)
Bottleneck is the brain, English is not my first language and I usually score 10 wpm less than my native language.
Re:Where I started might not be useful to you on Thursday April 05, 2018 @08:51AM (#16764367)
Same for me. I like her writing stile and the content.
Re:Colly: Fast and Elegant Scraping Framework for Golang on Thursday October 05, 2017 @10:15AM (#15409332)
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.
Re:Ask HN: What books are you reading? on Saturday September 05, 2015 @02:43PM (#10175649)
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.

Re:New Pacman for Atari 2600 on Friday January 23, 2015 @04:30AM (#8934044)
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...

Re:Building Web Apps with Go on Monday October 13, 2014 @05:12AM (#8448012)
Is this guide specific for Go on Heroku or its concepts can be easily applied elsewhere?
Re:Show HN: Nightmare – Simple browser automation on Tuesday October 07, 2014 @10:51AM (#8421475)
Nightwatch runs against Selenium, Nightmare uses Phantom.js

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

Re:Unix Tricks on Thursday July 03, 2014 @04:15AM (#7982045)
> 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.
Re:Reasons to use Haskell as a Mathematician (2006) on Sunday June 15, 2014 @09:36AM (#7895201)
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.
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.

Re:Donut math: how donut.c works (2011) on Thursday January 23, 2014 @10:13AM (#7108603)
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
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.

"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.

Re:Page not found on Tuesday November 12, 2013 @05:45AM (#6716991)
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

Re:Are You A Typing Hacker? Prove It on Saturday November 02, 2013 @12:29PM (#6659694)
I use this game to practice touch typing more or less regularly and what I really miss is a way to monitor my progress.
Re:PeerCDN - A P2P CDN on Friday September 06, 2013 @08:19AM (#6340000)
HTTP Proxies do this.
Re:Show HN: noteZilla - Interactive sheet music on Saturday August 17, 2013 @06:15AM (#6228682)
Transcribe! is awesome, thanks for mentioning it.
Re:ZTE Open Firefox OS phone is available on eBay on Friday August 16, 2013 @11:52AM (#6224748)
So you don't need to build a new Firefox OS release on your PC and flash it, the phone will just update itself?
Re:Show HN: Easy-to-configure Web Server in Go on Saturday July 27, 2013 @11:41AM (#6113290)
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?

Re:General Alexander wearing EFF shirt on Saturday June 15, 2013 @05:33PM (#5886348)
Great, now I'm totally reassured.
Re:HTML5 Features you need to know on Saturday May 25, 2013 @05:25PM (#5768913)
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).
Re:Dennis Ritchie's first C compiler on Github on Wednesday May 22, 2013 @01:58PM (#5752590)
Just use tabs for indentation and spaces for alignment.

    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`.

Older »