photo
Jordan Sissel
geek

Thu, 31 Jul 2003

New ideas, et al.

I think I'm going to add a few new sections to the website, namely a tips and tricks section for whenever I discover something neat and such.
I need to seriously sit down and learn python and possibly ruby. I've played with pygame a little bit and it's way cool. I haven't been able to do much (I want to do some sort of information-kiosk interface for another project) with it due to my lack of python knowledge. Perhaps I'll venture investing in a good book, I'm not sure yet.
I'm going to start work on an XML schema for my posts, so instead of doing silly things like File: directives, I can simply do in-line <file> tags. Flexibility++
This will also make doing post -e much simpler, in that I won't need any specialness to unparse the changed directives.

Comments: 0 (view comments)
Tags:
Permalink: /geekery/33
posted at: 03:42

Tue, 08 Jul 2003

More vim fun...

the ! command is awesome. It lets you filter a given number of lines (or characters) through an external program. Here's an example: Let's say we have a file that has blank lines on it and we want to remove those blank lines? Here's what the file I made looks like:
Hello there

How are you



Plz kthx?

So, we want those blank lines gone, right? We can use the ! command with grep to do that! Type this:
!Ggrep -v '^$'

Now we're set, the result should look like this:
Hello there
How are you
Plz kthx?

Comments: 0 (view comments)
Tags:
Permalink: /productivity/27
posted at: 01:22

More vim tricks..

I've often wanted a command in vi and vim that'll increment a number that the cursor is over.
In nvi (freebsd), the command is #(+#|-) where ## and #+ will increment, #- will decrement. In vim the command is ^A and ^X. ^A increments while ^X decrements Both versions of vi let you add|subtract a given amount, for example: 300## will add 300 to the number. Replace ## with ^A in vim for the same effect. Nvi has a maximum of (+/-)2^31, while VIM has a range of (+/-)2^32.

Comments: 0 (view comments)
Tags:
Permalink: /productivity/26
posted at: 01:16

Sun, 06 Jul 2003

Cool vim command of the day.

Accidentally hit # in vim. :help # showed that this goes in reverse looking for the word the cursor is on. * is the opposite and will jump forward. In vim type :help * for more info! I love vim :(

Comments: 0 (view comments)
Tags: ,
Permalink: /productivity/25
posted at: 04:22

Search this site

Navigation

Metadata

Home About Resume My Code (SVN)

Articles

ARP Security Dynamic DNS with DHCP OpenLDAP+Kerberos+SASL PPP over SSH SSH Security: /bin/false Week of Unix Tools Work Efficiency

Projects

fex firefox tabsearch firefox urledit grok keynav liboverride newpsm (FreeBSD) nis2ldap pam_captcha poor man's backup Solaris audio utility xboxproxy xdotool xmlpresenter xpathtool misc scripts

Presentations

Yahoo! Hack Day '08 Yahoo! Hack Day '06 Unix Essentials Vi/Vim Essentials SSH Tunneling (Video)

Tag Cloud

Calendar

< July 2003 >
SuMoTuWeThFrSa
   1 2 3 4 5
6 7 8 9101112
13141516171819
20212223242526
2728293031  

Friends

BarCamp Kent Brewster Tantek Çelik John Resig Wesley Shields Tyler Shields

Technorati