|
Keith Barrow wrote: N2 @ <= 77K & > 63K.
I'm sorry, I can't understand your question.
The funniest thing about this particular signature is that by the time you realise it doesn't say anything it's too late to stop reading it.
My latest tip/trick
|
|
|
|
|
Abut you do know the correct answer, at least around here
|
|
|
|
|
Keith Barrow wrote: N2 @ <= 77K & > 63K.
Do you mean it should be liquid and cold?
But 77K (-196 centigrades) is too cold for my taste...
|
|
|
|
|
5'd for getting there and not mentioning the exact phrase
|
|
|
|
|
|
|
om_metab wrote: what appropriate way
By code would be my choice. Of course, you may choose to implement it by tickling shrimps, but I prefer the old fashioned way.
|
|
|
|
|
Pete O'Hanlon wrote: tickling shrimps
Why is common sense not common?
Never argue with an idiot. They will drag you down to their level where they are an expert.
Sometimes it takes a lot of work to be lazy
Individuality is fine, as long as we do it together - F. Burns
|
|
|
|
|
Pete O'Hanlon wrote: you may choose to implement it by tickling shrimps,
Now you made me look silly in the office again. I let out a verbal giggle reading this and now my coworkers are going to be giving me "the look" all day.
I wasn't, now I am, then I won't be anymore.
|
|
|
|
|
Tell me that you didn't get a mental image there.
|
|
|
|
|
I'll tell you whatever you want to hear at this point.
I wasn't, now I am, then I won't be anymore.
|
|
|
|
|
|
Despite the fact you asked the same question 4 weeks ago, and you obviously didn´t make your assignment, the answer is in your question:
1. You will have to maintain an DB Server (doesn´t matter if MSSQL, MySQL, MariaDB, whatever you want ...)
2. You will have to write the program code for your "messenger" client:
2.1. Logon to DB
2.2. Set state to "online" (you need more than one table in your DB .... think about it)
2.3. code the features you want in your messenger.
if a problem with a single part occurs, you can ask again, and then, maybe, someone can help you.
But I say to you positivly, NOBODY will do your assignment for you.
I cannot remember: What did I before google?
|
|
|
|
|
Frnds,
I have a desktop application(c# and SQL) which tries to get image from URL.
What I did
string imgg = PictureBoxImageAdding(dr.GetValue(0).ToString());
pictureBox1.SizeMode = PictureBoxSizeMode.StretchImage;
pictureBox1.Size = new System.Drawing.Size(142, 190);
pictureBox1.Image = new Bitmap(imgg);
It work fine with local path ie. d:/images/pics/xyz.jpg but not with http://www.xyz.com/images/pics/xyz.jpg
Whats the SOLUTION.
|
|
|
|
|
Download the picture to a local (temporary) file, e.g. using HttpWebRequest from the System.Net namespace. Then load the temp file.
|
|
|
|
|
That's because you're creating a bitmap and that only understands files, not URIs or URLs. I think you probably want to just set the ImageLocation property to imgg , or do a Load() , but haven't tried it so can't say for sure.
Regards,
Rob Philpott.
|
|
|
|
|
images have to be stored in memory or in a file. Valid file paths don't start with http://
I use MemoryStream in such situations, see downloadImage() in CP Vanity[^].
Luc Pattyn [Forum Guidelines] [My Articles] Nil Volentibus Arduum
Please use <PRE> tags for code snippets, they preserve indentation, improve readability, and make me actually look at the code.
|
|
|
|
|
If you don't want to use a temp file, then:
1) create a web request
2) use the web request to get a web response
3) use GetResponseStream() to get stream of image
4) create image from stream
5) assign image to picturebox1.Image
Jack of all trades ~ Master of none.
|
|
|
|
|
You do not need to bother yourself with things like web requests to do this as others have suggested - this is completely unnecessary. As stated above just set ImageLocation to the URL you need.
Regards,
Rob Philpott.
|
|
|
|
|
My service constantly receives several different messages...
I would like to place a logic which checks if a prticular message is received within (A particular time interval) say 30 seconds of the previous one.
What is the best way to start this? where should I keep the previously received messagetime so that I can compare it to the new received time?...
Thanks
|
|
|
|
|
Use the use private (may be static) DateTime variable to store timestamp of previous message.
use the Timer or Lock statement to check if it changes in 30 secs.
|
|
|
|
|
Create a class which represents the message called MyMessage. Store the previous message as a static variable of type MyMessage called previousMessage. If the current myCurrentMessage.RecievedDateTime < previousMessage.RecievedDateTime.AddSeconds(30), then assumeIsSameAsPrevious. Do stuff and then previousMessage = myCurrentMessage.
"You get that on the big jobs."
|
|
|
|
|
Is this a web service or a windows service?
|
|
|
|
|
Not sure yet, but by looking at the previous replies, I have my answer to how to solve this now.
Thank you.
|
|
|
|
|
arkiboys wrote: Not sure yet
How can you not be sure of whether it's a web service or a windows service? You stated that "my service" is doing this and that. If it's "your" service, you should be completely familiar with what it is.
".45 ACP - because shooting twice is just silly" - JSOP, 2010 ----- You can never have too much ammo - unless you're swimming, or on fire. - JSOP, 2010 ----- "Why don't you tie a kerosene-soaked rag around your ankles so the ants won't climb up and eat your candy ass." - Dale Earnhardt, 1997
|
|
|
|