356 Posted Topics

Member Avatar for riahc3

Hey What is the easiest way to read and write XML file to my C# program? Im looking for Localiziation Configuration I imagine that the only difference is that I have to load the localization as soon as I load the program.... Thanks! :)

Member Avatar for skatamatic
0
744
Member Avatar for riahc3

Hello Im making a application which needs some administrator priviliges. The thing is that this besides 7 will also run on XP. Ive been told that changing in the app.manifest the requestedExecutionLevel is one step as this basically will require a admin <requestedPrivileges xmlns="urn:schemas-microsoft-com:asm.v3"> <!-- UAC Manifest Options If you …

Member Avatar for riahc3
0
131
Member Avatar for Rutu3

1st, spamming is not allowed here and one of the reasons you have been ignored by many is that reason. 2nd, DETAILS. "website as a project so how to create database ,and connect asp page to C# code" is not a explaination of what you are trying to do. Do …

Member Avatar for Zorrro
2
359
Member Avatar for riahc3

Hello Im doing this code for every form Ive doing (you have have seen it so I wont explain it) protected override void WndProc(ref Message m) { const int WM_MOVE = 0x0003; switch (m.Msg) { case WM_MOVE: return; default: base.WndProc(ref m); break; } } How can I do this so …

Member Avatar for riahc3
0
90
Member Avatar for Panathinaikos22
Member Avatar for riahc3

Hey Im trying to make the typical options box where you cant click the parent (so to speak) box, you can only access the options window unti you close it. For a example of what I mean, in IE, click on Tools and Internet Options. That dialog box is the …

Member Avatar for skatamatic
0
73
Member Avatar for riahc3

Hey Im thinking of WPF but standard Windows Forms are more used so more libraries are avaliable. Would you switch to WPF forms or still use Windows Forms? Thanks!

Member Avatar for Sahil89
0
115
Member Avatar for riahc3

Hey That topic title was difficult to write. Lets say Provider A has the domain name of example.com and hosts a webpage with links such as example.com/aboutus, example.com/wherearewe, etc. Thats all great. But I want Provider B to host a online store with links such as example.com/store, example.com/storename/shirts, example.com/storename/pants, etc …

Member Avatar for eltonpiko
0
145
Member Avatar for riahc3

I have this: [code] DELIMITER $$ CREATE DEFINER=`root`@`localhost` PROCEDURE `linkacorte`(vid_pedido int(11), vid_producto int(11),vtiempo varchar(50),vid_pastelero int(11),vcorte varchar(200),vnum int(2)) begin declare campo varchar(20); DECLARE EXIT HANDLER FOR SQLSTATE '42000' SELECT 'Ha introducido un campo incorrecto. Solo se permite 1,2 o 3'; if vnum=1 then set campo='programa_corte_1'; elseif vnum=2 then set campo='programa_corte_2'; elseif …

Member Avatar for smantscheff
0
184
Member Avatar for riahc3

Hey Im trying to make a social network (local based, not anything to take on other social networks) but Im not going to reinvent the wheel and make everything from scratch. Thats why Im asking if there is any CMS/library/etc to make my life easier. Im going to use C#/ASP.NET …

Member Avatar for riahc3
0
154
Member Avatar for riahc3

Hey Ive been literally killing myself looking up guides but most are way outdated and/or complicated. I tried a few simply ones but they simply appear to be out of date. Can someone point me on a easy way to set it up in Windows? Ive been trying to use …

Member Avatar for riahc3
0
157
Member Avatar for riahc3

Hey Im trying to start from scratch a MySQL installation in Linux but for some reason through apt-get and the software center, when I remove it, my users (and privileges) still exist. How can I remove everything releated to MySQL and start from 0? Thank you

Member Avatar for riahc3
0
429
Member Avatar for riahc3

Hey Im wondering if various users can a web services at the same time and execute the same code to generate something. Does it do it at the same time on difference threads/objects? Is it FIFO (First in, first out)? Questions like those. Thank you.

Member Avatar for sandrajustin
0
183
Member Avatar for riahc3

Hello I feel stupid for actually asking this but how do I ping a IP address in Java? I have this code [code] try { // Google.com if (InetAddress.getByAddress("173.194.35.133".getBytes()).isReachable(1000)==true) { //Boolean variable named network network=true; //Ping works } else { network=false; //Ping doesnt work } } catch (UnknownHostException e3) { …

Member Avatar for riahc3
0
983
Member Avatar for riahc3

Hey Since I couldnt get my web service to really support multiple users, Ive thought of simply implementing a FIFO kinda of queue like this: (The code is made up on the spot right now. Therefore, ; may be missing, some variable declared wrong, etc. Ignore that. Just concentrate on …

Member Avatar for riahc3
0
123
Member Avatar for riahc3

Hey I have this code: This is my main part of my program: [code=Java] import org.apache.commons.pool.ObjectPool; import org.apache.commons.pool.impl.GenericObjectPool; import Fecha; public class someclass { private GenericObjectPool<Fecha> fechapool; public boolean somefunction() { System.out.println("Im going to set set actives"); fechapool.setMaxActive(5); System.out.println("set actives sets"); } { [/code] It doest get to the "set …

Member Avatar for riahc3
0
399
Member Avatar for riahc3

Hey Is there a way I can print out the line Im currently on Example: [code=Java] public class something { public void somefunction() { System.out.println("I am line number + " /*the number 6 would appear here*/); System.out.println("I am line number + " /*the number 7 would appear here*/); System.out.println("I am …

Member Avatar for StephNicolaou
0
124
Member Avatar for riahc3

Hey I wanted to make a thread for not only myself but for others to give a "thank you" to anyone who has helped them. In my case, without some suggestions here, I would have been stuck for days on a single thing and not be able to advance further. …

Member Avatar for stultuske
2
85
Member Avatar for riahc3

Hey I want to "reset" a array....What would be the correct way to do it? Code A: [code] for (int i=0;i<=somearray.length;i++) { somearray[i]=0; } [/code] or Code B: [code] somearray=null; [/code] Thank you

Member Avatar for riahc3
0
177
Member Avatar for riahc3

Hey All of a suddent my Apache Tomcat server has broken. Very strange but I try going to [url]http://localhost:8080[/url] and I get a HTTP 400 error. How do I fix this as it is very strange that this suddenly appears. Using MyEclipse. Note, I believe I installed NetBeans which installed …

Member Avatar for jbennet
0
174
Member Avatar for riahc3

What is the best way to start/stop/restart Apache Tomcat using Java code? If it cant be platform dependent (or complicated or I have to do a "IF" for each), then only for Windows. Thanks

Member Avatar for RicardoE
0
253
Member Avatar for riahc3

Hey I want to open the Apache Tomcat server that is installed in MyEclipse but without having to open MyEclipse; as a standalone application of sorts. How do I do this? Thank you

0
84
Member Avatar for riahc3

Hey I am having problems making a exact copy of a file. It seems that it changes the headers of the file. I tried using the Apache fileutils copyfile method but it seems to change the header completely. The rest of the file looks pretty much OK. I think it …

Member Avatar for riahc3
0
238
Member Avatar for riahc3

Hey I have a FTP server with this [url]ftp://192.168.100.2/folder/[/url] And I have something like anotherfolder: afolderinsidethatone: file1.bin file2.bin file.txt I want to pass all of that to the ftp server so it takes this form: [url]ftp://192.168.100.2/folder/anotherfolder/[/url] [url]ftp://192.168.100.2/folder/anotherfolder/afolderinsidethatone/[/url] [url]ftp://192.168.100.2/folder/anotherfolder/afolderinsidethatone/file1.bin[/url] [url]ftp://192.168.100.2/folder/anotherfolder/afolderinsidethatone/file2.bin[/url] [url]ftp://192.168.100.2/folder/anotherfolder/file.txt[/url] I have this code: [code] public void subidaftp(String ip, String …

Member Avatar for riahc3
0
217
Member Avatar for riahc3

Hey I have this code [code] FileUtils.forceDelete(new File(nombreprograma+".zip"); FileUtils.forceDelete(new File(nombreprograma+"/"+nombrebmp+".bmp")); [/code] Deleting the zip inside of the root works perfect but for some reason the BMP inside of a folder, doesnt. The error it gives is that it cannot delete the file, nothing else. Any tips?

Member Avatar for dantinkakkar
0
282
Member Avatar for riahc3

Hey I want to get the date and time with miliseconds in a format such as: 2012-02-09 12:41:52.982 or 2012-02-09 16:41:52.129 How can I do this in Java? (If I can get a localized version of "Tuesday" as "Tues" as well even better but if not, I dont mind. Something …

Member Avatar for riahc3
0
439
Member Avatar for riahc3

Hey I want to use something like Dreamweaver to design a HTML page. (Excluding all the links to pictures and such) how do I get Java to get all that and convert it to a well designed PDF document like I was seeing in Dreamweaver? Thanks

Member Avatar for peter_budo
0
318
Member Avatar for riahc3

Hey I have a folder in my current working path and I want to make a copy of a file inside it to the the current working path. Its kind of a dumb question, I know, but how do it do it? Thank you.

Member Avatar for riahc3
0
210
Member Avatar for riahc3

Hey I have this following code: [code] try { // Connection props Properties props = new Properties(); props.setProperty("mail.smtp.host", host); props.setProperty("mail.smtp.starttls.enable", "true"); props.setProperty("mail.smtp.port", "25"); props.setProperty("mail.smtp.user", usuario); props.setProperty("mail.smtp.auth", "true"); // Prepare the session Session session = Session.getDefaultInstance(props); // Constuct the message MimeMessage message = new MimeMessage(session); /*Test*/ message.setHeader("Content-Type", "multipart/mixed"); message.setFrom(new InternetAddress(CorreoOrigen)); message.addRecipient(Message.RecipientType.TO,new …

Member Avatar for riahc3
0
208
Member Avatar for riahc3

Hey Im looking to store date and time with miliseconds in TIMESTAMP column but it seems to be a new feature so Im not sure exactly how to store it. current_timestamp() doesnt allow me to do this. Im willing to change the column to some other datatype as the database …

Member Avatar for pritaeas
0
28
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 javaAddict
Member Avatar for javaAddict
0
270
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
149
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
90
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
119
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

The End.