How to find the size of the clipboard's contents before getting it?
I am trying to have a "size limiter" on pasted images and would like to know how big the pasted item is before i do :
Transferable clipData = clipboard.getContents(clipboard);
Does anyone know how i can go about that? I didn't find anything on the Clipboard Class...maybe it is somewhere else?
Thanks!
Thanks for your reply; But based on your image, how can I calculate the actual size of the recoverying VM?
Please VOTE as HELPFUL if the post helps you and remember to click “Mark as Answer” on the post that helps you, and to click “Unmark as Answer” if a marked post does not actually answer your question. This can be beneficial to other community members reading
the thread.
Similar Messages
-
How to find the job details?
Hi,
Can any one pls tell me how to find the job details.
Im getting the following error.
ORA-12012: error on auto execute of job 2523287
ORA-01031: insufficient privileges
but, when im connecting as sysdba adn do following it was showinfg no rows selected.
SQL> select * from dba_jobs where job=2523287;
no rows selected
SQL> select * from all_jobs where job=2523287;
no rows selected
How to find the job details of the job 2523287?
Thanks in advance.
Jishnuyeah, trc file is there
I found the following info in that
*** ACTION NAME:(EDX_PURGE) 2009-11-08 22:00:00.411
*** MODULE NAME:(DBMS_SCHEDULER) 2009-11-08 22:00:00.411
*** SERVICE NAME:(SYS$USERS) 2009-11-08 22:00:00.411
*** SESSION ID:(683.4258) 2009-11-08 22:00:00.411
*** 2009-11-08 22:00:00.411
ORA-12012: error on auto execute of job 2523287
ORA-01031: insufficient privileges -
How to find the client size?
i want to know how to find the size of the client?
Hi Gadangi,
Check OSS note# "118823 - CC-ADMIN: Size of a client".
Best regards,
Orkun Gedik -
Hi,
How to find the size of the schema in a daabase.
Thanks,
MahiMahi,
One more option, though not so clean would be use Data Pump and its estimate file size option for the schema. The estimate would tell you the info about the size of the schema.
HTH
Aman.... -
Hi ,
Please tell me how to find the db size.
Thanks,
Kumar.If I understand correctly, the above query will give the space allocated to the database. This isn't necessarily the same as the space used by the database. Or do I need to clean my glasses ?
I use the following to get sizes for tablespaces (may need some formatting done - works in 9i and 10g) :
SELECT
Total.name "TABLESPACE_NAME",
total_space "TABLESPACE_SIZE",
nvl(Free_space, 0) Free_space,
nvl(total_space-Free_space, 0) Used_space
FROM
select
tablespace_name,
sum(bytes/1024/1024) Free_Space
from
sys.dba_free_space
group by
tablespace_name
) Free,
select
b.name,
sum(bytes/1024/1024) TOTAL_SPACE
from
sys.v_$datafile a,
sys.v_$tablespace B
where
a.ts# = b.ts#
group by
b.name
) Total
WHERE
Free.Tablespace_name(+) = Total.name
ORDER BY
Total.name
; -
How to find the size of an arrayList through Expression Builder.
Hai OTN,
How to find the size of an arrayList through Expression. I have a managed bean in View Scope.I am using Jdeveloper 11.1.1.2 with ADF Faces components.
Managed Bean :
ArrayList<IllnessEmployeesObj> employeeGridList =
new ArrayList<IllnessEmployeesObj>();
JSPX :
Value="#{viewScope.PandIVH.employeeGridList.size}"
Error : java.lang.NumberFormatException: For input string: "size"Hi Dinil,
I have provided you with a sample that would show you the how you can get the size of an arraylist
the sample has a page untitled1 and a bean named test.
I have run in on jdev 11.1.2 and it is ok, it will be ok on 11.1.3
after running the sample you will see the 2.
please remember that you must add the JSTL taglib on the viewcontroller.
just right click on viewcontroller, go to tag lib select the jstl.
page
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">
<%@ page contentType="text/html;charset=UTF-8"%>
<%@ taglib uri="http://java.sun.com/jsf/core" prefix="f"%>
<%@ taglib uri="http://java.sun.com/jsf/html" prefix="h"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/functions" prefix="fn"%>
<f:view>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
<title>untitled1</title>
</head>
<body>
<h:form>
<h:outputText value="#{fn:length(test.a)}"/>
</h:form>
</body>
</html>
</f:view>
bean
import java.util.ArrayList;
public class Test {
public Test() {
a= new ArrayList();
Object o=new Object();
a.add(o);
a.add(o);
ArrayList a;
public void setA(ArrayList a) {
this.a = a;
public ArrayList getA() {
return a;
I hope this sample came handy.
regards, -
How to find the Model size in Semantics
Hi All,
Please can you tell me how to find the model size in Semantics.
Thanks,
InduHi,
Instead of looking up the ID for the Entailment in DB_VIEWS you can better use MDSYS.SEM_NETWORK_INDEX_INFO
For example:
select name, type, id from MDSYS.SEM_NETWORK_INDEX_INFO;
NAME TYPE ID
MYMODEL MODEL 60
MYMODEL_INF ENTAILMENT 69
*** Space about the B-tree indexes on models and entailments ***
Indexes created in RDF_LINK$ for a specific model:
SQL> select name, type, id, index_name from MDSYS.SEM_NETWORK_INDEX_INFO;
NAME TYPE ID INDEX_NAME
MYMODEL MODEL 60 RDF_LNK_PCSGM_IDX
FAMILY100 MODEL 59 RDF_LNK_PSCGM_IDX
FAMILY100 MODEL 59 RDF_LNK_PCSGM_IDX
FAMILY2 MODEL 56 RDF_LNK_PCSGM_IDX
FAMILY2 MODEL 56 RDF_LNK_PSCGM_IDX
FAMILY MODEL 57 RDF_LNK_PCSGM_IDX
FAMILY MODEL 57 RDF_LNK_PSCGM_IDX
OTHERMODEL MODEL 58 RDF_LNK_PSCGM_IDX
OTHERMODEL MODEL 58 RDF_LNK_PCSGM_IDX
0 NETWORK 0 RDF_LNK_PCSGM_IDX
0 NETWORK 0 RDF_LNK_PSCGM_IDX
MYMODEL_INF ENTAILMENT 69 RDF_LNK_PCSGM_IDX
MYMODEL_INF ENTAILMENT 69 RDF_LNK_PSCGM_IDX
Then get the size from DBA_SEGMENTS
select bytes/1024/1024 MB, partition_name from dba_segments where segment_name in ('RDF_LNK_PSCGM_IDX','RDF_LNK_PCSGM_IDX');
Specifically for our model 60 and Entailment 69:
select bytes/1024/1024 MB, partition_name from dba_segments where segment_name in ('RDF_LNK_PSCGM_IDX','RDF_LNK_PCSGM_IDX') and partition_name in ('MODEL_60','MODEL_69');
MB PARTITION_NAME
192 MODEL_60
192 MODEL_60
60.0625 MODEL_69
62.375 MODEL_69
You would add them all for the size of the indexes -
How to find the XML file size in the scenarios?
Hi All,
Recently i have attended an interview at a MNC.
They asked some realtime questions like
1.how to find the XML document size in a File-File scenario?
2.What is mass-assignment replication etc.....
Can anybody tell me the solution for these.
Best regards
Hari prasadIf the input is a flat file, there is no exact way to calculate the size of the generated XML file, since it depends on many factors (number of fields in the recordsets, size of the name of the fields, number of records, etc).
As a rule of thumb, generally ppl use XML file size = 2 x Flat file size, in order to do sizing calculations etc. But again, that is just an estimation, not a precise calculation.
Regards,
Henrique. -
How to find the size of a database?
I'm not an oracle dba but a report developer. I'd like to find out the size of my database.
Is this possible using simple query?francislazaro wrote:
I'm not an oracle dba but a report developer. I'd like to find out the size of my database.
Is this possible using simple query?There are many threads related to the same topic,
http://forums.oracle.com/forums/search.jspa?threadID=&q=How+to+find+the+size+of+a+database&objID=f61&dateRange=all&userID=&numResults=15&rankBy=10001
HTH
Aman.... -
How to find the size of the pipe. I mean the total number of bytes/messages available in the named pipe?
NAVEENI'm afraid this forum for Microsoft Project Customization and Programming is not the correct forum for your question. Please Choose correct forum in order
to get help from experts. I think your question is more relevant to SQL server
kirtesh -
How do I find the clipboard on my iPhone
How do I find the clipboard on my iPhone and my iPad .
it uses a notes feature not clipboard. There are clipboard apps for purchase in the app store.
Peace, Clyde -
How to find the size of a field
Can somebody tell how to find the sie of a varchar2 field?
Thanks.SQL> desc global_name
Name Null? Type
GLOBAL_NAME VARCHAR2(4000)
SQL> select global_name from global_name;
GLOBAL_NAME
ITFD.XXXXX.CO.XX
1* select vsize(global_name) from global_name
SQL> /
VSIZE(GLOBAL_NAME)
16 -
How to find the number of records in ods?
how to find the number of records in ods?
Pls suggest the solution apart going to the table of ods and seeing the number of records.
Is there any program or function module to see the number of records in ods?
For eg: SAP_INFOCUBE_DESIGNS is a program which gives the detail (number of records) of infocube.Hi,
I was looking at this and found the following tables that may be of help.
One of these tables will include a summary of the record count of all the tables in your system based on the last time each table had it's database statistics calculated:
DBSTATTADA
DBSTATTDB2
DBSTATTDB4
DBSTATTDB6
DBSTATTINF
DBSTATTMSS
DBSTATTORA
We run on an Oracle database so the table record counts can be taken from DBSTATTORA. Type in AZ in table selection field in SE16 to restrict the output to ODS (or DSO) tables only.
The record count is at the time indicated in the timestamp field. Obviously this is not real time but should not be too out of date - if it is you may be having performance issues and should get your DBA / Basis to run a full refresh of DB stats.
Hope this helps, alhtough not real time the table should give you a decent indication of the size of all your ODS objects (or any other table for that matter!) -
How to find the level of each child table in a relational model?
Earthlings,
I need your help and I know that, 'yes, we can change'. Change this thread to a answered question.
So: How to find the level of each child table in a relational model?
I have a relacional database (9.2), all right?!
O /* This is a child who makes N references to each of the follow N parent tables (here: three), and so on. */
/↑\ Fks
O"O O" <-- level 2 for first table (circle)
/↑\ Fks
"o"o"o" <-- level 1 for middle table (circle)
↑ Fk
"º"Tips:
- each circle represents a table;
- red tables no have foreign key
- the table in first line of tree, for example, has level 3, but when 3 becomes N? How much is N? This's the question.
I started thinking about the following:
First I have to know how to take the children:
select distinct child.table_name child
from all_cons_columns father
join all_cons_columns child
using (owner, position)
join (select child.owner,
child.constraint_name fk,
child.table_name child,
child.r_constraint_name pk,
father.table_name father
from all_constraints father, all_constraints child
where child.r_owner = father.owner
and child.r_constraint_name = father.constraint_name
and father.constraint_type in ('P', 'U')
and child.constraint_type = 'R'
and child.owner = 'OWNER') aux
using (owner)
where child.constraint_name = aux.fk
and child.table_name = aux.child
and father.constraint_name = aux.pk
and father.table_name = aux.father;Thinking...
Let's Share!
My thanks in advance,
Philips
Edited by: BluShadow on 01-Apr-2011 15:08
formatted the code and the hierarchy for readbilityJustin,
Understood.
Nocycle not work in 9.2 and, even that would work, would not be appropriate.
With your help, I decided a much simpler way (but there is still a small problem, <font color=red>IN RED</font>):
-- 1
declare
type udt_roles is table of varchar2(30) index by pls_integer;
cRoles udt_roles;
begin
execute immediate 'create user philips
identified by philips';
select granted_role bulk collect
into cRoles
from user_role_privs
where username = user;
for i in cRoles.first .. cRoles.count loop
execute immediate 'grant ' || cRoles(i) || ' to philips';
end loop;
end;
-- 2
create table philips.root1(root1_id number,
constraint root1_id_pk primary key(root1_id)
enable);
grant all on philips.root1 to philips;
create or replace trigger philips.tgr_root1
before delete or insert or update on philips.root1
begin
null;
end;
create table philips.root2(root2_id number,
constraint root2_id_pk primary key(root2_id)
enable);
grant all on philips.root2 to philips;
create or replace trigger philips.tgr_root2
before delete or insert or update on philips.root2
begin
null;
end;
create table philips.node1(node1_id number,
root1_id number,
node2_id number,
node4_id number,
constraint node1_id_pk primary key(node1_id)
enable,
constraint n1_r1_id_fk foreign key(root1_id)
references philips.root1(root1_id) enable,
constraint n1_n2_id_fk foreign key(node2_id)
references philips.node2(node2_id) enable,
constraint n1_n4_id_fk foreign key(node4_id)
references philips.node4(node4_id) enable);
grant all on philips.node1 to philips;
create or replace trigger philips.tgr_node1
before delete or insert or update on philips.node1
begin
null;
end;
create table philips.node2(node2_id number,
root1_id number,
node3_id number,
constraint node2_id_pk primary key(node2_id)
enable,
constraint n2_r1_id_fk foreign key(root1_id)
references philips.root1(root1_id) enable,
constraint n2_n3_id_fk foreign key(node3_id)
references philips.node3(node3_id) enable);
grant all on philips.node2 to philips;
create or replace trigger philips.tgr_node2
before delete or insert or update on philips.node2
begin
null;
end;
create table philips.node3(node3_id number,
root2_id number,
constraint node3_id_pk primary key(node3_id)
enable,
constraint n3_r2_id_fk foreign key(root2_id)
references philips.root2(root2_id) enable);
grant all on philips.node3 to philips;
create or replace trigger philips.tgr_node3
before delete or insert or update on philips.node3
begin
null;
end;
create table philips.node4(node4_id number,
node2_id number,
constraint node4_id_pk primary key(node4_id)
enable,
constraint n4_n2_id_fk foreign key(node2_id)
references philips.node2(node2_id) enable);
grant all on philips.node4 to philips;
create or replace trigger philips.tgr_node4
before delete or insert or update on philips.node4
begin
null;
end;
-- out of the relational model
create table philips.node5(node5_id number,
constraint node5_id_pk primary key(node5_id)
enable);
grant all on philips.node5 to philips;
create or replace trigger philips.tgr_node5
before delete or insert or update on philips.node5
begin
null;
end;
-- 3
create table philips.dictionary(table_name varchar2(30));
insert into philips.dictionary values ('ROOT1');
insert into philips.dictionary values ('ROOT2');
insert into philips.dictionary values ('NODE1');
insert into philips.dictionary values ('NODE2');
insert into philips.dictionary values ('NODE3');
insert into philips.dictionary values ('NODE4');
insert into philips.dictionary values ('NODE5');
--4
create or replace package body philips.pck_restore_philips as
procedure sp_select_tables is
aExportTablesPhilips utl_file.file_type := null; -- file to write DDL of tables
aExportReferencesPhilips utl_file.file_type := null; -- file to write DDL of references
aExportIndexesPhilips utl_file.file_type := null; -- file to write DDL of indexes
aExportGrantsPhilips utl_file.file_type := null; -- file to write DDL of grants
aExportTriggersPhilips utl_file.file_type := null; -- file to write DDL of triggers
sDirectory varchar2(100) := '/app/oracle/admin/tace/utlfile'; -- directory \\bmduhom01or02
cTables udt_tables; -- collection to store table names for the relational depth
begin
-- omits all referential constraints:
dbms_metadata.set_transform_param(dbms_metadata.session_transform, 'REF_CONSTRAINTS', false);
-- omits segment attributes (physical attributes, storage attributes, tablespace, logging):
dbms_metadata.set_transform_param(dbms_metadata.session_transform, 'SEGMENT_ATTRIBUTES', false);
-- append a SQL terminator (; or /) to each DDL statement:
dbms_metadata.set_transform_param(dbms_metadata.session_transform, 'SQLTERMINATOR', true);
-- create/open files for export DDL:
aExportTablesPhilips := utl_file.fopen(sDirectory, 'DDLTablesPhilips.pdc', 'w', 32767);
aExportReferencesPhilips := utl_file.fopen(sDirectory, 'DDLReferencesPhilips.pdc', 'w', 32767);
aExportIndexesPhilips := utl_file.fopen(sDirectory, 'DDLIndexesPhilips.pdc', 'w', 32767);
aExportGrantsPhilips := utl_file.fopen(sDirectory, 'DDLGrantsPhilips.pdc', 'w', 32767);
aExportTriggersPhilips := utl_file.fopen(sDirectory, 'DDLTriggersPhilips.pdc', 'w', 32767);
select d.table_name bulk collect
into cTables -- collection with the names of tables in the schema philips
from all_tables t, philips.dictionary d
where owner = 'PHILIPS'
and t.table_name = d.table_name;
-- execution
sp_seeks_ddl(aExportTablesPhilips,
aExportReferencesPhilips,
aExportIndexesPhilips,
aExportGrantsPhilips,
aExportTriggersPhilips,
cTables);
-- closes all files
utl_file.fclose_all;
end sp_select_tables;
procedure sp_seeks_ddl(aExportTablesPhilips in utl_file.file_type,
aExportReferencesPhilips in utl_file.file_type,
aExportIndexesPhilips in utl_file.file_type,
aExportGrantsPhilips in utl_file.file_type,
aExportTriggersPhilips in utl_file.file_type,
cTables in out nocopy udt_tables) is
cDDL clob := null; -- colletion to save DDL
plIndex pls_integer := null;
sTableName varchar(30) := null;
begin
for i in cTables.first .. cTables.count loop
plIndex := i;
sTableName := cTables(plIndex);
* Retrieves the DDL and the dependent DDL into cDDL clob *
* for the selected table in the collection, and writes to file.*
begin
cDDL := dbms_metadata.get_ddl('TABLE', sTableName, 'PHILIPS');
sp_writes_ddl(aExportTablesPHILIPS, cDDL);
exception
when dbms_metadata.object_not_found then
null;
end;
begin
cDDL := dbms_metadata.get_dependent_ddl('REF_CONSTRAINT', sTableName, 'PHILIPS');
sp_writes_ddl(aExportReferencesPhilips, cDDL);
exception
when dbms_metadata.object_not_found2 then
null;
end;
begin
cDDL := dbms_metadata.get_dependent_ddl('INDEX', sTableName, 'PHILIPS');
sp_writes_ddl(aExportIndexesPhilips, cDDL);
exception
when dbms_metadata.object_not_found2 then
null;
end;
begin
cDDL := dbms_metadata.get_dependent_ddl('OBJECT_GRANT', sTableName, 'PHILIPS');
sp_writes_ddl(aExportGrantsPhilips, cDDL);
exception
when dbms_metadata.object_not_found2 then
null;
end;
begin
cDDL := dbms_metadata.get_dependent_ddl('TRIGGER', sTableName, 'PHILIPS');
sp_writes_ddl(aExportTriggersPhilips, cDDL);
exception
when dbms_metadata.object_not_found2 then
null;
end;
end loop;
end sp_seeks_ddl;
procedure sp_writes_ddl(aExport in utl_file.file_type,
cDDL in out nocopy clob) is
pLengthDDL pls_integer := length(cDDL);
plQuotient pls_integer := null;
plRemainder pls_integer := null;
begin
* Register variables to control the amount of lines needed *
* for each DDL and the remaining characters to the last row. *
select trunc(pLengthDDL / 32766), mod(pLengthDDL, 32766)
into plQuotient, plRemainder
from dual;
* Join DDL in the export file. *
* ps. 32766 characters + 1 character for each line break. *
-- if the size of the DDL is greater than or equal to limit the line ...
if plQuotient >= 1 then
-- loops for substring (lines of 32766 characters + 1 break character):
for i in 1 .. plQuotient loop
utl_file.put_line(aExport, substr(cDDL, 1, 32766));
-- removes the last line, of clob, recorded in the buffer:
cDDL := substr(cDDL, 32767, length(cDDL) - 32766);
end loop;
end if;
* If any remains or the number of characters is less than the threshold (quotient = 0), *
* no need to substring. *
if plRemainder > 0 then
utl_file.put_line(aExport, cDDL);
end if;
-- record DDL buffered in the export file:
utl_file.fflush(aExport);
end sp_writes_ddl;
begin
-- executes main procedure:
sp_select_tables;
end pck_restore_philips;<font color="red">The problem is that I still have ...
When creating the primary key index is created and this is repeated in the file indexes.
How to avoid?</font> -
How to find the most matched values in the set of map?
Hi friends!
I have two vectors
vector<int> V1; vector<int> V2;
and a map<int, set<int>> M1;
I want to select common values from both V1 and V2 and check those values with the set in the map M1.
For example:
V1 contains;
2 4 6 8 9
V2 contains;
4 5 6 9 10
M1 contains;
1=>1 2 5 9
2=>4
3=>5 10
4=>2 4 8
5=>4 9
6=>4 6
7=>9 12
When we select the common values of V1 and V2 it is 4, 6, 9.
And we search for all 4, 6, 9 from the values of M1 which give more appropriate.
But, no all values in the set of map.
Then, we delete any value from 4, 6, 9, then remaining values would match any values from the map.
From the example, if we delete 6, then remaining 4, 9 will match with 5=>4 9, or if we delete 9, then 6=>4 6. Any one of the keys can be selected.
I know how to select the common values from V1 and V2, but I do not know how to match with the values and select the appropriate key from M1.
Could anyone help me to solve this?This is not the question you asked, except perhaps in the subject. The subject is not the right place to put key features of the question. It is also important to use the body to ask just the question you want
answered. For example your real question has nothing to do with V1 and V2, just the common vector V (e.g. 4 6 9).
One way to solve your problem would be to create a new map
map<int, set<int>> M2;
with the same keys as M1. Each set of M2 should contain the elements of V that are
not in the corresponding set of M1.
Then pick the key of M2 that has the smallest set. If that set is empty, then the whole of V can be used. Otherwise the smallest set tells which elements of V have to be removed, and which is the desired key of M1.
In your example, key 5 of M2 will contain just 6, so you should remove 6 from V and select key 5.
Yes fine. I tried the following code and it creates the map M2 (NewMyMap in my code). But how to find the smallest set starting from size 1?
#include <vector>
#include <algorithm>
#include <iostream>
#include <map>
#include <set>
using namespace std;
typedef vector<int> IntVec;
typedef set<int> IntSet;
typedef map<int, IntSet> SetMap;
bool IsValueNotInSet(int value, IntSet& S);
SetMap CreatNewSetMap();
IntVec IVec; //This vector is for selecting certain keys from mySet map.
IntVec myVec;
SetMap mySet;
SetMap NewMyMap;
int main()
IVec.push_back(3); IVec.push_back(4); IVec.push_back(5); IVec.push_back(6);
myVec.push_back(4); myVec.push_back(6); myVec.push_back(9);
IntSet tempS;
tempS.insert(1); tempS.insert(2); tempS.insert(5); tempS.insert(9);
mySet.insert(make_pair(1,tempS));
tempS.clear();
tempS.insert(4);
mySet.insert(make_pair(2,tempS));
tempS.clear();
tempS.insert(5); tempS.insert(10);
mySet.insert(make_pair(3,tempS));
tempS.clear();
tempS.insert(2); tempS.insert(4); tempS.insert(8);
mySet.insert(make_pair(4,tempS));
tempS.clear();
tempS.insert(4); tempS.insert(9);
mySet.insert(make_pair(5,tempS));
tempS.clear();
tempS.insert(4); tempS.insert(6);
mySet.insert(make_pair(6,tempS));
tempS.clear();
tempS.insert(9); tempS.insert(12);
mySet.insert(make_pair(7,tempS));
cout<<"MYVEC\n";
cout<<"-------------\n";
for(IntVec::iterator itv = myVec.begin(); itv != myVec.end(); ++itv)
cout<<(*itv)<<" ";
cout<<"\n\n";
cout<<"\nMYSET\n";
cout<<"-------------";
for(map<int,set<int>>::iterator its = mySet.begin(); its != mySet.end(); ++its)
cout << endl << its->first <<" =>";
for(IntSet::iterator sit=its->second.begin();sit!=its->second.end();++sit)
cout<<" "<<(*sit);
cout<<"\n\n";
NewMyMap= CreatNewSetMap();
cout<<"\nNEWMYSET\n";
cout<<"-------------";
for(map<int,set<int>>::iterator its1 = NewMyMap.begin(); its1 != NewMyMap.end(); ++its1)
cout << endl << its1->first <<" =>";
for(IntSet::iterator sit=its1->second.begin();sit!=its1->second.end();++sit)
cout<<" "<<(*sit);
cout<<"\n\n";
return 0;
bool IsValueNotInSet(int value, IntSet& S)
IntSet::iterator it=find (S.begin(), S.end(), value);
if (it!=S.end())
return false;
return true;
SetMap CreatNewSetMap()
IntSet TSet;
for(IntVec::iterator it = IVec.begin(); it != IVec.end(); ++it)
SetMap::iterator its = mySet.find(*it);
if (its != mySet.end())
TSet.clear();
int key = its->first;
IntSet& itset = its->second;
for(IntVec::iterator itv = myVec.begin(); itv != myVec.end(); ++itv)
if(IsValueNotInSet((*itv), itset))
TSet.insert(*itv);
NewMyMap.insert(make_pair(key,TSet));
return NewMyMap;
Maybe you are looking for
-
My iPod is appering in my computer, but not in iTunes
I recently installed iTunes 10 and today I installed 10.1, but neither is recognizing my iPod touch. I have tried everything support has sudjected, including reinstalling iTunes twice. Today, I tried what another user had sudjected, by plugging in my
-
New Mac Mini won't connect with new Dell Monitor
I connected the power cord and then the HDMI from Mini to Monitor, but it said it needed a DVI-D cable. or it would in 5 minutes go into power save mode, which it did, so there's no picture from Mini Where would that connect on the Mini? Where can I
-
ADF Faces - filtering a selectOneChoice after select from another
Hi, I'm new to ADF faces and I've been experimenting with developing applications using Jdeveloper 10.1.3 and ADF faces. I've run into a little problem. I have two selectOnceChoice fields on a page (division and dept.) When user selects a Division I
-
Hi all, I am using an Infospoke to extract data from an infocube to the application sever in .CSV format. There are five fields in the extract. Since I want to filter out negative values coming in field5 I am using a BADI implementaion to do that. At
-
For iPhone5 with mophie case users!!!
Three days ago I purchased iPhone 5 with mophie case. I tried to transfer data from my old 4S to new device via iTune. However, I was not successful at it because my computer could not recognize my i5. After trying to find out the problem myself for