Can someone show me a simple tail-recursive function in C++?
Why is tail recursion better, if it even is?
What other kinds of recursion are there besides tail recursion?
Could someone give me a little direction on creating crossfades/dissolves between two UIImageViews in the same view controller? I am trying to set up an effect of a background image slideshow but not sure on the mechanics. Thanks.
hello, im writing a Usb driver and i have an issue.
when i insmod the driver with the device already plugged in before, the probe function is not called. it is only called after i disconnect the device and plug it again.
i wanna make it work when i start my pc with the device plugged in.
could someone please help me?
best regards,
jacob.
Can someone please recommend some tools that would help me measure the size of our website pages? I need to gather the size of the page rendered. We have over 100 pages and so obviously I am looking for a tool that could diagnose an entire domain or folder. I don't want to spend days measuring the pages one at a time.
Thank you so much in advance.
ac
Hi All, I tried to ask this question on the jquery tools forum, but didn't get a response, hopefully someone here can help.
Question:
It seems the onClick event does not get fired when user is already on current tab, I think that make sense for most cases. However, in my case, I do want to capture the onClick event even when the curent tab is already the selection.
Is there a way to do this?
Thanks!
does someone know where to find the deployment target settings for vs2008 when using sharepoint dev addin?
Changed the web server and cannot find where to change the deployment target in my solution... did have a look in .sln and .csproj but no settings found
Get reasonable error message saying it cannot connect to 127.0.0.1:8010 which is correct
Hello,
I have migrated a database project from VS2008 to VS2010. While in VS08, I used to be able to right-click on a .sql or .cmd file and select a "Run" or "Run On" command from the context menu.
In VS2010, though, these menu items seem to have gone away.
I have a number of .sql and .cmd scripts that I am used to being able to run directly from the Visual Studio IDE.
Can someone point me in the right direction?
Thanks,
Steve
Are there any good alternatives for Visio/PowerPoint for drawing architectural diagrams. Both Visio and PowerPoint are annoying to use even for some of the simplest tasks. wondering if someone out there has a better suggestion.
Hi, can someone please tell me where to find the example codes used in this book:
Sitepoint The Php Anthology 2nd
edition
? Ive been looking for this since yesterday. Thanks for answering.
Hi, having taken a look at a few textbooks that discuss numerical methods and C programming, I was gladly surprised when browsing through "programming in C with numerical methods for engineers" by Rojiani. I understand of course it's important that one need to have a solid background in numerical methods prior to try implementing them on a computer.
I would like to know if someone here has been using this book and if possible point out strengths and weaknesses of this textbook.
Thanks a lot...
According to the computer language benchmark game, the LuaJIT implementation seems to beat every other JIT-ed dynamic language (V8, Tracemonkey, PLT Scheme, Erlang HIPE) by an order of magnitude.
I know that these benchmarks are not representative (as they say: "Which programming language implementations have the fastest benchmark programs?"), but this is still really impressive.
In practice, is it really the case? Someone have tested that Lua implementation?
hey guys
im somehow confused in using proper functions to escape and create a slug
i used this :
$slug_title = mysql_real_escape_string()($mtitle);
but someone told me not to use it and use urlencode()
which one is better for slugs and security
as i can see in SO , it inserts - between words :
http://stackoverflow.com/questions/941270/validating-a-slug-in-django
thanx in advanced
Hi there,
Does anyone know of a good open source toolkit that allows level designer and graphic designer or someone with basic programming experience to create multiplayer online Role Playing Game ? The game can be a simple 2D interface in a 2d virtual world.
I know Microsoft have a starter kit something like the following :
http://creators.xna.com/en-US/starterkit/roleplayinggame
that allows developer to create RPG game running on XBox platform but i am looking more on multiplayer role playing game on the web platform where player can play directly with their browser.
regards
Andrew
i look at this article : http://code.google.com/intl/zh-CN/appengine/docs/python/mail/receivingmail.html
and i want to know : is article used to deal with mail from others send to me ?
and my gmail is [email protected] , so someone send email to [email protected],i can do something automatically use incoming mail ,yes ?
thanks
Hi,
How to read the empty values from the "dbf" file in C#.
Currently while reading the dbf files, the empty values in the file are automatically getting converted to default values.
Like empty decimal field is converted to "0.000".
Can someone please help in way to read the empty fields as they are and not as default values.
Has someone experience with database comparison tools?
Which one you would recommend?
We are currently using "SQLCompare" from Redgate, but I am curious to know if there are better tools on the market.
The main requirement is that they should be able to compare scripts folder against a live database.
Thanks,
Dimi
Hello.
Does anyone know what error message will be displayed
when someone tries to run an application developed using .NET
on a computer where .NET Framework is not installed? ex) Windows XP original.
will the error message tell you that .NET Framework is not installed?
or will it not show any useful messages?
Hi StackOverflow,
Can someone tell me the correct way of passing multiple vectors to a function that can take only a single argument? (specifically for pthread_create (..) function)
I tried the following but it does not seem to work :-(
First, I created the following structure
struct ip2
{
void* obj;
int dim;
int n_s;
vector<vector<vector<double> > > *wlist;
vector<int> *nrsv;
struct model *pModel;
};
The threads that I have created actually needs all these parameters. Since im using pthreads_create I put all this in a structure and then passed the pointer to the structure as an argument to pthread_create (as shown).
some_fxn()
{
//some code
struct ip2 ip;
ip.obj=(void*) this;
ip.n_s=n_s;
ip.wlist=&wlist;
ip.nrsv=&nrsv;
ip.pModel=pModel;
ip.dim=dim;
pthread_create(&callThd1[lcntr], &attr1, &Cls::Entry, (void*) &ip);
}
The Entry method looks something like this.
void* Cls::Entry(void *ip)
{
struct ip2 *x;
x = (struct ip2 *)ip;
(reinterpret_cast<Cls1 *>(x->obj))->Run(x->dim,x->n_s, x->wlist, x->nrsv, x->pModel);
}
The Run method looks something like this.
void Run(int dim, int n_c, vector<vector<vector<double> > > *wlist, vector<int> *nrsv, struct model* pModel )
{
//some code
for(int k = 0; k < n_c; ++k)
{
//some code
end = index + nrsv[k];
//some code
}
I get the following error when I try to compile the program.
error: no match for ‘operator+’ in ‘index + *(((std::vector<int, std::allocator<int> >*)(((unsigned int)k) * 12u)) + nrsv)’
Can someone tell me how to do it the right way.
Madhavan
Hi,
Can someone tell me what is the main difference between a Javascript object defined by using "Object Literal Notation" and JSON object?
According to a Javascript book it says this is an object defined by using Object Notation:
var newObject =
{
prop1 : true,
showMessage : function (msg) {alert(msg)}
};
Why it is not a JSON object in this case? Just because it is not defined by using quotation marks?
Thanks,
int main()
{
int p;
scanf("%d",&p);
fun()
{
int arr[p]; //isn't this similar to dynamic memory allocation??
}
}
//if not then what other objective is achieved using malloc and calloc??
//Someone please throw some light :-)
Hey,
For some time i see that employers demand from programmers knowing Sharepoint, but I have problem with understand what it is :/
But today I was at IT training, and main guy told something like that:" Sharepoint is platform for commit code for programmer, control of version etc..."
It is true? It looks like SVN tool... Can someone explain me what advantages it have for c# programmer?
Thanks ;)
hi
i'd like to run an android emulator with disk image. so I tried this
./emulator -kernel kernel-qemu -system system.img -ramdisk ramdisk.img -initdata userdata.img -partition-size 512
then error massage is :
if you really want to NOT run an AVD, consider using '-data '
to specify a data partition image file (I hope you know what you're doing).
so I found userdata-qemu.img from /out/
but i can't find that file.
someone help me
Hi,
I have made some screenshots of my website, and in internet explorer 6 my website looks crappy (see screenshot)
I have heard something about a PNG fix, is a PNG fix the way to solve the crappy look? and can someone explain me how to implement this?
Hi,
I keep getting this error on my PC:
An I/O operation initiated by the Registry failed unrecoverably. The Registry could not read in, or write out, or flush, one of the files that contain the system's image of the Registry.
I've seen other cases on the web, but there is one difference. this error won't go away with an restart.
can someone help?
thanks,
Sebastian