WP7 Skins Available Now!

by Ibrahim Ersoy 16. September 2011 01:28

Windows Phone 7 Skins for NOKIA N8 and SAMSUNG NEXUS GT are ready for download and trying!

 

 

 

 

 

 

Copy the WM7_Skin file and image files for each skins to:

 

For 32-bit: C:\Program Files\Microsoft XDE\1.0

For 64-bit: C:\Program Files (x86)\Microsoft XDE\1.0

 

There is no button added for emulator and when you design your app using Expression Blend or Visual Studio 2010,

you wont be able to see your skin here.

 

These skins are for XDE only.


Download it now and try! 

 

WP7 Skins.rar (1,60 mb)



Tags: ,

Windows Phone 7

Samsung Nexus GT Skin for Windows Phone 7 Emulator

by Ibrahim Ersoy 10. September 2011 18:11

Did you like it? I've just finished!






Well, Maybe Samsung Nexus GT doesnt support WP7 but it would be nice,it were! 

Dont you think?

 

 

Im making some skins for WP7.When they are all finished, i will be sharing them with you :)

 

Tags: ,

Windows Phone 7

How To Fix Emulator Problem in WP7.1

by Ibrahim Ersoy 8. September 2011 01:28

You've just installed Windows Phone 7.1 Developer Tools RC but you were unable to debug it.Right?


This is because some files are missing from your PC that Emulator needs.

Lets run Standalone Windows Phone Emulator and see which file it is!



 

 

See? MFPlat.DLL file is missing from your PC! This problem here isnt about running VS2010 as Administrator or not! I saw guys talking about this so often but they are focusing on the wrong direction :) The real problem here is: our emulator needs this MFPlat.DLL file.

So where to find it?

Dont worry i've Google'd around a bit for you and found the required files that will help you run WP7.1 Emulator properly.



First of all, download the archive file i'm giving you.

 

wp7reqfiles.rar (296,15 kb)

 



Now extract these files.

There are 3 folders: "C_Windows_System32" , "C_Windows_System32_en-US"  and "C_Windows_SysWOW64"


Copy the 3 files inside these directories into the same location as folder name given within archive file.



Furthermore:

1) Copy mfplat.dll inside "C_Windows_System32" folder into C:\Windows\System32 directory.
2) Copy mfplat.dll inside "C_Windows_SysWOW64" folder into  C:\Windows\SysWOW64 directory. (if you're using 32-bit Win OS, ignore this step)
3) Copy mfplat.dll.mui inside "C_Windows_System32_en-US" folder into C:\Windows\System32\en-US


After this step you're ready for WP7.1 Development!

 




Hope it helps! 

Tags:

Windows Phone 7

Read My Articles at CSharpcorner.com

by Ibrahim Ersoy 5. September 2011 02:42

I wrote more than 100 articles in MindCracker Communities.

You can read them here :

http://www.c-sharpcorner.com/Articles/ArticleListing.aspx?AuthorID=iersoy

 

 



Tags: ,

Announcements

Enabling DataSheet View in SharePoint 2010

by Ibrahim Ersoy 5. September 2011 02:26

You may have noticed that if you create a List or Library and want to view them on SharePoint 2010, then even though you've installed Office 2010 64-bit, it won't display the items in DataSheet View.


 

That's because you haven't installed 32-bit Office 2010 in the Client Machine. If you're on a development environment or don't want to install Office 2010 32-bit version on a 64-bit platform then you will have to install "2007 Office System Driver: Data Connectivity Components" or "Microsoft Access Database Engine 2010 Redistributable" which also enables DataSheet View in SharePoint Portal.

 

 

DataSheet works like an Access application. So it would be easy for you to record items in your lists or libraries.

Reminder:
DataSheet is an ActiveX control so it would work with only Internet Explorer.


Tags: ,

SharePoint 2010

Computed Columns in SQL Server 2008

by Ibrahim Ersoy 5. September 2011 02:18

Tables can have computed columns. It is an expression defining the value of the specified column. If you are creating a table object in Query Window the columns don't have data by default. But using the Computed Columns method you can fill data as you like.

Lets make an example for it. Assuming you have a database named SampleDatabase, write a query:

 

Use SampleDatabase;
GO
Create Table ComputedColumns
(
Quantity int NULL,
Cost money NULL,
Investment as (Quantity * Cost)
);

 

We're creating a table named ComputedColumns and setting 3 columns "Quantity", "Cost" and "Investment"

Because of the multiply of Quantity and Cost will lead us to Investment costs, it would be useful if we define Investment as variable storing the data of multiplication of these 2 variables.

Because if there's no variable defined for Investment, you won't be able to insert any datas manually. Its data will be calculated and recorded after you passed it.

 Lets see the results:

******** Added "2" in the Quantity Column ********

 

******** Added "1.000" in the Cost Column *******


 

******** You cant add any data into Investment column, so you passed ******

 


 

 

After this process, it automatically calculates the data as you can see.

 
Hope this helps

 

Tags: , ,

SQL Server 2008 R2

Canvas in HTML5

by Ibrahim Ersoy 2. September 2011 22:05

As you well know HTML5 has some new elements including the Canvas element. A Canvas is an object that displays graphics in it.


But for a drawing process, we'll need to use JavaScript. You can draw anything you want: arcs, shapes, images, text and much more.

In our example we'll be drawing a shape.

Since HTML5 is platform independent, you can display these codes on any system.

You don't actually need First-Class Web Editors for building HTML5 sites; you just need a HTML5-supported Web Browser and a NotePad application.

Alright then let's start. First open a new NotePad application. And write the following code:

 

<!DOCTYPE html>
<html>
<head>
<title>Canvas in HTML 5</title>
<script type="text/javascript">
function load_canvas() {
}
</script>
</head>
<body onload="load_canvas()">
<h1>Canvas Example</h1>
<canvas id="cnv1" width="500" height="500">
</canvas>
</body>
</html>



What we have added here is a Javascript function that will run after page loaded.

And then we have added a canvas element with an id, width and height.

These parameters are needed while using a canvas.

So let's keep going. Create 2 variables inside the load_canvas function now:

 

var canvas = document.getElementById('cnv1');
var canvas1 = canvas.getContext('2d');


We'll be using these variables to access canvas elements from Javascript calls. As you can see above we have accessed the cnv1 object which we have set the "id" value in Canvas element.

Now add these codes after the codes above:

canvas1.fillStyle = "rgba(100, 200, 0, 1)";
canvas1.fillRect(30, 30, 75, 70);



Here we are creating a Rectangle object and filling it with a color as we have set it with rgba. These codes will display a rectangle with given width, height, x, y and rgba values in your canvas.

Full Code:

 

 

 

<!DOCTYPE html>

<html>
<head>
<title>Canvas in HTML 5</title>
<script type="text/javascript">
function load_canvas() {
var canvas = document.getElementById('cnv1');
var canvas1 = canvas.getContext('2d');
canvas1.fillStyle = "rgba(100, 200, 0, 1)";
canvas1.fillRect(30, 30, 75, 70);
}
</script>
</head>
<body onload="load_canvas()">
<h1>Canvas Example</h1>
<canvas id="cnv1" width="500" height="500">
</canvas>
</body>
</html>

 

Now save it as .html and view it in a HTML5 Supported Web Browser.



You'll get a similar view:

 

 

 

But before that if you are using IE9 just like me,you'll be receiving this message before it can run:

 

 

You'll need to Allow Blocked content.

We'll be talking more about Canvas in the following articles.

Tags: ,

HTML 5

Design Patterns: Abstract Factory

by Ibrahim Ersoy 29. August 2011 00:31

Abstract Factory pattern is used for creating relational object groups which are defined as Interfaces.

The reason why we would need an Abstract Factory is its being used while creating object for the same Class Group.While hiding the other classes,we're achieving our goals here.If we're to work with lots of Class Groups at the same time,then it would be best if we've used Abstract Factory Design Pattern.


Each object is defined as an interface.Lets make a simple demo.In our simple demo we will use Car Types.

 

What kind of Car are there?

Sports,Mini...etc I think 2 of them are enough.

 

I will be using a .NET Console Project using C#. It doesnt matter which architecture you use.Design Patterns are archi-free can be applied in any languages that supports Interfaces and moreover OOP.

 

Assuming you've already created a new Console project in c#



1) Create a new Interface named "Car" that takes a string parameter.

 

public interface Car
{
   string getCarType();
}

 


2) Create 2 Car Type Classes(SportsCar & MiniCar) that implements our Car Interface and returns string as result:

 

public class SportsCar : Car
{
     public string getCarType()
     {
         return "A Sports Car!";
     }
}


public class MiniCar : Car
{
     public string getCarType()
     {
         return "A Mini Car!";
     }
}



3) Create your AbstractFactory interface for implementing.

 

public interface AbstractFactory
{
    Car getSportCars();
    Car getMiniCars();
}

 

 

4) Finally implement this interface in your Program class using:

 

class Program : AbstractFactory

 

After implementation, the methods used inside this interface will be added automatically:

 

 

public Car getSportCars()
{
     return new SportsCar();
}


public Car getMiniCars()
{
     return new MiniCar();
}

 

 

5) And finally call your Cars inside a Main function:

 

static void Main(string[] args)
{
      SportsCar car = new SportsCar();
      Console.WriteLine(car.getCarType());

      MiniCar car2 = new MiniCar();
      Console.WriteLine(car2.getCarType());

      Console.ReadLine();
}

 

 

 

And then run your project.You will see a similar output:

 

 

 

Full Source Code:

 

using System;
using System.Collections.Generic;
using System.Text;

namespace ConsoleApplication1
{
    class Program : AbstractFactory
    {
        static void Main(string[] args)
        {
            SportsCar car = new SportsCar();
            Console.WriteLine(car.getCarType());

            MiniCar car2 = new MiniCar();
            Console.WriteLine(car2.getCarType());

            Console.ReadLine();
        }


        public Car getSportCars()
        {
            return new SportsCar();
        }

        public Car getMiniCars()
        {
            return new MiniCar();
        }
    }
    

    public interface AbstractFactory
    {
        Car getSportCars();
        Car getMiniCars();
    }

    
    public interface Car
    {
        string getCarType();
    }

    
    public class SportsCar : Car
    {
        public string getCarType()
        {
            return "A Sports Car!";
        }
    }


    public class MiniCar : Car
    {
        public string getCarType()
        {
            return "A Mini Car!";
        }
    }
    
}

 





Tags: ,

Design Patterns

Design Patterns: An Introduction

by Ibrahim Ersoy 28. August 2011 23:08

People keep using & using this term very often.The purpose for me writing this article is about telling you what a Design Pattern is and what its not!

 

In our projects whether its work-related or hobby,we'd like to build re-usable systems.These systems are built as a result of working hard lots of hours,days,weeks,months or years perhaps.The experience we had all these years are being well-planned and well put together in this system.And this system is called "Design Patterns".

* They're the result of experience we'd in our projects in all these years.
* They're re-usable!


While development process goes on,we work hard on creating a flexible architecture.Meaning,it shouldnt take us much time for maintenance and further developments.

There's a word explains why we'd want to use it: Using a simple Design Pattern is always better than not using it!


The Patterns you'll use,do have names  and categorized.


What are They?



Creational Patterns:

Abstract Factory
Builder
Factory Method
Prototype
Singleton


Structural  Patterns:

Adapter
Bridge
Facade
Decorator
Composite
Flyweight
Proxy


Behavioral Patterns:

Command
Memento
Strategy
Iterator
State
Chain Of Responsibility
Mediator
Observer
Template Method
Visitor 

 

I will one by one explain each of these Design Patterns in our next article.

Tags:

Design Patterns

New Blog

by Ibrahim Ersoy 11. March 2011 19:15

I know.I change my website constantly,the links you're looking for are deleted and you cant access them.But i hope this will be the last time.

I do hope you like my blog and stay reading the articles and hints about my experiments.

Cheers!

Tags:

Announcements