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 TouchToneTommy 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. colorplane

    Bring back deleted files

    Just throwing this out there... installing a program to recover files is a very bad idea. The installation is likely to overwrite the files, so your best option is to download a portable recovery program onto a Flash. I highly recommend Recuva. It is very simple and easy to use and also has a...
  2. colorplane

    Vista reboots before login screen after installing Ubuntu

    Thank you for the response, but it's not a boot problem - I already got all those straightened out and Vista was booting fine, just not loading properly. Today I reinstalled Vista, first without reformatting the drive (the installer places the old files in a Windows.old directory) and after the...
  3. colorplane

    Vista reboots before login screen after installing Ubuntu

    I had Ubuntu 8.1 and Vista working well together today, but after a few reboots I tried Vista again and it booted past the loading animation to a black screen with a movable cursor. Now a few seconds after the cursor appears (and occasionally before it appears), the system reboots before...
  4. colorplane

    Any Alternative to Frames?

    You are more likely looking for Server Side Includes (SSI). You will get more functionality out of using a server side language, but this is a lot more work. The server loads the file you specify and plugs it directly into your html file in place of the include tag. With SSI, you can...
  5. colorplane

    left outer join query optimisation

    After reading a bit more carefully, I noticed that you already have an index on your table. That may be useful in some queries, but it isn't used in this one. In your EXPLAIN you should see your new indexes added as suggested in my previous post under possible_keys. If you add separate...
  6. colorplane

    left outer join query optimisation

    Thank you for supplying the EXPLAIN. Your query is probably fine, but your tables are not indexed properly, so any time you search MySQL has to do a full table scan which is what takes so much time. You should add indexes to your quote_vars and quote_desc tables to improve the performance. If...
  7. colorplane

    is this Javascript ?

    Nope that's not Javascript, nor is Java the same as Javascript. I don't think Java is what you're looking for anyways. It's not trivial to program something like that, and you're not going to find anyone to write code for you in the Programming forums. If you have a good reason for needing an...
  8. colorplane

    A simple question for you?

    You can replace the span tag with an img tag, for example: <img src="path/to/your/image.jpg" alt="Alternative text describing this image" class="popup" onClick=javascript:window.open("testwindow3.htm","blank","toolbar=no,width=180,height=250,top=0,left=0")>
  9. colorplane

    Need to insert lines in a file

    $content =~ s/SET/SET\nNOTIFICATION/g ; Note the previously missing ~ in =~
  10. colorplane

    Help needed with matching

    Seems like it's time for hunches. Are you sure that in your database all of the song codes are 'ABD001' with no whitespace and not 'ABD001\n' or something like that? To double-check, does it match if you force $row[0] = 'ABD003'; after you enter the while loop now that you have fixed the...
  11. colorplane

    Need to insert lines in a file

    fopen, fwrite, and fclose are all C functions. There may be a way to enable them in perl, and in fact Perl just maps its own functions back to the C calls. However, they need to be changed to the appropriate perl functions. If you change fopen( FH, "$_" ) to open( FH, "$_" ) fwrite( FH...
  12. colorplane

    OnSubmit - to send an email before going to the next page.

    You can use Javascript to make a secondary HTTP request before submitting, but you will need a server-side script (Perl, PHP, ASP, etc) to send the email. There are a number of ways to make that request in Javascript - you may want to look into an AJAX call or setting the src property of a...
  13. colorplane

    Need to insert lines in a file

    That code should work in most cases but it's a bit dangerous. If you have SET anywhere else in the text it will also be replaced with the NOTIFICATION text. This code reads the file line-by-line and directs it to a new file. If you want to write to the same file, use spookie's code with the...
  14. colorplane

    Help needed with matching

    Yep, prex's code will definitely do what you want. There is one last thing that I noticed in your original code. Also, you don't want to have quotes inside your regular expressions unless you are actually looking for quote characters. Perl uses a bunch of different string delimiters unlike...
  15. colorplane

    Can't locate loadable object for module in @INC

    Does your PGPLOT.pm declare which package it is? You need to have this in the module code: package PGPLOT;
  16. colorplane

    automated script to generate data

    That's good, I'm glad it worked out for you!
  17. colorplane

    automated script to generate data

    If you only want to change three of the items exactly as you described, this should do the trick. I am not sure what your 4 interchangeable values are for the second field, but the first and fourth fields are incremented. Everything else remains static. Since you are unfamiliar with perl I...
  18. colorplane

    Random selections

    Sure, in your select statement you can add ORDER BY RAND() LIMIT 10 to the end where 10 is your certain number.
  19. colorplane

    Calculations of a Circle

    As long as you aren't concerned with mass, you don't need to go to the length of calculating a true centroid or center of gravity, which would be good news because that uses complicated calculus. Center point If mass is not an issue, the center point in any number of dimensions should simply be...
  20. colorplane

    Get First Day of Month

    theFirst = new Date(); theFirst.setDate(1); setDate sets the day of the month for the Date object (from 1 to 31). Then you can do whatever you want with theFirst, like get the day of the week.

Part and Inventory Search

Back
Top