hello, can I have this snippet of the code:
C *pa1 = new C(c2);
and I transfer it to another function:
foo(pa1);
what exactly do I transfer actual pointer or its copy, thanks in advance
and can somebody give some info about in which cases info is copied, and in which I transfer actual pointer
Hello everyone
I hope to move UITableView tiems fromn left to right and reload a new table array.
I know it can done by navigationcontroller.
But if there is a way without navigationcontroller.
Thanks
intterdev
Hello,
I would like to set a cookie with PHP that has to expire at the end of the month.
How can I get the number of seconds until the end of the month?
Thank you.
Hello all,
I have found a class I would like to use to get bookmarks from a users delicious account. Here is how it is used.
The problem I am having is, should I be turning this into a Codeigniter library? Can I not use it on its own as this is self contained? I am guessing I am asking for the best practice here.
Thanks all for any help
hello.
Is there some way to document template parameters like this:
template<
int N, ///< description
typename T ///< description
>
rather than listing each parameter with tparam?
thank you
hello everyone,
Can anyone please tell the way to find out the mac address of a system which is:
1. Shutdown
2. Power plugged in
3. Connected to Lan
4. Nic card ON.
Kindly post the solution as i urgently need it in my project...
thank you
Hello Team,
I am using the below code in my application ...
Process process = Runtime.getRuntime().exec(
"perl " + perlScript + " " + project + " " + fileName);
:
:
:
result = process.waitFor();
:
:
and this result gives the code 2 every time.....while running the application.
what could be the reason for the "reason code" ???
Thanks In Advance
Hello guys,
here i have a problem that is , in a from data is inserted in database on click on a button when it it will be done successfully, if the page is refreshed then the click event is fired again and the data is inserted again .
so please tell me a appropriate solution to resolve it .
Hello,
I'm having a hard time trying to replace this weird right single quote character. I'm using str_replace like this:
str_replace("’", '\u1234', $string);
It looks like I cannot figure out what character the quote really is. Even when I copy paste it directly from PHPMyAdmin it still doesn't work. Do I have to escape it somehow?
Hello,
There is a website (very simple) which will be updated soon and I'd like to receive an alert at the moment it changes (like a sound, a popup,...)
I guess I should send request every x minutes and compare the result with what's now but I don't know how to do that.
I don't really care about the language used, I know java, python, php, a bit of c and bash (I'm on linux)...
Thank you
I've heard that objective-C is a proper superset of C, but is objective-C 2.0?
The reason I ask is that either it isn't, or I misunderstand the phrase 'proper superset', because this code is valid C syntax:
import
int main () {
char *nil = "hello";
printf("%s\n",nil);
}
But does not compile in Objective-C 2.0. Obviously, this is an easily fixable problem, but I'm writing a paper, and feel that this is something that should be pointed out.
Hello.
I can not find how to implement a design in C++. In the language of Delphi in case the operator can write the following design:
case s[j] of
'0'..'9','A'..'Z','a'..'z','_': doSomeThing();
How can i do the same in c++. Attracts me is the construction type 'a' .. 'z' and etc...
Thank you
Hello,
I need help with select statement in MSSQL.
My table looks like this:
Id (int)
QuestionId (int)
GenreId (int)
I want to select random N rows from this table so that maximum number of same GenreId in the result set is less than X for all GenreId-s except one. For that one GenreId, I need row count with that GenreId to be equal to Y.
Thanks in advance
Hello All,
I am doing small Project in JSF richfaces.
I have specified getter and setter methods for member variables...
Mbean created for the same. The Constructor getting called but all other methods which i have specified is not calling.
i have specified bean in faces-config also
please help me out
Thanks,
Jungle_Hacker
Hello,
Im trying to write query in linq
Select UserId, UserNumber
FROM User
where UserNumber in
(Select UserNumber
FROM User
group by UserNumber
having Count(UserId) = 1)
Aby hints ?
Hello
I want to use XQuery on a column of data type NTEXT (I have no choice!). I have tried converting the column to XML using CONVERT but it gives the error:
Incorrect syntax near the keyword 'CONVERT'.
Here's the query
SELECT
y.item.value('@UserID', 'varchar(50)') AS UnitID,
y.item.value('@ListingID', 'varchar(100)') AS @ListingID
FROM
dbo.KB_XMod_Modules
CROSS APPLY
CONVERT(xml, instancedata).nodes('//instance') AS y(item)
(instancedata is my column)
Can anyone think of a work around for this ?
Thanks
Hello,
why does
List<Object> objectList; = some objects
List<Object> getList()
{
return objectList; //or return new List<Object>(objectList);
}
return a list with all items referenced to the original list's items?
Thanks.
Hello
var myarr= Array('test1','test2','test3');
var searchTerm = "test";
var rSearchTerm = new RegExp( searchTerm,'i');
$.each(myarr, function(i) {
if (myarr[i].match(rSearchTerm)) {
//item found
}
});?
guys is there any way to make my search algorithm better ? "myarr" will be a big array so i want to make sure that i'm using the best way to search in it
thanks alot
Hello, i was viewing this video and i really want to develop this is PHP with no AJAX, do you how to start? where can i find some examples codes? Thanks.
Hello,
I am trying to redirect from:
domain.com/uploads/$
to
domain.com/download.php?file=$
$ being the variable.
I have tried many different ways but do not seem to be redirecting, I've tried, R=301,L,QSA and in various different orders.
Anyone help? Thanks!
Hello everyone.
How can I remove the . and .. from a path in Delphi (not using .NET).
I need a function, so I can pass it something like 'c:\program files..\program files...', and I want the function to return to me 'c:\'.
Can Delphi do that on its own? Or do I need to do it myself?
Hello All,
it's just my curiosity to know that why phpmyadmin behavior in different manner when we modify query a bit( putting extra space) then headers of query results, sometime comes in Button format( on hover it say sort, but sorting not working at all) and sometimes in blue link
is there any difference for this or it just causing by some othe reason?
i m attaching both images.
Button headers
Link headers