|
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
|
|
|
|
|
You can hook events OnLoad() and still have access to session and ViewState.
But, from my experience Dynamic controls can be a night mirror, so being new to dotnet you may want to look at other options to do what you are trying to do..
Like Repeater Control, ListView, etc.
Also, your control ID is very important..
If you generating controls for example each time you generate them if you want them to keep their ViewState data then you must assign them the same ID they where on the prev postback.
I have often implemented a list type of viewstate where I can add all the controls there..
But, then you also run into a lot of problems with this too...
IE, Rendering.. etc.... life cycle hell..
So, I would see if the build in controls will do what you want before going down the dynamic path of life cycle hell.
I also want to add you can use viewstate, its often better to use then sessions for passing simple postbacks.
Good luck my friend... its a scary path..
=)
modified 30-Aug-13 9:41am.
|
|
|
|
|
Why not define a limit of rows to return?, for example 1000. If the user wants to find more specific information should use filters.
That will avoid a large consume of memory due storing 25k rows on cache and the requests to database will take less time to process.
|
|
|
|
|
Hello everyone i am trying to develop an application to recieve data from SMDR. and then i have to filter my data. and save it to my Database..
Please help me that how can i Retrieve data from SMDR.
Thanks in advance
Regards
Hamroush Sadiq
.NET Developer
Softech MicroSystems
modified 29-Aug-13 5:50am.
|
|
|
|
|
What is SMDR?
Veni, vidi, abiit domum
|
|
|
|
|
SMDR is an abbreviation for station message-detail recording.
Regardless of their size, most telephone systems output Call Detail Records (CDR). Generally, these are created at the end of a call. But on some phone systems, the data is available during the call. This data is output from the phone system by a serial link known as the Station Message Detail Recording port (SMDR).
Some of the details included in call records are: Time, Date, Call Duration, Number dialed, Caller ID information, Extension, Line/trunk location, Cost, Call completion status.
http://wiki.answers.com/Q/What_is_SMDR[^]
|
|
|
|
|
Very interesting, but I was only trying to get the OP to put some useful detail in the question.
Veni, vidi, abiit domum
|
|
|
|
|
Please do not cross post. You have already asked this in QA[^].
|
|
|
|
|
I should have guessed.
Veni, vidi, abiit domum
|
|
|
|
|
I am trying to create a .Net component(.dll) using MATLAB Builder NE.I am following all the steps i.e, creating a .m file,creating a new project,adding the .m file to this project and then trying to build it.
But I get an error as "'?§' is not recognized as an internal or external command,operable program or batch file..."
The distributed and src folders are created but no dll.
My .m file contains a basic add function thats it. Still the error.
Pls. help me in this regard
Shwetanisha Ganjewar,Pune
|
|
|
|
|
shwetanisha wrote:
"'?§' is not recognized as an internal or external command,operable program or batch file..."
What are those two characters supposed to represent, and where in your code do they occur?
Veni, vidi, abiit domum
|
|
|
|
|
First of all thanks for your response.
"'?§' these characters are nowhere in my code.They come during compilation.
That's what I want to know where do they come from and why.
Also, another thing is that the 2nd character in here i.e,§ changes for every new project I try to deploy and the rest remains the same.
For eg: "'?¯'is not recognized as an internal or external command,operable program or batch file..." and for another project "'?ñ'is not recognized as an internal or external command,operable program or batch file..." and so on...
|
|
|
|
|
shwetanisha wrote: "'?§' these characters are nowhere in my code.They come during compilation. They must be somewhere in your files. Look at the message and if it does not give the name of the file, you need to try and work it out from the build stage where the error occurs.
Veni, vidi, abiit domum
|
|
|
|
|
I get this output in the Deployment Tool Output window after I hit the build option
Build output( 2013-08-29 15:26:54).
mcc -F 'C:\.m files\MDemo9.prj'
'?A' is not recognized as an internal or external command,
operable program or batch file.
mcc -W 'dotnet:MDemo9,MDemo9,2.0,private' -d 'C:\.m files\MDemo9\src' -T 'link:lib' -v 'class{MDemo9:C:\.m files\Msquare.m}'
Compiler version: 4.10 (R2009a)
Processing include files...
2 item(s) added.
Processing directories installed with MCR...
The file C:\.m files\MDemo9\src\mccExcludedFiles.log contains a list of functions excluded from the CTF archive.
2 item(s) added.
Generating MATLAB path for the compiled application...
Created 40 path items.
Begin validation of MEX files: Thu Aug 29 15:28:20 2013
End validation of MEX files: Thu Aug 29 15:28:20 2013
Parsing file "C:\.m files\Msquare.m"
(Referenced from: "Compiler Command Line").
Parsing file "C:\Program Files\MATLAB\R2009a\toolbox\compiler\deploy\deployprint.m"
(Referenced from: "Compiler Command Line").
Parsing file "C:\Program Files\MATLAB\R2009a\toolbox\compiler\deploy\printdlg.m"
(Referenced from: "Compiler Command Line").
Deleting 0 temporary MEX authorization files.
Generating file "C:\.m files\MDemo9\src\MDemo9.cs".
Generating file "C:\.m files\MDemo9\src\MDemo9Native.cs".
Generating file "C:\.m files\MDemo9\src\readme.txt".
Generating file "C:\.m files\MDemo9\src\dotnet_mcc_component_data.cs".
Executing command: C:\Windows\Microsoft.NET\Framework\v2.0.50727\csc.exe /nologo /optimize /doc:"C:\.m files\MDemo9\src\MDemo9.xml" /t:library /r:"C:\Program Files\MATLAB\R2009a\toolbox\dotnetbuilder\bin\win32\v2.0\MWArray.dll" /resource:"C:\.m files\MDemo9\src\MDemo9.ctf" /out:"C:\.m files\MDemo9\src\MDemo9.dll" "C:\.m files\MDemo9\src\MDemo9.cs" "C:\.m files\MDemo9\src\dotnet_mcc_component_data.cs"
'?A' is not recognized as an internal or external command,
operable program or batch file.
Error: An error occurred while shelling out to CSC (error code = 1).
Unable to build executable.
??? Error using ==> mcc
Error executing mcc, return status = 1 (0x1).
There were errors during compilation process.
|
|
|
|
|
Well that seems reasonably clear that there is something wrong with your project control file C:\.m files\MDemo9.prj .
Veni, vidi, abiit domum
|
|
|
|
|