News for hackers. Stuff that matters.

vespakoen

Re:Linux Running on Apple M1 on Wednesday January 20, 2021 @08:11AM (#25845982)
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

Re:Hum to Search Song on Friday October 16, 2020 @04:50AM (#24798912)
Thanks for letting me know, looks like I didn't extend the domain and somebody else bought it ;)
Re:Hum to Search Song on Thursday October 15, 2020 @09:33PM (#24796470)
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...

Re:The Clock (2003) on Friday March 15, 2019 @07:09PM (#19405182)
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

Re:Curve Matcher on Friday March 15, 2019 @07:03PM (#19405149)
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

Re:CNC milling with open source software on Friday January 18, 2019 @08:22PM (#18944648)
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

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

Re:Portacle – A Portable Common Lisp Development Environment on Wednesday January 04, 2017 @03:18PM (#13321692)
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" "$@"
Re:A Simple Request: VLC.js on Monday November 07, 2016 @07:26PM (#12896570)
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

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.
Cool, I'll wait it out as it isn't really an issue for me, thanks for helping out though, it's really appreciated!
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)
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

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.

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.

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 ;))
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)

Re:I've Just Liberated My Modules on Tuesday March 22, 2016 @10:16PM (#11341646)
The array + join is slower

http://jsperf.com/leftpadtesting

Repeat + slice is too

http://jsperf.com/leftpad

Re:I've Just Liberated My Modules on Tuesday March 22, 2016 @10:00PM (#11341570)
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; };

Re:I've Just Liberated My Modules on Tuesday March 22, 2016 @09:53PM (#11341543)
Cool, I like the Math.max. Two liner then str = String(str);\n...
Re:I've Just Liberated My Modules on Tuesday March 22, 2016 @08:39PM (#11341182)
Ahh you are right, all makes sense now, thanks!
Re:I've Just Liberated My Modules on Tuesday March 22, 2016 @08:06PM (#11340989)
(bit offtopic) but what about:

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

Re:OwnTracks: Self-hosted, open source location tracking on Monday March 21, 2016 @09:30AM (#11327899)
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.
Re:OwnTracks: Self-hosted, open source location tracking on Sunday March 20, 2016 @10:10PM (#11325766)
Also check my "dwaler" arduino based project https://www.koenschmeets.nl/projects/dwaler/
Re:Introducing Mapbox Studio on Thursday November 19, 2015 @10:17PM (#10599367)
Created a new account and that seemed to have solved my problem
Re:Introducing Mapbox Studio on Thursday November 19, 2015 @03:16PM (#10597273)
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?
Re:My Livecoding.tv account deletion saga on Sunday November 01, 2015 @06:39PM (#10489017)
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)

Older »