Miner Phil

The place where I unearth useful bits


Archive for the ‘Programming’ Category

Zend Framework

Thursday, February 28th, 2013

So, I took the plunge today into the Zend Framework

http://framework.zend.com/manual/1.12/en/learning.quickstart.intro.html

(more…)

JQuery Bootstrap: Better than Sliced Bread

Sunday, February 3rd, 2013

This weekend, I learned a lot about life. I learned about GRAILS’ native security plugin, I learned about how Netbeans is just like pre-Windows XP (just reinstall when it stops working!), but most importantly, I learned about a really awesome JQuery plugin called Bootstrap.

The website describes it as a “Sleek, intuitive, and powerful front-end framework for faster and easier web development.” And my oh my, is it ever! To put this in perspective, I spent the greater part of yesterday simply battling CSS and handling multiple resolutions when all I had to do was include this framework in my project and BLAMMO, insta-kill.

I’ve given up on the project, but I’ve considered it a lesson learned: use Bootstrap! You won’t regret it!

Groovy in Netbeans

Wednesday, January 30th, 2013

Not too long ago, I started using a framework called GRAILS, which meant learning Groovy. To my delight, Groovy is a groovy language!

I’ll save my explanation for a later post. For now, I leave you with this article describing how to use Groovy in a classic Java program using Netbeans. Enjoy!

http://netbeans.org/kb/docs/java/groovy-quickstart.html

Python Enumerate

Monday, January 7th, 2013

I find myself programming in a variety of languages these days. Today, I found a nugget of information pertaining to retrieving the index of a for-each-loop’s iteration.

 Python |  copy code |? 
1
data = ( 'a', 'b', 'c' )
2
for i, f in enumerate( data ):
3
    print "%d => %s" % ( i, f )

From:
http://zerokspot.com/weblog/2007/03/12/for-loop-with-index-in-python/

Remote Laptop Video Chat Station

Sunday, December 16th, 2012

So, a while ago, I blogged about a Remote Laptop Carrier made out of Lego’s and controlled using a Lego Mindstorms NXT to be used for my family’s New Years’ Eve party this year.

I had a bit of a reconsideration to the design after thinking about the amount of space this thing would need to run around. Simply put, there isn’t enough room for 25 people and a klunky remotely-controlled robot in my parents’ home. So, I brainstormed a bit, and came up with this:
(more…)

Card Cataloger

Friday, December 14th, 2012

I have a lot of Magic: the Gathering cards. A LOT. Okay, so I exaggerate, but it’s more than I care to manually catalog myself.

So, on a recent 10-hour trip back home from vacation, I brainstormed on how I can accomplish this without painstakingly pawing through each card.
(more…)

Mindstorms Remote Laptop Carrier

Wednesday, December 5th, 2012

I live about 4 hours away from my parent’s home, which makes it somewhat difficult to drive there whenever I want to.

Since we do have a New Years’ Eve party every year, and I will be unable to make it this year, I decided to start work on a “way for me to be there without physically being there.”
(more…)

Phil’s Deck Builder

Wednesday, December 5th, 2012

A while a go, I decided to make a deck builder for Magic: the Gathering. I originally designed the program in Visual Basic, but after going through the trouble of trying to share it with my friends, I re-wrote it in Java.
(more…)