Artician Home
Join Artician Login Search

kman's blog

avatar
  • kman
  • Male
  • Is Offline
  • Status: Administrator
  • Blog Views: 9971
  • Last Seen: 2 weeks ago

Profile

kman's Info
  • Joined: 08/25/06
  • Account: Artician Pro
  • Visits: 9971
  • Total Discussion Posts: 439
  • Portfolio Count: 15 | View
  • Blog Entries Count: 84 | View
  • Favorites Received: 25
  • Watchers: 19
Professional
Personal
Social Networks
Category: Personal Development - Other
Wednesday September 30th, 2009
As a young child the first true issue most of us struggle with is that of gender identity. As a young boy I found myself infatuated with girls at a rather young age, but I only understood them in my 20s. With that being said I've never been incredibly successful with relationships. I think I'm only half at fault on this matter, while I lacked the maturity to understand their needs I simply don't see how I could have. Since you don't know me, let me clear on thing up. I am the ideal ... well I remember myself as being ... what today I would call the ideal boyfriend. I was a romantic, and completely devoted. I had fantasies of sacrificing my life in moments of heroism. Like a burning building for example. These were childhood fantasies. Later I moved on to Shakespeare. Well eventually I had my heart broken. Than I had it stepped on, again and again. Eventually the romantic died, and the opportunist emerged. Well that side of coin fell apart and the first entry is not to focus on my love life but emphasize the real problem I've yet to solve.

My family was a different story. Well we just never connected and probably never will. Under ideal circumstances we respect each other. That happened much later in life too. We used to fight a lot. Mostly because they had an old school mentality of upbringing and I had different ideas that were never heard or listened. Do I love them? Lets keep it at respect. A deep respect that if the situation called for I would sacrifice myself for them. Although I don't know why. Its the sort of sacrifice that a soldier would do for his king. In a way maybe to find a simple solution to a difficult problem that is life.

Friends... I held them in the highest esteem. I wanted to believe that I could develop the sort of relationship with a friend that was as deep as any one could with family or a lover. After having graduated from a University, I've seen friends move away, join cliques, and simply fall out of touch for any which reason. Still some friendships survived the test of time. I thought that was the real testament of loyalty. I believe as you grow older you become more cynical of the world around you. A theme that may or may not continue. Today I've realized that friendship is artificial. This wasn't a realization over the course of one day, or one week, or a month or a year. This decay slowly, over time. You often don't see it coming when you realize its not there anymore. Worst of all it usually starts with time away from another during which one or both of you in some ways change. You come back to meet someone you don't remember, but as you try and hold onto the past it slips from under you. All that's left is disappointment.

Work. A job. All things we associate with unhappiness. In their very definition they imply hard labor or responsibility to something greater. I had the ambition of being great. Of working hard early, to achieve the sort of greatness that gives back to humanity and leaves your name as one to be remembered. That dream fades quickly during college acceptance. Strong men don't falter, strong men persevere and grow. Grown men don't cry, that's what young boys learn young. Some call it being stubborn and stubborn I became. Against all odds and all possibilities of failure, naive to the fact that others would kill for what I could have had with ease I pursued my dream. A place that I could come to everyday and not watch the digits of time and become lost for those few hours in something I could dedicate my life to. I ended up getting all the skills needed. All the skills I could hope to attain through higher education. I considered myself as one of the best. Sadly the cynic in me grew larger as I've realized that every single decision in this world is influenced and made threw artificial connections and bonds. From game developers to politicians. We rarely higher people we don't know, or give others the opportunity to come out of their box and become comfortable. We often jump to conclusions; we often believe that what makes us comfortable will do the same for others. People don't realize that the person who seems shy, is not shy because he's afraid. Maybe he's shy because he can't find the words to describe that he disagrees without being disagreeable and making you not like them.

So what reason is there for a single man. A man who never found love. Never made any real connections. What does a man do that has found every avenue towards happiness blocked. Work only becomes work when it's no longer fun. While walls are built to keep people out, sometimes climbing them is a questionable pursuit of happiness. Look theirs no answer here. Only a stubborn man. A man who will continue to risk it all. Until the world wins and he dies or maybe he'll find happiness.
Tuesday September 22nd, 2009

I am fairly fond of the title for this post as it does two things. It’s an open invitation to spam crawlers and this is the first blog post in some time with more than a code snippet or two.

In short, it has been almost a year since I’ve graduated Full Sail University and since then I have had a number of experiences that made me on numerous occasions question the validity of my life-choices. This stems from the idea of immediate sacrifice and delayed gratification towards a brighter and happier future. This for most is an accepted part of life and being successful. While ultimately we all strive for happiness and each time we sacrifice and give we hope it to be a means to an end. Of course as we grow older we slowly but surely realize the real cynical nature of human life.

I’ve asked myself on occasion; what makes me happy? Is it having a high paycheck? Is it the process of creating video games? Is it sitting at a bar? While I’ve questioned my motives, I always arrive at the same answer sooner or later. I realize that I simply wish to be challenged and learn. At the core that is what drives me! That is what motivates and inspires me. Still I’ve never been able to make the jump to a full time Indie, or a commit towards academia.

In the near future I hope to reevaluate why I have failed to follow my real agenda. Attain courage, and achieve some closure.

This is essentially a slightly longer twitter post. Thanks for reading.

Monday May 25th, 2009

Today while striving to wrap up Michael Kofman 2009 I found myself spending longer than I would have liked trying to get a “wordpress page” to loop through all of my blog posts with enabled pagination. The intention was to become familiar with the wordpress framework, install a few plugins and be on my marry way. Sadly things didn’t quite go so smoothly. So to make this a lot less painful for future readers here is a short list of steps and plug ins used as well as a final code snippet. After I’ll discuss some of the alternate methods I found, share my work cited and hopefully put some value into the community.

Wordpress Page Templates

My first question was how to create a new page in wordpress and apply to it my own layout and stylesheets. This was incredibly easy and intuitive.

  1. Create a new .php page that will serve as a template for your new wordpress page.
  2. Page templates are easily recognized by the wordpress CMS via a magical comment.
1
2
3
4
5
<?php
/*
Template Name: Your Template Name Here
*/
?>
  1. Navigate to /wp-admin/ and depending on the version of your dashboard click add page.
  2. Here you can give your page any title you want. And somewhere on the page you should see an option to apply a template to the page (again this varies with wordpress versions so Google or check documentation). If you uploaded your new .php template to the proper location you should conveniently see “Your Template Name Here” as an option.

Installing a Pagination Plugin

I decided to use WP-PageNavi although there are several alternatives I’ve found.

To download and install follow these instructions:

1. Download WP-PageNavi
2. Upload folder “pagenavi” under wp-contents/plugins
3. Activate the plugin
4. Add the following code into your current theme’s php file.

5. Configure the settings under WP-Admin -> Options -> PageNavi
6. Click “Update Options” and you are done.

The Lonely Loop

The reason I titled this lonely loop is because most wordpress documentation will refer to the post entries as “THE LOOP“. The final code snippet that finally got things rolling for me was as follows:

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
<?php $page = (get_query_var('paged')) ? get_query_var('paged') : 1; 
 
		$my_query = new WP_Query('showposts=5&paged=$page');
		$wp_query = $my_query;
 
		query_posts("showposts=5&paged=$page");
 
		while ( have_posts() ) : the_post() ?>
  			<div class="post" id="post-<?php the_ID(); ?>">
                    <div class="date">
                    	<div class="day"><center><?php the_time('d') ?></center> </div>
                    	<div class="month"><center><?php the_time('F') ?></center> </div>
                    	<div class="year"><center><?php the_time('Y') ?></center> </div>
                    </div>
 
                    <h2><a href="<?php the_permalink() ?>" rel="bookmark" title="Permanent Link to <?php the_title_attribute(); ?>"><?php the_title(); ?></a></h2>
 
                    <?php the_content('Read the rest of this entry &raquo;'); ?>
 
                    <p><?php comments_popup_link('No Comments &#187;', '1 Comment &#187;', '% Comments &#187;'); ?></p>
                </div>
                <br class="clear" />
                <br class="clear" />
		<?php endwhile; ?>
 
 
       <div><?php next_posts_link('Older Entries')?></div>
       <div><?php previous_posts_link('Newer Entries')?></div>
 
        <?php if(function_exists('wp_pagenavi')) { wp_pagenavi(); } ?>

Obstacles Overcome

One of the first challenges I faced was realizing that the default loop provided in index.php did not properly render posts but instead interpreted function calls like the_title() with regard to the title of the page (template) opposed to individual posts. I later found according to slightly misleading documentation that a new query object is required. I proceeded to create one called $my_query. Where I would prefix function calls as such.

$my_query->have_posts()

and

$my_query->the_post()

This seemed to work, but the next problem was getting pagination to work in synch with this new query. The problem was that WP-PageNavi only listens to $wp_query. I had wondered around for some time trying to resolve this particular delima short of writing ajax and the pagination functionality by hand or maybe trying a different plug in. Thank fully after jumping from link to link I finally stumbled onto the following code block.

<?php $page = (get_query_var('paged')) ? get_query_var('paged') : 1;
query_posts("showposts=5&paged=$page");
while ( have_posts() ) : the_post() ?>
<h2><a href="<?php the_permalink() ?>"><?php the_title() ?></a></h2>
<span class="entry-date"><?php the_time('F d, Y'); ?></span>
<?php the_content(); ?>
<?php endwhile ?>

This finally got the ball rolling. I had only correct a few errors that sparked from the constant experimentation like a random reseting of the query at the end of the while loop. Conveniently above the pagination caused the current page to always read 1.

Hope this will be helpful to someone in the future. Here is an unordered list of sources.
http://codex.wordpress.org/Template_Tags/query_posts
http://codex.wordpress.org/The_Loop
http://codex.wordpress.org/Function_Reference/WP_Query
http://codex.wordpress.org/IRC
http://almosteffortless.com/2006/12/21/wordpress-pagination-on-a-page/
http://jarodtaylor.com/blog/wordpress-ultimate-archive-index-with-pagination/
http://www.w3cgallery.com/w3c-css/wordpress-pagination-in-pagephp-or-display-subpages-as-paging-under-parent-page
http://wordpress.org/support/topic/256899
http://www.lesterchan.net/wordpress/readme/wp-pagenavi.html

Category: History - Civil War
Tuesday March 24th, 2009
Monday March 23rd, 2009

I wanted to explore what wxWidgets was all about after learning that tool programmers in the game industry commonly use it in their development environment. Getting started with wxWidgets on a windows platform is fairly straight forward.

Download the latest stable release http://www.wxwidgets.org/downloads/
Go ahead and grab wxMSW - installer for Windows. Make sure your visual studio is closed so that the environment variable gets set up correctly.

Next your going to need to compile the library. So go ahead and navigate to installDir\build\msw.
Open up wx.dsw and convert it to your native Visual Studio format. Close visual studio back down and open up each vcproj in the current directory through notepad or notepad++. Search and replace each of the following:
- RuntimeLibrary=”3″ with RuntimeLibrary=”1″
- RuntimeLibrary=”2″ with RuntimeLibrary=”0″

Once your done. Open up the solution again, and right click the solution in the solution explorer. Select Batch Build. Select only the release and debug for each project. Once complete your ready to create your first wxWidget application with the added work of including all the directories and .lib in your project settings.

Here are two good links to help you get through this:
http://wiki.wxwidgets.org/Compiling_WxWidgets_on_Windows
http://wiki.wxwidgets.org/MSVC_.NET_Setup_Guide#Project_Properties

If it doesn’t work out right, go ahead and triple check everything!

What I learned from all this was that while wxWidgets are great for multiplatform development they are probably not a solution for developing game GUIs. I’d love to hear what others think on this subject, meanwhile I’ll move on to setting up my own GUI framework after a few hours of sleep.

Monday March 23rd, 2009

I wanted to explore what wxWidgets was all about after learning that tool programmers in the game industry commonly use it in their development environment. Getting started with wxWidgets on a windows platform is fairly straight forward.

Download the latest stable release http://www.wxwidgets.org/downloads/
Go ahead and grab wxMSW - installer for Windows. Make sure your visual studio is closed so that the environment variable gets set up correctly.

Next your going to need to compile the library. So go ahead and navigate to installDir\build\msw.
Open up wx.dsw and convert it to your native Visual Studio format. Close visual studio back down and open up each vcproj in the current directory through notepad or notepad++. Search and replace each of the following:
- RuntimeLibrary=”3″ with RuntimeLibrary=”1″
- RuntimeLibrary=”2″ with RuntimeLibrary=”0″

Once your done. Open up the solution again, and right click the solution in the solution explorer. Select Batch Build. Select only the release and debug for each project. Once complete your ready to create your first wxWidget application with the added work of including all the directories and .lib in your project settings.

Here are two good links to help you get through this:
http://wiki.wxwidgets.org/Compiling_WxWidgets_on_Windows
http://wiki.wxwidgets.org/MSVC_.NET_Setup_Guide#Project_Properties

If it doesn’t work out right, go ahead and triple check everything!

What I learned from all this was that while wxWidgets are great for multiplatform development they are probably not a solution for developing game GUIs. I’d love to hear what others think on this subject, meanwhile I’ll move on to setting up my own GUI framework after a few hours of sleep.

Monday March 23rd, 2009

During a casual conversation someone brings up the idea of writing their own game engine. This is usually met rather stern remarks about complexity, lines of code, and a unworthy endeavor. Well for the most part I would say that is a true statement, and let me just say that is not what I’m trying to do. Well I’m trying not to think about it that way. My goal over the course of this week is to assemble together several sub systems I’ve done before, and some that I haven’t into a comprehensive sandbox. Then split it into several plug and play DLLs that I can use in future projects.

What I have so far:

  • Math Library
  • Event Handler
  • Win32 Framework
  • Resource Manager
  • DirectX Initialization and Callbacks

What I’m tackling this week:

  • GUI Framework
  • wxWidgets Integration
  • Network Framework
  • Console Debugger
Monday March 23rd, 2009

During a casual conversation someone brings up the idea of writing their own game engine. This is usually met rather stern remarks about complexity, lines of code, and a unworthy endeavor. Well for the most part I would say that is a true statement, and let me just say that is not what I’m trying to do. Well I’m trying not to think about it that way. My goal over the course of this week is to assemble together several sub systems I’ve done before, and some that I haven’t into a comprehensive sandbox. Then split it into several plug and play DLLs that I can use in future projects.

What I have so far:

  • Math Library
  • Event Handler
  • Win32 Framework
  • Resource Manager
  • DirectX Initialization and Callbacks

What I’m tackling this week:

  • GUI Framework
  • wxWidgets Integration
  • Network Framework
  • Console Debugger