5,763 karma · joined Oct 27, 2011 (15y ago) · 2,893 submissions
comment 9y ago · link · parent
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
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
comment 9y ago · link · parent
> 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
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
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
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
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
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
I currently prefer Unlicense but 0BSD looks very nice…
comment 9y ago · link · parent
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
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
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
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
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
- 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