View Posts for Unfiled

  • So I ran into this PHP issue with Static variables

    |
    Updated at
    http://stackoverflow.com/questions/3169993/overriding-static-members-in-derived-classes-in-php?rq=1

    The above link has a great example of what I want trying to do. I was trying to assign static variables in a subclass that inherited it's static variables from a base and turns out that doing that changed the static variables inside of the base, which is a huge problem for what I was doing. There are many classes that inherit from this one base class, so one screw up like that and things go awry everywhere.

    The...
  • Starting to see why an Entity table could be useful.

    |
    Updated at
    I've been discovering ways to manage data/resources in my database for Dark Gale and one way I found was to manage resource states, locks, and actions. Resource States are basically a link to a resource (Account, Notification, Mail, Magic, Item, etc.) and I attached two states (new, hidden) to this resource state to avoid lookups for checking if a resource is new or hidden especially since the table is so light weight. Locks work exactly how it is supposed to where it maintains a lock on an artificial resou...
  • What is with Impl being a suffix?

    |
    Updated at
    http://isagoksu.com/2009/development/java/naming-the-java-implementation-classes/

    I've been looking at some Javadocs for Hadoop and Hazelcast to name a few and I've been seeing this Impl suffix as explained in the article above. I can't stop double taking at a classes that have this suffix. What is the point? What happened to learning how to name your classes? Why isn't there a Interface suffix or Abstract prefix in the class name if you are so lazy? It feels very weird seeing the name of what you want and t...
  • Just threw Excerion System on GitHub

    |
    Updated at
    https://github.com/normano/exsystemTo be consistent with my Open Source declaration, I decided to release this thing. It is a library that provides common tasks in a wrapped form. Mainly created from repetitive code.

    Beware, it is a beta library written in PHP, so I don't suggest using it for production. The JS lib is also experimental.

    Beta meaning things are always subject to change without any notice.

    Here's links to sections of the article.

    PHP Lib - Mainly back-end tasks.

    JS Lib - Primarily for front-end ta...
  • Because Hibernate 4.1 docs are pretty annoying

    |
    Updated at

    Annotation Weirdness

    http://stackoverflow.com/questions/305880/hibernate-annotation-placement-question

    For a weird reason, it doesn't like @Id annotation on a field. It fails to get the type when I place it on the field. Even if it gets the type, the error cascades to joins and something will fail down there. :/ Still learning to use JPA Annotations for Hibernate.

    Interceptors

    http://stackoverflow.com/questions/11428410/hibernate-4-0-0final-where-is-the-sessionfactory-opensessioninterceptor-interce

    If you wanted...
  • Git post-merge hook is amazing

    |
    Updated at
    Wow, git post-merge hook changes my repo locations entirely. I used to have my repositories located in the same location as the production and staging directories, instead with post-merge hook I can have the repository in some other location and have the current working tree checked out into the staging directory once a merge has been performed. This simplifies deployment basically.

    Why didn't I figure that out before? as I've seen it before. Mysteries.....
  • Contributing to Open Source

    |
    Updated at
    My approach to contributing to open source will be on a 80%/20% scale where 80% of the code is proprietary and closed source and the other 20% will be open source and on GitHub. Open source code is helpful and should only be helpful towards helping people do things as jQuery and countless other libraries help with what I want to do. jQuery is a tool and that is why I think tools should be open source rather than the whole application. The Excerion System is a toolset and helps with boot strapping a project....
  • Updated My UIUC Residence Food Menu Page

    |
    Updated at
    There is not much to say other than I got rid of the gradients because I made unduly use of them, so it looks wayyyy better than before. I understand color interaction much better than before.

    New:

    uiucfood_new

    Old:

    26_03_12_06_48_46

  • Mounting shared folders in Ubuntu in VMWare Player

    |
    Updated at
    First some credits:

    http://askubuntu.com/questions/29284/how-do-i-mount-shared-folders-win7-host-in-ubuntu-guest-using-vmwaretools-vhttp://www.surlyjake.com/2011/02/install-open-vm-tools-on-debian-6-squeeze/

     

    Over the last couple of days, I've been trying to figure out why VMWare won't mount shared folders in Fedora... (not worth the pain) I gave up on that today and installed Ubuntu, which installed seamlessly, but still had the same issue. Turns out that we need some extra tools other than VMWare tools. I'm...
  • Setting up Fedora 17 to run PHP, MySQL and Apache on Rackspace Cloud

    |
    Updated at
    Rackspace Cloud is basically a VPS except that your resources are GUARANTEED. Rackspace has an SLA with these instances, so they require themselves to keep up your server! I like these qualities and that's why I chose Rackspace.

    First steps, installation!

    yum install php php-mysqlnd httpd


    You'll want either MySQL
    yum install mysql-server mysql-client

    Or MariaDB, a variant of MySQL
    yum install MariaDB-server, MariaDB-client

    You'll probably want git, memcache, and php apc as well. You'll have to start the memcache s...