HNHacker News
TopNewBestAskShowJobs

asgeir

208 karma · joined July 5, 2014

submissionscomments
asgeir··on How Iceland got teens to say no to drugs (2017)
As I said. I think that this is to ensure that child protective services have a fixed guideline to work with. If the definition of neglect is specific you have a better chance of the law being applied equally to all.
asgeir··on How Iceland got teens to say no to drugs (2017)
Iceland has mandatory education until you are 15 years of age which is why I would pick that as a natural cutoff point.

You'll get into the same type of trouble for truancy as for breaking this curfew so I would argue that the curfew shouldn't extend beyond the mandatory education period.

EDIT: That type of trouble being you'll have to go with your parents to see a psychiatrist to see if everything is OK at home.

asgeir··on How Iceland got teens to say no to drugs (2017)
I think that 10pm in winter is derived from the following. Child comes home at 10pm, it might take an hour to get ready for bed, then you get 8 hours of sleep before you wake up at 7am for school at 8am.
asgeir··on How Iceland got teens to say no to drugs (2017)
I agree. I think 17 is too long, I would argue that 15 is more appropriate.
asgeir··on How Iceland got teens to say no to drugs (2017)
I agree. I think that a curfew until you are 17 is a bit too long.

Elementary school education (which is mandated by law) ends after 15 years of age so I think that would be a more natural cutoff for this law and I think that any curfew after that age should be up to the parents.

asgeir··on How Iceland got teens to say no to drugs (2017)
You could make the same argument against any definition of neglect.

I think that this cutoff point is in there to make sure that the law gets evenly applied. Otherwise CPS would have to make a judgement call and you can't guarantee that everyone gets equal treatment that way.

asgeir··on How Iceland got teens to say no to drugs (2017)
According to icelandic law a person under the age of 18 is a child.
asgeir··on How Iceland got teens to say no to drugs (2017)
The law doesn't say parent or guardian. Only an adult. It can be a parent, sibling, friend of the family, whatever.

> Depends. If it's a _child_ proper, like under the age of 14-15 at the _highest_, then no

The law applies to children aged 16 and younger.

asgeir··on How Iceland got teens to say no to drugs (2017)
why?

EDIT: I think that the 10pm/midnight cutoff point is less about some danger switch getting flipped at midnight and more about there being some well-defined point where CPS need to step in and ask the parents why their children are unsupervised. If it's vaguely defined it makes enforcement of the law more difficult or will cause the law to be unevenly applied (something like poor kids get neglected because CPS can't prove neglect).

asgeir··on How Iceland got teens to say no to drugs (2017)
The child protection law says that a child is entitled to care and protection. It then goes on to define that a child out past curfew is a type of neglect.

According to the law the child is not at fault, the parents are for not providing adequate care.

Do you really think it's unreasonable to ask that children out after 10pm (midnight during the summer months) have someone looking after their safety?

asgeir··on How Iceland got teens to say no to drugs (2017)
They are allowed to be outside after curfew, they just need to have adult supervision to do so.
asgeir··on We can't send email more than 500 miles (2002)
Not as funny but still a very interesting read https://en.wikipedia.org/wiki/The_Cuckoo%27s_Egg
asgeir··on Google offers free fabbing for 130nm open-source chips
Wouldn't that just be something like CRT? https://en.wikipedia.org/wiki/Cathode-ray_tube
asgeir··on Micro: Modern and intuitive terminal-based text editor
I like using it as a prettier version of nano
asgeir··on Sublime Merge 2
When you have a specific commit selected you can see in the Files tab at the bottom two buttons Changes and Tree. If you select Tree it will show you the tree for that commit. From there you can get the blame log or history for individual files.
asgeir··on Things I Learnt from a Senior Software Engineer
Cunningham's law in action.

"The best way to get the right answer on the Internet is not to ask a question, it's to post the wrong answer."

https://en.wikipedia.org/wiki/Ward_Cunningham#Cunningham%27s...

asgeir··on Thoughts on Rust bloat
It looks like you can set it using a CARGO_TARGET_DIR environment variable or build.target-dir config value. So I guess you could create a $HOME/.cargo/config file with the following in it (letting you skip the --target-dir part):

  [build]
  target-dir = "/home/user/build-artifacts"
But I don't know if the different projects will trample each other that way. If that's the case you could just go with a .cargo/config per-project targeting a subdirectory of the build-artifacts directory.

https://doc.rust-lang.org/cargo/commands/cargo-build.html

https://doc.rust-lang.org/cargo/reference/config.html

asgeir··on Thoughts on Rust bloat
Have you considered doing something like this:

  cargo build --target-dir ~/build-artifacts/$(basename $(pwd))
Then you can have something like this in your ~/.config/user-tmpfiles.d/clean_build.conf

  d /home/user/build-artifacts - - - 1d -
You can then do cleanup by calling

  systemd-tmpfiles --user
Or you can use the tmpfiles timer

  systemctl enable --user --now systemd-tmpfiles-clean.timer
asgeir··on eBPF Can't Count?
bcc https://github.com/iovisor/bcc if you need low-level abstractions or bpftrace https://github.com/iovisor/bpftrace if you need something simpler (similar to dtrace)
asgeir··on $35 Atomic Pi Cherry Trail Linux SBC
From my experience the Z8350 should be capable of decoding 1-2 1080p60 through VAAPI and rendering with OpenGL. Have you tried using mpv from the command line without XOrg running? i.e. something like: mpv --hwdec=vaapi --opengl-backend=drm --drm-connector=1.HDMI-A-4 ...
asgeir··on Show HN: Game demo – Build a computer with logic
I, at least, can't get the trackpad to work. I can place the gate but have no way of connecting it to anything. I don't have a mouse to test if that works.
asgeir··on Show HN: Game demo – Build a computer with logic
If I understand the instructions correctly and you need ctrl + click to connect pieces, that is going to be a problem on MacOS. Since on MacOS ctrl + click == right mouse button.
asgeir··on Fallout 76 Day One Patch Is Larger Than the Game Itself
zchunk, zsync, and casync spring to mind. zchunk and zsync require support for range queries but casync splits the chunks into multiple files. https://github.com/zchunk/zchunk http://zsync.moria.org.uk/ https://github.com/systemd/casync
asgeir··on Show HN: 2048.cpp – Play 2048 in directly your terminal
Personally, I'm fond of https://asciinema.org/
asgeir··on Ask HN: What do you love/hate about terminals? Would you change them?
My zsh autocompletion list for git add actually contains the stageable files. I don't know if this is stock zsh behaviour or related to my prezto https://github.com/sorin-ionescu/prezto config but it can be done

Edit: looks like it might be stock behaviour https://github.com/zsh-users/zsh/blob/master/Completion/Unix...

asgeir··on Blender 2.79 released
I think it's more of a separate workspace layout for different tasks. i.e. one "mode" for modeling another for rigging and yet another for animating.
asgeir··on Creative Thinking (1952)
https://en.wikipedia.org/wiki/Impostor_syndrome
asgeir··on Vulkan Tutorial
In support of this. Dereferencing a NULL pointer is undefined behaviour.

http://blog.llvm.org/2011/05/what-every-c-programmer-should-...

C Standard http://www.open-std.org/jtc1/sc22/wg14/www/docs/n1570.pdf 6.5.3.2 Address and indirection operators ... If an invalid value has been assigned to the pointer, the behavior of the unary * operator is undefined. ... Among the invalid values for dereferencing a pointer by the unary * operator are a null pointer

asgeir··on Moog Schematics
I Dream of Wires gives a fascinating glimpse into the history of the analog synthesizer and the current state of the scene: http://www.idreamofwires.org/
asgeir··on New California law requires drivers passing cyclists to give 3 feet of clearance
I think that the reasoning is that since cars are heavy and cyclists and pedestrians are squishy the one with more capability to cause harm is considered responsible. Unless it is suicide by car or something like that.
← PreviousPage 2 of 3Next →