|
it sounds complicated but it isnt really.
just a negative feedback circuit.
Used for frequency and phase stability or noise cancelling/suppression.
Shouldnt be that hard to code up - but i thought i would ask to see if anyone had already.
I am guessing it will start with reading in an input buffer, conducting FFT then monitoring frequency and phase shifts, then mixing these outputs with the inputs in a loop so that you can selectively control the freq and phase outputs.
- no di-lithium crystals in there anywhere.
Cheers
|
|
|
|
|
rapidgeo wrote: it sounds complicated but it isnt really.
You did notice the joke icon of my other post about Scottie from Star Trek, I hope.
Seriously, I don't have an idea quite yet code-wise, but I do have some idea what you are asking for.
"The clue train passed his station without stopping." - John Simmons / outlaw programmer
"Real programmers just throw a bunch of 1s and 0s at the computer to see what sticks" - Pete O'Hanlon
"Not only do you continue to babble nonsense, you can't even correctly remember the nonsense you babbled just minutes ago." - Rob Graham
|
|
|
|
|
rapidgeo wrote: guessing it will start with reading in an input buffer, conducting FFT then monitoring frequency and phase shifts, then mixing these outputs with the inputs in a loop so that you can selectively control the freq and phase outputs.
Sounds like a reasonable stab at it.
"The clue train passed his station without stopping." - John Simmons / outlaw programmer
"Real programmers just throw a bunch of 1s and 0s at the computer to see what sticks" - Pete O'Hanlon
"Not only do you continue to babble nonsense, you can't even correctly remember the nonsense you babbled just minutes ago." - Rob Graham
|
|
|
|
|
sorry i should have put a joke icon next to the di-lithium crystal reference.
Thanks - will have a stab at it and see how far i can get.
If there is any code available to do any of what i suggested as a first attempt then this will get me started.
1. reading input buffer.
2. conducting FFT.
3. splitting into freq and phase.
4. mixing back with input signal after imposing a threshold value for selectivity.
Cheers
Baz
|
|
|
|
|
i wanna a if statement to detect if some values are present on some keys,if true do some app
|
|
|
|
|
Like this...
using Microsoft.Win32;
...
RegistryKey masterKey = Registry.LocalMachine.CreateSubKey
("SOFTWARE\\Test\\Preferences");
if (masterKey == null)
{
Console.WriteLine ("Null Masterkey!");
}
else
{
Console.WriteLine ("MyKey = {0}", masterKey.GetValue ("MyKey"));
}
masterKey.Close();
Please remember to rate helpful or unhelpful answers, it lets us and people reading the forums know if our answers are any good.
|
|
|
|
|
Is this now a C# forum?
Steve Jowett
-------------------------
It is offen dangerous to try and see someone else's point of view, without proper training. Douglas Adams (Mostly Harmless)
|
|
|
|
|
My Mistake
Please remember to rate helpful or unhelpful answers, it lets us and people reading the forums know if our answers are any good.
|
|
|
|
|
No worries, but hey, the OP can at least convert that from C# to VB.NET (hopefully )...
"The clue train passed his station without stopping." - John Simmons / outlaw programmer
"Real programmers just throw a bunch of 1s and 0s at the computer to see what sticks" - Pete O'Hanlon
"Not only do you continue to babble nonsense, you can't even correctly remember the nonsense you babbled just minutes ago." - Rob Graham
|
|
|
|
|
By mistake, I gave you the C3 code...
here you go...
Dim masterKey As RegistryKey = Registry.LocalMachine.CreateSubKey("SOFTWARE\Test\Preferences")
If masterKey Is Nothing Then
Console.WriteLine("Null Masterkey!")
Else
Console.WriteLine("MyKey = {0}", masterKey.GetValue("MyKey"))
End If
masterKey.Close()
Please remember to rate helpful or unhelpful answers, it lets us and people reading the forums know if our answers are any good.
|
|
|
|
|
Manas Bhardwaj wrote: By mistake, I gave you the C3 code...
Is that the new name for C#?
I bet you hate me now
Steve Jowett
-------------------------
Real programmers don't comment their code. If it was hard to write, it should be hard to read.
|
|
|
|
|
Manas Bhardwaj wrote: C3 code...
"The clue train passed his station without stopping." - John Simmons / outlaw programmer
"Real programmers just throw a bunch of 1s and 0s at the computer to see what sticks" - Pete O'Hanlon
"Not only do you continue to babble nonsense, you can't even correctly remember the nonsense you babbled just minutes ago." - Rob Graham
|
|
|
|
|
Looks like I need to press the Shift button more harder from next time
Please remember to rate helpful or unhelpful answers, it lets us and people reading the forums know if our answers are any good.
|
|
|
|
|
I know what you mean. My laptop keyboard acts up and I've thought of putting a disclaimer in my sig for any misspellings
Posting replies from the Blackberry needs to be added, as well.
"The clue train passed his station without stopping." - John Simmons / outlaw programmer
"Real programmers just throw a bunch of 1s and 0s at the computer to see what sticks" - Pete O'Hanlon
"Not only do you continue to babble nonsense, you can't even correctly remember the nonsense you babbled just minutes ago." - Rob Graham
|
|
|
|
|
Manus - ignore those nit pickers of typos and code flavours, have 5 for answering the question!
Never underestimate the power of human stupidity
RAH
|
|
|
|
|
Hi all,
I am developing standalone application “To convert FOXPRO database to MS Access Database” I started to develop this application Using dot net Frame Work. I am not getting any help in net, any body knows about this please help me.
Thanks & Regards
-Pavani
|
|
|
|
|
You're going to have to describe what you mean by "converting a Foxpro database to an Access database". Are you just copying the data from the Foxpro tables to Access, or are you trying to convert the code, or .... what??
Since your question is so vague, it's no surprise you're not finding anything by Googling.
|
|
|
|
|
Very vague post. What do you mean by converting from Foxpro to Access? You need to create the same kind of table structure in Access that is in the Foxpro database, then export out of Foxpro and import into Access. This is a very straightforward task
"The clue train passed his station without stopping." - John Simmons / outlaw programmer
"Real programmers just throw a bunch of 1s and 0s at the computer to see what sticks" - Pete O'Hanlon
"Not only do you continue to babble nonsense, you can't even correctly remember the nonsense you babbled just minutes ago." - Rob Graham
|
|
|
|
|
I am writing a code in vb.net 3.5 which send a Xml data through smtp mail.
my code is :
Dim fromAddress As New MailAddress(strFrom)
Dim mailSender As New System.Net.Mail.SmtpClient()
mailSender.Host = strOutgoingServer
mailSender.Port = strOutgoingPort
mailSender.Credentials = New Net.NetworkCredential(strEmailId, strEmailPass)
mailSender.EnableSsl = True
mailSender.DeliveryMethod = SmtpDeliveryMethod.Network
strTo = EmailAddress"
Dim toAddress As New MailAddress(strTo)
Dim msg As New MailMessage(fromAddress, toAddress)
msg.IsBodyHtml = False
msg.Body = "some XML"
msg.Subject = rowcode
mailSender.Send(msg)
But when I receive that email I found some funny character like "=OD=OA.. ==" in my received Email
My question is how can I solve this type of problem?How can I remove these character? or using some encoding scheme
|
|
|
|
|
You are receiving 0x0d,0xoA .., i mean vbcr,vblf that is carriage return and line feed. i think that is not a extra data. change the encoding to slove this problem. use normal ascii encoding .
Rajesh B --> A Poor Workman Blames His Tools <--
|
|
|
|
|
I am Sending XML via smtp :
<Sql>
<Update Table="LocationMaster" IDColumnName="LocationId">
<IsFixed>false</IsFixed>
<IMPassword></IMPassword>
<IMUserName></IMUserName>
<PanNo></PanNo>
<Remarks></Remarks>
<Website></Website>
<Email></Email>
<Phone></Phone>
<Pincode></Pincode>
<CountryID>0</CountryID>
<Region></Region>
<StateID>0</StateID>
<CurrencyID>2</CurrencyID>
<LocationCode>007</LocationCode>
<CompanyName>Sritanu Id7</CompanyName>
<PrintName>Sritanu Id7</PrintName>
<LocationName>Sritanu Id7</LocationName>
<LocationID>16</LocationID>
<Where><![CDATA[LocationId = N'16']]></Where>
</Update>
</Sql>
and I am getting XML in a PopClient like IPWORKS(nsoftware) :
<Sql>=0D=0A <Update Table=3D"LocationMaster" IDColumnName=3D"LocationId">=
=0D=0A <IsFixed>false</IsFixed>=0D=0A <IMPassword></IMPassword>=0D=0A=
<IMUserName></IMUserName>=0D=0A <MobileNoForSMS></MobileNoForSMS>=
=0D=0A <ErrorReportEmail></ErrorReportEmail>=0D=0A <ImportFolder></ImportFolder>=
=0D=0A <ExportFolder></ExportFolder>=0D=0A <FTPPassword></FTPPassword>=
=0D=0A <FTPUserName></FTPUserName>=0D=0A <FTPAddress></FTPAddress>=
=0D=0A <OutgoingAuthentication>true</OutgoingAuthentication>=0D=0A =
<OutgoingServerPort>0</OutgoingServerPort>=0D=0A <OutgoingMailServer></OutgoingMailServer>=
=0D=0A <IncomingServerPort>0</IncomingServerPort>=0D=0A <IncomingMailServer></IncomingMailServer>=
=0D=0A <EmailPassword></EmailPassword>=0D=0A <EmailAddress></EmailAddress>=
=0D=0A <LocPort>17500</LocPort>=0D=0A &<LSTNo>2222</LSTNo>=0D=0A <CityID>0</CityID>=
=0D=0A <Address3>Kolkata</Address3>=0D=0A <Address2>Dum Dum</Address2>=
=0D=0A <Address1>Laketown</Address1>=0D=0A <BookBegin>2008-06-01T00:00:00</BookBegin>=
=0D=0A <FinancialYear>2008-06-01T00:00:00</FinancialYear>=0D=0A <TaxTypeID>1</TaxTypeID>=
=0D=0A <RegionID>1</RegionID>=0D=0A <CurrencyID>2</CurrencyID>=0D=0A=
<LocationCode>007</LocationCode>=0D=0A <CompanyName>Sritanu Id7</CompanyName>=
=0D=0A <PrintName>Sritanu Id7</PrintName>=0D=0A <LocationName>Sritanu=
Id7</LocationName>=0D=0A <LocationID>16</LocationID>=0D=0A <Where><![CDATA[LocationId=
=3D N'16']]></Where>=0D=0A </Update>=0D=0A</Sql>
So, How can remove this character from my Received mail message.use any decoding
|
|
|
|
|
You shouldn't try to remove these characters. Instead you should not put them there in the first place.
In other words, it looks like you are formatting your string, before you are sending it through your code.
When you build your string, you put in enters or line feeds or some other "invisible" character like that:
<Sql>[enter]
<Update Table="LocationMaster" IDColumnName="LocationId">[enter]
<IsFixed>false</IsFixed>[enter]
<etc></etc>
However XML does not need this formatting. It's only use is to make it readable for the developer. The code that receives the email does not care about the formatting.
Leave any enter characters out of the string, so it becomes something like this:
<Sql><Update Table="LocationMaster" IDColumnName="LocationId"><IsFixed>false</IsFixed>etc.
Good luck,
Johan
My advice is free, and you may get what you paid for.
|
|
|
|
|
Thank you very much for your tips.
but there is also a problem in the xml
<sql><update table="3D" locationmaster""="" idcolumnname="=3D" locationid""=""><isfixed>falseetc.
look at the xml update table =3D.....
a character 3D is appeared in the xml file
|
|
|
|
|
Most likely same deal: remove spaces, tabs and all other "invisible" characters from the string:
table=N'16' instead of table = N'16'
My advice is free, and you may get what you paid for.
|
|
|
|
|
Johan Hakkesteegt wrote: Most likely same deal: remove spaces, tabs and all other "invisible" characters from the string:
table=N'16' instead of table = N'16'
As =3D is the = character, it's not very easy to remove from the xml code...
Despite everything, the person most likely to be fooling you next is yourself.
|
|
|
|