When you HAve a 3d printer Christmas is a pretty fun time.

I’ve been using my wanhao and my m3d in overtime for the last couples of months. I made a commitment to myself to basically attempt to 3d print the most gifts possible during christmas time.

It was cool because I could try and figure out what people liked and give them something in that category. For the most part all of the prints came out at acceptable levels. The one that I had the most problems was a vase for succulents and it was mostly because I forgot to check to mark for non solid top I left and when I came back it had printed filled.

Okay so without further ado the pictures from all the items.

Too many darth vader rings


Thor’s hammer.


Can you say Batman?


Dendritas succulent pot


Did I mention Genius Link Key Chains


This where particularly hard those hooks are hard to add.


Mr. Kylo Ren


One of my pendants for my wife I printed in gold from Shapeways.


I also printed Kylo Ren’s Lightsaber and a skull but I forgot to take picture so I have no copies of it.

Aussie Puncharoo is out

After a lot of toil and fun the game I have been creating with the talented Louis Lonsway is finally out is the story about and australian bloke and his quest to get a Pint of Beer. Like everyday in the outback he gets attacked by tons of wild animals.

The game started has part of ludum dare 20 and me wanting to learn how to build a platformer. http://alfredoalvarez.com/blog/?p=160

To be honest I made a very big mistake building this game which was to focus on building and engine and spent less time on the game. Right now the game supports a lot of scripted mechanics not all which made it into the game.

The game is now on the store which is awesome and I can see that the process from the windows developer dashboard has been very streamlined.http://www.windowsphone.com/en-us/store/app/aussiepuncharoo/0cd99df2-fb9e-4774-8169-a9053f32c4ff

While I celebrate the victory of shipping I have already found the first list of improvements and bugs including a grave in which the game seems to be crashing to people with phones from the seven series. To the end of the development phase and the beginning of the support one.

Hackathon For Authism

The Bing fund in seattle organized and event called Hackathon for Authism. I participated this past weekend and just wanted to mention that it was awesome. While the food was kinda meh. Everything else rocked. 

The talks from experts and the testimonials from families afflicted were moving and gave us laser focus before starting.  The space on the surf incubator its pretty neat and made me feel extremelly comftable.  

This is my third hackathon in the seattle are and the feeling of cooperation here even between opposite teams was great. People were willing to stop by and give you feedback in the middle of the day.

We worked on a tool to help kids learn to type since its such an important skill in this day and age.

Our approach was to use open data sources to be able to provide the biggest range of content possible for images and for rewards video when the user completes an action. For more advanced levels we connected with Soddiio a mit project that lets people create stories(aba) so that kids can understand how to handle situations. We also gave the options to indicate if they were bored or if they got scared by the content and used twilio to notify the parents in these occasions. The architecture was a single html5 page doing the work with an azure backendimage

The project is open source so if you want to come help us drop by https://github.com/DevHuertas/typeit

Validating if a Sudoku solution is valid

I got this problem today has part of a conversation that I was having and thought I was interesting. Basically how can you in O( n ) validate that a 9×9 soduku is valid.

There are 3 rules that need to be followed for a validation to return true:

  1. For each row there can only be and instance of each numbers.
  2. For each column there can only be and instance of each numbers.
  3. For each cluster of 9 there can only be and instance of the set of numbers.

The trivial solution that comes to mine is to go and count for each of this different conditions but that would require at least 3 passes tru the grid. For my solution i decided to just store a hashset for each of the conditions that need to be valid and stop on a negative. We use the numbers has distinct markers and not has numbers in particular since being number has no properties that help us. Solution is below:

using System.Collections.Generic;

namespace Algorithms
public class SudokuPuzzleValidator
readonly int[,] _board;


public SudokuPuzzleValidator():this(newint[9, 9])



public SudokuPuzzleValidator(int[,] board)


_board = board;


public bool Validate()
const int integersInGame = 9;
var rowSet = new HashSet<int>[integersInGame];
InitializeSet(integersInGame, rowSet);
var columnSet = new HashSet<int>[integersInGame];
InitializeSet(integersInGame, columnSet);
var subGridSet = new HashSet<int>[integersInGame];
InitializeSet(integersInGame, subGridSet);

for (var row = 0; row < integersInGame; row++)
for (var column = 0; column < integersInGame; column++)
var cval = _board[row, column];
if (rowSet[row].Contains(cval))
return false;
if (columnSet[column].Contains(cval))
return false;
var subGridNumber = FigureOutSubGrid(row, column);
if (subGridSet[subGridNumber].Contains(cval))
return false;
return true;

private static void InitializeSet(int integersInGame, HashSet<int>[] rowSet)
for (var i = 0; i < integersInGame; i++)
rowSet[i] = new HashSet<int>();

private static int FigureOutSubGrid(int row, int column)
return column/3 + row/3*3;

How things are going current projects and sorry for the lack of update

Hi Everyone,

How come I have dissapeared for a few well the new contractor life and settling into the new pace has taken a bit more of me than I expected. On the good news Im a lot happier than I was in the sept – january time frame and gainfully employed.

I’ve been doing a lot of WPF for two reasons one i’m studying for a cert and second its what i’m currently doing at work.

I’m hoping to be a lot more active this month and bring some update to my old projects

  • There is no place for gnomes needs a new scoreboard and want to do an add based version
  • Reddit Screensaver needs and update and i want to transform it into a MMVM app
  • HDR raw want to try out some new formats in particular for the new sony lines is anyone still using this paint.net plugin??

I have been working on a Platform game aussie puncharoo probably for almost a year this weekend im going to commit to getting some progress and uploading a demo. Hoping to finish this project in the month of march to move to some ideas that i have to start my own business.

In terms of the blog im going to install win 8 today and then start describing the construction of an app that i will be work on a bit each day is going to be called contract manager and the purpose its to help you be a contractor on yourslef and keep track of everything that is going on in the life without a mother company

Happy Coding

Blender day 20 (actually day 10 since I had gotten 0 done in the last 10 days)

Well seems life caught to me and I had to get away from blender a bit also had my parents visit for a week which was pretty awesome. I got back to it today and decided to go back an revisit the robot that I was working on last time and give it some legs.

Just so its written somewhere is you do control p to a shape while also selecting the camera you can set to follow. note you have to select the camera first the the path. Also in the object data tab the one that looks like a curve you can go to path animations and set the seconds it take to run through it.

Below a picture and a link to a video showing it. Also a screen Shot of the mesh.




Blender day 3 camera animation and some scenery

Added a table to my hookah scene and a Floor i ‘m still not convinced I like the floor. Tried placing some walls had some weird effects.

Learned that I can move the camera for the video so I had a blast doing that and making a little animation out of it. It looks like crap but makes me feel like progress is happening.

Tricks I learned for the day

  • The top menu lets you select the layout
  • Using the cross in the corner you can divide the interface
  • Ctrl alt lets you split for an extra window

I watched this video today was pretty good.


Tomorrow by looking at the tutorial site looks like I will be doing baloons.

Alfredo out.

Taking a dive attempt to learn blender

I got bored at lunch today and decided to go revisit learning blender. Last time I tried it was in blender 2.0 and honestly Got so stuck that never managed to get anything done. Seems like the new version got an ui revamp and all I gotta say is that I dig it.

I started by following the following tutorialhttp://www.blendercookie.com/getting-started-with-blender/ After about an hour of work i had the following done.


Nothing fancy but a lot more than i had ever gotten so it got me pumped i kept doing the tutorial and ended up with the following image.


I tried to do a little animation and here it is for your enjoyment. http://alfredoalvarez.com/0001-0250.mpg Open it up its kinda funky.

Now to some useful information here are the list of commands that i learned from watching the series still need to learn how to extrude correctly

  • A – Select unselect all

  • S – scale

  • R – rotate

  • g- for grab translate

  • Tab to switch between object and edit view.

  • Shift D Duplicate

  • Numbers for view control

  • Scrollers zooms in an out shift scroll up and down viewport

A Little Experiment: Reddit Screensaver

A screen saver I made to answer this post in somebodymakethis reddit.


This is the thread for the request.


Below the first version of the screensaver let me know what improvements I should make.


Ludum Dare 20

I will be commenting here about every two hours of the progress of the game that im going to create for the competition.


Hi Everyone. Im ready to hear the title anouncement grabbed dinner and ready to go. After the title i will think a bit what the game is going to look like and get started on the mechanics of it :D.

8:25 pm

Got the character animation running right now is just a stick figure that changes color and working on using the accelerometer for movement. At the moment having issues since i have never used the accelerometer before and he seems like he is not that much into cooperating. Will post back around 11 hopefully i can do some screenshots The game is about an australian guy fighting his way to the outback to go get to a bar.


Finally got the accelerometer controls down and it works in conjunction with the animation. Used the pattern to manage scene that I used in there is no place for gnomes.

Plan on adding the buttons to be able to kick, jump and change weapons now. a Screenshot of what is looking like so far is not much but it’s a good start.


12:01 AM

Moved to work on creating buttons got 3 of them and found optimal placement for the gameplay also went ahead and added gravity in to the game since at the moment I haven’t added a floor the character falls pretty easily through the floor. I have decided that the tile space for the level is going to be as follow. 30×30 tiles with 14 tiles of height and then 40 tiles of width.

Another screenshot below has you can see not too mucho to look at the moment. I’m trying to get the mechanics solid and figure out the spots that need animations and later on I will reskin. The character is not on the screenshot since he fell through the screen.


2:22 AM

I took a break to take a shower eat something and look at other people talking in the Ludum Dare MIRC. Is cool to see the different levels of motivations in the time that I worked I managed to complete the tile map. Planning on dedicating the next hour to making the player be aware of the tile map and add tile map scrolling so that we can see the parts that currently don’t show.

Here is the screenshot of the tile map in action.


I’m starting to wonder if I’m going to actually get to implement weapons and different monsters Right now I feel like i;’m behind.

3:43 AM

I think this is it for me for today I got some more progress now the collision system works therefore I can stand on the tiles got a bit distracted and decided to work on a background and changed a few colors tomorrow morning I will pick up making the tile map actually scroll to the sides and adding the jumping, Changing weapons and punching functionality.


Below is a description of what im trying to do with the game and to be with the theme the outback is dangerous to go alone so at the beginnning I’m going to have a conversation reminding him to take his hat he also gets a knife and a boomerang on the way.

Aussie Puncharoo

3rd person sidescroller

Each level basically consists of a map formatted to the phone screen’s dimensions with limited left to right sidescrolling abilities. the maps will be set on a level plane for the player to scroll from left to right. the player is centered on the screen at all times as enemies in the form of koalas, kangaroos, etc. attack from both sides. the player switches from left to right to attack depending on where an enemy is attacking from. ideally, the player’s basic movements will be walk, jump and punch (knife and throw boomerang in later stages).

I will see you guys tomorrow.

April 30

9:30 pm

I have resolved to keep working on the game after taking a power nap when I came back from my daily routine. I figured that i f I don’t sleep I still got a good 21 hours to finish the game and submit.

I will report in about 2 hours with progress and some screenshots. Going to get this character functioning completely. Wish me luck on day two and on serious sleep depravation.

11:14 pm

Currently the character no longer runs out of the screen and the screen tiles move in relationship to the character. It seems like my brain at this point is kind of shot and my productivity has dropped significantly. Therefore I’m going to take a bit of a break from coding and do some art. Going to draw a better main character since red head ball is annoying me and also design the health bar and the entrance window hopefully by the next update I will be able to jump and have a start screen.

C ya in about 2 hours.

1:08 Am I worked on the art for the last couple of hours and got to the conclusion that I need to take a break and drink some water which I will be doing after writing. I remade the main character , Game loading screen. Text for When the game starts and the life bar. I Need to integrate all this parts into the game still since only the character go integrated.


Below the other two pieces of art



I’m going to take a break and then return will post again at 4:00 am with hopefully the actions done.

For those that are going to sleep have a good night.

3:54 AM

Took my break and came back and started coding working on making the jumping work. Sadly it has proven a lot trickier than I expected and revealed a bug in my tile map code so my character is falling through a few blocks that I can’t really tell the reason why. I’m going to be working on resolving this issues for the next few hours Confused smile. Will check in about 7:00 AM.

4:43 AM

Woot managed to get the jumping and collisions bugs resolved. Therefore you get an extra update.

To summarize a bit condition super tired. Part of the game remaining quite a lot so this is the plan:

-Do HealthBar
-Score System
-Add Enemy and ensure he gives damage
-Give main character the ability to be able to switch side is looking
-Add PunchingAbility
-Add Random Health Items
-Polish and give the game flow so that I can post it for the competition

Therefore I think I’m going to be removing from my scope the following items. Changeable weapons and variable monsters.

At least now that I don’t feel stuck. The motivation is coming back and moving some of the sleepyness away.

Will post progress at 7:00 again.

12:38 AM

It seems like the lack of sleep decided that I was it’s the master here and I crashed at around 7:00 so my last update was missed. I woke up at around 9:45 But had to do some stuff pertaining living like eating at take 1000 pund of tiles back to home depot so here we are. At the moment I’ve added the enemy kangaroo with animation the Helath bar and score point system Just need to make the kangaroos spawn by themselves. At this point there are six hours left and 4 things to do in my list so if I can kick one per hour and submit I should be ok(I don’t think I’m making it but not stopping). Latest screen shot is below:


I will report back at around 4. Official time left in 6 hours, 16 minutes, 9 seconds…

4:06 Lets see what has gone in the last few hours from the list I had from last night I’ve tackled the following:

-Do HealthBar
-Score System
-Add Enemy and ensure he gives damage
-Give main character the ability to be able to switch side is looking
-Add PunchingAbility

Additionally added game over event and enemy destroyed event in which a dead kangaroo gets Removed. sadly I have not added any way for more kangaroos to be added. So I made a decision In order to get the game today.

The game is going to be just a fight between you and one kangaroo for now. Going to remove some tiles so that you is simpler to fight. Whoever gets the life to Zero wins.

Will post again at six. I still need to figure out exactly how to post an xna game into the Ludum dare form.


Decided to do an extra post I made the game be able to handle the flow of starting window , context , game and ending. Honestly it functions but is not a very fun game at the moment. Feel really bad that I did not get to do add weapons variety of animals or even spawning and control of the monsters but you do what you have to. Going to clean up an remove the scoreboard and Change weapons button. Then add music that I got from wolfram tones turned into mp3 by http://www.hamienet.com

That’s the progress talk to you guys at 6:00

time left 1 hour, 52 minutes, 47 seconds


I’ve spent the last 15 minutes trying to get the music to work. The game works the mechanics are still a bit quirky but you can kill a kangaroo.

It was a pretty awesome experience this whole ludum dare I’m going to submit and let people critique it.

Thanks for reading.