« first day (1081 days earlier)      last day (3872 days later) » 

12:00 AM
then maybe a answer that helps people to check their bash syntax may be necesary, no?
 
The main difference for me is that one is a question of configuring a *nix subsystem, while the other is a classic scripting language typo.
Not on this site, no, we're not about programming.
Yes bash questions are on topic but an answer that explains the issues the op was having more than @slm and I did is not well suited to the Q&A format I think.
 
slm
@terdon - agreed, that's why i kept it simple, didn't do more than just what was asked on those types of q's otherwise they run the risk of becoming a code for hire or homework hotline which we aren't
 
@slm, what did you mean by your comment on that 'at' question? That I could post what as an answer?
 
@terdon you guys on su has pretty awesome tags.. superuser.com/questions/tagged/tamil
 
Huh, yeah, that was just born this week I think.
actually, there are some interesting problems associated with what your locale considers numbers. Since tamil numbers are different, many things don't work as you would expect.
@Braiam see Staphane's comments here:
1
A: regular expressions with grep

terdonYou could also use the -P flag to enable Perl compatible regular expressions and use \d: grep -P -B10 -A10 '14:14:\d+ {"channels":["/alerts/6979/new"],"data":"New alerts for unit 6979"}' mygateway.log You could also really simplify it by making it less restrictive (the details depend on your i...

Try echo -e '\u09EA'
 
12:13 AM
nothing.. :(
 
Oh, and I meant Bengali, not Tamil, sorry
But it probably would be the same for Tamil, they also have their own numbers.
 
slm
12:25 AM
@terdon - nevermind, was saying if you wanted to answer feel free to
 
The only answer I can see is that atd simply increments numbers as long as it's running, don't really see the point in the question really.
 
@terdon I asked for it to be removed meta.superuser.com/q/7200/235569
 
@Braiam could you include the actual titles of the questions you are referring to? It's hard to read if I have to keep switching between various tabs.
 
slm
@terdon - yeah, was looking at the source
curious
 
@slm it just seems like the easiest and most reasonable way of doing it: keep an incrementing counter
 
slm
12:32 AM
Yeah, restarting didn't reset it, so now i'm a sucker for these stupid Q's
 
@terdon just now a mod burminated it...
 
What? It doesn't?
@Braiam I'm not sure I agree. Languages with non-latin alphabets have all sorts of minor issues in various systems. I have had to deal with many problems to use Greek for example.
Perhaps having a language-specific tag is bad but I've looked for questions tagged with 'greek' for example.
 
@terdon read my last... well before the last paragraph where I said that if's something that you could only do in a specific way, then the tag is necessary, otherwise for those 4 (specific) questions, is not
 
Different alphabets require different ISO settings, some are not supported by UTF8, getting terminals to deal with them can be tricky, compling LaTeX documents with non latin alphabets is also slightly complex.
@Braiam yes, I'm not sure I disagree either :) Just pointing out that having a tag for alphabets is less stupid than having one for languages.
Anyway, keeping a tag for 4 questions is not a good idea so well done for spotting it :)
 
remember the question about the extended/logical/primary partitions?
 
12:39 AM
Which one?
 
our outputs differs then the regex wasn't working on my side
4
Q: How to display all the partitions in a tree-like format (primary, extended and logical)?

BraiamI'm trying to find something that resembles the output of findmnt but with volumes instead mount-points (example): TARGET TYPE FSTYPE sda ├─sda1 Primary ext4 │ └─/ ├─sda2 Primary NTFS ├─sda3 ...

 
Ah, yes.
Oh, that was you?
 
OMG D:
 
Hadn't realized :)
No, I lie, I did know it was you, I just remembered my last comment in Spanish.
 
you edited the comment... :P
 
12:41 AM
Sorry, it's just weird for me to be speaking English with a Spanish speaker, I spent 7 years in Barcelona
which comment?
 
last one said something else
 
??
In the comments?
 
slm
@terdon - makes a file with a value in it, oooo. /var/spool/at/.SEQ, big surprise
 
Huh, OK I was thinking that having a counter increase indefinitely is bad design, at some point you'll have memory problems even if it takes years.
@slm I don't have it. I'm looking for alternatives now
I have a .SEQ in /var/spool/cron/atjobs/.SEQ but it does not show the same number that atq does
It does increment when I add a new 'at' job though.
 
slm
1:04 AM
it's in hex i think
for me 6c = 108
hex
 
I have: 00077 which increments to 00078 on a server running Ubuntu
Same kind of thing on my Debian laptop but I don't have root access to a non-debian system so I can't check others.
@slm nicely found, +1 for that. I wonder why I see different numbers in the output of atq and in my .SEQ file
laptop:$ atq
6 Thu Dec 18 21:34:00 2014 a terdon
$ sudo cat /var/spool/cron/atjobs/.SEQ
00015
$ at now +1min < ~/scripts/a.sh
atq
22 Tue Sep 24 03:17:00 2013 a terdon
6 Thu Dec 18 21:34:00 2014 a terdon
(changing cchapple which is my user name on these machine to terdon to avoid confusion, not paranoia)
So, the new at command took value 22 but the .SEQ file only went from 00015 to 00016:
$ sudo cat /var/spool/cron/atjobs/.SEQ
00016
 
weird I don't have that file...
 
@Braiam neither one?
Try sudo find /var/spool/ -name .SEQ
you might not have at installed but I think it should be there by default
Anyway, I gotta go guys, talk later
 
1:20 AM
think locate .SEQ should have found it... but...
nope..
 
slm
if you've never submitted a job the file doesn't exit
exist
 
The program 'at' is currently not installed.  To run 'at' please ask your administrator to install the package 'at'
 
slm
or that 8-)
@terdon - $ echo "ibase=16; 00015"|bc
21
 
 
1 hour later…
slm
2:44 AM
He deleted it already
testing us
 
 
1 hour later…
slm
3:51 AM
@Braiam - looks a little suss? unix.stackexchange.com/questions/92123/…
 
 
7 hours later…
10:36 AM
@derobert another idea about those pending sectors. Let's imagine that we have a pending sector on our hard disk, but this time, the hard disk is not part of on md raid. There is now again the suggestion to poke that block with dd, which is still probably not a good idea, I guess? What would be the wisest thing to do in that situation?
@derobert is it possible to identify the file that is using that block (assuming the block is in fact part of a file), and then to rm or shred that file so that the pending block will be written to?
 
 
3 hours later…
1:49 PM
@slm looks legit from this site...
 
slm
@Braiam - thanks
 
 
1 hour later…
3:07 PM
@MartinvonWittich yeah, you can use debugfs (I believe) to identify the file its part of. Or fsck -c. I think at that point, even cp (say, from a backup copy) would overwrite the sectors. Or dd (on the file, not the disk/partition) from a backup. If its in free space, you can write a huge file full of 0s to the fs (until the fs finally uses that sector), or alternatively start poking with dd or similar. dd is sane in this case, just risky ("oops, wrong sector(s)!")
 
slm
@terdon - since you're into Perl check out this solution: unix.stackexchange.com/a/92176/7453
 
@terdon that depends on if it rolls over, and if it uses a 64-bit counter. If it does either, you'll never have counter-exhaustion issues.
@slm I'm another perl hacker here :-)
 
slm
@derobert - good to know there are a few of us left.
 
@slm very clever! I've never used the ^ before.
 
slm
@derobert - me neither, first time. Also never used the $-[0] trick either.
 
3:18 PM
same here
 
slm
@derobert - yeah i wasn't sure actually what was happening there, it's not null then, just a 0?
 
I've dealt with low-level formats in perl, so I've used ^ for various bit-manipulation operations. Consider yourselves lucky to have never used it!
 
Getting different results though, I get (on a test scriptlet) 0x03 on non match, not 0x01
 
@slm null, 0, same thing :-P
ASCII null = character 0
 
slm
oh i see what you're saying, 0 for matches, non-zero for differences
not nec. a one then?
 
3:20 PM
looks that way
 
yeah, its doing a bitwise xor on the character number (or byte values, not sure how it handles Unicode)
 
Actually, it does not seem to be behaving itself:
perl -e '$a="aaa"; $b="bab"; $c=$a ^ $b; printf "[$_] is 0x%02x\n", for split //, $c;'
[] is 0x00
[] is 0x00
[] is 0x00
 
anthony@Zia:~$ perl -e '$a="aaa"; $b="bab"; $c=$a ^ $b; print $c' | xxd -p
030003
something wrong with your debug code
yeah
 
hang on
 
turn on warnings
 
3:23 PM
ah!
 
anthony@Zia:~$ perl -we '$a="aaa"; $b="bab"; $c=$a ^ $b; printf "[$_] is 0x%02x\n", ord($_) for split //, $c;'
[] is 0x03
[] is 0x00
[] is 0x03
 
OK, needed the 'ord', what the hell is 'ord' anyway?
ah, its a FUNCTION!
 
gives you the number of a character
 
ok, I thought it was some kind of weird option string for printf :)
Cool!
 
slm
says somethings missing: "Missing argument in printf at -e line 1."
 
3:26 PM
copy & paste problem, maybe? I actually ran that one!
 
slm
Returns the numeric value of the first character of EXPR
the compliment to it is chr
 
yep
or you could use unpack
 
slm
2 functions i never used either
yeah i wanted to try it this way
i've used pack/unpack for endian in the past
 
Yeah, I've been using Perl most every day for the last decade or so and I still don't know most, let alone all functions
 
slm
same as linux
 
3:27 PM
Huh, true enough, at Linux does not share the TMTOWTDI ethos
that's better for a language than a system I think :)
 
ord and chr are pretty uncommon. Mainly when you're dealing with binary formats. Just like pack/unpack.
@terdon Not sure about that. pdftotext v. pdf2text v. …
 
I know bash don't do this but zch does? askubuntu.com/q/347268/169736
 
Personally I never deal with that, my data tends to be nice and simple ASCII
@derobert true true, but not quite as dedicated to having multiple ways :)
 
@Braiam I agree, pretty sure bash has no such thing. Though I bet you could write a simple script to do it...
 
@Braiam yeah, I'd seen that question, I have no idea what he wants
WHat is he trying to do? cp foo bar/ && cd bar/ ?
 
3:30 PM
no
 
no, I think the tries to use the terminal as file manager
 
he wants to have a hypothetical cutfile and pastefile command such that:
$ cd /path/a
$ cutfile foo bar
$ cd /path/b
$ pastefile
@terdon I suppose so. That's why we fight editor wars, after all. There can be only one. (And its vim, btw)
 
NEVER! Everyone knows it's emacs!
 
You could only believe its emacs if you've spent way too much time talking to M-x doctor.
 
slm
vim
 
3:33 PM
Hey, he's not very good but at least we have a doctor, you guys just need one!
 
We don't need one, we don't dislocate our fingers wishing for a space-cadet keyboard!
 
And emacs has M-x butterfly, so there!
 
reallly?
 
Aha! You left off half of the buckybits!
 
3:35 PM
lol
 
It was actully implemented in emacs 23 or 24 I think, we actuually have Alt-X butterfly!
 
hah, what's it do?
 
Nothing of course :) worth a giggle is all
You run it and it asks:
Do you really want to unleash the powers of the butterfly? (yes or no)
You say yes => Succesfully flipped a bit
 
this is the best comment ever!
 
and the main buffer reads "Amazing physics going on"
 
3:36 PM
> So if you understand my problem, can you please look for a solution?
 
@terdon I was expecting something along the lines of apt-get moo
 
heh :)
 
@Braiam BTW: you can paste the link to a comment in chat, and it'll onebox (show inline)
 
@derobert contrary to what the help says... apt-get is not super cow :(
I know... but the other part is boring :(
@ Alex: I tried that. But nothing happens that can solve problem. I am a novice user, I don't have much knowledge about Ubuntu. So if you understand my problem, can you please look for a solution? — street7457 2 days ago
 
@Braiam its not a super cow, it just has super cow powers.
(unlike aptitude)
 
3:39 PM
@derobert you're getting into semantics there
 
there is a big difference! It could just have a super cow on retainer, for example.
Actually, I wonder what the history of that easter egg is...
 
No idea, mixed up with fortunes I would guess
 
Hah, maybe I should actually ask that on the site
 
man, I remembered just now why I don't check the First Post queue... keep my sanity...
 
@derobert go for it, stephane will probably give you the phone number of the guy who coded it
2
 
3:44 PM
LOL
 
:)
You guys have any ideas for this?
0
Q: WakeOnLan error

BilzardI've been working on a wakeonlan script, which worked fine, until now. Then program wakeonlan, which is not made by me, isn't functioning properly. When I use perl -w /usr/bin/wakeonlan I get this as output: Getopt/Std.pm did not return a true value at /usr/bin/wakeonlan line 10. BEGIN failed-...

 
@terdon I'd guess that the Getopt/Std.pm file is broken on his system
 
Yeah but that's strange. Why? He clearly does not code Perl
 
Who knows. Check its SHA256 against a known-good copy
 
Perl libraries usually end with the statement "1;" so that they return true. If something truncated that file, it could cause this error I believe
yup, I can reproduce the error by blanking my Getopt/Std.pm file
iserv ~ # wakeonlan
Getopt/Std.pm did not return a true value at /usr/bin/wakeonlan line 10.
BEGIN failed--compilation aborted at /usr/bin/wakeonlan line 10.
 
3:49 PM
he probaly is using a wakonlan script he found in internet without the perl modules installed fully...
 
@Braiam no, that would result in a different error message
namely this one:
iserv ~ # wakeonlan
Can't locate Getopt/Std.pm in @INC (@INC contains: /etc/perl /usr/local/lib/perl/5.10.1 /usr/local/share/perl/5.10.1 /usr/lib/perl5 /usr/share/perl5 /usr/lib/perl/5.10 /usr/share/perl/5.10 /usr/local/lib/site_perl /usr/local/lib/perl/5.10.0 .) at /usr/bin/wakeonlan line 10.
BEGIN failed--compilation aborted at /usr/bin/wakeonlan line 10.
 
@MartinvonWittich exactly, that's what was thinking
but you make a good point about its being corrupted
 
wow, download from anonscm.debian.org is going slow :-(
 
anonscm? that a debian repo mirror?
 
its one of their version control servers—it's where apt's git repository is
 
3:55 PM
OK, so debian-mirrors won't help
 
@MartinvonWittich you seems to know this guy askubuntu.com/q/348282/169736
 
@Braiam yeah, we resolved that issue here that he was having
 
Have you guys seen this? It's odd:
1
Q: Samba share permission denied user writing file but still shows

shrimpwagonVery strange issue... Samba share on remote: [javaerpm] path = /u/abas/erpm/java force user = erpm guest ok = yes read only = no writeable = yes Mount command on local using root: root@crunchbang:/mnt/abas# mount -t cifs -o username=guest,rw,exec,auto //10.0.0.2/javaerpm ...

 
want to post a answer in AU or we ask for the question to be delete
 
@Braiam Uh, I don't know. What's the usual thing to do in such cases?
I can of course just copy-paste my answer from UL to AU.
 
3:59 PM
If a question is crossposted on two SE sites, the normal proceedure is to delete one of them.
Flag for mod attention on one of the sites
16
Q: Should I flag cross posted questions?

terdonI recently came upon these questions on SU and U&L. I left a comment to the author on both posts linking to the meta.SE thread discussing cross posting. Should I also vote to close or flag for moderator attention? If so, under which category should such questions be flagged or closed?

 
mod has talked:
in Ask Ubuntu General Room, 36 secs ago, by fossfreedom
In these cases we can (and often do) post the answer ourselves (copy and paste) - dont forget to CW it since it isnt really your work. Indicate in the answer the source and that the OP indicates this was the solution for him/her.
 
OK, then I'll just copypaste my own answer
done!
 
0
Q: What's the story behind Super Cow Powers

derobertAs we know, apt-get has Super Cow Powers and aptitude does not: $ apt-get --help | grep -i cow This APT has Super Cow Powers. $ aptitude --help | grep -i cow This aptitude does not have Super Cow Powers. and of course, APT has an Easter egg to go with i...

I avoided creating a or :-P
Sending that message caused a power flicker, btw!
 
@derobert well done, that's self control that is!
 
I should not fake stories are acceptable, if they're convincing enough :-P
 
4:16 PM
@derobert:
$ for v in v vv vvv vvvv vvvvv vvvvvv ; do aptitude -"$v" moo; doneThere really are no Easter Eggs in this program.
Didn't I already tell you that there are no Easter Eggs in this program?
Stop it!
Okay, okay, if I give you an Easter Egg, will you go away?
All right, you win.

                               /----\
                       -------/      \
                      /               \
                     /                |
   -----------------/                  --------\
   ----------------------------------------------
2
 
yep
But no cows.
 
damn, the ascii art got screwed up
 
(and you need to hit the fixed-width button...)
 
Thanks
 
anonscm.debian.org/viewvc/apt ... is empty, but I think that used to be apt's CVS repository
 
4:18 PM
Zider writes:
It seems to be inspired by Final fantasy XI, where there is something called "Super kupowers".
 
That's clearly wrong
 
No idea, which came first?
 
nevermind, Wikipedia tells me FFXI is much older than I thought
cowandchicken.wikia.com/wiki/Supercow ... I'd guess that's more likely, though
 
Just looking at that yeah
 
Actually, Wikipedia tells me FFXI release dates are late '03 to early '04 for North America... so that probably is ruled out
Woody was July, 2002
Everyone should vote this up, so that (a) I can get tons of the all-important reps; (b) we can get Super Cow Powers on the Stack Exchange hot questions feed :-P
 
4:25 PM
:)
 
On an unrelated topic, if someone wanted to do a "I have a bad sector, what do I do?" question, that'd be awesome. A lot of the guides out there start with poking with dd, oblivious to any danger...
 
wassup with dis bug
the animal produced by "apt-get moo" doesnt really look like a cow: (__) (oo) /------\/ / | || * /\---/\ ~~ ~~ gentoos cow looks much better: ^__^ (oo)\_______ (__)\ )\/\ ||----w | || || perhaps we could adopt mouth: (__) (oo) /-----(__) / | || * /\---/\ ~~ ~~ I think this does not give up much of Debians identity, while looking much better. :D
apt (Ubuntu)
Wishlist / Confirmed
 
"FWIW, Gentoo's cow seems to be the same as the cowsay default. There doesn't seem to be any reason to downgrade APT to such mainstream cow technology." :D
 
> "How on earth can I trust a group of people that can't make an ASCII cow properly to make an entire OS?!? I'm going back to Windows."
 
Hah, I should have ended my question with cowsay output...
 
4:37 PM
mm... why since version 4.9.3 apt-get seems like an obituary?
 
@Braiam ?
 
@Braiam: 4.9 Important Events
 
ohhh...
 
slm
5:08 PM
@terdon almost fell out of my chair when i read that @terdon
 
@slm :) My guess is it was probably his goldfish who done it
Thanks for explaining the .SEQ thing by the way, you're quite right it is HEX
 
I did find out Ben Collins was once killed by OpenLDAP ... having used OpenLDAP, I believe it!
 
:)
 
slm
Perl skill badge!

Adafruit offers a fun and exciting "badges" of achievement for electronics, science and engineering. We believe everyone should be able to be...
ID : 1232
 
5:42 PM
Could someone vote to close this? It only needs one more.
0
Q: Multiple media convertions fail

PeterI have some of my CDs ripped to FLAC. Now, I want to rip them again in mp3. Since FLAC is lossless, I decided to run ffmpeg on them instead of the hassle to find the CDs, rip them etc. But I cannot! The directory on which I have the CDs is the following: /var/mp3/albums/Scorpions/ The Album...

 
@terdon done
 
slm
@terdon I did before, still need a 5th.
 
 
5 hours later…
10:22 PM
Time to go home... then start working on the NTP question...
 

« first day (1081 days earlier)      last day (3872 days later) »