|
I try to launch an application that uses CsGL (OpenGL wrapper for C#). I downloaded CsGL pack and set the reference to csgl. I still get following errors:
using CsGL.Basecode ->this is invalid, he cant find it
Type or namespace 'Model' cannot be found -> where is it, where to get it?
thank you very much for any help
|
|
|
|
|
Hi
How can I change the order of child nodes in an xml document? (.NET 2)
cheers
|
|
|
|
|
I’d like to ask you a question: there are a lot of web sites made in static HTML. Sooner or later HTML sites are to be converted in PHP/MySQL, but the operation is very expensive since it is to be done manually or with the usage of ad hoc written software.
I’ve an idea to make an universal software to convert html pages into templates and database…
It’s really easy: it’s enough to compare two HTML files and make one regular expression that matches them. Then you refine that regular expression to match a group of files.
Example.
First file
1
Second file
2
Reg exp = \d
Third file
Reg exp = \d?
Fourth file
11
Reg exp = \d(0,2)
Fifth file
error
Reg exp = .*
|
|
|
|
|
And the question is?
---
b { font-weight: normal; }
|
|
|
|
|
Is it possible to make a software that compares two or more files that gives a regular expression that matches them all?
|
|
|
|
|
Yes, of course it is.
The question is rather if the pattern will be good enough to be useful for anything.
---
b { font-weight: normal; }
|
|
|
|
|
I think it depends from the number of file you can compare. However for web it would be enough to create a very very simple regular expression: .* (or better .*?) for any difference and the string itself for any identity between files.
example:
file 1:
1
file 2:
2
Reg Exp:
(?nome1 .*?)
Is it possible to do something similar modifying code from program that compare differences between files?
|
|
|
|
|
Yes, perhaps.
You should do something to normalize the pages before comparing them, also.
For an example, these codes:
<html><head><title>page</title></head>
and
<HTML>
<HEAD>
<TITLE>page</TITLE>
</HEAD>
They have the exact same meaning (at least in html, but not in xhtml), but most of the characters differ, and the white space differs.
---
b { font-weight: normal; }
|
|
|
|
|
yes this should be easy, but not so effective since there are a lot of other "invariants" in html language, and not so needeed since page in static html should be very similar each other.
It could be implemented by separating html tags from its content trimming each line of the resulting array of strings. html tags could be converted to little case.
|
|
|
|
|
hi,
i want to write a encrypted value ("1", "2",...)to the registry! but how can i encrypt and decrypt? which algos can i use RSA or smth. like that?
cu
|
|
|
|
|
Do a search on code project for encryption. This is the first hit http://www.codeproject.com/dotnet/SimpleEncryption.asp[^]. It looks like it gives an introduction to the encryption tools built into the CLR. Some of the other results look good as well.
I can imagine the sinking feeling one would have after ordering my book,
only to find a laughably ridiculous theory with demented logic once the book arrives - Mark McCutcheon
|
|
|
|
|
The best encryption there is, they actually use in banks, is this one:
To encipher:
out = in^cipherkey mod range
To decipher:
out = in^decipherkey mod range
Here's one key you can use:
7, 23 (or 13 I can't remmember)
If you don't got the key it's undecipherble!
Niklas Ulvinge aka IDK
|
|
|
|
|
|
whats the name of The best encryption why banks use? AES?
cu
|
|
|
|
|
Typo that was a thinko
The best encryption there is, they actually use it in banks
Or was there anyting else you didn't understand or was wondering?
Niklas Ulvinge aka IDK
|
|
|
|
|
Typo that was a thinko ???? i dont understand what you mean...
cu
|
|
|
|
|
I'm just playing with words...
Typo is called when you type wrong
and a thinko is when you think wrong
Niklas Ulvinge aka IDK
|
|
|
|
|
He's refering to the RSA algorythm. Obviously you need a much longer key than in his example.
|
|
|
|
|
Have a problem with moving a picturebox while left clicking and moving the mouse cursor:
private void pictureBox1_MouseMove(object sender, System.Windows.Forms.MouseEventArgs e)<br />
{<br />
if (e.Button == MouseButtons.Left)<br />
{<br />
pictureBox1.Location = new Point(e.X,e.Y);<br />
}<br />
}
Looks not very nice during runtime, because there are some drawing problems. Any suggestions?
|
|
|
|
|
Seraphin,
To improve the looks during the draw you probably need to impliment double buffering.
Take a look at this example:
http://www.codeproject.com/cs/media/flickerFreeDrawing.asp
It should get you going.
|
|
|
|
|
Hi I am struggling to insert a record into an existing database with 2 Text fields. I
am using ODBC/DSN to connect to the database. The MS-Access database is
in my secure DB folder. I am able to read the database content and display.
However, I can't insert any records. I am sure the datatypes are compatible
with the database and the # of fields are correct.
Error:
-------
ERROR [07002] [Microsoft][ODBC Microsoft Access Driver] Too few
parameters. Expected 2.
Do you think this has something to do with permissions and I have to ask my
hosting company if they can give me write permissions?
Appreciate if anyone can help.
Complete code:
------------------------
OdbcConnection dbConnection = new OdbcConnection(strODBC);
String sqlStmt = "INSERT INTO outbox(db_email1, db_email2) VALUES
(@email1, @email2)";
OdbcCommand dbCommand = new OdbcCommand(sqlStmt,
dbConnection);
OdbcParameter e1Param = new OdbcParameter("@email1",
OdbcType.VarChar, 255, "db_email1");
e1Param.Value = email1;
dbCommand.Parameters.Add(e1Param);
OdbcParameter e2Param = new OdbcParameter("@email2",
OdbcType.VarChar, 255, "db_email2");
e2Param.Value = email2;
dbCommand.Parameters.Add(e2Param);
dbConnection.Open();
try
{
dbCommand.ExecuteNonQuery();
}
catch (OdbcException xx)
{
// Exception
errorMsg.Text = "Insert Data Failed - " + xx.Message;
}
dbConnection.Close();
|
|
|
|
|
The account that your ASP site is running under MUST have write permissions to the FOLDER that your .MDB file sits in. Without those permissions, you're out of luck.
RageInTheMachine9532
"...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome
|
|
|
|
|
I need to include a spreadsheet control on a form in my C# WinForms application. Once the spreadsheet is loaded, I want to be able to load excel add-ins (.xla/.xll) - for instance, the "analysis toolpak" - files to allow access to their functionality with the spreadsheet. How can I do this?
|
|
|
|
|
Hi!
I want to read an XML file, which is not completely standard conformant. To be more precise some of its nodes contain text with special characters (see the example below).
<br />
<RootElement><br />
<ConformantNode>Hello</ConformantNode><br />
<NonConformantNode>You & me</NonConformantNode><br />
</RootElement><br />
As you can see "NonConformantNode" contains an & char in its text, which always makes System.Xml.XmlReader throw an exception.
How can I read the content of this document, in other words, how can I read an XML document without automatic character decoding?
Thanks for your help in advance!
P.S.: I already tried setting XmlReaderSettings.CheckCharacters to false, but this doesn't do the trick.
-- modified at 8:01 Saturday 17th September, 2005
|
|
|
|
|
One way could be to read the file into a string, replace the illegal characters with their legal code, and then read the string into an xml document.
---
b { font-weight: normal; }
|
|
|
|