Ads by Google

Friday, August 9, 2013

A small GNU Screen tip for Cygwin MinTTY

I use Cygwin a lot and use the default mintty terminal emulator for most of my scripting work.  While I used GNU Screen, I never used it much till the vertical split patch was merged into it and made available on Cygwin(found the default horizontal split a bit distracting).  Even then, I found the region traversal a chore, having remapped C-a to C-z and using C-z TAB to switch between regions.  Too many keystrokes and a bit awkward for a bad typist like me.

And so I was rooting around mintty settings and was reading the mintty tips page, when I found the following tip for Gnu Screen.
bindkey "^[[1;5I" next
bindkey "^[[1;6I" prev

Well, the above just replaces the session in the current region with the next one or the previous on using Ctrl+Tab and Ctrl+Shift+Tab key combinations.  Which sort of doesn't do screen a bit of justice.  My way of using screen was

Split the mintty screen estate(maximised) into 4 regions as a 2x2 grid, each grid cell starting off a bash shell; this is what I have on my .screenrc

screen -ln -t "home" 1
split -v
focus right
screen -t "bash2" 2 bash
split
focus down
screen -t "bash4" 4 bash
focus left
split
focus down
screen -t "bash3" 3 bash
focus up
Change keybindings above to
bindkey "^[[1;5I" focus next
bindkey "^[[1;6I" focus prev

and now what you have is the ability to use Ctrl and Tab keys chord combination to quickly switch between regions instead of sessions listed in the tips page.  Over the last few days, this settings alone has lead me to use Screen more in my shell work.

Anyone has anything for cut and paste and buffer copy/paste to external applications? Especially with mouse use?

Monday, July 22, 2013

Sometimes it's nice knowing that people are giving you exactly what you wish for

So, it's been sometime since I had learnt Python and I had a chance to use it for a side project of mine. First, the builtin python mode in Emacs along with AC mode was/is more than adequate for your needs.  Even on the Windows platform...ermm....with Cygwin.  With some bare bones emacs config entries I was off coding in Emacs with AC mode trippily suggesting variable completion.  I must admit that AC mode does take some time to get used to

I say this because you're likely to find other suggestions about python-mode and Ropemacs along with a host of dependencies that might not be worth the effort.  Of course, your patience & YMMV but as I said the builtin python mode will serve your needs even if the other suggestions don't pan out.

On the side project of mine involving stock ticker data, I found the python Panda library quite easy to use.  A lot of the procedural code is wiped out by using Pandas and dataframes. Going through the documentation on slicing and dicing the dataframes, I was thinking, this is similar to SAS in thinking of the data rows as part of a dataset and all it needs some SQL support to make it even more easier than dealing with indices and other list semantics in Pandas.

And what do you know?  Someone's already done it. I found pandasql developed Yhat to do exactly what I was thinking, providing an SQL layer to Pandas.

Things are looking even simpler for my project.


Monday, June 17, 2013

Emacs....Eww!

Is that how Vi users go when they hear Emacs?

Well, I don't know the answer to that but Lars has gone off to code up a browser of sorts for Emacs called Emacs Web Wowser.  And you can read his post on his rationale for developing it. It's part of the gnus git branch for now.

Me, I stay off the text browsers unless I'm trying to script some automated downloads, where I use lynx.

Friday, May 3, 2013

Traditional May 1st Gnus Release out

A bit late in posting about it but Lars has released MaGnus 0.7 with bug fixes and some improvements.  The Changelog in the link has the details

Thursday, April 25, 2013

GNU Emacs Contributing Guide

If you ever wanted to contribute to Gnu Emacs development and didn't know where to start, well, worry no more.  Here's the first draft of it that will be soon be on the Emacs Web pages, thanks to Xue Fuqiao.

If this encourages more people to develop on and for Emacs, it'd be worth it.

Monday, March 11, 2013

Emacs 24.3 Released

Emacs 24.3 is finally out. Binaries can be got from the usual locations. If the Windows binaries are not out yet at your favourite mirror, wait a few days.  

Thursday, March 7, 2013

Emacs Release Candidate RC2 out

Close on the heels of RC 1, RC 2 is out. Binaries can be found at the usual ftp://alpha.gnu.org.

Tuesday, March 5, 2013

Wednesday, January 2, 2013

A Collection of LaTeX Letter Generation Threads

On comp.text.tex, over the last couple of days, there's been some interesting threads on letter templates, signatures and dates.  If you've used the komascript bundle(highly recommended), then it might be worthwhile to browse the threads as the package author Markus Kohm has responded to various letter related questions.  If you're learning komascript, you might find the thread useful. The package is available on  MiKTeX and TeXLive.


And may I once again reiterate that the new google groups interface is stunning in its ability to create UI confusion.  I just don't know where to look, find and generally navigate.  Maybe, it's because I've never been on Facebook?