Tuesday, June 26, 2012

Belonging Is Difficult

I may be really off-base here, but I find the verb belong to be strange, as it seems that its present participle form is not really ever used -- at least, it doesn't sound right to me.  It is okay as a gerund, but not as an actual verb.

These sound perfectly fine (non-present participle):

I belong in that group.
The dog belongs in a nice home.

These sound totally wrong, but I admit that they are probably grammatically correct:

I am belonging in that group.
The dog is belonging in a nice home.

As a gerund, it sounds fine as well:

Belonging is important.
Belonging to that group gives him special privileges.

I couldn't think of another verb where the present participle sounds really wrong and awkward.

Anyway, I found this to be strange.  Any other verbs out there that are difficult in this way?

Wednesday, June 13, 2012

Overwrite/Replace Mode in Eclipse for Mac

Cliff notes: I figured out how to enter overwrite/replace mode on Eclipse on a Mac (double-click the "Insert" info tab.

Preface: I'm a Mac newbie.  So, if this is something that's obvious, you can consider me an idiot.

Anyway, I wanted to make some rather mechanical changes to some code I had written.  Something like changing the following:

myArray[0] = value_abcd;
myArray[1] = value_efgh;
myArray[2] = value_ijkl;
myArray[3] = value_mnop;
myArray[4] = value_qrst;


myArray[0] = value_efgh;
myArray[1] = value_ijkl;
myArray[2] = value_mnop;
myArray[3] = value_qrst;

I figure I would just switch over to overwrite/replace mode and just quickly overwrite the values.  But, I don't have an f'ing insert key on my Mac.  So, I contemplated resigning myself to the extra keystroke per edit (pressing  delete to get rid of the existing value).

It might be that I suck at internet search, but I could not for the life of me find useful information on how to get into overwrite mode.  Some Internet folks went so far as to ask why anyone would ever want to be in a mode other than insert mode?  WTF?  Are you serious?

Anyway, at the bottom of your Eclipse window, you will see an info tab that reads "Insert" or "Smart Insert" -- double-click that and boom... you enter "Overwrite" mode and your cursor's appearance changes to indicate this.

Would have been easier to just edit the code in vi, but now I know.  Let's hear it for completely non-intuitive UI design -- and F you, Mac for not having an insert key.