Site Optimization – Google and the loading page time

Already some time ago, Google announced that one of the many parameters that affect our position in the search results page is the page loading speed. There are many tools by which we can check our website is optimally written. The speed of page loads you can see, among others. allowance for using YSlow provided by Yahoo or additive Page Speed from Google. Both of these plug-ins to easily provide us with data about the causes of problems and how to solve them. Will that be enough? How to check how our Uncle Google will receive and whether it was a good result returned by these additives somehow translates to the reception? Google has long provided the tool with which we can at least in an approximate way to find out how our site sees Big Brother Google. Tool “Performance Sites” is available in the “Webmaster Tools” in the “laboratory.” Available data on the page load speeds are not very accurate and probably flawed, but they should not be ignored. If the chart we looked at the data saying that our page loads, for example, more than 10 seconds should respond as soon as possible.

Example 1

The appearance of the chart for my website allows you to moderate optimism [2.2 s]), enjoys a good result all the more so because it is the result of work carried out on site in March.

Read more

Share and Enjoy:
  • Print
  • Digg
  • Sphinn
  • del.icio.us
  • Facebook
  • Mixx
  • Google Bookmarks
  • Blogplay
  • MySpace
  • PDF

Export DataTable to CSV

A small feature that helps force, or write data from the DataTable to a CSV file (tab separated columns, UTF8 encoding).


 /// <summary>
 /// Support for writing data from the DataTable as a CSV file.
 /// </summary>
 /// <param name="sender"></param>
 /// <param name="e"></param>
 private void zapiszDaneJakoCSV_Click(object sender, EventArgs e)
 {
 string Saved_File = "";

 SaveFileDialog saveFileDialog = new SaveFileDialog();
 saveFileDialog.Title = "Zapisz dane jako CSV";
 saveFileDialog.FileName = "Dane";
 saveFileDialog.Filter = "Plik .csv|*.csv";

 if (saveFileDialog.ShowDialog() == DialogResult.OK)
 {
 Saved_File = saveFileDialog.FileName;

 FileStream fs = new FileStream(Saved_File, FileMode.Create);
 StreamWriter sw = new StreamWriter(fs, Encoding.UTF8);

 int iColCount = obiektDataTable.Columns.Count;
 for (int i = 0; i < iColCount; i++)
 {
 sw.Write(obiektDataTable.Columns[i]);
 if (i < iColCount - 1)
 {
 sw.Write("\t");
 }
 }
 sw.Write(sw.NewLine);

 foreach (DataRow dr in obiektDataTable.Rows)
 {
 for (int i = 0; i < iColCount; i++)
 {
 if (!Convert.IsDBNull(dr[i]))
 {
 sw.Write(dr[i].ToString());
 }
 if (i < iColCount - 1)
 {
 sw.Write("\t");
 }
 }
 sw.Write(sw.NewLine);
 }
 sw.Close();

 }
 }
Share and Enjoy:
  • Print
  • Digg
  • Sphinn
  • del.icio.us
  • Facebook
  • Mixx
  • Google Bookmarks
  • Blogplay
  • MySpace
  • PDF

Generate RSS feeds for sites without RSS

It sometimes happens that a regularly updated web pages do not have an RSS feed, so how to cope when not suit us constantly visiting the site for new content. As in most cases and the situation is out, and even a couple of different outputs.

Available solutions:

1st Feedity RSS Feed Generator

Offers the possibility of a simple verification, which are part of the articles. After selecting the link, which is a link to the article, we can suspect the filtered articles. There is also the option to choose which parts of the html code containing the title and description of the new article. After defining these filters, we can move on to the window with the available subscription options. Feedity in my case it worked best in RSS are just the latest articles.
Read more

Share and Enjoy:
  • Print
  • Digg
  • Sphinn
  • del.icio.us
  • Facebook
  • Mixx
  • Google Bookmarks
  • Blogplay
  • MySpace
  • PDF

Multilingual blog and the Global Translator

I’d like to share with you how I conducted the test results, conduct the test of the blog / site in multiple languages. I guess everyone wondered how to attract to your site more users, one way is just running a multilingual blog. During the test, I checked two ways:

1st The use of automatic translation – Global Translator plugin

2nd Keeping a separate page in another language (content automatically translated using Google Translator)

In the first stage (lasting 4 months), I used your blog to automatically translate pages using this plugin. Here is a brief summary:

Read more

Share and Enjoy:
  • Print
  • Digg
  • Sphinn
  • del.icio.us
  • Facebook
  • Mixx
  • Google Bookmarks
  • Blogplay
  • MySpace
  • PDF

Changing the size of panels in c#

Searching the depths of the internet I came across a very interesting, extending a normal Forms.Panel ‘uo dynamically change its size. The class that provides this functionality, I found the msdn forum, here it is:

The class must be added to the project, compile. The new indicator should appear in the Toolbox.

nobugz:

using System;
using System.Drawing;
using  System.Windows.Forms;

public class SizeablePanel : Panel {
 private const int cGripSize = 20;
 private bool mDragging;
 private Point mDragPos;

 public SizeablePanel() {
 this.DoubleBuffered = true;
 this.SetStyle(ControlStyles.ResizeRedraw, true);
 this.BackColor =  Color.White;
 }

 protected override void  OnPaint(PaintEventArgs e) {
 ControlPaint.DrawSizeGrip(e.Graphics,  this.BackColor,
 new Rectangle(this.ClientSize.Width -  cGripSize, this.ClientSize.Height - cGripSize, cGripSize, cGripSize));
 base.OnPaint(e);
 }

 private bool IsOnGrip(Point pos) {
 return pos.X >= this.ClientSize.Width - cGripSize &&
 pos.Y >= this.ClientSize.Height - cGripSize;
 }

 protected override void OnMouseDown(MouseEventArgs e) {
 mDragging  = IsOnGrip(e.Location);
 mDragPos = e.Location;
 base.OnMouseDown(e);
 }

 protected override void  OnMouseUp(MouseEventArgs e) {
 mDragging = false;
 base.OnMouseUp(e);
 }

 protected override void  OnMouseMove(MouseEventArgs e) {
 if (mDragging) {
 this.Size = new Size(this.Width + e.X - mDragPos.X,
 this.Height + e.Y - mDragPos.Y);
 mDragPos = e.Location;
 }
 else if (IsOnGrip(e.Location)) this.Cursor = Cursors.SizeNWSE;
 else this.Cursor = Cursors.Default;
 base.OnMouseMove(e);
 }
}

I would add only:


this.BringToFront();

in OnMouseMove();.

Share and Enjoy:
  • Print
  • Digg
  • Sphinn
  • del.icio.us
  • Facebook
  • Mixx
  • Google Bookmarks
  • Blogplay
  • MySpace
  • PDF

Sponsored links

Noni
Driving Schools Krakow