Better HN
topnewbestaskshowjobs
Log inSign up

floatboth

5,763 karma · joined Oct 27, 2011 (15y ago) · 2,893 submissions

this website sucks
Submissions

comment 9y ago · link · parent

> a prompt to give over my email address at the bottom

That's the point. It's at the bottom, within the normal flow of the document. Not a fucking lightbox popup thing with confirmshaming!

> two giant full screen ads

??

I saw one methodhome.com ad, with a cool custom CSS animation on hover, again normally appearing within the article. How is it full screen?

comment 9y ago · link · parent

I have a ridiculous "vim style" alias setup: https://github.com/myfreeweb/dotfiles/blob/4eb052cc54f9edcc8...

So I can just e.g. type "g ws" to tell [g]it to give me the [w]orking tree [s]tatus. Seeing people actually type "git status" is just painful.

comment 9y ago · link · parent

IIRC it has a configuration setting to tweak how much RAM it is allowed to use

comment 9y ago · link · parent

What about the other way around, Windows host + *nix VMs? I run FreeBSD in VirtualBox, forwarding apps to VcXsrv via PuTTY. Works very well. I even made a tray icon script to launch that setup https://github.com/myfreeweb/xvmmgr/blob/master/xvmmgr.psm1 :)

comment 9y ago · link · parent

Come on, you're exaggerating.

> tried so hard to prevent me to replace OS, modify the software, writing code and text

It's pretty easy to install a new OS on a typical Android phone. 1 million registered LineageOS installations already, many many millions of CyanogenMod installations before that.

How do smartphones try to prevent you from writing code and text? Apple even made this: https://www.apple.com/swift/playgrounds/ For the iPad, of course, because phones are small… but not impossible to use for code. I have edited websites over SFTP with https://textasticapp.com/iphone.html on an iPhone 4 back in the day! Also don't forget http://omz-software.com/pythonista/ And you can make Android apps on an Android phone: http://www.android-ide.com

Honestly the worry about "omg smartphones are turning everyone into consumers who don't create anything" is ridiculous. People write blog posts, edit photos and videos on smartphones a lot. A LOT.

> a handful of people who can use efficient input device, the keyboard

I really like my mechanical keyboard with blank keycaps, but I do type a lot on my phone's onscreen keyboard as well, and it is pretty efficient!

comment 9y ago · link · parent

> the code to support, e.g. the NFC

On Google devices starting with the Nexus 5X/6P, there's a separate /vendor partition for blobs, and Google publishes monthly updates for that. I'm not sure if other vendors do this…

comment 9y ago · link · parent

On the Nexus 5X/6P and some other new phones, there's a separate /vendor partition for proprietary blobs that can be updated separately from your Android distro (which is at /system). Granted, the Nexus is Google-related and I'm not sure if that's the case on other devices…

By the way, the upstream Linux kernel supports the Nexus 5X! http://www.phoronix.com/scan.php?page=news_item&px=Linux-4.9...

And the bootloaders are based on fastboot pretty much everywhere I think? At least that was the case with the non-Google-related HTC phone I've had.

comment 9y ago · link · parent

> i find it unnerving that Windows 10 can apparently bring a laptop out of shutdown to do updates in the middle of the night

Heh, I remember when Apple used that as a feature. Instead of updates, it downloaded your email and other things you'd want to have already available when you open your laptop.

comment 9y ago · link · parent

Honestly the "[dynamically typed scripting language] is much more productive than [statically typed compiled language]" arguments sound like bullshit.

There's just too many things to take into account:

- the developer's experience with a particular language

- the developer's experience with the problem domain / understanding of the task / etc.

- time spent writing the code but also time spent debugging it

- time spent debugging a few weeks later when it suddenly breaks in production (dynamic typing often fails there)

Really, the most productive language is the one you're most familiar with.

I still use Python and Ruby for various tasks (mostly for scripting, command-line apps, simple services). Their main advantages are their library ecosystems and portability* . But they aren't very good for serious app development. Even when you feel like your business logic is extremely simple, you WILL get that weird null (sorry, None) or completely unexpected exception in production.

* I mean, you can easily run a Python script on, say, an iBook G4 running OpenBSD/macppc, or an old ReadyNAS with Debian/SPARC, or your MIPS home router. I like obscure hardware :)

comment 9y ago · link · parent

> It is interesting that Atom’s latency gets worse by two frames when Haskell syntax highlighting is enabled.

Heh, that's not so surprising to me. There are several vim plugins for Haskell, and one of them had some very slow features that made the latency go into the "many seconds" range :D

The Macbook keyboards one is ridiculous though.

comment 9y ago · link · parent

ASN.1 is quite well known because of X.509 certificates though! XDR, yeah, I had to look up as well.

comment 9y ago · link · parent

That's… sort of happening with laptops. Pretty much any modern laptop with an Intel CPU uses a small set of Intel chips for everything. My dmesg includes:

em0: <Intel(R) PRO/1000 Network Connection>

iwm0: <Intel(R) Dual Band Wireless AC 7260>

xhci0: <Intel Panther Point USB 3.0 controller>

ehci0: <Intel Lynx Point LP USB 2.0 controller USB>

ahci0: <Intel Lynx Point-LP AHCI SATA controller>

drmn0: <Intel Haswell (ULT GT2 mobile)>

Most laptops from the same generation use the exact same set of chips.

comment 9y ago · link · parent

http://www.yacy.net/en/

comment 9y ago · link · parent

Also an excellent bot platform.

comment 9y ago · link · parent

Qt classic (C++) apps run flawlessly on my 4K desktop (150% scale in Windows).

QML/QtQuick apps only support integer scaling for whatever ridiculous reason ("fuck your monitor we need to be pixel perfect" or whatever) so they're either tiny or huge.

comment 9y ago · link · parent

Maybe not so sadly? Apparently many many people don't like Apache2 because of the patents thing.

comment 9y ago · link · parent

What about Zero-clause BSD? https://spdx.org/licenses/0BSD.html (OSI approved, even)

I currently prefer Unlicense but 0BSD looks very nice…

comment 9y ago · link · parent

http://unlicense.org

It's a socially and legally acceptable WTFPL — it includes:

- a "do not sue me" clause for jurisdictions with implied warranty

- a BSD-style permissive license for jurisdictions that do not recognize public domain or do not allow directly putting something into it (e.g. Russian law explicitly says that disclaiming authorship is bullshit)

comment 9y ago · link · parent

The OpenBSD project prefers ISC. You'd use it if you like OpenBSD :)

comment 9y ago · link · parent

Carbon is still there… owned by BuySellAds who also bought Fusion and absorbed it into Carbon, or something. (Fusion's website redirects to Carbon.)

comment 9y ago · link · parent

Even a basic chroot runs its own userland! "Userland" is just files.

In my example, /j/postgres is that filesystem that can migrate anywhere. (What's actually started is /j/postgres/usr/local/bin/postgres.) Yeah, you can just specify the IP address when starting it.

comment 9y ago · link · parent

Yep, exactly. Since zones were inspired by jails, FreeBSD works in pretty much the same way. For device permissions though, we have rules support directly in devfs. https://github.com/freebsd/freebsd/blob/master/etc/defaults/... — there's a default ruleset for jails that makes sense (allows log, null, zero, crypto, random, stdin/out/err, fd and tty stuff).

By the way, I couldn't find this anywhere on the internet — is there a simple way to just run something in a zone on illumos, without the installer stuff? Like on FreeBSD you can just do this:

jail -c path=/my/chroot/path command=/bin/sh

and you have a jailed shell. What's the Solaris/illumos equivalent of this?

comment 9y ago · link · parent

Lightweight application containers do not run init or anything like that! They're just chroots but with isolated networking, PIDs, UIDs, whatever.

For example, on my FreeBSD boxes, I have runit services that are basically this:

exec jail -c path='/j/postgres' … command='/usr/local/bin/postgres'

Pretty much the same as directly running /usr/local/bin/postgres except the `jail` program will chroot and set a jail ID in the process table before exec()'ing postgres. No init scripts, no shells, nothing.

comment 9y ago · link · parent

sudo jail -c path=/ command=/bin/sh

to get a shell in the least isolated jail possible. It's that simple. Read the "Jail Parameters" section in `man jail` to see what you can add to this, e.g.:

sudo jail -c path=/ ip4.addr=192.168.1.123 command=/bin/sh

to isolate the IP address…

comment 9y ago · link · parent

"Container source code" is usually something like "run pkg-manager install rabbitmq" though.

comment 9y ago · link · parent

Jails are actually very similar to Linux namespaces / unshare. Much more similar than most people in this thread think.

There's one difference though:

In namespaces, you start with no isolation, from zero, and you add whatever you want — mount, PID, network, hostname, user, IPC namespaces.

In jails, you start with a reasonable secure baseline — processes, users, POSIX IPC and mounts are always isolated. But! You can isolate the filesystem root — or not (by specifying /). You can keep the host networking or restrict IP addresses or create a virtual interface. You can isolate SysV IPC (yay postgres!) — or keep the host IPC namespace, or ban IPC outright. See? The interesting parts are still flexible! Okay, not as flexible as "sharing PIDs with one jail and IPC with another", but still.

So unlike namespaces, where user isolation is done with weird UID mapping ("uid 1 in the container is uid 1000001 outside") and PID isolation I don't even know how, jails are at their core just one more column in the process table. PID, UID, and now JID (Jail ID). (The host is JID 0.) No need for weird mappings, the system just takes JID into account when answering system calls.

By the way, you definitely can run X11 apps in a jail :) Even with hardware accelerated graphics (just allow /dev/dri in your devfs ruleset).

P.S. one area where Linux did something years before FreeBSD is resource accounting and limits (cgroups). FreeBSD's answer is simple and pleasant to use though: https://www.freebsd.org/cgi/man.cgi?rctl

comment 9y ago · link · parent

Jails can get their own interfaces too (VNET/VIMAGE). This functionality has been buggy in the past, but in 11 it's ready to go.

comment 9y ago · link · parent

GHC doesn't either. Rust traits are heavily inspired by Haskell typeclasses… so it's like in your example.

comment 9y ago · link · parent

Specifically content creators with good content… yeah I watch a lot of that.

- Actually Hardcore Overclocking (buildzoid) https://www.youtube.com/channel/UCrwObTfqv8u1KO7Fgk-FXHQ

- Micah Elizabeth Scott (scanlime) https://www.youtube.com/channel/UCaEgw3321ct_PE4PJvdhXEQ — "Art, engineering, reverse engineering, and cats"

- The 8-bit Guy https://www.youtube.com/channel/UC8uT9cgJorJPWu7ITLGo9Ww + https://www.youtube.com/channel/UCcTt3O4_IW5gnA0c58eXshg

- Druaga1 https://www.youtube.com/channel/UC-7I1gU1r6PxBSl87o-7YEQ — "Windows 98 on an SSD", "Installing an SSD in a G4 Cube [Part 2]"… you get the idea

- Kim Justice https://www.youtube.com/channel/UC9ZWVL1Elyt2cdiQYjxS_1w — very interesting in-depth retro gaming videos

- hbomberguy https://www.youtube.com/channel/UClt01z1wHHT7c5lKcU8pxRQ — critical videos about games and social/political stuff too… I recommend "Fallout 3 Is Garbage, And Here's Why" :D

- OzTalksHW https://www.youtube.com/channel/UC6Jxh95N32m1JvKG_-fQ6QQ — hardware reviews and stuff

- Paweł Zadrożniak https://www.youtube.com/channel/UCximsD7EJ38jzCNgfP_YTmA — next level floppy drive music

comment 9y ago · link · parent

Er, I meant, "who uses libcurl when writing NOT in C/C++"
1
818283
97