Read about Asides

Oh, as an Aside: Predicting an Eventual Return (From the 24th of July)

So, it has been quite a while since I posted on my own website. In the past 2 years, there have been what 2 posts? I’ve barely even looked at it just dropping in long enough to clear out some spam comments or deal with someone who thinks this is the perfect platform to be hateful on. Where have I been? Well, I’m in the process of moving all of my WordPress Plugins and content over to my business website at AaHa Creative and I’ve started a web development blog there.

I’m moving all my business and work related content there and will be actually taking posts down off this site and reposting things there. I’ve also made new pages for and updated many of my wordpress plugins there.

From now on, business and programming related content will go there, and when I am ready to start posting on literature, history, philosophy and related topics again, the new content will be posted here.

Continue reading. »

Oh, as an Aside: Get rid of PHP 5.3 Deprecation warnings (From the 13th of May)

Just open up your php.ini file and set error_reporting to error_reporting = E_ALL & ~E_NOTICE & ~E_DEPRECATED.

Oh, as an Aside: I’m alive but still not talking to you. (From the 21st of May)

There have been no posts for a while now and none of the updates to AJAXed WordPress or my other plugins have been pushed out. There is a lot of stuff (of the good kind) that is going on in my life currently, so I’ve put everything else on the back burner.

Thank you for your understanding.

P.S. Don’t you hate posts like this? Me too!

Oh, as an Aside: Short Ajax Script (From the 13th of May)

I wanted to see how small you could make a fully functional AJAX script that worked cross-browser and degraded gracefully, so I went through an old custom AJAX script and made it as small as I possibly could. In the resulting AJAX scripts, the post version is 410 characters and the GET version is only 359 characters long. The scripts are fully functional and accept the following parameters: URL, DATA (in string form), and ELEMENT (to update).

The scripts could be a little smaller, but it would really kill readability.

“Get” AJAX Script

  1. function a(l,d,u){
  2. try{r = new XMLHttpRequest();}catch(e){try {r = new ActiveXObject('Msxml2.XMLHTTP');}catch(e){r = new ActiveXObject('Microsoft.XMLHTTP');}}
  3. if(r){
  4. r.onreadystatechange = function() {if (r.readyState == 4 && r.status == 200){document.getElementById(u).innerHTML = r.responseText;}}
  5. r.open('GET', l+'?'+d, true);r.send(d);
  6. }
  7. }

“Post” AJAX Script

  1. function b(l,d,u){
  2. try{r = new XMLHttpRequest();} catch(e){try {r = new ActiveXObject('Msxml2.XMLHTTP');} catch(e){r = new ActiveXObject('Microsoft.XMLHTTP');}}
  3. if(r){
  4. r.onreadystatechange = function() {if (r.readyState == 4 && r.status == 200){document.getElementById(u).innerHTML=r.responseText;}}
  5. r.open('POST', l, true);r.setRequestHeader('Content-type', 'application/x-www-form-urlencoded');r.send(d);
  6. }
  7. }

Combined AJAX Script

This combined script also accepts a fourth parameter ‘p’ that should evaluate true if the data is to be sent by post.

  1. function a(l,d,u,p){
  2. try{r = new XMLHttpRequest();}catch(e){try {r = new ActiveXObject('Msxml2.XMLHTTP');}catch(e){r = new ActiveXObject('Microsoft.XMLHTTP');}}
  3. if(r){
  4. r.onreadystatechange = function() {if (r.readyState == 4 && r.status == 200){document.getElementById(u).innerHTML = r.responseText;}}
  5. if(p){r.open('POST', l, true);r.setRequestHeader('Content-type', 'application/x-www-form-urlencoded');}else{r.open('GET', l+'?'+d, true);}
  6. }
  7. }

Demo: (Sorry but you will have to go to the full page so the JavaScript is loaded.)

Continue reading. »

Oh, as an Aside: Oh I am a gummy bear; yes, I am a gummy bear… (From the 29th of April)

The best thing to come out of YouTube since the Kiwi: the Gummy bear song.

Oder, ich bin ein gummi Bär; ich bin ein gummi Bär.

All right, all right. Back to your regularly scheduled broadcasting.

Oh, as an Aside: Weeee I’m NAKED!!! (From the 9th of April)

I’m running around stark naked in all my white glory. Why am I doing this? Other than the social aspect of being like everyone else, it is a great opportunity for the less-than-knowledgeable people to know what I look like underneath my superficial exterior. As you can see, I’m beautiful even without my clothes.

I’m glad my webmaster, Aaron, has taken care of my and built me into the most beautifulest website I can be. It doesn’t take a lot of CSS and styling to make me look good because I’m beautiful to the bone. YAY ME!!

~ post by Anthology of Ideas not Aaron (please don’t tell Aaron.)

P.S. The first person in this post is not the writer, but the website itself. So no, I’m not sitting here on the computer naked.1

P.P.S. It is CSS naked day.

Continue reading. »

Notes:

  1. Although the comeback to that is “I’m sitting at the computer naked.” All the English majors groan with me now. []