Search results

  1. D

    sending files over sockets in java

    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...
  2. D

    java: array within an array?

    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...
  3. D

    Apache ANT - Spawning a new window

    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?
  4. D

    java: reading files from inside a jar file

    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...
  5. D

    java RMI: getting the client address

    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...
  6. D

    java RMI: Sending a file

    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?
  7. D

    configuring windows (xp) to use java, javac, rmic etc

    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...
  8. D

    simple javascript question :)

    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]" }...
  9. D

    connecting to a mysql database in java

    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...
  10. D

    PHP (gdlib): text in images?

    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)
  11. D

    splitting an image in PHP?

    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...
  12. D

    data storage in VB6

    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...
  13. D

    PHP: LIKE searching

    edit: worked it out, my bad. can someone just delete this?
  14. D

    "Got error 127 from table handler"

    PHP/MySQL is throwing this at me when trying to add form data into a database table. any idea what it means?
  15. D

    Java: reading and writing to/from the System clipboard

    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...
  16. D

    PHP: splitting an input seperated by tabs

    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])...
  17. D

    hiding and showing divs or spans - html

    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?
  18. D

    First attempt at non-table design (css?)

    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...
  19. D

    Using PHP to mimic a file to download

    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...
  20. D

    PHP: handling uploads

    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...
  21. D

    CSS/HTML: getting links to stay the same colour

    heres the relevant part of the CSS i'm using: a:link { color: #FE15A7; font-family:Arial; } a:visited { color: # FE15A7; font-family:Arial; } a:active { color: # FE15A7; font-family:Arial; } BODY { color: #FE15A7; background-color: #000000...
  22. D

    PHP/MYSQL sorting algorythms

    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...
Back
Top