|
using the smtp protocal to send the picture as the attached file.
you can see the smtp spec file in the Wikipedia.
|
|
|
|
|
I finally got my own chat application working across the internet. Which means I configured my router to allow port forwarding, opened the right ports on windows firewall, installed and configured IIS7, bought a domain so the IP address on my computer can be resolved and I can run a server program that connects people, and setup a program that updates DNS when my IP addres changes.
I feel like I have a good knoweldge base and I would like to take it to the next level by tapping into Yahoo Messenger. I don't really know where to start and any advice would be very much appreciated.
|
|
|
|
|
This is not an exact answer. i wonder... you said it is working and you seems to have done a lot of stuff configuring... i wanted to do the same but my modem does not have the port forwarding option... anyway... what about programming... create a socket listener program which could listen on an UNUSED port. create a socket connection to that ip and port... send values... you can do it two way... both the client and the server can do both the jobs so that at both the sides let it send and receive data... or have a web server push data using push technology to send data either side when data is received on the other sides... if you would have been thinking that i have misunderstood then it is because something was missing in your quote...
Today's Beautiful Moments are
Tomorrow's Beautiful Memories
|
|
|
|
|
I want to get the string from text
string regText = @"(?:+86)?\d{11}";
such as text "+8613812345678" or "13812345678"
I want to get the string "13812345678"
But if the text is started with the "+86", the string "+86" will be returned.
Why wrong?
|
|
|
|
|
Escape the plus sign.
(?:\+86)?(?'Value'\d{11})
modified on Saturday, September 12, 2009 6:32 PM
|
|
|
|
|
Hello everyone....i got struck while creating a numeric list of all numbers between 0 to 10 pow 100.....
double supports till 308 but it prints like 1E+100 is there any way that i can get value in digits rather than 1E.....
|
|
|
|
|
YourNumber.ToString("F"); is the only way I am aware of.
It's not necessary to be so stupid, either, but people manage it. - Christian Graus, 2009 AD
|
|
|
|
|
no not showing digits...it's displaying same 1E+100.....
|
|
|
|
|
I just tried following code:
string str = double.MaxValue.ToString("f");
Works fine for me.
It's not necessary to be so stupid, either, but people manage it. - Christian Graus, 2009 AD
|
|
|
|
|
Thnx alot bro... it's workin great....but is there any way to get rid off those .00 at last....
|
|
|
|
|
sry lol....actually it's representing a fixed digit....not that number i wanted....
double dl = Math.pow(10,100);
i want to get dl in digits rather than E....and that max value one is showing some fixed digit that also float it has .00 at last....
|
|
|
|
|
This would help: Math.Pow(10, 100).ToString("f0");
The digit after "f" specifies number of digits after decimal.
It's not necessary to be so stupid, either, but people manage it. - Christian Graus, 2009 AD
|
|
|
|
|
the thing you told is good for printing 1 and 0's only...try this
double dl = Math.Pow(10, 100);
double dll = dl + 21;
string ss = dll.ToString("f0");
Console.Write(ss);
Console.Read();
n tell how to work on that digit...it's not showing the change....
|
|
|
|
|
Hi,
your problem is not related to the formatting string in some ToString() method, it is much more fundamental.
real numbers are not capable of storing all the information that would be required to show all the digits of large numbers, that is exactly why they show at most 7 (float) or 16 (double) digits and tell you by which power of 10 the number needs to be multiplied.
integers keep all information accurately until they reach their maximum value; for int (Int32) that would be around 2 billion, much less than what you want. To store your 10^100 value as an integer, one would need over 300 bytes, whereas regular integers only hold 4 or 8 bytes of data.
decimals are somewhere in the middle, they won't solve it either.
What you need is some special type, often called BigInt, BigInteger, BigNumber; google for those. There are some articles here on CodeProject about them. And C# 4.0 holds a class that could help you.
Luc Pattyn
Have a look at my entry for the lean-and-mean competition; please provide comments, feedback, discussion, and don’t forget to vote for it! Thank you.
Local announcement (Antwerp region): Lange Wapper? Neen!
|
|
|
|
|
Thnx alot....i don't wanna get into generating digits individually using multidimensional string array or char array and concatenating them......
|
|
|
|
|
Oh, and one more thing:
greendragons wrote: all numbers between 0 to 10 pow 100
assuming you meant integer numbers only, stored in memory this would take more memory than your system holds;
printed on paper this will take more paper than would fit in your house; and if you were to generate somehow say 10^50 numbers each second (not sure how you would do that with a CPU running at a few 10^9 instructions per second), it would take you 10^50 seconds, which is longer than the universe has existed till now.
So next time, do a little reality check before you set out for a project like this.
Luc Pattyn
Have a look at my entry for the lean-and-mean competition; please provide comments, feedback, discussion, and don’t forget to vote for it! Thank you.
Local announcement (Antwerp region): Lange Wapper? Neen!
|
|
|
|
|
Hi,
Does anyone know where I can find a good spanish-english dictionary for use with c# (or any language even) in a translation project? I've spent a few hours looking around on google, but the best I could find was a pretty weak english-spanish file here: http://www.ilovelanguages.com/idp/IDPfiles.html
The dictionary needs to be under a licence that allows it to be used in a commercial app. If there is nothing freely available, does anyone how to go about licensing one?
Thanks in advance.
|
|
|
|
|
Shaunr88 wrote: Does anyone know where I can find ...
Google!
|
|
|
|
|
Unfortunately Google hasn't yielded a good solution. I was wondering if anyone else has worked on a project requiring foreign language dictionaries, and how they got them... For instance, talking with some of the companies that print them?
|
|
|
|
|
Hope your application runs independent of/on internet. else you can use google services to do all sorts of translations... using the googles translation api's. will this be a good solution?
Today's Beautiful Moments are
Tomorrow's Beautiful Memories
|
|
|
|
|
i make a small program on my labtop with access as database but when i setup the program on me desktop some of the select statment that include SUM() COUNT() do not work it work well on my labtop but not on my desktop WHY?
|
|
|
|
|
Do you have the same version of Access on both your desktop and your laptop?
Henry Minute
Do not read medical books! You could die of a misprint. - Mark Twain
Girl: (staring) "Why do you need an icy cucumber?"
“I want to report a fraud. The government is lying to us all.”
|
|
|
|
|
yes!
but i tell you something on my desktop if i run the statment on access it work but through the program it not works
|
|
|
|
|
Then I have no further suggestions.
But if you post the problem code, someone else may be able to help.
Only post the relevant code, and please surround it with PRE tags, as that keeps the formatting and colourization making it much easier for people to read.
Henry Minute
Do not read medical books! You could die of a misprint. - Mark Twain
Girl: (staring) "Why do you need an icy cucumber?"
“I want to report a fraud. The government is lying to us all.”
|
|
|
|
|
thanks alot for your time
|
|
|
|