I got this information from a very close friend of mine. After doing some background research I found some very useful and interesting information. So I am writing this blog post so that it will benefit everyone. If you find it interesting and helpful, please click like in the post and share it with your friends.
The MySql Improved Extension, a.k.a mysqli is faster more improved version of existing mysql. It is available in PHP 5 or later versions. The source code of mysqli is available at ext/mysqli. For further information click here.
A simple example how to connect and insert temp data to database 'mydb' and table 'mytable'.
I happened to work with Apache log4cxx, a logging framework for c++. This framework offers lot of capabilities from simply outputting a log message to console, writing to log files, socket streaming and database logging. Best thing that i love about this framework that it is Thread safe.
I got this information from Email. It was very useful and I want to remember this information forever and also wanted to help others also by letting them know about this, so decided to post it in my blog. If you are reading this blog post, hope you will find this useful. Please re-post or send it to your friends and relatives if you find this useful.
This post has reference to part one of this Article.
Inside our "TripleDESCrypt" class, lets implement another method to read the MD5 HashKey generated from the Secret Key from the User. This method will load the TripleDESKey.xml file and returns the HashKey in String format.
In this post, a simple demonstration of how TripleDES Encryption algorithm can be implemented using System.Security.Cryptography namespace in .NET will be explained.
First of all, we need to create a XML file where we will be storing our Special Key. This Key will be used for both Encryption and Decryption not like RSA. DES is symmetric key encryption algorithm.
To convert an Image from one format to another, use the following Method.
Here, the known formats include, Bmp, Emf, Exif, Gif, Icon, Jpeg, Png, Tiff, Wmf etc.
Once you create a WCF Service from Visual Studio 2008 and after publishing to IIS, when you browse your Service, you will receive HTTP 404.3 Error. But you will not find any discrepancies in IIS Configuration of the Service.
I got this information from Email. It was very useful and I want to remember this information forever and also wanted to help others also by letting them know about this, so i am posting it in my blog. If you are reading this blog, hope you will find this useful. Please re-post or send it to your friends and relatives if you find this useful.
I read an interesting Blog about Six insane coincidences and I have selected two most striking and amazing out of the six. I would like to share in my blog as well because its just awesome. Just read and see...
This post has reference to part one of this Article.
Create a new Class with the name "MyLinq". We are going to use the DataContextFactory Class which we created in Part One. Also assume in our database we have Table with name "User" and with the following Definition.
For the past couple of decades, There have been many explanations for the extinction of the dinosaurs 65 million years ago. I have summarized some of the key arguements and contradictions below,
First of all, in your Project or Website, add a new item from the "LINQ to SQL" template. This will create a file with extention ".dbml" and code behind files. Now from Server Explorer, drag and drop the required Tables from the DB. At this point, we will be able to save the Server Connection String to connect to the Database automatically. If its a Web application, it will be saved in web.config and for Windows Project, it will be saved in Settings.settings file.
Years pass by and our Kidneys are filtering the blood by removing salt, poison and any unwanted entering our body. With time, the salt accumulates and this needs to undergo cleaning treatments and how are we going to overcome this???
Assume we need to pass certain Variable content between html or aspx pages, often the Request object of QueryString is used. QueryStrings are combination of {key=value} pairs joined by '&' and added to the html or aspx page Url. This blog will explain in simple terms how to use QueryString.
Assume our requirement is to send email from sender@gmail.com to receiver@gmail.com. Here we are going to use the configuration settings of Gmail SMTP mail server. Click here to get the Details of Gmail SMTP Mail Server Configuration.
Web Developing for mobile is not the same as developing a website for PCs. I have summarized some tips which might help any beginner which i have found during Mobile Web Development.
px to em conversion
In mobile web, a pixel difference is also crucial as the website is viewed in Mobile which will have a small screen width of 176px/240px/320px etc. In the CSS the best practice is to use .em as it is directly proportional to font size. The below given link is very useful to convert px to em.
Open the crystal report you have just created in your project, and from the Field Explorer -> Formula Fields, right click and create Two new Formula Field Variables, lets name it as "parameter1" and "parameter2" respectively. Then drag and drop inside the Crystal Report and place it anywhere according to your need.
Then, use the below code (assume if we need to pass "Hello" & "How are you?" during runtime)
ReportDocument ReportDoc = new ReportDocument(); ReportDoc.Load(Server.MapPath("~") + "\\CrystalReport1.rpt");
List paramList = List();
paramList.Add("Hello");
paramList.Add("How are you?");
for (int i = 1; i < 2; i++)
if (ReportDoc.DataDefinition.FormulaFields[i-1].FormulaName == "{" + "@parameter" + i + "}")
ReportDoc.DataDefinition.FormulaFields[i-1].Text = "\"" + paramList[i-1] + "\"";
First of all you need to create a New Data Set object from the Add new Item. Inside the Data set you need to create a new Table Adapter which will Fill data to a Data Table.
Then you need to create a new Crystal Report File from Add new Item. In the Crystal report, from the Field Explorer -> Database Fields, now you will able to see the created Data Table with all the Column Elements selected.
Select the Column Elements needed, and add them to your Crystal Report and arrange them to your specific need.Using Crystal Reports->Design->Printer Setup, you can adjust the size of the Crystal Report according to your need. Also to make it a template for Excel, you need to Suppress the Page Footer from the Section Expert.
Then the below given Block of code is used for Excel Reporting.
try {
TempDataSetTableAdapters.TempTableAdapter temp = new MyProject.TempDataSetTableAdapters.TempTableAdapter();
TempDataSet.TempDataTable tempTable = new TempDataSet.TempDataTable();
DataTable DT = tempTable;
temp.Fill(tempTable);
ReportDocument rpt = new ReportDocument();
rpt.Load(Server.MapPath("~") + "\\TempReport.rpt");
rpt.SetDataSource(DT);
Interestingly, PDF files sent as an Attachment to an email can be opened and viewed from the BlackBerry Attachments Service.
But there are no PDF Reader that comes with Blackberry for Free for us to view any PDF files stored in Device or Media Card. i.e: we need an additional PDF Reader Application for the Blackberry to read PDF files.
One Solution would be to Upgrade the DocsToGo (from Dataviz) which comes with Blackberry, to the Premium Version. The Premium version additionally has a Free PDF Reader known as PdfToGo.
A doc file saved in SD Card can be opened by WordToGo Application in Blackberry 8900. But to open it Programmatically, you need to use the following Lines of Code.