Quantcast
Browsing latest articles
Browse All 36 View Live

Comment by Sefran on Externalize Tomcat configuration

Great, this works for me. Do you know if the same approach can be used to enable/disable a code snippet, that is by using an entry value of the property file like a flag?

View Article


Comment by Sefran on Different build configurations in Eclipse and...

@nomoa: No, I don't. By using Maven is it possible to mantain the same directories' structure? The Maven build process finds source files in /src/main/java, but in Eclipse they are in /src/ folder and...

View Article


Comment by Sefran on Different build configurations in Eclipse and...

I know I can put configApp.properties in Tomcat lib folder. The point is that I haven't only one configApp.properties, but one for demo app, one for production app, and one for the test app. I would to...

View Article

Comment by Sefran on Different build configurations in Eclipse and...

the issue is that I've only one environment for demo and production webapp. Now I trying to understand if I have to setup multiple Tomcat or if I can do all the stuff with a .properties in the webapp...

View Article

Comment by Sefran on Refresh doesn't work before creating a war with Ant on...

I have to copy the file into the source folder, 'cause a need a different uncommented part of that file according to the war type. I can't use two different files for this.

View Article


Comment by Sefran on Refresh doesn't work before creating a war with Ant on...

The target clean was wrong. I've corrected it.

View Article

Avoiding to save image duplicates

My app allow users to choose imgs and associate them to some text.When the user choose an image from the photo roll, I copy it in the Documents directory. As the user should choose the same img...

View Article

Retrieving an integer value from a sqlite3 db (problem in obj-c)

In a sqlite3 database, I've a table "data" with two fields: type and path. The field type is defined as INTEGER. In this field I insert a NSUInteger value (which will be for example 0 or 1). The...

View Article


Scaling images and save them

In my app, the user can take an image through the camera or chose one from the photo album. (I save the photo taken with the camera in the photo album).In both cases, I would like to save a scaled copy...

View Article


Saving in a DB the path of a photo chosen from the gallery

In my app, I would allow the user to pick a photo from the gallery (or snap a photo/video with the camera). I need to save the path in a db to retrieve it later, but I don't understand how I can do...

View Article

Answer by Sefran for UITextView in a UITableViewCell: first responder problem

I resolved putting [myTextView becomeFirstResponder];in - (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath;

View Article

UITextView in a UITableViewCell: first responder problem

I have a UITextView in a UITableViewCell which grows together with it.Using[myTableView beginUpdates];[myTableView endUpdates];in textViewDidChange and setting the height of the cell properly, I'm...

View Article

Problem displaying a custom uitableviewcell content

I've a custom UITableViewCell with a UITextView in it. The cell grows dinamically with the uitableview as user enters text.When I display the table, I have to calculate the height of the custom cell...

View Article


Answer by Sefran for Problem displaying a custom uitableviewcell content

Resolved with [myTableViewCell layoutSubviews]

View Article

Answer by Sefran for Printing in ios: if the printer is connected to the mac,...

It seems that it's not possible to print from the simulator on both real and simulated printer. However, I succeeded to print from the device by using the Printer Simulator and by activating airprint...

View Article


Create a document with embedded images

I'm trying to create a document (i.e. .doc,.html) with embedded images with objective-c.The images are stored locally on the iPhone.For example, I've created an html using img tag and the file uri...

View Article

Upload an html entry to Google Docs with base64 encoded images

Using objective-c Google Docs API, I'm uploading to Google Docs html entries (using mime type text/html) with images encoded in base64. The html img tag appears like: <img...

View Article


Parse not-well formed html on iphone (+XPath?)

I have to parse an HTML which is not well-formed.I want to use XPath to retrieve some elements.What could I use on iphone?

View Article

Unzippping NSData with GTMNSData+zlib

I download from Google Docs zipped NSData. The first bytes are PK.I've read to unzip them I could use GTMNSData+zlib category.Compiling my project, I obtain some errors, for example:"_inflate",...

View Article

Problem in getting all the files/dirs in a dir with contentsOfDirectoryAtPath

I have a zip file that I unzip it in a directory 'extract' under the Documents directory (the dir and its content is properly created). Then I would to do some stuff on each item in the new dir,...

View Article

Scheduling an operation (NSTimer?)

I save some images locally. The user can associates/dissociates them to some text.I would to check if an image is associated to a note and, if not, delete it from the local dir.Should it better to...

View Article


Use an XPath exp on the result of a previous XPath exp (Matt Gallagher...

I'm using the Matt Gallagher functions to parse a not well-formed html using XPath.Is it possible to use an XPath query on the result of a previous XPath query?I would first select all the nodes...

View Article


Does isPrintingAvailable check for multitasking support?

Does the method isPrintingAvailable of the UIPrintInteractionController check if the device support the multitasking?Or have I check this separately?

View Article

Xcode: project entitlements

In Xcode 4, there is a Myproject.entitlements file.What's it for?In general, what are the "entitlements"? What are they for?

View Article

What IDE for Android projects on Mac OS? Xcode or?

I'm thinking to begin Android app development. What's the better IDE? Now I'm using Xcode for objective-C language, but I don't know if use it also for Java development.

View Article


When should I use the weak or strong qualifier with IBOutlets? [duplicate]

Possible Duplicate:Should IBOutlets be strong or weak under ARC?In the documentation, I read"Outlets should generally be weak, except for those from File’s Owner to top-level objects in a nib file (or,...

View Article

AppStore approval and md5

I'm using md5 from <CommonCrypto/CommonDigest.h>.I don't use it for encryption purposes. I know that in submitting an app to AppStore, it's asked if the app uses encryption. Is this the case to...

View Article

Client-server mobile app. Where to begin for the server side?

I have to create an iPhone app which displays some sentences.I would to download these sentences from a server and save them in a local db (for example using JSON).The user can flag a sentence as...

View Article

Printing in ios: if the printer is connected to the mac, could it print from...

I'm reading this to add the printing functionality.The Printer-options sheet is displayed, but when I try to select my printer, the message "printer not found" appears.The printer is connected via usb...

View Article



Problem with image base64 encoding: images are 'quite never' displayed in the...

I build an html doc by encoding images with base64.Then, I upload the html on google docs, but images are 'quite never' displayed.The encoding is right: for example, I use this to do the image encoding...

View Article

Java web app: Tomcat and configuration files .properties

I have a java web app with Tomcat as servlet container.I would to use different configuration files for different build configurations, i.e. 1) demo.properties2) real.properties3) test.propertiesin...

View Article

Build a text from html using xpath

I receive an html like that below from a server. I rebuild the textual part by using the XPath exp @"//text()" and appending the "nodeContent" value to a string. The code is something like this:for...

View Article

Support library (v4 vs v13)

I'm new in Android development and I'm considering if I have to use the support libraries or not.The min SDK is 16 and target SDK is 22.On Android docs, there is a note that is a a bit confusing to me,...

View Article


Does libxml2 support XPath 2.0 or not?

I've tried to use the XPath 2.0 exp //span/string(.) in libxml2, but it doesn't work.So, my question is: does libxml2 support XPath 2.0 or not?

View Article

Comment by Sefran on How to change MessageResources properties for different...

@RomanC: In the webapp there isn't any Locale.setDefault(), the demo and the real webapp have the same code, moreover on a webserver clone, we have more than two other applications deployed and this...

View Article
Browsing latest articles
Browse All 36 View Live