Msolrm
INTEGRARSE ASTERISK CON .NET
Hola a todos, gracias de antemano por la colaboración
Estoy realizando una integración con asterisk, lo que sucede es que tengo la conexión con la planta pero lo que no he podido es realizar una llamada para guiarme con la implantación.
Desde luego es un mundo free y el soporte esta en grandes cantidades en los lenguajes free.
Estoy utilizando asterisk.net tambien he realizado pruebas con asternet.net pero esta labor no la he logrado conseguir.
GRACIAS !!!
Consume SPML OIM service through .Net
Hi All,
Need some help on consuming SPML OIM service, to create and update user request. If someone has done this earlier it could be really helpful.
Regards,
Uday Acham.
about graylevel occurrence matrix
i have been doing this assignment for a while and i got stuck at this part of the program about graylevel occurrence matrix which is i am trying to find the entrophy of the image
Bitmap bitmap = _grayImage;UnmanagedImage unmanagedImage = UnmanagedImage.FromManagedImage(bitmap);
Int32[,] distance = new Int32[1, 1];
GrayLevelCooccurrenceMatrix glsm = new GrayLevelCooccurrenceMatrix();
double[,] gal = glsm.Compute(unmanagedImage,por);
// textBox1.Text = gal[50, 200].ToString();
// MessageBox.Show("ko");
double entrophy = 0;
for (int i = 0; i < poh; i++)
{
for (int j = 0; j < pow; j++)
{
// MessageBox.Show(gal[j,i].ToString());
entrophy = entrophy + gal[j, i];
}
}
this is my code but i am not sure wheather is it correct or not as it always shows me that my matrix is 256x256.
VBA Date function under Mac OX 10.10
Under Mac OS 10.9 the VBA Date function returns the string value dd/mm/yyyy, given my OS date settings. So today being the 4th of September i get 04/09/2015
However under Mac OS 10.10 (Yosemite) the same VBA Date function returns dd/mm/
I get 04/09/
There is nothing after the 2nd slash.
I realise i could use format(date,"dd/mm/yyyy"). But i am trying to understand where the problem is as it clearly can't be right the way it works now.
Any ideas? Thanks.
dario
The underlying connection was closed: The connection was closed unexpectedly while uploading file to sharepoint document Library Using HttpWebRequest PUT Method in asp.net
Hi,
We are getting below error while uploading file to sharepoint document Library Using HttpWebRequest PUT Method in asp.net.
Error Message : The underlying connection was closed: The connection was closed unexpectedly.
below is my code to upload file to sharepoint document Library Using HttpWebRequest PUT Method.
Please Suggest.
string dateFormat = DateTime.Now.ToString("MMddyy");
string FileName = OutputFileName + dateFormat + ".xlsx";
string uploadedFilePath = Path.Combine(OutputPath, FileName);
string sharePointListPath = SharePointSiteURL;
HttpWebResponse SPOResponse = null;
HttpWebRequest request = (HttpWebRequest)HttpWebRequest.Create(sharePointListPath + FileName);
try
{
request.ProtocolVersion =
HttpVersion.Version10;
request.KeepAlive =
false;
request.Timeout = 1000000000;
request.ReadWriteTimeout = 1000000000;
request.Proxy =
WebRequest.GetSystemWebProxy();// WebRequest.DefaultWebProxy;
System.Net.
ServicePointManager.Expect100Continue = false;
NetworkCredential nc = new NetworkCredential(wsgSettings.ServiceAccountUserID, wsgSettings.ServiceAccountPassword);
request.Credentials = nc;
request.Method =
"PUT";
byte[] buffer = new byte[4096];
using (Stream stream = request.GetRequestStream())
{
using (FileStream fsWorkbook = File.Open(uploadedFilePath,
FileMode.Open, FileAccess.Read))
{
int i = fsWorkbook.Read(buffer, 0, buffer.Length);
while (i > 0)
{
stream.Write(buffer, 0, i);
i = fsWorkbook.Read(buffer, 0, buffer.Length);
}
}
}
SPOResponse = (
HttpWebResponse)request.GetResponse();
SPOResponse.Close();
}
catch (Exception ex)
{
}
finally
{
request.Abort();
}
How to generate tiles from a image
How to diaplay image from one project to another project in the same solution in asp.net mvc5
In my solution i have two projects, "Project1" and "Project2". Please note that i am using VS 2013 and these projects are MVC Projects.
In "Project1" i have a "Images" folder which contains an image file "Hotel.png" .
So i am having this structure:
-MySolution
- Project1 ->Content-> Images->Hotel.png
- Project2 -
Now i need to reuse the same picture in "Project2". How can i access it ?
I tried this in "Project2" using relative paths something like:
<img src="..\\..\\Work\\Mobile.MVC\\Content\\Images\\Hotel.jpg" width="100" height="200" alt="3" />
Could this image from "Project1" be accessed in Project2 by using just a relative path ? Or i need to use reflection and load the Project1 assembly in "Project2" and then access the picture, or is there another way to access that picture
?
Thanks for support.
Regards,
Rajasekhar
add framework 4.6 in installshield LE
I am using Vs2015 and I want to create setup project using installshield L E.
My problem is I cant find framework 4.6 in installation requirements window , please tell me how to include this. Also I can't find framework 4.6 file for prerequisite in solution explorer redistributables window. I copied framework setup file DotnetFx in program file.../package folder but no use. please tell me a solution to add framework 4.6 and sql 2012 for prerequisite.
programmer
Reference one project from another project
My MVC project's Output Type is Class Library so when I try to debug I get the error:
Is the Executable Project a particular type of project?
Having added the Executable Project to my solution, how do I reference the MVC project?
Your help would be much appreciated.
Thanking you in anticipation.
Roger
rogerwithnell
ASP.NET MVC runs very slow in Visual Studio 2013
Hi,
When I debug ASP.NET MVC project, the app runs extremely slow. I've had a chat with a developer, and he suggested this may be due to font loading issue. Can anyone advise what might cause this problem?
Thanks for the help.
Linker Problem
I am just starting work with OpenGL and GLUT. I am using visual studio 2013 express and the C++ programming language. I know that the classes <gl/GL.h> and <gl/GLU.h> are provided with the standard library. The book I am using suggests downloading GLUT from http://www.opengl.org/resources/libraries/glut/, which I did and unpacked successfully.
I have specified new locations to check for the #include statements through the property page. However, I am having difficulty with linking. The #include <GL/glut.h> statement allows access to the glut header file, but does not link with the other necessary .dll files, etc. The unpacked directory for the downloaded GLUT has many directories and I am only accessing the directory that holds the header file. When I run the program I receive a number of LNK2019 unresolved externals errors. I am assuming this is due to the problem stated above. Can someone tell me how to make all of the files included in the GLUT download accessible to the program?
//#include <windows.h> //#include <gl/GL.h> //#include <gl/GLU.h> #include <GL/glut.h> void init(void) { glClearColor(1.0, 1.0, 1.0, 0.0); glMatrixMode(GL_PROJECTION); gluOrtho2D(0.0, 200.0, 0.0, 150.0); } void lineSegment(void) { glClear(GL_COLOR_BUFFER_BIT); glColor3f(0.0, 0.4, 0.2); glBegin(GL_LINES); glVertex2i(180, 15); glVertex2i(10, 145); glEnd(); glFlush(); } void main(int argc, char** argv) { glutInit(&argc, argv); glutInitDisplayMode(GLUT_SINGLE | GLUT_RGB); glutInitWindowPosition(50, 100); glutInitWindowSize(400, 300); glutCreateWindow("An Example OpenGL Program"); init(); glutDisplayFunc(lineSegment); glutMainLoop(); }
Resulting in:
>GLUT_Tester.obj : error LNK2019: unresolved external symbol __imp__glBegin@4 referenced in function "void __cdecl lineSegment(void)" (?lineSegment@@YAXXZ)
1>GLUT_Tester.obj : error LNK2019: unresolved external symbol __imp__glClear@4 referenced in function "void __cdecl lineSegment(void)" (?lineSegment@@YAXXZ)
1>GLUT_Tester.obj : error LNK2019: unresolved external symbol __imp__glClearColor@16 referenced in function "void __cdecl init(void)" (?init@@YAXXZ)
1>GLUT_Tester.obj : error LNK2019: unresolved external symbol __imp__glColor3f@12 referenced in function "void __cdecl lineSegment(void)" (?lineSegment@@YAXXZ)
1>GLUT_Tester.obj : error LNK2019: unresolved external symbol __imp__glEnd@0 referenced in function "void __cdecl lineSegment(void)" (?lineSegment@@YAXXZ)
1>GLUT_Tester.obj : error LNK2019: unresolved external symbol __imp__glFlush@0 referenced in function "void __cdecl lineSegment(void)" (?lineSegment@@YAXXZ)
1>GLUT_Tester.obj : error LNK2019: unresolved external symbol __imp__glMatrixMode@4 referenced in function "void __cdecl init(void)" (?init@@YAXXZ)
1>GLUT_Tester.obj : error LNK2019: unresolved external symbol __imp__glVertex2i@8 referenced in function "void __cdecl lineSegment(void)" (?lineSegment@@YAXXZ)
1>GLUT_Tester.obj : error LNK2019: unresolved external symbol _gluOrtho2D@32 referenced in function "void __cdecl init(void)" (?init@@YAXXZ)
1>GLUT_Tester.obj : error LNK2019: unresolved external symbol _glutInit@8 referenced in function _main
1>GLUT_Tester.obj : error LNK2019: unresolved external symbol _glutInitDisplayMode@4 referenced in function _main
1>GLUT_Tester.obj : error LNK2019: unresolved external symbol _glutInitWindowPosition@8 referenced in function _main
1>GLUT_Tester.obj : error LNK2019: unresolved external symbol _glutInitWindowSize@8 referenced in function _main
1>GLUT_Tester.obj : error LNK2019: unresolved external symbol _glutMainLoop@0 referenced in function _main
1>GLUT_Tester.obj : error LNK2019: unresolved external symbol _glutCreateWindow@4 referenced in function _main
1>GLUT_Tester.obj : error LNK2019: unresolved external symbol _glutDisplayFunc@4 referenced in function _main
Thanks,
Matt Armshaw
Error when make payment (805a01f4)
I make a window phone game here : https://www.microsoft.com/en-us/store/games/guru-of-poker-online-team/9nblggh1zx6x
Now everything is done but I couldn't purchase IAP.
I tried to restart or add another payment VISA.
The same error code is 805a01f4 as the image: http://postimg.org/image/kpi1fd7jx/
Is this error from store or my app?
Error: Project with an Output Type of Class Library cannot be started directly
My project is MVC and I'm using Visual Studio 2013.
I am trying to debug my project. I understand that this error occurs because there is no executable in this Class Library project; only a DLL.
As advised by several posts, I'm trying to use another project in the same solution that has an executable and use it as the start up project.
Which type of project should I use as the Start up project? I've tried a Windows Form Application, which has an output type Windows Application. Is this suitable or should I use another project type?
Having added the Start up project, I then reference my MVC Class Library project to it.
What is the code I now have to put into the Start up project to start debugging the Class Library project?
I'm really stuck and would much appreciate your help.
Thanking you in anticipation.
Roger
rogerwithnell
C# zedgraph in a scatter plot how to make all major ticks on X and Y axis are located on the same value such that all grid cells are all squares
I need to add grid dash line on major ticks on a scatter plot generated by zedgraph in C# VS 2013 with windows form.
I need to make sure that all major ticks on X and Y axis are located on the same value such that all grid cells are all squares.
For example, on X axis, I have major ticks at
(50,0),(100,0),(150,0)
I need to get on Y axis with the same major ticks at
(0,50),(0,100),(0,150)
When I add dash lines on all major ticks, all cells in the grid will be a square not a rectagular.
My C# code:
myPane.XAxis.MajorGrid.IsVisible=true;
myPane.YAxis.MajorGrid.IsVisible=true;
myPane.XAxis.MajorTic.// ?? I do not know how to dictate the location of a major tick on X axis.
Any help would be appreciated.
ComboBox collapsed items
ich benutze eine WPF ComboBox mit 5 Einträgen (als TextBlock) und 2 der Einträge sind auf collapsed gesetzt. Wenn die Combo mit der linken Maustaste geöffnet wird, werden auch nur die gewünschten 3 Einträge angezeigt. Wenn aber mit den Pfeiltasten die Einträge ausgewählt werden, werden auch die 2, die auf collapsed gesetzt sind, angezeigt (weißer Eintrag ohne Inhalt). Wie kann man das lösen ?
Following up a change of Password
Not able to login in mvc using Facebook OAuth
Hi ,
I have created app id and app secret and specified those in Startup.Auth
Now when I click on Facebook button while executing my mvc application,my user is authenticated using facebook.
Then it asks-You are authenticated successfully using facebook.Do you want to register locally for this application.
After clicking on register button I am able to register as local user.
Now problem is here-When I click on login and try to login using above credentials I am getting error-Invalid userName or password.
I am registered as local user after sussefully authenticated by facebook.So while login as local user I should be able to login to application.But I am getting error.
Please guide me.
Thanks all In advance.
Visual studio 2013 error
Windows 10 and Visual Studio 2015 makes Copy Web Site... FTP Log In lock Visual Studio UI.
I've installed Win 10 and VS 2015. I attempted to "Copy Web Site..." to my host via the FTP tool. The FTP Log In comes up, but then proceeds to lock the UI. Nothing works in the UI, not even the system bar across the top. It won't refresh the screen either once another application covers it. It does not seem to affect the process though. The system stays stable and memory and CPU seems to behave as though nothing is wrong on the VS task.
I tried opening in VS 2013 as well and the same thing happened to it. I can only suspect Windows 10 has something to do with it.