logs archiveIRC Archive / Freenode / #emacs / 2015 / July / 25 / 1
blaenk
tali713: I checked both paredit and smartparens
wasamasa
wgreenhouse: sometimes I'd like to have `interleave-regions'
like, when I have a paragraph of lines and another paragraph of lines I'd like to have arranged each next to the corresponding line of the first paragraph
so that I could then join every two lines and then perform rectangle editing
blaenk
haha wow it doesn't seem built in
wgreenhouse
sort of the reverse of 2C-split?
blaenk
that's weak, and unexpected considering the vim plugin I used had such a feature
wgreenhouse
blaenk: the C-M-t thing forcer suggested is built-in
,dk C-M-t
fsbot
transpose-sexps is an interactive compiled Lisp function in
`simple.el'.
It is bound to C-M-t.
(transpose-sexps ARG)
Like M-t but applies to sexps.
Does not work on a sexp that point is in the middle of
if it is a list or string.
blaenk
yeah I'm looking at it
gonna have to write a custom command for it, cause I have to have the point in between both forms
whereas I'd like to have it say on the opening paren of the first form and just move it forward
or even inside the first form and move it forward
tali713
that's just C-M-f C-M-t
         

blaenk
not having to prepare the environment for 'transpose' to work
^
matthavard
How can I copy an invisible unicode character to my clipboard?
tali713
well, good luck with that, transpose-dwim, seems like it won't.
blaenk
also not a fault of transpose of course but it doesn't interact well with evil, cause in evil the point is on (right before) the closing paren, but transpose expects it to be right after the closing paren
forcer
(global-set-key (kbd "C-c t") (kbd "C-M-f C-M-t"))
tali713
blaenk: wanting a command that moves "current" sexp forward is easy enough. but current needs to mean either containing or following, it can't mean both. because sexps are recursive.
blaenk
would've been cool if transpose was defined by more primitive form movement commands
that you could use, but maybe transpose could be implemented more efficiently without that
parsnip
damnit, got halfway through some python tutorial, started using a desirable secondary source of exercises, then the #python geniuses say the tutorials are crap.
forcer
parsnip: As a rule of thumb, ignore whatever #python says
bremner
a second rule of thumb is that 90% of everything is crap
parsnip
bremner: yeah, there's merits to the curriculum i picked out, i guess iwill just consider it a more informed decision now.
AimHere
That's an approximation; for greater precision, it's 99%
bremner
of course the rule applies to itself, which is where things get confusing
forcer
Confusion is 90% crap.
parsnip
forcer: hmm, you're probably right, but sometimes 10% crap can create confusion
forcer
parsnip: Which is 90% crap. So 10% crap can create 90% crap. It's terrible.
parsnip: On a more serious note, if you have questions about Python, please do feel free to ask me, I am happy to try and help. :-)
(I am arrogant enough to assume I'm more useful than #python ever can dream to be be. Which says more about #python than me, though.)
parsnip
forcer: awesome, thankyou! i'm fairly derailed for probably the next few hours by the stress of searching for a resource that sits with me.
i fear that group would prefer webtutoirals
etc
they smell of young academia
forcer
parsnip: Something like http://www.learnpython.org/ ?
jlf
holy sh*t glassdoor's job search is the worst thing in the world
bar none
barx
isn't that its whole purpose?
         

parsnip
forcer: i wish that site worked. it'd be nice to use as an intor to C syntax
*intor
barx
an intor, yes.
forcer
parsnip: It doesn't work?
barx
:D
parsnip
forcer: run?
,barx++
fsbot
Noted, parsnip. One rudy-point for barx!
wgreenhouse
jlf: it's also pretty much impossible to get them to stop sending recruitment spamvertisement once you've searched
forcer
parsnip: It works for me?
parsnip
forcer: damnit. and i've tried on mulitple machines
barx
dare I ask what a rudy-point is?
parsnip
barx: a loose reference to our supercool bot rudybot
jlf
barx: they get you lower rudy-interest rates
barx
ah cool.
I was worried about my rudy-interest.
parsnip
rudybot: do we accept barx as one of us?
rudybot
parsnip: I was about to, I guess. just did (foo.x == bar.x && foo.y == bar.y) after all
forcer
parsnip: Hm.
barx
..
parsnip
ONE OF US
forcer
parsnip: Yeah, internal server error on the "run" request. Weird. It used to work fine for me.
jlf
what the everlasting fu*k. search for keyword zigbee in santa rosa, ca -> no hits at default 25 mi radius. select 50 mi radius in dropdown -> Principal software engineer jobs in Santa Rosa, CA: 179 Jobs
forcer
It's a big town.
jlf
thanks, glassdoor!
the point being that they threw away the keyword i specified
forcer
Oh.
jlf: It was a bad keyword.
jlf
also, they can't distinguish richmond.ca.us and richmond.bc.ca
richmond is richmond!
cluck
jlf: i suspect vertical search engines profit more from being inefficient, it's the only sane reason able to justify their crappyness
jlf
these fu*king amateurs
blaenk
when I press 'h' in magit-status over a file, I wanted to see what key to press to stage it, and it says instead 's' Show Status
is my magit installation messed up?
cause I pressed 's' anyways and it did stage it
or is that what it's supposed to say
now when I press 'c' in magit-status it jumps to the commit message file, instead of showing the pop up for the commit actions
pi-alpha
forcer: so, #python was upset that the princeton python textbook was doing C-isms (or was it Java-isms) in Python. they didn't like code at http://introcs.cs.princeton.edu/python/code/stdio.py.html
this got them pretty riled up, so then maybe they were in a quick mood to discount the mit text also, as they used "getters", when most pythonistas would not. (though, this may just be the text starting out with something manageable.)
forcer
pi-alpha: That's using a lot of non-idiomatic Python, yes.
quotemstr
You can write Java in any language
pi-alpha
forcer: non-idiomatic, okay, but i had hoped this text would work out, as they seemed to have the more classic textbook style of lots of exercises with varying difficulty level, so I could ramp up.
for example, lots of exercises at http://introcs.cs.princeton.edu/python/31datatype/
so maybe they overreacted when they critiqued use of getters in http://ocw.mit.edu/courses/electrical-engineering-and-computer-science/6-00sc-introduction-to-computer-science-and-programming-spring-2011/unit-2/lecture-12-introduction-to-simulation-and-random-walks/MIT6_00SCS11_ps5.pdf
rudybot
http://teensy.info/v2ctYUCZFJ
pi-alpha
problem 1
forcer
pi-alpha: I'd look through http://docs.python-guide.org/en/latest/intro/learning/ and see if you can find one that suits your needs - I can't recommend learning Python from non-idiomatic code :-)
And yes, sounds like they did
YoungFrog
blaenk: did you customize magit-popup-use-prefix-argument ?
pi-alpha
okay, good, my primary choice of curriculum is safe then.
but i really like the quantity of exercises in the princeton text.
« prev 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 next »