One of my friends posted this little video online and I thought it was at the very least cute and funny. The animation is also very well done. Of course, any similitude with people or events of real life is pure coincidence. LOL Well, I’ve never waited in line to buy a new iphone or ipad, I don’t even own one…
I was recently given the task of writing unit tests for a function that instantiates a helper class and stores it in a private variable. It wasn’t hard to generate a mock for the helper class and stub its methods, but accessing the value of that private variable and setting it to the newly generated mock proved to be a bit tricky. Remember that you simply can’t access a private variable, if not from inside the class. Not even a child class can have access to it.
What worked for me was to use the PHP Reflection API, more particularly [...]
I have recently begun writing tests for the UI of our web application at work. We use a tool for automation of web application testing known as Sahi, mainly because it’s reliable, fast and easy to use. With a little guidance from an ever so patient co-worker who’s been working with Sahi for a while, I’m quickly getting the hang of it and using it effectively to produce and run my first tests. Yay!
Although Sahi allows you to record your interaction with the UI in order to facilitate scripting your tests, I’m learning that the process of crafting an [...]
Someone posted this information in one of the lists I read. I thought I would pass it along for anyone interested.
Free and Open Source Software (FOSS) is software that gives the user the freedom to use, copy, study, change, and improve it. FOSS contributors believe that this is the best way to develop software because it benefits society, creates a fun collaborative community around a project, and allows anyone to make innovative changes that reach many people.
Google Summer of Code is a global program that offers students stipends to write code for FOSS projects. Participants work remotely from [...]
Last Friday I attended my first DevFest at Google headquarters in Mountain View. I’m so glad I was able to be there! Not only the event was absolutely free, filled with very interesting conferences and demos, and Google pampered us to the max with great facilities and delicious food, but it was quite an inspiring experience for me as a newcomer to this world of software and web application development.
I knew women had been encouraged to attend this particular event, but I never imagined I would see so many of them. I would say at least 95% of the [...]
A new year has begun, full of all sorts of wonderful possibilities. The class I was taking from Rice University through Coursera has already ended, and the one from Edx will also be over in only a few more days. Although I’m satisfied with all that I’ve learned from both classes, I can’t deny I feel slightly left down by all the organizational problems experienced with the Edx class during the last month. The content is excellent, there’s no complaint about it, but for the last almost four weeks it has been updated sporadically, and the problem sets were often [...]
It’s been a while since the last time I updated this blog, probably because I’ve been too busy learning and doing, with little or no time to write about it. It’s been fun. I signed up for a couple of online classes that are offered free of charge through two of the newest initiatives for higher education, namely Coursera and EdX. One of the two classes I’m taking is called An Introduction to Interactive Programming in Python, and is offered by Rice University through Coursera; the other class is offered by MITx and is called Introduction to Computer Science and [...]
I was using form-based authentication as a way to restrict the access to collection of resources in my project, allowing only users that had previously registered a user name and password to reach them. The user names and passwords of such registered users where kept in a database. The context.xml file contained information about this database, so it could be easily retrieved and compared with the input from the user, to verify the user had entered an existing user name and corresponding valid password. This is what is called a Data Source Realm. Here it is declared in the context.xml [...]
My JSP and Servlets professor handed me down this code as a nice way to reconstruct an original request URL and avoid the temptation to ever hard-code a URL, which is also really bad practice. It’s really useful for getting out of tricky situations. In my case, I needed a way to go back to the http:// protocol after having accessed resources using SSL. I found that if I simply used RequestDispatcher, even when the resource I was requesting wasn’t included among those restricted ones, the protocol continued to be https:// . I had searched everywhere for a way to [...]