« first day (2636 days earlier)      last day (2333 days later) » 

12:01 AM
@SergiyKolodyazhnyy done. askubuntu.com/a/986979/507051
 
 
2 hours later…
1:50 AM
Why must Archive Manager read an entire .tar.gz just to get the list of files in the archive.
 
becuz
 
That's no fun when the archive is 1.5 GB.
 
use Ark
Ark iz gud
 
I'm thinking I should commit more..
I thought I hated Microsoft before, but everyday it passes I get to hate it more for making IE @NathanOsman
They don't support <input type="number">, come on -.-
or required
 
Those are all HTML5 attributes.
 
2:02 AM
you're right, it's not Microsoft's fault (this time)
I head of Number Polyfill, maybe I can use it for backwards compatibility
or I can just ignore IE10-
 
2:57 AM
Yeah, I'd try to support IE10 at a minimum.
11 otherwise. You gotta at least support the latest version.
 
3:49 AM
@ThomasWard Thanks for nuking the comments, they became ridiculous
 
4:07 AM
Hi folks, I need another VTC as dupe on askubuntu.com/questions/986728/wireless-completely-disappeared since I already used my close vote earlier.
 
@DavidFoerster I can chip in a vote. dupe_target.get() ?
 
@SergiyKolodyazhnyy: It's in the comments. Thanks for the help.
 
Done. You're welcome
Care to chip in an opinion on my meta question ?
 
I'll take a look.
 
0
Q: Does the title of this question capture OP's question well enough?

Sergiy KolodyazhnyyOK, so we have this HNQ, which gathered quite a lot of attention, snarky comments, and a small edit war between me and another user about the title of the question . I've edited the answer to match the body of the question. Issue is that it can be viewed from different points of view: is OP aski...

 
4:14 AM
Ah, here it is. Meta took its sweet time
 
Imho all edits after askubuntu.com/revisions/986395/2 were either superfluous or harmful to convey the intention of the question author as far as I understand it.
 
Alright. What about the current title ?
 
It conflicts with the body of the question.
 
Hmmm :/ alright
 
4:37 AM
Interesting
$ time $'\n'
+ '
'
+ '[' -x /usr/lib/command-not-found ']'
+ /usr/lib/command-not-found -- '
'

: command not found
+ return 127
literal newline is attempted to be interpreted by bash, as if IFS didn't work at all
 
5:19 AM
Yooo
Anyone got any idea of wtf is happening here, getting the error `E: Unable to correct problems, you have held broken packages.
`
Everyone says install aptitude and use it
I don't want to install aptitude. I want to fix the problem
where do I go looking, I have no held packages.
 
5:48 AM
Hi @EvanCarroll.
I haven't seen you in a really long time.
 
How bad were the withdrawals, hope all is fine? Not all weather it so well.
 
In regards to the error... you can try running this to find out more about what apt thinks is the problem:
sudo apt-get install -f
People are likely suggesting aptitude since it is more verbose than apt-get.
 
doesn't do anything. =(
 
Hmm...
 
I like to understand my package system. I'd rather know why than have magic sauce.
 
5:52 AM
Right - but I meant that aptitude prints more descriptive error messages.
I'm actually using Arch right now, not Ubuntu so I can't really check any of the commands I'd give you :(
 
Yea, this will be my last year on Ubuntu
New years resolution time coming up
I just don't want to go out defeated. That's no fun.
Going to migrate to Qubes.
 
hm
askubuntu.com/a/363244/17681 was this suggested?
(I'm currently on fedora on the desktop, and my ubuntu server's remarkably vanilla and unbroken)
 
Yep, I already put the results up there
Ubuntu isn't doing anything interesting, and it's not particularly polished anymore.
 
Qubes is pretty cool from what I hear.
Lemme know how it goes.
 
Will do, at least it's exciting. And, though based on security, I like that they're making radical changes to achieve their goal.
They migrated from KDE to Enlightenment (which is my preferred DM).
So it's really just a jump from dpkg to rpm, and I've used red hat based distros before so it shouldn't be that bad.
 
6:04 AM
I use Enlightenment on a low-cost netbook and I love how few resources it uses.
 
Yep, it's great all around.
I'm running Xubuntu now
and have been for a very long time.
 
LXQT for me, and I only really need one GUI app running really (well two)
 
Before Ubuntu I was on Slack.
There are no other apps except chrome and xfce4-terminal
 
what else do you need? ;p
 
@JourneymanGeek I run LXDE on my desktop.
 
6:05 AM
I really wish xfce4-terminal supported ligatures though
 
I need X for my torrent client (until they do a RSS/webui)
 
rtorrent?
 
qbitorrent
 
@JourneymanGeek I've contributed some code to LxQt, so you might be running some of my code on your computer :P
 
really nice torrent/rss handling with the ability to set rules on them
also works very well with my home setup. Only issue is the webui dosen't support it, so I can't go with a fully X-less setup
 
6:07 AM
@NathanOsman you play with SQL Server 2017?
 
@NathanOsman also works well on small/low res screens
got it on a 7 incher ;p
 
@EvanCarroll Afraid not.
 
been taking it apart
 
6:37 AM
I'm going to be #1 for Database Administrators this year. ;)
But, I wont have the gold badge for postgresql which bloowwwzzz
 
 
2 hours later…
8:17 AM
0
Q: Bash - Simplify file path from "find"

kpjVideoCurrently I'm trying to find some files using the find command. find -wholename "./blah/*.mp4" This returns: ./blah/blah2/a.mp4 ./blah/blah2/b.mp4 etc. Is there anyway I can simplify the output of this so that it only returns: blah/blah2/a.mp4 without the beginning two characters (being ./ ) ...

 
9:16 AM
@dessert nope, 1(){ echo "hi"; } works even in posix mode :/ — Sergiy Kolodyazhnyy 5 mins ago
@SergiyKolodyazhnyy That is definitely worth being brought to the attention of the devs IMO.
 
huh, I thought that function names can not begin with a numeral?
 
btw, did you try the function 1 { echo "hi"; } form as well? I read there are differences…
@Videonauth we're talking about mksh, where quite unsuspected this actually is possible
even in POSIX mode!
which seems like a bug
See this and the linked question:
0
Q: Space literal as function name in bash

Sergiy KolodyazhnyyThis question is loosely related to one of my previous ones. TL;DR from muru's answer is that characters in function name have to be on Portable Character Set in order to be valid for a function name. Problem is that space is on the list (the <space> or <U0020> character), which is why I'm confus...

 
do you have meanwhile python 3.6 running?
 
@Videonauth me?
 
yep
 
9:30 AM
Yes, it was relatively easy using virtualenv and following the instructions on ubuntuusers.de
 
cool
 
I guess I could submit an issue on github
 
I have no idea what OP is actually up to here: askubuntu.com/q/986313/507051
@Videonauth There's something you probably didn't know about at yet: unix.stackexchange.com/q/411022/246819do not feel obligated to upvote, I just think you might be interesting in the fact.
 
@dessert maybe OP's screen ( actual hardware ) has the borders they're talking about, in which case that's NOP ( not our problem)
 
@SergiyKolodyazhnyy :D
How unclear can a question be? askubuntu.com/q/987049/507051
 
9:49 AM
mirbsd.org/wtf.htm I like this utility
 
@Videonauth I actually (temporarily) abandoned python in favor of a remind setup that allows me to finally get rid of thunderbird+lightning for mail and calendar/notifications – such easy tasks are not supposed to take so many system resources IMO.
 
i sat the past days over a tool idea , but it turned out morecomplicated as i first thought of
 
@SergiyKolodyazhnyy seems like German humor to me ;P
 
Perhaps the authors used to be Munich sysadmin
 
fighting with the os library
 
10:01 AM
@SergiyKolodyazhnyy “äpp”, “Kopiën” and stuff like that points to a… dedicated character. :P
 
@dessert pity it's not an unsigned long character
( C programming reference, just in case you didn't get it )
Also . . . pointers . . .
 
@SergiyKolodyazhnyy Isn't C long dead? (just trolling)
 
Through strange eons even death will die. But not COBOL.
 
@dessert Nah, it was simply cast to void
BTW, have I already mentioned that original bourne shell was written in obfuscated C to look like ALGOL ?
 
Good morning everyone!
 
10:06 AM
@SergiyKolodyazhnyy Why does one obfuscate code?
 
Does anyone know this one?
0
Q: How to keep 4 Linux kernels in /boot by default before they are removed automatically

FabbyI did some digging around and found that the automatic clean-up for kernels is in /etc/kernel/postinst.d/apt-auto-removal and the file states: # In the common case this results in two kernels saved (booted into the # second-latest kernel, we install the latest kernel in an upgrade), but # can sa...

 
@Fabby \o
oh wait no, that's the wrong arm for a German…
o/
 
@dessert well, one reason is to participate in obfuscated C contest, which is actually a thing; there's people writing like poems , which actually compile. But Bourne actually just liked ALGOL so much apparently, he obfuscated it for his own pleasure
 
@dessert :D It's an emoticon...
Don't overthink the arm!
 
@Fabby There's a configuration somewhere in /etc/ for that, but I don't have clue which and where, I had a question about it though.
 
10:09 AM
@Fabby just kidding, it's long overdue to take this with humor IMO
 
Also it's 3:09 AM here and I'm questoining why i am still here
 
@Videonauth <b> doesn't work with the usual code markup
 
huh ?
 
@Fabby \o/
 
hehe @ser
how can i get file information with the os library or do i simply do a subprocess call to shell functions?
same for username groups etc
 
10:16 AM
@Videonauth what sort of file info ?
 
owner ID and GUID, permissions
existence (since simply trying to create and act on the error raised seems a bit crude approach)
 
$ python -c 'import os,sys; print os.stat(sys.argv[1])' /etc/passwd
posix.stat_result(st_mode=33188, st_ino=6035652, st_dev=2049, st_nlink=1, st_uid=0, st_gid=0, st_size=3035, st_atime=1512942309, st_mtime=1512942309, st_ctime=1512942309)
$ python -c 'import os,sys; print os.stat(sys.argv[1]).st_uid' /etc/passwd
0
 
os.path.exists ok
mhmm ok so stat returns a struct/namespace
ok thank you
 
Also
$ python -c 'import os,sys,pwd; print pwd.getpwuid(os.stat(sys.argv[1]).st_uid).pw_name' /etc/passwd
root
convert UID to username
 
btw did you see yesterday or so my applications of your lambda line?
def strip_newline(lines):
    return list(map(lambda x: x.strip('\n'), lines))


def append_newline(lines):
    return list(map(lambda x: f'{x}\n', lines))
 
10:23 AM
@Fabby I think you just need to alter debkernels to include not only $previous_version, but also $pre-previous_version and $pre-pre-previous_version, which can be defined as pre-previous_version="$(echo "$debverlist" | sed -n 3p)" and pre-pre-previous_version="$(echo "$debverlist" | sed -n 4p)" respectively.
 
Cool!
@SergiyKolodyazhnyy /kick @SergiyKolodyazhnyy
 
@Videonauth Very nice. Although second one gives me syntax error
 
Of course this can only work if there are actually four kernel versions installed, else sed will… ah, just print out other versions that are kept anyway, so should do no harm.
 
@JourneymanGeek :D :D :D
 
@SergiyKolodyazhnyy python 3.6.3
 
10:26 AM
(cannot be misinterpreted) (cc @dessert)
 
Ah, I'm still on 3.5.2 here
 
And muru already did the very same thing :)
 
def append_newline(lines):
    return list(map(lambda x: '{}\n'.format(x), lines))
@SergiyKolodyazhnyy for 3.x
i just love that f-string
 
Alright, I'm gonna go sleep. I'm fairly satisfied with my answers and rep today.
 
makes the whole thing more readable
 
10:29 AM
@Videonauth Initially it looked to me like F(x) math function definition :3
 
well it kinda is formatet string function so yes :) kinda
 
f'Testtext {var_A} text text text {var_B!r} (this one is raw btw)'
 
Old unix documentation stuff
 
@muru thanks. Have to split now, will test later and accept (upvoted already)
:-) :-) :-)
 
10:32 AM
Adieu, folks ! I'm off
 
@SergiyKolodyazhnyy sleep tight!
 
11:31 AM
@dessert What did you change in my question to have ir formatted correctly? (I can't see the difference)
 
11:43 AM
@Fabby if you format you code by indenting it, html tags like <b> are not interpreted, if you use <pre><code> instead <b> works as expected – I suppose you wanted to print those lines bold?
 
Yeah, and they did...
yours just came in a box whereas mine just came in courier with a gray background.
 
@Fabby Wait, are we talking about the second revision here?
 
yup.
can't see what you did there...
I knew I had to use <pre><code>
but what did you change between rev1 and 2?
Ah!!!
 
@Fabby I just changed </pre/ to </pre> there.
 
I forgot to close the pre!!!
 
11:47 AM
That was a typo I suppose?
 
Yup it was...
Thanks for that...
And now w thought @Videonauth a new trick as well: bold your code...
I'm going to cook.
BRB
 
I think that's spelled “taught” ;P
 
Crap!
/shrug
 
12:12 PM
Hello @Fabby
\o/
 
12:25 PM
:-)
 
 
3 hours later…
3:30 PM
Hello :)
 
 
2 hours later…
5:03 PM
0
Q: Can I answer bash-tagged questions with Python one-liners?

user1717828Many questions tagged with bash have accepted answers using sed, awk or common *NIX utilities. Is it OK to use Python to answer questions in the same way? In particular, I'm looking at this question that wants to randomly bring lines from one text file into another. I first thought of doing so...

 
 
3 hours later…
8:20 PM
Does anybody know what Remind does when a reminder is due when the computer is off? ;P
 
Going solely on my 35+ years of experience with computers: it won't do anything.
(Haven't tried; but when the computer is off, it isn't doing anything; YMMV when it's in sleep mode though...)
 
@Fabby That's what I thought, but what will happen when the computer is on/awake again?
I don't really want my computer to wake himself unless I explicitely told him to do that, after all. ;P
 
Depending whether the software uses == or <= it'll flag old reminders or not
I'd have to go read the source.
 
@Fabby Don't do that, I'll just try in the next days and see what happens. :)
Worked with at that way.
 
If it's well-written software, it should...
I mean: that's one of the things you learn in primary school, right?
/shrug But I refer the right not to be disappointed if it's utter stupid software...
On average, people are dumb!
 
8:41 PM
0
Q: Thank You Everyone

Kat Judging people's questions and dismissing them as "duplicative" fails to help anyone (except the egos of those passing judgment). If multiple people are asking the same question, how about posting the answer IN PLAIN ENGLISH (and Spanish) and then PROVIDING A LINK to the information? That way, ...

 
8:52 PM
Hah! and on-cue a dumb question shows up----^
 
It's not even a question IIRTCAANMT (if I read that correctly and are not mistaken there)
@Fabby “on cue” – one can really learn English from you!
 
@dessert What's your native language?
on-cue would be British English; but I've noticed Amrerican English drops a lot of the dashes.
 
@Fabby German
 
That's only my fourth or fifth depending on how you count...
Now I also get the joke from earlier today...
 
@Fabby my dictionary knows only “on cue”, but then again it's not the best…
 
9:03 PM
(As I live in Germany; but am not German, I completely misinterpreted the arm joke)
 
@Fabby Interesting, what did you think I meant?
 
I thought you were not German, maybe knew from some other people I live in Germany, assume I was German and that it might be offensive to me.
I was born in a country where the Nazi-salute can be insulting, but is not forbidden by law...
 
from a linguistical point of view, English and German are just two West Germanic dialects – they are not really different enough to count as separate languages, although the distinction between a dialect and a language is not an easy one.
 
There are multiple opinions on what consitutes a language.
 
@Fabby While doing a student exchange year in Brazil I was greeted that way in school.
 
9:08 PM
English used to be a germanic language, but has lots of French, Danish, ... infuences.
Wow! Apparently they had no clue...
Did you tell them when you left that solute is forbidden by law in Germany?
SMOKE! BRB...
Back.
 
Good evening!
 
Hi David, you're looking sexy tonight!
:D ;-) :D
 
@Fabby No boat sex unless you're the King in the North though.^^
 
:/ Sorry, I don't get it...
 
…in relation to my current "hat".
 
9:23 PM
watching....
 
Of course there's an article on Know Your Meme… :-|
 
I suppose I should have watched game of thrones to grok it.
I'm more of a space Opera buff instead of a Fantasy buff.
/shrug
 
Aren't space operas pretty much fantasy, just set in a future-y universe?
I mean, Jedi and Sith are nothing short of space wizards and the story telling of the original Star Wars trilogy resembles that of fairy tales.
 
@Fabby I told them directly that I don't really enjoyed it. I don't think banning things like that is the way to go though.
 
Yes, that one is. Starship Troopers and Blade Runner aren't...
@dessert I had a Jewish-American colleague who was actually afraid to travel to Germany for a project.
After I burst out laughing so hard I nearly wet my pants and told him "Germany is probably the safest country on the entire planet to be a Jew", he took the first flight out...
... say someone who has had a copy of "Mein Kampf" on his PC somewhere before it came off the blacklist ...
 
9:34 PM
@Fabby today's racism is merely directed against Muslims, especially in times of the “wave of refugees” – Jews are so last century! ;P
 
(I never finished reading it: it's utterly boring and provides no historical perspective for what happened)
@dessert There are no easy answers to complex problems.
Racism is not a disease IMHO. it's just a symptom of the underlying disease: misunderstanding.
2
 
@Fabby I know, it's just awful! :D
 
@Fabby It was still legal to own, just illegal to distribute.
 
@DavidFoerster Oh? It was? I didn't know and downloaded it in a country where it's not on the blacklist)...
 
10:04 PM
It was and still is the same with media that incite hate, glorify anti-constitutional ideologies or carry symbols of groups with such ideologies (including most Nazi and Wehrmacht "memorabilia").
The law doesn't care if you keep that stuff at home or even show it to people in a private setting. Just don't pass it around. Exceptions for criminal prosecution, teaching, research and art exist of course.
 
My grandmother was given a Wehrmacht insignia for "being a good citizen" while my grandfather was being kept at Büchenwald...
 
Maybe she was rewarded for divorcing a spouse deemed subhuman or otherwise unworthy.
 
She kept it because she felt sorry for the soldier who gave it to her...
They never divorced AFAIK.
One of my dad's friends was sent to the Hitlerjugend "to toughen up and learn some discipline"...
(he was 10 or so at the time)
shit happens...
 
Well, the HJ certainly should have helped with that.
 
>:-) >:-) >:-)
 
10:10 PM
My grandfather was pressured to join and did join Hitlerjugend in his mid-teens before he was drafted into the Wehrmacht as a young adult.
 
Yup: shit happens...
The most interesting piece of literature I ever read (was forced to read in school) was the diary of a girl in the Bund Deutscher Mädel and it shows how the entire society was corrupted bit by small bit and if you weµre a follower and did not resist, you just slid into Nazi belief.
(one of the things that changed my life around: from that moment on, I became extremely sceptical of everything government and media)
 
He was Sudeten German living in Czechoslovakia who harboured much support for Hitler and his plans to "bring Germans [living in other European nations] back into the Reich" because they were generally underprivileged.
("who" = his ethnic group, not him specifically)
As far as I know he didn't think much of all that "hysteria" but, at that age, had no strong opinion or conviction to the contrary as did his parents.
 
@ByteCommander around?
 
yeah, the Versailles treaty was the single most important reason for WWIII
 
@Fabby: He said, his favourite memory of the war was after he deserted around a week before the official capitulation when the remaining Wehrmacht in is area was to preoccupied to search and punish deserters, and he woke to find that the soft thing that he chose as his headrest in the dark of the previous evening turned out to be a sizeable block of cheese.
 
10:21 PM
@Seth depends on whether you have something good or bad for me...
 
@ByteCommander I'm sorry... discord
 
@DavidFoerster :D :D :D
 
In man yad I read the phrase “multiply times” a lot. Is this proper English? I expected “multiple times” there…
 
I'd also like to be able to multiply my times...
seems like a useful tool
 
@ByteCommander well it doesn't have an option --multiply-times unfortunately
 
10:43 PM
@dessert probably a search-and-replace error...
file a bug...
 
@Fabby bugs.launchpad.net is the place to report a thing like that, isn't it?
 
looks Russian to me, so they might be unaware.
 
@Fabby thanks, already digging through the existing issues…
 
0
Q: Try various host suffixes when connecting via SSH

Connor BellWhen connecting to a host via SSH, I'd like to be able to simply type ssh hostname to connect. However, the setup we have currently means that I must type a fairly long suffix to connect, similar to hostname.hosts.companyname.com. Is it possible to set up SSH to cycle through several hostnames ...

 
11:02 PM
@Fabby:
 
Let me find the best I ever saw...
 
Erm... WTF did I just walk in onto again?
 
@ByteCommander Did you never see The Producers? You're in for a treat…
 
apparently not
 
This one is a good one as well:
 
11:10 PM
@ByteCommander: ^
 
Does that blonde guy only look like John Barrowman or is it him?
 
@ByteCommander imdb.com/name/nm0057882 Ctrl+F "Producers" → indeed
 
Hah, cool :D
 
@ByteCommander: "Springtime for Hitler" is a musical production inside the musical "The Producers" by Mel Brooks (that was later turned into a screenplay). It's a good watch if you're looking for some light hearted yet intelligent comedy.
 
Too long for this evening (damn, morning already), but if I don't forget it I'll watch it eventually...
 
11:22 PM
I only watched the 2005 film production, so I can't tell if it's any better/worse/different than the production from the 80s.
 
"Bedtime for Bytey" is now playing. :P
 
@DavidFoerster blocked in the US xD
 
@Seth youtube.com/search?q=springtime+for+hitler+producers should find something equivalent that works in your country.
 
@Seth Really? xD
 
11:30 PM
It should actually be more difficult to find it on Youtube in Germany because people tend to flag it as Nazi propaganda which is illegal there. And we all know that Youtube doesn't care jack s**t about groundless flags as long as they don't risk repercussions.
How to implement a decidable problem with a non-decidable algorithm: reddit.com/r/ProgrammerHumor/comments/5ylndv/…
 

« first day (2636 days earlier)      last day (2333 days later) »