|
Why not? Is it maximized, do you have trouble using your mouse, what?
Bastard Programmer from Hell
if you can't read my code, try converting it here[^]
|
|
|
|
|
Hi,
We are looking for a .NET component which will do lookup tables (with interpolation). I've spent hours searching google/forums to no avail.
As the lookup table will be used frequently in a computationally intensive process, speed is of great importance. Ideally we would want to stay away from a database approach as we are not using database/tables anywhere else in the product.
We tried building a component ourselves but were struggling with speed. Our method came down to looping through every single element in the table and comparing it (calculating distance) to what we were trying to lookup. I should mention that we only are dealing with numbers and we have the need for higher dimensions in the table (ie. 1D, 2D, 3D, nD tables).
Can anyone recommend either an exisiting component or should we should try to optimize our algorithm and move to a native C++ implementation to gain speed?
Thx
Hento
|
|
|
|
|
HentoDeluxe wrote: As the lookup table will be used frequently in a computationally intensive process, speed is of great importance. Ideally we would want to stay away from a database approach as we are not using database/tables anywhere else in the product.
Meh, I was just about to recommend the TimesTen database.
HentoDeluxe wrote: Our method came down to looping through every single element in the table and comparing it (calculating distance) to what we were trying to lookup.
Does your lookup have a key that you're comparing to? If yes, try a Dictionary. You might also enjoy benefits from reading up on database-theory; if your data contains several fields that you do for the lookup, it might be a cute idea to have something similar to an index.
HentoDeluxe wrote: Can anyone recommend either an exisiting component or should we should try to optimize our algorithm and move to a native C++ implementation to gain speed?
You need to find the correct approach; changing language isn't going to help much.
Bastard Programmer from Hell
if you can't read my code, try converting it here[^]
|
|
|
|
|
Hello,
I would like to convert a decimal number (base10) into hexadecimal and then save it into an unsigned char array.
I have an integer whose value increments from 1024 to a max of 2047 in steps of 1 whenever the user clicks a button. At each step I need to convert it to a hexadecimal number and save it into an unsigned char array or 2 elements so that I can send it to a device via USB.
For example:
If I want to send 1955 decimal number I would like to have my unsigned char array as below
Out[0] = 0x07;
out[1] = 0xA3
then I can use my transferdata(out) function.
Can someone help me with this?
thanks in advance
PKNT
|
|
|
|
|
Something like ...
Out[0] = decimalNumber / 256;
Out[1] = decimalNumber % 256;
One of these days I'm going to think of a really clever signature.
|
|
|
|
|
Thanks for your reply, it works perfect. Looks very simple, wonder why I didnt get that idea (I did many times before in similar ways). These days I have to start thinking from scratch.
PKNT
|
|
|
|
|
Kiran Satish wrote: These days I have to start thinking from scratch. Yeah, me too.
One of these days I'm going to think of a really clever signature.
|
|
|
|
|
What is Common Type System (CTS) in .net framework? I'm beginner in .net platform so please define briefly.
|
|
|
|
|
In order to provide the ability to use many different languages in .net, and for components written in one language operate with components written in another, we need to use the same primitive types. These are supplied by the CTS.
|
|
|
|
|
As we develop application in different language so they have different way of defining variable so How CLR will understand this.So for this .net define CTS like in c# we have int in VB we have Integer when they complied they are converted to Sysyem.int32 which is common for both language.
|
|
|
|
|
In Microsoft's .NET Framework, the Common Type System (CTS) is a standard that specifies how Type definitions and specific values of Types are represented in computer memory. It is intended to allow programs written in different programming languages to easily share information.
|
|
|
|
|
* Common Language Runtime
* Dynamic Language Runtimes (DLR)
* .NET Framework Class Library
* Side-by-Side Execution
* Profiling
* Runtime Host
* Application Domains
* Common Type System
* Metadata and Self-Describing Components
* Cross-Language Interoperability
* .NET Framework Security
|
|
|
|
|
Okay..... Do you have a question or something?
"Any sort of work in VB6 is bound to provide several WTF moments." - Christian Graus
|
|
|
|
|
i have a drop down list which have three entry.when i select every entry of dropdownlist then the data show into the gridview...my code behind page is
using System;
using System.Data;
using System.Configuration;
using System.Collections;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;
using System.Data.SqlClient;
using System.Net.Mail;
using System.IO;
using System.ComponentModel;
using System.Drawing;
using System.Web.SessionState;
namespace AccountManagement
{
public partial class Account : System.Web.UI.Page
{
SqlConnection con;
SqlDataAdapter da;
SqlDataReader dr;
DataTable dt;
SqlCommand cmd;
protected void Page_Load(object sender, EventArgs e)
{
string s = ConfigurationManager.ConnectionStrings["conn"].ConnectionString;
con = new SqlConnection(s);
con.Open();
}
public void bindgrid()
{
cmd=new SqlCommand ("select distinct Fname,Lname from Client_registration_tbl",con);
con.Open();
dr = cmd.ExecuteReader();
GridView1.DataSource = dr;
GridView1.DataBind();
GridView1.Visible = true;
con.Close();
}
public void bindlst()
{
da = new SqlDataAdapter("select distinct Fname,Lname from Client_registration_tbl", con);
dt = new DataTable();
da.Fill(dt);
DropDownList1.DataSource = dt;
DropDownList1.DataBind();
}
protected void DropDownList1_SelectedIndexChanged(object sender, EventArgs e)
{
da = new SqlDataAdapter("select distinct Fname,Lname from Client_registration_tbl" + DropDownList1.SelectedItem.Text + "", con);
dt = new DataTable();
da.Fill(dt);
GridView1.DataSource = dt;
GridView1.DataBind();
bindgrid();
bindlst();
}
}
}
thanksss in advance
|
|
|
|
|
Firstly this is not the ASP.NET forum, which is here[^], and secondly, you forgot to ask a question.
One of these days I'm going to think of a really clever signature.
|
|
|
|
|
my que is when i select the second entry of drop down list then the gridview show another entry from database.
|
|
|
|
|
You're awfully quick to univote there aren't you? Richard pointed out that the ASP.NET experts are in the ASP.NET forum - which would be a much more appropriate place to ask this question.
|
|
|
|
|
Thanks Pete, although I only got -2 for this one; I got a -16 in The Soapbox.
One of these days I'm going to think of a really clever signature.
|
|
|
|
|
Countered that one as well, but I think I may soon be in for a barrage of downvotes there.
|
|
|
|
|
Strange isn't it? We all claim that we don't care about downvotes and yet continue to counter them when we feel they are unwarranted.
One of these days I'm going to think of a really clever signature.
|
|
|
|
|
Rashid Choudhary wrote: another entry Not clear of this point. Can you please explain a little bit what you exactly mean by this ?
|
|
|
|
|
GridView is not a method that you can call it!
Meysam
|
|
|
|
|
Hi naveen karamchetti,
recently i read one of the artical(Singleton orchestraion in biztalk server) written by you.It is a very good artical.
in that artical you explain with one sample example.i need that sample code.please send to my mail id it is usefull to me.plz plz plz plz send me.
Thanks & regards
srinivas
srinu.reddy789@gmail.com
|
|
|
|
|
Who is naveen karamchetti, and why are you writing to him/her in this forum?
One of these days I'm going to think of a really clever signature.
|
|
|
|
|
Hi,
I want to create combobox dynamically accepting multiple column values from database n VB.Net..!
Want to create table like structure inside combobox.. Column values and Row values are dynamic..
Please help me..! Thanks in advance..!
|
|
|
|