HNHacker News
TopNewBestAskShowJobs

vespakoen

113 karma · joined March 29, 2012

submissionscomments
vespakoen··on Linux Running on Apple M1
marcan, who is working on AsahiLinux, is streaming at this time of writing and just got the framebuffer working, this is one of the most interesting live-code-streams I have seen.

https://www.youtube.com/watch?v=GxnWuXgj3JI

vespakoen··on Hum to Search Song
Thanks for letting me know, looks like I didn't extend the domain and somebody else bought it ;)
vespakoen··on Hum to Search Song
I had an idea some years ago to make this app but based around a community of helping others find their song by humming and finding your own songs, i have a 2 year old react-native project with a basic working version [1]

I don't have time to finish it but i would love it if somebody would make this

[1] https://github.com/vespakoen/ontheweb/tree/master/humminggur...

vespakoen··on The Clock (2003)
I really like the clocks made by Maarten Baas, it's basically a 24 hour long video of a guy "updating the time" every minute.

He has made a couple different ones:

http://maartenbaas.com/real-time

vespakoen··on Curve Matcher
Perhaps this could be used for "curve fitting" [0]? (used in CAM software to optimise CNC toolpaths)

[0] https://en.wikipedia.org/wiki/Curve_fitting

vespakoen··on CNC milling with open source software
I re-implemented (most of) TPLang (mentioned above) in pure JS , and called it openjscam [1] And am working on open source software for CAM (as a hobby), just 2.5D gcode generators, using maker.js and openjscam [2]. And made opencamlib compile on Mac and Windows (and added basic Node.JS bindings) [3]

I am hoping more people will work on open source g-code generators so we have better alternatives to Fusion 360 / Solidworks for free

[1] http://github.com/makercam/openjscam [2] http://github.com/makercam [3] https://github.com/aewallin/opencamlib

vespakoen··on Tutorial for Wykobi – A C++ Computational Geometry Library
I guess d3 (https://github.com/d3/d3/blob/master/API.md) can handle most of these things.

Others you can check out:

- http://turfjs.org

- https://two.js.org

- http://paperjs.org (especially "PaperScript" which does some magic to allow adding / multiplying etc. vectors if that's what you're after)

Also worth noting is that for most "computations" there is a likely a package available on npm

vespakoen··on Portacle – A Portable Common Lisp Development Environment
I tried to install this on OSX (10.12.1), it doesn't seem to handle tar.xz files well, when extracted using the (default) "Archive Utility", it produces a ".cpgz" file, which, when extracted, produces a ".tar.xz" file again.

I ended up extracting it using the "xz" utility

    brew install xz
    xz -d ./mac-portacle.tar.xz
Opening the Portacle.app file didn't work, starting it from the terminal gave me the following:

    dyld: Symbol not found: _iconv
      Referenced from: /usr/lib/libcups.2.dylib
      Expected in: /Users/koen/Downloads/portacle//usr/mac/lib//libiconv.2.dylib
     in /usr/lib/libcups.2.dylib
    /Users/koen/Downloads/portacle//emacs/mac/emacs.sh: line 51: 44458 Abort trap: 6               "$SCRIPT/bin/emacs" --name Portacle -T Portacle -q -l "$ROOT/config/emacs-init.el" "$@"
vespakoen··on A Simple Request: VLC.js
You probably have already seen this, but I just found this ffmpeg library compiled with emscripten and thought it was pretty cool

http://bgrins.github.io/videoconverter.js/demo

vespakoen··on Ubuntu 16.04 proves even an LTS release can live at Linux’s bleeding edge
I shouldn't try to be joking on the internet, especially not on HN, anyways, my "eco" comment was meant as a joke, hence the wink.
vespakoen··on Ubuntu 16.04 proves even an LTS release can live at Linux’s bleeding edge
Cool, I'll wait it out as it isn't really an issue for me, thanks for helping out though, it's really appreciated!
vespakoen··on Ubuntu 16.04 proves even an LTS release can live at Linux’s bleeding edge
That I might have invested 100+ hours tweaking & patching stuff to get linux to run properly on apple hardware. a lot of this time was spent with getting nvidia drivers to work on my macbook pro 6,1 as it has a weird EFI version. (I don't mind because I like tinkering with stuff and learning about underlying causes of problems)
vespakoen··on Ubuntu 16.04 proves even an LTS release can live at Linux’s bleeding edge
Typing the commands manually didn't work either, I also tried disabling LID0 (sudo sh -c 'echo LID0 > /proc/acpi/wakeup')

No luck with that too, I verified the command working with

    cat /proc/acpi/wakeup
It shows

    XHC1	  S3	*disabled   pci:0000:00:14.0
When I close the lid it suspends, when I open it again I just get a black screen (fans still on, no way to get to another tty)

I also tried suspending via the menu / power button: same results

vespakoen··on Ubuntu 16.04 proves even an LTS release can live at Linux’s bleeding edge
Webcam works now, thanks for that!

I added that script to echo XHC1 to wakeup here: /usr/lib/pm-utils/sleep.d/100macfix without any luck (made it executable)

I also removed light-locker (that was the cause wakeup problems on my old macbook pro (6,1), but no luck with that either.

I will play with it another time and report back here if I make progress.

vespakoen··on Ubuntu 16.04 proves even an LTS release can live at Linux’s bleeding edge
Cool! will give those a try, lspci -v now gives me: http://hastebin.com/yosicucoku.xml

It seems to have loaded bdc_pci by default, will try your suggestions and report back.

vespakoen··on Ubuntu 16.04 proves even an LTS release can live at Linux’s bleeding edge
I go to great lengths to be able to run Linux, cannot live without a properly functioning tiling window manager. I don't mind that the webcam support is coming in a (couple of) year(s). As the laptop (re)boots in a couple of seconds, I don't mind the shutdown when I go to bed (eco friendly even ;))
vespakoen··on Ubuntu 16.04 proves even an LTS release can live at Linux’s bleeding edge
My (6 year old) macbook pro got bricked and I was daring enough to get the new Macbook Pro retina (MacBookPro11,4).

Before installing Arch (assuming I needed the latest kernel for anything to work) I tried installing Xubuntu 16.04, and it amazes me how well it works! After installing refind everything just seemed to work out of the box.

The only things that aren't working is the webcam and suspend / hibernate, but I don't really care about those and suspend even seems fixable.

For anyone interested, I got the intel graphics drivers installer to run by changing DISTRIB_CODENAME to "wily" in /etc/lsb-release and changing it back to "xenial" after installation (make a backup: sudo cp /etc/lsb-release.backup /etc/lsb-release)

vespakoen··on I've Just Liberated My Modules
The array + join is slower

http://jsperf.com/leftpadtesting

Repeat + slice is too

http://jsperf.com/leftpad

vespakoen··on I've Just Liberated My Modules
So this I guess

module.exports = function leftpad (str, len, ch) { str = String(str); if (ch === 0) { ch = '0'; } return Array(Math.max(0, len - str.length)).join(ch || ' ') + str; };

vespakoen··on I've Just Liberated My Modules
Cool, I like the Math.max. Two liner then str = String(str);\n...
vespakoen··on I've Just Liberated My Modules
Ahh you are right, all makes sense now, thanks!
vespakoen··on I've Just Liberated My Modules
(bit offtopic) but what about:

module.exports = function leftpad (str, len, ch) { return Array(len).join(ch || ' ') + String(str); };

vespakoen··on OwnTracks: Self-hosted, open source location tracking
Yeah it's a GPS module, it reports an "angle" and I guess it calculates that by comparing the previous position to the current one. Not very accurate while standing still but works pretty well while on the move.
vespakoen··on OwnTracks: Self-hosted, open source location tracking
hope this works: https://goo.gl/photos/jiZYZZYkxhFVSj7u8
vespakoen··on OwnTracks: Self-hosted, open source location tracking
https://github.com/vespakoen/dwaler
vespakoen··on OwnTracks: Self-hosted, open source location tracking
Also check my "dwaler" arduino based project https://www.koenschmeets.nl/projects/dwaler/
vespakoen··on Introducing Mapbox Studio
Created a new account and that seemed to have solved my problem
vespakoen··on Introducing Mapbox Studio
I have been waiting for this, will probably be able to remove some scripts that I made around mapbox-gl, however, after logging in and clicking through the intro, I have to confirm my password and get a "Oops, something went wrong. Please wait 60 seconds before logging in again." anyone else seeing this?
vespakoen··on My Livecoding.tv account deletion saga
I don't need to since my request was a simple way to remove multiple videos at once, or have an option to not save my stream as videos.

I can delete the videos one by one though, it's just a lot of work, especially when the connection is flaky (it produces a ton of videos in that case)

vespakoen··on My Livecoding.tv account deletion saga
Here is my interaction with livecoding.tv's support about removing videos, they don't seem to like removing stuff from their website!

https://www.livecoding.tv/video/designing-a-touch-screen-int... @ 20:37

Page 1 of 2Next →