|
hai,i have to premine the association rules..am using the concept of weights.how can this be implemented..any idea??
|
|
|
|
|
vinu Rajendran wrote: hai,i have to premine the association rules..
CodeProject has an article on the Apriori-algo. Don't know what you're exactly looking for, got a feeling that you don't know yet either.
Can you describe a use-case?
Bastard Programmer from Hell
if you can't read my code, try converting it here[^]
|
|
|
|
|
Hi i have created windows application in .net with c# and my application running perfectly in Windows XP and Windows 7 but when i try to execute that application in Windows Server 2003 then it getting error at opening connection of ms access database which is specify below:
The type initializer for 'System.Transactions.Diagnostics.DiagnosticTrace' threw an exception.
at System.Transactions.Transaction.get_Current()
at System.Data.Common.ADP.IsSysTxEqualSysEsTransaction()
at System.Data.Common.ADP.NeedManualEnlistment()
at System.Data.OleDb.OleDbConnection.Open()
at Com.Xpdite.CC.Utils.DbConnection.getConnection()
so can any one provide me the solutions for this problem.
Please help me to get out from this problem...
|
|
|
|
|
What does your connectionstring look like? Where is the physical database-file stored?
My guess is that you're running a webpage (you didn't mention whether it's a web-app, a phone-app or a WinForm app) and that your user (the internet-user under which the webserver runs) does not have the required permissions to access the file in that location.
If your app is a webpage with more than 10 users, I'd strongly recommend upgrading to Sql Server Express.
Bastard Programmer from Hell
if you can't read my code, try converting it here[^]
|
|
|
|
|
Hi, I need help if possible about an error I have when launching a software named NoClone (duplicate finder made by reasonable software company).
Support doesn't reply it's why I ask for help here. I think it's related to NET Frawework but I'm not sure 100%
I can't find log file so I only can post a screenshot of the error windows :
http://imagesia.com/capture-2-_1xto
[url=http://imagesia.com/capture-2-_1xto][img]http://img.imagesia.com/fichiers/1x/capture-2-_imagesia-com_1xto_large.JPG[/img][/url]
Thanks in advance for any help.
|
|
|
|
|
optiontips.in wrote: Support doesn't reply it's why I ask for help here.<layer>
It's a serialization-error, somewhere in a constructor. Without the source-code, there's little we can do to help.
Bastard Programmer from Hell
if you can't read my code, try converting it here[^]
|
|
|
|
|
Obtain Summary Values from Devexpress GridView Control in vb.Net???
Plz help me...
Priyanka Jain
|
|
|
|
|
DevExpress has a forum and a (paid) helpdesk. You'll get an answer there faster than here.
Bastard Programmer from Hell
if you can't read my code, try converting it here[^]
|
|
|
|
|
In a DevExpress GridView to get the customized Summary of a Column we have to handle CustomSummaryCalculate event of the GridView. And we have to set the SummaryType property of that column to "Custom".
Below is an example of a GridView showing student details, in which we want to show the Customized Summary value of the Percentage Column.Here "gcPercentage" is the GridView's column name and PERCENTAGE is the FieldName of the column "gcPercentage".
Here is the code to set the SummaryType of the Column
gcPercentage.SummaryItem.SummaryType = DevExpress.Data.SummaryItemType.Custom;
and for CustomSummaryCalculate event of the student GridView.
private void grdvStudents_CustomSummaryCalculate(object sender, DevExpress.Data.CustomSummaryEventArgs e)
{
if (((DevExpress.XtraGrid.GridSummaryItem)e.Item).FieldName.
CompareTo("PERCENTAGE") == 0)
{
double totalMarks =
Convert.ToDouble(gcTotalMarks.SummaryItem.SummaryValue);
double marksObtained =
Convert.ToDouble(gcMarksObtained.SummaryItem.SummaryValue);
if (totalMarks != 0)
{
e.TotalValue = marksObtained / totalMarks * 100;
}
else
{
e.TotalValue = 0;
}
}
}
|
|
|
|
|
I'm trying to serialize the colors of buttons on a Windows form in VB2010.net. It appears to serialize correctly into XML, but for some reason it won't deserialize correctly. I've read various confusing blog articles, some of which say that you can't XML serialize the color propperty and others that seem to find a way to do so. It seems like it should be straight forward, but something is not being accepted by .net although it doesn't complain about my code. Does anyone have an idea why this won't work?
The following is my serializing segment:
xmlSerialisedForm.WriteAttributeString("BtnForeColor", DirectCast(childCtrl, Button).ForeColor.ToArgb().ToString)
xmlSerialisedForm.WriteAttributeString("BtnBackColor", DirectCast(childCtrl, Button).BackColor.ToArgb().ToString)
It yields the following XML:
="1.0"="Windows-1252"
<ChildForm>
<Control Type="System.Windows.Forms.Button" Name="btnConfigForm" ForeColor="Color [ControlText]" BakColor="Color [Control]" BtnForeColor="-16777216" BtnBackColor="-986896">
<Visible>True</Visible>
</Control>
<Control Type="System.Windows.Forms.Button" Name="btn30" ForeColor="Color [Black]" BakColor="Color [Yellow]" BtnForeColor="-16777216" BtnBackColor="-256">
<Visible>True</Visible>
</Control>
<Control Type="System.Windows.Forms.Button" Name="btn32" ForeColor="Color [White]" BakColor="Color [Green]" BtnForeColor="-1" BtnBackColor="-16744448">
<Visible>True</Visible>
</Control>
<Control Type="System.Windows.Forms.Button" Name="btn33" ForeColor="Color [White]" BakColor="Color [Black]" BtnForeColor="-1" BtnBackColor="-16777216">
<Visible>True</Visible>
</Control>
<Control Type="System.Windows.Forms.Button" Name="btn41" ForeColor="Color [Black]" BakColor="Color [Red]" BtnForeColor="-16777216" BtnBackColor="-65536">
<Visible>True</Visible>
</Control>
<Control Type="System.Windows.Forms.PictureBox" Name="pbxFloorPlan" ForeColor="Color [ControlText]" BakColor="Color [Control]">
<Visible>True</Visible>
</Control>
</ChildForm>
This following is my deserialize code that yields a white color for each button:
DirectCast(ctrlToSet, System.Windows.Forms.Button).ForeColor = Color.FromArgb(CInt(Val("BtnForeColor")))
DirectCast
(ctrlToSet, System.Windows.Forms.Button).BackColor = Color.FromArgb(CInt(Val("BtnBackColor")))
|
|
|
|
|
Dan Orr wrote: DirectCast
(ctrlToSet, System.Windows.Forms.Button).BackColor = Color.FromArgb(CInt(Val("BtnBackColor")))
Too many instructions on a single line.
Dim ControlToSet As Button = DirectCast(..
Dim TheColor As Color = Color.FromArgb(Cint(Val(..
That way you can put a breakpoint on an instruction and see what is happening. Further, I'd recommend using the Color.FromName[^] method.
Bastard Programmer from Hell
if you can't read my code, try converting it here[^]
|
|
|
|
|
Hi,
Anyone can refer any stuff to understand .Net Framework in brief.
Thanks
|
|
|
|
|
Tanajee Vaghmare wrote: Anyone can refer any stuff to understand .Net Framework in brief.
You cannot understand it in "brief". Start here[^] if you don't know where to begin. The library would be a good place to visit too.
Bastard Programmer from Hell
if you can't read my code, try converting it here[^]
|
|
|
|
|
Dears,
i have implemented a custom tool that generates a new class inherited from component class. i want to force the DesignerSerializer to run after the custom tool finish to add new properties to initialize component function.
something like this
Class DerivedComponenet
inherits BaseComponent
....
sub InitializeComponent()
end sub
....
end Class
<designerserializer(gettype(customserializer),gettype(codedomserializer)> _
class BaseComponent
inehrits Componenet
<localizable()> _
public property DynamicProp1 ()
...
end prop
<localizable()> _
public property DynamicProp2()
...
end property
the classes DerivedComponent and baseComponent are generated by custom tool, and DynamicProp1 and DynamicProp2 generated by custom tool too based on criteria
when i set properties of DerivedComponent for dynamicProp1, the serializer writes it on the initializeComponent, which is fine, but if the custom tool runs again and according to the generation criterias, it decided to remove these properites and create another, then the initialize component is not updated by removing DynamicProp1 and DynamicProp2 and add let say DynamicProp3 and DynamicProp4.
the desinger does not update the file until i change anything in the DerivedComponent designer, then it serialize and regenerate the code again.
what i want is to force the designer to be regenerated again after the custom tool finished
Any Idea... and thanks
|
|
|
|
|
from my practise of mvc using razor engine, i found out that razor is more slower than the classic aspx engine,,
anybody having any idea about the internal processes of razor engine
|
|
|
|
|
albarhami wrote: anybody having any idea about the internal processes of razor engine
People using a tool will not always look inside that tool to analyze it. Please don't repost the same question, and try this forum[^].
Bastard Programmer from Hell
if you can't read my code, try converting it here[^]
|
|
|
|
|
You're not making a ground breaking discovery here. That little fact has already been documented, here[^].
|
|
|
|
|
from my practise of mvc using razor engine, i found out that razor is more slower than the classic aspx engine,,
anybody having any idea about the internal processes of razor engine
|
|
|
|
|
how to create database with sql connection in vb.net
|
|
|
|
|
To which TYPE of database? Oracle, Sql Server, TimesTen?
See the Howto[^] in the documentation. You could generalize it like this;
Dim ConnectionString as String = ""
Using con As New SqlConnection(ConnectionString)
Using cmd As SqlCommand = con.CreateCommand
cmd.CommandText = "SELECT 1"
con.Open
cmd.ExecuteNonQuery
End Using
End Using
There are quite some tutorials on the internet. I suggest downloading a few and playing a bit with them.
Bastard Programmer from Hell
if you can't read my code, try converting it here[^]
|
|
|
|
|
Another cross posting
Why is common sense not common?
Never argue with an idiot. They will drag you down to their level where they are an expert.
Sometimes it takes a lot of work to be lazy
Please stand in front of my pistol, smile and wait for the flash - JSOP 2012
|
|
|
|
|
I am new to the .NET Framework and i will love to learn all its languages but i do not know if it is a good idea to actually learn the whole framework documentation.
My question is how do i get to know a framwork?
|
|
|
|
|
Georges23 wrote: My question is how do i get to know a framwork?
Step by step, bit by bit.
Step trough the Beginner Portal[^], and choose one of the four directions to start with.
As you build more applications, you'll encounter new controls, new problems and new possibilities. That's the moment you hit either MSDN or CodeProject. That way you get to know the library gradually.
Bastard Programmer from Hell
if you can't read my code, try converting it here[^]
|
|
|
|
|
You might want to use the Object Browser within Microsoft's Visual Studio to view the available objects and classes within the System namespaces.
Within Visual Studio, use the view menu option to open, if not listed, within the same menu click the Other Windows sub menu. If you're unsure what the classes do visit the MSDN website for details on how to implement or use.
AsaApplications Com LLC
|
|
|
|
|
The best way is to pick up a book and read.
|
|
|
|