|
It would certainly be cool, but you'd need a new kind of NIC just for starters. You'd need to have one that can measure and report the actual signal voltage (to measure path loss) and some sort of time domain reflectometer to measure line length. Even so, you would only be able to characterize the physical path to the next router, and it would include lots of error because there is no standard for propagation velocity on network cabling. Your best bet would be to lobby for a standard that requires a physical address to be appended to the existing MAC address and which can be retrieved using ARP.
"Ask not for whom the bell tolls; It tolls for thee..."
|
|
|
|
|
You're not on too much crack, there is a device which does this called a time-domain reflectometer.
|
|
|
|
|
How to write a C++ template INT Class?
That is a int Class which could fit in any give size,it should have + - * / operate .
Thank you!
|
|
|
|
|
Is this a homework question? We are not here to do anyones homework but we can give help if you post some code and ask questions someone will help.
John
|
|
|
|
|
I don't know it's good or bad.Url is
www.mechat.com
Can anyone sell it ,about 300$.
It's coded by c++ ,can run on windows/linux,
can serve 5000 online users.
Good audio quality.
ease to install and use
|
|
|
|
|
I am reading an artical in my local paper about Pellissippi State Tech. They are offering a course in cluster computing or high performance computing.
By using desktop computers strung together to mimic the power of supercomputers at a fraction of the cost.
Because of high-performance computing's lower cost, more labs, universities and businesses are using this method as part of day-to-day operations, and more jobs are opening up for technicians and software creators.
Where can I get more technical knowledge on this subject? Books ect. I have never heard of this. But it sounds very exciting, something I could tinker with at home.
Steve Harris
|
|
|
|
|
Hey Steve, You must be in the Knoxville area also. I live here and once took a C++ class at Pellissippi. Sounds like the cluster computing course would be an interesting class but I didn't see it in their online fall schedule. Where did you hear about it?
|
|
|
|
|
I've almost completed a VB.Net NNTP class and was wondering if anyone would be interested in me writing an article around it? It will probably take awhile but i'm just wondering if there is any interest... As a follow up article I might write ASP.Net site that uses the class. It implements RFC977 only and not the extensions in RFC2980.
|
|
|
|
|
I wrote this fast prime number generator/prime checker, spending hours to refine it and get it in its final form. However, I then found out this technique was well known.
But there's no article on CP which deals with it per se, and I also think it could be a nice way to teach people about code optimization.
Which section should I submit the article in?
Vikram.
-----------------------------
1. Don't ask unnecessary questions. You know what I mean?
2. Avoid redundancy at all costs.
3. Avoid redundancy at all costs.
"Do not give redundant error messages again and again." - A classmate of mine, while giving a class talk on error detection in compiler design.
|
|
|
|
|
|
I'd like to see an example of how to create a class library in managed C++ that wraps an "unconvertable" C++ class in a single class library (mixing managed and unmanaged code).
My current solution is to make the existing C++ a COM component (ATL) then creating a second component in VB.NET that wraps the COM component with an Interop. However, I'd like to figure out how to do this in a single component without the need for COM.
Anything like this would be really great.
|
|
|
|
|
|
Well we've been thinking of developing an SMS messenger!
If anyone has any idea regarding it that could be helpful or any related article or any comment ..please do let me know
|
|
|
|
|
Depends what way you are going to do it... SMS-C is a good start but you do need some sort of SMS gateway... I think we are developing a JAVA one in TSSG [where I work] so if you want I could probably get it for you.
Regards,
Brian Dela
|
|
|
|
|
Take a look at www.clickatell.com
I'm extremely happy with their service, prica and API.
|
|
|
|
|
An evolutionary computing framework is one that facilitates the principles of evolution for solving problems. The main players are:
IEnvironment - The interface that defines the environment of the problem. The environment is responsible for defining the viability of individuals.
IPopulation is a type safe collection class with additional methods for querying the population as a whole (such as the average viability and viability spread etc.) and affecting it (culling).
IIndividual is a single individual that represents a possible solution in the problem. An individual has a set of genes that define it's solution to the problem space and individuals may breed which will result in offspring with genes selected at random from each parent.
IGene represents a parameter that affects a part of the solution.
For example, suppose we have a chess board with a game in play and want to select the best next move. Our class that inherits IEnvironment needs to supply a method that returns the viability of an individual - i.e. how sensible a move is.
Genes are created that specify which piece to move and which of it's possible end positions to chose. The population is seeded with a random set of individuals with a random mix of these genes.
The population is allowed to breed and then the bottom half are culled. This process is repeated a number of times until the population has a zero (or prechosen very low) viability spread. An individual in this population fits our best move.
The power of this framework is that it can be mapped to a huge range of problems by setting the environment and genes and the same underlying processes can be used to solve these problems.
Anyway - that is where I have got to. Any thoughts?
'--8<------------------------
Ex Datis:
Duncan Jones
Merrion Computing Ltd
|
|
|
|
|
very interesting. i am considering doing a thesis on neural networks and genetic algorithms for gradual degradation of RAID systems (redundant arrays of inexpensive devices (generic things rather than just HDDs)). this type of concept seems in line with my initial thoughts, although i was considering the inputs as sensory stimulii and applying learning features to the neural paths and thinking more micro-ecology rather than macro like your approach. what would be even more slick would be to take neural-network systems and link them toghether to form the IGene, or pseudo-DNA. then work up to the higher levels. hmmm....
- Nitron
"Those that say a task is impossible shouldn't interrupt the ones who are doing it." - Chinese Proverb
|
|
|
|
|
The article/framework is going to be based on the stuff in Richard Dawkins' books The Selfish Gene and The Blind Watchmaker - and there's a heap of material at EvoWeb that might be of interest.
'--8<------------------------
Ex Datis:
Duncan Jones
Merrion Computing Ltd
|
|
|
|
|
Som,e outline code:-
<br />
Public MustInherit Class IEnvironment<br />
<br />
Public MustOverride Function GetPopulation() As IPopulation<br />
<br />
End Class<br />
<br />
'\\ --[IGenome]----------------------------------------------------------------------------<br />
'\\ The genome defines the number of genes a member of a population has and their explicit <br />
'\\ locations. These locations have an explicit meaning in relation to the problem being <br />
'\\ tested by the environment and are not interchangeable<br />
'\\ ----------------------------------------------------------------------------------------<br />
Public MustInherit Class IGenome<br />
Inherits System.Collections.DictionaryBase<br />
<br />
Public <br />
End Class<br />
<br />
<br />
'\\ --[Individuals]-------------------------------------------------------------------------<br />
'\\ A collection of IGenome based objects<br />
'\\ ----------------------------------------------------------------------------------------<br />
Public Class Individuals<br />
Inherits System.Collections.CollectionBase<br />
<br />
End Class<br />
#End Region<br />
<br />
'\\ --[IPopulation]------------------------------------------------------------------------<br />
'\\ The population represents a set of potential solutions to the problem. It can be <br />
'\\ created from a randomly generated, or seeded by a predefined set, of individuals.<br />
'\\ ----------------------------------------------------------------------------------------<br />
Public MustInherit Class IPopulation<br />
Inherits System.Collections.CollectionBase<br />
<br />
Public MustOverride Function Breed(ByVal Parents As Individuals) As IGenome<br />
<br />
#Region "Public constructors"<br />
Public Sub New()<br />
<br />
End Sub<br />
<br />
Public Sub New(ByVal Seedgroup As Individuals)<br />
<br />
End Sub<br />
#End Region<br />
End Class<br />
'\\ --[IGene]-------------------------------------------------------------------------------<br />
'\\ The gene holds the current value for an individual variable that is used to compute the <br />
'\\ gene set's fitness to solve the environment's problem<br />
'\\ ----------------------------------------------------------------------------------------<br />
Public MustInherit Class IGene<br />
<br />
Public MustOverride Property Name() As String<br />
<br />
Public MustOverride Property Value() As Integer<br />
<br />
Public MustOverride Property MinimumValue() As Integer<br />
<br />
Public MustOverride Property MaximumValue() As Integer<br />
<br />
End Class<br />
However, I'm not sure that MinimumVale and MaximumValue should be specified by the IGene implementor or be a factor of the environment? I'd be happier with the latter as it seems to fit better with biological evolution but it isn't as easy to implement...thoughts?
'--8<------------------------
Ex Datis:
Duncan Jones
Merrion Computing Ltd
|
|
|
|
|
It might seem odd, but I'd really like a primer on how a loner like myself can make money out of a webapp.
I can't work it out, so I can't explain it to my accountant.
Regardz
Colin J Davies
Sonork ID 100.9197:Colin
Warning Link to the minion's animation, do not use.
It's a real shame that people as stupid as you can work out how to use a computer. said by Christian Graus in the Soapbox
|
|
|
|
|
|
I'm writing a tutorial on creating Word2000 addins using VC++/ATL. In it I'm also discussing the VBA side of Word. It is almost written though I have to edit it a bit.
Anyone else here planning to write something similar, let me know.
Hush,hush...
thought I heard you call my name now.
Kula Shaker.
Amit Dey
Latest articles at CP - PocketPC New menu
Office addin
|
|
|
|
|
I've been writing Word Addin's for the past 2 years. Send me the article when it's ready and I'll review it.
Cheers,
-Erik
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
My thoughts are my own and reflect on no other.
|
|
|
|
|
Hi,
Sorry! I should have probably posted earlier that my article has been published here.
But let me also ask you this. How do I create an Outlook's New button style'd button? If you notice, clicking on the button performs an action while clicking on the downward arrow displays a menu. I cannot ever create a CommandBarControl without styles = 10(popup) or 2(button). It looks like there are two buttons wedged together, and that makes sense. One is a CommandBarButton while the other is a CommandBarPopup that are very close to each other. I can get a 'separator' with setting BeginGroup property and handling each objects click event would make it possible to do 2 different things. But visually I can never quite get it cool enough.
Hush,hush...
thought I heard you call my name now.
Kula Shaker.
Amit Dey
Latest articles at CP - PocketPC New menu
Office addin
|
|
|
|
|
Hi...
Can somebody write a convertor from C++ headers to C#...
I mean convertion of fucntion declaration:
example:
in c++ in header structs and functions look like:
<br />
typedef struct tagCREATESTRUCTA {<br />
LPVOID lpCreateParams;<br />
HINSTANCE hInstance;<br />
HMENU hMenu;<br />
HWND hwndParent;<br />
int cy;<br />
int cx;<br />
int y;<br />
int x;<br />
LONG style;<br />
LPCSTR lpszName;<br />
LPCSTR lpszClass;<br />
DWORD dwExStyle;<br />
} CREATESTRUCTA, *LPCREATESTRUCTA;<br />
<br />
WINGDIAPI int WINAPI GetDIBits( IN HDC, IN HBITMAP, IN UINT, IN UINT, OUT LPVOID, IN OUT LPBITMAPINFO, IN UINT);<br />
in c#
<br />
[StructLayout(LayoutKind.Sequential)]<br />
public struct CREATESTRUCT<br />
{<br />
IntPtr lpCreateParams; <br />
IntPtr hInstance; <br />
IntPtr hMenu; <br />
IntPtr hwndParent; <br />
int cy; <br />
int cx; <br />
int y; <br />
int x; <br />
Int32 style; <br />
string lpszName; <br />
string lpszClass; <br />
UInt32 dwExStyle; <br />
}<br />
<br />
[DllImport("gdi32")]<br />
public static extern int GetDIBits(IntPtr hDC, IntPtr hbm, int StartScan, int ScanLines, int lpBits, BITMAPINFOHEADER bmi, int usage);<br />
Languages is simmilar enough and conversion can be done by simple words replace and strings movements
Good Luck
Alex Kucherenko
|
|
|
|