‘Error parsing XML: no element found’ message in Eclipse Android project

Question:I have an Android project with Eclipse. When I click on the ‘Run’ toolbar icon, the Eclipse is building a file: main.out.xml and fails to run my app. The error message is: main.out.xml:1: error: Error parsing XML: no element found, or res/layout/main.xml:0: error: Resource entry main is already defined. My code is error free but I can’t build and run it. I can’t figure it out. Continue reading ‘Error parsing XML: no element found’ message in Eclipse Android project

Add SQLite Free Text Search functionality to Java app on Mac

Question: I’d like to pre-build a platform independent SQLite database with Java desktop app. This database file with FTS (Free Text Search) indexes will be embedded into Android and iPhone applications. How can I install an SQLite3 free text search (FTS3) module for my Java desktop application? Somehow this binary, library (or app file) cannot be found on the net. Environment: OS X 10.6, NetBeans IDE, Java Swing desktop app with sqlite-jdbc-3.7.2.jar wrapper. Continue reading Add SQLite Free Text Search functionality to Java app on Mac

‘ld: warning: directory not found for option’ while building iPhone app with Xcode 4

Question: ‘ld: warning: directory not found for option’ warning message pops up when I am building an iPhone application Archive with Xcode 4. The app links two static libraries – namely libOAuth.a and TwitterApi.a – and builds without errors and warnings with Xcode 3.2.5 and strangely with Xcode 4 when the configuration is set to Debug. I was suggested to copy these files to the ‘derived’ folder before I build the app. I copied them to that folder without any improvement. I googled the net but found no solution. I have never met this problem. Continue reading ‘ld: warning: directory not found for option’ while building iPhone app with Xcode 4

Scan and print with HP 2820/2840 on OS X (Snow Leopard)

Question: I have to say that I have a misfortune to work with HP 2840. Last time when I tried to install their original HP drivers the scanning felt apart on my iMac. Upon upgrading to the latest OS X, I can print but can not scan. HP doesn’t respond to my emails. I have to say that all of the suggestions I’ve got did not work for me for scanning over the network. Any chance to repair my broken HP scanner driver? Continue reading Scan and print with HP 2820/2840 on OS X (Snow Leopard)

SQLite Persistent Object error in iOS 4.2 iPad project

Question: Thanks to Jeff LaMarche’s SQLite Persistent Objects library I could build SQLite database projects around his code. Since I switched to Xcode 4 I am struggling. My codes in an iPad – iOS 3.2, 4.2, 4.3 – project hang up or return errors. The same code runs smoothly on iOS 3.2 devices but not on 4.2 and 4.3! For example:
    BOOL retc = NO;
    @try {
        [self clear];
        // There is only one record that matches the search criteria
        self.listinfo = (dbmenulist *)[[dbmenulist class] findByCriteria: MENULIST_SQLQUERY(idmenulist)];
        if( self.listinfo ){
            [self fillItemsFor: idmenulist];
            retc = YES;
        }
    }
    @catch (NSException * e) {
        NSLOG(@"loadFor: exception: %@", e.reason);
    }
    return retc;
I do not want to mess up with Core Data. SQLite Persistent Objects is simple approach for data persistence, but what’s wrong with Xcode 4? Continue reading SQLite Persistent Object error in iOS 4.2 iPad project

Blog for us