logs archiveIRC Archive / Freenode / #emacs / 2010 / March / 2 / 7
twb
They need to be bottom-of-the-barrel
dim
now I'm afraid
twb
dim: where do you think databases *came from*?
quotemstr
dim: Yeah, really. It's actually a feature of Hibernate. Like all write-back caches, it does help performance.
But at a terrible cost.
twb
quotemstr: Hibernate?
Are we talking about a specific RDBMS now?
dim
I won't ever get OOP fully, I think
quotemstr
twb: I thought it was just an ORM. I haven't actually used it; only read about it.
twb
OOP is like a register machine. It starts out with a stupid idea and carries it to absurd depths.
quotemstr: oh, "Hibernate" is a *product*
quotemstr
twb: What's wrong with a register machine?
         

awoodland
twb: depends what your problem domain is :)
twb
quotemstr: stack machines are more elegant
lich
any way to make dired provide marked files as a list? I want to run mu;timedia files from dired, and it works, but it seems to start processes for every marked file individually. For example marking 3 video files and running with mplayer, it runs the first with mplayer, when that one finishes, it runs mplayer onthe second etc. I want to use dired as a mini playlist provider.
quotemstr
Wt stores state in RAM? I'm surprised it's not persisted somehow.
dim
lich: try EMMS
awoodland
Wt::DBO is relatively new
lich
dim: I have, not my cup of cofee
can this be done with dired?
my multimedia needs are really limited :)
all I want is to select some files and run them in mplayer
awoodland
so I'd guess they might make persistent states an option in the future
dim
emms will just give the playlist to the player, say, VLC
quotemstr
Bah.
Wt is cheating.
:-)
State in memory? *Real* men load it from fixed storage for each request, then write it back out again.
Actually, though, I wonder how well the Wt model would work with the Linux kernel's new checkpoint and restart functionality.
awoodland
with enough sessions it comes from swap. Does that count? :)
is that in mainline now?
quotemstr
It's almost there; check that latest lwn.
awoodland: Have you looked much at Tapestry 5?
(Or Wicket)?
awoodland
nope never heard of them even
quotemstr
They're similar efforts over in Javaland. They're not completely insane.
awoodland
hmm I used J2EE a long time ago, but I've not really touched java for anything other than teaching since
quotemstr
Yuck.
For a long time, the Java people were lost in the woods with the insanely verbose "enterprise" OO frameworks.
ivan-kanis
What's ORL?
quotemstr
There have been a *lot* of interesting developments lately though, like the frameworks I just mentioned, Clojure, Groovy, and so on.
fsbot: ORL?
fsbot
try: ColorList EmacsForLinuxPPC EshellForLoop helloworld MonitorListsOfFilesOrCommandOutput SoftwareForLegislating VirtualWorld worldclock
awoodland
I had a quick play with groovy when someone insisted I wrote java bindings for some C++
and I wanted to check swig had actually done something sane
         

quotemstr
awoodland: Why write Java bindings when you can write SOAP, or Corba, or COM, and let Java talk to that? :-P
Ah, I see.
i didn't know Swig handled Java these days.
Every time I've tried it on my code, Swig has given up and gone off to gently sob in a corner.
awoodland
yeah it did a pretty decent job with a bit of hacking
still can't do template meta programming with it though :)
quotemstr
But that's most of the reason to use C++. :-D
All right, I have to go do some real work.
lich
how can I set dired to run stuff in the background? setting ("\\.avi$" "mplayer * &" ) in dired-guess-shell-alist-user freezes emacs until movie is done
twb
When I looked at swig, it reminded me of a blunderbuss
You try to stay on one side of it, pull the trigger, and hope you hit SOMETHING
quotemstr
So what firearm would C remind you of? :-p
lich: Maybe associate it with a custom elisp function? I don't know about dired in detail, TBH.
(Action) just uses the shell.
twb
An arbalest?
lich
that's not a fire arm
quotemstr: ok, cheers, will see what I can come up with
quotemstr
(Action) wonders whether one could consider Lisp as Greek fire.
twb
Nah, Lisp is a solar lens at L1
quotemstr
Haha.
lich
ivan-kanis: what exactly is the point of ivan-japanese.el?
sorry, snooping through your emacs.d :D
ivan-kanis
lich: it's public
lich: oh it's to change the way japanese input works
lich
I was thinking about setting emacs up to display japanese symbols in doublesize. I remember seeing this in someone's screenshot. Use a normal small font for everything BUT japanese. In his screenie he would get the lines rearanged automatically
it's rather hard to read kanjis with an 8 point terminus
ivan-kanis
lich: i use a big font, check out http://kanis.fr/blog-emacs.html (scroll down a bit)
lich
oh you on #nihongo too?
you are :)
e1f
c is a blunderbuss, emphasis on 'blunder'
ivan-kanis
lich: i think you'll like lookup mode ;)
lich
well that big font thing would be the easy way of fixing this..but I need smaller fonts..
I'm sure someone had this done. Duclare if I'm not mistaking
hmm
Don't you feel the need to take a break from all the technology sometimes? I did just that today. Instead of leaving an offline to my dad, I sent a postcard.Hhe should get that offline in 2 days.
unicode
lich: you're right. Sometimes i do. There's something out there... (beyond computer)
lich
Tthat's why I'm glad we have a beautiful mountain side
unicode
yeah, springtime is coming...
uwjweq
Can I do a fulltext-search on a file tree using anything?
kensanata
find-grep?
brx
ivan-kanis: what dictionaries are you using for lookup mode?
uwjweq
kensanata: Ok. Also a way to search incremental?
kensanata
uwjweq: Uhhhh... Use dired and dired-do-isearch or dired-do-isearch-regexp?
uwjweq
kensanata: nice, I try that.
kensanata
Don't forget to use C-u M-x dired and add the R flag.
Or start with M-x find-grep-dired and narrow it down further. :)
quicksilver
tags-search is another way
if you happen to be using the tags facility already
pgas
M-x rgrep RET is a bit easier than find-grep-dired
(though I still haven't tried anything.el though it might not be entirely relevant to what you are asking for)
kensanata
pgas: The only (small) benefit of find-grep-dired is that it allowing you to use dired-do-isearch or dired-do-isearch-regexp on the result.
pgas: And I understood uwjweq wanted some form of incremental search.
pgas
ah ok
pingwin
I don't know lisp, so how do I tell if my current mode is c-mode and then to change my tab-width for just ccmode?
quotemstr
,cindentation
fsbot
Someone is speaking well of you.
How unusual!
quotemstr
,indentingc
fsbot
hmm, IndentingC is at http://www.emacswiki.org/cgi-bin/wiki.pl?IndentingC
lich
aha! found my dired list thingie. I was not specifyiong *, so it ran once for every file
yay for lightweight playlists
how do I make dired not open an output window when I run a shell command in it?
dim
how to have muse journal mode output a page per entry?
iloveyou
how do you byte-compile all the elisp files in a directory?
quotemstr
,apropos compile.*dir
fsbot
2 matches. (batch-byte-recompile-directory byte-recompile-directory)
bpalmer
,apropos true love
fsbot
6 matches. (bound-and-true-p buffer-file-truename easy-menu-always-true-p file-truename find-file-not-true-dirname-list find-file-visit-truename)
quicksilver
is there a library to generate XML from sexps?
some suitable sexp representation of XML that is
perhaps something is part of the nxml stuff?
fledermaus
,df xml-print
fsbot
Nooo! Symbol's function definition is void: xml-print
fledermaus
,require 'xml
fsbot
xml
fledermaus
,df xml-print
fsbot
xml-print is an alias for `xml-debug-print' in `xml.el'.
(xml-print XML &optional INDENT-STRING)
Outputs the XML in the current buffer.
XML can be a tree or a list of nodes.
The first line is indented with the optional INDENT-STRING.
fledermaus
,df xml-parse-region
fsbot
xml-parse-region is a compiled Lisp function in `xml.el'.
(xml-parse-region BEG END &optional BUFFER PARSE-DTD PARSE-NS)
Parse the region from BEG to END in BUFFER.
If BUFFER is nil, it defaults to the current buffer.
Returns the XML list for the region, or raises an error if the region ..[Type ,more]
quicksilver
fledermaus: thanks
lich
can org-mode files "import" other files? Basically I want to have my stuff split in several files (todo.org, japanese.org, movies.org, links.org), and one file to load them all upon opening
quicksilver
fledermaus: hmm, "xml" is just a bundle of utility functions, not aimed at any particular mode?
lich: Well, normally you don't import them like that
lich: you just tell agenda about them
lich: so agenda knows to visit them all
lich
never used agenda. I should start doing that
quicksilver
lich: http://orgmode.org/org.html#Agenda-files
lich
I don't really keep appointments. I just take notes about movies I plan on watching, new japanese stuff that I've learned and some links that I visit frequently
thanks
fledermaus
quicksilver: yes
quicksilver
lich: I don't know in what sense you would find it useful to combine several files in one file then
lich: why not jsut keep them all in one file?
what are you gaining from the separation.
fledermaus: thanks.
lich
quicksilver: not sure. But the japanese file is starting to get big. I should just make more sections I guess
quicksilver
fledermaus: Gah, what a nasty API. The parse functions require the XML to be in a buffer, and the -print functions insert the result at point instead of returning a string :-S
fledermaus
,df with-temp-buffer
fsbot
with-temp-buffer is a Lisp macro in `subr.el'.
(with-temp-buffer &rest BODY)
Create a temporary buffer, and evaluate BODY there like `progn'.
See also `with-temp-file' and `with-output-to-string'.
quicksilver
fledermaus: more very useful pointers. Thanks.
fledermaus: with-temp-buffer + xml-print + buffer-string = exactly what I needed :)
karljam
how do i send a command to os x terminal from emacs?
kensanata
karljam: Hm, can you describe the problem in more detail? Are you running Emacs within a terminal? Is sending stuff to a shell good enough?
quotemstr
shell-command?
karljam: There's also AppleScript
do-applescript (I doubt fsbot has this one.)
karljam
i'm running carbon emacs, and want to find the simplest way to play a sound file in os x.
kensanata
I actually have a code examples somewhere...
(shell-command "say emacs rules")
karljam
sweeeeeeet
so simple
kensanata
Indeed. :)
karljam
thanks guys :)
kensanata
Alternatively, you could investigate whether (play-sound-file "...") would work.
quotemstr
WOW!
That *is* nifty.
I'm surprised that's built into the OS.
kensanata
(play-sound-file "rick-roll.mp3")
quicksilver
oh there's do-applescript
karljam
dang, i'm missing that mp3
quicksilver
I've been using osascript -e + shell-command
kensanata
Yeah, I've been using osascript as well.
quotemstr
Damn.
quicksilver
ah, do-applescript appears to be useless
quotemstr
say This is SPARTA\! doesn't give quite the correct emphasis.
kensanata
What, you never ssh into your Mac while your wife is reading email and have it say stupid stuff??
fsbot
I'm telling you, you don't want to know.
karljam
i'm hoping to bypass applescript, used to use it before, but now Leopard can play sounds out of terminal in one line of code
quicksilver
it just treats complex types as 't'
quotemstr
kensanata: If you don't see me in a while, it's because my co-workers have killed me.
kensanata
Hahaha
quicksilver
I was hoping it would do some sensible sexp-encoding of applescript lists and records
I wonder if it is substantially faster than osascript, though
I'm gradually building up the tools to synchronise Entourage (*ugh*) with org-mode.
quotemstr
quicksilver: Inter-language translation of that sort is... fraught.
quicksilver
ns-do-applescript is a built-in function in `C source code'.
quotemstr
quicksilver: I wrote the Javascript equivalent in espresso-mode. It works, but it's not elegant.
String substitution at least has the virtue of being simple.
quicksilver
quotemstr: Agreed.
My current ugly behaviour is to construct a string like:
farciarz84
I would like to integrate emacs + ipython. Would anybody helps me?
quicksilver
tell Entourage to tell event id 1234 to get subject & "|" & id & "|" & location
and then split on the | at the emacs-end with split-string
quotemstr
Entourage? I'm sorry.
quicksilver
not as sorry as I am.
« prev 1 2 3 4 5 6 7 8 9 10 11 next »