271 Discussion / Question Topics

Remove Filter
Member Avatar for riahc3

Hey I want to control a textbox to only allow numbers, backspace and a certain length. Ive tried with the IsNumeric function but I cant seem to get it to work. Thanks.

Member Avatar for princenathan
0
4K
Member Avatar for riahc3

Hey I would like to do a ".bat' type of command in C#: Something automated. Im trying to run a program that is sort of shell itself so it just need to input certain words/letters into the command line box. Lets see if I can explain it better with a …

Member Avatar for thines01
0
162
Member Avatar for riahc3

Hey I would like to do a ".bat' type of command in Java: Something automated. Im trying to run a program that is sort of shell itself so it just need to input certain words/letters into the command line box. Lets see if I can explain it better with a …

Member Avatar for riahc3
0
445
Member Avatar for riahc3

Hey Im trying to connect to a remote MySQL server running on Windows using a Ubuntu client (via a local IP on the same network) and I receive this: Lost connection to MySQL server at 'reading initial communication packet', system error: 110 I imagine that it is in the host …

Member Avatar for smantscheff
0
137
Member Avatar for riahc3

Hey Does anyone know a good tutorial to understand web services under Java using WSDL? Most are pretty confusing and at the end offer no source sample code to test it out. Thanks

0
87
Member Avatar for riahc3

Hey How do I mirror a entire database to another server? Federated tables arent a option in this case as I need foreign keys. Thanks

Member Avatar for smantscheff
0
47
Member Avatar for riahc3

Hey Im going to use some federated tables that I need but I know that the engine does not support foreign keys. Im thinking of alternatives and this is the one so far: Tables from the remote side and related related with a foreign key on the local side. Its …

Member Avatar for riahc3
0
877
Member Avatar for riahc3

Hey Using MyEclipse 10 for Spring while developing Matisse/Swing GUI applications something very annoying happens: Whenever I change anything on the form in Design view the view always changes to Source view. (In between a progress bar with 'formatting' text appears.) How can I this behaviour switch off? Thanks

0
58
Member Avatar for riahc3

If I go to [url]http://localhost/somefolder/somepicture.bmp[/url] I cant see if in my navigator. Now If I go to C:/somefolder/somepicture.bmp It works perfectly. This is completely driving me crazy. I really have no other methods that I could try to get this to work. Ask questions and Ill try to give answers..... …

Member Avatar for riahc3
0
102
Member Avatar for riahc3

Hello How do I go on about calling from Java stored procedures (which have variables going in and out) and transactions in MySQL? For a stored procedure example, something like 2 variables in that are numbers and the third going out that is the result. Thanks

0
45
Member Avatar for riahc3

Hello Using MySQL, I have DB 1 with table T1 on Server 1 and DB 2 with table T1 on Server 2. Not on the same network and T1 contain the same columns with the same datatypes. I want to create a trigger on DB 1 so when there is …

Member Avatar for riahc3
0
3K
Member Avatar for riahc3

Hey How do I make Apache Tomcat allow to interpret PHP as well? Allowing something like: [code] protected void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException { response.setContentType("text/html"); PrintWriter out = response.getWriter(); out.println("<html><head><meta http-equiv='pragma' content='no-cache' /><title>Hello</title></head><body>"); out.println("<?php echo 'Hello'; ?>"); out.println("</body></html>"); out.flush(); out.close(); } [/code] Thanks!

Member Avatar for riahc3
0
150
Member Avatar for riahc3

Why does IE still cache pages even if I tell it not to using "Cache-Control","no-cache" (Im doing this in a servlet so Im sending "no-cache" to "Cache-Control". In order words: Cache-Control=no-cache) "cache", "no-cache" Firefox, Chrome, Safari, my Android browser (Chrome), ALL of them dont cache the page expect IE. Why???

Member Avatar for riahc3
0
91
Member Avatar for riahc3

I have this code: [code] <html><head><title></title></head><body><form id='formulario' action='index.html' method='post'><label>Ancho </label><input type='text' name='ancho' id='ancho'><br ><label>Alto </label><input type='text' name='alto' id='alto'><br ><label>Izquierda </label><input type='text' name='izquierda' id='izquierda'><br ><label>Horizontales </label><input type='text' name='horizontal' id='horizontal'<br ><label>Verticales</label><input type='text' name='vertical' id='vertical'><br ><label>Crucero </label><input type='text' name='cruzero' id='cruzero'><br ><label>Marco </label><input type='checkbox' name='marco' id='marco'><br ><label><input type='radio' name='RadioGroup1' value='1' id='piezas'>Piezas</label><br><label><input type='radio' name='RadioGroup1' value='0' …

Member Avatar for Troy III
0
168
Member Avatar for riahc3

(This has to be a Java question as it simply works in a txt with a HTML extension....) I have this code: [code] <html><head><title></title></head><body> <form id='formulario' action='index.html' method='post'> <label>Ancho </label><input type='text' name='ancho' id='ancho'><br > <label>Alto </label><input type='text' name='alto' id='alto'><br > <label>Izquierda </label><input type='text' name='izquierda' id='izquierda'><br > <label>Horizontales </label><input type='text' name='horizontal' …

Member Avatar for riahc3
0
82
Member Avatar for riahc3

Hey Putting this code: [code] System.out.println("Hello"); BufferedImage bufferedImage = new BufferedImage(620, 420, BufferedImage.TYPE_INT_RGB); System.out.println("Bye"); Graphics2D g2d = bufferedImage.createGraphics(); g2d.setColor(Color.black); g2d.fillRect(0, 0, 620,420); g2d.setColor(Color.yellow); [/code] It throws a java.lang.OutOfMemoryError: Java heap space error not displaying the bye. I dont understand as my BufferedImage is nothing at all (simple 620 by 420). …

Member Avatar for riahc3
0
1K
Member Avatar for riahc3

Hello Im trying to generate a image from a servlet and display it with browser. Lets say I want to do something like this: [code] protected void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, java.io.IOException { BufferedImage bufferedImage = new BufferedImage(620, 420, BufferedImage.TYPE_INT_RGB); Graphics2D g2d = bufferedImage.createGraphics(); g2d.setColor(Color.black); g2d.fillRect(0, 0, 620,420); …

Member Avatar for riahc3
0
120
Member Avatar for riahc3

My index.html is: [code] <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> <html> <head> <title></title> </head> <body> <form action="index.php" method="post" name="uandp"> <input type="text" name="user"><br > <input type="password" name="password"> <input type="submit" value="Go"> </form> </body> </html> [/code] My index.php is: [code] <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> <?php session_start(); ?> …

Member Avatar for riahc3
0
135
Member Avatar for riahc3

Hello The instructions for installing the Android SDK on Eclipse are different than on MyEclipse (following Google). Any step by step? Thank you

Member Avatar for riahc3
0
261
Member Avatar for riahc3

Hey Lets see if I can explain myself correctly...... I have 2 projects, one a program and another a library. First project is basically this, more or less (obviously it is more complicated) [code] //This is the main project //Inside com.stuct: //Global.java package com.stuct; public class Global { public static …

Member Avatar for riahc3
0
529
Member Avatar for riahc3

Hey I want to create a JAR library but not sure how to in MyEclipse. Im currently doing it manually using jar command but I cant seem to get it correctly The library code is: [code] public class LibAdd { public static int addtwonumbers (int a,int b) { return a+b; …

Member Avatar for riahc3
0
179
Member Avatar for riahc3

Hello I'm tring to declare a BinaryOut type of object in a Java web project but it doesn't seem to work. I've imported the same libraries I used in a standard Java project so I don't know what's wrong. Any tips????

Member Avatar for riahc3
0
184
Member Avatar for riahc3

Hey Is it possible to run a Java Servlet that loads a .html page that has a bunch of JS scripts in it? I know how to load a normal .html page (I believe it is correct) but not sure if it works if it has Javascript as well. Thanks.

Member Avatar for riahc3
0
636
Member Avatar for riahc3

Hello Im trying the ini4j library but I seem to be having problems writing a Unicode file (no problems reading I believe) Is this a Java issue or ini4j? Thank you

Member Avatar for riahc3
0
747
Member Avatar for riahc3

Hey AFAIK, you have to pay for Mono for Android so you cant write C# applications that run on Android. Is there any alternative?

Member Avatar for riahc3
0
185
Member Avatar for riahc3

Hey I was wondering how I could write a binary file in Java with code in C++ using the reinterpret_cast function. If I remember the line correctly (not currently at work) it was: [CODE] file.write=reinterpret_cast<char *(&x)>,sizeof x; [/CODE] with x being a variable. How can I do that in Java? …

Member Avatar for riahc3
0
939
Member Avatar for riahc3

As some of you have read, Ive been working with JNI for these days. Ive found that JNA may be easier to manage and also allows some other things. I have this very simple program: The .cpp: [code] #include <stdio.h> #include "PruebasDeJNA.h" int suma(int a,int b) { return a+b; } …

Member Avatar for riahc3
0
154
Member Avatar for riahc3

Im switching too much between these "wrapper" frameworks so I think I should just concentrate on one and leave the others alone. Which should I go for in a servlet like enviroment? JNI, JNA or Swig? The only one I have "expirence" with is JNI. The rest Im playing around …

Member Avatar for jwenting
0
150
Member Avatar for riahc3

Hey Ive been given a JavaScript program (with embedded in a HTML) with several (from what Ive seen) free libraries. For example: excanvas.js jquery-1.6.4.min.js prototype.js colorpicker.js This JavaScript program (using those and other free libraries) to draw something like this: [img]http://img339.imageshack.us/img339/3997/dibujoajyu.jpg[/img] As you see the dots, beside having a X …

Member Avatar for riahc3
0
167
Member Avatar for riahc3

(So continues the JNI saga....) I currently have this (in C++, this being my native code in C++): (x is a jstring passed thru the header) [code] jdouble res; if (x=="*") { res=a*b; } else if (x=="+") { res=a+b; } else if (x=="-") { res=a-b; } else if (x=="/") { …

Member Avatar for riahc3
0
146
Member Avatar for riahc3

(More JNI woes...) When I try to comply this code [code] import java.io.IOException; import java.io.PrintWriter; import javax.servlet.ServletException; import javax.servlet.http.HttpServlet; import javax.servlet.http.HttpServletRequest; import javax.servlet.http.HttpServletResponse; /** * Servlet implementation class HacerOperacionesConJNI */ public class HacerOperacionesConJNI extends HttpServlet { private static final long serialVersionUID = 1L; private native double operaciones(double a,double b,String op); …

0
74
Member Avatar for riahc3

Hey Im currently working on a application server written in Java but to use information from a C++ program. The company seems to agree that rewriting thousands of lines of code would be time consuming and simply making libraries of key functions of the C++ program and then passing them …

Member Avatar for riahc3
0
2K
Member Avatar for riahc3

Hey Lets say I have 2 columns in table1 Id Value Id is obviously primary but I want Value to be unique.... I tried "NOT EXISTS" with a subquery but I cant really seem to get it to work. It would be something like [CODE]INSERT INTO table1(value) WHERE VALUES('3'); [/CODE] …

Member Avatar for rch1231
0
107
Member Avatar for riahc3

Hey Im writing a platform game "Mario style" for mobiles in Java but I seem kinda stuck. Any recommendations on some points I should do? Ill view them and post code Ive done related to them. To recap some of the things done: Map loads I can "move" (what actually …

Member Avatar for ztini
0
43
Member Avatar for riahc3

Hello I have a TreeView such as this 1 2 2a 2b 3 4 4a 5 And I want to when I press a button disable 2 and 4 (with all its child nodes). How can I do this? Thanks

Member Avatar for Luc001
0
107
Member Avatar for riahc3

Hello Ive been searching around Google and while I have found some answers, Im not sure how to implant them correctly. I wish to disable the Close (X) button on a Windows Form. I read about ControlBox (I think that the property) but I perfer to do it another way. …

Member Avatar for riahc3
0
117
Member Avatar for riahc3

Hello I have a form with a textfield simply named 'textfield' on one page and a table with a recordset on another page. It has a dynamic field/text with this code [code] SELECT codas FROM t WHERE user = colname [/code] and colname is [code] $_POST['textfield'] [/code] I manually replace …

Member Avatar for ko ko
0
92
Member Avatar for riahc3

Hello I seem to have a problem with a UPDATE that just does not want to work. Im simpled it down to the most simple UPDATE possible and it simply does not want to work. Here is the simple version: [CODE]public static string CambiarDatosUsuarios(string usuario,string contr,string pregunta,string respuesta,string correo) { …

Member Avatar for YMCMb
0
275
Member Avatar for riahc3

(I know this is the C++ section but since Im not sure where to put this...) I have a movie clip that with ActionScript I would like to do a gotoandStop on (for example) frame 3 of Layer 1 but I would like to keep playing Layer 2. How do …

Member Avatar for JasonHippy
0
105
Member Avatar for riahc3

Hey How can I send mail thru C#? It seems that it can be sent only thru Smtp (from Googling) but there has to be a way to do it thru POP3 as Windows Live Hotmail supports it and AFAIK VB.NET also supports it. If someone can give me a …

Member Avatar for riahc3
0
86
Member Avatar for riahc3

Hey This might sound like a dumb question but I simply dont know how to do it. Not only that but for some reason I do not know, my professor refuses to teach me how to use debugging and watch variables. He wants the "change, try, and test" method.... I …

Member Avatar for riahc3
0
903
Member Avatar for riahc3

Hello Im intrested in making a small online store mockup just to test a bit how it would work. Id like simply a "shopping cart" with a login system where I can add products to the shopping cart and "buy" them. Any guides, tutorials, tips, snippets, etc? Thank you :)

0
59
Member Avatar for riahc3

Hey Im having a hard trouble drawing in a Java window so if there is a plugin that shows the coordinates in a Java window when I hover my mouse over that spot it would make my coordinate easier.

Member Avatar for adams161
0
189
Member Avatar for riahc3

Hello I want to use a CustomValidator using ASP.NET/C# to make sure a textbox isnt empty (no spaces, no blanks, no nulls, etc) How do I do it? Thanks

Member Avatar for Freon22
0
834
Member Avatar for riahc3

Im wondering how do I correctly generate a random number in Java. Sometimes it gives me a negative, positive, very small range ,etc. Id like a simple formula that can give me some examples to control this better. Thank you very much.

Member Avatar for tong1
0
156
Member Avatar for riahc3

Hey Ive been hearing about Netbeans but Id like alternatives. Any out there? If the program is not written in Java (ironic I know) I would perfer it. Thanks

Member Avatar for peter_budo
0
136
Member Avatar for riahc3

Hey I want to generate 3 different types of arrays but 2 include a negative number and Im not really sure how to do that. The first type should generate 0 to 2 (which works): [CODE]num = Int(Rnd() * (2 - 0 + 1)) + 0[/CODE] Now I need one …

Member Avatar for riahc3
0
76
Member Avatar for riahc3

Hey Im doing a loop with somthing similar to this: [code=C] char stn[25]; do { printf ("Insert a number:\n"); gets(stn); }while (stn!="123"); if (str=="123") { printf ("Good value!"); } [/code] Now if I input 123, it enters the if that prints "Good value!" and the program ends naturally. Now if …

Member Avatar for jephthah
0
203
Member Avatar for riahc3

Hey I rather not use conio.h for cross compatibility so is there any way to make my own "conio.h" and just include it in my compilation. Thanks.

Member Avatar for jephthah
0
1K
Member Avatar for riahc3

Hey I currently have [CODE]Private Sub LabelClick(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Label14.Click, Label15.Click, Label16.Click, Label17.Click If sender.backcolor = Color.LightGray Then sender.backcolor = Color.Green ElseIf sender.backcolor = Color.Green Then sender.backcolor = Color.LightGray End If End Sub [/CODE] But there are ALOT of labels (about more than 300) …

Member Avatar for Oxiegen
0
1K

The End.