Saturday, October 17, 2009

NEdit word delimiters

For some reason, unknown to me, on RHEL4, with Gnome, the word delimiters in my .Xdefaults weren't taking effect - so '/' was a delimiter, due to which I couldn't select a whole pathname with a double-click.

Fixed by

ln -s .Xdefaults .Xresources

Sunday, October 11, 2009

I Could Pick Up Julia Roberts if She Were Single

Also sprach meine freund. He says there are three rules :

1) Eliminate all desire
2) Do something nice with the girl
3) Retreat. Don't pursue

You should make a spiritual non-religious connection with the girl. What they are thinking about is :

1) How interesting will their life be with you
2) How good a father will you make

There you have it. Now go forth and multiply.

Richard Mulvey : The 4 Minute Man

Check out a segment by this South African. Might be useful.

http://www.youtube.com/watch?v=yPzclUzBa1I

Maybe you need to buy new clothes if a certain meeting is important to you.

Wednesday, October 07, 2009

Conner's Specialty : Stating the Obvious

He had to write a book after a great year. Problem is, he did it because he had to do it. Result, a painfully mediocre effort. The only useful stuff is on pgs 13-15 :

Self-image : make mental affirmations to improve your behaviour. Your conduct must reinforce the positive image you have of yourself.

How do you come across? Dress? Resume? Homework? Think ahead of what kind of image you'll be projecting in the moment of truth.

How do you speak about your expectations? Salary? You must know what you want and where you want to go. Responsibilities you'd like to have? Think about all this in advance. You must have a clear statement when faced with these questions. What questions do you have for your interviewer? Consider "Where do you expect this co to be in x years?", "Whom do u consider your biggest c?", "What's been your most successful line de prods?" worthwhile, as opposed to "What kind of quals are you lookng for?", "Is there room for promo?", "When will I have my first PR?".

Like I said, obvious.

Thursday, August 27, 2009

Horizontal Scrolling in Windows

You can use the scrollwheel to navigate up and down a page. What about left and right? Hold down the SHIFT key! After 6 years as a dedicated Windows user!

Saturday, August 22, 2009

NEdit = Super Edit

Somewhere along the line, they upgraded to full regex support I believe. The backreference thing didn't work well for me, but anyway. Here are the things I've added (though the menus, but you can cut&paste) to get syntax highlighting with Autohotkey code. A true software type might do a much better job at this.

In each section (denoted by nedit.whatever - shown here just as a label - don't add this line) add the lines given

nedit.highlightPatterns: Ada:Default\n\

Autohotkey:1:0{\n\
comment:"(;.+$)|(^/\\*.+^\\*/)":::Comment::\n\
hotkey:"^[ \\t]*[^:]+(?=::)":::Flag::\n\
command:"^ *[a-zA-Z0-9_]+(?=($|[ \\t]*,|[ \\t]+[^ \\t:=(]))":::Keyword::\n\
string:"""[^""]*""|'[^']*'":::String1::\n\
builtin:"(?iif|loop|return|break|continue|while)\\s*(?=\\()":::Subroutine::\n\
expression:"^\\s*\\w+\\s*(?=[:=])":::Storage Type::\n\
}

nedit.languageModes: Ada:.ada .ad .ads .adb .a:::::::\n\
Autohotkey:.ahk::Smart:None:4::".,/\\\\`'!$@#%^&*()-=+{}[]"":;<>?~|":

nedit.macroCommands: \
Comments>Comment@Autohotkey:F3::: {\n\
replace_in_selection("^", "; ", "regex")\n\
process_cancel()\n\
}\n\
Comments>Uncomment@Autohotkey:F4::: {\n\
replace_in_selection("^; ", "", "regex")\n\
}\n

Thursday, August 20, 2009

Correctly Setting Your Prompt in tcsh or csh

This is *the* way (no arguments please)

set prompt='%~/ !>'

How to set your PATH - the wrong way :

(wrong)

setenv PATH whatever
or
set PATH ($PATH:/dir/dir2)

right way :

set path ($path /dir/dir2)
(that's magic, $PATH gets set automatically, in tcsh or csh - bash is crap of course)

Good aliases to set

ll ls -l !\*
lt ls -lt !\* \| less -X
nes echo \$cwd/!\*

Thursday, June 11, 2009

Inverted Poles and Zeros

I've seen few real gems like this one from Dr. Middlebrook. Makes me devalue my education more and more. Why didn't they tell us about stuff like this before?

This is for analog designers only, so that you don't waste your time. www.ardem.com.

Thursday, March 19, 2009

Switcher Design Without Tears

From an expert switching regulator designer :

I personally try to develop a model that starts as an averaged model and ends as a close as possible to the actual implementation of the switcher that I'm trying to design.

While Matlab is useful for quick checks, it is not as useful as VerilogA when it comes to actually designing the controller and doing model/circuit comparisons.
State-space averaging is a neat way to include a lot of variables into your model, but for a more simple and direct way refer to The Fundamentals of Power Electronics by Robert Erickson & Dragan Maksimovic. I strongly suggest that you read this book, especially the control section. It's tough to design a switcher without first having a good handle on the different loop dynamics. If you're working with other folks that are more senior in the area of power management, ask them to share you the very many other issues and hidden obstacles that exist along the way; they will bite you. These are too many to mention on this message.