Assume,
void proc(CString& str)
{
str = "123";
}
void runningMethod()
{
CString str="ABC";
proc(str);
}
I understand that at the exit of runningMethod str will be deallocated automatically; in this case, how does C++ delete the old data ("ABC")?
Thanks,
Gil.
Hi, I have a problem commiting to svn server, Here's what I got,
File Can't read
'D:\SVNROOT\UC\db\txn-current'.: End
of file found
(It's traslation of Korean, so there's might be differ than what English error said..)
In previously, I shut down transaction when update from svn, cause some file was so big,
so I was shut down downloading for delete big files first, but after that, I got message
about 'txn-current',
does anybody can help me to solve this?
thank you for regarding this
Hi
i have a huge database, around 1 TB in size, most of the space is consumed by a table which stores images, the tables has right now almost 800k rows.
server response time has increased, i would like to know which techniques should i use or you recomend, partitioning? o how to reorganize the table
every row is accessed by the image id column, and it has its clustered index by that column, and every two days i reorganize the index and every 7 days i rebuild it, but it seems not to be working
any suggestions?
hi, i have 3 tables:
post (id_post, title)
tag (id_tag, name)
post_tag (id_post_tag, id_post, id_tag)
Lets suppose that id_post 3 has 4 linked tags 1,2,3,4 (soccer, basket, tennis and golf).
Is there a way to return something like this in ONE row?
col 1 id_post = 3
col 2 tags = soccer basket tennis golf
Thanks
My question is more like a theoretical.
Say you have an object, that represents the list of something (articles, pages, accounts etc.)
class ObjCollection
You have a class, that represents a specific item in collection:
class objItem
I have a problem thinking of a basic responsibilities of each object.
Which class is responsible for creating a new objItem?
Which class is responsible for deleting a objItem? Should it delete itself as a method?
I have a iterator (ite) created from a set (a):
var a = Set(1,2,3,4,5)
var ite = a.iterator
If I remove 2 element of my set:
a -= 2
Now, if I move iterator for all elements, I get all elements (2 element included). It's ok, but... How I can tell to iteratator to delete 2 element?
I'm creating a site which I want to place content input form in custom themed template. I opted to do this because I wanted the whole site to be looked uniform. That said, I'm not sure as to what is the best approach to do this. Is it proper to invoke hook_insert/delete/update and hook_perm/hook_access by myself or is there anyway I can still use my custom theme and write a code in a way that drupal would take care of invoking appropriate hooks accordingly?
Thanks in advance
PS : I'm on drupal 6.x
I'm creating a formset, but it seems to populate it with all of the existing data in the table for that object. I can't figure out how to start with a blank formset; the only way seems to be to delete all of the data from the table, but clearly this isn't an option.
I will post code if necessary (but there's lots of it, so knowing what is relevant is tricky).
I have two tables.
table_x:
id INT(11)
tag INT(11)
table_tags:
id INT(11)
name VARCHAR(255)
Then I use PHP to perform the following query:
SELECT * FROM table_x LEFT JOIN table_tags ON table_x.tag = table_tags.id
The only problem is: how do I access table_x.id and table_tags.id in the results?
Here is the PHP code:
$query = "SELECT * FROM table_x LEFT JOIN table_tags ON table_x.tag = table_tags.id";
$results = mysql_query($query);
while($row = mysql_fetch_array($results))
{
// how do I now access table_x.id and table_tags.id ???
}
Hi, if an INSERT and a SELECT are done simultaneously on a mysql table which one will go first?
Example: Suppose "users" table row count is 0.
Then this two queries are run at the same time (assume it's at the same mili/micro second):
INSERT into users (id) values (1)
and
SELECT COUNT(*) from users
Will the last query return 0 or 1?
As jquery ajax calls makes life really cool without a page refresh... But still interested to know some of the advantages and disadvantages of making ajax calls with jquery....
As i am using ajax calls for all my Add,Edit and Delete operations in my website it works pretty well as of now... Still knowing about the disadvantages would make life easier during deployment....
hi
I have a jtable and I want the user to fill its cells then i get what he wrote!
the problem is when i try getValueAt(row index,col index ) the programe give me null , and i am sure that the cell i choose has a value .
I want to make custom combo box which have contain datagrid and textbox too.
On clicks into combo box datagridview should be appear and selecting any row particular cell value of the datagridview added on the combo.
thanks in advance..
As far as i can see in a situation like this:
var x = [];
var y = {};
y.someProp='asd';
This doesnt work:
x.push(y);
What I want to do is add a reference of y to x so that later if I will "delete y;" I want it also to be removed from the array x.
My understanding is that ROWID is a unique value for each row in the result returned by a query. why we need this ROWID ?( there is already ROWNUM is ORACLE). Have any one used ROWID in sql query?
I have this code [tableView deselectRowAtIndexPath:indexPath animated:YES];
Why doesn't the table view deselect the row, What am i doing wrong.
EDIT:
-(void)tableView:(UITableView *)tableView didDeselectRowAtIndexPath:(NSIndexPath *)indexPath{
[tableView deselectRowAtIndexPath:indexPath animated:YES];
}
i m binding gridview in asp.net application...
i m about to bind some thousand records in datagrid...
on RowDataBound event of the grid i need to check if the log in user is authorised to view the perticuler record...so i need to send database request...like wise such other two to three operation requires to send request to database....
about three to four request are sended to database during each row bound of the gridview...is it effective on speed of the grid?
A table row with two columns. One contain a image and another column contain a very large text. The text should start to the right of the image and if goes beyond the image size then the next line should come below the image.
IMAGE. Text starts here and then
follows like this
I have table like below in the html file:
<table border="1">
<tr>
<td>BuyQuantity</td><td>SellQuantity</td>
</tr>
<tr>
<td>15D</td><td> <span style="font-family: "Arial Unicode MS";"><o:p></o:p></span></p></td>
</tr>
<tr>
<td> <span style="font-family: "Arial Unicode MS";"><o:p></o:p></span></td><td>38D</td>
</tr>
<tr>
<td> <span style="font-family: "Arial Unicode MS";"><o:p></o:p></span></td><td>99D</td>
</tr>
<tr>
<td>38D</td><td> <span style="font-family: "Arial Unicode MS";"><o:p></o:p></span></td>
</tr>
</table>
There are two columns: buy-quantity and sell-quantity.(It is only example but in each html file there is different content in the table.) Now with the content of these two columns I want to decide there is items bought or items sold.Like in the first row there is 15d buy-qauntity then items were bought and in the second row there is 38d sell-qauntity then items were sold and so on. And after deciding there is items-bought or items-sold I want to build one column named buy/sell for this table like below:
![alt text][1]
[1]: http://C:\Documents and Settings\Administrator\My Documents\My Pictures\untitled.png
How can I do this ?
Dear,
is there any posibilty to intercept the contact.
if user add,delete and update any contact system notify that changes occur in the contact.
thanks
I have a login form using a UITableView. One of the cells has a UISwitch which when on will delete the row above it and when off reinsert it.
But the first cell automatically has the keyboard up when the cell is created (basically when the view loads) (by using [cell becomeFirstResponder];)
Inserting/deleting any of the cells means that the keyboard animates out and then animates back in.
I'd like to remove this so the keyboard stays up while rows are deleted/inserted.
During a SSIS load, when an employee table is getting updated, locking comes into effect.
However, have disabled lock escalation on the table using the following statements:
ALTER TABLE dbo.Employee SET (LOCK_ESCALATION = DISABLE)
DBCC TRACEON (1211,-1)
However, the table (object) does get locked and is held for almost an hour. The total no. of updates (insert, update, delete statements) are approx 200,000
I have a table (EmployeeID,EmployeeName,ManagerID) How can I create a sqldatasource to include the ManagerName from the EmployeeName given EmployeeID = ManagerID? In my gridview after dragging a dropdownlist what bindings should I do to display the managerName? Is it possible to use it without writing custom select,insert,delete,update? If not what are the steps I need to do to write the whole thing i.e. custom grid and source?
Thank you very much