Facebook Error: What’s the Cause?

Posted on December 31st, 2007 by Elliot

 

Errors while loading page from application

Runtime errors:

Javascript parse error, unexpected: RCURLY

There are still a few kinks Facebook and the makers of Brain Tuner are trying to iron out. We appreciate your patience as we try to fix these issues. Your problem has been logged - if it persists, please come back in a few days. Thanks!

I found my error:

setTimeout(function() {
//document.setLocation(’http://sample.com/’);},1);

Blank PHP Output: Flush, Error Reporting

Posted on December 30th, 2007 by Elliot

I was getting blank PHP output while working on my latest Facebook application today. It was pretty frustrating. PHP won’t even report any errors with error_reporting(E_ALL)! I don’t understand why this is. flush() didn’t help either.

Do you see anything wrong with the following:

for (int $i = 1; $i <= 20; $i++) {

The problem was the “int”. Remove that, and it works:

for ($i = 1; $i <= 20; $i++) {

Featured Topic, Main Index Template, WP-Cache

Posted on December 28th, 2007 by Elliot

1. I changed my Featured Topic link, but it didn’t change. Why?

A: You changed it in the Main Index Template, which isn’t used. Copy and paste the link into the home.php file.

2. It still hasn’t changed. Why?

A: The page is cached. Go to your WordPress control panel, click Options, WP-Cache, and then click the Delete Cache button.

3. Does this affect anything else?

A: No, it simply clears the cache.

4. Should I enable it again?

No, because you did not disable it.

Father & Son Tech Projects - OLPC and Robots

Posted on December 26th, 2007 by Elliot

SalmonDad - a really great site including stuff about robots and running videos on the OLPC XO.

How to install Opera on XO

Posted on December 23rd, 2007 by Elliot

Hit the enter key after each bold entry. Wait for the prompt to reappear before going to the next step.

- Hit ctl-alt-neighborhood to get to the console.

- at login type: root

- at password you don’t need to type anything. I thought it would be good to add a little security by way of a root password, so I typed in a password and followed the prompts until I’d typed it properly twice.

- at the bash prompt type the line in bold below. It goes to the opera site and gets the olpc files in a compressed tarball (yes, that’s a technical term) and downloads it into the xo. It takes a while, but you get a nice ascii progress indicator.
wget http://snapshot.opera.com/unix/olpc-544/opera-9.12-20070122.10-static-qt.i386-en-544.tar.bz2

- uncompress the file with this command:
tar xvf opera-9.12-20070122.10-static-qt.i386-en-544.tar.bz2

- install the file. I didn’t have any luck with the directions as shown in the link. I simply typed:
./install.sh

- now install the file needed to have opera show up in sugar. First you have to get to the activities folder. At the prompt type:

cd /usr/share/activities

- download the files by typing:
wget http://people.opera.com/howcome/2007/olpc/opera-activity.tar.gz

- uncompress by typing:

tar xvzf opera-activity.tar.gz

- get out of console by hitting ctl+alt+home (circle with 1 dot) (circle with the small dot at the top left of the keyboard)

- restart sugar by hitting ctl+alt+erase

- find opera in the activities menu and browse.

via koaziji on the olpc news forum

C/C++ Report by Elliot Lee

Posted on December 20th, 2007 by Elliot

I was shuffling through some old backup files when I came across this report I wrote in 2002. It’s unique, original content, so enjoy:

Elliot Lee
12-05-02
Period 5

C/C++ Report

There have been many programming languages developed for making applications for computers. Some of the most popular of these are C and C++. C is a widely used programming language, and C++ is often known as an extension of C.

C and C++ are actually two different languages with different ISO (International Organization for Standardization) committees. With C, all code is in functions, and structures cannot have methods. But with C++, code can be reused between projects with classes. C does not support function overloading, while C++ does, and C code is generally leaner and more portable than C++ code. However, C++ is better for larger projects, mainly because of its support for classes.

C has a long history. It was derived from the B programming language and developed at Bell Laboratories from 1969 to 1973. The first published description of the language came out in 1978 with Brian Kernighan and Dennis Richie’s book, “The C Programming Language.” Early versions of C were known as K&R C. The early development of C was linked very closely with the development of the Unix operating system, so until 1980 the language was almost exclusively associated with Unix. With the creation of C, most of Unix was rewritten completely in C. The needs of Unix influenced the development of C.

When microprocessor-based computers became widespread in the 1980s, C became very popular. Beginning in 1982 it became clear that the K&R book’s description

Continue reading to page 2…

WordPress Post Pages and Multi-Page Posts Plugin

Posted on December 20th, 2007 by Elliot

No plugin is necessary. WordPress has support built-in. Insert this where you want the page break to be:

<!--nextpage-->

There’s a plugin out there called “Angsuman’s Multi-Page Plugin: WordPress 2.x Plugin To Create Multi-Paged Articles”, but it’s crap. All it does is add a button to your editor which pastes the above code. It didn’t even work for me, perhaps because I’m using the latest version of WordPress, 2.3.1.

If you’re been following my Track Forward blog, you know about upselling as done by Internet Marketers.

Well, Microsoft does it too, as I discovered today.

windows-live-installer.jpg

Mommy, Why is There a Server in the House?

Posted on December 8th, 2007 by Elliot

mommy_3_3.jpg Clever advertising campaign by Microsoft for the Windows Home Server.

They also have a lot of news report-like videos which are, in fact, just ads for the Windows Home Server.

via Scott Hanselman

This was caused, for me, by Norton Internet Security. I have had lots of network problems be caused by firewalls in the past, but I didn’t even know Symantec was running on this computer because its icon didn’t appear in the taskbar. This is a frequent problem on Windows XP, but this is Windows Vista Home Basic. Still the same problem here. Even if it looks like Norton isn’t running, check anyway. Run it from the Start menu. To disable the firewall:

  1. Click the Norton Internet Security tab.
  2. Click the Settings section.
  3. Click Internet Security and Firewall Options.
  4. Go to General Settings under Personal Firewall.
  5. Turn Firewall Protection Off, and click OK.