Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 7 years ago.
Improve this question
I have a weird requirement where all my data to be displayed in the app is coming from a remote server. The data consists of simple text, numbers, dates and prices. Now, had all this data been static, the task was simple but here the problem is that the data is dynamic (coming from the server) and also the app has to be localised in at least 20 languages. The biggest challenge is to convert the price values into user selected currencies on his device settings on the run.
For currency conversion, you can use the Yahoo API. Examples can be seen in this StackOverflow question.
http://finance.yahoo.com/currency-converter/#from=USD;to=EUR;amt=1
This url format could be used to fetch conversion rates in different formats.
http://download.finance.yahoo.com/d/quotes.csv?s=AUDUSD=X&f=nl1d1t1
Substitute quotes.csv with appropriate format and parameters with the required codes
As far as localization of your text coming from the server, that's a much more difficult problem. I think it would be very difficult to translate this "on the fly". The correct solution is to include the language in the request and have the server return any text in the requested language.
I guess another approach you could take (which may not be feasible depending on how many different strings you are dealing with) is enumerate all the possible strings returned from the server. Then take the more traditional approach of having these strings translated and included in your app.
Related
Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 4 years ago.
Improve this question
For testing, I needed to generate a list of data values randomly and put them into the models for further use. But I found out that there is no library, which could produce such functionality.
The elegant solution I expected to find had to combine such simple things as:
the variety of data;
the variety of methods to reach this data;
the possibility to change the default data set to the custom one.
Since I hadn't found the accurate solution, I decided to create my own library (ref. https://github.com/codeitua/ios-data-factory).
There were implemented all necessary methods for data generation (including random names, cities, addresses, dates etc) and data retrieve. And moreover, it has "swifty" interface, which provides comfortable use in every project.
I hope, it will be helpful for everyone, who faced the same problem as me!
Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 8 years ago.
Improve this question
Here's my problem: Today my company has an app that communicates with a specific server, but we received demands to develop this same App for different servers, so a few things need to be changed in the App (like the URL to call and the logo).
I do not want to create a whole new application with 99% of the code the same in my Xcode just to do that, because it would be really difficult to develop new stuff.
I'm wondering if it's possible to maintain the same base code with just small changes to different applications.
Hope I made myself clear, thank you.
Just to answer my own question, I just found this guide:
https://itexico.com/blog/iOS-Mobile-Development-Using-Xcode-Targets-to-Reuse-the-Code
Different targets and preprocessor macros are just what I needed, pretty sweet!
For something like this, I'd suggest using easy-to-manipulate stuff like plists and so on to make a core app like a framework that would be able to read an XML for example, and parse its data into different fields of your Plist and apply the settings based on that data for every new app that you have.
So, you should have items like url and logo, etc. in your settings Plist, and getting to read them in the app rather than setting values manually inside the app. This way, you'll be able to drop different image files called logo.png for each app, or edit the value for url in your Plist, and the app will read the value from the Plist.
However keep in mind that Plists are good if you don't have a giant list of items, because they can be slow if you get a really big one, but they're so quick and handy for average number of items.
I hope this helps.
Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 8 years ago.
Improve this question
I have been trying to create a game using OpenEars. I am using dynamic language model method. But the performance is not up to the mark. Recognition is very low. Is there any advantage in using static language model ?? Any other method to improve speech recognition ???
OpenEars developer here. There are a few things that can result in sub-par recognition. Here are the really big ones:
Testing recognition using the Simulator rather than a real device
Having misspelled words in your language model (this is a big one
that accounts for a very large number of reported issues – if the
word is misspelled, how will its correct pronunciation be found or
derived and entered in the phonetic dictionary? It can't be, and then
correct pronunciations get false negatives)
Having extraneous punctuation in your language model. Check this out by taking a look at the .arpa file contents and the .dic file contents and seeing if the entries in each seem to match each other or not.
Having a native-speaker accent which is very different from the US accents the acoustic model is trained with, or having a non-native-speaker accent (this isn't fair, but it's reality)
Having the language model largely consist of non-English words such as non-English last names, non-English street names, or intentionally-misspelled band/startup names, since all pronunciation ends up being estimated.
But static language models versus dynamic language models have never been a big consideration for accuracy levels. If you'd like to troubleshoot this with me further I'd recommend that you visit the OpenEars support forums where I'd be happy to help with that, since Stack Overflow is not intended for ongoing back-and-forth troubleshooting processes and this is probably one of those.
Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 9 years ago.
Improve this question
hi I’m new to IOS development i have developed only one application in iOS now i want to make a polling app in IOS i Google every where i did’t get a proper solution to make a polling app.
In my polling app i want get input poll form the user and i have to store in database and i have to calculate the value for the polling and i have to show the result how many people voted .
so please can any one suggest what is right way to make polling in IOS or is there any alternative way to make this.
thanks.
Assuming you want to store your results on a back end web server with a DB then you would first need to write some web services. I personally would suggest a combination of PHP and MySQL as they're both open source and relatively easy to get to grips with. I also recommend you use JSON as your data interchange format as it provides a human readable structure without the complexity of XML.
Once you have a functioning back end you would need to build an app with the appropriate data fields that you want in either one or multiple views. Personally I would put all of your questions into an array and then cycle through them changing the input controls if necessary. You can then add your answers to an NSMutableArray.
Once you have your complete answer set in your NSMutableArray you can serialise it to JSON and transmit it off to your web service.
There are many guides for getting started with JSON on iOS available, I would suggest you take a look at this one.
Your question is business specific (not to iOS, iPhone & objective C).
So I would suggest you to better try these APIs available in market.
support.polldaddy.com
Poll EveryWhere
TypeForm
Hope that helps.
Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 8 years ago.
Improve this question
For example, I would like to change my ID to a custom code (12 -> A00012). Where should my function put in this conversion? In my previous coding, I did put in the View form, however, I think I should put in Model. How is the implementation in MVC ASP.NET?
In general, formatting should be in the view since things like appropriate currency/date formats are part of the user experience. Basically, you don't want to force an American date format on a European user and vice versa. Nor do you want to send a user's culture info down to your model. Usually things like padding should go at the user level as well.
In other cases, perhaps such as your special code, you may want to look into Attributes. For example, one place I used them was on a legacy data column that was a string that would either represent a date or some pre-defined statuses (like HOLD). By using an Attribute, I was able to essentially strongly type this column rather than allowing it to be a free-from string.