Server:Server Status

Making the Sociable Plugin W3C Compliant

I noticed my website was not W3C compliant, and in fact it had something like 200 errors. All of them were due to the Sociable plugin declaring each of the links as an "id." An "id" can only be declared once in a document, whereas a "class" can have multiple instances on the page. To fix this, open the file /wp-content/plugins/sociable/sociable.php and change line 839 from this:

//$link .= ' id="'.esc_attr(strtolower(str_replace(" ", "", $sitename))).'" ';

to this:

//$link .= ' class="'.esc_attr(strtolower(str_replace(" ", "", $sitename))).'" ';

Should fix you right up.

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -

Fix WordPress Update Errors

For me, every time I upgrade wordpress I get the same error. I don't have wordpress in my website's root; it's actually called from an index in my root, which calls the index in a /blog/ folder. This produces the following:

Warning: require(./wp-blog-header.php) [function.require]: failed to open stream: No such file or directory in /home/content/t/o/v/toverzat/html/index.php on line 17 Fatal error: require() [function.require]: Failed opening required './wp-blog-header.php' (include_path='.:/usr/local/php5/lib/php') in /home/content/t/o/v/toverzat/html/index.php on line 17

The problem comes from the fact that wordpress assumes it's in root, and if you reassign wordpress to a directory (which I did in the settings) it will assume the function calls are coming from that directory. This is not the case when you're me and you want your index to be separated from wordpress, in the root, in case I decide one day to have a homepage that doesn't reference the wordpress installation. (For example, I may decide to throw a full page announcement one day, or I use a mobile homepage which ignores the blog and just uses the menu at the top and the search box)

So, the solution for me is very simple. I open /blog/index.php and change the following line:

require('./wp-blog-header.php');

to:

require('./blog/wp-blog-header.php');

Since index.php is really only called when I call the root index of the whole site, i.e. it's called from a directory above the wordpress installation, it creates no issues for me unless you go to http://www.surfrock66.com/blog/ which, for my site, no one does.

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -

Comcast + NBC = BAD

This is something that will no doubt go completely unnoticed by the mainstream media, and it will probably happen eventually. But why am I the only one I've talked to outraged by this??? Read here: Comcast in deal talks with NBC Universal (This has since been denied, but still worth talking about.)

This is a HUGE problem. The people providing the conduit for content to come to the consumer should not have a competing stake in what content you are watching. This is the CORE issue of net neutrality; the communications pipe should be CONTENT NEUTRAL. Obviously it already happens all the time; Time Warner clearly has a huge stake in the CW and so on, but it's outrageous and has consequences.

Just to clarify what I mean, think about this: Comcast owns NBC, which plays a national news program that competes with those on ABC, CBS, Fox, etc. As a partial owner of the station, Comcast could profit form the ad revenue that the NBC program pulls in, meaning they have a vested stake in having eyeballs choosing NBC. Now, Comcast owns and controls the pipe that channels come through. In America, there's essentially a non-compete setup going on; where I live, it's against the community rules to have a satellite dish, AT&T is considered really poor, and Comcast is the only cable provider (due to crappy and outdated laws). Doesn't this seem like a HUGE conflict of interest? There's laws in place somewhat preventing this, but it's pretty generally agreed upon that they're super weak laws.

This has happened before. In 2000, Time Warner and ABC got into a spat and for 36 hours ABC was shut off. And the way it works now, most content providers have their hands in content creation: Time Warner owns CNN, CW, and a ton of cable networks, NewsCorp owns DirecTV and all the Fox crap, etc. Imagine if this translated to what people fear is going to happen to the internet: GE, which owns NBC, also owns Hulu. If Comcast had a stake in Hulu, it's a HUGE conflict of interest and the technology exists to make you pay more for other video providers; picture "Basic Comcast Internet - Hulu Included, youtube for $5/MB, Intermediate Internet - More Money, Hulu Included, Youtube Downloads Included, Uploads $5/200kb" etc.

To me, this is complete crap. It's about revenue sharing. In an ideal world, content conduits make their revenue through subscriptions and should be able to compete FREELY on available infrastructure. They have made back their infrastructure investments by several times and Cable backbones should be government owned and licensed out JUST LIKE AIRWAVES. The whole structure for content agreements is broken; like how now DirecTV customers can't get VS. and have no recourse but one of the other limited carriers. Carriers then compete for who can provide the best to-the-house service. Content creators then make their money on the ads; that how it should work, they're rewarded by revenue for making content that attracts eyeballs.

Anyway, this news is disturbing to me and people should be thinking about it on these terms. It's bad for the consumer for all these FCC protections and exclusivity agreements to be in place.

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -

My thoughts after seeing 9…

This is going to have MAJOR spoilers, including my thoughts on a new ending, so don't read if you don't want to know.

9 was awesome, for sure. Make no mistake. The visuals were stunning, and the world was amazing and beautiful. The characters were AWESOME. The thing that made them great was that each one had a purpose, but on their own they had no purpose, only once they came together did they have a real purpose...

But this was the problem in the end, 2 of the characters DIDN'T have a purpose. 1 and 2 didn't have a purpose, in fact, I learned more about them reading the wikipedia page than watching the movie, which isn't true of other characters. This was the flaw of the story; the buildup was great, and the action was INCREDIBLE, and then the story left you unfulfilled. 1 and 2 were poorly executed, and the ending was abrupt and lame. Come on: Everyone stays dead, but their spirits create microbial rain that repopulates life? Bullshit.

We need to talk about the relationship between 1, 2, and the scientist. To do this, you need to examine the part of the scientist's soul, the sense of purpose, each of the others have. 3 and 4 are the academics, the catalogers, the librarians, the foundation of their knowledge. This has a purpose in my new ending. 5 is the protege of 2, in theory, so you can say both were the builders, engineers, and healers, yet 5 had less of a sense of adventure, and with a more developed 2 could have filled out the part of the scientist's personality that was the student as much as 2 was the teacher which would have been a GREAT angle. 6 was clearly the artist and dreamer. 7 was the fighter, and the part of the scientist that leaps before thinking. 8 was the defender, the one who wanted to protect, and if 1's personality was more flushed out, we could have maybe understood what part of 1 8 was compelled to protect; think one part of the scientist's personality defending another, more important, deeper part. Finally 9 was the leader, the visionary, the one with the power to bring them together.

So who were 1 and 2? 2 was like 5, but more adventurous. I talked about it above and how the teacher/student stuff would have been interesting. Nonetheless, it's a moot point, he was in the movie for LITERALLY 4 minutes then he died and that's the end. Totally worthless, and from the trailer you almost got the sense he'd have a fatherly relationship with 9. Also, from the press stuff, you thought the conflict between 1 and 2 would be more prominent, almost like 2 would lead 9 to challenge 1, saying he himself would be unable. Which brings us to 1. What was 1's purpose? According to the Wiki page, "1, the oldest of the stitchpunks and their self-proclaimed leader of the tribe. He is clever and sly, but also domineering, irritable, quick-tempered and slow, if not unwilling, to trust 9. The Scientist described 1 as struggling out of his hands after his creation, and being stubborn and defiant." WTF is that, some kind of "he is the bad side of the scientist?" He's a crappy leader, an ass, and provides no help to the group except from keeping them away from everyone and thus alive. Only when 9 shows up does he occasionally deviate from his ways, with the barrel of oil and the cape. There's so much obvious depth to him that was left out I can't type it fast enough: He was the first of the characters who were to be tasked with saving humanity, his drive to protect them all would make sense except he lets like 4 of the ones there die (they weren't dead but he thought they were) and he did nothing to save humanity. Pointless! What was his purpose?

Finally, in the end, there's the fact that 5 of them die. This was a poor ending. First, the technology is THERE AND DEMONSTRATED to put parts of a soul into a stitchpunk. Second, we know they were all trapped inside the talisman. The decision to leave them all dead only to float into rain squanders several opportunities: the chance to give it a "happy ending" where they're all alive again, and the chance to let them work together in one more big display to drive the point home that the whole is greater than the sum of the parts.

Which brings me to my alternate ending. Start at the point where 1 sacrifices himself and 9 gets the talisman. Here's what should have happened: With the BRAIN dead and nothing left alive but the punks, they should have taken the talisman and ventured out to repair their comrades. Cut to a scene where some time has passed, they've collected the bodies in the scientist's lab, repaired them (leaving much visible damage) POSSIBLY using the twins' knowledge to put them back together as they'd have scanned everything in there. They set up the talisman and everything and BOOM everyone is back. Cut to 7 doing a "what do we do now?" as she's the fighter, but has no purpose now that there's no real enemies. Here's where 1 and 2 can shine: 1 understands the purpose, when the scientist created him he was the first when the scientist had just begun saving humanity and 1's purpose is to have the tools to revive humanity if all else fails. It sets up the fact that he made himself the de-facto leader and that his goal was to protect all the other punks knowing they were needed to save humanity, choosing to hide rather than fight. It helps to explain 8 as well; if the punks started to get damaged the scientist would make a punk to protect 1, seeing as how 1 would be the key to reviving humanity. 1 finds some sort of contraption built by the scientist that's purpose is to revive humanity somehow, but it's broken. Cue 2, who has been compulsively collecting parts based on 6's earlier prophecies (makes sense, 2 being an engineering type, 6 being the one with more knowledge about what is needed). A better writer could make more details of this scene, but start to picture them all working together to put together some sort of device, you have a chance to see 2 and 1 work together and have 9 smooth out their relationship. Finally, the device is built again, and 1 begins to operate it. Throw in some drama and intrigue: an arm on the device almost breaks as a cable snaps and 8 quickly uses his strength to hold it together; they need a wire quick and 2 remembers finding some way up on a shelf and 7 hops from object to object to go get it; The device isn't working and 6 draws something showing it needs sunlight or something and 5 quickly fashions a mirror to shine some down. Point is, BIG DRAMATIC WORKING TOGETHER. Finally, the machine almost works, and 1 orders them all to put their faces into slots, and it sucks the green soul out and the machine succeeds; It causes time travel back, or it revives the scientist, or it operates an embryo machine to make babies, or brings someone out of stasis, I don't know, some kind of plot device where the result is a group of human beings are walking around. The point is, ALL the stitchpunks are dead, not a select group, and instead of stupid rain microbes, actual humanity is saved. A real writer fills in the details.

I know much of the decision to keep the ending how it was with the little cemetery scene was motivated by keeping in line with the short; this can still happen by having the revived human burying them all and having their green souls rise up and walk around, like they did in the short (where they did NOT ascend into the clouds). Also, part of me fears that the reason they let 4 stitchpunks live is to set up a sequel, which SHOULD NOT happen. ALL OF THEM NEED TO DIE.

So there's my ending. It fleshes out the characters, provides a more satisfying ending what with humanity being revived, it closes the story of the 9, it provides a cathartic action scene at the end, and we see that 1 wasn't a crazy old fart, he actually had a purpose (other than reluctantly helping the group, being ornery, and then suddenly sacrificing himself). Shane Acker, Tim Burton, make this an alternate ending on the DVD!

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -

Rooting to the Palm Pre in Ubuntu

I found a lot of disjointed instructions for rooting to the palm pre in linux, so I thought I'd document the process I used to make it work. These instructions were written using Ubuntu 9.04 Jaunty Jackalope and WebOS version 1.1.0.

  1. Add the repository for virtualbox to your sources list. For Ubuntu 9.04, add deb http://download.virtualbox.org/virtualbox/debian jaunty non-free A list of repos for other distros can be found here: http://www.virtualbox.org/wiki/Linux_Downloads, or if you want to download the .deb and install it that way, go here and choose version 2.2: http://www.virtualbox.org/wiki/Download_Old_Builds I know V-Box is past 3 now, but I had the most success with 2.2. The source for the GPG key can be found here: http://download.virtualbox.org/virtualbox/debian/sun_vbox.asc. Virtualbox is a virtual machine platform that acts as a development platform for the pre, so you may not use it much, but you should do it anyway.
  2. Install virtualbox using the following command: sudo apt-get install virtualbox-2.2
  3. Install the Java JRE using the following terminal command: sudo apt-get install sun-java6-jre
  4. Download the Palm Mojo SDK at the following website: http://developer.palm.com/index.php?option=com_ajaxregister&view=register&sdkdownload. You will be asked to register as a developer, at which point you will be able to choose to Download the sdk, and you should choose the Linux SDK, which will say it is designed for Ubuntu 8.04.
  5. The SDK is a .deb file. You should double-click this file, which will prompt you to install. Install the package.
  6. Download the Novacom Driver from the following link: https://cdn.downloads.palm.com/sdkdownloads/1.1/sdkBinaries/palm-novacom_0.3-svn177284-hud9_i386.deb Install it exactly as you did the SDK
  7. Open your palm pre and load the launcher. Type the following text EXACTLY: upupdowndownleftrightleftrightbastart
  8. This will launch a dialogue asking you to put the phone into dev mode. Slide the switch to activate dev mode, and agree when it asks you to reboot the phone. This same procedure is used to remove the phone from developer mode, and you will be asked to do that later.
  9. Once the phone comes back on, plug it into the computer using the USB cable, and choose "Just Charge" on the phone's screen.
  10. You now have terminal access to your phone. Open a terminal and type: cd /opt/Palm/novacom If this doesn't work, some people report the files for novaterm are located in /opt/nova/bin
  11. Type novaterm and you should be brought to a command prompt that displays:"root@castle:/#
  12. Before taking this step, make sure you either have a data signal, or make sure you have wifi access; you need the internet here. Type the following command in EXACTLY to enable Optiware . In fact, it's probably wise to copy and paste them into your terminal: cd /tmp
    wget http://gitorious.org/webos-internals/bootstrap/blobs/raw/master/optware-bootstrap.sh
    sh optware-bootstrap.sh
    Follow the on-screen instructions to complete the setup.
  13. This step istalls the "Quilt" patch manager (pun intended.) Type the following code in exactly: cd /tmp
    wget http://gitorious.org/webos-internals/bootstrap/blobs/raw/master/quilt-bootstrap.sh
    sh quilt-bootstrap.sh
  14. The Pre already has a package management app, called FileCoaster, meaning you can install apps from the pre, without rooting in through a terminal, over the web. To install the package manager though, I recommend using the terminal. At the Pre terminal prompt, type this exactly: sudo ipkg -o /var install http://www.precentral.net/sites/precentral.net/files/webos-homebrew-apps/feeds/com.palm_.net_.precoder.fcoaster_1.1.1_all.ipk Check here for updated links to .ipk files for versions of FileCoaster past 1.1.1.
  15. It's annoying to have to type the whole code to turn the developer mode on and off, but fortunately there's a patch to put a button in your launcher. This uses the procedure for applying patches using quilt, and there's an instruction sheet for this process here. Basically, you're going to enter the following code exactly:sudo mount -o remount,rw /
    cd /
    sudo quilt import /opt/src/modifications/luna/enable-dev-mode-icon.patch
    sudo quilt push
    sudo mount -o remount,ro /
    For a complete list of patches you can apply using this procedure, look here: http://www.webos-internals.org/wiki/Portal:Patches_to_webOS
  16. To log out of your pre and close terminal access, type: exit
  17. Turn off your pre, then turn it back on.
  18. While this is not necessarily a step, you can now ssh to your pre even if you don't have a USB cable attached. I'll check my home router's config to find the IP of the pre (or just use www.checkmyip.com) and ssh in on port 222 with the following command:ssh <IP Address> -p 222 -l <username>

That should set you up to do most of what you could ever want to do with homebrew on the pre. Check out this thread for a list of homebrew apps, and the links to the .ipk files which you can use to install via FileCoaster: http://forums.precentral.net/homebrew-apps/194104-links-all-homebrew-apps-updated-7-31-a.html.

I credit this article to the following sources:

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -