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
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, November 19, 2009
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
using MFC dll's on Azure
Hi
I read somewhere that you can not run MFC dlls in the Azure platform , so its is wrong!!!
i managed to use mfc dll that i developed on .... VC++ 6.0 . in the Azure .
Be aware i didnt test MFC dll that developed on visualstudio 2005/2008.
how did i call my 32bit mfc dll from the web_role that runs in 64 bit ???
i created a WCF self host that using named pipe (net.pipe) , and when the web role loaded i run this self host , and from the self host i call to my native library ,via dllimport , the regular way.
When i deploy my package i didn't add any extra dll , its looks like the instance already have the needed library to support my mfc dll.
more than that my dll connect to sql server via odbc(CDatabase, CRecordSet) , so i just needed to change my connection string to point to sql azure ,and boooom i managed to make it work in the Azure too , again no extra dll needed to the package.
some useful links :
Using a 32bit Native DLL in Windows Azure
Executing Native Code in Windows Azure and the Development Environment
MSDN FullTrust Sample
i hope its save you some test time.
Yaniv
I read somewhere that you can not run MFC dlls in the Azure platform , so its is wrong!!!
i managed to use mfc dll that i developed on .... VC++ 6.0 . in the Azure .
Be aware i didnt test MFC dll that developed on visualstudio 2005/2008.
how did i call my 32bit mfc dll from the web_role that runs in 64 bit ???
i created a WCF self host that using named pipe (net.pipe) , and when the web role loaded i run this self host , and from the self host i call to my native library ,via dllimport , the regular way.
When i deploy my package i didn't add any extra dll , its looks like the instance already have the needed library to support my mfc dll.
more than that my dll connect to sql server via odbc(CDatabase, CRecordSet) , so i just needed to change my connection string to point to sql azure ,and boooom i managed to make it work in the Azure too , again no extra dll needed to the package.
some useful links :
Using a 32bit Native DLL in Windows Azure
Executing Native Code in Windows Azure and the Development Environment
MSDN FullTrust Sample
i hope its save you some test time.
Yaniv
Monday, September 21, 2009
Show directory size in UNIX
the next line works perfectly under AIX.
du -gs /var/* | sort
the results will be the directory size sorted under the /var directory.
YanivT
du -gs /var/* | sort
the results will be the directory size sorted under the /var directory.
YanivT
Subscribe to:
Posts (Atom)