|
I will see performance through profiler too and update the same
|
|
|
|
|
i want to make a program by which user can change any image into text.
|
|
|
|
|
OK - you have our permission. Go make your program.
Hint: Reposting a vague question isn't going to elicit offers of help.
/ravi
|
|
|
|
|
arvindnitin7 wrote: i want to make a program by which user can change any image into text Any image? Are you looking to generate ASCII art? Or are you talking about any image of text? In which case, you want to look into OCR.
|
|
|
|
|
i want to make a program y which user can change any image into text formate. plz help me as soon as possible.
|
|
|
|
|
"ASAP" doesn't work when talking to volunteers. We also do not help doing "projects", but we do answer specific questions. If you have one, feel free to ask.
What you want to do is called "OCR".
Bastard Programmer from Hell
If you can't read my code, try converting it here[^]
|
|
|
|
|
How to Calculate Days Between Two Dates ?
if my dates are
Date1 = 2014/01/10
Date2 = 2014/10/30
Just Like
January 20
February 28
March 33
April 31
May 30
June 31
July 30
August 31
September 28
October 31
November
December
|
|
|
|
|
Try:
DateTime Date1 = new DateTime(2014, 01, 10);
DateTime Date2 = new DateTime(2014, 10, 30);
TimeSpan diff = Date2 - Date1;
Console.WriteLine(diff.TotalDays);
Bad command or file name. Bad, bad command! Sit! Stay! Staaaay...
|
|
|
|
|
Assuming you want ... given two dates ... to generate a data structure that contains each Month from the starting date to the ending date, and, for each month, the number of days in the month:
using System.Globalization;
private DateTimeFormatInfo dtf = new DateTimeFormatInfo();
private Dictionary<string, int> getMonthDays(DateTime d1, DateTime d2)
{
int nMonths = ((d2.Year - d1.Year) * 12) + d2.Month - d1.Month - 1;
var dctMonthDays = new Dictionary<string, int>();
for (int i = 0; i <= nMonths; i++)
{
int daysInMonth = DateTime.DaysInMonth(d1.Year, d1.Month);
string monthName = dtf.GetMonthName(d1.Month);
if (i == 0)
{
dctMonthDays.Add(monthName, daysInMonth - d1.Day);
}
else if (i == nMonths)
{
dctMonthDays.Add(monthName, d2.Day);
}
else
{
dctMonthDays.Add(monthName, daysInMonth);
}
d1 = d1.AddMonths(1);
}
return dctMonthDays;
}
DateTime d1 = DateTime.Now;
DateTime d2 = d1.AddMonths(7);
var monthDayDiff = getMonthDays(d1, d2);
foreach (var kvp in monthDayDiff)
{
Console.WriteLine("Month: {0} Days: {1}", kvp.Key, kvp.Value);
}
« I am putting myself to the fullest possible use which is all, I think, that any conscious entity can ever hope to do » HAL (Heuristically programmed ALgorithmic computer) in "2001, A Space Odyssey"
|
|
|
|
|
PoolGameSingle poolgame = new PoolGameSingle();
var cue = poolgame.CueStick;
Body CueStickBody = BodyFactory.Instance.CreateRectangleBody(physicsSimulator, 15, 15,1);
CueStickBody.Position = new Vector2(902, 250);
cue = CueStickBody;
Geom CueStickGeom = GeomFactory.Instance.CreateRectangleGeom(physicsSimulator, CueStickBody, 15, 15, 20);
CueStickGeom.CollisionGroup = 1;
CueStickGeom.RestitutionCoefficient = .8f;
CueStickGeom.FrictionCoefficient = 0
|
|
|
|
|
You have already posted the same question on StackOverFlow and GameDev, but why not also post the question on the FarSeer Discussion forum: [^].
« I am putting myself to the fullest possible use which is all, I think, that any conscious entity can ever hope to do » HAL (Heuristically programmed ALgorithmic computer) in "2001, A Space Odyssey"
|
|
|
|
|
If I wanted to post the question on that page, I would have done so long ago.. But nobody is replying me.
|
|
|
|
|
Member 10948508 wrote: If I wanted to post
Member 10948508 wrote: I would have done so
Member 10948508 wrote: But nobody is replying me.
Possibly, the latter is because of the first two?
You don't generally get replies to messages you haven't posted...
Bad command or file name. Bad, bad command! Sit! Stay! Staaaay...
|
|
|
|
|
I know what you mean, OG; I get messages to replies I never made: those are the ones that really bother me !
« I am putting myself to the fullest possible use which is all, I think, that any conscious entity can ever hope to do » HAL (Heuristically programmed ALgorithmic computer) in "2001, A Space Odyssey"
|
|
|
|
|
And I get answers to questions nobody ever asked.
Called "adverts", on TV...
Bad command or file name. Bad, bad command! Sit! Stay! Staaaay...
|
|
|
|
|
Perhaps, as they are the experts in this, you might want to give them a try. Your answer is the same as going to a DIY store and saying "I have a toothache, how do I get rid of it?" and when someone tells you to go see the dentist, you reply that if you'd wanted to do that, you would have, but your toothache is still there. Can you see how absurd the position is?
|
|
|
|
|
What? Ask the people who know the most about it?
But they might suggest he RTFM!
Bad command or file name. Bad, bad command! Sit! Stay! Staaaay...
|
|
|
|
|
Hello. I have this small video application which uses some threads. Now when a thread is called to open the media player for a media file, an exception is thrown
COM object that has been separated from its underlying RCW cannot be used
What does this exception mean and how can I fix this issue? Thanks for any pointer.
|
|
|
|
|
|
Creaze the COM object in the main thread and use it only there!
|
|
|
|
|
public abstract class NoImplementations
{
public abstract void DoSomething(int arg1, string arg2);
public abstract int SomeInt { set; get; }
public NoImplementations()
{
SomeInt = 34;
}
}
private class sonOfNoImplementation : NoImplementations
{
public override void DoSomething(int arg1, string arg2)
{
}
public override int SomeInt { get; set; }
}
sonOfNoImplementation sonOfNI = new sonOfNoImplementation();
int x = sonOfNI.SomeInt;
I am baffled I can "get away with this."
Appreciate your thoughts !
« I am putting myself to the fullest possible use which is all, I think, that any conscious entity can ever hope to do » HAL (Heuristically programmed ALgorithmic computer) in "2001, A Space Odyssey"
|
|
|
|
|
|
|
Basically, I agree, but it's important to understand: this is rationale, not the syntax rule.
Also, it does not address Bill's issue: actually, there is absolutely nothing wrong with having non-virtual method of an abstract class. I explained in my comment below why it is often be important.
—SASergey A Kryukov
|
|
|
|
|
Sergey Alexandrovich Kryukov wrote: Also, it does not address Bill's issue
Which would be why I marked it as a suggestion, rather than an answer.
"These people looked deep within my soul and assigned me a number based on the order in which I joined."
- Homer
|
|
|
|