Hi guys, I want to do a Token concatenation, but I want to do this with the content of a variable, not its name. like this.
#define call_function(fun, member) fun##_##number ()
while (i < 10 ) {
call_function(fun, i);
}
but I give fun_number (), I want to give fun_1, fun_2, and so on...
how to do it?
Thanks in advance!!!
Hello everyone,
I am using VSTS 2008 + .Net 3.5 + C# + Microsoft Expression 3 SDK. I want to capture screen and output a wmv file. I tried hard but can not found C# samples from Google. Any reference samples?
thanks in advance,
George
This function everytime gives "false", even if image_url exists
// some .each {
var item = $('.item', this);
$.ajax({
url: image_url,
success: function() {
item.html("true");
},
error: function() {
item.html("false");
}
});
// }
Its used to check existance of image_url file - this variable gives url like http://blog.com/teddybear.png
Any idea?
I read about NSLocaleCurrencySymbol, but where would I find the variable used to determine the "number of decimal places" used in a country's currency?
I.E. In the USA, it's common to see dollar amounts written with 2 decimal places: $1.23
What about many other countries?
Thanks.
how can i expose description attribute in enum values from service to client or web reference using WCF
or
how can i expose enum with description attribute to client using WCF? while exposing Description attribute is not exposed only enum values are exposed in client. I want value in description attribue in enums.
I am working with WPF TreeView control. I am creating a hierarchical data structure and assigning it to ItemsSource and it will generate TreeviewItems automatically. By default I use IsExpanded of TreeViewItem to true. But in a particular case, I want to set IsExpanded property to false. So that treeview loading doesn't take time to generate all items. How can I set that in code since I don't have reference to TreeViewItem's instance at that time?
Hi All,
When I added a class with non-Ascii caharacters in the class name, it removed the non-Ascii from class name and when added directly to class it complains of non-Ascii characters.
Are Non-ASCII characters not supported in class name and variable name?
This code should automatically connect players when they enter a game.
But the problem is when two users try to connect at the same time - in this case 2nd user can easily overwrite changes made by 1st user ('room_1' variable).
How could I make it thread safe?
def join(userId):
users = memcache.get('room_1')
users.append(userId)
memcache.set('room_1', users)
return users
I'm using Google App Engine (python) and going to implement simple game-server for exchanging peers given by Adobe Stratus.
Currrently, all the topics that are listed in http://help.eclipse.org/galileo/index.jsp are not installed on my machine. I understand that help is only installed for the plugins that are installed already. However, I see that PDE(Plugin Development) API reference is not installed on my local eclipse, though a overview of PDE is.
Basically, I want to have a local copy of whatever is on eclipse help site . How do I get that in HTML format?
hi, i'm building a multi-site application where a client must be able to use his own domain (as oppose to just a subdomain). i like to know the different ways to go about it, and what configuration is needed on both end when/if the client wishes to handle email hosting externally.
any reference to lxadmin/hypervm would be helpful too. tx~
edit:
i'm running apache; no ssl requirement.
I am trying to retrieve the parent of an element's parent (grandparent?). I want to find that grandparent, then find a tag in that element, then store that text as a variable to publish elsewhere on the page. I've been trying to use the parent() function but without success.
Here's the code I tried:
$('.mixPlayCell a').click( function() {
var title = $(this).parent().get(0).parent().get(0).text();
alert(title);
});
Thanks!
I would like to know how I can display a HTML page in webview with references to relative/local images. The goal is to have the html page and all linked images contained in the android application package itself.
Where would I need to place the assets (assets directory?) and how do I reference these so they load into the webview?
Thanx!
Sven
(BOOL)shouldAutorotateToInterfaceOrientation:(UIInterfaceOrientation)interfaceOrientation
My code get this event more than once while device is rotating. I'm searching in apple docs for reference but seems no lucky. Could any one offer a hint why this is happening?
My code is an apple doc sample code, without any change but some logs.
http://developer.apple.com/iphone/library/samplecode/AlternateViews/Introduction/Intro.html#//apple_ref/doc/uid/DTS40008755
I ran ldd command on an executable created by Open MPI. It shows a reference to libpthread.so
Using LD_PRELOAD variable I created my own implementation of pthread_create, but from the it output it seems that MPI implementation is not calling pthread_create as I had expected.
Why does ldd show pthread so file in output if it is not being used?
does Open MPI not use a separate MPI thread for every node to implement the functionality?
How can I get the filesize of a file in C when the filesize is greater than 4gb?
ftell returns a 4 byte signed long, limiting it to two bytes. stat has a variable of type off_t which is also 4 bytes (not sure of sign), so at most it can tell me the size of a 4gb file.
What if the file is larger than 4 gb?
Hi! I need to get output of native application under PowerShell. The problem is, output is encoded with UTF-8 (no BOM), which PowerShell does not recognize and just converts those funky UTF chars directly into Unicode.
I've found PowerShell has $OutputEncoding variable, but it does not seem to affect input data.
Good ol' iconv is of no help either, since this unnecessary UTF8-as-if-ASCII = Unicode conversion takes place before the next pipeline member acquires data.
When using the visual studio 2008 debugger with c# i can right-click on a variable and choose "Make Object ID" which allows me to watch that object (via it's ID) regardless of whether it is in the current stack frame or not.
When the debugger is in VB code, (doesnt matter if it's run from a c# unit test or a vb unit test) That option isn't there.
Where did VB put this feature? Or does it simply not support it like so many other helpful c# features?
I'm just getting started with Mac and iPhone development, and naturally my first step is to change the color theme. I've found a theme I like here, but I can't find the folder they reference in my ~/Library/Application Support/ folder. How can I install these files?
Thanks!
How to determine the browser of the user using PHP?
So that if the users browser is IE then the variable $alert="onbeforeunload" and if it is not IE, for example Firefox (else) then $alert="onload.
Help is much appreciated.
Thanks
Also please note that I can not install browscap.ini on my PHP server.
I have a C# ASP.NET MVC application which has been using jquery 1.3.2 in VS2008 environment.
I decided to upgrade to 1.4.2 and added the file to my project. Changed the reference in my masterpage header to the new version. But now nothing works, it's like it can't find the jquery library.
What could be wrong?
Why am I getting an "out of scope" error whenever I try to access the "url" variable in this loop?
for(NSString *url in self.winnerImageURLs) {
[mediaItemString appendFormat:@"{\"type\":\"image\",\"src\":\"%@\",\"href\":\"%@\"},", url, url];
}
The class of very item in the "self.winnerImageURLs" NSMutableArray comes back as NSCFString so I'm not sure what the dealio is here.
Any ideas on what I'm doing wrong???
Thanks
There is a link with title and some value:
<a href="http://site.com/someid/" title="Use ctrl + >">next</a>
How to find this link and throw its href attribute to some variable?
Hello All
I would like to update a column in Table with reference to other column(s) in same table.
Ex: As in figure below - I would like to update effective endate with min date whichever is greater than effective Start Date of currrent record.
How can this be acheived in T-SQL. Can this be done with single update statement ?
Thanks.
If you go to the "Variable Grid System" generator
and have:
column width = 20
number of columns = 12
and gutter width = 60
...the system provides a content width
of 900 and a full width of 960.
http://www.spry-soft.com/grids/
Now, this is all fine and dandy in Firefox, Chrome,
and even IE6, but when you load those settings in IE8,
you end up with the actual full width as 1000px,
not 960px.
Has this issue been encountered before?