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).
When a client connects to a server using TCP, a new socket is created for the TCP stream. Does the connection remain on the same port the connection was made or does it get changed to some other port?
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. :)
Perhaps I'm just not using the right Google-age. But I am trying to remember what the term is for when you return the object from one of it members to enable you to do something similar:
class obj {
obj function method()
{
return this
}
}
obj->method()->method()->method()->method()
I used to know this but it has totally escaped me.
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.
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.
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?
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 include this in a table cell:
<td style="text-align: right; font-style: italic; color: maroon;">...
the contents of the cell are aligned as I expect.
If I include the following CSS:
.right-notice { text-align: right; font-style: italic; color: maroon; }
and this cell:
<td class=".right-notice">...
the contents of the cell are not right aligned.
Why is this? What don't I know?
If I change the CSS to replace text-align with float, that works.
Thanks.
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
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?
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 ...
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
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.
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?
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.
-(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?
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.