Skip to main content

Posts

Ludum Dare 33

My Entry for Ludum Dare 33 http://ludumdare.com/compo/ludum-dare-33/?action=preview&uid=34284

Selenium waits

WebDriver driver = new ChromeDriver(); //implicit wait driver.manage().timeouts().implicitlyWait(3, TimeUnit.SECONDS); //explicit wait - wait given a timeout time WebDriverWait webDriverWait = new WebDriverWait(driver, MAX_WAIT_TIME); webDriverWait.until(ExpectedConditions.visibilityOfElementLocated(By.xpath(GRID_TITLE_XPATH))); //fluent wait - wait given a timeout time and polling interval public WebElement fluentWait(final By locator) { Wait wait = new FluentWait (driver) .withTimeout(30, TimeUnit.SECONDS) .pollingEvery(2, TimeUnit.SECONDS) .ignoring(org.openqa.selenium.NoSuchElementException.class); //Can also use functions from ExpectedConditions class such as ExpectedConditions.visibilityOfElementLocated(By locator) WebElement element = wait.until(new Function () { public WebElement apply(WebDriver driver) { return driver.findElement(locator); } }); return element; }; WebElement e = flu...

CoderByte Array Addition I

I started playing around with coderbyte a place to test your programming skills. I was stumped for a bit on this question Array Addition I: "Using the JavaScript language, have the function  ArrayAdditionI( arr )  take the array of numbers stored in  arr  and return the string  true  if any combination of numbers in the array can be added up to equal the  largest number  in the array, otherwise return the string  false . For example: if  arr contains [4, 6, 23, 10, 1, 3] the output should return  true  because 4 + 6 + 10 + 3 = 23. The array will not be empty, will not contain all the same elements, and may contain negative numbers.  Use the  Parameter Testing  feature in the box below to test your code with different arguments." But eventually hammered it out. I saw some people using multiple for loops as well as nested loops. I took a different approach and just did math with the exception of one for loop....

Libgdx: Create Item Database using JSON files

This blog post describes how to create an Item database using libgdx JSON parser and storing it in a Collections object to retrieve from. 0.) Create the JSON file Save this as "weaponDb.json". This JSON object is used to create a list of Items in which we can grab items from. [ { "id": 1, "name": "Dumb Basic Sword", }, { "id": 2, "name": "Bad Ass Flaming Sword", }, { "id": 3, "name": "Sword of Kick Ass", } ] 1.) Create the test A simple JUnit test to test our database import com.mygdx.items.Item; import com.mygdx.items.ItemLoader; import org.junit.Test; import java.io.IOException; import java.util.ArrayList; /*Simple Test Case*/ public class TestDb { @Test public void testDb() throws IOException { ItemLoader itemLoader = new ItemLoader(); ArrayList database = itemLoader.load(...

Team Logo created with Inkscape

Here's a logo I created with Inkscape. It's a bird. Feel free to download it and study it. https://dl.dropboxusercontent.com/u/1021767/SVG%20SHARE/avengers_logo.svg

Sample Game Art

Experiment using same shapes to create characters. Just scale to create small/big characters.

Cool Python Tricks

Print Append Using print to append string to file file = open('path/to/file','a+') print >> file, 'string to append' print >> file, 'another string' If you check your file you should have string to append another string Dictionary Functions Map functions in python dictionary def doThis(): print 'this' def doThat(): print 'that' def doThose(string): print string func_dict = { 'this':doThis, 'that':doThat, 'those':doThose } func_dict['this'] #prints this func_dict['that'] #prints that func_dict['those']('Python is cool') #prints Python is cool More to come...

Job Interviews

I had a job interview today. Man it was rough. I forgot to brush up on my skills and knowledge in computer science and tried to wing the interview. Bad idea. Even though I felt I answered most of the questions decently, it was still very challenging. I bet those guys thought I was an idiot. [+]A note to anyone who is thinking about or about to get an interview for a programming job. Make sure you know about data structures, algorithms, efficiencies of data structures, linked list vs arrays(not dynamic), sql statements such as joins and why NULLS are bad in tables. If you list a programming language be prepared to answer some questions about it. I thought I knew a lot about python. Turns out I was still not too knowledgeable about the simplest stuff.  This was quite the experience but I think for my next interview I will go in more prepared.

Mobile App UI Mockup

Here is a mock up on the UI I want to "try" for my application. Enjoy. Download link on request.

Jython Set Look and Feel

Here is a code snippet to add look and feel using java's UIManager in jython. Add this snippet to your code and then reference it in your class __init__ function.                                                       Example from javax.swing import UIManager class App:                                                            def __init__(self):         setTheme("Nimbus") #If none specified it uses default LAF         #...Rest of code #ADD THIS FUNCTION   def setTheme(theme=None):                                               ...
A custom 404_page I made for my website.

Community Service Site WIP

A snapshot of my senior capstone project. Getting ready to launch it into alpha tests soon. I used the Django web framework.
I was having some trouble texturing a tree in gimp so I turned to my favorite tool Inkscape and here is the result. I still need to play with it some more but I am pretty happy about this style. 512x512 texture.
GameDev Notes: Got most of the basic concept art done, very basic and just some sketches. Most likely to change. Working Title: NiteLite Realistic Goals: Week 1 1 stage 1 enemy 1 tower 1 character

Website Mockup

Hey everyone it's been a long time since I've posted anything. But here is something I've been working on lately. This is just a mock up/work in progress. I am still coding the back end. Hope you guys like it.

Requested work

I help a lot of students on their capstones whether it's art or ideas but here is one of the latest. Courtesy of Josh Okon. "Java MP3 Player". Props for using new nimbus look and feel.

Asian Student Association WCU Logo

Working on advertisements and promotion for the Asian Student Association of Western Carolina University.

Shirt Design: Stompfest

Here's the shirt design I did for the 2011 Stompfest Competition.