|
|
\u0041
what does that exactly mean?
"\u0041"
Unsigned?
Some sort of unsigned datatype?
I'm learning, I haven't learned that much yet.
I have a book on C# that I'm reading.
Whenever they try to explain something, it doesn't always think in… So, I do a Google search to try to find answers.
There must be a specific enumeration of the type char that I'm missing somewhere.
Or, Method… Is a better word than enumeration?
<a href="http://www.widmarkrob.com">My Coding Journey</a>
|
|
|
|
|
WidmarkRob wrote: what does that exactly mean? "\u0041" This is merely a way of representing a Unicode character by its hexadecimal value. If you look at the Windows Character Map application it shows you the hexadecimal value for each Unicode character. You can also see similar values for the ASCII character set. It may be that you need to get hold of a reference book that explains how data is held and represented in digital computers, and how it can be converted from one type to another. More information can also be found at http://www.unicode.org/faq/utf_bom.html[^].
Use the best guess
|
|
|
|
|
Is there any built in method (.Net C#) to convert the unix time (double datatype) to datetime?
I got the following code from Stackoverflow :
public static DateTime UnixTimeStampToDateTime( double unixTimeStamp )
{
// Unix timestamp is seconds past epoch
System.DateTime dtDateTime = new DateTime(1970,1,1,0,0,0,0);
dtDateTime = dtDateTime.AddSeconds( unixTimeStamp ).ToLocalTime();
return dtDateTime;
}
But it's not working properly. The above method returns 1970-01-01 00:00:00 as result.
Thanks.
here is the Stackoverflow link:
http://stackoverflow.com/questions/249760/how-to-convert-unix-timestamp-to-datetime-and-vice-versa[^]
|
|
|
|
|
I don't see how that will work since you are adding a double value to an integer one, which means you lose all the precision. You would first need to convert the time portion of the Unix value into an integer number of seonds. Try some of these links[^].
Use the best guess
|
|
|
|
|
Not tested, but I believe the following should do the trick for you...
public const long unixEpoch = new DateTime(1970, 1, 1, 0, 0, 0, 0, DateTimeKind.Utc).Ticks;
static DateTime toDateTimeUtc(
long unixTime)
{
return new DateTime(unixTime + unixEpoch, DateTimeKind.Utc);
}
static long toUnixTime(
DateTime dateTime)
{
return dateTime.ToUniversalTime().Ticks - unixEpoch;
}
-Eric.
|
|
|
|
|
I'm aware of facial recognition software, but that is too specific. Are there any other types of camera footage recognition software out there?
I don't even know what's happening.
|
|
|
|
|
What do you mean by "camera footage recognition"?? The term makes no sense on its own.
|
|
|
|
|
Like facial recognition, but not limited to faces.
|
|
|
|
|
If you're looking for image processing, perhaps you could look into AForge.net?
djj55: Nice but may have a permission problem
Pete O'Hanlon: He has my permission to run it.
|
|
|
|
|
A video is a bunch of frames, so, theoretically, you can apply facial recognition to each of these frames. However, there may be other complications like blur; so, you'll have to apply blur-removal algorithms; and these may not work well in all situations.
|
|
|
|
|
Wigwam2323 wrote: that is too specific.
You want it less specific? Like "gender" or what?
Given that it needs training to recognize "things", I'd guess that it could learn to discriminate between animals.
Good luck fishing for more idea's
Bastard Programmer from Hell
If you can't read my code, try converting it here[^]
|
|
|
|
|
Less specific as in, not limited to faces. Or even people.
|
|
|
|
|
What has this to do with C#?
|
|
|
|
|
Computer vision is in its infancy. It's pretty much research projects. There is no open source library that is going to give you "out-of-the-box" object recognition capability with any degree of accuracy.
|
|
|
|
|
Bonjour,
J'ai deux datadridview ( datagridview1 vide dans Form1 et datagridview2 affichant quelques éléments de la DB dans Form2).
Un bouton "ajouter" sur Form1 et un bouton "selectionner" sur Form2.
Mon désire est que si je clique sur un bouton ajouter dans Form1, j'ouvre Form2. Lorsque je selectionne une ligne de datagridview2 et que je clique sur le bouton "selectionner " cette ligne s'affichera dans la datagridview1 de Form1 et disparaitra dans datagridview2 (Form2).
Même si je clique encore sur "Ajouter" j'arrive à faire la même chose.
Merci pour votre aide
|
|
|
|
|
This is an English speaking site; I can only give an answer if I can read the question.
Bastard Programmer from Hell
If you can't read my code, try converting it here[^]
|
|
|
|
|
Sorry,
I have two datadridview (an empty dataGridView1 in Form1 and datagridview2 with data in Form2 ).
I have also "add" button on Form1 and "select" button on Form2 .
My wish is that if I click on "add" button in Form1 , I open Form2. When I select a line of my datagridview2 and when I click on the "select" button this line will appear in the dataGridView1 Form1 and disappear in datagridview2 (Form2) button.
Although I still click on "Add" I can do the same thing.
please help me
|
|
|
|
|
OK, so Form2 would be shown with ShowDialog. When the record is selected on it, Form2 code sets a public property that Form1 will read to pickup the record that was selected.
|
|
|
|
|
I want to fetch data from another web site . in (another website) there is a textbox where we submit a value than they return some data . i want to use same thing which is passes through my website . Added i can submit multi values on my textbox and fetch all the result of My textBox value from another site .
Sandeep Kumar Nishad
|
|
|
|
|
You have already posted this in QA and had replies - please do not post questions in multiple places, it duplicates work are wastes people's time.
The universe is composed of electrons, neutrons, protons and......morons. (ThePhantomUpvoter)
|
|
|
|
|
You can do this. Not the easiest. Best is is look at the message that is sent by the page to request the data. Then you will get back the html for the web page. Will have to find some take in the page that you can search on, and then basically interpret the HTML to figure out what the response was.
|
|
|
|
|
Here is the method auto dial up without the login dialoge
public uint Connect(string EntryName, string UserName, string Password, out IntPtr RasConn)
{
uint retVal;
uint r=0;
RasConn=IntPtr.Zero;
byte[] bRASDIALPARAMS =new byte[1464];
fixed (byte* pAddr = bRASDIALPARAMS)
{
byte* pCurrent = pAddr;
Marshal.WriteInt32((IntPtr)pCurrent, bRASDIALPARAMS.Length);
pCurrent += 4;
foreach (byte b in Encoding.Unicode.GetBytes(EntryName))
{
Marshal.WriteByte((IntPtr)pCurrent, b);
pCurrent++;
}
pCurrent = pAddr + 0x192;
foreach (byte b in Encoding.Unicode.GetBytes(UserName))
{
Marshal.WriteByte((IntPtr)pCurrent, b);
pCurrent++;
}
pCurrent = pAddr + 0x394;
foreach (byte b in Encoding.Unicode.GetBytes(Password))
{
Marshal.WriteByte((IntPtr)pCurrent, b);
pCurrent++;
}
retVal = RAS.RasDial(IntPtr.Zero, IntPtr.Zero, (IntPtr)pAddr, 0, IntPtr.Zero, ref RasConn);
}
return retVal;
}
[DllImport("rasapi32.dll", CharSet = CharSet.Auto)]
public extern static uint RasDial(
IntPtr dialExtensions,
IntPtr phoneBookPath,
IntPtr rasDialParam,
uint NotifierType,
IntPtr notifier,
ref IntPtr pRasConn
);
It works fine on my xp machine,but move it to win7 the Connect() method returns erro 632,what's wrong in win7,does anyone have a clue?
|
|
|
|
|
|
Thank you!I solved my problem with DotRas in www.codeplex.com
|
|
|
|