RSS Feed
Language :
Email Address : Password :
Action :       Index       Register       Help       Forget Password?
View Entries
    Recent Entries
    Most Popular Entries
    Return to Orinetz
Sub-Categories
Anime and Manga
Business
Programming
Science and Mathematic
Fiction
Culture
Orinetz Main Panel
( writer : Fendy )
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 Next >>
Moe Character Generator
Tuesday, July 20th 2010

Yesterday, I got an infomation about this Moe Character Generator that can be downloaded for free in KH Mix Website. Having both a great interest in anime and practically no skill at drawing, such kind of software really make me want to try it.


The software is actually relatively easy to use. You only have to know which part of the panel will change which part of the girl design. You can change the hairstyle, face, expression, eyes and cloths worn by the characters. The accessories panel is a bit different, since you are allowed to choose more than one accessory.


The second panel is for changing the color of various part of your character's body. The things which color can be changed are the hair, eyes, clothes and skin. There isn't much option for skin though.


Unfortunately, the software in itself doesn't allow us to either add backgrounds or add more characters into the scene. However by pressing F6 you can generate an image of the character with alpha masking included. This means that we could write a HTML script and run it on either Opera or Firefox and let them render the screen.


Also note that all characters generated by the software are always of the same height and stature. You will need to give them different height and body proportions in the HTML script.

Share   :
Keywords   :   moe characters, character generator, html
Action   :   Grammatic Suggestion

Views : 284       Views per day : 5.46       Comments : 5

CPS protocol for changing multiple web component using AJAX
Friday, May 21st 2010

Having been using both PHP and JavaScript to build this website, I find it funny that this website actually contain no AJAX at all. You can search all part of Orinetz Network and unless after I make a major makeover to this website in the future, you won't find AJAX technique used in the visible part of Orinetz Network.

Yeah I know it is pathetic, but I barely understand AJAX before I get some project to do in Freelancer.com. In fact, I accepted a medium-sized project to make games using AJAX before I know much about AJAX itself. Of course that means I have to learn AJAX really fast and I am glad I can.

When making something as complex as a game, it is often necessary to change several parts of the web-page using a single HTTPrequest. To do this I had made the following CPSresponder function, which every visitor to this blog are free to use.

function CPSresponder(cps)
{ jomed=true;
  cpsa=cps.split(' ');

  n_cpsa=cpsa.length;
  if(cpsa[0]=='ACCEPT')
  { mc=1;
    while (mc+3<=n_cpsa)
    { obj_id=cpsa[mc];
      set_type=cpsa[mc+1];
      set_val=cpsa[mc+2];
      if(obj_id.length>0)
      { comm='document.getElementById(''+obj_id+'').'+set_type+'=''+set_val+'';';

        setTimeout(comm,10);
      }
      mc=mc+3;
    }

  if (mc<2) jomed=false;
  }
  else jomed=false;

  return jomed;
}


The cps input is where you put the output of your HTTPrequest result, or part of it. The format of the cps is:

ACCEPT {element_id} {element_part} {desired_value}

Try the following script to understand how CPSresponder works.

<html>
<head><title>CPS Trial</title>
<script language="JavaScript">
function CPSresponder(cps)
{ jomed=true;
  cpsa=cps.split(' ');

  n_cpsa=cpsa.length;
  if(cpsa[0]=='ACCEPT')
  { mc=1;
    while (mc+3<=n_cpsa)
    { obj_id=cpsa[mc];
      set_type=cpsa[mc+1];
      set_val=cpsa[mc+2];
      if(obj_id.length>0)
      { comm='document.getElementById(''+obj_id+'').'+set_type+'=''+set_val+'';';

        setTimeout(comm,10);
      }
      mc=mc+3;
    }

  if (mc<2) jomed=false;
  }
  else jomed=false;

  return jomed;
}

</script>
</head>
<body>
<table cellpadding=10 cellspacing=5 border=1>
<tr><td width=100>Silver</td><td id="silver_td" width=50 align=left> </td></tr>
<tr><td width=100>Gold</td><td id="gold_td" width=50 align=left> </td></tr>
<tr><td width=100>Platina</td><td id="platina_td" width=50 align=left> </td></tr>
</table>
</body>
<script language="JavaScript">
CPS_sample='ACCEPT silver_td innerHTML <b>5000</b> gold_td innerHTML 6000 platina_td innerHTML 2500';
CPSresponder(CPS_sample);
</script>
</html>


The other step you need is connecting this CPSresponder script to an HTTPrequest.respondText which you can learn more in the AJAX tutorial available in w3schools.com. I learn most of what I know about web programming using online materials. In fact I don't know much about PHP and MySQL even after I graduated from university.

Share   :
Keywords   :   php, javascript, ajax, changing multiple web component
Action   :   Grammatic Suggestion

Views : 393       Views per day : 3.54       Comments : 0

PHP script for Seconds Difference between two datetime
Friday, May 21st 2010

Lately I have been busy working on projects I got from Freelancer.com, that I didn't get enough time to post anything in Orinetz at all. I am still busy with the same project at the moment, but I decided to write something here anyway, since I found something interesting today.

To make long story, I am getting some headache today trying to calculate the second difference between two datetime fields in SQL. The function is required as a part of the queue function in a city building game. I have tried various kind of query function, but no success at all with the SQL.

After chilling my head a little bit, I decided that trying to do the same thing using PHP will be wiser than keep finding out how to do it with SQL. The system is a hybrid between PHP and MySQL anyway and the MySQL is obviously not the programming tool. So here's the CalculateSeconds function I write to look for the difference between two stored dates.

function CalculateSeconds($date1,$date2)
{ list($date1_date,$date1_time)=explode(" ",$date1);
  list($date2_date,$date2_time)=explode(" ",$date2);

  list($date1_y,$date1_m,$date1_d)=explode("-",$date1_date);
  list($date2_y,$date2_m,$date2_d)=explode("-",$date2_date);

  list($time1_h,$time1_m,$time1_s)=explode(":",$date1_time);
  list($time2_h,$time2_m,$time2_s)=explode(":",$date2_time);

  $jd_date_1=gregoriantojd($date1_m,$date1_d,$date1_y);
  $jd_date_2=gregoriantojd($date2_m,$date2_d,$date2_y);

  $date_diff=$jd_date_1-$jd_date_2;
  $time_diff=($time1_h-$time2_h)*3600+($time1_m-$time2_m)*60+($time1_s-$time2_s);

  return $date_diff*86400+$time_diff;
}


Assuming that $date1,$date2 is written in YYYY-MM-DD HH:MM:SS format, this function should works well. The manual for using gregoriantojd can be found here in php.net and this script was partially inspired by a script in developertutorials.com. Also it is advised that you use 24 hours format for the HH part if you want to include this function in your script.

Share   :
Keywords   :   php, sql, second, datetime, difference
Action   :   Grammatic Suggestion

Views : 115       Views per day : 1.05       Comments : 0

Explaining Freedom in term of Slavery
Friday, April 16th 2010

This morning a thought suddenly appear in my mind and I already posted it as my Facebook status. The thought in question is "I am not sure people want freedom. They want to become slaves that can choose the color and material for their shackles. They also don't want you to give them those shackles for free, they want to earn those shackles all by themselves. Yes, people are that masochists."


One thing that lead me to this thought is my observation on how people behave. People rarely want to take as many degree of freedom as possible to their life. If that is true, then we would observe a lot of people wanting to permanently transform themselves into Rainbow Clouds of Nanite. From what I observe, it is not easy to find people who want to transform themselves into Rainbow Clouds of Nanite even among trans-humanists sympathetic population. Even if they want to, it is rare to find among them who want that transformation to be permanent.


The second thing that lead me to this thought is my observation on words and their meanings. Even words with opposite meanings have cross-able distance between their meanings. While free citizens and slaves may have meanings opposite to each other, the meanings between the two words could be bridge by adding some term. Slaves who can choose the color of their shackles for example, is closer to free citizen than slaves who don't.

The third reason for this thought is the fact that if you give for free people will take it for granted, but if you sell people will buy it. If we think about it, the problem with slavery actually lies in the fact that status of slave is given for free to the descendants of people who had hold the same status before. People want to be special and giving the status of slaves for free make them think that the status have no prestige behind it.

On the other hand, if you ask people to work hard and get certain Slaveworthy Certification before they can get accepted as your slaves, the position will looks more prestigious for them. Slaves who work and study hard to get their status as slaves are more likely to work hard to maintain that status. Slaves who get their status by heredity without any efforts in their part, will not be as productive.


Require people to work hard to get the privilege to wear those pretty golden shackles and they will wear it with pride.

Share   :
Keywords   :   freedom, slavery, shackles
Action   :   Grammatic Suggestion

Views : 203       Views per day : 1.44       Comments : 3
K-ON! Farmville Arts - Kotobuki Tsumugi
Saturday, April 10th 2010

Today, I visited Farmville Art website. That particular website host various arts created using various decoration available in a Facebook Games, Farmville. The arts are made by arranging different objects within the game to form something recognizable as pictures or symbols.

Being both a fans of FarmVille and K-ON!, I thought I am going to make a Farmville arts of my favorite K-ON! girl, Tsumugi Kotobuki (CV : Minako Kotobuki). The picture used to guide the construction of this FarmVille art was taken from K-ON! anime official website.


First, before deciding what kind of art you are going to make, it is advised to calculate how much land in your farm you are willing to sacrifice for the sake of said art. It is better not to sacrifice everything you have in your land, since you may need to plant crops later to harvest so you can have enough fund for your next artistic projects.

Before the picture can be used as an art guidance, the picture have to be cropped and re-sized. The re-sizing is required to fit the number of pixels within the land set aside for the sake of the art. Also do some research to find out whatever object in FarmVille is needed to create your FarmVille art. Make sure that you already have access to purchase all those objects.


Now that the art guidance picture is ready and the the object that correspond to each color had been decided, I only have to place each objects in the place they are expected to be. Start with the Hay Bales, since once selected from the Market Menu, you can place as many as you want.

Anyway, it turns out that there is no Hay Bale with color that match the face of Mugi-chan, so I have to use White Stools to do the face. I was worried whether the art is going to turn out well or not, since before the White Stools are applied to the face, I see nothing that looks like Tsumugi at all.


The white stools have to be applied one by one. That means, I have to open the Market Menu, select white stool, place it in the farm and repeat until the face is complete. But in the end, it seems that my effort was not in vain.


Finally, the face and hair of Tsumugi Kotobuki is completed, along with the top part of her uniform. I used the Purple Hay Bales to make her uniform at the moment, but it doesn't satisfy me. If there is some object in FarmVille later which color is dark blue, that will surely replace the Purple Hay Bales.

Share   :
Keywords   :   farmville, facebook game, farmville art, k-on!, kotobuki tsumugi
Action   :   Grammatic Suggestion

Views : 214       Views per day : 1.41       Comments : 1
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 Next >>