logs archiveIRC Archive / Freenode / #emacs / 2009 / November / 26 / 1
cluck
legumbre: ?
legumbre
cluck: nvm
rudybot,quote
rudybot
legumbre: Let's hang up and try again.
jlf
let's write a (poignant) guide to elisp
funkenblatt
,yow
fsbot
You mean you don't want to watch WRESTLING from ATLANTA?
cluck
jlf: you mean like a manga guide to elisp? 'cause if you do it's been done before already...
quotemstr
Wow
http://lkml.org/lkml/2009/11/11/336
funkenblatt
jeez
         

jlf
doh!
funkenblatt
so that's why microsoft gpl'd it
skorpan
if i want to redefine a function used by rcirc, do i just eval a defun with the same name?
funkenblatt
sure
skorpan
cool
technomancy
I love that there's a discussion on emacs-devel of adding an option to disable the mouse
seb-
How get list of all commands in python-mode? i'm trying to figure out how to run pychecker
skorpan
technomancy: that whole thread is full of fail
technomancy
skorpan: much of it is, but I like that notion in particular.
cluck
fsmunoz: a couple of months ago i found and watched on archive.org a video teaching the basics of CLOS, the funny thing is, at the time it was shot they were teaching a proposal the official spec hadn't been approved/ratified yet, the weird part, whoever watches it will learn enough to manage in any recent clos implementation
skorpan
technomancy: what's your name on the list?
fsmunoz
sounds interesting
technomancy
skorpan: though on a thinkpad it's pretty easy to just remove the rubber nipple thingy; that works well enough for me
skorpan: Phil Hagelberg, though I haven't posted to it in a while.
skorpan
yeah, i don't recognise that name
dim
disable the mouse... sounds stupid an option, and I'm sure I'd use it.
jlf
seb-: C-h b
cluck
skorpan: defadvicing it "should" also work
skorpan
okay
what's the best way to concatenate a list of strings and putting " " between each of them?
cluck
technomancy: i can see that as an useful feature in a system with a broken gpmd
skorpan
the equivalent of "concat . intersperse" in haskell
         

dim
I've written a function for that
fsmunoz
skorpan: split-string?
funkenblatt
that would do the opposite of what he wants
dim
dunno if I can find it again
skorpan
fsmunoz: no, joining the list of strings
fsmunoz
skorpan: oh
dim
it was in *scratch* to answer someone here :)
fsmunoz
skorpan: mapcar?
cluck
seb-: maybe C-h m
skorpan
fsmunoz: that would work, but would also lead to a trailing " " in the end of the resultls which i'd have to strip away
"dolist" maybe?
dim
I did a little recursive function skorpan
shabble
,,df c-concat-separated
fsbot
Uh oh, Symbol's function definition is void: c-concat-separated
skorpan
i'd rather not depend on cc-mode for this
fsmunoz
skorpan: so, assuming '("aaa" "bbb" "ccc") you would want "aaa bbb ccc"?
skorpan
fsmunoz: indeed
mapconcat...
fsmunoz
ehehe
that was something that I was looking for yesterday
shabble
skorpan: maybe loot that function? it's a one-liner with mapconcat
fsmunoz
a sort of "list to string" kind of thin.
skorpan
yes shabble
trebor_home
(apply #'concatenate 'string (list "a" "b" "c"))
?
seb-
cluck: thanks
dim
(mapconcat 'concat '("a" "b" "c") " ") "a b c"
fsmunoz
skorpan: mapcar could work with a lambda testing for "last" to avoid the trailing space
nice
skorpan
cc-defs uses: (mapconcat 'identity (delete nil (append list nil)) separator))
fsmunoz
I always forget that mapconcat exists :P
skorpan
i can't say that i understand it...
dim
skorpan: I guess the "c" in the list having a nil cdr is the trick
cluck
seb-: you're welcome
funkenblatt
hm... well, appending nil to "list" converts whatever sequence list might be into an actual list
which is i think the reason they did that
skorpan
is there any function which compares two strings case-insensitively?
dim
tried apropos?
,,apropos string=
fsbot
3 matches. (byte-string= erbutils-string= string=)
skorpan
actually, i mean the equivalent of string<
dim
maybe you have to lower case yourself
skorpan
that would be the function definition
dim
,,apropos lower
fsbot
6 matches. (auto-lower auto-lower-mode ethio-java-save-lowercase frame-alpha-lower-limit lower-frame lowercase)
dim
(string< (lowercase "Q") (lowercase "g")) I guess
skorpan
yes
,df lowercase
fsbot
whoops, Symbol's function definition is void: lowercase
dim
(defmacro icase-string< (a b) (string< (lowercase ,a) (lowercase b)))
my first macro, must be wrong
skorpan
forgot , on b?
dim
yeah
skorpan
also shouldn't ` be in there somewhere?
where the heck is lowercase defined?
dim
dunno, don't find
funkenblatt
also, this could be done just as well with a function
which you could then pass around, unlike this macro
skorpan
,lowercase
fsbot
funkenblatt
i think what you want is downcase
skorpan
ah, yes
teedex
does anyone know a good gnus tutorial for mail
quotemstr
Why did I just agree to drive eight hours to be with my family on turkey day?
What strange compulsion has so afflicted me?
dim
http://pgsql.tapoueh.org/elisp/dot.gnus teedex :)
teedex
dim: do you use gnus with gmail or google apps
dim
quotemstr: family. there's nothing like family.
skorpan
how do i get the first character of a string?
dim
teedex: no but some do on planet.emacsen.org
quotemstr
skorpan: aref.
skorpan
next question: why is everything so weird in lisp?
quotemstr
dim: especially when you're the only one to go to college...
dim
hostory
quotemstr
skorpan: It's not weird. It's beautiful.
skorpan
quotemstr: (aref "hello" 0) instead of e.g. (head "hello")?
maybe i should say *emacs* lisp
quotemstr
skorpan: A string isn't a list.
skorpan
and head isn't a function, but there could be one
funkenblatt
you usually don't do a whole lot of char twiddling in emacs lisp
quotemstr
skorpan: You could use subseq, which will work for any sequence.
funkenblatt
hence nobody felt it necessary to provide a "head" function
skorpan
quotemstr: i'll go for aref, i need some speed
quotemstr
skorpan: You're writing elisp. Speed?
skorpan
quotemstr: i'm sorting a list of IRC nicks
i need all the speed i can get
i have a... NEED FOR SPEED
quotemstr
No optimization without quantification.
(Action) stabs skorpan in the face.
funkenblatt
what are you using aref for then?
skorpan
funkenblatt: the nicknames may have a leading @ or + in them, so i need to strip those nicknames
_6a6
\leave
skorpan
okay so what's the string equivalent of cdr? -_-
fsmunoz
skorpan: match-string could be useful there.
funkenblatt
,(substring "foobar" 1)
fsbot
oobar
fsmunoz
Although I always find it a bit clumsy to deal with regexps in elisp.
skorpan
fsmunoz: regexen? *faster*?
quotemstr
elisp needs raw strings.
skorpan: I don't believe this will actually be a bottleneck for you.
fsmunoz
skorpan: I don't think that you will notice any speed penalty.
skorpan
quotemstr: i'm joking (at least a bit)
teedex
is there a way search on planet.emacsen.org ...
TeXnicer
teedex, google inurl:
teedex
TeXnicer: thanks
hober
keep in mind that there aren't any archives
teedex
in gnus, sort-by-most-recent-date is not working for me any ideas on how i can display the most recent messages first
legumbre
sort-by-most-recent-date ?
teedex
legumbre: Wrong type argument: listp, anus-article-sort-by-most-recent-date is the error
jlf
o_O
teedex
typo :) gnus-article-sort-by-most-recent-date
thought no one would notice
offby1
nobody expects the Spanish etc.
technomancy
offby1: how goes?
fro0g
(Action) didn't expect etc.
jordanb
Riddle me this.
What is a "Knowledge Engineer"?
What's more.
How does one become one.
Because that sounds like something with little work and lots of pay.
cluck
jordanb: sounds like the kind of job that requires a masters' in little ethics and no morals
technomancy
jordanb: first you have to become a "Thought Leader"
or maybe it's the other way around
jordanb
Heh. According to wikipedia, it's someone who trains expert systems.
So I guess it's a data entry clerk who understands tree structures.
jabot
jordanb: i guess it's more like a bullsh*t title
cluck
monkey shackled to typewriter?
jabot
which you get for working more than you get paid for
maybe i read too much dilbert
jordanb
Yeah, in this context it smells like pure bullsh*t: http://www.pixelcorps.com/staff.php
I really doubt that guy is training expert systems.
jlf
how about this one: http://sfbay.craigslist.org/sfc/eng/1465147515.html
nopedia
Hm, knowledge engineer can surely be much more than what he seems to be trained in
jordanb
Monetization engineer!
That's awesome.
jlf
"job decsritpion: pls to help us get some $$$$$$"
nopedia
I would rather think of someone who knows how to structure scientific research in databases etc
jordanb
I like it how the implication from 'lead' is that they have more than one 'monetization engineer'
nopedia
But very few seem to have a good overview of this
jordanb
I like it how scripd's buisness model is wrapping copyright infringement in a flash object.
And making pdfs even harder to read online.
caoliver
Monetization engineer: n. one who designs conveyor systems for transporting money from the gullible.
sontek
Hey, I downloaded an ido.el file... whats the best way to tell emacs to load it automatically?
I noticed ~/.emacs.d is not in the load-path
benny
drop the downloaded ido.el file and get emacs 23
that has ido.el
jordanb
Does anyone hate the trend to call programming 'coding', it makes it sound even more like clerical work.
benny
and so much more for the low low price of $BANDWIDTH_COST
sontek: if not, see: ,,loadpath
fsbot
benny: [->] hmm, install is [0] To install a <file>.el, save it to, say ~/elisp
[1] add to the beginning of ~/.emacs: (add-to-list 'load-path "~/elisp"),
[2] now FOLLOW THE INSTALLATION INSTRUCTIONS IN THE FILE, typically adding (require '<file>) to the end of ~/.emacs, ..[Type ,more]
sontek
I'm on emacs22
23 is better?
jordanb
"learn the monetization ecosystem, build high-level industry contacts, and develop business experience"
(Action) pukes
benny
yes
jlf
,(> 23 22)
fsbot
t ..(symbol)
jabot
jordanb: i think one could make a case for a distinction between "coding" and "programming"
jordanb
"Coding" is what people at punchcard machines used to do, back when punchcards were used.
jabot
hmm...
jordanb
The programmer would write his program in pencil on paper, then give it to a coder who would code it onto the punchcards.
jabot
i'd say, programming == coding + architectural decisions
jordanb
The coding part is where your fingers are baning against the keyboard, imho. Everything else is programming.
The coder has been eliminated because the programmer now interfaces directly with the computer.
« prev 1 2 3 4 5 6 7 8 9 next »