Wickasitha's tech Blog

blogging everything

Archive for the ‘Microsoft’ Category

Microsoft SQL Server JDBC Driver 3.0

SQL Server JDBC Driver 3.0 is released recently. If you’re coming to SQL Server from Java, make sure that you’re using our newest JDBC Driver : http://www.microsoft.com/downloads/details.aspx?FamilyID=a737000d-68d0-4531-b65d-da0f2a735707&displaylang=en
If you don’t know the current SQL Server JDBC Driver version compile my this java console app below and run on your machine. It will write the SQL Server JDBC Driver version out to the console :
————————————————————————————————————————-
import java.sql.*;
public class getJDBCDriverVersion {
public static void main(String[] args) {
try {
Driver d =(Driver)Class.forName(“com.microsoft.sqlserver.jdbc.SQLServerDriver”).newInstance();
System.out.println(“JDBC Driver version is : ” + d.getMajorVersion()  + “.” + d.getMinorVersion());
}catch (Exception e){
e.printStackTrace();
}
}
}
————————————————————————————————————————–
If it’s not showing 3.0, then get your copy from the download link above and enjoy

Microsoft Corp. and Nokia today launched the first application from their alliance around mobile productivity, Microsoft Communicator Mobile for Nokia devices. This new unified communications client connects directly with a company’s communications systems to streamline mobile collaboration. Owners of a number of Symbian-based Nokia Eseries smartphones can download the English version today from Nokia’s Ovi Store, the easiest place to get content on their Nokia devices.

Read More: Microsoft News Center

Get a FREE website from Microsoft…!

Learn how to use Office Live for Small Business to host website files without using the Microsoft Office Live websiteofficelivetemplates. You can get a no-cost website and hosting from Microsoft through Office Live, and you can delete the Office Live website templates and then just publish your own.

About Office Live Small Business

Office Live provides FREE online storage and document sharing.

With Office Live Small Business, building your website is simple.  All the tools and resources you’ll need are here, with easy-to-follow, step-by-step instructions. See example websites or sign up to get started. Everything you need to create a professional-looking website:

  • Free web hosting
  • Free templates and easy to use tools
  • Free email accounts
  • Free online support

For more information, see Microsoft Office Live for Small Business Free Website.

Internet Access Process
Client >>DNS Server >>Website>> Client

Bypass DNS Server
Client>>Website >>Client
1. First, you need to open command prompt by clicking on Start button thenRun.
2. Type “cmd.exe” then hit Enter.
3. Now type ping then the website address.
  Ex :   ping youtube.com
4. Now go to Run Command again. Type “c:/windows/system32/drivers/etc”and hit Enter. 5. Right click on “hosts” file then open with notepad.

7. Now copy and paste the ip address from pinging youtube.com like on the image above.

Save after edit the file..

You can add as many of your favorite sites below by just following these steps.

Microsoft reserves 20% of your available bandwidth for their own purposes like Windows Updates and interrogating your PC etc

How to get it back:

Click Start then Run and type gpedit.msc.This opens the group policy editor. Then go to:
Local Computer Policy
then Computer Configuration
then Administrative Templates then Network then QOS Packet Scheduler and then to Limit Reservable Bandwidth.

Double click on Limit Reservable bandwidth. It will say it is not configured, but the truth is under the Explain tab i.e.”By default, the Packet Scheduler limits the system to 20 percent of the bandwidth of a connection, but you can use this setting to override the default.”
So the trick is to ENABLE reservable bandwidth, then set it to ZERO (0). This will allow the system to reserve nothing, rather than the default 20%.

Don’t steal software from streets

Micro ultra-sonic alarm then fitted and packed it inside a Microsoft software box. Check out the reactions… :)

I was getting the follwing error when I try to switch to Design Mode on my page:this is related to web part manager
The specified display mode is currently disabled on this page. Make sure personalization is enabled for the current user
I have the following code that creates the user if they are not in the system and authenticates them as well:
//Authenticate the user in the ASPNETDB personalization DB
if (Membership.GetUser(SiteData.UserInformation.Instance.WebLogin)==null)
{
//Create the user
MembershipUser newUser = Membership.CreateUser(
       SiteData.UserInformation.Instance.WebLogin,
           SiteData.UserInformation.Instance.Password);
Membership.ValidateUser(SiteData.UserInformation.Instance.WebLogin,
SiteData.UserInformation.Instance.Password);
}


Solution :
Just performed 2 steps to use custom authentication.
1. Modify web.config for using Forms authentication mode as “Forms”
<authentication mode=”Forms” >
2. Once you identify a user as valid (may be by checking from database or any other means), execute following line of code.
FormsAuthentication.SetAuthCookie(“<string:username>”, <bool:persistenceCookie>);
e.g. FormsAuthentication.SetAuthCookie(“John_Smith”, false);
The above code automatically updates Webparts for specified username.
Pages (12): « First ... « 1 2 3 4 5 6 7 » ... Last »

RSS Feeds

QR Code

qr code

QR code created by QR code Widget

Fun with .NET

Visitors

Your Ads Here
Promote your products