|
In C# WINDOWS APPLIATION FORM i want to create Student Marks Memo
|
|
|
|
|
OK, go ahead and create it. And when and if you have a technical problem come back here and explain it in proper detail.
Veni, vidi, abiit domum
|
|
|
|
|
|
Please don't send messages to me that are meant for the OP.
Veni, vidi, abiit domum
|
|
|
|
|
thinking this was meant for the original poster...
never sent anything to you. =x
=)
|
|
|
|
|
Forbiddenx wrote: never sent anything to you. Yes you did, you clicked the Reply link at the bottom of my message, which means that I got notified, but the OP will not see it. You should open the original poster's message, and reply to that.
Veni, vidi, abiit domum
|
|
|
|
|
YOu have to start with the basics.
Pick up a book on .Net and start reading.
|
|
|
|
|
How in the hell do you expect to be able to understand the (very long) answer to this question when you can't even understand the very simple answer to your other question, directly above this post?
You REALLY need to drop this project and pickup a beginners book on C# and work through it. Then you need to go back to elementary school and learn simple math. Asking how to calculate a percentage is something you're taught when you're 10 years old!
|
|
|
|
|
Hi,
Can someone send me a code snippet for a hand detection based on skin color. Precisely, how can i model the distribution of the color to do a segmentation based on it.
Note: this is for a real time use.
Thanx
|
|
|
|
|
No, because we do not do your work for you.
If you want other people to do your job, you have to pay. I suggest you go to vWorker (or whatever it is called this week) and try there. But be aware: pay peanuts, get monkeys...
This message is manufactured from fully recyclable noughts and ones. To recycle this message, please separate into two tidy piles, and take them to your nearest local recycling centre.
Please note that in some areas noughts are always replaced with zeros by law, and many facilities cannot recycle zeroes - in this case, please bury them in your back garden and water frequently.
|
|
|
|
|
I think that's normal: helping others if we can, i don't ask to do my job.
I asked for suggestion, for real time application.
private void DoMainLoop(Image<Bgr, Byte> frame)
{
try
{
Stopwatch watch = Stopwatch.StartNew();
Image<Gray, Byte> img1 = frame.Convert<Gray, Byte>();
if (traiter)
{
img1 = img1.SmoothBlur(smooth, smooth);
img1 = img1.Dilate(dilate);
img1 = img1.Erode(erode);
}
imgBin = img1.ThresholdBinaryInv(new Gray(threshold), new Gray(255));
handrectangle = HandsFromContours(imgBin);
......
......
......
}
}
what i want is a suggestion of a segmentation in real time in place of getting the hand from contour.
|
|
|
|
|
No, you asked for the code, not a suggestion.
Member 10237882 wrote: Hi,
Can someone send me a code snippet for a hand detection based on skin color.
Perhaps you need to phrase things differently?
This message is manufactured from fully recyclable noughts and ones. To recycle this message, please separate into two tidy piles, and take them to your nearest local recycling centre.
Please note that in some areas noughts are always replaced with zeros by law, and many facilities cannot recycle zeroes - in this case, please bury them in your back garden and water frequently.
|
|
|
|
|
You shouldn't try to use colour segmentation to do this - it's just too fraught with issues to be able to handle this effectively in real time.
|
|
|
|
|
What should i use for a rapid segmentation of the hand in a relative simple background ?
Thanx
|
|
|
|
|
Can any web developer can say, what kind of framework this website is using www.paytm.com
Because this website is clean and fast
-
Aravind
|
|
|
|
|
This is not anything to do with C#. And if you want to know something about another website then go there and ask them.
Veni, vidi, abiit domum
|
|
|
|
|
Hi,
We have 2 services running in the same server. Both the services are using different Excel templates(Macro enabled) from different folders.
The issue is, when these 2 services are processing the request at the same time, i am getting this 'RPC server unavailable' error.
What is the cause for this issue? how one service doing excel processing causes RPC server unavailable in the other service.
Pls. help.
Mathu
|
|
|
|
|
That's a COM error message meaning that the other application has crashed.
Try different users for running the services.
|
|
|
|
|
Hi,
Thanks for your reply.
Already these services are running as different users.
One as SYSTEM and the other as <some user="">.
Pls. guide me why one service is crashing the other.
Info - Both Excels are having macros.
|
|
|
|
|
Hello everyone. i am developing Calls recording application in C#. which allow me to record my Conversation. Recording part is complete and my recording is saving in MP3 Format.
Now i want to some other features with my MP# file.
1. Firstly i want to implement an algorithm to verify that a file has been created by my system(my Hardware/Software) or not.
2. I have to add my company slogan with my MP3 file data as my signature. such that if anyone ask me about the conversation file and if he/she makes changes in file so we can verify that file is changed or not.
(I am doing now by checking MD5 signature of file that file is changed or not. but its not giving me the perfect location that from where to where file has been changed.)
If anyone have any idea about this then please help me that how can i achieve it.
Regards
Hamroush Sadiq
.NET Developer
Softech MicroSystems
|
|
|
|
|
edit, August 31, 2013: you should definitely search CodeProject: it was easy to find this [^], and this [^] ... which seem, to me, immediately relevant to your goals here.
I assume the constraint here is: you must have a playable, valid, .mp3 file: correct ?
2. have you thoroughly investigated the general issue of metadata in .mp3 files, and such resources as the ID3 format [^], and tools like: [^].
3. what is your standard for "non-hackability" here ? are you willing to go as far as to actually modify the digital values that represent the waveforms of the recorded audio itself, the audio equivalent of "secret watermarking" a bunch-of-pixels in-a-file ? is it your intent to have something that could actually be introduced as "provably" from a certain source, in a court-of-law, when its authenticity is challenged by "expert witnesses" ?
4. what have you tried so far ? have you solved the problem of generating a unique ID based on your hardware and software ?
5. have you definitely excluded the possibility the existing standards for metadata in .mp3 files offer you enough "bytes" to store all the things you describe you wish to store, in the file ?
Google CEO, Erich Schmidt: "I keep asking for a product called Serendipity. This product would have access to everything ever written or recorded, know everything the user ever worked on and saved to his or her personal hard drive, and know a whole lot about the user's tastes, friends and predilections." 2004, USA Today interview
|
|
|
|
|
Hi All
we are newbies on ASP and .NET, but with some experience on C# .
We need some explanation about what we are doing wrong in this code and HTML page.
HTML Page
<%@ Page Language="C#" AutoEventWireup="true" CodeFile="GraficosDados.aspx.cs" Inherits="Testing_Studies_GraficosDados" %>
<%@ Register Assembly="System.Web.DataVisualization, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"
Namespace="System.Web.UI.DataVisualization.Charting" TagPrefix="asp" %>
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
<title></title>
</head>
<body>
<form id="form1" runat="server">
<div>
<asp:Button ID="Button1" runat="server" OnClick="Button1_Click" Text="Button" />
</div>
</form>
</body>
</html>
C# Code
using System;
using System.Collections.Generic;
using System.Configuration;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.DataVisualization.Charting;
using System.Data;
using Windwater;
public partial class Testing_Studies_GraficosDados : System.Web.UI.Page
{
Chart C1 = new Chart();
System.Web.UI.WebControls.CheckBoxList cbLengend = new CheckBoxList();
SQLHelper SQL = new SQLHelper();
IOHelper Log = new IOHelper();
DataTable dt = new DataTable();
protected void Page_Load(object sender, EventArgs e)
{
LoadTable();
}
private void LoadTable()
{
if (!IsPostBack)
{
string[] InValues = new string[] { "2013-08-26 00:00", "2013-08-28 23:59", "2", "50" };
Log.OnInfo(string.Format("Begin={0}\tEnd={1}\tTT_Id={2}\tpggrel_id={3}", InValues[0], InValues[1], InValues[2], InValues[3]));
dt = SQL.execStroredProcedures("EAPMSDAT", "wwGetDataForGraph", InValues);
PopulateChart();
}
}
private void PopulateChart()
{
string[] x = new string[dt.Rows.Count];
double[][] y = new double[dt.Columns.Count][];
for (int z = 1; z < dt.Columns.Count; z++)
{
y[z] = new double[dt.Rows.Count];
for (int i = 0; i < dt.Rows.Count; i++)
{
if (z == 1)
x[i] = dt.Rows[i][0].ToString();
y[z][i] = Convert.ToDouble(dt.Rows[i][z]);
}
C1.Series.Add(dt.Columns[z].ToString());
C1.Series[z - 1].Points.DataBindXY(x, y[z]);
C1.Series[z - 1].ChartType = System.Web.UI.DataVisualization.Charting.SeriesChartType.FastLine;
C1.Series[z - 1].IsValueShownAsLabel = true;
C1.Legends.Add(dt.Columns[z].ToString());
C1.Legends[z - 1].Enabled = true;
cbLengend.Items.Add(dt.Columns[z].ToString());
cbLengend.Items[z - 1].Selected = true;
}
C1.Width = 2000;
C1.Height = 800;
C1.ChartAreas.Add("Testes");
C1.ChartAreas["Testes"].Area3DStyle.Enable3D = false;
form1.Controls.Add(C1);
form1.Controls.Add(cbLengend);
}
protected void Button1_Click(object sender, EventArgs e)
{
for (int i = 0; i < cbLengend.Items.Count; i++)
{
C1.Series[i].Enabled = cbLengend.Items[i].Selected;
}
}
}
So on our solutions we don't want to call the stored procedure again, because they return 25k rows, over crosstab and mixed select, that take for first time around 5 seconds.
We define the DataTable dt = new DataTable(); for keep the data over all postback message we got from html, but is not working as we want. Also, for Chart and CheckBox.
can any give the path how to solve this?
Thanks for any advice and any answer
Paulo Afonso
|
|
|
|
|
You need to read the ASP.NET Page Life Cycle[^]. In particular, note that a new instance of the page class is created to serve each request. Field values will not be preserved between the initial request and the post-back request. Dynamically created controls must be re-created on every request.
If you want to keep the DataTable alive across requests, you'll need to store it in the Session or the Cache . However, since you say it contains 25K rows, this will put a lot of memory pressure on the server, and could lead to other problems.
private void Page_Init(object sender, EventArgs e)
{
LoadTable();
}
private DataTable LoadChartData()
{
const string cacheKey = "Testing_Studies_GraficosDados:ChartData";
var result = (DataTable)Cache[cacheKey];
if (result == null)
{
string[] InValues = new string[] { "2013-08-26 00:00", "2013-08-28 23:59", "2", "50" };
var log = new IOHelper();
log.OnInfo(string.Format("Begin={0}\tEnd={1}\tTT_Id={2}\tpggrel_id={3}", InValues[0], InValues[1], InValues[2], InValues[3]));
result = SQL.execStroredProcedures("EAPMSDAT", "wwGetDataForGraph", InValues);
Cache.Add(cacheKey, result,
null,
DateTime.UtcNow.AddMinutes(5),
Cache.NoSlidingExpiration,
CacheItemPriority.High,
null);
}
return result;
}
private void LoadTable()
{
DataTable dt = LoadChartData();
PopulateChart(dt);
}
private void PopulateChart(DataTable dt)
{
var C1 = new Chart();
var cbLengend = new CheckBoxList();
...
}
"These people looked deep within my soul and assigned me a number based on the order in which I joined."
- Homer
|
|
|
|
|
|
It's a fairly simple change:
private DataTable LoadChartData()
{
const string cacheKey = "Testing_Studies_GraficosDados:ChartData";
var result = (DataTable)Session[cacheKey];
if (result == null)
{
string[] InValues = new string[] { "2013-08-26 00:00", "2013-08-28 23:59", "2", "50" };
var log = new IOHelper();
log.OnInfo(string.Format("Begin={0}\tEnd={1}\tTT_Id={2}\tpggrel_id={3}", InValues[0], InValues[1], InValues[2], InValues[3]));
result = SQL.execStroredProcedures("EAPMSDAT", "wwGetDataForGraph", InValues);
Session[cacheKey] = result;
}
return result;
}
"These people looked deep within my soul and assigned me a number based on the order in which I joined."
- Homer
|
|
|
|
|