User Profile

Collapse

Profile Sidebar

Collapse
keydrive
keydrive
Last Activity: Oct 25 '17, 07:11 PM
Joined: Oct 10 '07
Location: Canada
  •  
  • Time
  • Show
  • Source
Clear All
new posts

  • keydrive
    replied to jsp string syntax
    in Java
    Solution:

    Code:
    query += "+AND+NEAR{" + Start + "," + End + "}:MODIFIED";
    See more | Go to post

    Leave a comment:


  • keydrive
    replied to jsp string syntax
    in Java
    I understand how to return the value of a variable in JSP. I'm just having problems escaping the double quotes required on the query += line.

    Code:
    <%=Start%>
    See more | Go to post

    Leave a comment:


  • keydrive
    started a topic jsp string syntax
    in Java

    jsp string syntax

    How to escape double quotes within a string to include the value of a variable from a JSP?

    Two variables, "start" and "end" are dates from a calendar function. I need the variable "query" to update with the start and end variables but can't get it to work.

    Code:
    String 	Start = request.getParameter("start");
    String 	End   = request.getParameter("end");
    ...
    See more | Go to post

  • keydrive
    replied to automated putty script
    Yes, I'm familar with switching to another user with su. What I'm looking for is to include this in my automated launch of an xterm window through putty.exe on the command line.
    It would be great if putty had an option like this;

    Code:
    start putty.exe -load "hostname" -uid XXXX -pw XXXXX -command "su - second_user"
    Thanks,
    See more | Go to post

    Leave a comment:


  • keydrive
    started a topic automated putty script

    automated putty script

    Hi,

    I created a simple automated putty script in Windows to launch and access my Linux boxes. The options are simple to pass; host, uid and password. Is there a way switch to another user from the putty.exe command line?

    Code:
    cd C:\PuTTY
    start putty.exe -load "hostname" -uid XXXX -pw XXXXX
    I would rather configure putty and use putty.exe then use pline.exe and create all the...
    See more | Go to post

  • "cleaner way" meaning the least amount of code.

    Can the structure within a tar be changed?

    directory testbed contains files and subfolders. The directory testbed name needs to be tared with a new name testdone rather than testbed. i.e.

    testbed/testing/tester/
    to
    testdone/testing/tester/

    I don't see an option in tar man or online to change or modify the path inwhich...
    See more | Go to post

    Leave a comment:


  • keydrive
    started a topic Create Tar file with a new prefix directory

    Create Tar file with a new prefix directory

    Hi,

    What is the cleanest way to create a tar with a prefix directory in it?

    cd /export/home/testbed
    tar -cvzf test.tgz *

    I need the tar to include "jump"/testbed/<files> in it not just testbed/<files> in it.

    There are sed commands out there but I am in search of a cleaner way.

    Thanks
    See more | Go to post

  • keydrive
    started a topic diff utility exclude option

    diff utility exclude option

    I need to exclude a line when using UNIX diff utility. I have 4 files, the first two f1 and f2 work with the command however does not on f3 and f4.

    Suggestions?

    This works
    Code:
    diff -I '^<committed.*' f1 f2
    f1
    <committed:123> </committed>
    <committed_docu ments>4</committed_docum ents>

    f2
    <committed:345> </committed>
    <committed_docu ments>46</committed_docum ents>...
    See more | Go to post

  • keydrive
    started a topic JavaScript validation

    JavaScript validation

    Eclipse is erroring on the onkeypress line of the code below with;

    Multiple annotations found at this line:
    - Tag (input) should be an empty-element tag.
    - Cannot return from outside a function or method.
    - Invalid text string ()

    Now, I have use this in the past but now with Eclipse 10 it is erroring.

    Any suggestions would be great.
    Thanks


    Code:
    
    
    ...
    See more | Go to post

  • Thanks for your help Dr. Rabbit

    Appreciate the assistance!
    See more | Go to post

    Leave a comment:


  • The first line is now being captured as the first hit in the test-text area of QuickREx. The other text below is also matching as secondary.(in yellow) if you are farmilar with QuickREx. I tried to include a line brake so that it would only highlight the first instance, being the title but it doesn't seem to work.

    Is there an option so that only the first instance is captured? Like, read all information until end of line and nothing...
    See more | Go to post

    Leave a comment:


  • JRegex is fine.

    I need to capture the title beit on the first line, second or third after a single return char or multiple. So if there are three blank lines and then text that is to be assumed the title and all the text on that line is required. In this example it would be Banff Springs.

    Thanks for you help
    See more | Go to post

    Leave a comment:


  • Hi,

    Here is an example document. I only want the first string in the document captured - nothing else. Note the First string could be more than two words in mix case. The end of line does not work for me

    Code:
    %20
    Banff Springs
    Banff Sprints Hotel
    %20
    Mountain Biking 34.78
    %20
    Table # 55  holiday forward
    $1,899,999.00
    
    55555
    Togo Hot Specials
    See more | Go to post

    Leave a comment:


  • Regular expression for capturing the first alpha string in a document

    Hi,

    I need a regular expression for capturing the first alpha string in a document not necessarily on the first line

    match first instance

    Here is a few tried permutations

    Code:
    [:alpha:]*
    
    [:alpha:]*.[:alpha:]*
    
    [A-Z][a-z]*.[A-Z][a-z]*\r
    See more | Go to post

  • keydrive
    replied to How to set an href to a background div
    Thanks Ramanan for the link.

    I found what I was looking for on www3.

    cheers,

    Code:
    <img src ="planets.gif" width="145" height="126" alt="Planets" usemap ="#planetmap" />
    
    <map name="planetmap">
      <area shape="rect" coords="0,0,82,126" href="sun.htm" alt="Sun" />
    ...
    See more | Go to post

    Leave a comment:


  • keydrive
    started a topic How to set an href to a background div

    How to set an href to a background div

    Hi,

    I would like to assign a hyperlink to this image within CSS. The reason I am not placing the image on the HTML page directly is that I have a flash image that I would prefer to show but in the case where a user doesn't have flash I need this image to appear.

    Suggestions?

    Code:
    #bg { 
    		background-image: url('images/banner-1.jpg');
    		height: 50px; 
    		width: 100px;
    		margin-left:
    ...
    See more | Go to post

  • I'd like to manage the mail on my own domain but thanks for the information.
    See more | Go to post

    Leave a comment:


  • I am looking for a full form with validation.

    Thanks for your help
    See more | Go to post

    Leave a comment:


  • keydrive
    started a topic Looking for easy to implement contact us form
    in PHP

    Looking for easy to implement contact us form

    Does anyone have a working contact mail form in php with form validation? I recently tried one on w3schools but it doesn't see to work.

    thanks
    See more | Go to post

  • keydrive
    replied to iText addField
    in Java
    Yes, Java is being use to generate the pdf with the iText classes.
    I did not purchase the developer book and there is minimal info on line.
    See more | Go to post

    Leave a comment:

No activity results to display
Show More
Working...