Hi folks,
I have some PHP code which allows me to sort a column into ascending and descending order (upon click of a table row title), which is good. It works perfectly for my D.O.B colum (with date/time field type), but not for a quantity column.
For example, I have quantites of 10, 50, 100, 30 and another 100.
The order seems to be...
I'd like to sort my result like this:
First I want all rows/objects where a column/property is not null, then all where the colmn/property is null.
Then I want to sort by another column/property.
How can I do this with ICriteria? Do I have to create my own Order class, or can it be done with existing code?
ICriteria criteria = Sessi...
We have a proprietry system where we can configure fields on indiviual forms.
However these fields have a global tab order (we cannot specify for a specific form).
We have a bunch of forms (35 in total) which share a lot of different fields.
Each form has a specific tab/edit order that needs to be configured.
Example:
Form 1 has fie...
Hello everyone,
how can i get order number of some element by javascript/jquery?
<ul>
<li>Anton</li>
<li class="abc">Victor</li>
<li class="abc">Simon</li>
<li>Adam</li>
<li>Peter</li>
<li class="abc">Tom</li>
</ul>
There is 3xli with abc class. Now I need to get order(sequence) number of Simon li.
Thanks in advance
...
First of all, I'm still working in classic ASP (vbScript) with an MS Access Database. And, yes I know its archaic, but I'm still hopeful I can do this!
So now to my problem:
Take the following table as an example:
PROJECTS
ContactName StartDate EndDate Complete
Mitch 2009-02-13 2011-04-23 No
Eric 2006-10-01 2008-11-15...
I have got two entities Person and Book. Only one instance of a specific book is stored to the system (When a book is added, application checks if that book is already found before adding a new row to the database). Relevant source code of the entities is can be found below:
@Entity
@Table(name="persons")
@SequenceGenerator(name="id_seq...
I have a search screen, using JSF, JBoss Seam and Hibernate underneath. There are columns for A, B and C, where the relations are as follows:
A (1< -- >) B (1< -- >) C
A has a List< B > and B has a List< C > (both relations are one-to-many).
The UI table supports ordering by any column (ASC or DESC), so I want the results of the quer...
Hi,
I have a data structure which is as given below:
class File
{
public string Value { get; set; }
public File[] Dependencies { get; set; }
public bool Change { get; private set; }
public File(string value,File[] dependencies)
{
Value = value;
Dependencies = dependencies;
...
I am trying to compile code that works on os x and linux using cygwin. However, I am finding that the argument order to gcc gives unanticipated results.
For example, the following fails:
gcc -std=gnu99 -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -lglib-2.0 -lintl -liconv -fgnu89-inline -fno-leading-underscore -o nb-learn.exe n...
hi all
im using a simple test script from
http://www.tuxradar.com/practicalphp/8/11/0
like this
<?php
$fp = fopen("foo.txt", "w");
if (flock($fp, LOCK_EX)) {
print "Got lock!\n";
sleep(10);
flock($fp, LOCK_UN);
}
i opened 5 shell's and executed the script one after the other
the scripts block until the lock is free'ed and...
Okay, so I appreciate that Javascript is not C# or PHP, but I keep coming back to an issue in Javascript - not with JS itself but my use of it.
I have a function:
function updateStatuses(){
showLoader() //show the 'loader.gif' in the UI
updateStatus('cron1'); //performs an ajax request to get the status of something
updateStatus('cro...
I have the field receiptno, which is a varchar holding a numeric value, and want to sort this. Sorting as a string gives me the wrong ordering. I'd like to try sorting it as an integer. Is there anyway to converting to integer in the order by clause so I can sort by integer in the query itself.
...
Hello. Can anyone tell me how to display the other values, when a query is limited my 3. In this question I asked how to order and limit values, but now I want to show the others in another query. How would I go about doing this?
Here's the code I used before:
$query = "SELECT gmd FROM account ORDER BY gmd DESC LIMIT 3";
$result = mysq...
Hi,
I'm having some problems figuring out how to organise data pulled off XML in cells within a container. I'm sure this should be a basic thing in AS3, but my head's fried.. can anyone help?
Basically an array if fed to callThumbs() which iterates through it and compares the entries with preloaded XML _my_images. If match is found, it...
Hi,
I'm wondering if there's some clever way in MySQL to return a "mixed/balanced" dataset according to a specific criterion?
To illustrate, let's say that there are potential results in a table that can be of Type 1 or Type 2 (i.e. a column has a value 1 or 2 for each record). Is there a clever query that would be able to directly ret...
I'm writing sql to search a database by a number of parameters. How would I go about ordering the result set by the items that match the most parameters in the where clause. For example:
SELECT *
FROM users
WHERE username = 'eitan'
OR email = '[email protected]'
OR company = 'eitan'
Username | email | company
1)...
Hello,
We need to import some orders file on magento enterprise.
In our file, products contains customs Options.
We tried to make an extension but we have some problems to import Customs options.
The import of standard product is successful but not for the product with customs options.
For customs option, missing "info_buyRequest" val...
Hello,
I need a sorted stack. I mean, the element removed from the stack must be the one with great priority. Stack dimension varies a lot (becomes bigger very fast).
I need also to search elements in that stack.
Does Java give some good implementation for this? What class or algorithm do you suggest for this?
I'm using a PriorityQue...
Hi there,
I have a xml file like that:
<Users>
<User>
<Adress Name="bbbb"/>
<Adress Name="aaaa" />
</User>
</Users>
I want to sort User element's nodes asc. How can i order Adress elements?
Thank you for your helps.
...
Let's say I have three 32-bit floating point values, a, b, and c, such that (a + b) + c != a + (b + c). Is there a summation algorithm, perhaps similar to Kahan summation, that guarantees that these values can be summed in any order and always arrive at the exact same (fairly accurate) total? I'm looking for the general case (i.e. not a ...