Using putty and ssh keys in windows

Posted on November 23, 2011

first of all download Putty 

1) Extract archive

2) run “putty gen”

3) select SSH-2 RSA in parameters

4) set number of bits to 2048

5) press generate buttun

6) type Key Comment/passphrase

7) save  public (*.pub) and private keys(*.ppk) to file

8) close puttygen

9) login to linux server by sftp

10) put public key  ( put id_rsa.pub /tmp/id_rsa.pub )

11) add our public key to authorized keys

ssh-keygen -i -f /tmp/id_rsa.pub >> /root/.ssh/authorized_keys

12) run pageant

13) right click in system tree on pageant icon

14) select “add key”

15) select generated *.ppk file

16) Run putty and logon  2 server …

 

Share

EF 4.1 – 4.2 “Code First” Perfomance Tip

Posted on October 28, 2011

EF always track entity and changes, but sometime if you need add/remove bulk records you may want temporary disable this tracking.

Example

db.Configuration.AutoDetectChangesEnabled = false;
foreach (var item in list)
{
db.Table.Add(item);
}
db.SaveChanges;
db.Configuration.AutoDetectChangesEnabled = true;

Share

Visual Studio 2010 SP1 how to add CSS 3 validation

Posted on September 16, 2011

I assume that you are using a x64 Windows:
[optional]Copy the file CSS21.xml to CSS30.xml in the following directory:
C:\Program Files (x86)\Microsoft Visual Studio 10.0\Common7\Packages\1033\schemas\CSS\
Open the Registry Editor and navigate to the following key:
HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Microsoft\VisualStudio\10.0\Packages\{A764E895-518D-11d2-9A89-00C04F79EFC3}\Schemas

Add a new key named Schema 5.

Under the key Schema 5

add a new string value named File and set the value to css30.xml

Under the key Schema 5 add a new string value named Friendly Name and set the value to CSS 3.0

Start Visual Studio 2010 and open a CSS file and you will see a new entry in the list dropdown list named “CSS 3.0

Share

MVC3 + EF CodeFirst + Facebook Authentication (Oauth) Part 1

Posted on September 13, 2011

MVC3 + EF CodeFirst +
Facebook Authentication (Oauth) Part 1

Lets mix
all together in one project

First step
create new MVC3 project

Create new MVC3 project

Next step -
selecting project type , creating test project (if you needed)

Download packages

I prefer
new Razor View Engine with HTML5 semantic markup.

For next
step I will use Nuget to install some
package to project

List of
package

1) http://nuget.org/List/Packages/EntityFramework/4.1.10715.0

2) http://nuget.org/List/Packages/jQuery/1.6.3

3) http://nuget.org/List/Packages/Facebook/5.2.1.0

4) http://nuget.org/List/Packages/FacebookWeb/5.2.1.0

5) http://nuget.org/List/Packages/FacebookWebMvc/5.2.1.0

 

Installing codefirstmembership

Now we need to install codefirstmembership

Go to http://codefirstmembership.codeplex.com/releases/61794/download/212575
and download latest version.

Copy
this source code (Code and Data directories) to your MVC3 application

Delete
default connection string from Web.Config

Replace
Web.Config values for default Membership, Profile and Role with this:

<membership defaultProvider=”CodeFirstMembershipProvider”>

<providers>

<clear />

<add name=”CodeFirstMembershipProvider” type=”CodeFirstMembershipDemo.CodeFirstMembershipProvider” connectionStringName=”CodeFirstContext” applicationName=”/” />

</providers>

</membership>

 

<profile enabled=”false”>

<providers>

<clear />

</providers>

</profile>

 

<roleManager enabled=”true” defaultProvider=”CodeFirstRoleProvider”>

<providers>

<clear />

<add name=”CodeFirstRoleProvider” type=”CodeFirstMembershipDemo.CodeFirstRoleProvider” connectionStringName=”CodeFirstContext” applicationName=”/” />

<add applicationName=”/” name=”AspNetWindowsTokenRoleProvider” type=”System.Web.Security.WindowsTokenRoleProvider” />

</providers>

</roleManager>

Add this to your Global.asax page in the Application_Start

protected
void Application_Start()

{

 

 

Database.DefaultConnectionFactory
= new SqlCeConnectionFactory(“System.Data.SqlServerCe.4.0″);

Database.SetInitializer(new CodeFirstContextInit());

//’Used to
preinitialize database, remove on production

var
Context = new CodeFirstContext();

Context.Users.FirstOrDefault();

}

*
Open AccountController
and replace LogOn and LogOff methods with this:

[HttpPost()]

public ActionResult LogOn(LogOnModel model, string returnUrl)

{

if
(ModelState.IsValid)

{

if
(CodeFirstSecurity.Login(model.UserName, model.Password, model.RememberMe))

{

if
(!string.IsNullOrEmpty(returnUrl) &&
Url.IsLocalUrl(returnUrl))

{

return Redirect(returnUrl);

}

else

{

return RedirectToAction(“Index”,
“Home”);

}

}

else

{

ModelState.AddModelError(“”, “The
user name or password provided is incorrect.”);

}

}

// If we
got this far, something failed, redisplay form

return
View(model);

}

public ActionResult LogOff()

{

CodeFirstSecurity.Logout();

return
RedirectToAction(“Index”, “Home”);

}

Try logging in with: Username: “Demo
Password: “Demo” or with Email: “demo@demo.com
(password is case-sensitive)

Some additional fix

1)
Replace
CodeFirstMembershipDemoSharp with solution name

2)
Remove
using System.Data.Entity.Database; from CodeFirstContextInit.cs

3)
Add using
System.Data.Entity;

Facebook

Now we move to Facebook

1.
Create
your application on Facebook. You can do so here: http://www.facebook.com/developers/createapp.php

Description: image

2.
We
have to set a few settings on our newly created Facebook Application. First,
lets set the Site Url in the Web Site tab. Set the site url to http://localhost:3434/.
After you have entered the information click save changes.

Description: image

3.
After
you save the changes you will be take to the app info page. Leave this open as
we will need some of the settings later.

4.
We
also need to set our application so that it runs on the same port every time.
So lets set our app to run on port 3434 (same as we already configured in the
Facebook Application settings). I am using IIS Express with Visual Studio 2010
SP1. I would highly recommend using IIS Express yourself rather than Visual
Studio Development server because there are some issues and difficulties. See
below how to set the port in IIS Express.

Description: image

5.
We
now need to edit a few of our web config settings. So open your web.config file
and find the section called facebookSettings. It will most likely be at the
very bottom of you config file.

<facebookSettings appId=”{app id}” appSecret=”{app secret}” />

6.
From
the Facebook Application info page you had open on step 3 find your App ID and
App Secret. Set these settings in your web.config file as shown.

<facebookSettings appId=”134035780002122″ appSecret=”a7adde41a7fd6228b656db70e0ba9d7c” />

To be continue (Extending Code first user, Autorisation Action etc)

Share

LinkRobo – SEO WordPress plugin

Posted on August 06, 2011

WordPress

Requires at least: 2.8.6
Tested up to: 3.2.1
Stable tag: 1.0

LinkRobo turns Keywords into SEO links. It helps create a successful website SEO promotion campaign at your own blog.


If you have good Blog (with good content) and want to promote some good sites of yours/your clients this plugin is for you. LinkRobo do all job for you. You can input Urls(of your clients) and some keywords LinkRobo use for each url. LinkRobo turns such Keywords in your posts into SEO links. It has Monitor page and some Settings

Installation

1. Make sure you have already installed WordPress 2.8.6 or above.

2. Unzip the LinkRobo package.

3. Upload the linkrobo folder into wp-content/plugins.

4. Log in to your WordPress admin and point your browser to “Plugins” page.

5. Activate LinkRobo plugin.

6. Point your browser to “Settings > LinkBot Settings”, fill and save the settings.

7. Once everything is installed, you can visit “Tools > LinkBot Monitor”.

Download

linkrobo-1.0

Donate

Please donate to keep this plugin FREE.

If you find this plugin useful to you, please consider making a small donation to help contribute to my time invested and to further development.

Thanks for your kind support!

Share

mysql .net connector error

Posted on August 05, 2011

Recently i use .net sql connctor for mysql ver 6.4.3   …

I describe some bugs i was faced  with

1) Input string was not in correct format

show up wen you rty make a connecton to server 

Promblem wit user locale (ru-ru for example)

Fix : change locale to  EN-US . But someone need to fix the source (im lazy to do this)

the same here http://bugs.mysql.com/bug.php?id=61797  this bug  

Like an option internets sugest downgrade to  6,3,7

http://dev.mysql.com/downloads/connector/net/6.3.html#downloads

After downgrading we get a “new” bug with incorrect SQL generation in EF

 

are you still using MySQL ?   

 PS

*1) Fixed in 6.2.6, 6.3.8 and 6.4.4+. 

Share

Download (free): Bulk Backlink checker, Google, Yahoo. Super fast!

Posted on July 13, 2011

Webmasters and SEO, The Bulk Backlink Checker allows you to analyse the Backlink info from Google, Yahoo for unlimited URLs at one time. It’s a fast way to bulk check how many backlinks point to a domain or website.

Check backlinks – inlinks, inbound links
Check referring domain counts
URLs : unlimited

License : Freeware

Minimal System Requirements:

OS Windows (XP/Vista/7/Server 2003-2008)
.NET 4.0
CPU 1GHz
RAM 512Mb

Release Notes
v1.0beta
+ Import CSV from SnapNames.com
+ add filter

Download:UDRequester-1.0beta

Share

Windows Phone SDK 7.1 Public Beta 2 release

Posted on June 30, 2011

 

 

29.06.2011 was released wp7.1 sdk Beta2.
The Windows Phone SDK 7.1 Beta 2 makes significant strides forward, and enables you to build many classes of applications that were not previously possible.

The following lists what’s new in the Windows Phone SDK:

Visual Basic Support

Visual Basic is now available for both Silverlight and XNA Framework applications. Visual Basic is fully integrated into the Windows Phone SDK 7.1 Beta 2; you do not need to install it separately.

Conceptual documentation: Most code examples in the documentation now appear in both C# and Visual Basic

Advertising

The Microsoft Advertising SDK for Windows Phone enables you to monetize your apps and games by including ads from Microsoft Advertising. The Advertising SDK is now fully integrated into the Windows Phone SDK 7.1 Beta 2; you do not need to install it separately.

Conceptual documentation: Advertising in Windows Phone Applications

Multi-targeting and App Compatibility

You can use the Windows Phone SDK 7.1 Beta 2 to create Silverlight® and XNA Framework projects that target either Windows Phone OS 7.1 or Windows Phone OS 7.0. When you create a new project, you are prompted to select the version that you want to target. You can also upgrade existing Windows Phone OS 7.0 projects to take advantage of the new Windows Phone OS 7.1 features.

All your apps and games that work on Windows Phone OS 7.0 phones will continue to work seamlessly on Windows Phone OS 7.1 phones.

Device Status

The Windows Phone SDK 7.1 Beta 2 now gives you expanded programmatic access to a user’s Windows Phone device through the DeviceStatus class. You can now determine whether the device is using the battery or external power, whether a keyboard is available or deployed, the device manufacturer, and more.

Conceptual documentation: Device Status for Windows Phone

Managed API documentation: Microsoft.Phone.Info

Isolated Storage Explorer

The Windows Phone SDK 7.1 Beta 2 now includes a command line tool that enables you to list, copy, and replace files and directories in the isolated storage.

Isolated storage enables managed applications to create and maintain local storage. Isolated storage in Windows Phone is similar to isolated storage in Silverlight. For a Windows Phone application, all I/O operations are restricted to isolated storage and do not have direct access to the underlying operating system file system or to the isolated storage of other applications. This improves security and reduces chances of unauthorized access and data corruption.

Launchers and Choosers

The Windows Phone SDK 7.1 Beta 2 introduces several new Launchers and Choosers. From your applications, you can now choose an address, invite players to a game session, or save a ringtone. You can also show a location on a map at a preset zoom level, or show directions between two points on a Bing map.

The following are the new Launchers and Choosers:

  • Address Chooser Task
  • Bing Maps Task
  • Bing Maps Directions Task
  • Game Invite Task
  • Save Contact Task
  • Save Ringtone Task
  • Share Link Task
  • Share Status Task

Contacts and Calendar

The Windows Phone SDK 7.1 Beta 2 now gives you read-only access to the user’s contacts and calendar data. You can now differentiate your applications by querying and interacting with the user’s data in ways such as letting the user choose from a list of their contacts and sending them emails, searching for contacts’ birthdays, and others.

Encrypted Credential Store

The Windows Phone SDK 7.1 Beta 2 now provides access to a set of cryptography APIs. For applications that require login credentials, these APIs enable you to store the credentials in an encrypted way. Now your users do not have to log in anew each time they use your application.

Camera

The Windows Phone SDK 7.1 Beta 2 now gives you programmatic access to the camera on Windows Phone devices, including real-time access to raw frames. This enables you to create scanning and augmented reality applications. You can also access the flash and adjust the focus in your applications.

OData Client

The Open Data Protocol (OData) is an open web protocol for querying and updating data. The protocol allows for a consumer to query a datasource over the HTTP protocol and get the result back in formats like Atom, JSON or plain XML, including pagination, ordering or filtering of the data.

The Windows Phone SDK 7.1 Beta 2 now include the Add Service Reference dialog that enables you to generate a client proxy class. You can also use LINQ queries to access OData resources, and perform client authentication to secure OData services with a login ID and password. There is also improved performance when saving client state.

You can download SDK 7.1 Beta 2 from here

 

 

Share

How to generate C# Class from XSD schema

Posted on June 30, 2011

 

 

Lets take our XSD schema file (from previous post)

We need a little console tool called: “XML Schema Definition Tool” (Xsd.exe).
in my case location was “C:\Program Files (x86)\Microsoft SDKs\Windows\v7.0A\Bin”
or
You may load link from start menu called “Visual Studio x64 Win64 Command Prompt 2010″ and all needed enviroments variable will be loaded for you. Left only type “xsd params”
We need only few console parameters for generation

/o —Specifies the directory for output files. This argument can appear only once. The default is the current directory
/c — Generates classes that correspond to the specified schema. To read XML data into the object, use the System.XML.Serialization.XMLSerializer.Deserializer method.
/f — Generate fields instead of properties.

type “xsd schema.xsd /c” and result is

 

This is all now we can add Station list to our app as resource/ In next post i show you how to load xml from an embeded resource

//------------------------------------------------------------------------------
//
// This code was generated by a tool.
// Runtime Version:4.0.30319.431
//
// Changes to this file may cause incorrect behavior and will be lost if
// the code is regenerated.
//
//------------------------------------------------------------------------------
using System.Xml.Serialization;
//
// This source code was auto-generated by xsd, Version=4.0.30319.1.
//
///
[System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "4.0.30319.1")]
[System.SerializableAttribute()]
[System.Diagnostics.DebuggerStepThroughAttribute()]
[System.ComponentModel.DesignerCategoryAttribute("code")]
[System.Xml.Serialization.XmlTypeAttribute(AnonymousType=true)]
[System.Xml.Serialization.XmlRootAttribute(Namespace="", IsNullable=false)]
public partial class StationList {
///
[System.Xml.Serialization.XmlElementAttribute("Station")]
public StationListStation[] Station;
}
///
[System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "4.0.30319.1")]
[System.SerializableAttribute()]
[System.Diagnostics.DebuggerStepThroughAttribute()]
[System.ComponentModel.DesignerCategoryAttribute("code")]
[System.Xml.Serialization.XmlTypeAttribute(AnonymousType=true)]
public partial class StationListStation {
///
public string name;
///
[System.Xml.Serialization.XmlElementAttribute(DataType="anyURI")]
public string url;
///
public string freq;
}



let’s make a few coding style improvements

using System.Xml.Serialization;
using System.Collections.Generic;
///
[System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "4.0.30319.1")]
[System.SerializableAttribute]
[System.Diagnostics.DebuggerStepThroughAttribute]
[System.ComponentModel.DesignerCategoryAttribute("code")]
[XmlTypeAttribute(AnonymousType = true)]
[XmlRootAttribute(Namespace = "", IsNullable = false, DataType = "StationList")]
public partial class StationList
{
///
[XmlElementAttribute("Station", Form = System.Xml.Schema.XmlSchemaForm.Unqualified)]
public List Stations { get; set; }
}
///
[System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "4.0.30319.1")]
[System.SerializableAttribute]
[System.Diagnostics.DebuggerStepThroughAttribute]
[System.ComponentModel.DesignerCategoryAttribute("code")]
[XmlTypeAttribute(AnonymousType = true, TypeName = "StationListStation")]
public partial class Station
{
///
[XmlElementAttribute(ElementName = "name",Form = System.Xml.Schema.XmlSchemaForm.Unqualified)]
public string Name { get; set; }
///
[XmlElementAttribute(ElementName = "url", Form = System.Xml.Schema.XmlSchemaForm.Unqualified, DataType = "anyURI")]
public string Url { get; set; }
///
[XmlElementAttribute(ElementName = "freq", Form = System.Xml.Schema.XmlSchemaForm.Unqualified)]
public string Freq { get; set; }
}

 

This all . we successfully add Station List class to app

In next post i show you how load resource from file.

Share

Mobile Web Development -WordPress theme based on jQTouch

Posted on June 17, 2011

Once we realized that we needed external help for our iPhone app we select a web based solution :
WordPress + jQuery + jQTouch = WordPress iPhone Theme

In few hours I’ve create a custom menu in wordpress from help pages Appearance => Menus – Menu_help

This is specification :

Attach JqTouch: http://www.jqtouch.com/preview/demos/main/#home

Main page – root menu page. see. «Appearance» – «Menu», there i’ve created a sample structure with root page “Iphone help”

Page title in template header same as menu.

Under title – list of children pages. Numbers from right – count of sub menu items in section.
Under sub menu list , at page bottom – current page content (without title). Content showing at same style like phrase «Add this page to your home screen…» in template.

Naturally, if there is click on sub menu item we show same page : header , sub menu list, page content. an at the top right corner button @back@, button title is – title of parent page.

There is only 4 files without jQTouch in complected theme

functions.php (registred Menu_help)

<?php<br />
if ( function_exists( 'register_nav_menu' ) ) {<br />
	register_nav_menu( 'Menu_help', 'Menu Help' );<br />
}<br />
?>

header.php

<!doctype html><br />
<html><br />
    <head><br />
        <meta charset="<?php bloginfo( 'charset' ); ?>" /><br />
        <title><?php wp_title();?></title></p>
<style type="text/css" media="screen">@import "<?php bloginfo('stylesheet_directory'); ?>/jqtouch/jqtouch.css";</style>
<style type="text/css" media="screen">@import "<?php bloginfo('stylesheet_directory'); ?>/themes/jqt/theme.css";</style>
<p>        <script src="<?php bloginfo('stylesheet_directory'); ?>/jqtouch/jquery-1.4.2.min.js" type="text/javascript" charset="<?php bloginfo( 'charset' ); ?>"></script><br />
        <script src="<?php bloginfo('stylesheet_directory'); ?>/jqtouch/jqtouch.js" type="application/x-javascript" charset="<?php bloginfo( 'charset' ); ?>"></script><br />
        <script type="text/javascript" charset="<?php bloginfo( 'charset' ); ?>">
            var jQT = new $.jQTouch({
                icon: 'jqtouch.png',
                addGlossToIcon: false,
                startupScreen: 'jqt_startup.png',
                statusBar: 'black',
                preloadImages: [
                    '<?php bloginfo('stylesheet_directory'); ?>/themes/jqt/img/back_button.png',
                    '<?php bloginfo('stylesheet_directory'); ?>/themes/jqt/img/back_button_clicked.png',
                    '<?php bloginfo('stylesheet_directory'); ?>/themes/jqt/img/button_clicked.png',
                    '<?php bloginfo('stylesheet_directory'); ?>/themes/jqt/img/grayButton.png',
                    '<?php bloginfo('stylesheet_directory'); ?>/themes/jqt/img/whiteButton.png',
                    '<?php bloginfo('stylesheet_directory'); ?>/themes/jqt/img/loading.gif'
                    ]
            });</p>
<p>    </script></p>
<style type="text/css" media="screen">
            body.fullscreen #home .info {
                display: none;
            }
            .info p {
            	text-align: justify;
            }
    </style>
<p>    </head><br />
<body>

index.php

<?php get_header();?><br />
<?php<br />
$menu_name = 'Menu_help';<br />
if ( ( $locations = get_nav_menu_locations() )  && isset( $locations[ $menu_name ] ) ) {<br />
	$menu = wp_get_nav_menu_object( $locations[ $menu_name ] );<br />
	$menu_items = wp_get_nav_menu_items($menu->term_id);<br />
	$menu_items1 = array();</p>
<p>	foreach ( (array) $menu_items as $key => $menu_item ) {<br />
		foreach ( (array) $menu_items as $dkey => $dmenu_item ) {<br />
			   if ($dmenu_item->menu_item_parent==$menu_item->ID) $menu_item->children[] = $dmenu_item;<br />
		}<br />
	$menu_items1[$menu_item->ID] = $menu_item;<br />
	}<br />
	$menu_items = $menu_items1;</p>
<p>	foreach ( (array) $menu_items as $key => $menu_item ) {<br />
		?></p>
<div id="<?=$menu_item->ID?>" <?php echo (($menu_item->menu_item_parent==0) ? "class=\"current\"" : "")?>></p>
<div class="toolbar">
<h1><?=$menu_item->title?></h1>
<p>                <?php if ($menu_item->menu_item_parent>0) :? ><a href="#" class="back"><?=$menu_items[$menu_item->menu_item_parent]->title?></a><?php endif;?>
            </div>
<ul class="rounded">
            <?php<br />
            foreach ( (array) $menu_item->children as $dkey => $dmenu_item ) { ?></p>
<li class="arrow"><a href="#<?=$dmenu_item->ID?>"><?=$dmenu_item->title?></a> <?php if (count($dmenu_item->children)>0) :? ><small class="counter"><?=count($dmenu_item->children)?></small><?php endif;?></li>
<p>            <?php<br />
            }<br />
            ?>
            </ul>
<p>            <?php<br />
			if ($menu_item->object=="page" || $menu_item->object=="post") {<br />
			if ($menu_item->object=="page") $post = get_page( $menu_item->object_id );<br />
			elseif ($menu_item->object=="post") $post = get_post( $menu_item->object_id );</p>
<p>			$post->post_content = apply_filters('the_content', $post->post_content);<br />
			$post->post_content = str_replace(']]>', ']]>', $post->post_content);</p>
<p>			if (!empty($post->post_content)) {<br />
			?></p>
<div class="info">
            <?=$post->post_content?>
            </div>
<p>			<?php<br />
			}}<br />
            ?>
        </div>
<p>        <?php<br />
	}</p>
<p>}</p>
<p>?></p>
<p><?php get_footer(); ?>

footer.php

<?php wp_footer();?><br />
</body><br />
</html>

Share

Retrive radio station list

Posted on June 16, 2011

First of all we need to get an list of radiostation. There is a lot of services that already collect this information for us. For me it’s :

http://www.moskva.fm/stations for Moscow radio station

and
http://www.piter.fm/stations for Saint Petersburg radio station
Let’s parse them into this format (schema below)
<?xml version="1.0" encoding="UTF-8"?>
<!-- edited with XMLSpy v2008 sp1 (http://www.altova.com) by LolitaRB (EMBRACE) -->
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" elementFormDefault="qualified" attributeFormDefault="unqualified">
	<xs:element name="StationList">
		<xs:complexType>
			<xs:sequence>
				<xs:element name="Station" maxOccurs="unbounded">
					<xs:complexType>
						<xs:sequence>
							<xs:element name="name" type="xs:string"/>
							<xs:element name="url" type="xs:anyURI"/>
							<xs:element name="freq" type="xs:string"/>
						</xs:sequence>
					</xs:complexType>
				</xs:element>
			</xs:sequence>
		</xs:complexType>
	</xs:element>
</xs:schema>

In each url the number is station id. For example http://www.moskva.fm/play/4001/translation 4001 it’s ID

As result we gat an list of station in XML format next you can see part of it:

<StationList>
  <Station>
    <name>Relax FM</name>
    <url>http://www.moskva.fm/play/4014/translation</url>
    <freq>90.8 FM</freq>
  </Station>
  <Station>
    <name>DFM</name>
    <url>http://www.moskva.fm/play/2002/translation</url>
    <freq>101.2 FM</freq>
  </Station>
<!-- ... !-->
</StationList>

In the next post i’ll show you how to generate a class from xsd schema

Share

Google AdSense Site ban , how to fix it

Posted on June 12, 2011

If Google chrome dev tools show you an error “Unable to post message to http://googleads.g.doubleclick.net. Recipient has origin http://www.mypersonalgetaway.com. ” in most case this means that you site was banned by google.

But if you re-register domain which was previously banned by google AdSence your new ads will also be banned…

But i found a solution how to fix it *if you have an IssueID – you need simple fill form for re-check your site (it take ~48 h) Policy Violation Appeal

But if you haven’t any IssueID from google there is only one way:

You need to request a Policy Clarification

Share

Tools we needed

Posted on June 08, 2011

FYI Windows Phone Developer Tools includes :
  • Visual Studio 2010 Express for Windows Phone
  • Windows Phone Emulator
  • Silverlight for Windows Phone
  • XNA Game Studio 4.0
  • Expression Blend 4 for Windows Phone
Tool name Cost Description link to download
Visual Studio 2010 Express for Windows Phonen free Free tools for developers building applications for Windows Phone using .NET, Silverlight and XNA.

Supported Operating Systems:
Windows Vista (x86 and x64) with Service Pack 2 – all editions except Starter Edition
Windows 7 (x86 and x64) – all editions except Starter Edition
Windows Phone Emulator requires a DirectX 10 capable graphics card with a WDDM 1.1 driver
Download for free
Windows Phone Emulator free Windows Phone Emulator is a desktop application that emulates a Windows Phone 7 or a Windows Phone 7.1 device. It provides a virtualized environment in which you can develop, debug, and test Windows Phone applications. It also provides an isolated environment for early application prototypes. By using the emulator, you can proceed through the common application development scenarios without a physical device. This can reduce the cost of developing applications for Windows Phone.

The Windows Phone Emulator is designed to provide comparable performance to an actual device, and to meet the peripheral specifications typically required for application development. However, before you publish your applications to the Windows Phone Marketplace, you should test your application on an actual device.
Silverlight for Windows Phone free Silverlight is the application development platform for Windows Phone 7 and 7.1..

Silverlight for Windows Phone supports core Silverlight capabilities in managed .NET code with XAML including:
High quality video and audio using a wide range of codecs, DRM and IIS Smooth Streaming
Deep Zoom for enhanced reading and photo browsing experiences
Vector and Bitmap Graphics and animation
Silverlight can also access the unique capabilities of the phone including:
  • Hardware acceleration for video and graphics
  • Accelerometer for motion sensing
  • Multi-touch
  • Camera and microphone
  • Location awareness
  • Push notifications
  • Native phone functionality
Silverlight can also utilize the XNA Framework for Audio capture and playback, Media Library Access, and even accessing Xbox LIVE.
XNA Game Studio 4.0 free
XNA Game Studio 4.0 is a programming environment that allows you to use Visual Studio 2010 to create games for Windows Phone, the Xbox 360 console, and Windows-based computers. XNA Game Studio 4.0 includes the XNA Framework 4.0, which is a set of managed libraries designed for game development based on Microsoft .NET Framework 4.
Expression Blend 4 for Windows Phone free
Expression Blend, Visual Studio, Silverlight and .NET provide the most compelling and seamless design and development workflow on the market today. Rapidly iterate on both the user experience and core architecture, evolving your ideas quickly from initial prototype through to completed project.
Key components of Expression Blend, including Behaviors, Visual State Manager, transition effects, and SketchFlow (Expression Blend 4 includes SketchFlow in Expression Studio 4 Ultimate product only), coupled with the speed and flexibility of this modern workflow challenge you to push boundaries and work beyond the limits of what you thought possible.
Share

What we are going to do…

Posted on May 31, 2011

Below you can see the concept idea of existing infrastracture that we would be using in our WP7 application.

WP7 Radio

  • FM Radio – this is almost~60 radio station  wich audio source would be used.
  • Media Database & Online Media Service – server that translate media content to network.
  • WP7 device – target client device.

So the idea is simple WP7 app that can stream radio from 60+ station.

But there is one additional feature  that i have mention   : possibility to “travel in time” . Later i will describe it.

 

Share

Hello world!

Posted on May 31, 2011

Whats this all about ?

It’s about Windows Phone 7 development. Especially  the new WP7.1 SDK (codename Mango).

My target is describe the process of creation of little Audio Streaming application. I will provide some code later.

 

Let’s START !

Share