|
Probably, but you're going to have to test it to be sure. Otherwise, your best source of information is going to be a forum that deals specifically with MATLAB. CP is not that place.
|
|
|
|
|
Hi This is Ali from Pakistan
can some body help me out please????
I m working on a web application that is created in simple ASP, while its some packages are created in Oracle forms using oracle developer.
Is it possible to comiple a oracle form into a java applet code that could b called through any web-server. I want oracle application server out from buisness...
Waiting for your reply
|
|
|
|
|
And the technologies are:
Oracle Forms
Oracle Developer
Oracle
ASP
Nope no VB for the VB forum.
Good luck getting an sensible answer for that question in this forum. You may do as there are a wide range of skills here.
Never underestimate the power of human stupidity
RAH
|
|
|
|
|
hi guys
i am working in vb.net 2005 i have a class library but i cant see my
assemblyinfo.vb in this project, why ?
thanks in advance
hello
|
|
|
|
|
Add a reference to you class library project under My Project
Never underestimate the power of human stupidity
RAH
|
|
|
|
|
You do not see it because that is one of the hidden files of the solution when viewing in the solution explorer. To fix this issue, highlight the solution in the solution explorer then in the menus goto 'Project' then 'Show All Files'. Although various files are different in different langauges this will work with C#, VB, and I believe C++. Their is also a shortcut to the 'show all files' in the toolbar at the top of the solution explorer.
Regards,
Thomas Stockwell
Programming today is a race between software engineers striving to build bigger and better idiot-proof programs, and the Universe trying to produce bigger and better idiots. So far, the Universe is winning.
Visit my homepage Oracle Studios[ ^]
|
|
|
|
|
Hello,
I am trying to understand the basics of XML, and I have a very simple idea which doesn't seems to be so simple I used INI files before and decided it was time to try XML. But I didn't came further than
Dim xmldoc As New XML.XMLDocument
I have the following INI file which I want to store in a XML file:
[Settings]
WindowState=0
etc..
Can someone show me how to store this in a XML file?
I am using VB.NET and Visual Studio 2005.
Thanks,
--Zaegra--
|
|
|
|
|
One obvious example would be
<Settings>
<WindowState>0</WindowState>
</Settings>
I suggest you read up on what XML is, and how it works. You'll need to read up on XPath to be able to find your settings within this file, too.
Christian Graus
Please read this if you don't understand the answer I've given you
"also I don't think "TranslateOneToTwoBillion OneHundredAndFortySevenMillion FourHundredAndEightyThreeThousand SixHundredAndFortySeven()" is a very good choice for a function name" - SpacixOne ( offering help to someone who really needed it ) ( spaces added for the benefit of people running at < 1280x1024 )
|
|
|
|
|
I know the structure of an XML file, but I'd like to know how i can store these values in an XML file in the proper way. Could you tell me how to accomplish this? I searched CodeProject but i didn't really find what i needed
|
|
|
|
|
If I am using an XML source I use a dataset to manage the data in the app and read/write it using the dataset.readxml methods. This really is a nobrainer if all you want is to manage the data via xml. If you want to do any more then as Christian suggested you will need to devote some study time to it.
Never underestimate the power of human stupidity
RAH
|
|
|
|
|
Mycroft Holmes wrote: This really is a nobrainer
Well, everybody needs to start somewhere, doesn't he . But thanks for the reply, I'll try it.
--Zaegra--
|
|
|
|
|
Zaegra - I did not want to imply nobrainer was personal. Dataset to and from XML really is simple to use but it will not give you ANY insight into using XML.
And yep we ALL started somewhere, I have almost no working knowledge of XML as I rarely use it.
However I have 1 strong caveat, do NOT use XML for transporting large volumes of data, XML is so verbose your data size will may become an issue. Use CSV instead.
Never underestimate the power of human stupidity
RAH
|
|
|
|
|
The 'proper' way really doesn't exist, XML is a loose format, you can structure it any way you like.
Christian Graus
Please read this if you don't understand the answer I've given you
"also I don't think "TranslateOneToTwoBillion OneHundredAndFortySevenMillion FourHundredAndEightyThreeThousand SixHundredAndFortySeven()" is a very good choice for a function name" - SpacixOne ( offering help to someone who really needed it ) ( spaces added for the benefit of people running at < 1280x1024 )
|
|
|
|
|
Another method of handling this is with XMLSerializer, you use it to persist classes in XML. So you could have an INI object that you fill with data and then serialize it to disk, then when you want the data back you just de-serialize it. It is pretty simple have a look on msdn for code samples.
This way you can have a class that has the property WindowState, you then set this property in an instance of the class to 0 (obj.WindowState = 0) then serialize the object (something like serializer.Serialize(obj, path))
then just reverse this to fill the class and read its properties like any other class.
Hope that's of some use.
At university studying Software Engineering - if i say this line to girls i find they won't talk to me
Dan
|
|
|
|
|
Hi
I’ve started to develop VB.Net application within the company I work for using Visual Basic 2008 Express Edition.
Working and testing locally I had no problem, but when I started to develop the application on my shared mapped drive I started get problems.
The first one was, when I loaded the project from the mapped drive a popup message stating:
“The Project location is not trusted
[PATH]
running the application may result in security exceptions when it attempts to perform action which require full trust”
I’ve been into the project security properties and set it to “this is a full trust application” and still not joy.
If I develop and build the application on my local machine and then try and run it on a mapped drive it fall over and crashes (Doesn’t even seem to start).
Does anyone have any ideas on how I can get around this?
Thanks
|
|
|
|
|
cooper000007 wrote: Does anyone have any ideas on how I can get around this?
Network locations are not trusted by default in .NET. Only the local physical machine is trusted by default.
You have two solutions.
1. Tell .NET to trust the network location.
2. Strong name the assemblies and tell .NET to trust those assemblies.
The advantages of 1 are that you don't have to change the way you develop the assemblies, however it becomes a hassle if you have to change the network location - especially if you are running it on many machines (they all have to be updated)
The advantages of 2 are that you only have to tell each machine once and it will trust any assembly that has been signed with the strong name key. This means you can sign multiple assemblies and they can be run from any network connection. However, it means you will have to be careful with the key. If it gets in to the hands of someone malicious then they can use it to create assemblies that your machines will trust.
In order to tell each machine about which ever of the above routes you want to take you have to use the Microsoft .NET Framework x.x Configuration tool found in Administrative Tools.
|
|
|
|
|
Hi all
I have been working on a piece of GIS software with my team for a little over 12 months now. We have now made it to the Microsoft Imagine Cup World Finals and are seeking to improve certain areas of our program. One of which is to improve the method we use to calculate the remaining trip time of a vehicle on a predefined route, at any point in its route. Can anyone please provide an algorithm we can use or some source where we can learn to build a more efficient algorithm. Time is short, but this is a very necessary improvement. Thanks in advance for any help.
Kind regards.
Dev
|
|
|
|
|
To calculate the remaining travel time, you need to know the speed of the vehicle. Then you can use the formula t=x/v. T = Time, X = Distance, V = Speed. You could subtract the number of ridden meters of the total. Then divide that by the speed in meters per second (m/s) and you have the remaining time in seconds.
Good luck!
--Zaegra--
|
|
|
|
|
Yes, this is correct and provides a very elementary estimate, but an algorithm is required which allows for environmental factors to be added to the estimate.
|
|
|
|
|
There are a lot of formulas to calculate the friction. I am not that good in physics (basically that's what this is) but I do know the following formulas which might come handy.
- F (Force in Newton) = M (Mass in Kilograms) * A (Acceleration in M/s²)
- W (Energy in Joule) = F * s (Distance in Meters)
- A = V (Speed in M/s) / T (Time in Seconds)
- X (Distance in Meters) = V * t
- Ekin (Kinetic Energy in Joule) = 0.5mv²
Since you know the route, it's possible but VERY slow to calculate the friction on eg bumpy parts of the road. You can implement that in your program as a constant or whatsoever. Try Google aswell.
|
|
|
|
|
i am working in vb.net 2005, in my DAL there is always a new connection but in the finally of each function i always close the data reader object,does it make any problem because i think connection remains open , doest it increase the number of connections ?
hello
|
|
|
|
|
You should close the connection, but .NET manages a connection pool, I believe.
Christian Graus
Please read this if you don't understand the answer I've given you
"also I don't think "TranslateOneToTwoBillion OneHundredAndFortySevenMillion FourHundredAndEightyThreeThousand SixHundredAndFortySeven()" is a very good choice for a function name" - SpacixOne ( offering help to someone who really needed it ) ( spaces added for the benefit of people running at < 1280x1024 )
|
|
|
|
|
Yes, the connection definitely remains open unless you specifically close it (either by calling the Close or Dispose method of the connection).
If you don't close the connection, it will remain open until it makes a timeout, which happens after a few minutes. If too many connections remain open, the database will not allow any more connections, so it will effectively stop working until the next connection makes a timeout.
An Access database has a limit of 64 connections, so it will die rather quickly. Database servers have a higher limit, but it's still there.
Despite everything, the person most likely to be fooling you next is yourself.
|
|
|
|
|
as what every one has told already... you need to close the connection
There is just one small information which i will like to add..
Unlike the "recordset" in VB6, the result from DB is stored in the datareader in VB.net.
If you are using a common function to interact with DB, in that function only open the Connection and close it before you leave the function.
Regards
Nishkarsh
|
|
|
|
|
nishkarsh_k wrote: Unlike the "recordset" in VB6, the result from DB is stored in the datareader in VB.net.
Actually, as the name suggests, the DataReader is used to read the data rather than storing the data.
A DataReader is similar to a forward-only read-only Recordset.
A DataTable is similar to a disconnected Recordset.
Despite everything, the person most likely to be fooling you next is yourself.
|
|
|
|