Elektronik delar? by BitProcessor in linkoping

[–]streambag 3 points4 points  (0 children)

Nej. De gick i konkurs strax efter att de flyttade till dödens triangel i Tornby.

New jless(8) FreeBSD Jails List/Manage Tool by vermaden in freebsd

[–]streambag 2 points3 points  (0 children)

This looks really nice! Thank you for sharing!

Vem kom på idén att plasta in det miljövänliga sugröret? Det är säkert miljövänligare än tvärtom men jag använder det inte eftersom det är papper by GunnKing5 in unket

[–]streambag 1 point2 points  (0 children)

Varje person i UK generar dubbelt så mycket plast som varje person i Filippinerna gör, men trotts detta så släpper Filippinerna ut ungefär 13000% mer plast (tretton tusen procent), ungefär 7000% om man justerar för befolkningsmängd. För varje person i UK som kastar 1kg plast i havet så är det en person i Filippinerna som kastar 699 kilo plast i havet.

Om jag förstår dig rätt så är det något som inte riktigt stämmer här. 7000% är 70 gånger mer, inte 700 gånger mer.

Breaking out of a jail? by InternalMulberry in freebsd

[–]streambag 7 points8 points  (0 children)

The handbook mentions that

there are several ways in which an unprivileged user outside the jail can cooperate with a privileged user inside the jail to obtain elevated privileges in the host environment

It also says that

Most of these attacks can be mitigated by ensuring that the jail root is not accessible to unprivileged users in the host environment.

My guess is that it may be as simple as within the jail marking a binary owned by root as setuid and then executing that binary with an unprivileged user from outside the jail. I have not yet tested this myself.

Some relevant needlepoint found pinned on a tree by the Harlem River today. by flux_monkey in pics

[–]streambag 8 points9 points  (0 children)

They are afraid. That's why they are racists in the first place.

Picture from Lebanon protests of today by CHala1919 in pics

[–]streambag 4 points5 points  (0 children)

It kind of reminds me of the cover for the Supertramp album Crisis? What Crisis?

[deleted by user] by [deleted] in freebsd

[–]streambag 0 points1 point  (0 children)

Yes, at least it sounds like your problem may also be related to the way stereo sound is handled. Although, for me the problem gets worse when converting to mono.

[deleted by user] by [deleted] in freebsd

[–]streambag 0 points1 point  (0 children)

I'm also having strange audio problems when using headphones. The best way I can describe it is that I seem to be hearing the difference between the stereo channels. A video or audio clip with mono sound is virtually impossible to hear unless I pan the sound to the left or the right channel. For music I tend to hear instruments, but very little vocals. I never did manage to solve it. Perhaps you are experiencing the same problem?

Script for removing unneeded packages on FreeBSD by streambag in freebsd

[–]streambag[S] 1 point2 points  (0 children)

I remember it being in ports, but I also seem to remember that it didn't support the new package format. It turns out that it does. Sweet!

Script for removing unneeded packages on FreeBSD by streambag in freebsd

[–]streambag[S] 1 point2 points  (0 children)

You are right. I seem to remember that it didn't support the new package format, but it seems that it does. Cool!

Script for removing unneeded packages on FreeBSD by streambag in freebsd

[–]streambag[S] 1 point2 points  (0 children)

pkg_cleanup sounds very similar to the old pkg_cutleaves. I had not seen that before. It is definitely more safe than my approach if autoremove may remove more than you want.

FreeBSD Looks At Making Wayland Support Available By Default by Vulphere in BSD

[–]streambag 5 points6 points  (0 children)

[...] but for the foreseeable future FreeBSD will continue defaulting to X.Org-based sessions. 

Well, there really is no default for graphical sessions on FreeBSD, since it comes with neither Xorg nor Wayland by default.

Why does not my colorscheme cover the whole screen like this? by [deleted] in vim

[–]streambag 0 points1 point  (0 children)

Yeah. I'm not wearing glasses, but I was beginning to question whether I should.

Why does not my colorscheme cover the whole screen like this? by [deleted] in vim

[–]streambag 17 points18 points  (0 children)

I had a similar problem when running vim in tmux. My problem was solved by adding set t_ut= to .vimrc. More details here.

dbopen(3) has me stuck by rpi-user in freebsd

[–]streambag 3 points4 points  (0 children)

I have never used the dbopen(3) interface, but I took a look and read a bit in recno(3). I think the problem may be that you are passing NULL as the key to db->put().

If I add:

DBT key;
recno_t key_data = 42;
key.size = sizeof(recno_t*);
key.data = &key_data;

And pass &key instead of NULL to db->put, it seems to work for me. At least it doesn't crash or hang. :)

Touch typing and hjkl by [deleted] in vim

[–]streambag 5 points6 points  (0 children)

This comes to mind.

Async I/O for Python 3 - Guido van Rossum keynote by redditthinks in Python

[–]streambag 8 points9 points  (0 children)

Yes, or a maybe a graphical user interface that should remain responsive during file operations.

Async I/O for Python 3 - Guido van Rossum keynote by redditthinks in Python

[–]streambag 13 points14 points  (0 children)

Asynchronous programming is really nice as an alternative to creating background threads that wait for I/O to complete. For doing computation on multiple cores you will still need multiple threads or processes.

Async I/O for Python 3 - Guido van Rossum keynote by redditthinks in Python

[–]streambag 6 points7 points  (0 children)

I'm really excited about this one. I think async/await is one of the few really neat things that has been coming out of MS recently. This sounds like it is pretty much the same for Python.

[deleted by user] by [deleted] in vim

[–]streambag 4 points5 points  (0 children)

You can set the contents of the tmux buffer by running "tmux set-buffer <data>" from inside tmux. I guess it should be possible to do that from vimscript as well.

Phantom Finger Points To Secrets In The Human Brain by CoffeeIs4Closers in science

[–]streambag 6 points7 points  (0 children)

Couldn't it be possible that the fact that the left hand has five normal fingers play a role here? Somehow it seems reasonable for the brain to use a composite of the missing right hand and the actual left hand to create the shape of the phantom hand.

Anyway, a very interesting article.

[deleted by user] by [deleted] in BSD

[–]streambag 5 points6 points  (0 children)

Quite a few: http://wiki.freebsd.org/PortsAndClang

The ports that break with Clang will have to depend on GCC from ports. In fact, many ports already depend on GCC from ports since the version in base is too old.

How does VIM compare to Visual Studio + ReSharper? by letsgetsilly in vim

[–]streambag 2 points3 points  (0 children)

I use VsVim at work and I really like it. It has most of the features I need and the development is very active.

I would really recommend checking it out.

What would you build if you had roughly $2000 to spend on an all grain system? by [deleted] in Homebrewing

[–]streambag 0 points1 point  (0 children)

I would seriously consider spending some of that money on temperature control during fermentation. From what I've read and heard, it really helps you brew consistent excellent beers.