Apple never ceases to amaze me

April 30th, 2009 by e-thang 1 comment »

I can’t actually post screenshots, because it’s a work project again.  I got some html documents from our graphic designer, and I wanted to incorporate them into our code base.  Wanting to just get at the html code, I figure a simple text editor would do that for me.  I used Apple’s cra… amazing text editor TextEdit, foolishly thinking that like notepad or writepad on Windows I would see, you know, the text of that file.

This idiotic Apple piece of software tried interpreting the html document and rendering it as would a web browser.  I don’t see any mode switcher which would allow me to actually see the html either.

With absolutely 0 toolbars or the like for editing the content in a WYSIWYG manner, I’m dumbfounded.  How could that possibly be the best way to open this document?  If I used Dreamweaver, I could understand, because Dreamweave actually supports graphical development of html documents.  But it also has a simple and easy-to-find mode switcher to let me go back and forth.  And in that case, I still find the visual designer useless.

“Text”Edit has 0 graphical support that I can see (because Apple things are supposed to “just work” and be “intuitive,” I feel fine setting the bar that high) and no visible way of switching to “text edit” mode.

1 more example of Apple not living up to the hype surrounding.  In the 1 year+ I’ve been using the Mac platform I have been so underwhelmed.  It is every bit as frustrating as Windows, just in different areas.  If you like Apple’s stuff and can get work done with it, great.  Continue to do so.

The actual hardware is prettier though.  It’s nice that the Eye on the laptop’s lid lets everyone know how creative and unique I am.

And so I don’t lose the email, a link to a git recipe: renaming your ‘master’ branch

April 27th, 2009 by e-thang No comments »

http://www.dmo.ca/blog/20080307124544

Git recipe: creating a new local branch and getting it pushed to remote repo

April 27th, 2009 by e-thang No comments »

There may be better ways.  “Recipe” implies process given to me, and it gets the job done.  I have better things to do (i.e. projects) than play with SCM.  Azeroth isn’t going to save itself…

1. Create new branch locally

git branch <new branch name> <old branch name>

2. Push new branch to server

git push origin <new branch name>

3. Make sure changes to new local branch go to remote version (unsure if this step is necessary, as I’ve never tested not doing it)

git branch -D <new branch name>

4. Check out the new branch again

git checkout -b <new branch name> –track origin/<new branch name>

Debuggin’ in Rails

December 26th, 2008 by e-thang No comments »

This is a for-my-benefit-reference post like the last 2.  Perhaps I’ll do a better write-up of ruby-debug at a later time.

“info breakpoints” to see the list of set breakpoints.

Adding a project to cruisecontrol.rb with git and on a different branch

December 18th, 2008 by e-thang No comments »

While I’m at it…

./cruise add <project name> -r <repository url> -s git -b <branch name>

Deleting a remote branch it git

December 18th, 2008 by e-thang No comments »

This is another “command I always forget and want a reference to” post.

To delete a remote branch, type: git push origin :<branch name>.

Apple strikes again

December 18th, 2008 by e-thang No comments »

This time it’s with TextEdit, which is probably WAAAAAY better than Notepad, because Micro$oft didn’t write it.

Well, true to Apple’s form of thinking its users are too dumb to know how to use a computer, I found out that TextEdit does not let you choose what extension to put on a file.  I’m doing a MySQL create table statement, and copying/pasting the results of a show create table statement was overloading the terminal window– really weird text was coming out, and MYSQL couldn’t make sense of it.  So I decided to paste it into a simple text editor, save that as a .sql file, and then import that into the database via the command line.

Now, I know that file doesn’t have to have a .sql extension.  I like it that way though, and seeing how I’m the user, the computer should listen to me.

So what happens when one goes to specify one’s own extension on a file in TextEdit?  One is treated to the following dialog box (which is modal, of course):

An Apple staple

It isn’t particularly difficult to save a file with a different extension, and Apple’s philosophy of hiding any sort of file-system-level issues from ALL users weakens TextEdit’s usefulness.  When I’m using a Windows machine and need to quickly test something in HTML (for example), I load up Notepad, quickly enter the snippet under test, and then save it as an HTML document.  I would not have any such luck as a TextEdit user.

Am I left the option of changing the extension in Finder after?  Sure.  But that requires leaving TextEdit, finding the file, praying that I can even see the extension, and so forth.  Not the gold standard of usability.  Do I have a more able text editor on the machine?  Yes, TextMate, but it’s a bloated monstrosity (ever done a ‘Find in Project?’) without the power of Visual Studio, and it doesn’t come to mind for quick editing tasks.  And yes, in this particular example, the extension didn’t actually matter because thankfully mysql is better software than TextEdit.  The point is, I should be able to use a different file extension if I want to. Not all users are as scared of the file system as you think Apple.  Leave us the option!

This is yet another reason why I would never spend any of my own money on an Apple computer.

Edit: So, I got mad and wrote the post.  Then I gave the file the extension I wanted and tried importing it into my database, only to be greeted by the following error: ERROR 1049 (42000) at line 1: Unknown database ‘tf1ansiansicpg1252cocoartf949cocoasubrtf350′.  I thought, “I sure don’t remember specifying database tf1ansiansicpg1252cocoartf949cocoasubrtf350.”  TextEdit is serious when it says it only does .rtf files.  That polution of a .sql script is quite normal for an .rtf.  So Apple does not provide a plain text editor, or if TextEdit does do plain text, it isn’t readily apparent.

2nd edit: apparently it does other file formats, if you choose them from a drop-down menu on the save dialog box.  However, you’re still locked into the extension associated with the format.  And it doesn’t have a plain-text option.  TextEdit still loses.

Apple gripe: Pages file format

December 5th, 2008 by e-thang No comments »

Since Pages is from Apple, one would expect it to be awesome and without flaw.  Unless of course one hadn’t been baptized in the Church of Apple.

I know that the standard when there is a problem with something Apple is that it’s the user’s (my) fault, but I’m not so sure on this one.  I’m trying to upload a Pages document to Basecamp.  Now, Basecamp is made by 37Signals, some of the most rabid Apple fans out there (but also the origin of Rails, so they get just a snicker on their stance).

It turns out Pages saves “documents” as a directory with several files below it (they call it a “package,” but calling my unwrapped Christmas presents wrapped Christmas presents doesn’t make it so).  I’m sure there is a reason for that, just as I’m sure there’s a reason for the obnoxious screen capture behavior built into OsX (OSx?  Who cares?).  The problem is that browsers don’t do folder uploads, so one can’t just upload their Pages document without first zipping it up.  Then, presumably one would have to unzip it to read it again.  Zipping/unzipping isn’t a terribly painful process, but neither is stubbing my toe– not exactly the gold standard against which I measure an action.

Of course, this could just be the fault of every browser, because if it weren’t, then it would be Apple’s fault.

Come on Apple! Or is that one should never have to transfer a Pages document?  Stuff written in Pages should only ever be viewed on that same machine?  Did Apple just miss the existence of the Internet, or do they expect everyone to only use Apple products which, presumably, are equipped to ship a folder around? If Pages is any indication of Apple’s quality (and it seems to be), why on Earth would someone want to switch?

Of course, on all the message boards, all anyone talks about is how bad Microsoft products are, WHILE THEY’RE HAVING PROBLEMS WITH AN APPLE PRODUCT! It would be funny if I didn’t have to work with Apple products.

Re: Watching From the Sidelines

November 4th, 2008 by e-thang No comments »

I read a blog post today.

I applaud the young man for caring enough about the democratic process.  I’m pretty sure I don’t agree with him politically, but the fact that we can disagree without killing one another is 1 reason why I love America.

I do NOT, however, applaud all who were posting comments.  They want to dramatically LOWER the voting age.  1 poster even went so far as to see that the age should be lowered to when children enter 9th grade.

Now, I know that comments on blogs are not, how shall I say, flames to the moths we call good ideas.  Yet, I feel compelled to engage such an argument on my un-read blog.  Because this is the venue from which Change will flow.

It is not a ploy of Conservatives or the ultra-right, but rather it is a documented medical fact that the long-term consequence processing centers (the, uh, technical term for it) do not develop until around age 21 or so.  I read this in the book Strong Fathers, Strong Daughters by Meg Meeker, M.D.  This is why STDs run rampant among youth, as does teen pregnancy.  No logical thought process leads a teen to engage in the sorts of risky behaviors that teens are drawn to.

And that commenter wants to hand the keys of the nation’s future over to children of that age.  Good thinking.

The 2nd argument against it that I’ll present is more of a question.  Why stop at 9th grade?  I mean, 5-year-olds are affected by the political process, so why can’t they vote?  What about the unborn?  It’s legal to murder them, and they don’t really have a voice.

Children are children for a reason.  It is a time to observe and learn and make little failures to prepare for adulthood.  Children can’t even support themselves, so they should not be allowed to vote.  If one doesn’t have a stake in the system, they should not be able to cast a ballot.

Another poster suggested RAISING the age to 21 unless the person is in the military.  I kind of like that.  Folks in the military understand what it means to not have freedom over one’s day to day life.

Perhaps that might influence the sort of candidate they vote for.

New Apple gripe

October 6th, 2008 by e-thang 1 comment »

I hope it’s a new one anyway.

So yeah, Mac OSX provides a screen capture utility that makes a cute little camera sound when a user takes a “snapshot.”  How sweet and usability-enhancing that is.

Well, it appears that Mac OSX makes the sound and then tries to take the screen grab.  Often I’ll take a screenshot to attach to a bug report at work.  I hit the buttons for the screenshot and then immediately go to look at the resulting file to make sure it was correct.  The problem though is that since it makes the sound BEFORE it has actually taken the screenshot, when I hit F11 to see my desktop, the resulting picture shows my windows on their way out to being hidden.

Apple, USE CONFIRMATION NOISES ONCE THE PROCESS IS COMPLETE!  It’s little things like this that are so frustrating with Apple because of how obnoxious the devotion of its acolytes are.