Conversion of text to picture-message? - java

Friends,
I need to know how to convert a text to a picture-message(.ota) format in JAVA for sending through mobiles? I am developing a software that sends the picture-message to another mobile via serial-port.
Could anyone help for creating a routine for the conversion process? I need that routine to converts the given text/picture to a .ota format?

Having read the article about the file format I would say it doesn't sound all that complicated. The basic steps are pretty much outlined and could be implemented within the hour.. Guessing you've that that already by now?
(And if so, mind sharing the code to solve the question? ;) Shouldn't need to be anything over a few hundred lines, right?)

Related

Best file type to save budget data in Java?

I'm starting on a new budgeting/allowance project and I'm trying to figure out how to save the data between opening and closing the program. Arrays seem clunky and I don't know how I would save the array data to a file anyway. I've really only worked with text files before so this is new to me.
I'm assuming a database of some sort is what I need but I don't know what I should be looking for.
I know this has to be a simple issue but I honestly don't know where to start; any help is greatly appreciated.
That is entirely for you to decide, there is no one right answer here.
You can save in a text file, e.g. CSV if very simple, otherwise JSON or XML are common choices, or in a binary file, e.g. Java serialized objects, or some embedded database file might do.
It really depends on how complex the data is, how big the file can become, whether you want to be able to edit the file directly in a text editor, and how important load/save performance is to you.
Since it's a new project and you seem fairly new to this, I'd suggest JSON or XML, whichever of the two you are more familiar with. But that's just my opinion.
It's entirely your choice.

grabbing information off answer sites

First off let me say language of preference is Java but any language is acceptable for the answer since I know most languages.
Question: Say I have a link, http://ca.answers.yahoo.com/question/index?qid=20140218053709AAM0WfI (random link for this example). Is there any possible way to get the title of the question and store it in a string, then get what he typed as the description for the question(aka this section here) and store it in a separate string? I know how to grab strings from a site but the problem I run into is that I keep grabbing answers aswell as the question.
Additional details.
I will not know the specific yahoo answer ahead of time, so the code
needs to be able to work with all basic questions (aka ones without
picture or other complications).
Code needs to work with all question/answer forum kinda sites not just yahoo.
Not asking anyone to write entire code or anything, I know that is not how site works. Just is there any specific functions that can easily obtain this information?
What you want is data scraping. You can use Beautiful Soup for that purpose. below is the link of one of the tutorials.
http://kochi-coders.com/2011/05/30/lets-scrape-the-page-using-python-beautifulsoup/

HTML5 Beginner. I want a Speech-Box to run Java program

I am a beginner at HTML stuff, I was looking at http://slides.html5rocks.com/#speech-input and was wondering how I could press enter on text input or speak and afterwards run a Java application HelloWorld with the input String from the text box.
I would like a simple rundown of what I need to do. If there is any advice on Text-To-Speech Output, that would be icing on the cake :)
I'm sorry this question got thumbsed-down (it wasn't me) but maybe I can help you understand how you'll need to approach the problem (and if you're up for it!):
1) The new HTML5 speech input sends its string result as a form
2) You'd need to read this input, pass it along to middle-ware client-scripter (like jQuery - learn this), then use jQuery to instantiate your Java application in the client window
Again, sorry the community felt like this question wasn't worth answering...but it is a big one!

Rapid Miner 101

I'm back with a question. I'm playing with Rapid Miner for automatic text classification and cant get it work. I'm getting an error that says, "no example set in the example, offending operator Performance ". Any idea what that is referring to ?
In RapidMiner you have to use the converter components before using it as example sets. So, if you have an output as 'doc', for example, you have to use the component 'Documents to Data' in order to link it to the next input 'exa'. That´s all!
Could you provide more details about your RapidMiner text mining process?
Without more context, your question is difficult to answer.
For more help with RapidMiner, you may want to check out the RapidMiner user forum: http://forum.rapid-i.com/
At RapidMiner Resources, you can find RapidMiner tutorial videos about how to text mining with RapidMiner:
http://rapidminerresources.com/index.php?page=text-mining-3
Rapid-I also offers a 90 minutes text mining webinar. You can find it at the Rapid-I web page under "services" and "training" or in the web shop.
I hope these links help you to get started with automatic text classification with RapidMiner. If you provide more details about your RapidMiner text mining process, I may also be able to directly answer your question.
If it says that there is no Example Set, then the issue is probably with your original data. Can you post an image of your process?
For instance, make sure that you have connected the initial input to your operator - what two operators does the error occur at?
One thought: the example set in text mining is usually your document collection, but if you are really using documents (PDF, Word) then your format will be Documents (Doc), and you may need to transform your documents to data (Documents to Data operator). Then you should have an Example Set that you can feed into your Performance operator.
Hope this helps - as the earlier comment said, without knowing the process, it is hard to tell exactly where the error is.

Please help, my program is not accepting MySQL floats

I have to use a java program . I need to understand it and then modify it. The program has a source folder. It has a lot of java files. the program has a GUI interface. i have imported the program in eclipse and i can run the program. i want to learn and understand the code but since its too big i want to only read the relevant portions of the code which i need to understand to modify / add features to the program. This program requires input data . this data can be in a CSV file or a MySql database. the immediate problem i am facing with the program is that i need to use float data as input data in one of the columns. when i put data in decimal form in the CSV file . the program has no problem in accepting it and processing it. but when i create a MYSQL database table with floating datatype as one of the column . the program while importing data gives error - "unknown data type float . add this entry is xxx.props file " even after i add the float entry in xxx.props file in the proper way just as other entries are there for other data types in xxx.props file, i still get the same error . what should i do next ? which part of the code should i study to find out the problem?
When you say it "gives error" - does it throw an exception? If so, find out where that exception is thrown from, and work backwards from there.
You haven't explained what the xxx.props file is, how you created the mysql table, or what you're then doing with it, which makes it kinda hard to give any more specific help...
Without a direct question, I can't help you much. However, I can advise you on how to solve the problem.
Learn the basics before you try to make a leap to do everything at once. Try to learn these before coming everything:
Get a working knowledge of Java
Figure out how to develop a GUI that isn't binded to your logic. (Take a look at the MVC design pattern)
Break up the big program into manageable parts
Implement your logic separately from your data access (M C part of MVC)
Use Unit Testing to verify that your components work
Implement the CSV reading, and then move it to the database
This way you have seperable components that will make your job easier to deal with, and you will learn quite a bit along the way.
You've got a lot of small questions but I think your main question is "why am I getting this 'unknown data type float' error". Without looking at any code my first suggestion would be to validate how you're inserting/updating the MySQL table. Hopefully the developer extrapolated the data tier from the UI tier meaning there should only be one or two java classes to look at to verify how the data is inserted.
Overall, it sounds like you're new to Java and application design. Try to follow how the program works from point A to point B. Hopefully the code was broken out into tiers to make it easier for you; IE the GUI is in it's own package/project and the business logic is in it's own package/project, so on and so on.

Categories

Resources