I'm trying to send a file between a client and server with sockets, the only way i've found to do it so far is by opening up a FileInputStream, reading it byte at a time and passing it over a socket and having it written out by a FileOutputStream byte at a time. this looks like it works, text...
i'm trying to store a 3x3 grid using a nested array:
| 0 | 1 | 2
-------------
0 | x | x | x
-------------
1 | x | x | x
-------------
2 | x | x | x
i tried doing
int square [3][3];
but having no joy, seems i'm doing a 2d array which works nothing like i had intended.
any...
right, i can get ANT to spawn a new window when it runs, but it never displays the window contents, apparantly its possible to force it to show the windows that it spawns as well?
i'm trying to read in and write to some text files from within a data folder in a jar file.
using the this.getClass().getResource("./data/file1.txt");
returns an url, but i cant figure out how to link that from the IFileWriter / FileReader classes, or how to pass a string into them that...
i'm trying to figure out how to get the rmi server to tell me the host address of the client thats using it, for reporting & security purposes.
the java.rmi.server.RemoteServer class has a method called .getClientHost()
but all my code is in an implimentation class which uses a custom...
i'm trying to get rmi to send a file across the network, just using the rmi method call. though i still havent found a way i can store the file as a single object and pass it as a variable.
files wont be particularly big, 100k max
does anyone know how to do it?
how do i go about getting xp to find the java executables (java javac, rmic, rmiregistry, jar) when i'm using the command line?
i was told i had to change the system path variable, added the java directory to it and no joy.
a friend stumbled across a guide that worked but we cant find it...
how do i get javascript to tell me the value of a radio button in a form?
the form is called dates:
<script language="javascript">
function test(){
alert(document.dates.start_day.value); //returns "undefined"
alert(document.dates.start_day); //returns "[object]"
}...
i'm trying to connect to a remote mysql database (hosted on my website) through a standalone java app, havent found any tutorials on it yet but i've found some sample codes that i havent been able to get to work:
Connection connection = null;
try {
// Load the JDBC driver...
is there any way to get better text effects in php that this?
i've tried imagettftext() but i'm getting undefined function errors so i obviously dont have the right libraries on the server (i cant change that as just a bog standard hosting account)
i've seen this done so i know its possible. does anyone know how i'd go about splitting an image into sections (known as dicing i think) and then storing it as individual images on a database? (i know its 2 entirely seperate things, but i'd rather try and kill 2 birds with 1 stone while i'm...
hi,
I'm looking to write an app to make my workload easier, basically storing information on clients, auto generating paperwork etc but the only kind of databasing i've on in VB6 is using text files.
obviously i'd need something a bit more powerful for business use, i've got experience...
I've been trying to get this to work all morning for a project i'm working on (a remake of the windows calculator, so i can try and learn java)
there seems to be 2 ways to do it:
Toolkit.getSystemClipboard();
and
Clipboard.getContents();
but i'm having major problems with both methods...
I'm trying to read in a file which is in tab seperated format using php:
i'm still at the testing stage so the code doesnt do anything other than read and print
$line = file($file);
for($i=0;$i<count($line);$i++){
print("-");
$split = explode("\<TABCHAR>", $line[$i])...
i've seen this done before but cant find anything on doing it, what i'm wanting to do is have a hidden div that appears when a link is clicked, so i'd assume javascript would need to be used. does anyone know how to do this?
first off i'm more of a coder than a designer.
I know tables are deemed bad now and in some ways i can see why, so i'm trying to design a new section of my site that doesnt use tables (ok so i cheated and used one for the basic layout) and using <span> and <div> and css.
the sites at...
what i'm trying to do is get users to download an mp3 file via a php script to make sure its not being hotlinked etc.
i tried just passing the file data through with readfile() but it just prints a the data as html.
i take it i'd need to set a header for the page to make it think its an...
okay, i've started using non-global variables for everything i.e. $_POST, $_COOKIE, $_GET and thats all be working fine.
i'm trying to accept a file as part of a form instead of just text, though $_POST[filename] is coming through as blank. should it be something else or am i just being dense...
I'm trying to figure out the best way to search through a table in a mysql database with php.
the script is taking in a search string, containing an unknown number of words, and they are only being compared to 1 (or possibly 2 fields if its not much harder to do).
i was going to split the...