finding lowest number in a sequence

Lets say I have four variables each hoding a number 1 to 6. Now these number are randomly generated, so there may be a few numbers repeated.i was wondering how i could automatically find the variable with the lowet value so i could exclude that variable from the sequence. and if there are multipul n ...

format paragraph containing a custom word

I'm trying to add some css tags (<strong>, <em> etc) to an entire paragraph <p> that contains a custom word, for example a paragraph like this <p>Title:....</p>This could be easily done for the custom word only with a var.str and document write. I would be grateful if y ...

jQuery Recursion issue with nested lists.

For a short summary on my issue, all that remains is the text()function returning the string of all the node values under the one i'mcurrently working with. This is by design, but I don't want it to dothis and for the life of me cannot discover a way to exclude all thechild nodes from text() ...

Does preg_split allow mismatches?

I want to split a DNA sequence (an random string of A,C,G and T)I want to split a DNA sequence (a long random string formed by 4 letters - A, C, G or T-, which may be very long) by using a small sequence (with same 4 letters).Example:Sequence to split ($seq):$seq="ACTAGTCCGCTTGCGCATC..." L ...

Q&A VB.NET and Truncated Email - 2 Examples

Q&A VB.NET and Truncated Email - 2 Exampleshttp://65.36.227.70/actmailer/We have a scheduled task which runs every 5mins and sends pending email campaign.The script has been written in VB.NET and following is the code which actually sends the mail: set mailer = createobject("cdo.message ...

Pointers (archived tutorial)

fellow programmers,This is a tutorial about using pointers in the C environment. Please, don’t hit the back button; pointers aren’t as hard as you think. In fact without pointers, most of us would be lost in our latter programming years.Even though pointers are for the experienced, as they say, ...

Very uncommon formatting of forum articles

Hi I have been posting to many different forums. This is the first one that ignores newlines. All other forum software I have seen insert a <p> or <br> when a user creates a new paragraph in the text input. For example first paragraphnewlinesecond paragraph is displayed in this forum as: ...

Extending <choice> in XSD

does anybody know whether it is possible to extend complex element type with the <choice> of elements of other elements?I have tried to do following:<xs:complexType name="extendedParagraphType"><xs:complexContent><xs:extension base="paragraphType"><xs:choice maxOccurs="unb ...

Instant Messaging App Help

I was hoping someone could assist me on a text-based instant messaging client(using UDP) I am working on. I have the network communication basics already in place but, specifically, needed some further help on the "messaging other users" and "getting a user list" functions. The s ...

Using user input in BASH array.

My ultimate goal is to fill an array with user inputted positive and negative numbers. This script I wrote is very limited, but it should give you an idea of what I am trying to do. Basically, I ask how many numbers and then reserve 3 spaces for each number (two for the number and one for the white ...

Permutation Generation

Generating permutations of a sequence is a problem that is commonly asked. It's fairly easy to do if you know how many items will be used beforehand, but a generic method to do so would be better.The snippet will do a lazy generation of the permutations (the next one is only done when it is requeste ...

Caching Oracle Sequences

I have a problem with the CACHE option of Oracle Sequences.I have created some sequences without NOCACHE/CACHE option. But oracle creates the sequence with CACHE 20 option.But then when I use this sequence I see that some times values are skipped by 20 !!Searched for this problem and found that ther ...

Instant messenger app help

I was hoping someone could assist me on a text-based instant messaging client(using UDP) I am working on. I have the network communication basics already in place but, specifically, needed some further help on a "getting a user list" function. Eventually, I will get a "send message to ...

DOM XML stop escaping

there i am trying to use DOM to put data into an xml tree and pass that off to xsl what i was wondering is how do you pass XML to dom and not have it escaped for example$Template->paragraph("<strong>Welcome to Site, an Australian based game server provider.</strong>");&l ...

Ubuntu strange networking error - intermittent connectivity

I have a strange problem where my machine will suddenly stop responding to connections while still remaining partially connectible. Here's an example sequence of events I have taken (numerous times). If anyone can spot something else I should check or has seen these symptoms before please let me kno ...

Oracle Regexp_instr function

I need to use regexp_instr function to find the position of the last end of sentence '. ', '! ' or '? ' in a string. For examplewith paragraph as (select 'This is the first sentence. This is the second sentence. ... This is the last sentence. but there is more text here' par from dual)select instr(p ...

Trying to create a form with rotated text...

I am trying to create a webpage that has form fields that a user can type in. There will be 4 type boxes (or something like that) where the user can enter text. This text then updates (with or without an update button) a template for an invitation that they can then print. here is where I am having ...

Oracle sequence partioning example for win32?

Does anyone have an example of handling sequences (creating, partitioning, etc) from a win32 or java app?I read the documentation, but it is not clear enough for me to program from. ...

jQuery IE 6 crashes on effects example documentation pages

Hello,I'm finding that the effects example pages on the docs site arecrashing Internet Explorer 6 when closing the browser.For example, I access:http://docs.jquery.com/Effects/fadeOutThen I click the paragraph, which fades out (though with jaggedy textas noted in an old post to the newsgroup her ...

jQuery front page example (the 'run code' example)

Why doesn't the little snippet of jQuery code on the homepage use abetter example? When you run the code, it show's a paragraph, but theparagraph has padding, so towards the end of the animation it "jumps".Wouldn't it be so much smoother, and hence more impressive, to show apar ...

Change text within paragraph depending on Radio Button

BackgroundI have an electronics site on which I have a code generator.Im an stuck on how to acheive something.I will simplify what I want to do, so I can then adapt it to my code.I have a paragraph of text on the web page, on which I want to change some words with in the paragraph depending on 2 rad ...

Need help with regexp matching only in sequence

I have an autocomplete script but it's currently returning results in a character is in the name anywhere at all, what I need it to do is only return matches if the characters are in sequence only.Example of how it is now if you type S it will return:ScienceHostPassWhat I need it to do is only retur ...

Large JPEG/PNG Image Sequence Looping

I have been working on my project about remotely sensed image processing, and image sequence looping. Each resulting image (in JPEG or PNG format) has approximately 8000 * 4000 pixels. Our users usually want to loop an image sequence (more than 50 images) on the basis of region of interest at a time ...

need help with collating sequence on AS400

We are porting an application that runs on DB2/Linux to be able to run on DB2/AS400. We are having problems with the sorting order, since our application is hosted on Windows, which uses ASCII , but the AS400 uses EBCDIC.I understand that the way to do this is by defining the collating sequence perh ...

Weird character sequence at end of a few lines is messing up my c executables

I'm taking over code from the previous programmer and am running into problems with one of his c executables. Specifically, this script opens up a file and reads it in one line at a time (using fgets), then processes it. However in a few instances, instead of reading in one line it's reading in mult ...

jQuery Trying to understand how to sequence the animation of a set of elements in order...

So I have successfully set up a sequence of animations on a single element by chaining the animations of the element by setting the queue:true for each animation step.for example$('#p1').animate({ opacity: '0.9', height: '20px'}, { queue:true, duration:1000}).animate({ opacity: '0.1', height: '20px' ...

Trouble displaying paragraph with image as block

I am working on styling some dynamically generated content (Joomla CMS) where the source code will look something like this:<div id="wrapper"><div class="leading"><h2 class="contentheading"><a href="#" class="contentpagetitle" ...

Automatic custom styling of first two lines in paragraph?

Is there a script that automatically applies two different styles to the first two lines of text in a container, without using CSS?Example:======This Would be Line One as a Title with its Own StyleThis would be line two as a byline with a separate styleThis is the main text of the paragraph... etc e ...

To find a particular char sequence in a string and changing the color

Guys, can you help me to write a code to find a char sequence in a string and highlight that with red color.In text box when they start typing i will get list of string matching in a div. for example when they start typing "A", i will get a result as AtlanticAlaskaAtlanta, some thing like ...

Copy and paste paragraph into text editor ?

I'm am copying and pasting data from a web site that's in the form ofa paragraph, into a text editor like Notepad, for example, and the resultis that the sentences in the paragraph all run together (on one line) in theNotepad window. Web Site:The rain in spainfalls mainly on the plain.Notepad:The ra ...

Java JDBC : db2java.zip : [IBM][CLI Driver] CLI0125E Function sequence error.

I'm currently working out to solve out the following error:[IBM][CLI Driver] CLI0125E Function sequence error.Searching teh web, and this same forums, I found some solutions which I did not like in particular, but anyway they didn't solve the problem.Let me sketch the code from top of my head:firstM ...

DB2: Sequence number generation

It is possible to create a stored procedure that will generate a sequence number, however, is it possible for a stored procedure to renumber the sequence? For example, say there are ten rows in the table. Row nbr 5 is deleted. Row nbr 6 becomes row nbr 5, row nbr 7 becomes row nbr 6, row nbr 8 becom ...

Key Logger Example Using Global Low-Level Hooks and NO DLL

********************************************************************************************The Programs and Files included are Copyright 2005, by ZOverLord This is a Proof Of Concept for Educational Purposes ONLY!Notes:This program is 4K big, as in 4,096 bytes and can do ANYTHING other Key-Loggersc ...

Automatically 1 paragraph in two columns

Is there a way I can automatically divide one paragraph over two columns?Now I manually divide the text over two <td>'s.Example:<tr><td>Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Proin eu odio eget nisl blandit</td><td><img border="0" src= ...

MySQL LAST_INSERT_ID() / AUTO_INCREMENT / sequence

Personally, I think the manual isn't detailed enough, and the example is very unclear!! I don't understand why LAST_INSERT_ID() isn't column specific!! At least it isn't from what I found in the manual! What is the way to get the last id from a specific AUTO_INCREMENT column? eg. " mysql> SE ...

MySQL SEQUENCE Object

This example is from the MySQL site but doesn't seem to work : CREATE SEQUENCE test.sequ START WITH 1 INCREMENT BY 1 ERROR 1064 (42000): You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'SEQUENCE test.sequ START WIT ...

2col. with data in diff. sequence ref. same column in different table

I'm trying to learn SQL using SQLserver 2000. I need some help Please!!I'm having trouble creating a view that will give me the informaiton that i need correctly. I listed all the tables and the view that I tried but it's not working I dont think i have the view right.Here is some info to help you u ...

Standalone Connection Pooling example

Given this statement from an earlier thread, can anyone provide an exampleand/or detailed documentation about how to use DB2's built-in ConnectionPooling outside of WebSphere? I've been decompiling through the JDBC driversource (can't find javadocs anywhere), but I can't figure out which classesto u ...

"function sequence error" returned by SQLGetData() after freeing an unrelated statement

I've some new C++ code that loops through the results of one query, and given a certain case, calls a function that creates a new statement to pull in some extra data. Once done, it returns to looping through the first result set. For some reason. However, on return to the first data set, I'm hittin ...

Running multiple jobs in a sequence

I've got the stored procedure which first creates and then starts a job.This stored procedure can be invoked from a number of triggers (after insert, after update)The problem is:when a sequence of statements is being executed one by one (like an insert immediately followed by several updates) and th ...

Adding line sequence numbers

I am stuck with something that seems easy but im obviously clueless as how to execute the idea.I have a custom table that houses invoices on the details level. So for example i have:InvcNo000000010000000100000001000000020000000200000003and so forthWhat I am wanting to do in another column is keep tr ...

Sequence number generating with a twist

I'm having a brain not functioning day - well who am I kidding - more like a year I need some help with some sequence numbering and cannot even get my head around the logic I want to use, let alone the actual code.I have a dataset with 3 fields:AreaIDRefNoThis table contains a list of employee ID's ...

record numbering sequence problem

I am new to sql so you will have to forgive my questions. I have used MS ACCESS quite allot. When I create 3 records and delete 1 record then add another one the numbering goes out of place.example:I create 3 records with the id 1,2,3 I delete record 3, then in the future add another record, it then ...

Isolate repititive records from a sequence

COL1 COL2FNCP_LGT_UW2ON 0FNCP_LGT_UW2ON -1FNCP_LGT_UW2ON 0FNCP_LGT_UW2ON 0FNCP_LGT_UW2ON 0FNCP_LGT_UW2ON 0FNCP_LGT_UW2ON 0FNCP_LGT_UW1ON 0FNCP_LGT_UW1ON -1FNCP_LGT_UW1ON 0FNCP_LGT_UW1ON 0FNCP_LGT_UW1ON 0FNCP_LGT_UW1ON 0FNCP_LGT_UW1ON 0FNCP_FLTRP2T 0FNCP_FLTRP2T 0FNCP_FLTRP2T 0FNCP_FLTRP2T 0FNCP_FLTR ...

how use regular expression in paragraph

im sory if my english bad..because i can speak english.. :D i want to ask how use regular expression in paragraph like this.example : file configuration at linux with name = httpd.conf#servername linux.com#listen:80<virtualhost 192.168.1.2>servername www.linux.comdocumentroot /var/www/html/ ...

Negative Startup Sequence

I am using Fedora Core 4.I found that some startup sequence in /etc/rc3.d or /etc/rc5.d was changed from Sxx to S-1. For example, I installed nscd and the startup sequence is as follow./etc/rc3.d/S30nscd/etc/rc5.d/S30nscdWhen I found nscd has problem and I reboot the computer, I found that the servi ...

Oracle ProC - Insert with HostArrays and Sequence

In my ProC application, I want to insert records using host arrays. But each record also has a sequence number associated with it. When I try to run the application, the same sequence number is assigned to each record and thus violating unique constraint.Example:insert into <table>values (sequ ...

Trying to link/embed photo/credit/caption combo in paragraph

I'm in the process of converting a tables-based site to CSS - one of my first so bear with me.In the old site I would embed a photo with caption and credit in a particular paragraph, by embedding a table in the paragraph (yes I know it's totally illegal) containing the image, caption and credit. Her ...

Oracle Sequence of conditions in where clause of a select statement

The where clause of a select statement, does it has any effect in performance if we put the condition in different sequence.for example, the sequence where the condition that will filter out most of the record first then followed by the one that does less filtering.If so, the condition that does the ...

Having Images Change in Sequence

I have a couple of images i want on the front page of my site. However i want to have them go as a sequence, and change over time (say 10 seconds)For example: Image 1 changes to Image 2 after 10 secs and then changes to image 3 after another 10, before returning to image 1, 10 secs later. Any ideas ...