I am writing my first real applet and I need to store some data. I've never really messed with putting and maintaining code on the internet, so please bear with me if I'm a little slow to catch on.
I'm building a Calendar applet for work (just a student worker) and I'm not sure how to store necessary information such as the schedules for certain days and login name and password information. I assume I have access to a server and such, but I don't know exactly what I would traditionally need or what I would need to do with what I need.
In the worst case scenario, I could simply put the information into text files and read them on every start-up where the applet is stored, but that definitely seems like a very wrong way of doing things. Can you guys educate me on a few practical ways people accomplish this in the real world. Any ideas would be greatly appreciated. Options that are free/open source would be best.
Thanks a lot for your help.
For this sort of small application, I would go for SQLite.
How about a relational database such as SQL Server ? Maybe access?
Related
I've made an application for someone, with Netbeans (java) using mySQL.
Well, when I'm about to install it in his office, but it told me that it's impossible to host database!!!!
SO I have to modify the application, but I'm not sure what to do; if you have a suggestion for me; i'll be greatful
It's a java application, which is supposed to be used by several users, who share a little database.
Thank you beforehand
If your application is reliant on a database to work properly I would maybe ask them if remote hosting a database is an option they can consider if "in-house" database is off the table. If your application however is not reliant on a database you might want to look into serialization where you can save it on a file instead, check out http://www.tutorialspoint.com/java/java_serialization.htm. However it is hard to answer because you dont really describe what your application does.
Newbie over here. I'm designing and coding a few websites using Adobe Dreamweaver. I'm about 3 months in to web development at my current job at this point. I haven't had any formal training in web development, but I have an eye for design and attention to detail.
However, more technical things are difficult for me as I'm just getting started. I want to create a self contained Captcha within two websites without using a third party service or any downloadable plugins. This is important, because I am creating the website for the company I work for full time as part of my job description.
How would I go about making a simple contact form and captcha using PHP & Java for example? I'm only slightly familiar with PHP and Java.
If someone could just explain this to me in an idiot-proof way I'd really appreciate it. I've been browsing Stack Overflow, but I can't seem to find anything specific and I'd prefer a fresh answer.
Thanks all. I'm also not familiar with most of the jargon yet, so forgive me for my lack of knowledge presently.
If this is an incredibly stupid question also, I apologize - but I still really need an answer.
Using PHP:
start a session
create a random string
store the string into a session variable
create an image to display using php imagecreate
use imagettftext to position the characters one at a time at random angle
Verify user input against the stored session variable
I Do not know much about it, but I have a question and I hope you can help me if it is possible.
I need to synchronize two databases, one is a mobile database (SQL Server Compact) and the other a MySQL database. Both have exactly the same tables.
Then, is it possible to synchronize the records via a webservice?
I accept any ideas, suggestions or help.
Many greetings and thanks.
pd: sorry about my english... :)
Have a look at SymmetricDS. It runs as a webservice (tomcat6) and is able to do both one and two way synchronization. It also supports the concept of a single root node and several client nodes.
SymmetridDS is database "transparent", meaning that it can synchronize between databases independent of database type.
It's quick, stable and reliable. The learning curve might be a bit steep when you first dive into it, but it is quite a piece of software once you get the hang of it!
yes.
you need to create a piece of code that can connect to both databases at the same time.
you need to then read them and decide what is different between the two,
then you need to apply changes that make one look more like the other (non-trivial).
You will need to decide which one should be the master, or if both should modify the other somehow.
I have a website which is pretty good but with very less information.
So i felt like adding informtion like news regarding particular sector(for eg politics, hollywood etc). I believe crawlers are best approach to do so? Is my understanding correct, please suggest if you feel any other way to get information without using crawlers from various sources.
Secondly I am doing research from last 2 days and I cannot find a particular source which is capable of doing so. Now I want crawlers to find information, normalize and store in mysql database. Sounds pretty simple ha. But It isnt for me.
As this is very resource and time consuming . what all things should i take into consideration before choosing a crawler. Also I wish to customize it so any tool which is open source and good to be customized will be great.
Any source giving information and research about factors need to take into consideration while creating crawlers or educating about crawlers will be great.
I prefer coding in java but i can code in any other language in case you feel that you have some language.
I hope i have given enough information. Please dont hesitate if you need any more information to give suggestion.
You can use httrack to copy a target website. There is one firefox plugin as well named spiderzilla. But, they will just save the pages.
If you want to parse the data in the pages, then you can use simple_html_dom and store the information in mySQL.
Try the GNU Wget tool. You can add a lot of intelligence to the way it crawls and creates data dumps of web pages. It is open-source and customisable as well, and very fast too.
I'm coming from a web-development background and I am wondering how I would make a learning algorithm in Java/C++. Not so much the algorithm part, but making the program "remember" what it learned from the previous day. I would think something like saving a file, but I suspect their might be an easier way. Apologies if this question is just over the top stupid. Thanks.
I think that would depend a bit on the problem domain. You might want to store learned "facts" or "relationships" in a DB so that they can be easily searched. If you are training a neural network, then you'd probably just dump the network state to a file. In general, I think once you have a mechanism that does the learning, the appropriate storage representation will be relatively apparent.
Maybe if you can flesh out your plan on what kind of learning you'd like to implement, people can provide more guidance on what the implementation should look like, including the state storage.
Not stupid, but a little ill-formed maybe.
What you're going to do as your program "learns" something is update the state of some data structure. If you want to retain that state, you need to persist the data structure to some external store. That means translating the data structure to some external formal that you can read back in without loss.
Java provides a straightforward way to do this via the Serializable interface; you Serialize the data by sending Serializable ojects out through an ObjectStream; the same ObjectStream will reload them later.
If you want to access and save large amounts of data maybe a database would work well. This would allow you to structure the data and look it up in an easier manner. I'm not too well versed on the subject but I think for remembering and recalling things a database would be vastly superior to a file system.
A robust/flexible solution in Java (C++ too, but I wouldn't know how) would be using a database. Java 1.6 comes with the Apache derby database which can be embedded in your apps. Using JPA (Java Persistence API) makes it easy to interface with any database you can find drivers for.
You should look into Neural Network software development. Here's a collection of nice Neural Network libraries for different languages. I am not sure if this is the easy way but once accomplished would be very handy.