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 ArticleComment 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 ArticleComment 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 ArticleComment 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 ArticleComment by Sefran on MessageResources weird behaviour
@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 ArticleComment 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 ArticleComment by Sefran on Refresh doesn't work before creating a war with Ant on...
The target clean was wrong. I've corrected it.
View ArticleAvoiding 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 ArticleRetrieving 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 ArticleScaling 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 ArticleSaving 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 ArticleAnswer by Sefran for UITextView in a UITableViewCell: first responder problem
I resolved putting [myTextView becomeFirstResponder];in - (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath;
View ArticleUITextView 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 ArticleProblem 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 ArticleAnswer by Sefran for Problem displaying a custom uitableviewcell content
Resolved with [myTableViewCell layoutSubviews]
View ArticleAnswer 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 ArticleCreate 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 ArticleUpload 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 ArticleParse 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 ArticleUnzippping 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