FINALLY! SOME UPDATES! This website is being reconstructed. Some content will go away soon. If you want to see my new stuff, visit my github: https://github.com/jrcharney/.

March 4, 2012

So much to do, so little time

From your view, the source.js file needs work. When I origninally wrote it in 2006, jQuery hadn't been published yet. So what used to look like this...

var XMLHttpRequestObject = false;

if(window.XMLHttpRequest){XMLHttpRequestObject = new XMLHttpRequest();}

function getData(dataSrc,divID)
{
 if(XMLHttpRequestObject){
  XMLHttpRequestObject.open("GET",dataSrc);
  XMLHttpRequestObject.onreadystatechange = function(){
   if(XMLHttpRequestObject.readyState == 4 && XMLHttpRequestObject.status == 200){
    displayText(divID,XMLHttpRequestObject.responseText);
   };
  };
  XMLHttpRequestObject.send(null);
 };
};

function displayText(divID,text)
{
 var obj = document.getElementById(divID);
 obj.innerHTML = text;
};

...is now this.

function getData(dataSrc,divID){
 $(divID).load(dataSrc,function(){
  $(this).text();
 });
};

The good news is that jQuery does wipe out a lot of JavaScript code to make an AJAX operation work. The bad news is that the results are the same. Thus, my post from last week is incomplete until I figure out why << stops processing after the second <. Substituting all &, < and > characters with &amp;, &lt;, and &gt; respectively did not resolve this issue. Thus this tells me that if I want to fix this problem, I need to fix it before jQuery fetches it.

February 29, 2012

The Return of my C, C++, and GLUT Tutorial

A huge part of my tutoral is something I wrote years ago to help myself and future computer science majors. The C, C++, and GLUT tutorial! I plan on improvinging it in the near future uncluding adding some upgrades to it because this file is about six years old.

Enjoy!

February 28, 2012

Create something ./new

Note: I had intented on including previews of the source files, but it is terribly late. Like around 11:00 PM. If anything I'll fix this later. The last time I did something like this, there was a little bit of AJAX involved with showing off the code such that the browser wouldn't try to download the file when you just wanted to peek at the data. Stay tuned.

Creating a template file can be easy, if you have the know-how to do it.

For the moment, I have two templates for files. Both of thes files are written in bash.

new_perl.sh - create a new Perl file

new_java.sh - create a new Java file

I think I could have created a single file called new (without the .sh extension) based on whatever file extension was added. But these files were designed so that if you were working on a project for a specific language, you could just type ./new Path/ClassName with no hassel of retyping your header information, of which all good programmers type their name on their work.

I have plans on posting these files, and future files like them in the Projects section of this site.

By the way, feel free to download these files. Just remember to chmod u+x filename before you run them.

February 26, 2012

Object-Oriented Blog

Apparently when I wrote a post, the blog would skip post. This was a major programming error on my part that I am resolving. (That's what happens when you work alone and nobody is there to check your codes. Wish I had a "code buddy" to check these things.) On the other hand, I rewrote the blog software again and it is COMPLETELY objected oriented! So if any employers read this site and ask do I have any working programs that they can use as an example YOU'RE LOOKING AT ONE RIGHT NOW!

So anyway, this week, I've realized that much my site's layout measurements need to change so that the people who have more money than myself and who have 27 inch computer screens on their desk (or as they should be called when they get that big "TELEVISIONS") aren't looking at mostly black striped wallpaper. I've learned a lot about how different browsers render this site. Especially MSIE 9's "compatibility mode" or as it should be called "1998 mode".

So for everyone else whose browsers are designed for the 21st Century, espeically since we're chugging though the second decade of it, you may see something new in the header. That would be my logo that I designed. This file is an Scalable Vector Graphics (SVG) file created in a program called Inkscape. It looks much bigger when you save it, but it has been scaled down to fit this website. It is probably the most important file for any computer scientist, or computer science major, to have on their computer. I have a black version stored right here incase anyone want's to print it out. I condensed the rules a bit by consolidating the symbols hence the squares that could either mean logical AND or logical OR depending on which key you use. I really should have put a trademark symbols on it, but I'll fix that later.

I think I really like how my blog system works so far. Still no SQL, but the fact that I can write content with ease from any text console with my understanding of HTML and the Vim editor, I don't really need to use SQL at the moment. I have considered that if I want my tagging system and a search set up in the future, a graphical user interface would need to be created.

I had a really good idea going for how I wanted to set the tables up, up until I though about the Entity-Relationship model. Perhaps something was missing. I've always tried to be careful with how I want to describe my programming dilemas with others on the account that if I just told them exactly what was in it, they would either take it as their own or devise a method to compromise security through some fatal flaw in the programming. You don't have these worries when you have someone you know in real life who you can contact online and who knows what you are talking about and that you can trust.

FOREVER ALONE!
FOREVER ALONE!

The biggest bummer with being a computer programmer sometimes is that all your friends are on Facebook, but almost none of them are ever in an Internet Relay Chat room talking about programming. Perhaps I need to make some new friends who are into that sort of thing.

Sure, there are the acquintances that you make through the local mailing lists, but what freaks me out is how much older most of them are. There aren't too many people in the St. Louis area around my age who do this stuff for a living. There really need to be more, but it is not up for me to decide what people want to do with their lives.

Overall, it helps to have that social contact with people who do this sort of thing especially in an emergency.

February 19, 2012

Thinking Like a Programmer

I spent most of Saturday brainstorming MySQL tables. I have my database set up, all I need to do now is figure out how to organize my information especially if I wanted to track records like they were objects then tag objects accordingly to the type of object. Friday's reorganization has really rebooted my thinking process on how to kickstart MySQL integration.

Security is still a concern for me. While much of the major issues may have been discussed on Bobby Tables, I really want that to be a secondary issue so that development is primary.

More or less the priority list I have going goes like this:

  1. Develop website
  2. Post some code examples (I should check my test script folder. There's bound to be some goodies.)
  3. Secure website
  4. Find job (while doing items 1 through 3)
  5. Pay debts
  6. Pay taxes
  7. Enjoy life

Although, I know there are some readers who will likely tell me that item number 4 should be on top of the list. The whole reason this site is exist is so that employers find this site, take a peek at some of my handywork and are impressed enough to call me up and state their interest in hiring someone like me. I can't think of any other way to describe the sequence.

By the way, if someone reading this site could send me screenshots of what this site looks like in Internet Explorer 9 (especially in compatiblity mode), that would be very helpful so that I can make the necessary modifications to get IE9 to recognize all the beautiful features that all the other browsers recognize.

A few other helpful hints and hacks before I close today's post: I think I may have mentioned how great IRSSI is especially if you use Linux or UNIX as your operating system. A couple of nights ago, I was playing around with the /exec command while chatting and found out that if you install mpg321 as well, you can play music files while chatting, provide that you use escape characters where necessary.

/exec mpg321 path/to/Music\ Folder/Artist\ Name\ \-\ Song\ Name\ \(Remix\).mp3

It also turns out the way I've been using <footer> might not have been correct. This new HTML5 element is OK when you usie it inside an <article> element but outside of that it can't be used like I though it could. <header> can still be used like I currently have it. I'd be interested in displaying the proper methods of which to use these new elements in the near future as I will need to make changes to my site to make it HTML5 compatible like I want it.

Tags

Under Construction