Cannot convert value '1111-11-11 11:11:11' from column X to TIMESTAMP.

I got this error a few months ago:

Cannot convert value '1111-11-11 11:11:11' from column X to TIMESTAMP. 

Only, all those 1's were replaced with an actual timestamp from my application, and the X was actually a real integer corresponding to a column in my database.

This answer helped me, but I seem to remember it only worked on my development machine, not my server, something like that:

https://community.jboss.org/thread/192804?start=0&tstart=0&_sscc=t

I think my database was on a Windows server, and I had to do a mysqldump, change the datatypes, then import to the mysql on my RedHat server. 

OAuth errors

When I tried to start up my web application, it would fail with the error:

A class file of the class name com.sun.jersey.oauth.server.api.Providers.DefaultOAuthProvider is identified by the class could not be found.


In my "lib" folder, I also had jars for Tomcat (i.e. catalina-ant.jar and servlet-api.jar).  When I got the error above, I was using jars from Tomcat 5.x.  I swapped out those jars for those from Tomcat 7.x. Doing this caused the error to change to the following:

 Missing OAuthProvider class name in the configuration.  Make sure 'com.sun.jersey.config.property.oauth.provider' property is set.

After fiddling with more things, such as changing the order of the Jars in Eclipse (i.e. right click on the project name --> Properties --> Java Build Path --> Order and Export), finally resolved the error.  How?  I noticed that the Jersey jars I were using were from Jersey 1.5.  I upgraded them to Jersey 1.8 and that made the error go away for me.

Maybe I should start using Maven!  But I already use ANT....


Decision Trees

While watching this video (Big Data in Education MOOC, Week 1 Video 3 at around 8:25), I tried to think of an example of when to use a Decision Tree.   I've never actually tried using a decision tree before (outside of class assignments and stuff). 

In my work, I use weighted sums to compute P(learned).  (aka latent knowledge estimation! (related entry))

The decision trees appear to be useful if you already have the final P(learned) but maybe you want to predict one of the components (such as the skill level of the student, or the time spent on the exercise, or other dimensions that could be used to calculate P(learned)).

'Just a thought.

Latent Knowledge Estimation

I learned a new catch phrase!

Did you know that the practice of representing "The Probability that the Student Knows X" is called "Latent Knowledge Estimation"?  I have been doing this for years and I didn't know that term.  Now I do.

Thanks, Big Data in Education MOOC!  (it was around 3:30ish in the video)

Ability to create

Some people can mix together ingredients and create delicious food combinations.  Others, like myself, rely on following a recipe.  Usually, I don't deviate much from the recipe.  I need to follow the directions if I want to create something nice to eat.

Some people can take a pile of Lego bricks and build amazing, creative structures.  Others are not really comfortable doing that and prefer just to follow the building instructions that come with the set.  Personally, I really enjoy putting pieces together, breaking them apart, and seeing what comes out.  Usually, the end product is different than what I had imagined because of the limited set of bricks in front of me; if I can't find the exact piece I imagined, I substitute, and end up with something a little different than originally imagined.  Sometimes I pick up a cool piece that inspires a new offshoot of my creation, something I might not have imagined had that piece not sparked the idea.

I think that the ability to create new things involves understanding fundamentals.  For cooking, it's knowledge about combinations of ingredients that taste good as well as knowledge of nutrition.   For Lego, it's knowledge about assembling little rooms and nooks and windows and how to place the accessory pieces to create interesting and immersive little worlds. 

What is that called?  The knowledge of the basics in order to have capacity for creativity?  Often, having the "directions"  (i.e. recipe or building instructions) can serve as inspiration.  Seeing an example of a completed dish or structure can give ideas for creating your own, moreso than simply having a pile of bricks in front of you or seeing a collection of ingredients at the market.  Then again, simply seeing the unsorted bricks and veggies can be enough to inspire new creations.  I guess it's just that the recipe/directions give more of a push to help the creative process along.  Sometimes the push is needed, other times it might actually limit the creativity.

It's a back and forth process between the mind and the environment.

Update:  I just remembered that the word "scaffolding" is used to describe the structure provided in a learning environment.  So, how do we describe the degree of scaffolding that's provided?  Like a spectrum of  "totally guided the whole way" to "just a subtle hint here and there".   I guess "lots of scaffolding" vs. "minimal scaffolding". 

Is it possible to provide heavy scaffolding without squelching creativity? 

Windows Scheduled Tasks break when you change the password

Did you know that if you change your Windows password, then all of your Scheduled Tasks will break?  Neither did I!  LOL!  Thanks to my colleague GV for helping me figure out why my tasks mysteriously quit working.  I didn't put two and two together.

When I stop and think about it, I do recall a tickbox that says "Do not save the password" (use local resources only), which implies that the password does get saved if you don't check that box.  Obviously, Windows does not keep this synchronized when you use the change password tool.  (Don't you think it should?)

Oh well.

BUILD FAILED - ${tomcat.home} not found

I bumped into this error again today and would like to thank my past self from a few years ago for this reminder on how to fix it.

http://homepage.usask.ca/~slb534/oldblog/archive/2011/01/build_failed_to.php

Annoying! Sexual objectification when I am just trying to work!

Ugh!  I'm hard at work, and as often happens when programming, I just wanted to look up an example online.  So I clicked into some user discussions about a library I am using, and BAM!  Shoved in my face is a cartoon of a cute girl whose breasts are animated to pulse before your very eyes.  AGAIN that reminds me, "Programming is usually done by boys, you don't belong here!".   I don't actually believe I don't belong as a programmer.  I am a programmer and I DO belong here, and I've been doing it professionally for 15 years.  But people out there continue to insist on acting otherwise.  I am beyond sick and tired of this.  Stupid, stupid annoying companies who think sexual objectification is something that is O.K. to do!  URAGHGH!!

Translate