Aug 26

Current Projects

Well I would like to let you all know what I am working on so think think that I just feel off the planet. Currently I am working on a few projects that I have decided to do on my own. The List is EverQuest 2 DM Toolbox, Destruct-Ore, Eve-Online API how-to, and various other projects. First up lets go with EveQuest 2 DM Toolbox.

– Everquest 2 DM Toolbox –
This is a all out search engine for EverQuest 2 based off the API. Also it will allow you to track progress by a character because it will save the previous gear/stats and everything else it grabs and let you see the differences between each check you do of that character. Also it will allow you to look up Items, guilds and anything else the API allows for.

– Destruct-Ore –
This is a replacement for MiningBuddy and when completed will be the end all be all for mining and other missions within a Corp or Alliance. This also in time will help to prevent theft and who has what along with help increase work and productivity.

– Eve-Online API How-To –
This is to help people learn how to use the Eve-API with the use of Pheal or just using Curl and XML. This is a on going how-to site.

– Arduino –
I am working on some new Arduino projects and will be showing them off soon.

Sites for the projects will be coming soon to the side bar of this site.

Jul 30

Lack of posts

Well I am here to explain why I have had a lack of postings for the past well almost 2 months now! I have got a new job and the job is going well and I am enjoying it but it is taking most my time right now. Along with that have had some personal health problems with my wife during her 2nd pregnancy. I will start posting more and more here again now that things are starting to calm down and relax and getting into the swing of how things are going. I will be posting more code up here soon and more linux stuff as my new job has me working more with linux than windows which is always been a dream of mine.

I hope that you will come back and check from time to time and let me know what you think about what I have posted here please. Have a great day and hope to post here again soon, I am going to go for a 2 posts a week. Saturday and Tuesday is what I will be shooting for.

May 30

MineCraft Turtle Code – Tree Harvester!

Well few months ago I talked about playing MineCraft and how I have been playing with the turtles within the game from the fun mod ComputerCraft. Well I am back today to show you something that I created and will be expanded on when time permits to allow for Automatic tree harvesting of any tree type in the game. Right now all the code does is allow for 4×4 trees IE Fir and Redwood. The code has changed from the first bit I created back in march to allow for the harvesting of Redwood trees and not just Fir trees.

Have fun with this code feel free to expand on this but do keep the comments within it as they are and just add-on to it. Please check back here for updates to this code and look at the git hub site on the left menu bar for the newest code.

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
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
--[[
 
  Automated Tree Logger v0.4
  Created: 1/6/2013 22:10 PST
  Updated: 5/30/2013 09:00 PST
  Created By: Proopai
  Description: This program is used to automatically chop down fir trees.  It is the first step in a fully automated Wood Farming Farm.
	       This will be expanded out to allow the Turtle to dump the logs into a sorting chest and then refill fuel, bonemeal, and saplings
	       as needed.
 
  Future Features
  ---------------------------
   - Wireless Control
   - Refuling and Fuel checks
   - Item Sorting
   - Automatic Planting
   - Automatic Tree Growth
   - Ability to cut Different Tree Types
 
  2/25/2013 Update
  ---------------------------
  Placed so that if you put a chest to the left of the turtle it will drop everything off from Slot 2 on.  This might
    in the future to allow for the ability of adding saplings and bone meal to allow for automated planting and
    tree creation.  Currently the only problem is when you have to many leaves in the sky the tree will not plant.
    This currently works for all trees with 4 section bases.  I will be making a automated tree harvester for single
    trunk trees.
 
  5/30/2013 Update
  ---------------------------
  With changing of the compareUp() to detectUp() it will allow the ability to cut down any 4x4 tree.  The next update
   will have the addition of refueling and fuel level check.  Along with Redstone signaling to allow for remote monitoring
   of the turtle with a computer and redstone network.
 
--]]
 
e = 0
 
while e <= 9 do
  turtle.forward()
  e = e + 1
end
 
turtle.dig()
turtle.forward()
turtle.select(2)
turtle.turnLeft()
 
i = 0
 
while turtle.detectUp() do
  turtle.digUp()
  turtle.dig()
  turtle.up()
  i = i + 1
end
 
turtle.dig()
turtle.turnRight()
turtle.dig()
turtle.forward()
turtle.turnLeft()
 
while i >=1 do
  turtle.dig()
  turtle.digDown()
  turtle.down()
  turtle.dig()
  i = i - 1
end
 
turtle.turnLeft()
turtle.forward(10)
turtle.turnLeft()
 
d = 0
 
while d <= 16 do
  turtle.drop(d)
end
 
turtle.turnLeft
May 15

Eve-Online API – To use Pheal or just Straight XML – PHP Turtorial

Well hello everyone! Today I am going to talk about a game that I play Eve-Online.  This game is quite nice as it has the ability to allow users who program a option to get in-game information from outside of the game through the use of an API Service.  This API Service gives you information out of the game in the form of XML.  XML is a language that allows for easy modification and manipulation of the data from a external source.  Below i have a output of what the XML looks like when you request the /account/APIKeyInfo.xml.aspx page of the Eve-Online API.  Please note if your going to use the API make sure you have an active account or someone who will give you access to their API key to test things with.

1
2
3
4
5
6
7
8
9
10
11
<eveapi version="2">
  <currentTime>2013-05-15 20:19:27</currentTime>
  <result>
    <key accessMask="134217727" type="Account" expires="">
      <rowset name="characters" key="characterID" columns="characterID,characterName,corporationID,corporationName">
        <row characterID="197034586" characterName="Devilen" corporationID="98180021" corporationName="Worm-Tech Inc."/>
      </rowset>
    </key>
  </result>
  <cachedUntil>2013-05-15 20:24:08</cachedUntil>
</eveapi>

Now that we have this information it is time to decide are we going to use PHP SimpleXML or Pheal.  The difference is Pheal has everything nicely placed for you so that you don’t have to deal with navigating the XML mine field.  Now if you go with SimpleXML you will be able to just directly access the XML that is sent to you and will be forced to handle any and all errors with the XML from CCP (The company that produces and makes Eve-Online).
Example of Pheal:

1
2
3
4
5
6
7
8
9
10
11
12
<?php
  require_once "pheal/Pheal.php";
  spl_autoload_register("Pheal::classload");
 
  $pheal = new Pheal("KeyID", "vCode"); // note you will need to put your own KeyID and vCode in.
 
  $result = $pheal->Characters();
 
  foreach ($result->characters as $characters) {
    echo $character->name."<br>";
  }
?>

What this does will go grab that API Key page using Pheal and it will then take the XML and only grab out for you the Character’s name but only the name so as you can see there are other fields too you can use $character->characterID to get the ID of that Character or $character->corporationName to get the name of the corporation the character is part of or even just grab the information and throw it all into a database to call it back later as this is static information.
Example of SimpleXML:

1
2
3
4
5
6
7
8
<?php
  $apiSite = "https://api.eveonline.com/account/APIKeyInfo.xml.aspx?keyID=&vCode="; // note you will need to put your own KeyID and vCode in.
  $xml = simplexml_load_file($apiSite);
 
  foreach($xml->result->key->rowset->row as $rows){
     echo $rows->attributes()->characterName."<br>";
  }
?>

What is going on is this will go to the site that you put in and grab the output based off the url. This can be a problem if you don’t type in the url correctly or fail to put the correct keyID and vCode in. Then it grabs the XML places it into the place holder of $xml and you then loop the entry of row so it will grab all the characters within the account. You can only have 3 characters per account.

Right now most people will agree when I say that Pheal is simple and less knowledge needed for getting the data out of the xml documents that you have to parse from the Eve Servers. Some might say well the SimpleXML has less lines of code and it looks straight forward. I would agree both are simple and with the exception of Pheal allowing you to change any the URL’s for whats needed by using the $pheal->scope function it is actually a pretty good library. This something you will have to do manually with SimpleXML by editing the URL For the tutorial going forward I will continue to use the Pheal api library and when needed show the SimpleXML counterpart.

If you have anything that you would like to see based off this tutorial let me know and I will see what can be done and if there are any tutorials that I can do for everyone.

May 08

Updates and Cloudflare

Well as the title says I have been playing around with the site a bit and it has some updates done to it and the most important one of all is the fact that it has been enabled to use CloudFlare to help the site serve what is needed quicker and more effective.

I am looking to get more information up here soon as possible a contact me page and a donation page to help cover the costs of the site and projects I will be starting and writing up how to’s on.  If you help donate to them you will be given the ability to have a shot at owning the final product when it is completed.  More about this in the next few months as it is something I am working on.

I am also going to be adding Small Adverts around the site to help cover the costs of development of the site and managing it.  So don’t feel the need to have to click on them but if there is something you want then feel free to click on it.

Also more Programming Code to be posted here and uploaded.  I will be writing how to on how to use XML to grab API data information from the Eve API along with how to use the Pheal and PhealNG library’s if your not sure.  Along with more Arduino and some Python code as I learn it my self.  I will also upload my Objective-C Code from my iPhone and iPad Programming.

I hope that everyone is doing well and post soon!

Mar 27

New News!

Well the news is already out there but Come October 30th 2013, or around that time, me and my wife will be welcoming into the world another child. We are not sure if it is a boy or girl yet but we hope that they will be healthy!

Game Talk
With that said I would also like to note I have not been able to play MineCraft as of late due to playing StarCraft II and Eve-Online so much. I have also been working on projects from people in game with some coding thats been needed to be done. They are hiring me to make applications for them that work within Eve-Online, If you are looking for something too feel free to drop me a line.

Minecraft
I should have more code here soon that will work on the turtles. If you have any idea’s for Turtle code please drop me a line and do not forget to check out my website on github the link in on the side.

I hope to get another post on here before the end of the Month till then Goodbye!

Mar 01

New Turtle Code for MineCraft

Well the past few nights I have been playing MineCraft and I have been playing around with my turtle on it his name is Leo. I was using the Tunneling program that is built into the turtles and have found out that it very minimal it will only make a 2 tall by 3 wide box. So I decided to make one that allows you to make custom tunneling program. This is the code I have so far, it is all done in Lua. I know that there is not much to it except the fact it asks you 4 questions. The questions are How Deep would you like to dig? How Tall would you like to Dig? How far to the Left do you want to Dig? And How far to the right do you want to dig? They will create the statements that will say how big of a opening you want and how deep of a tunnel you want it to be.

The code will be developed over the next few months to be a truly custom Tunneling program please check back often to see how it grows.

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
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
--[[
 
  Custom Tunneling Program v0.1
  Created: 2/28/2013 20:00 PST
  Updated:
  Created By: Proopai (Eric Vasquez)
  Description: This program is to use the Turtles to make wider Tunnels then 2x3.  
                 It will allow you to state how tall you want the tunnel to go 
                 and how wide you would like it to go along with placing a Torch.
 
  3/1/2013 00:01 PST
  ------------------------
  This will be expanded little by little till it is completed.  It will be able 
    to make a tunnel that goes in one direction for a set time limit.  Refueling 
    is planed to be put in but is yet to be entered into the application. Right 
    now all this does is have the menu setup working on getting the rest of the 
    functions setup.
 
--]]
 
function load()
 
  term.clear()
  term.setCursorPos(1,1)
  print("Tunneling version v0.1")
  print("How Deep of a Tunnel Do you want?")
  write("#")
  deep = read()
  print("How Tall of a Tunnel do you want?")
  write("#")
  tall = read()
  print("How far out on the left do you want?")
  write("#")
  left = read()
  print("How far out on the right do you want?")
  write("#")
  right = read()
 
end
 
function leave()
 
  term.clear()
  term.setCursorPos(1,1)
  term.restore()
 
end
 
function startTunnel()
 
  a = deep
  b = tall
  c = left
  d = right
 
 
end
 
load()
print("I will dig "..deep.." blocks in")
print("I will dig "..tall.." blocks high")
print("I will dig "..left.." blocks to the left")
print("I will dig "..right.." blocks to the right")
startTunnel()
leave()
Feb 26

Wooden Chair Project

Well it is almost the end of February and I haven’t posted any new projects that I have been working on. Last year I set out on a new project for myself, to learn a new hobby and the new hobby I decided to start to learn is wood working. This is been pretty fun so far I have refinished and redone a butcher block table and now working on 3 chairs. I have not yet attempted to build anything as I am still learning the ends and outs of wood working. But here are some pictures of my the 3 chairs that I have stripped of all the varnish and paint along with the removal of the pads that where rotting due to water damage.

This chair is one of 3 chairs that a friend of mine gave to us when they moved. The chairs seat had lots of water in it and was starting to rot and mold. We removed the seat and let the wood under the seat dry for 24 hours. This is what it looked like after the seat had 24 hours to dry.

This is the wooden chair minus the seat.

This is the wooden chair minus the seat.


Continue reading

Feb 26

New Code on GitHub

Well as you can see from the side panel I have my GitHub Repository attached to my site here. Anyone can check out all the code that I place for anything I do there on that site and use it as they wish but must ad-hear to all the rules of the copyright and Terms depending on what they are using. Right now all I have on it is some code for the computers within MineCraft expansion Computer Craft, a older PHP Project I took over after it’s creator and developer left it and the game it was designed for. The Last Repository that is on the site is my old Demo work and things I did to learn how to program Objective-C. I will have more code to put up at a later date when I look through all my old code I have for Visual Basic and other applications. I will be placing another one up shortly today for My Arduino Programming.

If you have any questions or would like help with something please just contact me.

Jan 25

New Year New Projects

Well it is now 2013 and I have finally have free time to talk about the projects that I want to work on. First things First I finally got my Digisparks. What is a Digispark you might ask? Well a Digispark is a small Arm controlled processor that runs Arduino code. They will be used in future projects of mine and I look forward to being able to build something with them and my Arduino Uno. The next thing is that I finally have got my first application that I will be releasing, Destruct-Ore, this is a Content Management System for an online game called Eve-Online. This will help corporations manage their members and alliances manage the corp members and the corps members.

I am also working on a iPad application game that will be a small tower defense game. I hope to have a few more examples and demo programs to post up here in the future. One task I am working on is a MineCraft Program project once that is off the ground I will place on here what I have and what it does with a link to the GitHub location. Well with that its the end of my first posting of 2013 see you all very soon.