Better HN
topnewbestaskshowjobs
Log inSign up

hnur

55 karma · joined Apr 3, 2015 (11y ago) · 16 submissions

Homepage : http://nurh.org

Twitter : @nurhussein

Location : The high ground.

Submissions

comment 4y ago · link · parent

"a technique for reducing the memory footprint of programs in compiled languages with C-like structures"

I figure that's not the primary reason for structure packing, but rather for fine-grained control over writing to very specific memory layouts (think global descriptor table) as structs.

2.

Show HN: Automatically Choosing Desktop Wallpaper with Music, Revisited(nurh.org ↗)

3 points · by hnur · 5y ago · discuss

comment 9y ago · link · parent

Woohoo, this is the 2nd time Hacker News picked up one of my articles. And yeah, you should subscribe :)

comment 9y ago · link · parent

Well there is this: https://lwn.net/Articles/718267/

comment 9y ago · link · parent

Fancy kids and their winamps, back in the day I used to coax musical notes out of a tinny speaker from an Apple II using PEEK and POKE in BASIC.

;)

comment 9y ago · link · parent

It was a random sampling of songs that I was already playing while I was writing that. All my music is either folk (with a lot of Irish and American folk), rock, or indie. If you like though, you could try it yourself.

The great (or perhaps, not, depending on what you want) thing about the Flickr search is that it picks from a set of curated photos, so it's highly unlikely you'll get an unpleasant one. However since it is picking random pictures from the internet, don't run it where you'd get into trouble if something inappropriate does manage to come up.

comment 9y ago · link · parent

You aren't by any chance interested in separating that, in hosting a server which gives a link to a good flickr image when given a word? I searched for something like that and in the end stayed with my ugly approach of parsing flickriver for getting a random image from a hard-coded group with a fitting topic.

Flickr already does this if you use their search API. The Flickr part of the script in my Github repo has an example.

8.

Show HN: Making Your Music Choose Your Desktop Wallpaper(blog.unixcat.org ↗)

75 points · by hnur · 9y ago · 11 comments

comment 10y ago · link · parent

>UNIX-like kernels are easy, in that you don't have to have >that much running before you can run "Hello World".

Well, it depends on what you mean by "Hello World". Simply printing it out from the kernel? Easy. Getting a workable userspace up and running so a user program prints out "Hello World"? Hard. Also, you can have a microkernel that gives you a UNIX-like personality too (as is it is often the case when implemented), so I am not sure how one precludes the other.

>Also, the emphasis on virtual memory and page faults is >becoming dated. Paging out to disk is obsolete technology. >RAM is too cheap, and mobile devices don't page.

Uh, of course mobile devices use paging and virtual memory. You might be conflating virtual memory with swapping here.

comment 10y ago · link · parent

How does it work? Is it a Windows container implementation that got the "Docker" branding?

comment 10y ago · link · parent

On time:

35. The rate that time passes at one point in the universe is the same relative to any other point in the universe.

I once talked to some co-workers of mine who doubted that relativity is real.

comment 10y ago · link · parent

I'm not entirely up to speed on the situation of UEFI secure boot for ARM; didn't Microsoft mandate that it can't be disabled for such devices to boot Windows? Is that the case here?

comment 10y ago · link · parent

I use C as my staple language. Old and always unfashionable, but it's never going away in my lifetime.

comment 10y ago · link · parent

Relevant:

http://www.smbc-comics.com/?id=2088

comment 11y ago · link · parent

Feeling nostalgic for the soundtrack? This guy did a medley -> https://www.youtube.com/watch?v=Vz0_ZHEDZ-4

comment 11y ago · link · parent

Another folk/americana fan here, and I get contemporary pop music ads between my tracks on Spotify, and there's nothing more annoying than autotuned screeching between my Bob Dylan and Gillian Welch.

However instead of buying premium, I just use Spotify for discovery. If I like something I just get the album off iTunes, Amazon or Bandcamp. I find myself spending less per year than if I had subscribed to Spotify, _and_ I get to keep my music.