Author Archives: cesar
Avril turns 2
This week we celebrated Avril’s 2nd birthday. The last two years have overall been very good for my family. Looking back at the moment when Avril was born I don’t think my wife and I completely understood what being parents … Continue reading
Pidgin Home Settings Directory
Recently I had to re-install my Windows operating system on my lap. One of the many programs I had to re-install was the Pidgin IM chat client. I also use Dropbox for saving files/directories online. I have configured pidgin to store its .purple home directory within the “My Dropbox” from Dropbox, that way I can share the log files and pidgin settings across the multiple computers I use pidgin on. Continue reading
Eclipse Galileo and Flex Builder Plugin
If you are a Java and Flex developer, and like me have gotten used to working with Eclipse and the Flex Builder Plugin. If you are having problems installing the Flex Builder Plugin for Galileo, I will try to explain how I got it working. Continue reading
Topics request to un-suspend twitter accounts
Yesterday some accounts which I had just recently added to Topics were suspended by Twitter. This was the type of emails that I received from Twitter.
Your account has been suspended due to a violation of our Terms of Service.
Account suspended: aussies_
Date of violation: July 20, 2009
Serial and/or multiple account creation without authorization is a violation of our terms of service; as a result, all of the accounts created have been suspended pending more information being provided.
If you would like to contest this suspension, please open a ticket with the following information: a) a list of the accounts that you would like to petition to have reinstated and b) your planned use for the accounts. Please be aware that clearly overlapping names and use cases are not generally approved for reinstatement.
For more information, please see our Terms of Service and Twitter Rules. Please be advised, tickets are answered in the order they are received. Submitting multiple tickets will cause your ticket to be moved to the end of the queue.
Twitter Support
Please do not reply to this message; it was sent from an unmonitored email address. This message is a service email related to your use of Twitter. For general inquiries or to request support with your Twitter account, please visit us at Twitter Support. Continue reading
Dojo Fisheye Strus2 Ajax
Today I want to talk about a change in the design of the Topics application. About a week ago I was looking at changing the front page and wanted a way to list the topics alphabetically. So I thought that … Continue reading
Java Twitter Update Profile Information
I am developing a Twitter Topics application, a catalog of twitter accounts about specific topics, that manages around 20 twitter accounts. And because I will be adding accounts constantly it became clear to me that I needed to find a way to update the profiles through the app itself.
So I searched around and the twitter api actually does let you update the profile information.
The topics application is written in java. And uses the library provided by java-twitter to communicate with the Twitter API. Fortunately the update profile methods are implemented by the library so I used them.
In order to use the java-twitter library to update profiles you need code similar to the following:
String username = “YourUsernameHere”;
String password = “yourPasswordHere”;
Api api = Api.builder().username(username).password(password).build();
api.updateProfile().description(“Description_Replace”).url(“URL_Replace”).build().post();
So what I did was wrap that code in a method, called the method from inside a loop that iterates over all of my accouns, and there you go. I can update all of the accounts from the application now. I wrote a web interface for sending the updates, so whenever I want I can just click a button that sends the updates. Continue reading
The prettifier I use in my blog
When I posted Struts 2 ActionMapper Implementation I noticed that the code snippets that I had embedded were just not showing very nicely. So I decided it was time for a change, it was time to revamp the code snippets.
So I googled and found google-code-prettify, and though it greatly increased the look of the snippets, I continued to look around, I thought there might be something better. And I found something, I am a reader of Matt Raible’s blog so I decided to take a look at what he was using in his blog.
Looking through his blog I saw the snippets of code and they literally looked awesome, I poked around in the source of the pages and notices he was using syntaxhighlighter. So I decided to use that since it is prettier than the google-code-prettify. Continue reading
Struts 2 ActionMapper Implementation
In the topics application I wanted to be able to map URLs like:
http://www.arevalos.org/topics/twitter/opencode.html
http://www.arevalos.org/topics/twitter/t_ajax.html
I wanted to map those URLs to the same struts 2 action and use the same view, since the view can be re-utilized for all the different accounts. After an initial research on the Struts 2 Guides, I thought I might be able to utilize the “Parameters in namespaces”, but they rely on the deprecated (version as of this writing 2.1.6) Codebehind Plugin, and I didn’t really want to use deprecated stuff. Continue reading
Solution Project Euler Problem 16 Java
I have solved problem 16 of Project Euler. I created a google code hosted project here where you can check out the solutions to the problems I have solved. In particular the solution to problem 16 is here
Problem016.java Continue reading
Solution Project Euler Problem 14 Java
I have solved problem 14 of Project Euler. I created a google code hosted project here where you can check out the solutions to the problems I have solved. In particular the solution to problem 14 is here
Problem014.java Continue reading