« first day (1387 days earlier)      last day (3559 days later) » 

12:36 AM
@Braiam - he says: [gcc]'s not actually suggested for the kernel any more - so what is?
 
1:04 AM
maybe they are going to rewrite it in perl?
 
 
1 hour later…
2:12 AM
@Braiam What Linus said is that using gcc with -Os (optimize for size) is no good.
 
3:11 AM
grep "\d+" /Volumes/USB/Corpus/MaskedContracts_Pre_N/01-01-09-Maximus-Inc-Second-Amendment.‌​txt
I know the doc has numbers in it but the regex does not return anything
what am I doing wrong?
it is ox. \d+ == [:digit:]
 
4:10 AM
@casey Thank you, I think I get it now.
@Seth is that a dig at me? If so, it's pretty good. Still, if it's about that quote thing, I can't imagine why you would think the shell incapable of quoting itself. People are always specifying field separators for awk and perl - it's kind of weird to approve of that kind of thing and yet to utterly ignore the shell's own Internal Field Separator.
 
@akh2103 try grep -E
 
@mikeserv It was just a bad attempt at a joke on my part.
 
No - it was a good joke.
I laughed ...then I typed.
 
well I'm glad then :)
 
ditto that.
Anyway, if you're dubious about it, tell me why - because I am too. I don't want to run that kind of stuff because everyone seems to frown on it, but it's not the frowning that worries me - I don't need approval - it's the why. I don't want to blow anything up if I can help it, you know?
My own suspicion is that is frowned on because a lot of people consider the shell a stateful environment - and it totally sucks at that - but don't often try to use it functionally - statelessly.
My own opinion is that it does ok in that department.
@Seth ...but I'm still worried.
 
4:33 AM
Oh, sorry. I am completely oblivious of the previous conversation about the shell.
 
4:47 AM
@Seth - oh. that's what I thought the joke was.
Dang - that makes me doubly stupid.
 
no worries
 
@Seth - What do you think a perl gcc would look like anyway? Probably smaller, I think.
 
yeah, probably.
 
 
1 hour later…
6:02 AM
Yes! Google assures me I'm the first person crazy enough to attempt to use Net::DBus in a Catalyst webapp.
 
6:23 AM
Maybe I'm the first person crazy enough to use it, period. Let me call your attention to the wonderful tutorial here: search.cpan.org/~danberr/Net-DBus-0.33.1/lib/Net/DBus/Tutorial/…
Ok. Just kidding. Has the same "content".
 
6:49 AM
@derobert - what's that? something any sane person would have written in PHP?
Actually. - that sucked. Who thell uses Dbus in PHP??
 
@mikeserv Error. "Sane person" and "PHP" detected in same sentence on line 1.
 
still... honestly... ???
 
Who knows. But I need to talk to UDisks...
 
what is it?
Oh. Fuck. Yeah, dbus.
 
Part of that pool system thingy. In order to avoid having people to have to use the scary command line, it has code to backup to a USB stick integrated.
 
6:52 AM
There are two cli interfaces, if it matters.
 
Yeah, seems easier to not try and parse the output of the CLI.
 
hey guys
 
udisksctl dump seems like a format best not parsed...
ESC[1mESC[34m/org/freedesktop/UDisks2/Manager:ESC[0m
  ESC[1mESC[35morg.freedesktop.UDisks2.Manager:ESC[0m
    ESC[37mVersion:ESC[0m            2.1.3
 
yeah
 
seriously, it automatically sees "oh, I'm on a terminal! I should add color escapes!" and also "oh, I'm on a terminal! I should pipe to less!"
 
6:54 AM
Oh gee - thats colorized
just turn it off
 
Forgetting that by default less doesn't parse color escapes
$ udisksctl dump --help
Usage:
  udisksctl dump [OPTION...]

Show information about all objects.
Your guess is as good as mine about the option to turn that BS off.
 
you could do udevadm maybe.
ahhh... you could swap >&2/1
 
I've figured out how to use it in terminal. Say you don't want it to pipe through less, but do want color. Then you'd do this:
PAGER=cat udisksctl dump
 
Maybe. my udisksctl doesn't colorize...
Dude - it's man.
Or something.
 
@mikeserv It's a new feature they added recently
@mikeserv Its manpage doesn't think dump takes options.
 
6:57 AM
Who adds screen color to anything ...ctl
?
That's insane.
 
Not only that, it's a different format!
/org/freedesktop/UDisks2/mdraid/ea129b75_87aa8ce6_c880d84d_a6bfcedc:
  org.freedesktop.UDisks2.MDRaid:
    ActiveDevices:              [('/org/freedesktop/UDisks2/block_devices/sda3', 0, ['in_sync'], 0, {}), ('/org/freedesktop/UDisks2/block_devices/sdc3', 1, ['in_sync'], 0, {}), ('/org/freedesktop/UDisks2/block_devices/sdb3', 2, ['in_sync'], 0, {})]
    BitmapLocation:             +8
    ChunkSize:                  524288
⋮
 
Anyway, there's also all of the dbus stuff. like dbus-monitor and etc.
That was the second one I was going to mention.
 
/org/freedesktop/UDisks2/mdraid/ea129b75_87aa8ce6_c880d84d_a6bfcedc:
  org.freedesktop.UDisks2.MDRaid:
    ActiveDevices:              [('/org/freedesktop/UDisks2/block_devices/sda3', 0, ['in_sync'], 0, {}), ('/org/freedesktop/UDisks2/block_devices/sdc3', 1, ['in_sync'], 0, {}), ('/org/freedesktop/UDisks2/block_devices/sdb3', 2, ['in_sync'], 0, {})]
    BitmapLocation:             +8
Ok, that didn't come across right in chat. If you pipe it to something, it uses different spacing than when it is just displaying it
 
and I thought of the third - udevadm - while looking at all of this crazy. But if you have an API module...
Still, I've looked at the dbus API...
I would probably parse the escapes...
 
udevadm is a completely different thing. I need to talk to UDisks to actually mount the drive.
 
7:00 AM
At least they're predictable.
But you need it to do it based on a rule or something right?
 
#!/usr/bin/perl -w
use strict;
use 5.018;

use Net::DBus;
use Data::Dump qw(pp);

my $bus = Net::DBus->system(nomainloop => 1)
	or die "no system bus";

my $ud2 = $bus->get_service('org.freedesktop.UDisks2')
	or die "no udisks2";

my $ud_obj = $ud2->get_object('/org/freedesktop/UDisks2', 'org.freedesktop.DBus.ObjectManager')
	or die "no udisks2 object";

my $res = $ud_obj->GetManagedObjects();
pp $res;
that's a full program that'll grab the same info as dump, basically
So the API isn't that bad.
 
Ok. You've already got it locked.
But what does it have to do with the tutorial? Or did they just require you register with CPAN in order to say hi?
The dbus domain thing...?
 
I was making fun of the tutorial for not being there.
 
oh....
funny.
 
"This document provides a tutorial on accessing a DBus service using the Perl Net::DBus application bindings. Sadly it is not yet written." ... excellent tutorial.
2
 
7:06 AM
yeah. I was hoping you were going to write it. I've looked at the dbus API.
 
well, I guess I basically did... that example I posted above works.
 
what is DBus?
 
D-Bus is a free and open-source inter-process communication (IPC) system, allowing multiple, concurrently-running computer programs (processes) to communicate with one another. D-Bus provides the following functionality: communication between desktop applications in the same desktop session; to allow integration of the desktop session as a whole, and address issues of the process lifecycle communication between the desktop session and the operating system, where the operating system would typically include the kernel and any system daemons or processes Heavily influenced by the DCOP system used...
 
7:22 AM
dbus is the layer of permissions abstraction that redhat added to in-kernel ipc so they could do it easier in userspace
then it ate them
now they want it in-kernel
 
7:38 AM
Bedtime. But tomorrow, it gets worse! I get to figure out polkit (beyond the obvious dpkg --purge). And there do not seem to be docs for it (the only docs I see on freedesktop.org are for writing programs that use polkit, not administering it), only random distro wiki pages with hints. And for bonus suffering, there are a lot of things referring to the old PolicyKit that get mixed in!
 
yay
 
anyway, it's well after 3 am. Bed!
 
night
 
7:50 AM
@mikeserv: I'm here.
busy weekend with my family.
 
@Gnouc - great! But... I forgot what I was going to say.
How's your family?
 
Ah, I'm single.
My family has my parents and my younger sister.
 
hmm... how are they? I hadn't actually assumed any specifics about them, though. just making conversation since I dragged you in here for no other reason, apparently.
 
My parents are middle-aged, they are very funny and love me. My younger sister is still a child, she's 11 years old, very naughty.
 
that is a very warm and fuzzy couple of sentences
 
8:03 AM
Yeah, in my country, often three generation live together in a family. I heard that the western countries often have one.
 
@mikeserv social time? :-)
 
@Gnouc - often true, perhaps to our detriment. Manifest destiny and all that.
@FaheemMitha - cheers!
 
@mikeserv Manifest Destiny? Good grief. What happened to the reply thingy? Viva La Revolution!
 
I guess I preferred a more lasseiz-faire approach.
 
8:22 AM
@mikeserv You should embrace that Brave New World.
@Gnouc how are things in Vietnam these days?
 
@FaheemMitha: It's often rainny and so hot. I have never gone abroad, a cold country.
 
@Gnouc Ok. I meant economically and socially, though.
 
Maybe in near future, when I have enough money :))
 
@Gnouc you too should embrace the Brave New World of the reply thingy.
 
Oh, it's too bad.
 
9:01 AM
Is it worth it getting rkhunter for a purely dekstop machine?
 
@Nick what is rkhunter? a little more context, please.
 
@FaheemMitha root kit hunter
 
@Nick Well, Ok.
Doesn't seem like something we can usefully offer an opinion about, though.
 
9:20 AM
Wow, lots of rain here.
 
 
5 hours later…
1:54 PM
yo does anyone know what does ip address in bind refer to? am setting up my local dns server centos running on virtual machine
 
 
2 hours later…
4:02 PM
Just randomly came across this, but shouldn't it be here?
1
Q: The difference between a binary and a source package in Ubuntu/Debian?

PrussianThe information below seems misleading. I am confused with the example they give that if you lose dpkg (the program that lets you handle .deb files) you can use the other commands ar, tar, and gzip commands to download the .deb file for dpkg istself? If this is true, what is so special about dpk...

 
 
5 hours later…
8:43 PM
it's possible this one would be a better fit here too
0
Q: Creating a debian package that depends on libcudart.so.6.0 from cuda-core-libs-6-0

LemmingI try to create a Debian package for a program that depends on libcudart.so.6.0. The debuild script aborts with: dpkg-shlibdeps: Fehler: Bibliothek libcudart.so.6.0 konnte nicht gefunden werden, benötigt von debian/myprog-cuda/usr/bin/myprog-cuda (ELF-Format: »elf64-x86-64«; RPATH: »«). dpkg-s...

 
@FaheemMitha migrated
@FaheemMitha yeah, why not
 
9:26 PM
Is there anyone at the SO side that tries to migrate questions here?
 
@FaheemMitha moderators can migrate
 
@Braiam To any other site? My main question is whether there is anyone looking out the SO end.
 
@FaheemMitha you can flag and ask for migration
 
@Braiam ok.
@FaheemMitha Done for this one
 

« first day (1387 days earlier)      last day (3559 days later) »