Monday, January 9, 2012

Codecademy - Functions in Javascript Lesson 2 - Argument Types, part 1

I just had a nice little hour of fun with Codecademy but wound up taking too much time on this problem: http://www.codecademy.com/courses/functions_in_javascript/1#!/exercises/2

Here's a hint (and then an answer) to help you figure this one out.  The unstated goal is to see the output of cube("test"). How can you do that?

Highlight the lines below for some additional help:

Perhaps you could send the results of that call to the console log?


Line 6 in the example shows how to put the output of cube(5) in the console ;)

Sunday, April 17, 2011

Blogger "naked domains" on goDaddy

I'm sure that this is a title that Bob Parsons would love.

If you want to host a Blogger blog on a naked domain i.e. "http://mystady.com" vs. "http://www.mystady.com", then mystady has the answer for you: (http://mystady.com/2011/01/solved-blogs-may-not-be-hosted-at-naked.html?showComment=1303072919290#c6469598480890494930).  It definitely works, and here's a screencap of what your goDaddy DNS Manager should look like.

Note that there is no "www" CNAME entry and I had to go to my Google Apps admin page to disable Sites.




Import Posterous to Blogger --fixing bX-q5k3d4

I just recently imported a Posterous blog to Blogger. I thought that Posterous was very convenient with its crosspost capability, iPhone app, and bookmarklet, but the load performance was slow and the site search was broken.

While Posterous also has a convenient import tool to go from Wordpress/Blogger/Tumblr/etc., there's no tool that lets you go from Posterous to Blogger and it required a little bit of a hack to do this due to a "Sorry, the import failed due to a server error. The error code is bX-q5k3d4"

1. Get a Wordpress account and use the Import tool with Posterous.  You'll need to enter your Posterous credentials.

2. Export your Wordpress blog that contains all of your Posterous posts.  Doing this will create an xml file that isn't compatible with the Blogger import tool and gives you that bX-q5k3d4 error code.

3. Use the wordpress2blogger (http://wordpress2blogger.appspot.com/) app to convert the Wordpress.  Note that this app restricts you to files smaller than 1MB.  What you can do is import small portions of your blog with the Wordpress exporter in step 2.

4. Import the fixed xml file via the Settings -> Blog Tools -> Import Blogs tool in Blogger

Monday, March 5, 2007

Surfing at Kalaeloa Beach, aka White Plains

Kalaeloa Beach, aka White Plains, is a great place to learn how to surf. With a military ID, you can rent a board for $5/hr and with a good guide, learn to surf in minutes! Just remember to get the biggest board possible as a beginner and you'll be fine :). Here are the directions to White Plains beach.

1. H-1 West to Kapolei Exit #2
2. LEFT turn going South on Fort Barrette Ave, pass the hospital (right) and school (left)
3. LEFT on Roosevelt Rd, immediately after the abandoned guard shack
4. RIGHT on Coral Sea Rd, fourth RIGHT
5. LEFT on Tripoli St, past the airport on the right--look for the sign to the Shore Shack
6. Park and surf!

Tuesday, October 24, 2006

Turn off/stop/disable Final Showing Markup view in Word

This macro will make MS Word start up in "Final" as opposed to "Final
Showing Markup." It's quite annoying when Final Showing Markup is the
default view--this has to stop/be disabled; I hope that this is
addressed in the next version of Office. Back to the point, this macro
will take you back to the days of Word XP and stop the Final Showing
Markup view before it rears its ugly head.

Final Showing Markup *is* shown by default if changes are tracked on a
document. For example, edit a document of your own, track changes,
then send it to a friend. Even though your friend doesn't want to see
the markup, they *WILL* because it's there. This little VBA macro
makes it so that you won't see the markup by default anymore, and
instead will see the Final (without markup) view.

Just dump these lines into a module in your Normal template (hit
ALT+F11 to start up the Visual Basic Editor, right click Modules under
the -Normal- directory and add a Module). Since the name of this sub
is "AutoOpen," it will execute whenever you open a document.

''''''''' VB Start '''''''''
Sub AutoOpen()
With ActiveWindow.View
.ShowRevisionsAndComments = False
.RevisionsView = wdRevisionsViewFinal
End With
CommandBars("Reviewing").Visible = False
'''OPTIONAL: previous line turns off Reviewing toolbar
End Sub
''''''''' VB End '''''''''

Hope this helps!
jyeee