User Profile
Collapse
-
Options for creating portable web apps?
I am want to create a web application (say a calculator or game) to embed and run in the browser and am just curious what the best current options are. It should be run client-side, no server connection. I would prefer something compiled. I don't want to have to spend much (if anything) on licenses or development kits/environments, and it should be distributable. What options does that leave me? Applet? Flash? JavaFX? -
How do I turn my app into an executable archive?
In trying to learn a little java, I created an application to access a derby database. Now I want to make the application into an executable jar for distribution. I don't care how many jars I end up with, just so that it runs by double-clicking one. How do I do this from the command line? Nothing I've tried lets me run it by double-clicking. One other requirement, MyDB.jar cannot be compressed (if so, the app runs super slow).
Required... -
JDBC Connection
This worked fine the first time I ran it. The next day, it couldn't connect. It looks like MySQL drops the connection during the night, and then I can't get it back. My question is, is there something wrong in my code, or is the error due to the way the server handles the connection?
Code://code snippet public class MyClass{ InitialContext ic; DataSource ds; Connection conn; PreparedStatement stmt;
-
What happens when you give the filename an xml or xls extension? How are you rendering? -
You should be able to execute the queries in the same way you fetch them. If not, you could maybe use something like DBI to connect to the database.Leave a comment:
-
-
Did the 'Language' model create successfully? Generally, the 'Language' model would be tied to a 'LanguagesContr oller.' I'm not sure how to tie the 'Language' model and 'LanguageContro ller' together without doing something like "require 'language'" in the controller.Leave a comment:
-
improvcornartist replied to what is the error of "uninitialized constant Object::Person (NameError)"?in RubyThe 'Employee' file needs to require the 'Person' file. So, for example, at the top of the 'Employee' file, add
Code:require 'path/to/Person'
Leave a comment:
-
Here is the Ruby on Rails page: http://rubyonrails.org/download. You should be able to find multiple tutorials in a web search if you want an example.Leave a comment:
-
You need to use double quotes for #{}, so obj.name="{#{a} }".Leave a comment:
-
You defined ar with a size of 25, but are trying to set 26 values.
Code:String ar[]=new String[25]; //ar can hold 25 elements - ar[0] to ar[24] ar[25]="Socks for kids"; //this is the 26th element, which causes the error
Leave a comment:
-
You should be able use a javascript event to show/hide text in an input field or to add/remove select options as necessary.Leave a comment:
-
The purpose is database manipulation. If you can get the data from the logging device without it, you don't need it. Otherwise it may be helpful.Leave a comment:
-
You can use javascript to add new elements. Something like
Code:function addElement() { var div = document.getElementById('div1'); var element = document.createElement('input'); element.setAttribute('type', 'text'); element.setAttribute('name', 'text1'); element.setAttribute('id', 'text1'); div.appendChild(element); }
Leave a comment:
-
set_table_name "schemaname.tab lename" doesn't work because the application is connected to one default schema. It expects whatever you pass to set_table_name to be a table name within the model's schema.
You should be able to get the application to work by setting up a second ActiveRecord connection for whichever is not the default (Base).
Code:# This is the default connection ActiveRecord::Base.establish_connection(
Leave a comment:
-
Line 38, if (cpub[ctr]<1), is after the for loop in which ctr is incremented. So after the for loop, ctr is bigger than the number of elements in cpub. Example, you initialize cpub[0], cpub[1], cpub[2], and after the initializations it continues with ctr and tries to access cpub[3].Leave a comment:
-
The full error isCode:java.lang.ClassCastException: java.lang.String cannot be cast to java.util.Date at test_serialisation.main(test_serialisation.java:33)
Code:Date dtt=((Date) dt);
Leave a comment:
-
Try going in to Task Manager, select New Task, and enter explorer.exe.Leave a comment:
-
improvcornartist replied to Updated my rails 2.3.2 now getting > undefined method `inject' for true:TrueClassin RubyLooks like the error then is in trying to translate 'home'. Do you know exactly what is being passed to 't' and what 't' is expected to do?Leave a comment:
-
improvcornartist replied to Updated my rails 2.3.2 now getting > undefined method `inject' for true:TrueClassin RubyWhat does your code look like around public_controll er.rb, line 7?Leave a comment:
No activity results to display
Show More
Leave a comment: