All posts by ajohnson

Restoring a .bak file to a SQL Server database

This is for my own benefit… when restoring a .bak file to a SQL Server database where the .bak file was not originally backed up from, right click –> All Tasks –> Restore Database –> From device –> Select Devices –> Add your .bak file. Click OK. Click the Options tab. Now on the left side you should see the Logical file name of the database from the .bak file. On the right side under the lable ‘Move to physical file name’, should be the path that the .bak file originally existed as. This field needs to be changed to the path & file name of the database you’re restoring too. After modifying those two fields, check the ‘Force restore over existing database’ and click ‘OK’.

J2ME Beginner Links

Sooner or later I’d like to begin writing some easy apps for the 3650 I just bought. I’m looking for J2ME resources specific to Nokia and came across a couple tonigh:

Developer Discussion Boards

Nokia Java/J2ME Tools

Nokia Tools and SDKs

Wireless Web Services: A great article that introduces the use of kXML-RPC in lieu of using SOAP on a J2ME device.

Looks like there isn’t a handset emulator for the 3650 on the Nokia site,

AT&T has their own program, called the “Data Developer Program“, which is absolutely impossible to register for… I’ve tried about 10 different username combinations and passwords… none of which work.. I’m thinking they’re having major issues with the application, how frustrating. I’m currently getting the following error when trying to login:

Please correct the following or provide more information
— Unable to process your login attempt at this time

Helpful, isn’t it?

Open Source Content Management Conference

I got cleared to go to the Cambridge OSCOM today. I’m going to sign up tomorrow. Since we’re debuting our own content management product soon (we’re having a party in June btw, you’re invited! email me if you’d like to come!), I’ll be scouring feature lists and technologies that we can integrate and/or inter-operate with. Specifically, I’ll be interested in the following sessions:

Building a CMS Client With Mozilla

Collaborative Mapping on the Semantic Web

Bebop: Requirements and Design for a Web UI Component Library

Versioning Structured Content in a Content Management Application

Extending CMS with Web Services

From the information pile to social, knowledge exchanging bots

York Beach in the summer…

Spent last evening up in York, ME, enjoying the fine cuisine of Wild Willy’s (I highly recommend the Bubba Burger with extra BBQ sauce), followed by Brown’s Old Fashion Ice Cream (I highly recommend the Snickers flavor) and a walk along Short Sands beach to the Nubble lighthouse. The picture on the left is looking across Short Sands beach toward a row of houses that look out over the ocean. It’s a beautiful spot… in a couple weeks you’ll be able to hear the local bands playing in the gazebo *every* night of the week…

BlogPlanet Rules: J2ME Blogging MIDlet for 3650

Russ reviews a J2ME blogging app for the 3650: BlogPlanet Rules: J2ME Blogging MIDlet for 3650s, excerpt:

This is a J2ME app, but the 3650 supports Sun’s Media API (as well as the Messaging API) so it allows you to turn on the camera and save the pic. This is unique among camera phones right now and is just another reason that the 3650 is so far ahead of every other device out there. The data that the picture saves, however, is NOT saved outside the J2ME sandbox, so you can’t access the phone’s photo album, for example, but for snapping shots for moblogging, it works.

apache xml-rpc metaWeblog api

Some irish guy wrote up a short blogging APIs mini how-to yesterday. Then some other guy from England (I think) commented that he had written up a quick example of using the apache xml-rpc package to call the metaWeblog api. So I had to try it too. Turns out that a) xml-rpc is really easy to do and b) the Moveable Type xml-rpc api is really easy too… the code below calls the getRecentPosts() method of the metaWeblog api using the apache xml-rpc package:

import org.apache.xmlrpc.*;
import java.util.*;
public class MTTest {
  public static void main(String[] args) throws Exception {

   System.out.println(“Starting Movable type stuff”);
   Vector params=null;

   // Create XML RPC Client object
   XmlRpcClient xmlrpc = new XmlRpcClient(“http://yourhost.com/MT-2.21/mt-xmlrpc.cgi”);

   // blogger.getRecentPosts
   // String appkey, String blogid, String username, String password, int numberOfPosts
   System.out.println(“Adding the parameters”);
   params = new Vector();
   params.add(“your_weblog_id”); // weblog id
   params.add(“yourusername”); // username
   params.add(“yourpassword”); // password
   params.add(“4”); // number of posts to retrieve…

   System.out.println(“Making the call”);
   Vector v = (Vector)xmlrpc.execute(“metaWeblog.getRecentPosts”,params);

   System.out.println(“This call results in ” + v.size() + ” posts.”);
   System.out.println(“These are the results:”);
    for (int i=0; i

3650 better than a PDA?

51 Melcher Street where I work in Boston I mentioned yesterday that the wife let me get the Nokia 3650. AT&T Fedexed it overnight to me, so I got it on Tuesday… I struggled to get mMode mail working (I still haven’t), but I was able to get my personal mail working very quickly… sending pics from the phone is even easier.

Anyway, Russ quotes PDABuyersGuide.com today, which mentions (in no uncertain terms) that the 3650 features were well known by a certain Palm exec. For good reason! The 3650 is a phone and pda and camera and video recorder with bluetooth… but a phone first, unlike anything that will ever come out of Palm (because Palm makes PDA’s first and phones second).

Overriding the equals() method

I was looking for any best practices related to overriding the equals() method in objects and came across javapractices.com, which has a section devoted to the equals() method: Implementing equals. This article doesn’t really answer the question of “when” you override the method, although from other reading I can surmise that you do so whenever you think you or someone else may need to use the object as a key in a hashtable. Any other opinions as to the “when” of overriding the equals() method?