Hey All
i have a image gallery and i want to limit the set where is shows 4 images in each row at a max of 3 columns, if its possible how is it made, and well it be easy using php,
I want to get file size I'm doing this:
my $filename=$query->param("upload_file");
my $filesize = (-s $filename);
print "Size: $filesize ";`
Yet it is not working. Note that I did not upload the file. I want to check its size before uploading it. So to limit it to max of 1 MB.
I want to get file size I'm doing this:
my $filename=$query->param("upload_file");
my $filesize = (-s $filename) ;
print "Size: $filesize ";
Yet it is not working.Note that I did not upload the file. I want to check its size before uploading it. so to limit it to max of 1 MB.
Not a technical question, but related to IT.
At the moment I work in the open plan office and the guy next to me is talking to himself
while programming. It annoys my collegue and me so much that we are putting the earphones on with music volume set to max.
Does anyone know good and polite solution to shut him up?
Hi, i wanted to know how to edit 3d models' vertices in XNA at runtime, i wana do something like the 3d max subtract feature where u put 2 models together and delete the intersecting vertices of 1 of them, more like carving one mesh with the other.
see this if i wasn't clear
anyway so any pointers on how to edit vertices at runtime or any help is really really appreciated.
thanks
I am using the following query to select 1 random record -
SELECT name FROM table WHERE id >= (SELECT FLOOR( MAX(id) * RAND()) FROM table ) ORDER BY id LIMIT 1
but it gives me the same set of records every time I call it. How do I get better random record?
Is there a way to run a loop through a folder and process like 30 files for a month and give the average,max of each columns and write in one excel sheet or so??
I have 30 files of size [43200 x 30]
I ran a different matlab scrip to generate them so the names are easy
File_2010_04_01.xls , File_2010_04_02.xls ..... and so on
I cannot merge them as each are 20mbs and matlab would crash.
Any ideas?
Thanks
i am running a query from vba editor access:
"select max(somerow) from sometable"
i want to put the result of this query into a variable. how do i do it?
Please note that there is no limitation of memory.
I need to insert int from 1 to 1000.
I can do the each of the following operations in constant order of time:
push():adds to the top
pop():removes the top element
getMax(): returns the max element
Please suggest me appropriate datastructure.
Is there any difference in (asymptotic) performance between
Orders.OrderBy(order => order.Date).First()
and
Orders.Where(order => order.Date == Orders.Max(x => x.Date));
i.e. will First() perform the OrderBy()? I'm guessing no. MSDN says enumerating the collection via foreach och GetEnumerator does but the phrasing does not exclude other extensions.
In this query:
SELECT WTTEMPLATE.TEMPLATEuID,
MAX (WTTRX.VALUEDATE) AS template_last_use_date
FROM wttemplate, wttrx
WHERE WTTEMPLATE.TEMPLATEID = WTTRX.TEMPLATEID(+)
AND WTTEMPLATE.CUSTID = WTTRX.CUSTID
GROUP BY WTTEMPLATE.TEMPLATEuID
The explain plan shows:index fast full scan using indexes on WTTEMPLATE.TEMPLATEID and (WTTRX.TEMPLATEID,WTTRX.CUSTID). My question is this: I have not specified any filter criteria , so how can it use indexes? It should do full scan...right?
=MAX(SUM(A1:A5))
How do i incorporate the above formula into
=IF(
AND(
$H$14<F22, F22<=($H$14+$H$15)
),
$I$15,
IF(
AND(
$H$14+$H$15<F22, F22<($H$14+$H$15+$H$16)
),
$I$16,
IF(
AND(
$H$14+$H$15+$H$16<F22, F22<=($H$14+$H$15+$H$16+$H$17)
),
$I$17,
$I$14
)
)
)
It keeps running a circular reference error. Help!
The sum value shouldnt exceed 150. If exceed, then replace the cell with zero value.
What do I need to consider before I switch a bunch of fields from VARCHAR(bignumber) to TEXT?
Aside from performance, and sometime in the far future TEXT will be deprecated, and aside from the fact that it looks like I need to drop and recreate the table to alter the column's data type?
This is for SQL 2000-- I can't do VARCHAR(max) and VARCHAR(8000) isn't large enough.
The whole question is pretty much in the title. For each row of the table I'd like to select the maximum of a subset of columns.
For example, from this table
name m1 m2 m3 m4
A 1 2 3 4
B 6 3 4 5
C 1 5 2 1
the result would be
name max
A 4
B 6
C 5
The query must be compatible oracle 8i.
Thanks.
What's the best way to convert (to hash) a string like 3800290030, which represents an id for a classification into a four character one like 3450 (I need to support at max 9999 classes).
The hash needs to be unique and always the same for the same an input.
If possible, the hash should also be reversible (but this is not required).
To help support and anyone who may use one of my applications I tend to log a few things during the application startup.
Currently I log:
Start Time
App Name
App Author
App Version
App Classpath
Current working directory
Java vendor
Java version
Max heap size
Taking into consideration this application may be used / supported by a whole host of people can anyone think of any other vital details which we / others should log for good practice?
Hello,
How can I update the value of an xml tag with the value of an xml tag from another related table?
something like this:
UPDATE v2
SET
[xml].modify ('replace value of (//TAG1/text())[1]
with "CAST(v1.[xml].query(''//TAG2'') AS NVARCHAR(MAX))"')
FROM
table2 v2,
table1 v1
WHERE
v2.id = v1.id
Thanks
The default stl priority queue is a Max one (Top function returns the largest element).
Say, for simplicity, that it is a priority queue of int values.
hello, i have a table with some rows.
idClient, name, adress,country,...
i want to know how i can do an insert into this table with auto increment my idClient in my sql request..?
Thx.
edit: i want do a request like this
insert into Client values((select max(idClient),...)
Hello,
I have noticed that my application that is running on Tomcat 5 starts with 1gig of memory and as soon as it starts receiving requests from client, the memory starts dropping until it is down to 100MBs and troubles start from there. I am looking at /manager/status page of tomcat under JVM section where "Free Memory", "Total Memory", "Max Memory" is listed.
Is this an indicator of memory leak? Memory does not seem to be freed-up automatically even if there are no requests coming from client machines.
Hello, I have to migrate this query (simplified here) from T-SQL to ORACLE
SET IDENTITY_INSERT table ON
INSERT INTO table (id, value) VALUES (1, 2)
SET IDENTITY_INSERT table OFF
id being an Identity field in SQLServer.
I have the same table with a sequence in ORACLE, I couldn't find a snippet that shows how to disable the sequence and set it to start again with the MAX(id) + 1.
Any ORACLE expert can help me with this?
Thanks,
Rodrigo.
so, let's say i have the long/lat or address of many buildings
can get satellite images, "street view", and perhaps 3d/perspective views of buildings.
want to find:
height,
number of floors,
floor area (max building footprint)
of the building. about 200k buildings.
Is there a library for recognizing buildings from satellite shots or pictures? Kind of like face detection I suppose.
Any other suggestions?
Thanks!
Are C++ enums signed or unsigned? And by extension is it safe to validate an input by checking that it is <= your max value, and leave out = your min value (assuming you started at 0 and incremented by 1)?