logs archiveIRC Archive / Freenode / #emacs / 2010 / May / 22 / 1
JordiGH
Rudin died.
(Action) is bummed out.
kensanata
Who was Rudin?
jlf
he didn't die.. he's just tending to infinity
overdrive
hi
jlf
kensanata: http://en.wikipedia.org/wiki/Walter_Rudin
kensanata
jlf: Thanks
jlf
kind of curious to see his advisees but i can't seem to find a list
ah, http://genealogy.math.ndsu.nodak.edu/id.php?id=8419
duncant
I'm trying to connect to a remote emacs daemon to start an emacsclient with a local X11 frame. I've looked at the various Q/A threads about getting this to work, but none of them have worked for me.
I'm getting the error "X11 connection rejected because of wrong authentication."
has anyone had success with this?
rryouumaa
is dwarf fortress open source or something?
         

fledermaus
you need to either permit the host to connect to your X server with xhost, or forward the X11 ports with ssh
duncant
hmm... okay, I've run "xhost +", and that didn't appear to work
do you mean that I should forward the X11 ports from the remote host to my local host? Or the reverse?
fledermaus
think about it.
you need to forward the ports from the machine where the display is to the machine where the client is.
duncant
Okay, I'll try that. Thanks!
bpalmer
duncant: "xhost +" is insecure, by the way.
duncant: you'll want to revoke those permissions right away.
duncant
Yeah, I know. I was just trying to see if that variety of solution was valid.
fledermaus: forwarding ports 6000 and 6001 doesn't appear to fix the problem. As another note, running emacs --daemon in one ssh session, then opening another ssh session, then closing the first, and running "emacsclient -c" in the second works.
jlf
ssh -X or -Y
rgr
blimey. red dead redemption really is the product of some gifted programmers and designers.
duncant
jlf: I'm using both the -X and -Y flags
fledermaus
so you ssh'd from the X server to the client.
duncant
yes
fledermaus
and then you set the DISPLAY variable that emacs is using?
to the proxy display that ssh created?
duncant
it was set properly when I logged in
jlf
i don't think both -X and -Y makes sense
fledermaus
jlf: it's probably unnecessary but it's not nonsensical
duncant
jlf: using -Y works just fine on it's own becaus X11Forwarding is set by default
I'm just using -X out of habit
jlf
ok then
rgr
if you have ssh then why bother trying the direct conneciton? Just ssh in with -X and run emacsclient -c ?
yates
how do i get the (version) output to go into my current buffer (instead of the minibuffer)?
duncant
rgr: that's the problem. I thought that would work, but it doesn't.
         

jlf
,dv server-use-tcp
fsbot
not documented as a variable.
yates
duncant: sis you "ssh -XC username@hostname"?
jlf
,(require 'server)
fsbot
server
jlf
,dv server-use-tcp
fsbot
If non-nil, use TCP sockets instead of local sockets.
You can customize this variable.
Defined in `/usr/share/emacs/23.1/lisp/server.elc'.
yates
s/sis/did/
duncant
yates: well, I'm not using the -C flag and I can't get X11 forwarding to work at all without -Y so I'm using "ssh -YX username@host"
yates
what platform?
duncant
ubuntu lucid x86_64 kernel: 2.6.32
yates
nice
what happens when you try to run an x-client ?
duncant
jlf: I'm not quite sure I follow you. Should I run those commands to try to change the socket?
yates: any other X11 application runs just fine, if that's what you mean
yates
ah
jlf
duncant: looks like instead of the default local sockets, you can use tcp sockets (which you can tunnel over ssh)
yates
bpalmer: hey dude
what prefix can i use before a command so that it's output goes to the current buffer instead of the minibuffer?
s/it's/its/
duncant
okay, that seems like it might be a bit more of an involved solution, I'll try it
yates
,prefix
fsbot
try: FillPrefix IciclesHighlightInputFailurePrefix IciclesKeyCompletionsSortPrefixFirst prefix-lines-in-region PrefixKey prefixkey.el PrefixKeymaps vertical-line_prefix_key
kensanata
yates: C-u
GNU Emacs 23.2.1 (i386-mingw-nt5.1.2600) of 2010-05-08 on G41R2F1
But it doesn't work for all commands.
yates
GNU Emacs 23.2.1 (i686-pc-cygwin, GTK+ Version 2.18.6) of 2010-05-08 on laptop
jlf
M-: (insert ...)
duncant
Thanks for the suggestions!
yates
after compiling, C-x ~ results in "Find this error in (default c:/myfile): /cygdrive/c/myfile
jlf
or possibly M-: (insert (format "%s" ...))
yates
instead of jumping directly to the file
why?
fsbot
Why not?
yates
jlf: thanks
jlf
np
maxalwings
what is the best java environment for emacs
(Action) says Hello!
yates
maxalwings: do you major mode for java?
abbe
,jdee
fsbot
abbe: [->] I heard jde is [0] redirect JavaDevelopmentEnvironment
[1] at http://www.emacswiki.org/cgi-bin/wiki.pl?JDEE,
[2] Ubuntu 7.10 package requires a patch, see the wiki page
yates
s/do you/do you mean/
maxalwings
Thanks!
yates
C-x ~ ?
how can i get emacs to jump directly to the file
it looks like this is a "DOS file name" (C:/blah) versus "cygwin file name " (/cygdrive/c/blah) thing
am i not making sense?
pallgone
(Action) just got a monitor that can be rotated... cool stuff, lot's off text visible there\
oops... some spelling errors :)
yates
ello? is this thing on?
pallgone
yates: what thing?
yates
this irc thing?
pallgone
irc? what's that?
technomancy
pallgone: I just got one of those. so awesome
JordiGH
Crypto job says I'm "virtually in".
Oh, be still my beating heart!
rryouumaa
"virtually in"? sure it's not a honeypot?
:-)
rgr
Hmmm. I never knew any responsible company that said "virtually in". It can leave them open to law suits if they decide against you.
bpalmer
"virtually in" ?
schoene
j #slaCKWAre
JordiGH
rgr: Well, the headhunter is saying this to me.
technomancy
rgr: they used OTR to make sure they have plausible deniability
JordiGH
rgr: And I've had a company do that to me once, made me quit my current job only to tell me a few days before I was supposed to fly there, "never mind".
rgr
aha, tht sdifferent and typical of "headhunters".
JordiGH
rgr: but I didn't sign anything.
Yeah, I'm cautiously optimistic. I wouldn't be babbling about this if I hadn't gotten called to a second interview and felt so comfortable with the.
them.
fledermaus
night
humanitiesNerd
abbe, I just wanted to let you know that I found the calls chain I was interested in: from starter-kit-lisp.el there's a call to "run-coding-hook" that's in starter-kit-defuns.el. One of the hooks that get run calls "pretty-lambdas". Now I think that pretty-lambdas should test if it's in Clojure mode OR if it's in any other Lisp mode and do consequently. But since this thing has been made by the starter-kit guys and could be useful
to someone else, I think I'll contact them and expose this issue. If they fix it, I could look at the code they come up with and try to learn something. All this was started by your hint. Thanks again
abbe
humanitiesNerd, you're welcome :-)
scymtym
hi
bpalmer
"starter-kit guys" ... isn't that, like, technomancy ?
humanitiesNerd
I was looking at that right now
e1f
google didn't just delete the wifi data from the drives, they destroyed the drives
pallgone
this is kinda freaky, but I just saw a post where someone is recommending standing over sitting for computing... I'm trying it out and it's cool
bpalmer
pallgone: we have standing desks at my workplace which some people use.
e1f
yeah, some famous writers use standing desks
bpalmer
pallgone: to me, it seems like it's primarily useful to remind people to take a break now and again.
pallgone
bpalmer: the cool thing is that you can walk away so easily
bpalmer
e1f: other famous writers smoke opium.
pallgone
bpalmer: e.g. when someone posts rubbish in irc ;)
bpalmer
hey, where'd everybody go!?
offby1
nobody here but us zombie processes.
jordanb
God I hate git.
offby1
awwww
turbofail
commence flame war in...
offby1
if you have a specific problem I might be able to walk you through it
turbofail
is there a countdown command?
jordanb
How do I delete a commit?
offby1
depends what you mean by "delete".
Have you published it yet?
jordanb
No
I checked it in and realized it sucked when I did that.
offby1
is it the most recent commit?
jordanb
I just need to fu*king delete it
Yes
offby1
git reset --hard HEAD^
1) Read "Git For Computer Scientists" (http://eagain.net/articles/git-for-computer-scientists/); 2) run "gitk --all"
jordanb
It's been comitted.
offby1
^^ general-purpose advice ^^
jordanb
Reset won't do anything.
offby1
which I have on an abbrev.
jordanb: Try It And See".
I bet you it will.
turbofail
you should bet money on this
IRC dollars
offby1
note that this only works if it's the most recent commit on your branch.
i.e., you caught yourself immediately after committing.
jordanb
offby1: It did nothing.
offby1
If there are good commits that follow the bad one, then the cure is different: "git rebase -i HEAD~3"
jordanb
Thanks for playing though!
offby1
for some value of 3
turbofail
did you include the carrot?
the carrot is important
offby1
"caret"
turbofail
HEAD^
no, it's a carrot
jlf
carrots are important too
offby1
turbofail: I'm using a stick
jordanb
0d343074989a87cecd4ce0d4c28a9a971fbf63d9 <-- I want to delete that commit
offby1
jordanb: ok, what does "git show" say? In particular, does it show the same SHA1?
jordanb
It sure does.
offby1
then you need to show me a transcript, since I don't think we're communicating clearly.
jordanb
git reset --hard 0d343074989a87cecd4ce0d4c28a9a971fbf63d9
That appears to have worked
But is that thing gone or just hidden now?
offby1
that makes no sense.
you just told git to reset your branch _to_ the evil commit.
jordanb
Sorrh
Mean 4055935d91ec7b9e78f447f76b00a4be84bc4b3d
I mean that
offby1
ok, if that's the previous commit, then you should be OK.
jordanb
Whcih was the previous one.
turbofail
HEAD^ should've worked too
offby1
Now, is the commit "gone"? Depends what you mean by "gone".
jordanb
What you told me to do is the one that just reset me to the branch
Gone gone gone, is what I mean.
turbofail
no, what he told you was to reset to the commit before HEAD
jordanb
I don't want that anymore.
offby1
If the evil commit has, say, secrets in it; or is insanely huge -- then in that sense, it's not gone.
jordanb
It
I want it to not exist.
turbofail
you can do git gc
and it will no longer exist, i think
jordanb
Oh man
rryouumaa
you can git clone
jordanb
Haha
jlf
wow, the travel site on our intranet has a _lot_ of meal options, including baby meal, bland meal, diabetic meal, low lactose meal, ...
offby1
you can make it not exist, but it requires some effort; I don't think I've ever done it.
jordanb
Well will I have to worry about it getting pushed?
jlf
but what about the bland baby diabetic meals??
fsbot
Ask yourself, do you really want to know?
offby1
but if there are no secrets in it, and it's not huge, then it's basically garbage, in the sense that an unreferenced cons is garbage in lisp, and it will have no effect on anything.
jlf
not really, no
offby1
jordanb: no, it won't get pushed.
« prev 1 2 3 4 next »