Announcing: Slashdot Deals - Explore geek apps, games, gadgets and more. (what is this?)

Thank you!

We are sorry to see you leave - Beta is different and we value the time you took to try it out. Before you decide to go, please take a look at some value-adds for Beta and learn more about it. Thank you for reading Slashdot, and for making the site better!



Data Preservation and How Ancient Egypt Got It Right

Komi Re:What a load of rubbish (313 comments)

Kind of a twist on "I've forgotten more than you'll ever know."

more than 4 years ago

Good Deep-Knowledge Analog Design Books?

Komi Analog Integrated Circuits (65 comments)

Design of Analog CMOS Integrated Circuits
by Behzad Razavi

Analysis and Design of Analog Integrated Circuits
by by Paul R. Gray, Paul J. Hurst, Stephen H. Lewis, Robert G. Meyer

Analog Integrated Circuit Design
by David Johns, Ken Martin

I have these three books. They're all for integrated circuit design, but they definitely give an in-depth coverage of analog design. They're pretty heavy in terms of material. You might be looking for something a bit broader in scope.

more than 6 years ago

(Useful) Stupid Unix Tricks?

Komi directory stack (2362 comments)

Directory stack commands, pushd and popd, are quite handy. I alias them to pd and po. Then pd works just like cd, except it remembers where you've been.

The advantage of the directory stack over "cd -" is that the directory stack always remembers where you last were. "cd -" only remembers until you change directories again.

In tcsh (I don't know other shells), you can do directory stack substitution. =0 is current directory, =1 is one up, =2 is two up, and so on.

I also use bindkeys to bind Control-G to 'dirs -v' so I can look at the directory stack with ease, even in the middle of a command.

Personally, I think directory stack commands are the least-known, but most useful feature in tcsh.

more than 6 years ago

(Useful) Stupid Unix Tricks?

Komi Re:directory stack (2362 comments)

That's really helpful to know! :) I help people that use bash and I hate not having this feature.

more than 6 years ago

(Useful) Stupid Unix Tricks?

Komi some tcsh commands (2362 comments)

A subject after my own heart. :) Here's some useful tcsh things I've learned over the years:

alias myps 'ps auxww | grep $USER'
alias awkill 'awk '\''{print $2}'\'' | xargs kill'

Run "myps | grep firefox | awkill -9" to kill all firefox sessions.

alias pd 'pushd'
alias po 'popd'
alias dirs 'dirs -v'

Don't forget directory stack substitution (=1, =2, etc.)

alias aw 'awk '\''{print $'\!:1'}'\'''

Grab column 5 with "aw 5". (e.g. ls -l | aw 5)

If you use the shell a lot, I recommend you get familiar with grep, awk, sed, find and xargs. Here's a quick example that I just had to use today. I got a bunch of Windows ascii files mixed with a bunch of other files. I wanted to run dos2unix on only the Windows ascii files. And the files were spread across several directories.

find . -type f | xargs file | grep CRLF | aw 1 | sed 's/://' | xargs dos2unix

My knowledge of tcsh is what's been keeping me from switching to bash. I like to use popular standards, but I don't know how to do this stuff in bash. I learned the tcsh stuff when I actually had time to read shell man pages. :)

more than 6 years ago



Where's the Traveling Salesman for Google Maps?

Komi Komi writes  |  about 7 years ago

Komi (89040) writes "Has anyone tackled the Traveling Salesman Problem with Google Maps or any other online mapping tool? I've searched, but can't find anything. To me this seems like such an obviously cool function. I'm not up to date on algorithms, so perhaps this isn't really tractable for large values of n. But for small numbers (maybe up to 5), this could at least be brute-forced. I would love to use this when I have errands to run, and I want an overall optimal route. So if this hasn't been done, someone please do it!"


Komi has no journal entries.

Slashdot Login

Need an Account?

Forgot your password?