Archive for April, 2009

Sockets: How to get remote IP with TcpClient

tcpclient.Client.RemoteEndPoint.ToString();

VN:F [1.1.6_502]Rating: 5.0/5 (1 vote cast)

Leave a Comment

Free eBooks from Microsoft Press again

 

Windows Small Business Server 2008 Administrator’s Companion - Charlie Russel and Sharon Crawford 
Microsoft Visual Basic 2008 Express Edition: Build a Program Now! - Patrice Pelland

 
Offer ends on 22nd April!
VN:F [1.1.6_502]Rating: 0.0/5 (0 votes cast)

Leave a Comment

MS Office SharePoint Designer 2007 Beginners Help Topics

Some good how-to topics can be found here: http://office.microsoft.com/en-us/sharepointdesigner/FX100646991033.aspx
 

Activating SharePoint Designer
Cascading style sheets
Collaboration
Contributor Settings
Creating sites
Customizing SharePoint Designer
Customizing sites
Data sources
Data Views
File management
Getting help
Introducing SharePoint Designer
Master pages
Page layouts and publishing sites
Saving and printing
Security and privacy
SharePoint Designer demos
Site management
Web Parts and Web Part Pages
Workflows

VN:F [1.1.6_502]Rating: 5.0/5 (1 vote cast)

Leave a Comment

Tool: ScreenScale

Just uploaded my newly developed hobby tool “Screen Scale” which is an on-screen ruler tool useful for the designers and developers for checking the positioning of controls. Features of this version are:

Size up to width/height of the screen
Transparency
Marking center
Horizontal and Vertical rulers
Multiple Scales
Lens (for zoom)
Pixel notation in ruler
Hide [...]

Leave a Comment

A Day in a Geek’s Life

The company’s resident IT professional extraordinaire has just returned from a much-deserved vacation but, in a temporary spell of relaxed judgment, has jeopardized their reputation with a poorly placed email and forwarded personal holiday snaps to the entire staff. Now they have to excavate through the email chain to find the offending photos – all [...]

Leave a Comment

Top 10 users on CommunityServer

This code will give you top 10 posters of Community Server application. Add this in /Themes/yourtheme/Common/home.aspx so that the list will be displayed in home page.

<%
SqlConnection con = new SqlConnection(ConfigurationManager.ConnectionStrings["SiteSqlServer"].ConnectionString);
SqlDataAdapter da = new SqlDataAdapter("select top 10 postauthor, count (*) as posts from cs_posts group by postauthor order [...]

Leave a Comment

SharePoint designer now available for FREE

After 01 April 2009, Microsoft SharePoint Designer will be available for download as free.
Download here!
 

VN:F [1.1.6_502]Rating: 3.0/5 (1 vote cast)

Leave a Comment

Quick fix for websites which breaks in IE8

I am sure you noticed the issues (mainly design breaks) in IE8 of your old websites. Here is a quick fix for that websites. But I recommend you to fix the issues so that it will be compatible with Internet Explorer 8 also. Because IE8 is an industry compliant browser which utilises maximum of CSS [...]

Leave a Comment

Monitor your filesystem for changes in real time in .NET

Here is a simple C# code which demonstrates usage of FileSystemWatcher. This uses minimum code

 
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;
using System.IO;
 
namespace fswatch
{
public partial class Form1 : Form
{
public Form1()
{
[...]

Leave a Comment

What is the maximum size MSSQL and MySQL can support?

What is the maximum size a Microsoft  SQL Server database can be?
Microsoft SQL Server database size depends on which edition you use. Check the below table. I take MSSQL 2008 for reference:

Edition
DB Size

Enterprise
Unlimited

Standard
Unlimited

Workgroup
Unlimited

Web
Unlimited

Developer
Unlimited

Express
4 GB

Compact 3.5
4 GB

Even though it says unlimited, be careful about the drive size
 
What is the maximum size a MySQL Server [...]

Leave a Comment