- Upvotes Received
- 4
- Posts with Upvotes
- 4
- Upvoting Members
- 4
- Downvotes Received
- 1
- Posts with Downvotes
- 1
- Downvoting Members
- 1
37 Posted Topics
1. Open file (if applicable) 2. convert to byte array 3. convert ip/host name to a InetAddress variable 4. create a packet (DatagramPacket for UDP for example) 5. create socet 6. send byte array 7. close socket. That's how you send a byte array, and it dceonst matter what the …
So the way i do it is using eval(str) function. It executes the 'str' as a command. So create strings that are similar to this: for(int i=0 ; i < someInteger; i++){ sum += eval("document.getElementById(" + id + ").value"); } Hope this code snippet helps. Regards, Matthew
Two connections to two different databases or the same data base? If you are accessing the database, then are you accessing the same table? -with JDBC anyway, once you create the connection, it will keep connected. You just want to create the connection ONCE to that database, and push commands/queries …
Hello, I have a question regarding implementations of uploading a file from a browser to a server. I have currently two pages, page (1) is used to select the file. Using a form-submit section, the form is passed to page(2). Page (2) now gets a javabean, passing `request` to it. …
You can either do one of to thing.. [1] If you know what the vector sizes are, create a table within mysql for the vector vector where the mysql table is the same size. [2] create a table with a field that has a data type "BLOB". Save the vector …
I don't know if this will work. But if you elevate the program like this: system ("sudo bash-something" + somestring); //results in the command 'sudo bash -something:somestring ' being called That should give you should give you sudo ( think ). system() allows you to run a command on the …
Hello All, I have been developing a website that has a secure area. At the beginning of the secure page I wrote a scriptlet to check whether the user is logged in. I want to take this scriplet and put it in a javabean. Could any of you guys suggest …
[QUOTE=Joshua Kidd;1524243]I Could not answer that, as I do not play Pokemon. Do you like cats?[/QUOTE] I had a cat, but personally, i find that people have animals because they can't find "love" within their own species.. What does "on" spell backwards?
Hello, I've been doing some JSP, and I've got a: "The value for the useBean class attribute bns.TestBean is invalid" error, could you help me out? tmp.jsp is : [code] <jsp:useBean id="tb" class="bns.testBean" scope="page" /> <jsp:setProperty name="tb" property="*" /> <html> <body> </body> </html> [/code] Where TestBean.java is: [code=java] package bns; …
[QUOTE=wingmark;1498909]Hi All; I recently bought some new parts for my computer and am not sure if it will work as easily as i hope it will, i was running a Foxconn mobo, a Radeon x850 GPU, a AMD Atahlon processor and 1gb of ram on a 150gb HDD with XP …
[QUOTE=JamieLynnSEO;1519226]Lol sucks for most young people who aren't adequate. You've gotta market yourself so that companies believe that they NEED you. And then prove to them that they DO. I'm 22. College dropout. I have two jobs, one part time "just for fun" and one programming job, where I'm an …
[I]UDP sends and receives datagrams for applications. Unlike TCP, UDP is unreliable. There is no guarentee that the datagram will ever reach the destination. This in itself has advantages, one being that UDP can be considerably faster then TCP. TCP, Transmission Control Protocol is a layer 4 service that is …
It's not a computer error, but I saw it on the side of a bus.. ..made me laugh [ATTACH]20346[/ATTACH]
It depends on the platform, its usually on either a linux of windows box. you can SSH into a linux box, I use putty. or you can remote desktop into a windows box.. you need to know the address, the username, password. You need to make sure that the ports …
[url]http://rabbit.eng.miami.edu/info/functions/time.html#localtime[/url] : [QUOTE] tm * localtime(time_t * tim) tm * gmtime(time_t * tim) tm * localtime_r(time_t * tim, tm * output) tm * gmtime_r(time_t * tim, tm * output) struct tm * localtime(time_t * tim) in C struct tm * gmtime(time_t * tim) in C struct tm * localtime_r(time_t * …
[QUOTE=Transcendent;1489749]anybody know some good html dvd training?[/QUOTE] You are best off just messing around with it. There's some good content on youtube. Apart from that.. i think you'll have a hard time coming by something.
Try using # instead of . [CODE=html] #bulb_body { width : 670px; background-image : url(../img/body_bg.jpg); margin-right : auto; margin-left : auto; background-repeat : repeat-y; } #bulb_body #left_column { width: 400px; float: left; } #bulb_body #right_column { width: 270px; float: right; } [/CODE]
[QUOTE=shama_kandy;1481502]What will be the effect on web browsing if the browsers start compiling the HTML language instead of interpreting it?[/QUOTE] Are you asking, "why don't we compile html files, instead of generating a (html) page on the fly?"?
First of all, you don't need " /> " at the end of your image, area code so: [code] <area shape="ploy" coords="(457,84),(474,63),(549,63),(566,84)," href="pages/child.htm" alt="Child Photos"> <img src="assets/thumb9.jpg" alt="scenic3"> [/code] ..should work fine. Second, if "assets" is a folder in the same directory as your .html file, you should put [code]"./assets/thumb9.jpg"[/code] …
You can aways (hyper)link the mp3 file on the html page, so it opens a new window. So: [code] <a href="./some-sort-of-mp3-file.mp3">Some text as a link</a>. [/code] Then browser will take care of the rest. I can't think of another way. Sorry :) -cross platform is always a pain. You're probably …
[QUOTE=b56r1;1489416]jnawrocki, I'm using GCC complier in LINUX operating sys. I know the explanation what u gave,but why its not updating with latest values for global variables ..[/QUOTE] I've just compiled all the examples you gave, and the outputs are [I]10 20 30[/I]. You'd expect the output to be [I]10 20 …
Hm, afaik there is no easy way of doing this. I once was messing around with some code, and it stopped a user inputting a wrong character type (so the user couldn't type a char into an int or vice versa). That interacted with the TTY layer (on a linux …
tag, as in barcode? or as in a small piece of "paper" with a few characters?
If you typed the command [code]/images/2173453.jpg[/code] it will look at "/" which is root, and look for a folder images in root, and then look for a image 2173453.jpg. I'm assuming, and so is kekkaishi, that you mean "[b].[/b]/" The "[b] .[/b]/ " denotes "in this directory". So [code]./images/2173453.jpg[/code] will …
Hello, I've made a program that uses an array of objects, it's work well so far, upto the point that I try to increase the size of an array. So, in main the relevant code loops like this: [CODE]int main(){ /* classes used */ phoneBook *p; .... numLines = 0; …
OpenAL is to audio, what OpenGL is to graphics. Doesn't DX handle audio as well?
Sorry, found the problem, sorry for wasting time :)
Hello, I am writing a section of c++. Here is the section that does not work: [code=c] int a, escape; double temp1,temp2; escape = 0; a = 0; while(escape < 2){ Complex c[a]; cout << "Please input a complex number, the real part follwed by the imaginary part.\n"; if(!(cin >> …
Hello, Can I have a parallelised section of code, that uses x threads, where a function is called to manipulate an array. Each thread's function tries to manipulate the same array at the same time (not in the same location in the array). [CODE][for example, take a 2x2 matrix (x(and …
Hi, I know that there are a lot of webpages devoted in telling me how the OpenGL mouse function works, but I still don't understand. What I need to know, when my: [CODE] void processMouse( int button, int state, int x, int y){ ... } [/CODE] Returns x,y. What does …
With Direct2D you are limited to Windows boxes. With OpenGL and Java you are limited to what OSes have OpenGL and Java support, but you will need to rewrite the OpenGL code depending on the platform. Browsers such as FireFox support WebGL, which is based on OpenGL ES 2.0, so …
Hello, I am writing a OpenGL program, but I can't get the mouse to do what I want. The code looks like this [code] main() [INDENT]init OpenGL stuff display function1[/INDENT] Function1 [INDENT]Start graphCalculation[/INDENT] graphCalculation [INDENT]plot graph in OpenGL[/INDENT] [/code] What I've tried to do, is to add a "zoom" function, …
Hello, I am using strncpy to copy the first line of a multi-line buffer. I have successfully found the amount of characters to the end of the first line, and I have performed a strncpy to copy the first line of the buffer to a char *. However, some of …
The End.