I have this snippet of the code
char *str = “123”;
if(str[0] == 1) printf("Hello\n");
why I can't receive my Hello thanks in advance!
how exactly compiler does this comparison if(str[0] == 1)?
Hi all
I am a newbie to the python. Can I unhash, or rather how can I unhash a value. I am using std hash() function. What I would like to do is to first hash a value send it somewhere and then unhash it as such:
#process X
hashedVal = hash(someVal)
#send n receive in process Y
someVal = unhash(hashedVal)
#for example print it
print someVal
Thx in advance
I want to develop a module to implement such a feature:
when exchange receive emails in the mailbox : [email protected]
the module will be triggered and modify the email's TO Address to /test/@smb.local and save back to mailbox [email protected].
Thanks in advance!
On my form onbutton submit following events takes place:
1) CGI is called which uploads the file
2) Javascript/Ajax function is called which opens a request for another CGI and is supposed to receive updated values from there. However, it seems that the CGI with which Ajax is communicating is not responding to Ajax requests.
My question is that is it possible to run two CGIs simultaneously?
SO i think its plausible to send and receive an Instant Message via sever codes.
Just clearly wondering if there is an API or anything to function the possibility to send an IM to someone using MSN Live and others.
Hi All.
I need to implement push notification in my application.
Actually i have to receive messages from the server.
Kindly guide me how i can implement push notifications in my iphone application.
I am using the jQuery sortable() feature to re-order a list of items. After an item is drug to a new location, I kick off an AJAX form post to the server to save the new order. How can I undo the sort (e.g. return the drug item to its original position in the list) if I receive an error message from the server?
Basically, I only want the re-order to "stick" if the server confirms that the changes were saved.
Hello All,
I'm new in MPI programming world and i'm wondering if there is some variables shared between MPI processees and accessible from any process without having to send/receive them ?
Thanks
Hi,
I am writing a chrome plugin in which I would like to receive events such as "load", "unload" of window and page. However, I'm not getting any concrete clue to start with.
Can anyone tell me how to capture DOM event in plugin?
Does Chrome support this feature?
Thank you.
I'm writing a multi-tenant app that will receive requests like http://www.tenant1.com/content/images/logo.gif and http://www.anothertenant.com/content/images/logo.gif. I want the requests to actually map to the folder location /content/tenant1/images/logo.gif and /content/anothertenant/images/logo.gif
I'm using asp.net Mvc 2 so I'm sure there's probably a way to setup a route to handle this or a custom route handler? Any suggestions?
Thanks!
Hi i am displaying an icon in status bar.Now i want to remove that icon immediately when i open that content , after some time if we receive any alert ,that icon will be displayed again.For this what can i do?Thanks in advance
I'm using the method described at http://stackoverflow.com/questions/805872/how-do-i-draw-a-shadow-under-a-uiview to draw shadow behind a view's content. The shadow is clipped to the view's bounds, although I disabled "Clip Subviews" in Interface Builder for the view. Is it possible to draw a shadow around a view and not only in a view?
I don't want to draw the shadow inside the view because the view would receive touch events for the shadow area, which really belongs to the background.
Hi,
I have application where I read/receive data all the time (text) and I need to display this data into datagridview, what is the best way to do that in real time, so the data will be changed all the time.
I thought about multi threading, if this is a good idea can you guide me with link to explain how to implement it.
Thanks
i have a file of this format:
3.334 1
2.345 1
1.453 1
3.343 1
and so on
but in middle at times in file there are few number which are not in float format and i receive type msg when i run them performation some operation..
I want to give a condition that:
if(not in float format):
continue
else:
perform operation
please tell me how to put the condtion
I'm implementing a little chat application where I receive messages from a server, which I would like to display to a user. As I'm more of a backend guy, and lacking experience in frontend development, I don't know which element would be suited best to output the text.
Two options come to my mind:
Using a plain div
Using a textarea (as far as I understand, this is intended to be used for input).
(Would also be nice if I could somehow fade in the text using JQuery).
Does AMQP has any advantages over an ad-hoc implementation for a simple stats gathering scenario? It works like this - clients send events (more than we care to put into persistent storage) to (several) web workers, the workers aggrregate them and write to a single database. I don't think I should consider using AMQP for this because I'll still need web workers to receive events from clients through HTTP and to publish them. Am I missing something?
I have a scale that connect to PC through RS232, I send "W" to receive the weight. The scale sends the weight all the time as it's read. How do I catch the weight that is being read?
Can i get any C# sample code?
In .NET, both array and list have Enumerable as ancestor, so a method that accept Enumerable as an argument can receive both array and list as its argument.
I wonder if there is a similar thing in Java?
I am currently following along with http://www.asp.net/mvc/tutorials/mvc-4/getting-started-with-aspnet-mvc4/accessing-your-model's-data-from-a-controller to get a grasp of MVC 4.
I am trying to add the MoviesController, but whenever I do I receive an error that says...
"Unable to retrieve metadata for 'MvcMovie.Models.Movie'
unrecognized configuration section entityFramework
(C:\Users\User\AppData\Local\Temp\tmp4FFB.tmp line 76)"
The last thing I did before this was change the Web.config file from the end of the previous page in the tutorial.
I am writing a web service that will receive uploads from mobile clients. The data will have 4 or more text fields followed by a large binary field. What is the best standard technology to use for this, as I may make the API public in the future and want to use something that everyone likes. XML? SOAP? Just HTTP and a completely customized payload?
Thanks.
I'm trying to read first row from the file
> source ./rank file
using this script
set line = ($<)
but when I enter
echo $line I receive nothing, how can I change it? thanks in advance
Let's say I have this list:
my @list = qw(one two three four five);
and I want to grab all the elements containing o. I'd have this:
my @containing_o = grep { /o/ } @list;
But what would I have to do to also receive an index, or to be able to access the index in grep's body?
I am just starting out with ADO.net Entity Framework I have mapped two tables together and receive the following error:
Error 1 Error 11010: Association End 'OperatorAccess' is not mapped. E:\Visual Studio\projects\Brandi II\Brandi II\Hospitals.edmx 390 11 Brandi II
Not sure what it is I am doing wrong
I have something like a blog with posts and tags. I want to add email notification functionality - users can subscribe to one or more tags and receive email notifications when new posts are added.
Currently I have a Tag model.
There will be a Subscriber model (containing the user's email)
Do you think I also need a Subscription table where Subscriber and Tag are joined?
.. or I can skip it and directly link Subscriber with Tag?
When users subscribe to the newsletter on A Magento Store they receive a confirmation email. Is it possible to prevent this email from being sent?
There doesn't seem to be an option in the back end for this.