« first day (1255 days earlier)      last day (4012 days later) » 

22:00
ok
come out of that
debuginfo-install ncurses
might not work being statically built but worth a try
Are you still trying to make that mview shit work?
@MichaelHampton @ewwhite's masochism knows no bounds
@MichaelHampton Client says it's worth a certain amount of $ to them.
Polishing turds. Thats my forte.
(or he's progressing into sadism and enjoys abusing @MatthewIfe)
22:01
I'll need to give @MatthewIfe his share.
oh ugh... debug info repos...
one moment
Some serious sysadmin shit going on in here.
Well, its worth it if this MASSIVE HACK actually works.
@MatthewIfe It's pulling the glibc debug info... I'm wondering if I should move to the development server.
what are you guys doin
dont actually need any of the other debuinfos tbh
it might whine about missing symbols but we dont need all of them
22:06
@MatthewIfe I'm not sure there's an nurses debug info...
digging
Thats why you should use scientific linux ;)
Comes with all source packages and debuginfos
@ewwhite Have you been typing "nurses" into xvideos a lot lately? I think you mean ncurses ;)
for the record, this trick does work in iptraf. But not sure how itll behave with a statically built binary
@MatthewIfe I found the corresponding debug info from Oracle Enterprise Linux
hmm, may not work
builds a checksummed
also.. may not work anyway as it could depend on what static lib they built ncurses with
22:11
versions match... I'll check to see if I can find elsewhere.
ncurses-debuginfo-5.7-3.20090208.el6.x86_64.rpm
got it
Do you guys ever leave this tab opens and it accumulates a half-day's worth of filth messages and almost crashes your browser
@MatthewIfe Trust me you're not the only gig in town.
@MatthewIfe Installed.
22:16
ok.. lets try this again :-\
run db
in another shell gdb --pid=<pid>
Guys is CentOS dead
call get_escdelay()
@JoelESalas no?
(gdb) call get_escdelay()
No symbol "get_escdelay" in current context.
@Jacob Is there a better distribution I should be using for new-ish applications and deployments
22:18
@JoelESalas no, it was dead a few years ago... but it's holding okay now
@JoelESalas not at the moment
@ewwhite Not even Ubuntu??
@JoelESalas On the stability front CentOS is still your best option. If you want to fly by the seat of your pants Go Ubuntu and never have a goodnight of sleep again!
can you pastebin the results of
@Jacob I was thinking Fedora for newer app servers..
might be big.. readelf -s /path/to/bin/of/dbc
22:21
@JoelESalas I have some thoughts on Fedora...
@MichaelHampton Go on :)
2
A: What is the problem with using Fedora for servers?

Michael HamptonI thought I didn't have anything to add to this, but after having run Fedora in production for nearly a year - for my very important Zabbix monitoring system! - it seems I do have a couple of things to say. First, it was not my first choice. Typically for anything even vaguely important I will c...

@MatthewIfe pretty verbose
I imagined as much :)
You have exceeded the maximum file size of 500 kilobytes per paste. PRO users don't have this limit!
:)
22:24
I downvoted and VTC'd this guy...if you disagree fine, but the guy is a maroon...
-1
Q: Remote Desktop Connection Windows 2008 Server

hoskerI am trying to re-enable Remote Desktop Connection ability to a windows 2008 server after I accidentally disabled it. I know the IP address of the server where it is installed. How would I do this via SSH or another computer on the network. I really need to get my access back to the server admin ...

@RobM For a test environment, with up to 5 users, there's no way it's going to need (let alone, use) the 12 vCPUs and 48 GB RAM they're asking for. And if it does, then I don't want it on my freaking ESXi host cluster. They can quarantine it on its own servers, preferably not even connected to the same network as the rest of our servers.
@MatthewIfe looking for something specific?
Want to see what symbols it exports
regarding curses
@JoelESalas TL;DR: In the case where you absolutely need more current versions of software not available in a more "enterprisey" distribution, and you can accept the tradeoffs, then there is nothing wrong with using Fedora.
22:25
which doesnt seem to have any useful prefix on its functions
which is irritating
@MatthewIfe not easily searchable
well you can grep fo escdelay
@MichaelHampton That's my philosophy in general, only problem being that it also holds for Ubuntu Server which I fucking hate
see if anything comes up
@TheCleaner Well, I agree with the downvote.
22:27
@JoelESalas @MichaelHampton Sums it pretty well. Getting any down time is damn near impossible for me, so CentOS really shines there. I would use it if I really needed bleeding edge, but get ready to upgrade a lot. fedoraproject.org/wiki/Server
@MatthewIfe Only halfdelay, delay_output and nodelay
@Jacob Yeah, but the thing about that is, a Fedora upgrade can be less downtime than a CentOS reboot.
we're only just turning off the last of our 10.04 vms
I thought they were all dead, but there were a couple hiding out
@ewwhite it may be worth just checking at this point we will actually find our issue doing this.
22:28
@MichaelHampton Besides, cPanel isn't supported on Fedora.
@JoelESalas That's the general reason people switch to Ubuntu when RHEL gets to be two or three years old. But Ubuntu is hardly comparable to Fedora in any other way.
@MichaelHampton I'm just over here rolling CentOS packages, lusting after docker, and seriously wondering why Fedora wouldn't work in our fast paced, scrap-and-rebuild environment
Try stracing the db program again, this time using strace -p<pid> -e read,write,select
@Jacob Seems like someone would care enough about Linux not being a steaming pile of suck to make sure cPanel isn't supported on any distro...
@MatthewIfe with mview?
22:31
@JoelESalas It probably would. Hell, Docker is available in Fedora already.
Try without for now
@MatthewIfe k. It's moving quickly
yeah
does it pause if you produce no input
@HopelessN00b it continues to go downhill with his comments
yes, it waits
22:32
ok
bring up a window you can press escape on
this is a a bit diryt.. but press enter a few times to leave a noticable gap in the shell
then press escape
scroll back up to your gap to see what happened
@JoelESalas yum install docker-io and have a ball.
@TheCleaner Yeah, I could have told you that without even reading the comments, though. Probably most of us could have too.
@MatthewIfe just menu data...
no select inbetween?
22:34
assume you did -e read,write,select ?
my traces show select
no selects at all
in iptraf anyhows
@hosker Yes, you have to format the command correctly. Which the linked article shows you how to do. — HopelessN00b 17 secs ago
=D
@HopelessN00b :) scary enough, I think he might be asking if x.x.x.x is the right format for the IP address. I'm not going to keep feeding him though...
if you launch it via mview does that produce selects?
22:37
let's try
that 1 sec delay thing is very much a select system call
@HopelessN00b all things considered...it's better than the guy with the bounty arguing with me that Exchange should work like Google Apps does.
@TheCleaner Yeah, user is hopelessly clueless. No point in even trying to help at this point.
@TheCleaner Missed that one... sounds like a good example of why I don't bother with bounty questions, though.
@MatthewIfe I'm filtering on -e select now...
2
Q: Office 365 routing of internal domain messages

gbegleyOur office uses both office 365 and Google apps. We were on Google apps first, and decided to give office 365 a try. Some folks liked it, some did not, and want to revert back to Google apps for mail. We currently have our MX records pointing to Google apps and a routing rule sends all messages ...

22:39
Process 56620 attached - interrupt to quit
--- SIGALRM (Alarm clock) @ 0 (0) ---
--- SIGALRM (Alarm clock) @ 0 (0) ---
that the dbc process or mview?
@TheCleaner Oh, I was wrong, I saw that one. Just before the arguing, I guess.
that's the result of hitting escape twice under mview
and tracing dbc?
i.e tracing dbc that was spawned in mview, not trying dbc as a fresh instance.
@MatthewIfe doing DBC alone produces no select output....
and yes, tracing the DBC spawned from mview.
22:41
@JoelESalas If you're seriously interested, there's a newly formed Fedora Server SIG as well as the more established Cloud SIG the latter of which is of interest if you are using docker.
Well -- thats pretty weird.
Ncurses over here uses select quite a lot.
Thats how escdelay is done in fact using select as a timeout.
Maybe really really old versions of ncurses dont use it?
here, the delays are all --- SIGALRM (Alarm clock) @ 0 (0) ---
hmm.
can you try tracing dbc again
but this time, do strace -fp
without mview?
strace -fp <pid> -e select. with mview
It may be spawning children that have the terminal window foreground.
22:44
[root@Procacci ~]# strace -fp 4738 -e select
Process 4738 attached - interrupt to quit
--- SIGALRM (Alarm clock) @ 0 (0) ---
--- SIGALRM (Alarm clock) @ 0 (0) ---
--- SIGALRM (Alarm clock) @ 0 (0) ---
--- SIGALRM (Alarm clock) @ 0 (0) ---
single-threaded processes...
ok back up a step. Tracing mview with read/write
do strace -tt -e read,write path/to/mview
do the escape thing
I did a full trace and am searching around the alarms...
see if the timestamps display the 1 second delay.
4738  stat("/etc/localtime", {st_mode=S_IFREG|0644, st_size=3519, ...}) = 0
4738  stat("/etc/localtime", {st_mode=S_IFREG|0644, st_size=3519, ...}) = 0
4738  rt_sigprocmask(SIG_BLOCK, [INT QUIT USR1 USR2 ALRM TSTP IO], [], 8) = 0
4738  setitimer(ITIMER_REAL, {it_interval={0, 0}, it_value={60, 0}}, {it_interval={0, 0}, it_value={0, 0}}) = 0
4738  rt_sigprocmask(SIG_SETMASK, [], NULL, 8) = 0
4738  poll([{fd=0, events=POLLIN}], 1, -1) = 1 ([{fd=0, revents=POLLIN}])
4738  read(0, "\33", 1)                 = 1
oh, one moment
@MatthewIfe I see the delays
Give me a sample trace.
22:49
17:49:26.674908 read(0, "\33", 2048)    = 1
17:49:26.675013 write(6, "\33", 1)      = 1
17:49:27.678120 read(3, "\33[1;1H\33[22;37m \33[1;1H \33[1;1H    "..., 2048) = 2048
17:49:27.678185 write(1, "\33[1;1H\33[22;37m \33[1;1H \33[1;1H    "..., 2048) = 2048
17:49:27.678257 read(3, "                                "..., 2048) = 2048
17:49:27.678286 write(1, "                                "..., 2048) = 2048
17:49:27.678330 read(3, "                                "..., 2048) = 2048
17:49:27.678354 write(1, "                                "..., 2048) = 2048
between 17:49:26.675013 and 17:49:27.678120
So, you can see this isnt being cause by mview
line 1 shows you get from stdin an esc (\33)
this is only watching the mview binary... not dbc spawned by mview.
Ugh. Even good enterprise software sucks. I can think of no other explanation for why it's an ordeal to copy VM templates between vCenter servers.
line 2 shows almost immediately it sends it to fd 6, this is the output pipe to dbc
it then receives a read a second later from the input pipe of dbc
the delay must be being caused by dbc
phew :) least thats a definite!
what you could do
@MatthewIfe if I do the same on the dbc program spawned by mview, I get...
17:52:02.797958 read(0, "\33", 1)       = 1
17:52:02.798363 read(0, 0x8483c1, 255)  = ? ERESTARTSYS (To be restarted)
17:52:03.798424 --- SIGALRM (Alarm clock) @ 0 (0) ---
17:52:03.799004 read(22, "\20\357\1\0002013122811341382\0\0\0006\v\0Q\n\0\367\v9"..., 16384) = 4477
17:52:03.799570 read(22, "", 4477)      = 0
17:52:03.799808 read(3, "I\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0@\0\0\0\0\0@\0       "..., 16384) = 16384
22:53
ooh interesting
try tracing it with -e read,write,alarm
17:53:47.621718 read(0, "\33", 1)       = 1
17:53:47.621768 alarm(0)                = 49
17:53:47.621812 alarm(1)                = 0
17:53:47.621834 read(0, 0x8483c1, 255)  = ? ERESTARTSYS (To be restarted)
17:53:48.621873 --- SIGALRM (Alarm clock) @ 0 (0) ---
17:53:48.621951 alarm(0)                = 0
17:53:48.621993 alarm(48)               = 0
heh
theres your delay
lol theres a way to hack this to work faster
but its not workable.
hmm in fact
it probably might be if i kludge mview
this is really dirty though.
so, the trick here
is that in mview you check if the character you just send is esc.
What exactly is the alarm(0) = 49?
IF it is, you usleep(10000) (10 milisecond delay) then send sigalrm from mview to dbc, which wakes it up early.
its the number of seconds remaining on a previously set alarm
alarm(0) disables the alarm set previously.
so it's definitely the mview program.. or an interaction between the two?
23:03
its definitely dbc
i think dbc is compiled using an ancient ncurses
that doesn't even use select, uses alarm
on esc is sets an alarm for 1 second to wait.
why does it only surface when mview is in the mix?
you see the delay in mview because you do <esc> --> read into mview --> write to dbc --> DELAY WHILE DBC ALARMS --> write back to mview
ah...
Would screen do the same?
Yeah, probably.
Well, you can try in fact
to run dbc natively
and strace again using the alarm strace
see what it reckons it does then.
same happens in a screen session
23:06
ncurses may possibly be detecting that stdin is a pipe and not a tty
10
Q: ESC key causes a small delay in terminal due to its Alt+ behavior

Shrikant SharatMy terminal setup is gnome-terminal + tmux + zsh with vi bindings. In applications like vim or even in the zsh's command line vi editing mode, I need to frequently hit the ESC key but there is a small delay before the effects of this key take place. See GNU Screen makes Vim ESC key slow After s...

which is why it behaves differently.
whats the strace show with dbc ran natively
one sec
@MatthewIfe native...
18:08:55.881718 read(0, "\33", 256)     = 1
18:08:55.881820 read(0, "", 255)        = 0
18:08:55.982031 read(35, "\20\357\1\0002013122811341382\0\0\0006\v\0Q\n\0\367\v9"..., 16384) = 4477
18:08:55.982486 read(35, "", 4477)      = 0
18:08:55.982570 write(1, "\33[5;1H\33[22;37m                  "..., 1024) = 1024
18:08:55.982762 read(3, "I\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0@\0\0\0\0\0@\0       "..., 16384) = 16384
18:08:55.982816 read(3, "VADRIANA \0\0\0\0\5\20\0DUMMY   \0\0\0\0\n \0J"..., 16384) = 16384
no alarm
i guess it figures its a pipe or something
whats the name of that environment program agian
crtenv or something
gonna send you a new mview
cvtenv
23:12
0
Q: When should one edit someone else's answer vs. Adding your own?

MDMoore313Pretty straightforward question. When should one edit someone else's answer vs. Adding your own? Editing as in adding additional information to the answer, not correct something you think is wrong, not grammatical errors, etc.

@MDMoore313 Personally I think the only time for editing a question is when there's gramattical errors or typos
try that
be very aware this breaks mview from working with anything but this program
@MDMoore313 Oh god, you waded into mSO. That pool is full of sharks...
also it ASSUMES that every escape MUST follow an alarm. That might also break dbc
we'll just have a to see.
23:16
@MatthewIfe pulling headers so I can compile
I put it back the way i got it. But remove stropts.h
wouldnt compile on my box with that there
@MichaelHampton only b/c I thought that question would be a benefit network wide
@MatthewIfe compiled... let me test
actually i removed some getenvs too
bah
cant remember the code for that either
do you have the pastebin of mview
23:21
rofl
BASTARDS!
@MatthewIfe the original?
@MDMoore313 Yes, I think you're right. I'm just surprised it hasn't been closed as a duplicate yet.
@MDMoore313 Might be a dupe on mSO... hell, I'd be surprised if it isn't, or if someone doesn't shoe-horn it into a dupe of something or other.
@MichaelHampton Awesome, checking it out
the other option is to completley refactor mview
so that you spawn a pty
and dont use a pipe directly
23:23
7
Q: Adding information to other peoples answers

JarrodWhen reviewing, what's the stance on people editing answers that are not theirs to add "more information". Is this something we should reject or accept? Personally I feel it should be rejected as if someone has something to add, they should do it in the comments and not hi-jack the answer. But...

to trick ncurses into believing its using a tty (well, wont be a trick I guess)
in fact. might be worth before going to that effort
3
Q: Why is it bad to suggest edits that add additional information to answers?

D.R.I just edited my first answer on SO and got rejected. The user afterwards edited his answer himself - in roughly the same way. After asking why he didn't use my edit in the first place I got the following answer: Because it wasn't appropriate for you to make that edit - adding more material r...

you said that in screen it delays too
if you run the program in screen again
then lsof dbc
see if its stdin/stdout is a pipe or pty
@MDMoore313 So, yeah, think your Q is gonna be dupe-closed on mSO fairly quickly.
@MatthewIfe bummer... getting Error opening /mview1/DBCDX.CFG with the newly compiled version
oh wait...
23:25
needs some getenvs.
i didnt add them back :-\
ah...
albeit you said it wouldnt matter
because when you ran that program it figured you sent the alarm too early
Oh, I see what's missing
@HopelessN00b Haha, someone downvoted my answer
@MatthewIfe so I think I just need a few environment variables.
23:29
@HopelessN00b that's cool, no biggie
@MichaelHampton That would be how you know it's a good answer - mSO where good ideas go to die. The fact that no one's downvoted mine yet is actually making me less confident in its value.
yeah i can fix it with the original mview pastebin
@MatthewIfe oh, the original is...
Like @MichaelHampton said, sharks....
I'm surprised the question got upvotes
23:31
I had a legitimate point here
-3
Q: How does one make a question go 'viral'

MDMoore313Some questions get tremendous amounts of views in a short time, such as this one which got 36k views in the first day, but the questions before and after it (that weren't closed) didn't even squeak 100 (like this one). Asking a good question (a 'stumper' or canonical question) would probably play...

@MDMoore313 Yeah I don't think the question was deserving of downvotes.
I've wondered it myself
@MDMoore313 Yeah, that's mSO for you. On a tangentially-related note, I find it incredibly embarrassing that our site's top-voted question is how to find the location of something burning in the server room.
@HopelessN00b it's disaster porn
@HopelessN00b let's go through and downvote it
23:34
i kept that include commented out
@JoelESalas Not gonna do much good. Next closest is 14 votes behind, and not a whole lot better, IMHO.
@HopelessN00b ROTFL, yeah. "Engage sniff test."
@HopelessN00b does it just reflect the misunderstood nature of our line of work
Or are we just disaster junkies like @ewwhite says
Not as bad as "how to sniff out burning shit in the server room," but having "copy logs, then nuke infected servers from orbit" as the top voted question is still kind of shameful.
@HopelessN00b What happened to "Our security auditor is an idiot"?
23:37
@JoelESalas No, it reflects what the SO folks find interesting about IT/ServerFault. All the highly viewed, highly voted Q's and A's (with one exception) have that in common. Got sent out across the network as "hot" or "interesting," and the SO users piled on the upvotes.
Ooh, locked posts don't show up in the questions list.
@MichaelHampton Got surpassed by lots of other questionable questions.
@HopelessN00b Again, disaster junkies
@MatthewIfe the result is interesting....
poll([{fd=0, events=POLLIN}], 1, -1)    = ? ERESTART_RESTARTBLOCK (To be restarted)
--- SIGALRM (Alarm clock) @ 0 (0) ---
stat("/etc/localtime", {st_mode=S_IFREG|0644, st_size=3519, ...}) = 0
setitimer(ITIMER_REAL, {it_interval={0, 0}, it_value={52, 55000}}, {it_interval={0, 0}, it_value={52, 504981}}) = 0
rt_sigreturn(0)                         = -1 EINTR (Interrupted system call)
@MichaelHampton Oh, holy phucking hell. That's 1277 votes, not 127. Not sure if that's more or less embarrassing than the burning server room.
23:38
the escape doesn't seem to be passed through...
let me try something else
@HopelessN00b At least we don't have the 61 million contacts in Outlook question anymore...
It might be feasible to switch the pipes for a pty
that might work better than this godawful hack
@MichaelHampton Heh, did that get deleted? I actually found that amusing and interesting (even for how stupid it was).
Can you run dbc in screen
@HopelessN00b It was migrated to SU, they had a good laugh and then deleted it.
23:41
and tell me what dbc gets as its stdin/stdout
like a pipe or socket or pty
via lsof
@HopelessN00b And by good laugh I mean it got closed, reopened, closed again...and downvoted to -21 or so
Hmm, no escape functionality
@MichaelHampton Ah, yes. I remember hanging our mail server or fileserver (or both) trying to replicate that question.
@ewwhite it was a hack :)
Is there some kind of rootkit detection mechanism that uses the package manager to ensure files are unmodified?
23:43
@HopelessN00b So the story turns out, it was some silly Indian coder who a spammer contracted with to send a few million emails. He was finally convinced to not take the job...
@MichaelHampton deleted too? Can;t find it in search anymore :(
@HopelessN00b Yeah, it was deleted
@MatthewIfe I can't go into screen directly as a user...
but as root, and then su - to a user, I can
dbc     61368 admin    0u   CHR 136,40      0t0         43 /dev/pts/40
dbc     61368 admin    1u   CHR 136,40      0t0         43 /dev/pts/40
dbc     61368 admin    2u   CHR 136,40      0t0         43 /dev/pts/40
d
and the software likes to assign:
COMMAND   PID  USER   FD   TYPE DEVICE SIZE/OFF       NODE NAME
dbc     61368 admin  cwd    DIR  230,1      126  744225313 /ppro/homedirs/pts_40
@MichaelHampton Not surprising in the least... except for maybe the bit about turning down the job. I mean, who else would even attempt to load millions of contacts into Outlook, other than a developer contracted by a spammer?
@HopelessN00b ahhh yes, I remember that
23:46
@JoelESalas yes
@MichaelHampton what was that about ?!?!?!
@ewwhite ok and that still gives you delays?
in that screen
@MDMoore313 Hehehe...I'll see if I can dig it up again
yes, but the delays are slightly lower than with mview.
if you trace dbc with it open in screen does it do that alarm() thing
if you trace with -e read,write,alarm
23:51
Where is @JourneymanGeek when you need him?
@MichaelHampton lol okay if you find it go ahead and post it, I'll pop my head back in in a few
@HopelessN00b lol importing the entire populations of California and Texas are we?
@MDMoore313 No, like MH said, he was contracted by a spammer. And elected to use Outlook because... well, developer.
@matthew short break. Brb.
@MDMoore313 Here it is. Deleted, though, so you'll need 10k rep on SU to see it.

« first day (1255 days earlier)      last day (4012 days later) »