Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Search results for query: *

  1. PaulBeckett

    Excel: Change color of PART of a cell

    Thanks everyone. Especial thanks to Menthos and SkipVought. That code is fantastic, it does exactly what I want! It's really going to help me immensely. Cheers, Paul
  2. PaulBeckett

    Excel: Change color of PART of a cell

    Yes. I want to change the text colour of just part of a cell in an excel spreadsheet.
  3. PaulBeckett

    Excel: Change color of PART of a cell

    I want to use VB to change the color of a portion of the text in a cell. I have only been able to find methods that allow me to change the color of all the text in a cell. Example: Where a cell contains: ACATG[C]TCAGATAAAAAGCTGCAAGG[A]AAATAAAAAAGGAGTG[A]G[-]AGTTCA[G]TTTTC[C]TCA I want to be...
  4. PaulBeckett

    Socket Programming

    Trancemission, I don't think the %ENV is OS dependant, but am not entirely confident of this, does anyone else know? (it certainly works on UNIX). For debugging purposes have you tried printing out the contents of %ENV (just after accepting connection): foreach $key (keys %ENV) { print...
  5. PaulBeckett

    Socket Programming

    Glad to hear your script's coming along. You should be able to get the IP address (along with a load of other stuff) from the %ENV hash. I think you should be fine in terms of number of machines accessing your server, provided you fork a new process to handle each one, which the code I posted...
  6. PaulBeckett

    to cast a double

    Why not leave the variable alone, and just control it's output / display with printf for example. If you must change it perhaps you could do it with a re-ex. $new_double = ( $old_double =~ /^(\d+)(\.\d{0,2})/ ) ? $1 . $2 : $old_double; This code should take reduce it to a maximum of two...
  7. PaulBeckett

    Removing text between < > characters

    Sorry I misssed the closing curly bracket on my previous post (mistake with cut & paste). Post should have read: Why define $filename2 right at the beginning, you are just placing the exact same value into it on the first loop iteration. Why not just my localise $filename2 in the loop this...
  8. PaulBeckett

    Removing text between < > characters

    The generally accepted convention for input / output streams is for them to be upper-case, ie. TAGDELETINGSTREAM, this will help other people debugging your code. Why define $filename2 right at the beginning, you are just placing the exact same value into it on the first loop iteration. Why not...
  9. PaulBeckett

    PERL script to send e-mail in Win32

    I realise your probably not using MIME::Lite currently, but if you don't get any joy with your current tac, you could try this (also see previous post regarding mail object creation and CPAN documentation). $msg = MIME::Lite->new( From =>'me@myhost.com'...
  10. PaulBeckett

    PERL script to send e-mail in Win32

    Mike, Here is a code snippet, showing a sub-routine that composes and sends an e-mail containing a attachment. The sub-routine takes arguments for e-mail title, text etc. the required fields should be fairly obvious from the commenting at the top of the sub-routine. The MIME::Lite module is...
  11. PaulBeckett

    PERL script to send e-mail in Win32

    I've found MIME::Lite available on CPAN to be pritty reasonable. I believe it will also work on a windows system. http://search.cpan.org/doc/ERYQ/MIME-Lite-2.117/lib/MIME/Lite.pm Regards, Paul :-)
  12. PaulBeckett

    Socket Programming

    I think you'l find that the reason the above client & server just sit waiting, is because my client anticipates a response from the server after it has sent all it's data. Perl &quot;blocks&quot; (ie. sits waiting) untill it receives the data (my $return = <$sock>;). In code I've written the...
  13. PaulBeckett

    Socket Programming

    Here is a really simple Perl socket client. You should also consider wether your socket server is going to receive multiple clients at a time, if so you will probably need to set a listen value (kinda like call waiting), or &quot;fork&quot; of a child process to handle each socket connection...
  14. PaulBeckett

    Change color in JFileChooser

    Thanks for the response. Unfortunately I'm not having much success with setForeground and setBackground. Below is a code-snippet; as you can see I've tried to use the setForeground tag, it compiles and runs, but just has the standard grey color scheme (fgColor and bgColor are Color objects, that...
  15. PaulBeckett

    Change color in JFileChooser

    I have implemented a JFileChooser, but want to be able to customise the color scheme of the background and text color. Does anyone know how I can do this. Any info / usefull links will be greatly appreciated %-) Thanks Paul
  16. PaulBeckett

    Logitec keyboard not responding

    The PC has no special drivers to use the keyboard (which allows normal basic functionality, without it's multimedia support (start/stop cd player etc) which I'm not interested in anyway). Since my last posting I've managed to sucessfully connect the keyboard in the machines USB port rather than...
  17. PaulBeckett

    Logitec keyboard not responding

    I have a Compaq XP1000, running Tru64 UNIX v4.0F. I have attempted to conect a Logitec Cordless DeskTop Pro keyboard to it but the keyboard will not respond at the login screen. The keyboard works fine one a PC, and also at the blue chevron startup / shutdown on the UNIX box. I have also...

Part and Inventory Search

Back
Top