Chris Dancy

Ranch Hand
+ Follow
since Feb 14, 2006
Merit badge: grant badges
For More
Cows and Likes
Cows
Total received
0
In last 30 days
0
Total given
0
Likes
Total received
0
Received in last 30 days
0
Total given
0
Given in last 30 days
0
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by Chris Dancy

oh oh oh ... I miss understood how it worked. I assumed that's what it was doing but just wanted to ask to be sure. Thanks guys.
14 years ago
The idea is to have the timer task execute once every 12 hours ... specifically at 6am and 6pm. If I use a generic date object which is set to the current time ... it works. However when I use Calendar to create a new date object it runs constant non stop and I can't figure it out. Here is my code



The code is set to execute every 10 seconds right now for testing ... but even this code fires off every second. I'm not sure if it's just been a long day and I'm missing something ... but I can't figure it out. Any help would be great.
14 years ago
Something which looks like the following ...

<blankline>
<blankline>
hello world
<blankline>
<blankline>



for whatever reason ant's regex tasks will not remove those blank lines ... The program that produces this file to parse is sqlplus through the spool command ... that should not matter but just in case it does.
14 years ago
I'm using the spool command in sqlplus to retrieve some information and put it into a file. Than I want to parse that file for only valid lines not all the other stuff sqlplus stuffs in there. The big problem is the new lines that are littered everywhere and I can't seem to get rid of. The regex I'm using through ant is this ...


There must be something I'm missing ... any ideas?
14 years ago
Just wanted to know if anyone has any recommendations on using a web based javascript editor. There are many out there both free and non-free. I'm looking for something free and light-weight. The in-house web app I'm developing has a tab which brings up a javaDoc view of our Ant tasks and if you click them you get a javadoc-like page giving a description on the left hand side .... Just like the java api's. Anyway ... I want a little "click to edit" button which will bring up a light-weight editor to edit/get a closer look at the ant files themselves. Nothing too fancy just something to view and possibly edit the files. Any recommendations?
Yes I've read that using tables to layout your page is not a great idea. I will look into structuring the page using css. I was under the assumption that css was mainly to define text,color,width,height and that sort of thing ... but if you can position things on a page using css, than all the better. Thanks for the help guys and pointing me in the right direction.
I hear ya ... I was not looking for anything too flashy seeing as how this app is for in-house use only. If css is the way to go however than css it is .... so on that note ... any css advice/how-to's pertaining to laying out a web page?
I come from a strictly java/C++ background. With that said I've been asked to write a web application for my team at work. The thing I don't understand is how web pages are laid out and/or how to lay them out or structure them. From a java point of view I'm used to using GridBagLayout to put panels exactly where I want them and size them exactly how I need.... how is this done in html? I'm just looking for a basic over-view on how to do this ... any help would be great. Thanks.
I actually solved this problem trying to debug it ... here is how you do it .


I assumed ".value" just returned the string but it in fact actually returns the pointer(for lack of a better term) to the string. It returns the node itself to work on. Sweet deal.
14 years ago
I want to get the text of an attribute and perform a regex on it ... something like the following



And I want to use ruby's wonderful regex to remove the capitalized "AND" ... something like...



any ideas?
14 years ago
That's pretty sweet Marc. What I ended up doing was reading the entire file into an array and editing the lines there then re-writing the file .... however what I wanted to do was exactly what you just should me. I will have to play around with that snippet of code. Thanks for showing me.
14 years ago
The idea is to read a line from a file ... parse it and put it back in. The code I'm using now is not working ... it's deleting the entire file.


I assume I'm doing something wrong I just don't know what ... any ideas?
14 years ago
made a noob error ....

This will solve the problem...


<run message="hello world"
timer="12:23" />
14 years ago
So I'm very new to Ant ... I'm trying to do something like the following



Yet when I run it I get ....

Hello World
null
null
12:23

I assume the class is getting called everytime I use a setter method but is there a way around this .. meaning call multiple setter methods and than execute.
14 years ago
By no documented way I meant no way to say repaint( new Triangle()) or something to that effect. I did in fact set the clip as a Circle and simply drew bigger circles until the component was completely redrawn. Thanks for the tips however.
14 years ago