Hi, how can I get a list of windows shown on the taskbar on Windows 7? I have tried EnumWindows, but I'm getting way more windows than those shown on the taskbar (800 vs 15).
So I've been struggling with a nice and easy way to allow users to access a private page without asking them to fill out a login/password form.
What I'm thinking about using right now is for each private page I generate a uniqueid (using php uniqid function) and then send the URI to the user. He would access his private page as "www.mywebsite.com/private_page/13ffa2c4a". I think it's relatively safe and user friendly, without asking too much of information. I thought maybe when the user access this page it would ask for it's e-mail just to be sure, but the best would be nothing at all.
Is this really safe? I mean not internet banking safe, but enough for a simple access? Do you think there's a better solution? Thanks. :)
Sorry for this english related question but I only came across that expression in the context of IT. What does abstracting over something mean ? For example abstracting over objects or abstracting over classes.
Thanks
How do you read an incoming tcp stream until a specific delimiter is found in C#?
The only possible solution I have come up with is reading the incoming stream one byte at a time.
I have a Java Swing project for my class. I would like put it on my website so people can use it. However I'm not sure if there is a way to turn it into a servlet. Or do I need to know JavaScript? I'm confused. Is there a way to make my swing application into a servlet automatically?
From what I can tell from the docs, semantic works by slowly building up an idea of what's in your project by analysing each file (and possibly its neighbours) as you visit them. This is too slow. I'd like to just have it visit all the files in my project. Is there an easy way to do this? Having to visit hundreds of files before I can get decent autocomplete working seems crazy.
I've also got a etags file generated. Can I leverage that somehow?
If you had to describe your language of choice as a superhero, which would it be and why?
VB.NET would be The Thing. Not considered pretty and shunned by a few, but does a lot of heavy lifting without any of the glamour.
Hi, i am trying to find out, how to get input from html inputs using c++. In windows you can send WM_GETTEXT to the window and it returns text, that you wanted. But is there any way to do the same thing in web interface?.
I am not interesting in sniffing packets now.
If i got a new message, in notification expanded view it shows only time. suppose If i got a message today(i.e on 06/06/2010) it should display simply a string "Today" and tomorrow it should show date on whilch message was received i.e it should display date 06/06/2010
I have to develop a whiteboard application in which both the local user and the remote user should be able to draw simultaneously, is this possible? If possible then any logic?
I have already developed a code but in which i am not able to do this, when the remote user starts drawing the shape which i am drawing is being replaced by his shape and co-ordinates.
This problem is only when both draw simultaneously.
any idea guys?
what is the diffrance between :
char const *p;
cost char *p;
char *const p;
??
and is there a good site where i can relearn c and c++?
it seems that i forgot it and job interviews doing me an hard time ...
Iphone or blackberry or any other?
I do XHTML, CSS, Design, PHP work and use gmail, skype, firefox, twitter etc.
Which device would be helpful for me when i'm not at desk.
What are some of the optimization steps that this command does
`(optimize speed (safety 0))`
Can I handcode some of these techniques in my Lisp/Scheme program?
So I have a Linux program that runs in a while(true) loop, which waits for user input, process it and print result to stdout.
I want to write a shell script that open this program, feed it lines from a txt file, one line at a time and save the program output for each line to a file.
So I want to know if there is any command for:
- open a program
- send text to a process
- receive output from that program
Many thanks.
I want to divide a list in "a specific number of" sublists.
That is, for example if I have a list List(34, 11, 23, 1, 9, 83, 5) and the number of sublists expected is 3 then I want List(List(34, 11), List(23, 1), List(9, 83, 5)).
How do I go about doing this? I tried grouped but it doesn't seem to be doing what I want.
PS: This is not a homework question. Kindly give a direct solution instead of some vague suggestions.
G'day,
How do you work with someone when they haven't been able to see that there is a range of other languages out there beyond "The One True Path"?
I mean someone who hasn't grown up to realise that the modern software professional has a range of tools in his toolbox. Someone who has a well-equipped toolbox and then selects the best tool for the job at hand.
The person who's knee jerk reaction is, for example, "We must do this is C++!" "Everything must be done in C++!"
What's the best approach for these people? How do you open them up to the fact that "not everything is a nail."
cheers,
Out of sheer curiosity. Hope none of you NDAs are violated or whatever.
Here are mine. I'm currently refactoring a massively coupled webapp. As it usually is, no comments and no documentation whatsoever.
if (paymentMethod == PaymentMethod.InAgency )
{
EmailController.SendBookingCreateEmails(booking);
this.DC.SubmitChanges();
return RedirectToAction("Result", new { id = booking.Id });
}
else if (paymentMethod == PaymentMethod.CreditCard)
{
return RedirectToAction("Pay", new { id = booking.Id });
}
else if(paymentMethod == PaymentMethod.MostravelBank || paymentMethod == PaymentMethod.MostravelCallback ||
paymentMethod == PaymentMethod.MostravelCardCredit || paymentMethod == PaymentMethod.MostravelCourierCash ||
paymentMethod == PaymentMethod.MostravelCourierPlasticCard)
{
isExclusive = true;
Log.TraceInformation("Started booking for Mostravel. Payment method: {0}", paymentMethod);
try
{
Log.TraceInformation("Sending emails");
EmailController.SendBookingCreateEmailsEx(booking);
Log.TraceInformation("Sent emails. Started booking");
MakeRealBooking(booking, DC.MailRuAgencies.First(a => a.Id == MvcApplication.DefaultMailRuAgencyId));
Log.TraceInformation("Finished booking");
}
catch(Exception ex)
{
Log.TraceEvent(TraceEventType.Error, 0, "Error while booking: {0}", ex.ToString());
}
What are you working on right now?
i want to help me to choose good books on algorithms
many people from this site say me that show me your code and now i ask u to help me to choose good books on algorithms please i have not books on algorithms and in case i decide to buy it of course must buy book which has high quality yes? so please any ideas ?links everything
-(id)setBigObject:(BigObject *)abc{
self.wl = abc;
abc.smallObject = self.smallObject;
}
I have a abc, which is a big Object, when the user pass the bigObject, abc. I assign to my wl value, so , I write "self.wl = abc;", but I want my smallObject assign to the abc's smallObject, so, I do "abc.smallObject = self.smallObject; "
So, when I edit the smallObject in self, it will also changed in the abc's also? Am I right?
I am porting a streaming TCP app from Linux to Windows.
The app streams real-time audio data using a preexisting TCP protocol (so switching to UDP isn't an option). Further, I wish to avoid being "part of the problem" and requiring Administrator rights.
The Linux code uses getsockopt(... ,SOL_TCP, TCP_INFO, ..) to get the RTT (round trip time) information from the TCP connection. The application level uses this to throttle the amount of data sent over the connection (apparently to balance quality with latency).
Is there an equivalent to TCP_INFO on WIndows?
(google tells me that Win2K and later supports "TCP Timestamps" which would provide this information, but I've yet to find a way to get at it.
Thanks in advance.
Why is CompareAndSwap instruction considered expensive?
I read in a book:
"Memory barriers are expensive, about as
expensive as an atomic compareAndSet()
instruction."
Thanks!
Hi,
Is there any reason behind using this date as standard for time manipulation? I have seen this standard in Java as well as in Python. These two languages I am aware of. Is other popular languages also follows the same standard?
Please describe.