Skip to main content

Posts

Showing posts from February 21, 2012

Image features extraction

I have a visual marker like this one and a blob detection algorithm in Java .. How can I extract the regions of the image so that I can run the blob detection algorithm on each one separately so that it can detect 1, 1, 3 blobs respectively. Thanks a lot in advance !

Android navaigation bar with ListView

i just did ListView like this: All source: ListView Now i want to add navigation bar like iPhone on top of this window: I was searching for some source how to do but just kind find. Maybe someone have bookmarked good tutorial how to do this ?

Making a dynamic sequence(in Java)

Hey guys im having a problem trying to program out a set of logic. I want to make a Go(the board game) problem. What i want my program to do is read in an xml file that represents a series of steps a person can make to complete the puzzle, or a even a dead end. So in the xml it would look something like <Step x="4" y="5"> <Response x="4" y="6" /> <Step x="3" y="6" victory="true"> </Step> </Step> <!-- This is a dead end --> <Step x="4" y="4"> <Response x="4" y="5" /> <Step x="5" y="5" defeat="true"></Step> <Step x="6" y="4" defeat="true"></Step> </Step> My thought is to make a link list of sorts where my xml handler(im using SAX) uses the step class to store a step inside a step, but i cant conceptualize how i would

In a test I can find a xml, in another I can"t

I have an interesting problem, I have two web services defined in a spring-conf.xml file and I have two test classes that live in the same package and every class has its own link to this spring-conf.xml file to call their particular webservice. I am able to get beans from one of my test classes but from the other one I can't and the code is equal in both classes. In one I have this import org.springframework.context.ApplicationContext; import org.springframework.context.support.ClassPathXmlApplicationContext; public class WSFirstTest { private ApplicationContext context = new ClassPathXmlApplicationContext( "WEB-INF/spring-conf.xml"); private WSFirst ws = (WSFirst) context .getBean("serviceFirstDefault"); in the other one I have this import org.springframework.context.ApplicationContext; import org.springframework.context.support.ClassPathXmlApplicationContext; public class WSSecondTest { private ApplicationContext context2 = new ClassPath

Want to convert a string in one form into another form in JAVA?

I have a string like "isnull(col_name,0)<>1 or isnull(col1_name,0)=0 and isnull(col2_name,0)>=100... " I want to convert above string in below form as: " (col_name is null or col_name<>1) or (col1_name is null or col1_name=0) and (col2_name is null or col2_name>=100) ... " I want to implement this in JAVA. I have tried with using split function but the case is not the similar everytime(means is between two there may be 'OR' or 'AND', so how to split?). Then I tried with contains function but how to replace that complete part of isnull in required form. (I have also tried with using character array,it works somewhat fine but fails somewhere according to my code.) Actually I tried a lot with different ways but I am not able to build the good logic which will work fast. Pls suggest me some good idea for this. Sorry for my bad english. Thanks.

Is it good practice to keep a Lucene IndexWriter & IndexSearcher open for the lifetime of an app

It states in the Lucene documentation that it is fastest to use one instance of an IndexWriter and IndexSearcher across an application. At the moment I have a static instance of IndexWriter open at all times, and a static instance of IndexSearcher that is kept open at all times but rebuilt when if the IndexWriter performs any CRUD operations on the index. I have implemented a Dispose method on my index management class that closes both the IndexWriter and IndexSearcher when the application ends (however it is a web app so this is potentially months of running without being called). Does that sound like reasonable way to go about doing things? And also does using static instances present problems with multi-threading..? I.e. should I be locking my writer and searcher when in use?

How to write command in process Builder

I am Running shell script using cygwin and java. ProcessBuilder pb =new ProcessBuilder ("sh", "app.sh", "ib2", "12", "11", "AK-RD", "02.20", "D:\\cygwin\\bin\\test\\delta"); My script is running when i am hard coding parameters. I want to pass these parameters through text box values. How to do this. String cmmd[] = new String[8]; cmmd[0] ="\"sh\""; cmmd[1] ="\"app.sh\""; cmmd[2] ="\""+txt_threeltr.getText()+"\""; cmmd[3] ="\""+txt_month_c.getText()+"\""; cmmd[4] ="\""+txt_year_C.getText()+"\""; cmmd[5] ="\""+txt_partNumber.getText()+"\""; cmmd[6] ="\""+txt_version.getText()+"\""; cmmd[7] ="\""+txt_destinationname.getText()+"\"

browser keeps on looking for the data but never fetches it

Following is a snippet that is meant to fetch the data from the database. But when i click the submit button to see the data, the browser keeps on looking for the data but never displays anything (the browser doesn't show the next page but keeps on looking on the same page) . I don't know what the problem is. Snippet that fetches the data : public void doGet(HttpServletRequest request,HttpServletResponse response) throws IOException,ServletException { try { Context context = new InitialContext(); DataSource dataSource = (DataSource)context.lookup("java:comp/env/jdbc/MyDatasource"); Connection connection = dataSource.getConnection(); String sqlStatement = "SELECT * FROM INFORMATION"; PreparedStatement statement = connection.prepareStatement(sqlStatement); ResultSet set = statement.executeQuery(); PrintWriter writer = response.getWriter(); response.setContentType("text/plain");

Clarify what is asked for in java Exceptions assignment

It does not appear evident to me what is asked in a java assignment I have received. Does anyone understand what is needed: In the previous assignment, you implemented a stack and a list that both inherited from the abstract class ArrayIntCollection. In this task you are supposed to extend that implementation by make it throw exceptions if you try to perform operations that are not allowed (for example, if you try to call pop or peek on an empty stack or if you try to remove an element from a non existing position). You shall create and use the exception class CollectionException, of the type UncheckedException. Also write a test program ExceptionMain.java that generates and catches exceptions from your modified methods. The way I understand it, I need to create a exception class called CollectionException , and it needs to extend UncheckedException . (this itself is not working, as I cannot find a class called UncheckedException ). Also, it is obvious if I am to use t

What maven dependency need to have Class LocalContainerEntityManagerFactoryBean?

In my project class LocalContainerEntityManagerFactoryBean not found. I don't understand why? In other simple project with this class all works fine. <bean id="entityManagerFactory" class="org.springframework.orm.jpa.LocalContainerEntityManagerFactoryBean"> <property name="persistenceUnitName" value="simpleTest" /> <property name="dataSource" ref="dataSource" /> <property name="jpaVendorAdapter"> <bean class="org.springframework.orm.jpa.vendor.HibernateJpaVendorAdapter"> <property name="showSql" value="true" /> <property name="generateDdl" value="true" /> <property name="databasePlatform" value="org.hibernate.dialect.H2Dialect" /> </bean> </property> </bean>

ArrayList objects

Need some inputs: Lets say i have N ArrayList and in each i am adding foo() object. Foo foo = new Foo() A.add(foo); B.add(foo); N.add(foo); Now modification done on any one foo() object will reflect in all the other arraylist? If YES WHY? and whether this behaviour can also be achieved using any other collection like Vector etc...? IF i make foo as null will it reflect in all arraylist?

Convert android.graphics.path value into String?

I have an ArrayList of Path values. I need to convert it into String values and know what all coordinates were covered in the Path. Here's the code that I worked up: private ArrayList<Path> pointsToDraw = new ArrayList<Path>(); private List<String> stringPoints ; synchronized(pointsToDraw){ for(Path path : pointsToDraw) { stringPoints.add(String.valueOf(path)); } TextView b1Text = (TextView) findViewById(R.id.GText); for(String s : stringPoints) { b1Text.setText(s); } } I get an exception during runtime. The following is the log content : 02-21 18:18:29.323: E/AndroidRuntime(512): FATAL EXCEPTION: main 02-21 18:18:29.323: E/AndroidRuntime(512): java.lang.NullPointerException 02-21 18:18:29.323: E/AndroidRuntime(512): at learn.myandroidapp.hr.HRCanvas$1.on

Why do JAXB generated classes have protected members and how can I change this?

I have been searching the internet for a reason why JAXB generated classes have protected members (all of them, regardless of inheritance). I would like the members to be private instead. My search has come up empty. I have normal xsd files which are converted into java classes using maven and jaxb. Ideally the generated members should be private but I cannot find a way to achieve this. Is there a way to modify this default behaviour? Thanks. [edited first sentence]

Handwritten character (English letters, kanji,etc.) analysis and correction

I would like to know how practical it would be to create a program which takes handwritten characters in some form, analyzes them, and offers corrections to the user. The inspiration for this idea is to have elementary school students in other countries or University students in America learn how to write in languages such as Japanese or Chinese where there are a lot of characters and even the slightest mistake can make a big difference. I am unsure how the program will analyze the character. My current idea is to get a single pixel width line to represent the stroke, compare how far each pixel is from the corresponding pixel in the example character loaded from a database, and output which area needs the most work. Endpoints will also be useful to know. I would also like to tell the user if their character could be interpreted as another character similar to the one they wanted to write. I imagine I will need a library of some sort to complete this project in any sort of timely

Instantiate a type based on json and metadata using lift-json

I would like to deserialise Scala case classes that have been serialised using lift-json. The problem I am having is, I don't know how to invoke the generic method extractOpt[A] method below: someString:String = {...} JsonParser.parse(someString).extractOpt[A] The type of [A] is going to depend on metadata, for example the class name of [A] but for the life of me I can't work out how to make the call using reflection. In c# I would just be able to set the generic type for a call on extractOpt[A] using reflection. I fear my problems are something to do with Java type erasure. I am going to have a lot of case classes so I really want to avoid having to create some kind of hand crafted map from {metadata} -> classOf[]. I have full control over what the metadata associated with someString is. If it helps understand why I have this issue, I am implementing event sourcing, and all my [A] types are going to be persisted events. Any ideas what I can do?

JBOSS 7.1.0 error - Unable to find a public constructor for class org.jboss.resteasy.core.AsynchronousDispatcher

I am trying to migrate my spring MVC based REST application to Jboss 7.1.0. At startup, the Jboss initialisation shows that everything was started up correctly with all war files deployed successfully. I had quite a few problems getting the integration between Spring MVN and Jboss's RestEasy service and im wondering if this is another conflict between jboss resteasy with Spring MVN. When i make a request to the REST service i get the following error: 12:52:31,541 INFO [org.springframework.web.context.ContextLoader] (MSC service thread 1-5) Root WebApplicationContext: initialization completed in 3035 ms 12:52:31,845 INFO [org.jboss.web] (MSC service thread 1-5) JBAS018210: Registering web context: /MyRestService 12:52:31,875 INFO [org.jboss.as] (MSC service thread 1-5) JBAS015874: JBoss AS 7.1.0.Final "Thunder" started in 53526ms - Started 390 of 468 services (72 services are passive or on-demand) 12:52:32,034 INFO [org.jboss.as.server] (DeploymentScanner-threads

strange characters(?) added to the end of my subject text

I have a problem with my java code sending email to users. There is some problem with the encoding of the email. When the email arrives to email account the subject line ($subject) has encoding problems as has strange characters(?) added to the end of my subject text. The email message content itself is fine just the subject line(?) I have searched all over but cant find,after using Unicode and content type as text/html mail body have no problem with special character ( ó ) but same fix is not working for subject line. I have a class that sends an email with javamail, with a text like this one in subject : "Estimado Iván Escobedo: The problem is that when the mail arrives to its destination, it arrives this way: "Estimado Iv?n Escobedo: All the á , é , í , ó , ú , etc special characters are replaced with ? . What could be the problem and how to solve it?

Remove an object from session in hibernate

How can I remove an object from hibernate session? In my code I am fetching one list from the DB and searching if the user entered data is already there in the DB. If it is there I am overwriting it. Else I am creating a new object and saving it. But the jboss shows error that there are two objects in session. As far as i guess one object is the object that iterates through the list and other is the one newly created for saving the data. for(Allocation al: allocatelist){ if(al.getDate().compareTo(dt)==0){ al.setAllocated(gpsz); getManager().save(al); flag=1; break; { { If the above condition fails then am creating and new object and saving it. So is there any way by which I can remove this object "al"? I don't have merger or update methods I have tried "evict()" also but its of no use. The else block Allocation allocate = new Allocation(); allocate = filldata(allocate, dataMap,i); getManager().save(allocate)

iPhone autoresizingmasks

I've been experiencing problems with designing views so that the subviews behave the way I want when using autoresizingmasks (for example, if the status bar size changes, when using the phone as a hotspot etc.). Is there any good documentation that I should definitely read? Apple documents don't seem to help me at least not without some heavy testing of my own.

CCTMXTiledMap propertiesForGID:(CGPoint)

i m working in cocos2d 0.99.0 my project have a file with name CCTMXTiledMap.h & .m but there is no public method with name propertiesForGID:(CGPoint) so please if u have this method in your cocos2d then please send me code of this method which i can use in .h and .m file. thanx.

Return Value of method using AsiHTTPRequest

I have a class that uses AsiHTTPRequest. I want to make a method like this: -(NSData*)downloadImageFrom: (NSString*)urlString; { // Set reponse data to nil for this request in the dictionary NSMutableData *responseData = [[NSMutableData alloc] init]; [responseDataForUrl setValue:responseData forKey:urlString]; // Make the request NSURL *url = [NSURL URLWithString:urlString]; ASIHTTPRequest *request = [ASIHTTPRequest requestWithURL:url]; [responseDataForUrl setValue:responseData forKey:[request url]]; [request setDelegate:self]; [request startAsynchronous]; // Wait until request is finished (???? Polling ?????) // while(responsedata = nil) { // do nothing // } BAD SOLUTION return responseData; } After that. A delegate method is called when the responseData is ready. Is there a better solution to continue, than doing polling in the variable responseData?

ibooks like carousel view

I want to create and app with carousel kind of view, with images in rows and columns, where number of columns are fixed, but number of rows varies. when user clicks on an image it opens up a detailed view. My initial approach is to used tableview, with one cell as a row, but here tricky part is calculating the column, which I am doing by tagging the views. Is my approach is right or is there is any other better way of doing it.

Facebook authentication error - The operation couldn’t be completed

I have an option in my game for users to post an achievement to their wall. If they are logged in, i.e. their token is still active, it works fine. However, if they need to renew their token, the app exits and the Facebook authentication page loads for a second before returning to the app (they only need to click OK on the authentication page if they have actively logged out, otherwise it happens automatically). The problem is that if this happens, when the game returns, the request fails. But since they're now logged in, if they were to press the 'share to wall' button a second time, it works fine. The error message output by the failed request it: DIDLOGIN 2012-02-21 12:01:33.502[18153:15803] Response received 2012-02-21 12:01:33.502[18153:15803] Request did load raw response 2012-02-21 12:01:33.502[18153:15803] Request failed, error: Error Domain=facebookErrDomain Code=10000 "The operation couldn’t be completed. (facebookErrDomain error 10000.)" UserInfo=0x

iPhone Distribution certificate not reachable in Xcode 4

Without my iPhone Distribution Certificate set within XCode 4 (on Release and Release-> Any iOS SDK) I get Code Sign Errors when I attempting to upload with Organizer/Application Loader (this is an update to an existing app). I have the distribution certificate in the keychain but I'm not able to bring it up (or enter it manually, tried name, serial number and user-id) within XCode. I have attempted deleting and re-installing the certificate, restarting Xcode and the system but I'm not able to correct this. I have also manually deleted the provisioning links within the .pbxproj file and cleaned but I'm not able to get this to work. Anyone know how to bring up the distribution certificate within Xcode 4?

issue regarding the horizontal scroll using page controller

I am use this code for add the table in scrollview. tblList = [[UITableView alloc] initWithFrame:CGRectMake(20+(i*320), 100, 280, 300) style:UITableViewStylePlain]; tblList.delegate=self; tblList.dataSource=self; [self.ListscrollView addSubview:tblList]; [tblList release]; (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath { static NSString *CellIdentifier = @"Cell"; UITableViewCell *cell = [tableView dequeueReusableCellWithIdentifier:CellIdentifier]; cell = [[[UITableViewCell alloc] initWithStyle:UITableViewCellStyleSubtitle reuseIdentifier:CellIdentifier] autorelease]; if(tableView==tblList) { [[NSBundle mainBundle] loadNibNamed:@"CustomCell" owner:self options:nil]; cell=self.tblViewCell; self.tblViewCell=nil; UILabel *datelabel1 = (UILabel*)[cell.contentView viewWithTag:2]; datelabel1.text = [NSString stringWithFormat:@"%@",[[retriveTask

Facebook connect with iPhone not working

I have set up two apps with Facebook Connect. The settings were exactly the same except from the App IDs, Bundle IDs, and on my app side, the Facebook Secret keys are different. The first app works perfectly. The second app doesn't. The error I kept getting is that "Sorry, the application you're using is misconfigured..." I tried to delete the second app on FB and set up new ones and it still doesn't work. For proof of no error in my code, I enter the App ID and Secret of the first app to the second one, and it actually runs. So does anyone know why? Is it because I could only have at any given point and time, one active Facebook app for one Facebook account? (Which is ridiculous.) To add, I am simply using ShareKit. There's no magic in what I did.

Iphone app that scans for networks in the area

I have a question; I want to be able to make an iPhone iOs5 app which can scan for networks and afterwords and prefereable filter one out [on SSID, for example], and show this in a list Im looking for a class than can handle this but Im finding a lot of classes that handles services in a network..

Crashed when deleting a row from UItableview

When deleting a row from Uitableview using commitEditingStyle, my app crashes with this error. Assertion failure in -[UITableView _endCellAnimationsWithContext:], /SourceCache/UIKit_Sim/UIKit-1912.3/UITableView.m:1046 .Terminating app due to uncaught exception NSInternalInconsistencyException', reason: 'Invalid update: invalid number of rows in section 0. The number of rows contained in an existing section after the update (2) must be equal to the number of rows contained in that section before the update (1), plus or minus the number of rows inserted or deleted from that section (0 inserted, 1 deleted) and plus or minus the number of rows moved into or out of that section (0 moved in, 0 moved out). This is my code: - (void)tableView:(UITableView *)tv commitEditingStyle:(UITableViewCellEditingStyle)editingStyle forRowAtIndexPath:(NSIndexPath *)indexPath { // If row is deleted, remove it from the list. if (editingStyle == UITableViewCellEditingStyleDelete) {

UIviewcontroller size issue in IPhone?

I have a UIviewcontroller in a navigation based project, to which i am pushing some views as a result of some button action. When I first load this view, its size is showing (0,0,320,416) in the viewwillappear method. But, if you run it again, its size is showing (0,0,320,460) in the same viewwillappear method. My view is seems to be resizing when you load it again. Due to that I have so many problems in the pushed view. Can anybody help me please?

TTStyleSheet with span class

I am making an app with Three20. I have a TTTableViewController that is the main catalog for other screens and a secont TTViewController connected with a tturl scheme. In my TTViewController there is a TTStyledTextLabel connected to a UIScrollView, that displays a chunk of text from a database that has span, p with classes. I have defined those classes in an TTStyleSheet subclass that is instantiated just like in TTCatalog example. The problem is, that even though in my TTTableViewController the stylesheet works, in the TTViewController it doesn't. I have defined my TTViewController loadView as the following: - (void)loadView { [super loadView]; FMDBDataAccess *dba = [[[FMDBDataAccess alloc] init] autorelease]; Definition *def = [dba getDefinition:termId]; NSLog(@"%@ ",def.term); self.title = def.term; NSString *s = def.definition; TTStyledTextLabel* label1 = [[[TTStyledTextLabel alloc] initWithFrame:CGRectMake(10, 10, self.view.bounds.size.width-20, self.view.b

Input HTML code in UIWebview

I have a header string, footer string and body of the HTML page. I need to programmatically include some text in the body and then I need to input all this data in a UIWebView to load the page. I need to input the final HTML string into a UIWebView controler, so that it will launch the page I designed. Could someone please share your ideas how can I achieve this? Thanks!

Accurately Converting NSString to GLFloat - iPhone

Say I have some vertice values which I am reading into my app as a NSString : -7501.6 -6198.2 834.939 -5547.66 -6348.32 2122.65 The values in the source are always 6 figures in length. I need to pass these exact values to OpenGL. If I try to cast as a float (using NSString floatValue) then, as expected, I get an approximate value for each float due to the inexact nature of a float : -7501.600098, -6198.200195, 834.939026 -5547.660156, -6348.319824, 2122.649902 Can anyone suggest a way that I can get these values into OpenGL and retain their exact initial integrity ? Thank you.

Core Plot :Move only Data

I have created a scatter graph with three plot spaces. One for two y-axis each and one for the x-axis. I am able to show data for both y-axis. However now i want to move only the data,i.e. two line and not the two y-axis.Only the data and x-axis should move. I have tried allowUserinteraction property. However is I enable it for x-axis, x axis moves without the data. If i enable it for both/either of axis, y axis also moves with data and scale of y-axis is not visible all the time. Can someone help pleas.e This is my first work with core plot. I will add code if required. Thanks

Prevent tap event on UITextView

2012-02-21 11:59:18.106 textView[20977:fe03] ; target= <(action=delayed:, target=)>> 2012-02-21 11:59:18.107 textView[20977:fe03] ; target= <(action=handlePan:, target=)>> 2012-02-21 11:59:18.108 textView[20977:fe03] ; target= <(action=oneFingerTripleTap:, target=)>; numberOfTapsRequired = 3> 2012-02-21 11:59:18.108 textView[20977:fe03] ; target= <(action=oneFingerDoubleTap:, target=)>; numberOfTapsRequired = 2> 2012-02-21 11:59:18.109 textView[20977:fe03] ; target= <(action=twoFingerSingleTap:, target=)>; numberOfTouchesRequired = 2> 2012-02-21 11:59:18.123 textView[20977:fe03] ; target= <(action=tapAndAHalf:, target=)>> 2012-02-21 11:59:18.124 textView[20977:fe03] ; target= <(action=twoFingerRangedSelectGesture:, target=)>> 2012-02-21 11:59:18.124 textView[20977:fe03] ; target= <(action=oneFingerTap:, target=)>> 2012-02-21 11:59:18.129 textView

PhoneGap 1.4.1 Does Not Support iOS 3.x.x Anymore?

I have discovered after half a day of testing and frustration that the latest version of PhoneGap does not support iOS 3 devices anymore. The minimum version appears to be iOS 4. The simulator works fine, but when I try to load the out of the box PhoneGap app on a device I get a crash in AppDelegate.m CGRect viewBounds = [[UIScreen mainScreen] applicationFrame]; self.viewController = [[[MainViewController alloc] init] autorelease];// Crash on this line self.viewController.useSplashScreen = YES; The error is "Programme received signal: "EXC_BAD_ACCESS". iOS 4 devices work fine! The problem is easy to replicate - just setup a default PhoneGap 1.4.1 project and try to run it on an iOS 3 device. I am not too concerned as I think about 93% of iPad users use iOS 4 or 5 now, but it is a shame for the other 7%... Has anyone else had this problem and found a solution??? Cheers Nick.

Adding Accessory to UITableView

I've got a UITableView displayed on screen for a while. In each cell is a song and artist name. In the background, each song and artist name is searched for online (using the Spotify API). It finds the URL to play one song, and then moves on to the next one! :) Sounds simple... but what I want is when each song is found, for the Checkmark accessory to appear in that row. Currently i've got the following code to do this... [[table cellForRowAtIndexPath:[NSIndexPath indexPathForRow:currentConnectionNumber inSection:0]] setAccessoryType:UITableViewCellAccessoryCheckmark]; [table setNeedsDisplay]; But all that happens is when all of the songs has been found, THEN the checkmarks appear... Why is this and how can I make the checkmarks appear one at a time? thanks

Use a pool to spawn images

Hi every one here is my code: -(void) createNewImage { [imageView setCenter:[self randomPointSquare]]; [[self view] addSubview:imageView]; [views addObject:imageView]; [imageView release]; ix=imageView.center.x; iy=imageView.center.y; [XArray addObject:[NSNumber numberWithFloat:(240 - ix)/diviseurVitesse]]; [YArray addObject:[NSNumber numberWithFloat:(160 - iy)/diviseurVitesse]]; } -(void)moveTheImage{ for (NSUInteger i = 0; i < [views count]; i++) { imageView = [views objectAtIndex:i]; X = [[XArray objectAtIndex:i] floatValue]; Y = [[YArray objectAtIndex:i] floatValue]; imageView.center=CGPointMake(imageView.center.x + X, imageView.center.y + Y); } With this code, image are created and move to the center of the screen but after some seconds the performance decrease and come to 30fps. I would like to keep fps at 60 but I don't know how to proceed.Some people say that I can use pool but it's hard for me to use it because I don't really know how to us

Parsing JSON Feed iOS 5

I'm pretty new to iOS development, and I'm wanting to parse the values of a JSON twitter feed, so I can pull them through into a tableView. So far, I have the information from the feed logging into my console bar as a string, but I'm stuck with where to go next. My current code is: - (void)loadTweets { NSString *twitterURL = [NSString stringWithFormat:@"https://api.twitter.com/1/statuses/user_timeline.json?screen_name=evostikleague&count=%d", tweetCellCount]; NSURL *fullURL = [NSURL URLWithString:twitterURL]; NSError *error = nil; NSData *dataURL = [NSData dataWithContentsOfURL:fullURL options:0 error:&error]; NSString *strResult = [[NSString alloc] initWithData:dataURL encoding:NSUTF8StringEncoding]; NSLog(@"Everything:\n%@", strResult); } Which gives me the raw data from the feed: [{"id_str":"171930825225551872","coordinates":null,"in_reply_to_status_id_str":null,"place":null,"po

Your Second iOS app Tutorial: How Many Sections Do They Want?

In Your Second iOS app, there is a portion that says the following: After you finish laying out the cells in the table, the detail scene should look similar to this: However, mine has Section-1, Section-2, Section-3 right above each section. I get the feeling that they want 1 section with three cells. Can you tell which?

Making a webserver using jsp and java

Using Google App Engine SDK: webpage: http://hwsejk.appspot.com/ I'm trying to make a web server using java and jsp (it is a web server for an iPhone application). I don't know a lot about java so I'm having a lot of troubles trying to construct a server by myself. For now, I have tried implementing cookie, database, and some other methods. Now that I've given you basic information about my web server, I have a few questions to ask. Is it the right approach to use java and jsp to make a web server like this? the java servlets get and send user inputs to different jsp pages, which contain some HTML and java code. But I've found some posts here that it's a bad practice to use jsp like this. I don't know how else I can make webpages. Could anyone please recommend the right approach to make a web server (like the one linked above)? I would love to know if there is some kind of a template that I can take a look at.

Writing data from my app to csv & upload it?

I wondered if it's possible to write some data to csv file in the documents path, or other convenient readable file. For example - i have a few text fields that i want the user to fill & then i want him to click "send" & after that the information will be written on a file that i could easily read & upload to my server. In my case i have an app that i want people to register for my members club, with first name, last name & phone number & i want to take this information & read it easily after is uploaded to my server. For testing i'm using my dropbox account as a server. Is it possible? Thanks for the help :)