« first day (1701 days earlier)      last day (3257 days later) » 

12:26 AM
0
Q: Is there a way of listing all the instances when a particular file was modified/edited?

3kstcI currently have a file abc.txt. I am curious to know if it is possible to see all the instances when this file was edited, from the date it was created? Q: How can I make it possible [if I would like] to see the backlog of date & time for when the contents of a particular file (abc.txt) was edi...

 
 
1 hour later…
1:46 AM
'dough! Once again, I came by and three comments before @hbdgaf left a mark.
@ByteCommander lol. I remember being greeted on new year for the same reason.
@hbdgaf nice cast. There's eastwood, but not that eastwood ;)
 
o.O
...interesting. I like :D
 
@RPiAwesomeness yeah, quite interesting tune
smart windshield technology ^
 
 
4 hours later…
5:41 AM
0
Q: DNS Issue in ubuntu 14.04

Kavin ChauhanI am facing DNS resolving issue sometimes in my Ubuntu 14.04.2 LTS trusty. I have configured my system with network manager to work with static IP assignment. I have also tried by changing DNS server address but when this issue occurs I can't access any websites via URL but I can access via IP o...

 
 
1 hour later…
6:56 AM
0
Q: Disable PAM login but keeping landscape-sysinfo y motd

userRunning Ubuntu Server, I have no need for PAM login, and thus disabled this service in the sshd_config file. However, oddly, there is some login info that is only displayed if you enable PAM logins (but the info is unrelated to PAM). See: https://askubuntu.com/questions/7949/where-does-the-system...

 
 
2 hours later…
9:05 AM
0
Q: tool/ways for converting .db file from big endian to little endian in linux machine

purnendumaityWe have an "example.db" database file from a Solaris machine which has big endians. This database is proprietary not an Oracle/Sybase/MYSQL so no possibility from that end. How this file can be correctly converted with little endians so that it can be used in a Linux(Ubuntu) machine.I know there ...

 
user136984
9:28 AM
What is it with these bloody advertisers?
 
user136984
Don't they realise that if they spam that nobody will want to go to their sites?
 
@ParanoidPanda: No?
If they had any actual talent, do you think they would be selling wierd 'herbal' remedies and penis enhancement?
 
user136984
But if someone later on was to see a link to their site, they would be less likely to click it, so what's the point, you are just deterring people?
 
user136984
:D
 
user136984
@JourneymanGeek: Oh, have we had any of the second here? :D
 
9:30 AM
seen a few on SU
 
user136984
Really?
 
user136984
:D
 
yup yup
 
user136984
Well, I feel very good now that we don't allow users with low rep to add images! :D
 
user136984
@JourneymanGeek: Why do we allow users with low rep to post any links at all anyway?
 
user136984
9:35 AM
Because somebody could accidentally click on one of those and get to a malicious website...
 
user136984
@JourneymanGeek: Oh, by the way, do you know how one would go about dividing one base 64 number by another base 64 number without switching to another base? :)
 
user136984
What?!
 
user136984
More spam! >:{
 
10:00 AM
@ParanoidPanda: use a computer.
Also the links here are nofollow anyway, and does them no good. They're just dumb
 
user136984
By the way, when using tar (and not compressing) is any data lost?
 
user136984
@JourneymanGeek: Yes, but how do I use a computer to do that? I haven't come across any obvious calculation software which deals with other bases.
 
Good question
@ParanoidPanda: tar shouldn't lose data. It just sticks everything into a single well understood file
(You're asking a dog about math?)
 
user136984
Good
 
user136984
:D
 
10:10 AM
 
user136984
A dog wearing what appears to be a bandanna around its neck!
 
user136984
(Most of the time anyway.)
 
user136984
:D :P
 
user136984
Aww...
 
user136984
That is so cute! :D
 
user136984
10:11 AM
Anyway, how would I convert in base 64?
 
(I have that as a bot command on SU. And tend to use it when people ask me programming numbers)
 
user136984
@JourneymanGeek: You have a dog as a robot?
 
1
Q: Adding two very large numbers represented as base64-encoded strings

BenI have very large numbers, and decided to represent them with base64 strings in php. I was wondering if anyone knows of a library (or built in system) to work with base64 as numbers (aka add, subtract, multiply, divide, etc)?

 
user136984
Thanks! :)
 
Naw, SU has its own bot, and there's a !!baroo command. or should be ;p
 
user136984
10:15 AM
:D
 
tar I know about.
tar basically does the same as a Tape ARchive
 
user136984
@Flyingsheep523: Why did you decide to become a sheep? Especially a flying one?
 
user136984
10:33 AM
@JourneymanGeek: Anyway, that answer above only really told me why I can't do it, not how I can, and the way they tell me to do it I have already been through, and it failed...? :(
 
Morning.
 
user136984
@ByteCommander: Morning! Still stuck with me problems! :D :P
 
I'm debating getting a wallabag instance up
Not sure where yet (home, space VPS or the container a friend hosts for me)
 
@ParanoidPanda i chose to be a sheep because i love sheep.
 
user136984
@ByteCommander @Serg @kos: Apparently I might be using base 16 after all! :D
 
10:45 AM
@Flyingsheep523 In certain parts of the world, that might be entirely misinterpretted
 
Hm? What's wrong with sheep?
 
user136984
@JourneymanGeek: Oh yes, I have heard that some people see a different meaning when 'sheep' is said, but I have never understood what and why... :D
 
user136984
Would you care to enlighten us?
 
user136984
:P
 
Oli
Some people love sheep, some people allegedly love sheep. I don't think anybody needs to draw a diagram.
 
10:48 AM
And some people are welsh ;p
 
And @ParanoidPanda:
15 hours ago, by ByteCommander
What do you want to achieve???
 
And they might actually truely love sheep.
 
That works with many other kinds of animals too...
Like cows.
Or dogs.
 
user136984
@ByteCommander: I want to understand what some people have got against sheep, especially the Welsh! What, are they, sheepist???
 
user136984
:D
 
user136984
10:52 AM
@JourneymanGeek: Seriously though, what's this about the Welsh hating sheep?
 
user136984
I am very confused now!
 
No idea about Welsh.
I am German.
 
Hate? No, Love. Actual Love.
(actually the story behind it is interesting. Apparently you'd lose a finger for sheepshagging, but a hand for sheepstealing so...)
 
And I have nothing more to do with them than that I sometimes appreciate their wool when it is converted to a nice pullover.
(them == sheep, not Welsh!!!)
@JourneymanGeek I regret entering that word into leo.org... :-/
 
sheepshagging shaggy sheep?
 
10:58 AM
:D yes.
 
(I should be sheepish for that baaaad joke)
 
One reason to prefer wolves over sheep.
Nobody will try doing that to a wolf. :)
 
why are so much people against sheep they are harmless :) they graze on grass peacefully and do no harm they are so friendly
 
Not against sheep.
Just... not amused about what people could do with sheep...
 
11:07 AM
I bet nobody will even have the thought of trying the same with wolves...
 
deadly 60??? maybe they have tried it they are godamn crazy
 
No idea what you're talking about...
 
ok getting out of this chat room
 
Bye! o/
 
11:26 AM
0
Q: NUM-Lock LED state does not correspond with internal state after boot (15.04)

ByteCommanderSummary: After boot and login, my keyboard's NUM-Lock LED is off, but the numpad is working, so the internal state is on. If I start press NUM-Lock, the LED stays off and the numpad gets disabled, the next press turns both LED and numpad on again. So the LED works and corresponds usually with the...

Any ideas on that?
 
[ SmokeDetector ] Blacklisted website: How To Get Fair And Beautiful Skin by HelenHess Hess on askubuntu.com
 
@SmokeDetector Pretty slow, Smokey. That one is already gone...
 
kos
11:56 AM
@ParanoidPanda So what's the next step now? Dividing the base16 number I guess
 
user136984
@kos: Yes, so I have got the hexdump of it, and I know what the number I am dividing it by is in hex. So now I just need to figure out the value I get when I divide the hexdump from the file by the hex number I have.
 
user136984
And just figuring out now how to do that...
 
user136984
Will probably use bc or something...
 
user136984
But still not sure the best way to divide the contents of an entire file...
 
user136984
But I guess I just put in some extra stuff and let bc work its magic!
 
kos
12:00 PM
Can you divide each space separated number from the output of hexdump? That would be easier
 
user136984
There is no space separation.
 
user136984
Nor line separation.
 
kos
Hm? In my hexdump output there are spaces and newlines
 
user136984
Well, I asked it to get rid of them.
 
user136984
As it is easier for me to work without them currently.
 
user136984
12:02 PM
For what I need anyway.
 
16 hours ago, by ByteCommander
What do you want to achieve???
 
user136984
Oh dear... What's the best way to tell it to add a new line at the beginning of a file?
 
kos
The problem is that way you have an enormous number. I'm not sure how you can handle this
@ParanoidPanda Try < inputfile sed -r '1 s/^(.*)$/\n\1/' > outputfile
 
user136984
And I need the new line to be "ibase=16".
 
user136984
But it has to be on a new line just before the number.
 
user136984
12:08 PM
For bc.
 
kos
Then < inputfile sed -r '1 s/^(.*)$/ibase=16\n\1/' > outputfile
 
user136984
Right, well I am currently calculating (as I inputted it manually) the result of part of it... So will try that in a moment.
 
user136984
@kos: Is there a better way to do this calculation and still get the same result?
 
kos
@ParanoidPanda I don't know which calculation you're talking about
 
user136984
@kos: I am getting a hexdump of the file as one large hex number. I need to then (keeping the original number) figure out what the answer is when I divide that massive hexdump resulting number by a smaller number.
 
user136984
12:14 PM
And the number being divide is in hex, and so is the number I am dividing it by
 
user136984
So is there an easier method than what I am doing?
 
kos
Ah ok so always the same thing.
How are you calculating the result? By hand?
Because I'm unaware of a tool which can divide in base16
 
user136984
@kos: I'm using bc as I said.
 
user136984
And it calculating...
 
user136984
Just taking a very very long time... :D
 
user136984
12:21 PM
So I'm wondering if there is a quicker method?
 
kos
@ParanoidPanda I didn't know it can do base16 also. Anyway no, no idea. It's a massive number though
 
user136984
Anyway I can break it up into smaller chunks?
 
kos
@ParanoidPanda That's what I suggested you to do earlier. You can take use the format of the output of hexdump directly, but you'll need to write a script.
 
user136984
12:36 PM
Can I choose how many values it groups together?
 
user136984
Well, it currently, what, groups 8 numbers together, how can I change that grouping? Or can I not?
 
kos
@ParanoidPanda Anyway if I can be honest, I still don't understand the purpose of this, I think you're overcomplicating whatever you're trying do to. I know that you want to divide a base16 number for another, but what's the purpose of such output? I'm positive there's a faster way to achieve your very final result without going through all this complications. Is this just an exercise?
 
user136984
@kos: I'm sure that there is a better way, I am thinking of it now, I think that if I just use smaller groups and change the equation a bit I can get it to do what I want in less time.
 
user136984
And no, this is not just an exercise.
 
user136984
@kos: So am I able to change the grouping of the numbers I get from the hexdump?
 
user136984
12:43 PM
Because that might be a way of making this faster.
 
user136984
If I just do something special with those numbers instead.
 
[ SmokeDetector ] Bad keyword in body: Although my question is scientific by Williams Chartier on askubuntu.com
 
kos
@ParanoidPanda There's for sure a tool for that, but I don't know what that is
With a delimiter I could have suggested something
I think read from bash can read 1 byte at the time, you can work out a script if you don't find anything
Which is better, an empty tag-wiki excertp or something like this? askubuntu.com/review/suggested-edits/420521
I'd reject it and wait for a proper one
Not sure if that's the best thing tough
No ok, there's not much to say actually. After all I think it should be approved like it is
 
1:36 PM
0
Q: Pasting with vim squeezes content in between previous content and margin

sjbuysseI'm learning my way around the vim and got around to copy-paste. Or yank-paste. Now when I try to paste a yanked piece of text, it pushes previous content to the right and squeezes in on the left. I took 2 screenshots to show you what behaviour I mean. And before pasting: after pasting: I d...

 
yo yo everyone!
 
2:20 PM
Can someone reject this edit for me, I'm on mobile and can't get the reject popup to show: askubuntu.com/review/suggested-edits/420569
@JorgeCastro Long time no see!
 
On it
@Seth Wait...why?
Too minor?
 
@Seth yeah sorry I lost my .desktop shortcuts and this was one of them and then next thing I know it's been months
 
Conflicts with authors intent @RPiAwesomeness.
 
Ah
Done :)
 
No need for a screenshot, certainly not that big and at the top of my answer ;)
 
2:22 PM
Yap
 
@JorgeCastro Oh wow. Can't say I don't know what that's like. Glad you're back!
 
kos
Is there a reason why find is preferable to ls in this case? askubuntu.com/q/628923/380067
 
PING @terdon (85695) 56(84) bytes of data.
64 bytes from 85695: icmp_seq=1 ttl=53 time=55.4 ms
64 bytes from 85695: icmp_seq=2 ttl=53 time=73.9 ms
64 bytes from 85695: icmp_seq=3 ttl=53 time=44.5 ms
64 bytes from 85695: icmp_seq=4 ttl=53 time=86.0 ms
--- @terdon ping statistics ---
4 packets transmitted, 0 received, 100% packet loss, time 3004ms
rtt min/avg/max/mdev = 44.520/65.013/86.075/16.082 ms
 
o.O wat
 
You pang?
 
2:30 PM
@terdon: Ping pong ;-)
 
I pang you to tell that here (askubuntu.com/questions/628949/…) the best solution would be base64 ¿no?
@terdon I pang you to tell that here (askubuntu.com/questions/…) the best solution would be base64 ¿no?
 
@Helio Don't really know. I guess so but I have very little experience with that kind of thing.
 
@terdon: I have less, sure.
@terdon: I even don't know if he can access to a shell using minicom.
@terdon: If he can access to a shell, he could run something like:
 
@kos find is ALWAYS preferred over ls
 
2:35 PM
@terdon: base64 -d <<EOF > output
 
basically parsing ls will break if files have special chars in their name
 
@terdon: TXkgQmluYXJ5IENvbnRlbnQK
EOF
 
kos
@Rinzwind Sure, but in that case there's no parsing to do, so I'm wondering if there's a reason why find should be preferable regardless for other reasons.
 
@kos learned behaviour ;) if you use ls you will one day believe you should use it when you should not.
 
@Rinzwind Thanks. That question cause quite a bit of drama at the time.
@Helio How would that go over the serial cable?
 
2:43 PM
I can tell from the comments _O-
 
@terdon Here is the question.
@terdon: Example.
@terdon: echo 'cat <<EOF > file' | sudo tee /dev/serialport
 
@terdon unix.stackexchange.com/a/129447/10017 damn just found that _O-
 
kos
@Rinzwind Sure, I always use find either, but as far as I know find doesn't have a built-in sort feature, while ls has, so in this very particular case I tought it would have been preferable to run 2 commands instead of 3. Still this made me wonder if for some reason find would be preferable regardless
 
@terdon cat file | sudo tee /dev/serialport
@terdon echo "EOF" | sudo tee /dev/serialport
 
@kos I say: use the tool that works for the occasion :D If its ls use ls :)
 
kos
2:48 PM
@Rinzwind Yeah, just wondering if someone has an objection to that answer
 
Oli
 
hey boss \o
 
kos
It seems like Oli has one
 
Yeah I am expecting his next post to be long and to convince you to not use ls >:)
 
Oli
Oh, no, I just saw the the word "objection" and that happened.
 
2:57 PM
tsk
 
@Rinzwind Umm...
@kos what if the file names contain newlines?
 
WHY are people no longer using the "files" tag :( I still need 4 upvotes :*
 
kos
@terdon Does ls on its own break on newlines?
 
@kos bash does.
 
@kos Not on its own but the sort will.
 
3:02 PM
^^
 
kos
@terdon Sorting using ls' built-in sort?
 
@kos tail -n 1 breaks on files with newlines in their names.
Basically, ls is for viewing, not parsing. The only valid case for parsing ls is dealing with inodes, not file names.
 
you tell him!!
and I am going home :D
 
@terdon: tail -n 1 is the same as tail -1
 
@Helio Yes, I know. So?
 
kos
3:07 PM
@terdon Hmm if I remember ls formats its output using an external library, right? So despite newlines not breaking lines on his output there might be some which will break tail, is this what you're saying?
 
@kos Yes, tail -n 1 will print the last line, that's the second line of a two-line file name.
 
kos
@terdon Ok, I deleted my answer. This is due to the fact that ls formats its output in a particular way, right? Because apparently newlines are only at the end of each file / folder listed.
 
@kos That's because ls will list what it sees. Try this:
touch foo$'\n'bar
ls -ltr | tail -n 1
That will only show bar, not foo?bar which is what it should show.
 
Oli
I feel like a lot of the blood shed over parsing ls would have been saved if filesystems picked a saner selection of characters. I don't think I've ever needed to (or seen a reason to want to) use a newline in a filename.
 
kos
@terdon Sure. I was wondering about how newlines are passed to stdout but ignored while printing, I remember having read somewhere that ls uses an external library for that
 
Oli
3:20 PM
But I guess that horse is out the barn now...
 
kos
In the same way newlines are showed as spaces while running plain ls if you want
*tabs not spaces
 
@Oli agreed.
 
@terdon tail -1 is shorter ;-)
 
@Helio But not portable. And new. I just saw it works but it didn't used to.
 
kos
Looks like the chosen criterium is "to not allow characters that are needed for something else", rather than "to allow only characters which are actually useful", which per se is good, since you're touching as least as possible, altough I totally agree that very unlikely someone will need to use a newline in a file / directory name
 
3:30 PM
^^
15
Q: Newlines in filenames

jasonwryanI understand and accept the premise that defensive1 shell scripting is both prudent and, in the longer term, more sustainable. Many of the answers to text processing questions here follow this principle by building into the answers contingencies for unorthodox filenames; that might contain space...

 
@kos yeah, that is good. All the times I've tried to put : in a Windows filename..
 
kos
4:00 PM
@Seth In think it is in the filesystem's perspective, because it leaves the widest range of characters as possible to the user (the O.S. in this case). How the O.S. is going to use this it's another (true) story. I'm positive there won't be a standard for this
This is something indeed well done, but is it too long for a tag-wiki? askubuntu.com/review/suggested-edits/420595
 
4:19 PM
He @Fabby, where are you?
 
4:35 PM
o/
 
Tim
@Seth just wanted to apologies to you in a less formal manner, it won't continue, and I apologies for wasting your time this morning.
 
user136984
4:49 PM
What is vmi18447.contabo.host?
 
user136984
@Serg: I've got a really really really insanely large number that I need to divide by a much much smaller number in comparison to it, but the program is taking too long, do you think that there is a way of splitting up the problem and breaking it down a little?
 
user136984
@kos: Also, about the other problem, how do I create a custom image format?
 
user136984
Is there anywhere where I can read up on this sort of thing?
 
@ParanoidPanda first thing that came to my mind is modulo operator, but that thing can't be reversed
 
user136984
4:58 PM
If it can't be reversed without loosing data, or at all, then it is no good for me.
 

« first day (1701 days earlier)      last day (3257 days later) »