Larry Gordon A mix of code and life. 2012-01-17T13:16:46Z http://blog.psyrendust.com/feed/atom/ WordPress Larry <![CDATA[Fix XAMPP HostnameError001 on Mac OS X]]> http://blog.psyrendust.com/?p=416 2011-04-29T22:39:55Z 2011-04-29T22:39:55Z

Today when starting up XAMPP in Snow Leopard I ran across this problem where I was getting a HostnameError001 popup. So the first thing that I thought of was to cross check my hostname with my computer name. Turns out that for me this was the problem.

Here’s how to check:

Step 1 – Open up Terminal.app and type hostname:

foo:~ larry.gordon$ hostname
foo.local
foo:~ larry.gordon$

For me I gets something like this: foo.local

Step 2 – Now open up System Preferences.app.
Step 3 – Click on Sharing.

At the top you will see Computer Name: with an input field to the right of it. If the computer name differs from the hostname then this is your problem. You can do 1 of 2 things.
1. You can change your computer name to match your hostname.
2. You can change your hostname to match your computer name.

To change your computer name

Step 1 – In System Preferences.appSharing change the Computer Name to match your hostname (exclude the .local as this will automatically be added to your hostname.
Step 2 – Log out or Restart your computer for the changes to take effect.

Change your hostname

Follow one of my previous posts on how to change your hostname Change the hostname in Mac OS X [osx].

]]>
0
Larry <![CDATA[Too many carousel items in jCarousel Lite v1.0.1]]> http://blog.psyrendust.com/?p=394 2011-04-14T07:14:09Z 2011-03-31T03:11:38Z I’ve been working on a project and found the need for a carousel. After some searching I found a great script called jCarousel Lite. I found a bug with the implementation of jCarousel Lite v1.0.1 and how it uses selectors to get the number of li’s in a carousel. In my implementation I’m using list items within each carousel item. After looking at your code the following would result in jCarousel thinking that it has 3 items in the carousel when really there is only 1.

<div id="carousel">
    <ul>
        <li class="carouselItem">
            <ul>
                <li></li>
                <li></li>
            </ul>
        </li>
    </ul>
</div>

The current implementation of jCarousels use of $(‘li’, ul) in the constructor will return all nested li’s regardless of how deeply nested they are in the dom structure. To handle this issue I’ve modified a few lines of code in the constructor to fix this issue. Feel free to apply these changes if you see fit.

Here’s the original snippet:
228
229
230
231
232
233
234
235
236
var div = $(this), ul = $("ul", div), tLi = $("li", ul), tl = tLi.size(), v = o.visible;

if(o.circular) {
    ul.prepend(tLi.slice(tl-v-1+1).clone())
      .append(tLi.slice(0,v).clone());
    o.start += v;
}

var li = $("li", ul), itemLength = li.size(), curr = o.start;
Here is my modified version:
228
229
230
231
232
233
234
235
var div = $(this), ul = div.children(‘ul’), tLi = ul.children(‘li’), tl = tLi.size(), v = o.visible;

if(o.circular) {
    ul.prepend(tLi.slice(tl-v-1+1).clone())
      .append(tLi.slice(0,v).clone());
    o.start += v;
}
var li = ul.children(‘li’), itemLength = li.size(), curr = o.start;
]]>
2
Larry <![CDATA[Fixing WordPress update issue for Mac localhost]]> http://blog.psyrendust.com/?p=289 2011-01-20T23:25:02Z 2011-01-20T23:25:02Z Today I was trying to put in some work on my custom theme when I noticed that a few of my plugins were out-of-date. I proceeded to use the auto update feature and kept getting a write permission error during the update process. After some searching I found this great little tidbit that helped fix my issue. Go to the root of your WordPress site and run the following in Terminal:

chmod -R go+w *

You may have issues with permissions when trying to upload, import, etc. You can correct this by doing a chmod on your sites folder and subfolders.

From the terminal navigate to your sites folder and run something like the following…

chmod -R go+w *

This will grant group and others write permissions. If you need higher local security, then feel free to grant permissions by a more restrictive method.

This information was gathered from several sources. If you have problems or need additional information, I would reference my sources for this article. Please post additional recommendations and issues in the forum comments associated with this article.

http://www.angry-fly.com/index.cfm/2007/10/26/Fix-for-MySQL-on-Leopard
http://warker.com/2006/09/16/wordpress-os-x-install-tips/
http://remysharp.com/2007/10/27/lamp-in-leopard-osx-105-php5-and-apache-22/

[via tech-recipes]

]]>
0
Larry <![CDATA[Zooming in Office for Mac 2008]]> http://blog.psyrendust.com/?p=114 2011-05-10T23:30:14Z 2009-06-09T23:29:37Z This is a great tip for zooming in Word, Excell, and PowerPoint. It works for Office for Mac 2004 and 2008. The only application it does not work with is Entourage. Update: Also works for Office for Mac 2011. Unfortunately it does not work for Outlook for Mac.

How To:

  • Hold down Command and Control and use the Scroll Wheel on your mouse.

or

  • Hold down Command and Control and Drag your fingers up/down on a scroll-enabled trackpad.

From Rob Griffiths, Macworld.com:

Microsoft’s Office 2004 suite is no exception—Word, Excel, and PowerPoint (but not Entourage) all feature a View -> Zoom menu item. But using it is a bit time consuming. First you choose the menu, then you pick a pre-set zoom level, or enter your own value, and then click OK. You can also put a button on the toolbar which does something similar. Still, it’s hardly a fast and fluid operation.

Enter the mouse. In all three of the above applications, if you hold down Command and Control and then move the scroll wheel on your mouse (or drag your fingers on a scrolling-enabled trackpad), you can rapidly increase or decrease the zoom level. Move the wheel up, and you’ll zoom in; move it down, and you’ll zoom out. The amount the zoom changes with each tick of the scroll wheel varies between the applications. Word seems to go in 10-percent steps; Excel uses 15-percent increments; and PowerPoint steps through the fixed zoom levels (including ‘fit,’ which means I had a stop at 152 percent) in its Zoom menu. Excel and PowerPoint are also limited to 400-percent maximum zoom, while Word will go up to 500 percent.

Set Office 2004 zoom levels via mouse [via Macworld]

Enjoy :)

]]>
5
Larry <![CDATA[InteractivePNG – AS3 Class to handle hit areas for transparent PNG's]]> http://wp.local/?p=165 2009-02-03T01:27:42Z 2009-02-03T01:27:42Z Moses Gunesch, creator of Fuse Kit and ZigoEngine , has developed an AS3 Class which handles mouse interactions when dealing with transparent PNG’s.

Here is the theory:
If you have a PNG (one that contains transparent areas) embedded inside of a MovieClip button, the rectangle of the image acts as the hitArea of the MovieClip. In order for the hitArea to only be defined by visible areas of the image, you would normally have to create a custom mask in order to hide the transparent areas of the PNG. This AS3 Class allows you to specify an alpha tolerance (0=transparent, 255=completely opaque), that will allow you to selective exclude the transparent areas from your hitArea based on the value that you give it. This is a very simple concept, but an intricate implementation.

The project is open-sourced under the MIT  Open Source License. Go and check it out:

]]>
0
Larry <![CDATA[Setting up Eclipse + FDT for CS4 Authoring]]> http://blog.psyrendust.com/?p=108 2008-10-11T04:27:27Z 2008-10-11T04:27:27Z Here are the swc paths that you’ll need to setup FDT for writing Flash 10 code.

Base Flash CS4 Class Path

$(AppConfig)/Common/Configuration/ActionScript 3.0/FP10

Class Path for ik.swc

$(AppConfig)/Common/Configuration/ActionScript 3.0/libs/ik.swc

Class Path for player.swc

$(AppConfig)/Common/Configuration/ActionScript 3.0/libs/flash.swc

Where

$(AppConfig)

=

/Applications/Adobe CS4/Adobe Flash CS4
]]>
4
Larry <![CDATA[Flashcamp 10 San Francisco – Day 1]]> http://blog.psyrendust.com/?p=106 2008-10-11T04:12:54Z 2008-10-11T04:12:54Z We got our copies of Flash CS4. The UI is pretty sweet. They now have some pretty decent presets for workspaces. Here are screenshots of the six workspaces that come out of the box.

Animator
Flash CS4 Workspace: Animator

Classic
Flash CS4 Workspace: Classic

Debug
Flash CS4 Workspace: Debug

Designer
Flash CS4 Workspace: Designer

Developer
Flash CS4 Workspace: Developer

Essentials
Flash CS4 Workspace: Essentials

Here is a screenshot of the Motion Editor:
Flash CS4 Motion Editor

]]>
0
Larry <![CDATA[TOMS Shoes 2008 exploration]]> http://wp.local/?post_type=portfolio&p=191 2011-02-10T22:58:55Z 2008-09-27T21:18:58Z 0 Larry <![CDATA[Modern Amusement 2008 redesign]]> http://wp.local/?post_type=portfolio&p=194 2011-02-10T23:00:21Z 2008-09-24T21:14:40Z 0 Larry <![CDATA[T.A.G. SF 2008 redesign]]> http://wp.local/?post_type=portfolio&p=225 2011-02-10T23:04:49Z 2008-09-03T21:09:45Z 0