Questions tagged [insertion]

place into or between other items in an enumeration

578 questions
7
votes
1 answer

How to use core data's add & remove (NSSet) accessor methods?

In this test Core Data project, I have a one to many relationship from "Customer" to "Products" and this relationship is named 'products'. Customer's attribute is 'name' and Product's attribute is 'item'. I've subclassed the entities and Xcode has…
kangaroo
  • 105
  • 1
  • 5
6
votes
1 answer

WMI: Get USB device description on insertion

How can I get a device Id and other description on insertion of USB device? I've found an example how to get notified about USB device insertion/removal. But how to get device desrtiption info? Here is my code snippet: WqlEventQuery…
Jeffrey Rasmussen
  • 367
  • 4
  • 8
  • 21
6
votes
1 answer

QTreeView & QAbstractItemModel & insertRow

I'm trying to implement QAbstractItemModel for QTreeView. I have problem with inserting rows. I noticed that if I insert at the beginning of my application all works fine. But If I insert rows later - after some other operations (like selections…
Lukasz Spas
  • 595
  • 2
  • 9
  • 23
6
votes
1 answer

Adding text and lines to the beginning of a file

I'd like to be able to add lines to the beginning of a file. This program I am writing will take information from a user, and prep it to write to a file. That file, then, will be a diff that was already generated, and what is being added to the…
Thomas Ward
  • 2,714
  • 7
  • 36
  • 51
5
votes
3 answers

Batch Insertions with Hibernate & Spring

My application is based on Hibernate 3.2 and Spring 2.5. Here is the transaction management related snippet from the application context:
nora
  • 61
  • 1
  • 1
  • 2
5
votes
1 answer

Selecting a Random Row in Oracle

I need to randomly select values from one table, e.g. tableA.a_id which is a VARCHAR2, and use the value to insert into another table. For instance, assuming three columns needs to be inserted into 100 rows of tableX (a sequence number, a random…
NuCradle
  • 665
  • 1
  • 9
  • 31
5
votes
1 answer

How to add an image at a specific location in Flex/Spark TextArea or TextFlow

I have a Spark TextArea: Lorem ipsum etc.
selfsimilar
  • 1,397
  • 2
  • 18
  • 31
5
votes
3 answers

A particular problem with btree insertion

I have been playing with the very cool btree applet at slady.net. I'm having trouble understanding a particular behavior. Take a look at this starting state: alt text http://www.freeimagehosting.net/uploads/db2931c7da.jpg This particular state was…
dicroce
  • 45,396
  • 28
  • 101
  • 140
5
votes
1 answer

Codeigniter, error tracking in transaction

I'm running a little method in CodeIgniter to insert some lines in the database (same table). I would like to see which insertion have failed inside a transaction (by returning an array of titles). My code is : $failure = array(); //the array where…
Dargor
  • 223
  • 3
  • 8
5
votes
1 answer

class has no member "operator<<"

I have read through Should operator<< be implemented as a friend or as a member function? and Overloading Insertion Operator in C++, looks like the similar problem, but didn't fix my own problem. My header file: using namespace std; class Animal…
HoKy22
  • 4,057
  • 8
  • 33
  • 54
5
votes
3 answers

Optimizing Inserting into the Middle of a List

I have algorithms that works with dynamically growing lists (contiguous memory like a C++ vector, Java ArrayList or C# List). Until recently, these algorithms would insert new values into the middle of the lists. Of course, this was usually a very…
Travis Parks
  • 8,435
  • 12
  • 52
  • 85
4
votes
1 answer

10,000,000 Integer Array Insertion Sort in Java

So I have written the insertion sort code properly to where it will successfully create arrays of 10, 1,000, 100,000 and 1,000,000 integers between 1,000 and 9,999 and complete the insertion sort algorithm just fine. However, when I attempt the last…
4
votes
3 answers

template class and insertion extraction overloaded

How can I make the insertion (<<) and/or extraction (>>) operator overloaded in a template class WITHOUT making it inline. I would like to have the << or >> operator as a friend class. I know how to make it inline example of inline in a matrix…
user317955
4
votes
1 answer

Inserting a column at specific location in 2D array in numpy?

I have a 2D numpy array and I need to add one column before the first column as id. My array is this: x = [['8' '4' 'M' '55' '7' 'S' '7' '2'] ['36' '4' 'F' '58' '1' 'M' '7' '7'] ['33' '3' 'M' '34' '4' 'M' '2' '3'] ['43' '1' 'F' '64' '4' 'M' '7'…
Reihan_amn
  • 2,645
  • 2
  • 21
  • 21
1
2
3
38 39