Have you ever?

December 9th, 2009 Robert Kania No comments
usage

The user statistics of my app.

Have you ever used Facebook? You have, have you? Well then I built a great application for you. The Have You Ever Facebook application. I built this Facebook application last year in a night, but never blogged about it. It was down for a few months while I upgraded my webhost, but now it is back up and slightly improved. I currently have over 3000 current users and approximately 250 monthly active users which has increased from about 150 before I upgraded it last week. This application allows you to ask your friends a question and have them respond yes or no to the question. I am trying to improve this application so that it can do more things, but I will to sort out the source code. In order to create this application I had to use the Facebook Develper’s PHP api. I learned a lot from this project.  I got the idea to create this application from the game we had to play at college orientation.  We stood in a circle with some sort of marker where we stood.  Then someone in the center calls out something that they have done or are wearing etc and everyone who has also has to move to a new spot.

To visit my application go to: http://apps.facebook.com/have_you_ever/

haveyouever

My Application

Categories: Programming, Web/Internet, websites Tags:
Your Ad Here

My Hard Drive Space

December 7th, 2009 Robert Kania No comments

Below is a list of my current hard drives attached to my desktop computer.  If you add the storage space you get roughly 3.00 TB of storage!  Add to that the 250GB hard drive in my laptop.  You can say I have a ton of data and I use it quite efficiently :)

harddrives

Categories: Technology Tags: , ,
Your Ad Here

Review: Zhtml, the Pain

December 6th, 2009 Robert Kania No comments
mybook-zhtml

Click to Enlarge

I am writing this because I just finished my extremely long Facebook imitation program that was our required project in my introductory CS curse (this was an accidental misspelling but it seems fitting).  Starting this semester I thought the class would be extremely easy, and it is except for one aspect…the zhtml.  I thought zhtml would be simple, just like HTML, which I learned back in eighth grade, but of course it wasn’t.  Zhtml adds an enterprise version of “Ajax” capability to html (that I am sure not many enterprises use) on a special “zk” server.  It also allows you to call java code from java classes in your folder.  However, a lot of tags are added to zhtml and a lot are also removed from traditional html.  Zhtml does not allow much configuration as well.  Overall, I think zhtml is not a very useful language and creates a lot of frustrations.  They shouldn’t be teaching us a language that has no real world use and has many complications as well. Moreover, it gives 500 server errrors that are very difficult to debug.  Having worked with PHP for years, I am used to a web language giving me at least some indication or line number that causes it to fail, but the zk server gives you a message that sometimes helps such as the one below (which means you need to reset the session because your page is not compatible with older versions of the program you wrote before if you added attributes to a user.)

The zhtml changes standard html syntax.  For example, although technically okay, they make it so that there is no <center> tag.  Also they add a attribute to <div>  called visible.  Though typically in the css this now becomes  a normal attribute in the div tag.  This is useful for making certain areas visible based on a boolean return such as:

<div visible=”@{user.isFriend}”>This user is a friend.</div>

The above example checks that the user is a friend by executing the java method isFriend() in the variable user.  This method of course returns a boolean value.  However, this feature really lacks the ability to evaluate statements since this must return a boolean and cannot check for example that the array size of friends is equal

to 0.  They do include the ability to evauluate an if statement by:

<div if=”${user.friends == 0}”></div>

But this always resulted in another server error.

login

The login "window"

Zhtml adds predefined windows and panels and other graphical eye candy, but the capabilities of each and the amount to which you can customize them is very limited.  By default the windows and panels have their own shade of blue, but this blue stays unless you specifically define css to change the color r create your own images to grace the background of the window.  I have tried my hand at Ajax before, and although I say it is difficult, there is no reason why a premade Ajax simplifier has to make customization s difficult.  If they wanted us to use these windows they should have allowed a much more user friendly way to change the appearance.  A s such, when I decided to create my own layout, of course I had to default to blue so that it would blend with the rest of the  default zhtml widgets.  As one girl who saw my page said, “It’s very blue.”  And indeed it is.

Finally I finished this project on Friday night after several nights staying awake until 4:30 am…and now I am hoping I win the extra credit contest

zhtml-servererror

While doing this project I discovered  many useful resources that enabled me to add features previously un-thought of to my application since our teacher had not given us the resources to utilize the full potential of zhtml.  These include the api to zhtml functions and official style guides.  They are linked below:

Links:

Finally my official application is viewable here (for how ever long it stays up):

And my source code including the zhtml page is here:

Your Ad Here

A Snowy Day

December 5th, 2009 Robert Kania No comments

bridge

Today I woke up (at 11:30 after a long night of finishing my CS project) to a world of pearl white. It snowed here today, the first snowfall of the season. Whether this means we will have the annual Corps of Cadets versus Civilians snowball fight is still unknown, but it was still a nice (although brisk) day to go outside and wander around, admiring the beautiful snow on the ground and watching the various people build snowmen or throw snowballs.

Above is a picture I took of the bridge by the duck pong here, with the snow gracing the slopes leading to it.  Of course this snow also brought cold weather which was not pleasant, but the ducks at the duck pond seemed content.

As I said before, here at Virginia Tech, we have the annual Corps of Cadets versus Civilian snowball fight.  Last year, this took place at approximately 10pm during our first major snowstorm in March.  This was an unfortunate snowball fight because I only managed to throw 2 snowballs before I was injured in battle  by a rogue snowball thrown by a cadet.  The snowball hit e right in the left eye and I was half blinded in that eye for the night.  The swelling continued for a week, at which point I regained full 20/20 vision. Hopefully this year I won’t be injured as I pan to bring my chem lab goggles.

An official group open to all VT students on facebook has been created to an for this event: http://www.facebook.com/group.php?gid=197223762093

[Update] After finishing this I decided to Photoshop a bride and groom kissing on the bridge so here is the new picture:

wedding

Categories: College, Photoshops Tags: , ,
Your Ad Here

Review: TubeRadio

December 3rd, 2009 Robert Kania 1 comment

Note for people wanting to convert TubeRadio to mp3: Since I have observed in my logs that several people have wanted to convert tuberadio music into mp3s you can, but you will need to go to the video in the corner, put the mouse near the top of the video and click on the link that appears.  This will take you to the main youtube video and then you can use a program such as Dirpy to convert this video into an mp3.  More information can be found here.

A few weeks ago a new application was featured on Lifehacker.com.  As usual I checked the website and wound up on a very useful program called TubeRadio.  Owned by Last.fm, the music website, TubeRadio allows you search for videos/songs on Youtube and play them right there in the browser.  It allows you to search for name of video, but even cooler is its ability to search for and fill a playlist with the whole discography of an artist.

The interface looks similar to iTunes, but unlike iTunes, it plays only youtube videos, but plays them just as a normal desktop mp3 player.    It evens allows you to share playlists like in iTunes.  TubeRadio allows you to repeat tracks, shuffle tracks of a playlist, pause, start, and skip tracks in a playlist.

At the bottom you can view lyrics, bios, and information about the band.  The best part is its free!  Just like with Pandora you can create an account that will save your playlists and preferences.  The only regret I have about TubeRadio is that I can’t figure out how to not display the video at the bottom since that would save my cpu since the flash player eats it up.  Maybe they have a feature to just play the music and not the video, but I don’t know it.

Also, Happy 2 Month Anniversary TubeRadio!  It turned 2 months on November 29, 2009.

Tuberadio allows you to search for a Discography

[Update] After posting this I received an email from the owners of TubeRadio via Twitter.  Here are some points they gave me:

  • “We use the last.fm databse of artists so their terms are that we have to put “powered by last.fm” on the site. Other than that, we have no affiliation with them.”
  • “As much as we’d love to be able to offer an audio only stream, it’s against YouTube terms and conditions to do that, so the video _has_ to be there (it even has to be a certain minimum size!)”

TubeRadio is particiating in the competition for “Best New Startup of 2009.”  They would like you to vote for them at http://bit.ly/3H6XkV
Links:

Tuberadio.fm

Press Release Annoucing TubeRadio

TubeRadio on Facebook

TubeRadio on Twitter

Categories: Review, Web/Internet Tags: , ,