total

Get Drive Size in Java 5

I want to get the size of a drive (or UNC path pointing to a partition would be nice, but not required), as well as free space for said drive (or UNC path). This doesn't need to work cross platform; only in Windows. I know it's easy to do in Java 6, but that's not an option; I'm stuck with Java 5. I can get the free space available by...

Total with select query

Hi, Consider the following data: Insurance_Comp | 1To30DaysAgeing | 31To60DaysAgeing | 61To90DaysAgeing | TotalVehicles ============================================================================= ABC | 30 | 5 | 20 | 55 XYZ | 10 | 35 | 5 | 50 I am calculating the number of vehicles aged for particular group after a stock# is assi...

[XSLT] Get the total number of nodes and counting nodes

Is it possible to get the total number of XML nodes? Also, how does one do a for-statement with XSLT? ...

In need of help - - Total of rows and columns of a table

Found the answer. Take a look if you're interested. Changed my approach to completing this project. Need to be able to calculate rows to "Total" on the right hand side and the columns to "Daily Totals" I've been able to get some of it working, but it's screwy with the calculations and can't be right. Grand total seems to be working,...

How do I get the number of rows in my gridview control?

The rows.count property only tells me how many rows are displayed on the screen, not the total number available. The solution below is not working. I have an SqlDataSource and a GridView and neither can be cast into a dataset or datatable. ...

IOWriteBytesPersec is actually total bytes?

The documentation for the Windows WMI counter Win32_PerfRawData_PerfProc_Process.IOWriteBytesPersec says it's number of bytes per second, but it behaves like a total. For example, the same data is viewable in task manager as "I/O Write Bytes" but the value only ever seems to go up, never down. The same goes for read byte...

How can i count this variables in my DB?

Hello Colud you please help me about this problem ? I have 4 variables XTSM is between 0~200 XTS is between 0~2 XRX is 0~3 XHAN is 0~7 ZHTYPE is one of these : (1)TCHF_HLF (2)TCHSD (3)TCHFULL they are related to their with this shape . XTSM->XTS->XRX->XHAN->ZHTYPE (Just Logical) this means : Each XTSM has 3 XTS (0-2) Each X...

C# enum addition

greetings, i have the following enum: public enum LegalShipTypes : byte { Frigate = 1, Cruiser = 2, Destroyer = 3, Submarine = 4, AircraftCarrier = 5 } i was wondering if there is a way to get the total value of enum in any way. for instance this would result in (1 + 2 + 3 + 4 + 5) =...

Selected event not raised for ObjectDatasource when enable-caching is true

I've a Gridview control using an ODS(ObjectDataSource) to fetch data. For the best performance and efficiency, I've turned-off the view state of Gridview (i.e. EnableViewstate = "false". And I've also enabled caching in the associated Objectdatasource. This eliminates as much as 50-60% performance optimization because it eliminates the ...

How to make a total and Grouping a report

Using Crystal Report 8.5 Generating a report from table1 My Crystal Report Output ID Name Date Totaltime 001 Raja 23/02/2009 08:00:00 001 Raja 24/02/2009 10:00:00 001 Raja 25/02/2009 09:00:00 001 Raja 26/02/2009 11:00:00 001 Raja 27/02/2009 07:00:00 002 Ravi 23/02/2009 11:00:00 002 Ravi 24/02/2009 10:00:00 002 Ravi 25/02/2009...

Can Visual Studio (should it be able to) compute a diff between any two changesets associated with a work item?

Here is my use case: I start on a project XYZ, for which I create a work item, and I make frequent check-ins, easily 10-20 in total. ALL of the code changes will be code-read and code-reviewed. The change sets are not consecutive - other people check-in in-between my changes, although they are very unlikely to touch the exact same file...

given a list of up to 10 integer numbers and a sum, will display a subset of the numbers whose total is that sum

Write a program which, given a list of up to 10 integer numbers and a sum, will display a subset of the numbers whose total is that sum if one exists or indicate that none exists otherwise. For example, for the list: 5,13,24,9,3,3 and sum = 28, your program should display 13, 9, 3, 3. How to do this in C++ using a recursive function? ...

Sub-total and total columns

In Visual Foxpro 9 I am trying to write an sql with a product "subtotal" column and a report "total" column. The sql code that works is as follows, but when I insert the commented out "Case" code I get errors that seem to increase as I correct the preceeding error. Can any one tell me in which place I should insert the "case" and what is...

Count total number of Phone Numbers in AddressBook iPhone

I am trying to get the total count for the phone numbers listed in the AddressBook, in all groups as a whole. I can successfully retrieve Person count and Group count, just not the total number of Phone Numbers. ABAddressBookRef m_addressbook = ABAddressBookCreate(); CFIndex nPeople = ABAddressBookGetPersonCount(m_addressbook)...

How do I add totals/subtotals to a set of results without grouping the row data?

I'm constructing a SQL query for a business report. I need to have both subtotals (grouped by file number) and grand totals on the report. I'm entering unknown SQL territory, so this is a bit of a first attempt. The query I made is almost working. The only problem is that the entries are being grouped -- I need them separated in the rep...

UDP + total order, non-reliable

I'm trying to find a version of UDP which just alleviates the restriction of a maximum size of the message sent. I don't care about reliability or partial retransmission, if all chunks arrive I want the message to be assembled from the chunks in sending order and delivered to the listening app. If one or more chunks are missing I would j...

'unknown error' in SQLite on the iPhone when selecting total number of records

Trying to return whether a record exists in SQLite on the iPhone except I keep getting an 'unknown error'. selectStmt is static sqlite3_stmt *selectStmt = nil; used here if(selectStmt) sqlite3_finalize(selectStmt); which only gets executed if the application terminates. This functionality works fine with delete statements and insert sta...

How can I aggregate the # of seconds in a query result?

Hi everyone, I have an Oracle 10g table that contains a # of log records. This table collects data from an environmental recording device that creates a log record every 15 seconds when it is running. I want to add all of the seconds together from the reading dates of the log file entries to ensure that the logger ran > 24 hours (84...

Calculating the SUM of (Quantity*Price) from 2 different tables

Hi everyone, I have two tables as follows PRODUCT table Id | Name | Price And an ORDERITEM table Id | OrderId | ProductId | Quantity What I'm trying to do is, calculate the subtotal price for each product (Quantity*Price) then SUM the TOTAL value for the entire order.. I'm trying something like this SELECT Id, SUM(Quantity * (s...

How to create a "meter bar" in Flash?

I am trying to create a "meter bar" in Flash. I am creating an interactive house in Flash. Inside the house are objects that consume power. (ie. light bulb, computer, stove, etc...) Those objects are toggle buttons (created using MovieClips). (The objects can be toggled ON/OFF.) When ON--there is a "power value" associated with each hous...