<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>FreeLiveNet</title>
	<atom:link href="http://freelivenet.org/words/feed/" rel="self" type="application/rss+xml" />
	<link>http://freelivenet.org/words</link>
	<description>Keep It Simple Secure</description>
	<lastBuildDate>Sat, 21 Jan 2012 02:46:43 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>Bug reporting</title>
		<link>http://freelivenet.org/words/2012/01/bug-reporting/</link>
		<comments>http://freelivenet.org/words/2012/01/bug-reporting/#comments</comments>
		<pubDate>Sat, 07 Jan 2012 05:29:13 +0000</pubDate>
		<dc:creator>Hamid</dc:creator>
				<category><![CDATA[Thinking]]></category>

		<guid isPermaLink="false">http://freelivenet.org/words/?p=97</guid>
		<description><![CDATA[When you finish a website, or a project, you would like to get the feedback and to find the bugs you might have on your website as soon as possible. There are some options to use: 1- Asking your users &#8230; <a href="http://freelivenet.org/words/2012/01/bug-reporting/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>When you finish a website, or a project, you would like to get the feedback and to find the bugs you might have on your website as soon as possible.</p>
<p>There are some options to use:</p>
<p>1- Asking your users to send you email with screenshots.<br />
2- Use online bug reporting tools.<br />
3- Setup a bug reporting server and integrate it with your website or project.</p>
<p>The first option is the one usually people use, but the main problem with this solution is tracking the bugs is almost impossible, and the one who reported the bug will not be able to follow that.</p>
<p>Second solution is very good, but there is one problem that these system are built for testers and usually those who have IT background and understand how to report and do the testing, which is not good for normal users which is almost the case.</p>
<p>The third solution seems to be the best solution as you can configure that to suit you. But  setup and installing that system usually it takes more than the time you spent on your project.</p>
<p>There is also a very good and easy solution that you can use this website called <a title="http://www.tellmebug.com" href="http://www.tellmebug.com" target="_blank">TellMeBug</a> which is designed for normal people to report bugs very easy, as they send email, you can add your project there and make it public, or private, or public with limited access,  depends on your project and add the project icon to your website. When your user clicks on that icon, it will come to your project on tellmebg and they can report the bug.</p>
<p>You will see the bug and you can assign it to your team member to work on that and update bug status.</p>
<p>&nbsp;</p>
]]></content:encoded>
			<wfw:commentRss>http://freelivenet.org/words/2012/01/bug-reporting/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>How to write a simple FTP program with Delphi 2007</title>
		<link>http://freelivenet.org/words/2011/12/how-to-write-a-simple-ftp-program-with-delphi-2007/</link>
		<comments>http://freelivenet.org/words/2011/12/how-to-write-a-simple-ftp-program-with-delphi-2007/#comments</comments>
		<pubDate>Sat, 31 Dec 2011 04:51:22 +0000</pubDate>
		<dc:creator>Hamid</dc:creator>
				<category><![CDATA[Thinking]]></category>

		<guid isPermaLink="false">http://freelivenet.org/words/?p=91</guid>
		<description><![CDATA[This is a simple program with Deplhi 2007, you can download the exe file from (Download FTPUpload.exe) unit Unit1; interface uses Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms, Dialogs, StdCtrls, Buttons, IdBaseComponent, IdComponent, IdTCPConnection, IdTCPClient, IdExplicitTLSClientServerBase, IdFTP, ExtCtrls, ComCtrls; &#8230; <a href="http://freelivenet.org/words/2011/12/how-to-write-a-simple-ftp-program-with-delphi-2007/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>This is a simple program with Deplhi 2007,</p>
<p>you can download the exe file from (<a title="FTPUpload" href="http://www.freelivenet.org/download/FTPUpload.exe" target="_blank">Download FTPUpload.exe</a>)</p>
<p><a href="http://freelivenet.org/words/wp-content/uploads/2011/12/FtpUpload.png"><img class="alignnone size-full wp-image-93" title="FtpUpload" src="http://freelivenet.org/words/wp-content/uploads/2011/12/FtpUpload.png" alt="" width="611" height="462" /></a></p>
<pre>unit Unit1;

interface

uses
  Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms,
  Dialogs, StdCtrls, Buttons, IdBaseComponent, IdComponent, IdTCPConnection,
  IdTCPClient, IdExplicitTLSClientServerBase, IdFTP, ExtCtrls, ComCtrls;

type
  TForm1 = class(TForm)
    Panel1: TPanel;
    IdFTP1: TIdFTP;
    btnAdd: TBitBtn;
    Label1: TLabel;
    ListBox1: TListBox;
    Label2: TLabel;
    txtUsername: TEdit;
    txtPassword: TEdit;
    Label3: TLabel;
    Label4: TLabel;
    btnStart: TButton;
    lblStatus: TLabel;
    txtServer: TEdit;
    Label5: TLabel;
    txtLogs: TMemo;
    OpenDialog1: TOpenDialog;
    ProgressBar1: TProgressBar;
    btnDelete: TBitBtn;
    Label6: TLabel;
    procedure btnStartClick(Sender: TObject);
    procedure IdFTP1Status(ASender: TObject; const AStatus: TIdStatus;
      const AStatusText: string);
    procedure IdFTP1Work(ASender: TObject; AWorkMode: TWorkMode;
      AWorkCount: Integer);
    procedure btnAddClick(Sender: TObject);
    procedure btnDeleteClick(Sender: TObject);
    procedure ListBox1Click(Sender: TObject);
  private
    { Private declarations }
  public
    { Public declarations }
  end;

var
  Form1: TForm1;

implementation

{$R *.dfm}

procedure TForm1.btnAddClick(Sender: TObject);
var
  i: Integer;
begin
  if (OpenDialog1.Execute) then
  begin
    for i := 0 to ListBox1.Count - 1 do
      if(ListBox1.Items.Strings[i] = OpenDialog1.FileName) then ListBox1.Items.Delete(i);
    ListBox1.Items.Append(OpenDialog1.FileName);
  end;
  btnStart.Enabled := ListBox1.Count &gt; 0;
end;

procedure TForm1.btnDeleteClick(Sender: TObject);
begin
  ListBox1.Items.Delete(ListBox1.ItemIndex);
end;

procedure TForm1.btnStartClick(Sender: TObject);
var
  F : TFileStream;
  i : Integer;
  S : String;
begin
  IdFTP1.Host := txtServer.Text;
  IdFTP1.Username := txtUsername.Text;
  IdFTP1.Password := txtPassword.Text;
  btnStart.Enabled := False;
  try
    IdFTP1.Connect;
    IdFTP1.Login;
    for i:= 0 to ListBox1.Items.Count-1 do
    begin
      S := ListBox1.Items.Strings[i];
      if(FileExists(S)) then
      begin
        try
          lblStatus.Caption := 'Uploading '+ ExtractFileName(S);
          F := TFileStream.Create(S,fmOpenRead);
          ProgressBar1.Max := F.Size;
          ListBox1.Items.Strings[i] := '(Uploading) '+ S;
          IdFTP1.Put(F,ExtractFileName(S));
          ListBox1.Items.Strings[i] := '(Uploaded) '+ S;
        finally
          lblStatus.Caption := 'Upload completed';
          F.Free;
        end;
      end
      else
      begin
        ListBox1.Items.Strings[i] := '(Not found) '+ S;
      end;
    end;
  except on E:Exception do
    MessageDlg(e.Message,mtError,[mbOK],0);
  end;
  btnStart.Enabled := True;
end;

procedure TForm1.IdFTP1Status(ASender: TObject; const AStatus: TIdStatus;
  const AStatusText: string);
begin
  txtLogs.Lines.Append(DateTimeToStr(Now)+' : ' + AStatusText);
end;

procedure TForm1.IdFTP1Work(ASender: TObject; AWorkMode: TWorkMode;
  AWorkCount: Integer);
begin
  ProgressBar1.Position := AWorkCount;
  txtLogs.Lines.Append(DateTimeToStr(Now)+' : '+IntToStr(AWorkCount));
end;

procedure TForm1.ListBox1Click(Sender: TObject);
begin
  btnDelete.Enabled := (ListBox1.ItemIndex &gt; -1);
  btnStart.Enabled := ListBox1.Count &gt; 0;
end;

end.</pre>
]]></content:encoded>
			<wfw:commentRss>http://freelivenet.org/words/2011/12/how-to-write-a-simple-ftp-program-with-delphi-2007/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>How to link your personal email and your email in gmail</title>
		<link>http://freelivenet.org/words/2011/12/how-to-link-your-personal-email-and-your-email-in-gmail/</link>
		<comments>http://freelivenet.org/words/2011/12/how-to-link-your-personal-email-and-your-email-in-gmail/#comments</comments>
		<pubDate>Sat, 31 Dec 2011 03:20:46 +0000</pubDate>
		<dc:creator>Hamid</dc:creator>
				<category><![CDATA[Thinking]]></category>

		<guid isPermaLink="false">http://freelivenet.org/words/?p=83</guid>
		<description><![CDATA[&#160; &#160; &#160; &#160; If you have two emails and you would like to check both emails in one email, here is the steps you need to follow: In this article we assume you have one personal email and one &#8230; <a href="http://freelivenet.org/words/2011/12/how-to-link-your-personal-email-and-your-email-in-gmail/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>If you have two emails and you would like to check both emails in one email, here is the steps you need to follow:</p>
<p>In this article we assume you have one personal email and one work email, and we assume both are in gmail.</p>
<p>You need to login to your work email and go to mail setting</p>
<p><a href="http://freelivenet.org/words/wp-content/uploads/2011/12/inbox.jpg"><img class="alignnone size-large wp-image-86" title="inbox" src="http://freelivenet.org/words/wp-content/uploads/2011/12/inbox-1024x701.jpg" alt="" width="640" height="438" /></a></p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>And click on Forwarding and POP/IMAP tab</p>
<p><a href="http://freelivenet.org/words/wp-content/uploads/2011/12/forward.jpg"><img class="alignnone size-large wp-image-85" title="forward" src="http://freelivenet.org/words/wp-content/uploads/2011/12/forward-1024x701.jpg" alt="" width="640" height="438" /></a></p>
<p>&nbsp;</p>
<p>There at the top you will see a section called Forwarding, click on button &#8220;Add a forwarding address&#8221;</p>
<p><a href="http://freelivenet.org/words/wp-content/uploads/2011/12/addForward.jpg"><img class="alignnone size-large wp-image-84" title="addForward" src="http://freelivenet.org/words/wp-content/uploads/2011/12/addForward-1024x667.jpg" alt="" width="640" height="416" /></a></p>
<p>Then you need to type your personal email address, which you would like all emails be forwarded to. After that you will receive a confirmation email on your personal email which you have to confirm,</p>
<p>After that you need to come back to this page, and enable that forward, as by default it will be disabled.</p>
<p>Once you have successfully activated your email forwarding, you need to login to your personal email and go to mail setting.</p>
<p>This time you need to click on a section called Accounts and Imports</p>
<p><a href="http://freelivenet.org/words/wp-content/uploads/2011/12/sendAs.jpg"><img class="alignnone size-large wp-image-87" title="sendAs" src="http://freelivenet.org/words/wp-content/uploads/2011/12/sendAs-1024x791.jpg" alt="" width="640" height="494" /></a></p>
<p>A section called Send mail as: and click on  the link &#8220;Add another email address you own&#8221;</p>
<p>Then you will see a new window</p>
<p><a href="http://freelivenet.org/words/wp-content/uploads/2011/12/sendAsEmail.png"><img class="alignnone size-full wp-image-88" title="sendAsEmail" src="http://freelivenet.org/words/wp-content/uploads/2011/12/sendAsEmail.png" alt="" width="641" height="520" /></a></p>
<p>In this new window you type your name and your work email address,<br />
Also uncheck that checkbox, and click on &#8220;Next Step &#8221;</p>
<p><a href="http://freelivenet.org/words/wp-content/uploads/2011/12/sendAsEmail2.jpg"><img class="alignnone size-full wp-image-89" title="sendAsEmail2" src="http://freelivenet.org/words/wp-content/uploads/2011/12/sendAsEmail2.jpg" alt="" width="631" height="520" /></a></p>
<p>Then on the next step choose the first option, and click &#8220;Next Step&#8221;, on the next step click on send verification, which you need to confirm that,</p>
<p>After you confirm that, you need to come back to mail setting in your personal email, where you setup the Send mail as,</p>
<p><a href="http://freelivenet.org/words/wp-content/uploads/2011/12/sendAs.jpg"><img class="alignnone size-large wp-image-87" title="sendAs" src="http://freelivenet.org/words/wp-content/uploads/2011/12/sendAs-1024x791.jpg" alt="" width="640" height="494" /></a></p>
<p>And in section saying &#8220;Send mail as:&#8221; you need to make sure your work email that you set, is activated, and also from two radio button at the bottom you need to choose the top one:</p>
<p>&#8220;Reply from the same address message was sent to&#8221;</p>
<p>This option is when you replying to your work emails, from your personal email, they appear to be sent from your work email.</p>
<p>You may need to check this, and make sure it is working fine,</p>
<p>This is the quick way to setup, but there are some more professional way to do that, which I might explain that in an other article.</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
]]></content:encoded>
			<wfw:commentRss>http://freelivenet.org/words/2011/12/how-to-link-your-personal-email-and-your-email-in-gmail/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Vertically align in css for IE7+ and FF</title>
		<link>http://freelivenet.org/words/2011/09/vertically-align-in-css-for-ie7-and-ff/</link>
		<comments>http://freelivenet.org/words/2011/09/vertically-align-in-css-for-ie7-and-ff/#comments</comments>
		<pubDate>Sat, 24 Sep 2011 12:20:57 +0000</pubDate>
		<dc:creator>Hamid</dc:creator>
				<category><![CDATA[Programming]]></category>

		<guid isPermaLink="false">http://freelivenet.org/words/?p=61</guid>
		<description><![CDATA[Making a text vertically aligned is one the challenging tasks with css. Here is one quick solution which I found and it works fine in IE7+ solution is to use vertical-align: middle; but this style doesn&#8217;t work as it expect &#8230; <a href="http://freelivenet.org/words/2011/09/vertically-align-in-css-for-ie7-and-ff/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>Making a text vertically aligned is one the challenging tasks with css. Here is one quick solution which I found and it works fine in IE7+</p>
<p>solution is to use vertical-align: middle;</p>
<p>but this style doesn&#8217;t work as it expect to work, or as we think it should work.</p>
<p>here is the trick:</p>
<p>&lt;div class=&#8221;verticalAlign&#8221;&gt;<br />
&lt;span&gt;&lt;/span&gt;<br />
&lt;p&gt;Here is some text that will be middle aligned.&lt;/p&gt;<br />
&lt;/div&gt;</p>
<p>.verticalAlign{<br />
display: block;<br />
height: 300px;<br />
width: 400px;<br />
}</p>
<p>.verticalAlign span{<br />
display: inline-block;<br />
display: inline !IE;<br />
height: 300px;<br />
width: 1px;<br />
vertical-align: middle;<br />
}<br />
.verticalAlign p{<br />
display: inline-block;<br />
}</p>
<style>
.verticalAlign{
display: block;
height: 300px;
width: 400px;
border: 1px solid #333;
}.verticalAlign span{
display: inline-block;
display: inline !IE;
height: 100%;
width: 1px;
vertical-align: middle;
}.verticalAlign p{
display: inline-block;
}</style>
<div class="verticalAlign"><span></span>
<p>Here is some text that will be middle aligned.</p>
</div>
]]></content:encoded>
			<wfw:commentRss>http://freelivenet.org/words/2011/09/vertically-align-in-css-for-ie7-and-ff/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>The &#8216;Microsoft.ACE.OLEDB.12.0&#8242; provider is not registered on the local machine</title>
		<link>http://freelivenet.org/words/2011/09/the-microsoft-ace-oledb-12-0-provider-is-not-registered-on-the-local-machine/</link>
		<comments>http://freelivenet.org/words/2011/09/the-microsoft-ace-oledb-12-0-provider-is-not-registered-on-the-local-machine/#comments</comments>
		<pubDate>Wed, 21 Sep 2011 01:24:59 +0000</pubDate>
		<dc:creator>Hamid</dc:creator>
				<category><![CDATA[Thinking]]></category>

		<guid isPermaLink="false">http://freelivenet.org/words/?p=58</guid>
		<description><![CDATA[I was trying to import one excel file (2010 version) into mssql server with SQL Server Management Studio and keep getting that error. Solution which solved my problem: I found this website http://blogs.msdn.com/b/farukcelik/archive/2010/06/04/accessing-excel-files-on-a-x64-machine.aspx  and followed the steps and didn&#8217;t work. &#8230; <a href="http://freelivenet.org/words/2011/09/the-microsoft-ace-oledb-12-0-provider-is-not-registered-on-the-local-machine/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>I was trying to import one excel file (2010 version) into mssql server with SQL Server Management Studio and keep getting that error.</p>
<p>Solution which solved my problem:<br />
I found this website <a href="http://blogs.msdn.com/b/farukcelik/archive/2010/06/04/accessing-excel-files-on-a-x64-machine.aspx">http://blogs.msdn.com/b/farukcelik/archive/2010/06/04/accessing-excel-files-on-a-x64-machine.aspx</a>  and followed the steps and didn&#8217;t work.</p>
<p>What I did was I installed <a href="http://www.microsoft.com/download/en/details.aspx?displaylang=en&amp;WT.mc_id=soc-n-%5bTR%5d-loc-%5bServices%5d-%5bfarukc%5d&amp;id=13255" target="_blank">Microsoft Access Database Engine 2010 Redistributable</a> and still was getting the same error.</p>
<p>After that I saved that excel file as Excel 203 (with extension .xls) and now it worked fine.</p>
]]></content:encoded>
			<wfw:commentRss>http://freelivenet.org/words/2011/09/the-microsoft-ace-oledb-12-0-provider-is-not-registered-on-the-local-machine/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Finish minesweeper game in 1Sec</title>
		<link>http://freelivenet.org/words/2011/04/finish-minesweeper-game-in-1sec/</link>
		<comments>http://freelivenet.org/words/2011/04/finish-minesweeper-game-in-1sec/#comments</comments>
		<pubDate>Sat, 16 Apr 2011 13:56:48 +0000</pubDate>
		<dc:creator>Hamid</dc:creator>
				<category><![CDATA[Programming]]></category>
		<category><![CDATA[Thinking]]></category>

		<guid isPermaLink="false">http://freelivenet.org/words/?p=54</guid>
		<description><![CDATA[Everyone has seen windows minesweeper game which is installed by default in all windows. But not everyone is familiar with the way it works. It is very simple, the goal in this game is to find the mines, which are &#8230; <a href="http://freelivenet.org/words/2011/04/finish-minesweeper-game-in-1sec/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>Everyone has seen windows minesweeper game which is installed by default in all windows. But not everyone is familiar with the way it works.</p>
<p>It is very simple, the goal in this game is to find the mines, which are hidden behind the blocks, you can mark them by right clicking on the cell when you are sure it is mine, and when you think it is not mine, you can click on it, it will be revealed. then you will see it is empty of there will be number in that cell. The number in the cell represents total number of mine in cells connected to this cell, which are 8 in total, by calculation from these numbers you can reveal all the mines.</p>
<p>Remember it is counting the time and the one who finish it faster it is the winner.</p>
<p>Here is a small program which I have written to play that game for you, you can download it from <a href="http://freelivenet.com/web/downloads.shtml" target="_blank">here</a>, it is called <a href="http://freelivenet.com/web/downloads.shtml" target="_blank">PlayMine</a>.</p>
<p>Feel free to contact me if you have any comment or question, or even if you are interested to get the source code which is written in Delphi, don&#8217;t hesitate to contact me.</p>
<p>Have fun and surprise your friends by finishing the game in less than a second.</p>
]]></content:encoded>
			<wfw:commentRss>http://freelivenet.org/words/2011/04/finish-minesweeper-game-in-1sec/feed/</wfw:commentRss>
		<slash:comments>12</slash:comments>
		</item>
		<item>
		<title>Style pdf file in PHP using html tags</title>
		<link>http://freelivenet.org/words/2011/04/style-pdf-file-in-php-using-html-tags/</link>
		<comments>http://freelivenet.org/words/2011/04/style-pdf-file-in-php-using-html-tags/#comments</comments>
		<pubDate>Sat, 16 Apr 2011 13:40:29 +0000</pubDate>
		<dc:creator>Hamid</dc:creator>
				<category><![CDATA[Programming]]></category>

		<guid isPermaLink="false">http://freelivenet.org/words/?p=47</guid>
		<description><![CDATA[I think most of php developers are familiar with FPDF, which is a great code to use in php when you want to generate pdf file.  You can download the code if you want from Here. That is a really &#8230; <a href="http://freelivenet.org/words/2011/04/style-pdf-file-in-php-using-html-tags/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>I think most of php developers are familiar with <a href="www.fpdf.org">FPDF</a>, which is a great code to use in php when you want to generate pdf file.  You can download the code if you want from <a href="http://freelivenet.com/web/downloads.shtml">Here</a>.</p>
<p>That is a really powerful code with many functions which you can create any type of pdf file, but when it comes to styling such as using bullets, making one word bold, or these type of things, you see it is very difficult to to make it.</p>
<p>Here is a very simple function which I wrote and added to FPDF, to be able to use simple html tags to style the pdf.</p>
<p>It is very simple to use, just you need to call this function with the $html set to your text.</p>
<p>The tags you can use at the moment are only two, but I if I get a chance I will add more tags.</p>
<p>At the moment you can use only &lt;b&gt;text to be bold&lt;/b&gt; and &lt;li&gt; text to be bullet&lt;/li&gt;, also make sure you include a surrounding &lt;div&gt; tag for your html tag.</p>
<p>The way it works, it looks for tags which knows, and apply the style when starts, and finish the style when it gets to closing tag. and that is the point it prints the out put. if you do not include the closing tag, you wont see anything in the result.</p>
<p><span style="white-space: pre;"> </span>function Html($w,$h,$html,$align=&#8221;L&#8221;)</p>
<p><span style="white-space: pre;"> </span>{</p>
<p><span style="white-space: pre;"> </span>$l = strlen($html);</p>
<p><span style="white-space: pre;"> </span>$s = &#8221;;</p>
<p><span style="white-space: pre;"> </span>$t = &#8221;;</p>
<p><span style="white-space: pre;"> </span>$i = 0;</p>
<p><span style="white-space: pre;"> </span>$ct = &#8221;;</p>
<p><span style="white-space: pre;"> </span>$x0 = $this-&gt;GetX();</p>
<p><span style="white-space: pre;"> </span>while($i&lt;$l){</p>
<p><span style="white-space: pre;"> </span>$c = $html[$i];</p>
<p><span style="white-space: pre;"> </span>if($c == &#8216;&lt;&#8217;){</p>
<p><span style="white-space: pre;"> </span>$t = &#8221;;</p>
<p><span style="white-space: pre;"> </span>while(($c != &#8216;&gt;&#8217;)and($i&lt;$l)){</p>
<p><span style="white-space: pre;"> </span>$c = $html[$i];</p>
<p><span style="white-space: pre;"> </span>$t .= $c;</p>
<p><span style="white-space: pre;"> </span>$i++;</p>
<p><span style="white-space: pre;"> </span>}</p>
<p><span style="white-space: pre;"> </span>if($t[1] == &#8216;/&#8217;){</p>
<p><span style="white-space: pre;"> </span>if($ct == &#8216;&lt;li&gt;&#8217;){</p>
<p><span style="white-space: pre;"> </span>$this-&gt;SetX($x0+2);</p>
<p><span style="white-space: pre;"> </span>}else{</p>
<p><span style="white-space: pre;"> </span>$this-&gt;SetX($x0);</p>
<p><span style="white-space: pre;"> </span>}</p>
<p><span style="white-space: pre;"> </span>$this-&gt;MultiCell($w,$h,$s,0,$align);</p>
<p><span style="white-space: pre;"> </span>$s = &#8221;;</p>
<p><span style="white-space: pre;"> </span>$ct = &#8221;;</p>
<p><span style="white-space: pre;"> </span>}else{</p>
<p><span style="white-space: pre;"> </span>$ct = $t;</p>
<p><span style="white-space: pre;"> </span>}</p>
<p><span style="white-space: pre;"> </span>switch ($t){</p>
<p><span style="white-space: pre;"> </span>case &#8216;&lt;b&gt;&#8217;: $this-&gt;SetFont(&#8221;,&#8217;B',&#8221;);</p>
<p><span style="white-space: pre;"> </span>break;</p>
<p><span style="white-space: pre;"> </span>case &#8216;&lt;/b&gt;&#8217;: $this-&gt;SetFont(&#8221;,&#8221;,&#8221;);</p>
<p><span style="white-space: pre;"> </span>break;</p>
<p><span style="white-space: pre;"> </span>case &#8216;&lt;li&gt;&#8217;:</p>
<p><span style="white-space: pre;"> </span>$FSt = $this-&gt;FontStyle;</p>
<p><span style="white-space: pre;"> </span>$FSi = $this-&gt;FontSizePt;</p>
<p><span style="white-space: pre;"> </span>$this-&gt;SetFont(&#8221;,&#8217;B',20);</p>
<p><span style="white-space: pre;"> </span>//$this-&gt;Cell(4,$h,&#8217;-',0);</p>
<p><span style="white-space: pre;"> </span>$this-&gt;Cell(3,1,&#8217;.',0,0,&#8217;C');</p>
<p><span style="white-space: pre;"> </span>$this-&gt;SetFont(&#8221;,$FSt,$FSi);</p>
<p><span style="white-space: pre;"> </span>break;</p>
<p><span style="white-space: pre;"> </span>case &#8216;&lt;/br&gt;&#8217;: $s .= &#8220;\n&#8221;;//$this-&gt;Ln($h);</p>
<p><span style="white-space: pre;"> </span>break;</p>
<p><span style="white-space: pre;"> </span>}</p>
<p><span style="white-space: pre;"> </span>}if($c == &#8220;\n&#8221;){</p>
<p><span style="white-space: pre;"> </span>//$this-&gt;MultiCell($w,$h,$s);</p>
<p><span style="white-space: pre;"> </span>//$this-&gt;Ln();</p>
<p><span style="white-space: pre;"> </span>$s = &#8221;;</p>
<p><span style="white-space: pre;"> </span>$i++;</p>
<p><span style="white-space: pre;"> </span>}</p>
<p><span style="white-space: pre;"> </span>else{</p>
<p><span style="white-space: pre;"> </span>$s .= ($i&lt;$l)?$html[$i]:&#8221;;</p>
<p><span style="white-space: pre;"> </span>$i++;</p>
<p><span style="white-space: pre;"> </span>}</p>
<p><span style="white-space: pre;"> </span>}</p>
<p><span style="white-space: pre;"> </span>}</p>
]]></content:encoded>
			<wfw:commentRss>http://freelivenet.org/words/2011/04/style-pdf-file-in-php-using-html-tags/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>Load CD or DVD image file into a virtual drive</title>
		<link>http://freelivenet.org/words/2011/02/load-cd-or-dvd-image-file-into-a-virtual-drive/</link>
		<comments>http://freelivenet.org/words/2011/02/load-cd-or-dvd-image-file-into-a-virtual-drive/#comments</comments>
		<pubDate>Sun, 27 Feb 2011 01:49:37 +0000</pubDate>
		<dc:creator>Hamid</dc:creator>
				<category><![CDATA[Tips]]></category>

		<guid isPermaLink="false">http://freelivenet.org/words/?p=44</guid>
		<description><![CDATA[Here is a quick tip how to load an iso file, which can be a DVD or CD image file into a drive, without installing any software. 1- as iso files are almost a zip file, first you need to &#8230; <a href="http://freelivenet.org/words/2011/02/load-cd-or-dvd-image-file-into-a-virtual-drive/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<div>
<p>Here is a quick tip how to load an iso file, which can be a DVD or CD image file into a drive, without installing any software.</p>
<p>1- as iso files are almost a zip file, first you need to extract the iso file contents into a folder, using any zip file, such 7Zip, which is my favourit.</p>
<p>2- Use command line to make a virtual drive from that folder, if your folder is called C:\MyISO<br />
You can use this command to crate a virtual drive,</p>
<p>subst K: C:\MyISO</p>
<p>this will add a K drive and you can use it,</p>
<p>NOTE: this is a temporary drive, and will be removed if you log out or you restart, also if you want to remove this drive you can use subst K: /D</p>
</div>
]]></content:encoded>
			<wfw:commentRss>http://freelivenet.org/words/2011/02/load-cd-or-dvd-image-file-into-a-virtual-drive/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>POP3 mail client with delphi 2007</title>
		<link>http://freelivenet.org/words/2011/02/pop3-mail-client-with-delphi-2007/</link>
		<comments>http://freelivenet.org/words/2011/02/pop3-mail-client-with-delphi-2007/#comments</comments>
		<pubDate>Thu, 24 Feb 2011 17:25:44 +0000</pubDate>
		<dc:creator>Hamid</dc:creator>
				<category><![CDATA[Programming]]></category>

		<guid isPermaLink="false">http://freelivenet.org/words/?p=42</guid>
		<description><![CDATA[unit Unit1; interface uses Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms, Dialogs, IdIOHandler, IdIOHandlerSocket, IdIOHandlerStack, StdCtrls, IdBaseComponent, IdComponent, IdTCPConnection, IdTCPClient,  IdMessageClient, IdPOP3, IdMessage, ExtCtrls,IdAttachment,IdText, IdExplicitTLSClientServerBase; type TForm1 = class(TForm) IdPOP31: TIdPOP3; Button1: TButton; IdMessage1: TIdMessage; Memo1: TMemo; Button2: TButton; &#8230; <a href="http://freelivenet.org/words/2011/02/pop3-mail-client-with-delphi-2007/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>unit Unit1;</p>
<p>interface</p>
<p>uses<br />
Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms,<br />
Dialogs, IdIOHandler, IdIOHandlerSocket, IdIOHandlerStack, StdCtrls, IdBaseComponent, IdComponent, IdTCPConnection,<br />
IdTCPClient,  IdMessageClient, IdPOP3, IdMessage, ExtCtrls,IdAttachment,IdText,<br />
IdExplicitTLSClientServerBase;</p>
<p>type<br />
TForm1 = class(TForm)<br />
IdPOP31: TIdPOP3;<br />
Button1: TButton;<br />
IdMessage1: TIdMessage;<br />
Memo1: TMemo;<br />
Button2: TButton;<br />
Panel1: TPanel;<br />
ListBox1: TListBox;<br />
Splitter1: TSplitter;<br />
Splitter2: TSplitter;<br />
Panel2: TPanel;<br />
Label1: TLabel;<br />
Label2: TLabel;<br />
Label3: TLabel;<br />
Memo2: TMemo;<br />
Label4: TLabel;<br />
txtEmail: TEdit;<br />
txtPassword: TEdit;<br />
txtHost: TEdit;<br />
Label5: TLabel;<br />
Label6: TLabel;<br />
Label7: TLabel;<br />
procedure Button1Click(Sender: TObject);<br />
procedure IdPOP31Status(ASender: TObject; const AStatus: TIdStatus;<br />
const AStatusText: string);<br />
procedure IdIOHandlerStack1Status(ASender: TObject;<br />
const AStatus: TIdStatus; const AStatusText: string);<br />
procedure ListBox1Click(Sender: TObject);<br />
procedure Button2Click(Sender: TObject);<br />
private<br />
{ Private declarations }<br />
public<br />
{ Public declarations }<br />
end;</p>
<p>var<br />
Form1: TForm1;</p>
<p>implementation</p>
<p>{$R *.dfm}</p>
<p>procedure TForm1.Button1Click(Sender: TObject);<br />
begin<br />
try<br />
IdPOP31.Host := txtHost.Text;<br />
IdPOP31.Username := txtEmail.Text;<br />
IdPOP31.Password := txtPassword.Text;<br />
IdPOP31.Connect;<br />
finally<br />
end;<br />
end;</p>
<p>procedure TForm1.Button2Click(Sender: TObject);<br />
var<br />
i : integer;<br />
begin<br />
try<br />
Memo1.Lines.Append(IntToStr(IdPOP31.CheckMessages));<br />
for i := 1 to IdPOP31.CheckMessages do<br />
begin<br />
IdMessage1.Clear;<br />
try<br />
IdPOP31.RetrieveHeader(i,IdMessage1);<br />
finally<br />
ListBox1.Items.Append(IntToStr(i)+&#8217;-'+IdMessage1.Subject);<br />
end;<br />
end;<br />
except on E:Exception do<br />
Memo1.Lines.Append(&#8216;E=&gt;&#8217;+E.Message);<br />
end;<br />
end;</p>
<p>procedure TForm1.IdIOHandlerStack1Status(ASender: TObject;<br />
const AStatus: TIdStatus; const AStatusText: string);<br />
begin<br />
Memo1.Lines.Append(&#8216;IO=&gt;&#8217;+AStatusText);<br />
end;</p>
<p>procedure TForm1.IdPOP31Status(ASender: TObject; const AStatus: TIdStatus;<br />
const AStatusText: string);<br />
begin<br />
Memo1.Lines.Append(AStatusText);<br />
if(AStatus = hsConnected) then<br />
try<br />
IdPOP31.Login;<br />
Button2.Enabled := IdPOP31.Connected;<br />
except on E:Exception do<br />
Memo1.Lines.Append(&#8216;E=&gt;&#8217;+E.Message);<br />
end;<br />
end;</p>
<p>procedure TForm1.ListBox1Click(Sender: TObject);<br />
var<br />
i : integer;<br />
fn,p : string;<br />
begin<br />
p := &#8216;c:\temp\at\&#8217;;<br />
i := ListBox1.ItemIndex+1;<br />
IdMessage1.Clear;<br />
try<br />
IdPOP31.Retrieve(i,IdMessage1);<br />
finally<br />
Label1.Caption := &#8216;From =&gt; &#8216;+IdMessage1.From.Text;<br />
Label2.Caption := &#8216;To =&gt; &#8216;+IdMessage1.Recipients.EMailAddresses;<br />
label3.Caption := &#8216;Subject =&gt; &#8216;+IdMessage1.Subject;<br />
end;<br />
Memo2.Clear;<br />
Label4.Caption := &#8216;Attachments =&gt; &#8216;;<br />
for i := 0 to Pred(IdMessage1.MessageParts.Count) do<br />
begin<br />
if(IdMessage1.MessageParts.Items[i] is TIdAttachment) then<br />
begin<br />
fn := p+TIdAttachment(IdMessage1.MessageParts.Items[i]).FileName;<br />
Label4.Caption := Label4.Caption + fn;<br />
try<br />
TIdAttachment(IdMessage1.MessageParts.Items[i]).SaveToFile(fn);<br />
except on E:Exception do<br />
Memo1.Lines.Append(&#8216;E =&gt; &#8216;+E.Message);<br />
end;<br />
end<br />
else<br />
begin<br />
if(IdMessage1.MessageParts.Items[i] is TIdText) then<br />
begin<br />
Memo2.Lines.AddStrings(TIdText(IdMessage1.MessageParts.Items[i]).Body);<br />
end;<br />
end;<br />
end;<br />
end;</p>
<p>end.</p>
]]></content:encoded>
			<wfw:commentRss>http://freelivenet.org/words/2011/02/pop3-mail-client-with-delphi-2007/feed/</wfw:commentRss>
		<slash:comments>50</slash:comments>
		</item>
		<item>
		<title>Transfer file with remote desktop</title>
		<link>http://freelivenet.org/words/2011/02/transfer-file-with-remote-desktop/</link>
		<comments>http://freelivenet.org/words/2011/02/transfer-file-with-remote-desktop/#comments</comments>
		<pubDate>Wed, 02 Feb 2011 13:20:52 +0000</pubDate>
		<dc:creator>Hamid</dc:creator>
				<category><![CDATA[Tips]]></category>

		<guid isPermaLink="false">http://freelivenet.org/words/?p=27</guid>
		<description><![CDATA[Here are the steps you can use to share your local drive with remote computer that you are connected with remote desktop connection. 1- In remote desktop connection dialog window, click on Options. 2- In option dialog select local resources &#8230; <a href="http://freelivenet.org/words/2011/02/transfer-file-with-remote-desktop/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>Here are the steps you can use to share your local drive with remote computer that you are connected with remote desktop connection.</p>
<p>1- In remote desktop connection dialog window, click on Options.</p>
<p><a href="http://freelivenet.org/words/wp-content/uploads/2011/02/step11.jpg"><img class="alignnone size-medium wp-image-28" title="step1" src="http://freelivenet.org/words/wp-content/uploads/2011/02/step11-300x178.jpg" alt="" width="300" height="178" /></a></p>
<p>2- In option dialog select local resources tab.</p>
<p><a href="http://freelivenet.org/words/wp-content/uploads/2011/02/step21.jpg"><img class="alignnone size-medium wp-image-29" title="step2" src="http://freelivenet.org/words/wp-content/uploads/2011/02/step21-265x300.jpg" alt="" width="265" height="300" /></a></p>
<p>3- click on more button to see below dialog, which you can select which one of your local drive share with remote desktop.</p>
<p><a href="http://freelivenet.org/words/wp-content/uploads/2011/02/step31.jpg"><img class="alignnone size-medium wp-image-30" title="step3" src="http://freelivenet.org/words/wp-content/uploads/2011/02/step31-293x300.jpg" alt="" width="293" height="300" /></a></p>
<p>when selected press ok, and then connect.</p>
<p>when connected on remote computer if you open My computer you can see your drive is shared and available there, which you can copy files into your drive.</p>
<p>Tips: as you are not shore about the remote computer try not to share your main drive, as some viruses might get transferred. you can plug a USB drive and try to share that USB drive, with remote computer.</p>
]]></content:encoded>
			<wfw:commentRss>http://freelivenet.org/words/2011/02/transfer-file-with-remote-desktop/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
	</channel>
</rss>

