here you can find shortly some of the major setting in web.xml.
i like it ... short and easy .
the next post is for advanced user (familiar with servlet,filter ...)
Tomcat web xml reference .
enjoy
Yaniv T
This Blog is first of all memos for me!! From time to time I get exposed to new and cool stuff for developers and architects ,most of the time its a solution for a problem or tips or tricks, so, I would like to track my memos and share it with you, it can save your time and nervous, I hope you will enjoy it - by Yaniv Tzanany.
Search This Blog
Thursday, December 3, 2009
Tuesday, December 1, 2009
Remote Desktop sharing and access
This post is all about the remote desktop access via the Internet.
i am familiar with the next tools :
Logmein - this one have a free tools , i used this one - in the free addition you don't have easy way to access your files like in FTP.
TeamViewer - the All-In-One Solution for Remote Access and Support over the Internet, i just invite into a session its was easy , there is download button there but you don't have to install something in the computer you can run it after downloading (no installation).
Microsoft Remote desktop - the default one that built in the windows OS.
enjoy
Yaniv T
i am familiar with the next tools :
Logmein - this one have a free tools , i used this one - in the free addition you don't have easy way to access your files like in FTP.
TeamViewer - the All-In-One Solution for Remote Access and Support over the Internet, i just invite into a session its was easy , there is download button there but you don't have to install something in the computer you can run it after downloading (no installation).
Microsoft Remote desktop - the default one that built in the windows OS.
enjoy
Yaniv T
Thursday, November 19, 2009
Reports and charts in your web app
recently i looked for a reporting solution for our Web application , i founded the next impressive products - i am sure there are much more :
RenderX.
Crystal reports.
and the lovelly open source solution BIRT.
i played with the BIRT in my eclipse and i get impressed from his drag and drop feature , and the ability to design charts, and use xml or db as a data source for my reports.For more info and step by step tutorial working with BIRT Library goto here, here is a good link about Deploying BIRT , BIRT have the ability to create and show charts as well, here is the Using the BIRT Report Viewer , anoter good design of BIRT PPT .
And here is the way to generate BIRT report via schedular without tomact.
About Charts in my web page - i think the jfreechart is the one - whatever is good for my banking is perfect for me.
another community project is the Jchart.
i am also looking for a work flow diagram to integrate into our Web solution , i found this java work flow solution - JDiagram .
enjoy
Yaniv T
RenderX.
Crystal reports.
and the lovelly open source solution BIRT.
i played with the BIRT in my eclipse and i get impressed from his drag and drop feature , and the ability to design charts, and use xml or db as a data source for my reports.For more info and step by step tutorial working with BIRT Library goto here, here is a good link about Deploying BIRT , BIRT have the ability to create and show charts as well, here is the Using the BIRT Report Viewer , anoter good design of BIRT PPT .
And here is the way to generate BIRT report via schedular without tomact.
About Charts in my web page - i think the jfreechart is the one - whatever is good for my banking is perfect for me.
another community project is the Jchart.
i am also looking for a work flow diagram to integrate into our Web solution , i found this java work flow solution - JDiagram .
enjoy
Yaniv T
Sunday, November 8, 2009
Create self signed Certificate for IIS via OpenSSL
hello
i follow the instruction at Creating a Self-Signed Certificate using OpenSSL for use with Microsoft Internet Information Services (IIS) and its works just fine with my IIS 5.1 on my XP sp2 laptop.
this article is very good and simple & clear.
Enjoy
Yaniv
i follow the instruction at Creating a Self-Signed Certificate using OpenSSL for use with Microsoft Internet Information Services (IIS) and its works just fine with my IIS 5.1 on my XP sp2 laptop.
this article is very good and simple & clear.
Enjoy
Yaniv
Tuesday, November 3, 2009
Max Application memory size under AIX
First i like to mention a very good article that describe in more details this issue , 64-Bit Addressing for Technical Applications .
In general 32bit application under aix 5.X can use maximum 256M of memory - that not too match, to increase the memory you can use the next parameter while compile your application -bmaxdata.
The default value of maxdata (-bmaxdata:0 or not included in the load command) for 32-bit applications is 256 MB. The maximum allowed for 32-bit applications is 2 GB. For 64-bit applications, the maxdata default value is unlimited. A maximum can be imposed if restrictions are necessary, but a large limit doesn't penalize job or system performance.
These recommendations are applicable to most applications:
32-bit applications: -bmaxdata: 0x80000000 (eight 256 Mbyte segments)
64-bit applications: don't use -bmaxdata; the default is unlimited .
On later versions of AIX 5L (5.1 maintenance release 2 or higher), a new allocation scheme called dsa is available for 32-bit applications. It's specified by:
-bmaxdata:0x80000000/dsa
The difference between the 2 options is as follows:
Large address space model:
-bmaxdata:0x80000000 allows to use 8 segments (2GB) of data.
Very Large Address space model:
-bmaxdata:0xD0000000/dsa
Same as above but dsa = Dynamic Segment Allocation:
Segments are not saved for data area, but are obtained dynamically.
With dsa a program can have maximum 13 segments (3.25GB)
So if you don't need more than 2GB, you don't need dsa option.
read more about Large Program Support.
Now i hope you understand why you are getting yours segmentation fault.
Yaniv T
In general 32bit application under aix 5.X can use maximum 256M of memory - that not too match, to increase the memory you can use the next parameter while compile your application -bmaxdata.
The default value of maxdata (-bmaxdata:0 or not included in the load command) for 32-bit applications is 256 MB. The maximum allowed for 32-bit applications is 2 GB. For 64-bit applications, the maxdata default value is unlimited. A maximum can be imposed if restrictions are necessary, but a large limit doesn't penalize job or system performance.
These recommendations are applicable to most applications:
32-bit applications: -bmaxdata: 0x80000000 (eight 256 Mbyte segments)
64-bit applications: don't use -bmaxdata; the default is unlimited .
On later versions of AIX 5L (5.1 maintenance release 2 or higher), a new allocation scheme called dsa is available for 32-bit applications. It's specified by:
-bmaxdata:0x80000000/dsa
The difference between the 2 options is as follows:
Large address space model:
-bmaxdata:0x80000000 allows to use 8 segments (2GB) of data.
Very Large Address space model:
-bmaxdata:0xD0000000/dsa
Same as above but dsa = Dynamic Segment Allocation:
Segments are not saved for data area, but are obtained dynamically.
With dsa a program can have maximum 13 segments (3.25GB)
So if you don't need more than 2GB, you don't need dsa option.
read more about Large Program Support.
Now i hope you understand why you are getting yours segmentation fault.
Yaniv T
Wednesday, October 7, 2009
ASP.NET Caching
I read a starter document to deal and understand the caching mechanism in .NET .
especially the page caching but there are some words on the sqldatasource caching too.
here is your link ASP.NET caching basics.
And here another good description ASP.NET 2.0 Caching Features
Enjoy Yaniv
especially the page caching but there are some words on the sqldatasource caching too.
here is your link ASP.NET caching basics.
And here another good description ASP.NET 2.0 Caching Features
Enjoy Yaniv
Tuesday, September 22, 2009
Calling MFC C++ API from C# (e.g. CString& param)
I have a C++ dll that written via MFC, I exposed an API from my dll, for this sample :
HRESULT __declspec( dllexport )RunTest(const CString& strIn, CString& strOut);
now i want to call it from my c# code, so i tried the next decalrtion:
[DllImport("myDLL.dll", CharSet = CharSet.Ansi)]
public static extern int RunTest(ref StringBuilder strIn, ref StringBuilder strOut);
the strings arrived to the c++ dlls , the problem was getting some unexpcted assertion in destructor and operator= of Cstring , any way as you know CString is a Class with buffer in it , and its looks like the marshal didn’t get well in runtime , I get the string but I get crashed from time to time.
so my workaround was as follow , in the C++ dll i created a new API method (wrapper one):
HRESULT __declspec( dllexport )RunTestManaged(LPCTSTR strXmlIn, LPTSTR strXmlOut, int buffCount)
//--------------------------------------------------------------------------
{
CString param1;
RunTest(strXmlIn,param1);
strncpy(strXmlOut,param1,buffCount);
return 0;
}
and in the C# code i created the next import section:
[DllImport("myDLL.dll", CharSet = CharSet.Ansi)]
public static extern int RunTestManaged(String strIn, ref StringBuilder strOut,int strOutBuffCount);
Make sure to allocate enough buffer in the string builder, this way the strIn and the strOut will be transferred perfectly.
Yaniv T
HRESULT __declspec( dllexport )RunTest(const CString& strIn, CString& strOut);
now i want to call it from my c# code, so i tried the next decalrtion:
[DllImport("myDLL.dll", CharSet = CharSet.Ansi)]
public static extern int RunTest(ref StringBuilder strIn, ref StringBuilder strOut);
the strings arrived to the c++ dlls , the problem was getting some unexpcted assertion in destructor and operator= of Cstring , any way as you know CString is a Class with buffer in it , and its looks like the marshal didn’t get well in runtime , I get the string but I get crashed from time to time.
so my workaround was as follow , in the C++ dll i created a new API method (wrapper one):
HRESULT __declspec( dllexport )RunTestManaged(LPCTSTR strXmlIn, LPTSTR strXmlOut, int buffCount)
//--------------------------------------------------------------------------
{
CString param1;
RunTest(strXmlIn,param1);
strncpy(strXmlOut,param1,buffCount);
return 0;
}
and in the C# code i created the next import section:
[DllImport("myDLL.dll", CharSet = CharSet.Ansi)]
public static extern int RunTestManaged(String strIn, ref StringBuilder strOut,int strOutBuffCount);
Make sure to allocate enough buffer in the string builder, this way the strIn and the strOut will be transferred perfectly.
Yaniv T
Subscribe to:
Posts (Atom)