2012-08-13

Productivity

Six people you should have on your side:

-The Investigator: Someone who pushes you, who makes you think. Who motivates you to get up and go, and try, and make things happen. You want to keep this person energized, and enthusiastic.
-The Cheerleader: This person is a huge fan, a strong supporter, and a rabid evangelist for you and your work. Work to make this person rewarded, to keep them engaged.
-The Doubter: This is the devil’s advocate, who asks the hard questions and sees problems before they arise. You need this person’s perspective.
-The Taskmaster: This is the loud and belligerent voice that demands you gets things done. This person is the steward of momentum, making sure deadlines are met and goals are reached.
-The Connector: This person can help you find new avenues and new allies. This person breaks through roadblocks into finds ways to make magic happen.
-The Example: This is your mentor, you hero, your North Star. This is the person who you seek to emulate.

Morning habits/ perfect morning:

-Self discipline.
-Sport.
-Planning.

Seven habits of effectivness:

-Be Proactive.
-Begin With The End In Mind/ visualization.
-Put First Things First/ organization.
-Think Win/Win.
-Seek First To Understand, Then To Be Understood.
-Synergize.
-Sharpen The Saw (re-energize, review, nutrition, reading...).

Twelve things to finish before noon:

-To make a work to-do list the day before.
-To get a full night's rest.
-To avoid hitting snooze.
-To exercise.
-To practice a morning ritual/ routine.
-To eat breakfast.
-To arrive at the office on time.
-To check in with their boss and/or employees.
-To tackle the big projects first.
-To avoid morning meetings.
-To allot time for following up on messages.
-To take a mid-morning break.

Fourteen Ways To Make Better Decisions And Strengthen Your Willpower:

-Decision-making power means that all of the small decisions add up quickly.
-Once you're mentally depleted, you're more likely to make trade-offs/ compromise.
-Your brain needs glucose in order to make good decisions.
-People spend three to four hours a day resisting desire.
-Develop routines.
-Time for sleep, eating and excercising.
-Women help decision making.
-Our unconscious plays a key role in helping us make good decisions, sleep on it.
-Delegate.
-Freedom, There's value to simply caving in and saying "yes" to the "wrong choices" once in a while.
-There's also power in deciding NOT to decide.
-It comes down to preparing for your moments of weakness -- because we're only human, after all/ be ready to fall.
-Let go with things that can overwhelm you.
-Just do it.


Fifteen Ways To Become More Powerful:


1.-Don't believe the myth that some people are born to lead and others aren't.
2.-Get over the idea that everyone needs to like you.
3.-Performance doesn't really matter.
4.-Help powerful people feel good about themselves.
5.-Build an effective power nertwork.
6.-Break the rules, especially early in your career.
7.-Get access to key resources.
8.-Do an honest self-assessment.
9.-Act the part before you've got the part.
10.-Be OK with conflict and showing anger.
11.-Don't be afraid to ask for advice.
12.-Carefully consider and construct your image.
13.-Just remeber there's a high price to pay for power.
14.-And in the end, everyone loses power.
15.-So what's keeping you from becoming powerful?

2012-03-29

MVVM

  • PRISM - Developed by Microsoft, targeting WPF, Silverlight, Windows Phone 7.
  • MVVM Toolkit
  • MVVM Foundation
  • MVVM light by Laurent Bugnion WPF, Silverlight, WP7.
  • Light MVVM
  • WPF Application Framework (WAF)
  • Simple MVVM WPF, Silverlight.
  • Caliburn - Caliburn implements a variety of UI patterns for solving real-world problems. Patterns that are enabled by the framework include MVC, MVP, Presentation Model (MVVM), Commands and Application Controller.
  • Caliburn Micro - A smaller version of Caliburn.
  • Silverlight.FX - Silverlight.FX is a light-weight application framework for building Rich Internet Applications with Silverlight 2.

2011-11-08

Microsoft SQL Server Migration Assistant

SQL Server Migration Assistant (SSMA)

The SSMA blog annouces the new version 5.3.

MySQL (SSMA for MySQL Client)

The SSMA for MySQL client consists of the program files that perform the following tasks:
  • Connect to a MySQL database.
  • Connect to an instance of SQL Server or SQL Azure.
  • Convert the MySQL database objects to the SQL Server or SQL Azure objects.
  • Load the objects into SQL Server or SQL Azure.
  • Migrate data to SQL Server or SQL Azure.

Prerequisites

SSMA for MySQL is designed to work with MySQL 4.1 or later versions and all editions of SQL Server 2005, SQL Server 2008, SQL Server “Denali” and SQL Azure.
Before you install SSMA, make sure that the computer meets the following requirements:
  • Windows XP SP2 or later versions, or Windows Server 2003 SP1 or later versions.
  • WinZip, or a similar utility, to extract files from a Zip file.
  • Microsoft Windows Installer 3.1 or a later version.
  • The Microsoft .NET Framework version 2.0 or a later version. The .NET Framework version 2.0 is available on the SQL Server product media. You can also obtain it from the .NET Framework Developer Center
  • MySQL ODBC 5.1 Driver and connectivity to the MySQL databases that you want to migrate. You can install the MySQL from the MySQL Web site
  • Connectivity to the instance of SQL Server / SQL Azure where you will be migrating database objects and data
  • In case of SQL Azure projects, Connectivity to the instance of SQL Azure where you will be migrating database objects and data.
  • 1 GB RAM recommended.

Installing SSMA for MySQL Client

SSMA is a Web download. To download the latest version, see the SQL Server Migration Tools product page
After you download the latest version, you must extract the installation files before you can install SSMA.
To install the SSMA client
  1. Extract all files from the SSMA compressed file
    If you are using WinZip, depending on the version that you have, you can either double-click the file, or right-click the file and select Extract All or Open in WinZip. Follow the instructions in the WinZip user interface to extract the files. If you are using another extraction utility, follow the directions for that utility.
  2. Double-click SSMA for MySQL n.Install.exe, where n is the build number.
  3. On the Welcome page, click Next.
    If you do not have the prerequisites installed, a message will appear indicating that you must first install the required components. Make sure that you have installed all the prerequisites before running the installation program again.
  4. Read the End User License Agreement. If you agree, select I accept the terms in the license agreement, and then click Next.
  5. Read the Usage Report Settings page, select or clear the feature reporting box, and then click Next.
  6. On the Choose Setup Type page, click Typical.
  7. Click Install.
Important
  1. SSMA for MySQL v5.1 product can be installed side by side (SxS) with older versions of SSMA Product (versions prior to SSMA for MySQL v5.0. SSMA for MySQL v5.0 has to be uninstalled before installing SSMA for MySQL v5.1).
  2. You can install the SSMA for MySQL v5.1 product successfully even though if there are any earlier versions of product already installed (SSMA for MySQL 2005 v4.2 or earlier/SSMA for MySQL 2008 v4.2 or earlier).
  3. Each of these SxS products can be uninstalled separately and are independent of each other.

The default installation location is C:\Program Files\Microsoft SQL Server Migration Assistant for MySQL.
On 64-bit Windows machine the product is installed in C:\Microsoft SQL Server Migration Assistant for MySQL.

Licensing SSMA

To use SSMA, you must download a registration key. To help you with the registration process, a License Key Required dialog box opens the first time that you start the SSMA program. Use the following instructions to download a license key and associate the key with SSMA.
To license SSMA
  1. Click Start, point to All Programs, point to Microsoft SQL Server Migration Assistant for MySQL, and then select Microsoft SQL Server Migration Assistant for MySQL.
  2. In the License Management dialog box, click the license registration page link.
  3. On the Sign In Web page, enter your Windows Live ID user name and password, and click Sign In.
    A Windows Live ID is a Hotmail e-mail address, MSN e-mail address, or Microsoft Passport account. If you do not have one of these accounts, you will have to create a new account. To create a new account, click the Sign up now button.
  4. On the SQL Server Migration Assistant for MySQL License Registration Web page, fill in at least the required fields, which are marked with a red asterisk, and then click Finish.
  5. In the File Download dialog box, click Save.
  6. In the Save As dialog box, locate the folder that is shown in the License Management dialog box, and then click Save.
    The default location is C:\Documents and Settings\user name\Application Data\Microsoft SQL Server Migration Assistant\MySQL.
  7. In the License Management dialog box, click Refresh License.

      2011-08-04

      MS Visual Studio

      Installation

      Install any version including the Express Edition.

      Service Pack

      Install the SP1.

      WebInstaller

      Install the WebInstaller platform.

      DirectX

      Check their web site.
      Install the runtime.
      Install the SDK.
      Install the Windows SDK.
      Install the Code Metrics.
      Install the Windows SDK for Windows 7 and .NET Framework 4 Version 7.1.
      Install FxCop 10.0 executing %Program Files%\Microsoft SDKs\Windows\v7.1\Bin\FXCop\FxCopSetup.exe

      Windows Phone 7

      Check their site.
      Install the Windows Phone SDK 7.1 beta 2.
      Install the Windows Phone Developer Tools 7.
      Install the Windows Phone Developer Tools 7 update.
      Install the Windows Phone Developer Tools 7 fix.
      Install the Windows Phone Developer Tools 7 XNA Game Studio 4.0.

      Windows Azure Toolkit for Windows Phone 7

      Check their site.
      Install the Silverlight Toolkit.
      Install the Windows Identity Foundation Runtime.
      Install the Visual Basic for Windows Phone Developer Tool RTW.

      Kinect

      Check their site.
      Read the README file.
      Install the Kinect for Windows SDK.
      Install the Kinect for Windows Developer Toolkit.
      Install the Kinect for Windows Runtime.
      Install the MS XNA Framework Redistributable 4.0.
      Install the Kinect for Windows Language pack.
      ------
      Install the Windows Speech Platform Runtime 10.2.
      Install the Windows Speech Platform SDK 10.2.
      Install the Kinect for Windows Language Pack 0.9.
      Install the Kinect Services for Robotics Developer Studio 2008 R3.
      Download the Kinect Programming Guide.

      Expression Blend

      Check their site.

      Mathematics

      Check their site.

      Robotics

      Check their site.

      Column limit

      Visual Studio 2010 and 2012
      1. Install Paul Harrington's Editor Guidelines extension for VS 2010 or VS 2012.
      2. Open the registry at:
        VS 2008: HKEY_CURRENT_USER\Software\Microsoft\VisualStudio\9.0\Text Editor  VS 2010: HKEY_CURRENT_USER\Software\Microsoft\VisualStudio\10.0\Text Editor
        VS 2012: HKEY_CURRENT_USER\Software\Microsoft\VisualStudio\11.0\Text Editor
        VS 2013: HKEY_CURRENT_USER\Software\Microsoft\VisualStudio\12.0\Text Editor
        and add a new string called Guides with the value RGB(100,100,100), 100. The first part specifies the color, while the other one (80) is the column the line will be displayed.



      2011-05-02

      About SFU Microsoft Windows Services for UNIX 3.5

      You can download and install it from their site.

      Subsystem for Unix-based Applications and Services for Unix (SFU/ SUA/ Interix Community)

      You can download and install it from their site.

      SUA 5.2 x64 (Windows 2003R2 x64)

      SUA 6.0 x64 (Windows Vista/2008 x64)

      SUA 6.1 x64 (Windows 7/2008R2 x64)


      Debian port

      About Interix

      http://technet.microsoft.com/en-ca/library/bb496474.aspx

      http://www.suacommunity.com/SUA.aspx

      http://www.suacommunity.com/dictionary/index.php


      Microsoft Windows Services for UNIX 3.5 (3.5)
      • 2004-01 SFU 3.5 en,ja for WinNT 5.0,5.1,5.2 i386
      Windows Server 2003 R2 (all editions) Subsystem for UNIX-based Applications (5.2)
      • 2005-12-06 WinNT 5.2 R2
      Windows Vista (Ultimate and Enterprise editions) Subsystem for UNIX-based Applications (6.0)
      • 2006-11-08 WinNT 6.0 (2007-01-30)
      Windows Server 2008 (all editions) Subsystem for UNIX-based Applications (6.0)
      • 2008-02-04 WinNT 6.0
      Subsystem for UNIX-based Applications in Microsoft Windows 7 and Windows Server 2008 R2 (6.1)
      • 2010-03-11 WinNT 6.1
      How to install

      Installing Interix Subsystem, Base Utilities and SDK from the Command Line

      Windows Services for UNIX version 3.0 uses Microsoft Installer for installation. As a result, you can install individual modules of the product from the command line. If previous components of Windows Services for UNIX have been installed, you must include these components in the addlocal parameter of the installation command line, separated by a comma (,). If you do not do so, these products are removed during the installation of Interix. If you install Interix SDK automatically, the Interix subsystem and the base utilities are automatically included in the installation.

      To install Interix from the command line:
      1. Log onto the Windows computer with an administrative level account.
      2. Open a command window. Click Start, click Run, type in cmd and click OK.
      3. Insert the Services for UNIX version 3.0 CD into the CD drive. (Drive D: for this example.)
      4. You can install various combinations of the Interix subsystem and interix SDX. These include:
        • From the command prompt, to install the Interix Subsystem and Base Utilities: msiexec /I D:\sfusetup.msi /qb addlocal="BaseUtils" [targetdir="install path"]
        • To install Base Utilities and the GNU Utilities: msiexec /I D:\sfusetup.msi /qb addlocal="GNUUtils" \ [targetdir="install path"]
        • To install Base Utilities, UNIX Perl and GNU Utilities: msiexec /I D:\sfusetup.msi /qb addlocal="GNUUtils,UNIXPerl" \ [targetdir="install path"]
        • To install the Interix SDK, including Base Utilitiesmsiexec /I D:\sfusetup.msi /qb addlocal="InterixSDK" [targetdir="install path"]
      5. To install the GNU SDK and GNU Utilities (includes Interix SDK and Base Utilities): msiexec /I D:\sfusetup.msi /qb addlocal="GNUSDKSDK,GNUUtils " \ [targetdir="install path"] 
      6. Default install path is "\SFU".Note:Services for UNIX should be installed in a directory without spaces in the path to prevent problems with some components of SFU. Microsoft recommends that you install SFU to the default directory.
      7. To include the Product Key as part of the command line, add pidkey="key" where "key" is the 25 character product key, without dashes. Note: If you are installing the base utilities with the /qb option, you will be required to choose whether you want to enable setuid behavior for Interix programs. (If you are using the /q option, setuid behavior will be disabled by default.) The choice you make will affect both system security and how certain Interix programs behave.

        According to the POSIX standard, a file has permissions that include bits to set a UID (setuid) and set a GID (setgid) when the file is executed. If either or both bits are set on a file, and a process executes that file, the process gains the UID or GID of the file. When used carefully, this mechanism allows a nonprivileged user to execute programs that run with the higher privileges of the file's owner or group. When used incorrectly, however, this can present security risks by allowing nonprivileged users to perform actions that should only be performed by an administrator. For this reason, Windows Services for UNIX Setup does not enable support for this mechanism by default.

        You should enable support for setuid behavior only if you are sure you will be running programs that require support for this behavior. Even if you do not enable support for setuid behavior when installing Windows Services for UNIX, you can enable it later.
      8. A reboot will be required. Note: If installing from a telnet prompt, where no GUI is available, or via a script, modify the command line by changing the /qb to /q. This will install without any user interaction at all. By default the setuid behavior will be disabled. See the install.htm on the Services for UNIX CD.

        Note: The addlocal parameter to msiexec show above is case and space sensitive. Installation will fail if the exact case above is not followed.

        Note: These options may also be installed from the Installation Wizard by selecting a custom installation.

      2011-04-29

      About EnableSuToRoot registry key for SUA

      User Account Control is enabled by default. When User Account Control is enabled, any application or task that impersonates another user who is a member of the Administrators group (by using the su, cron, or login utilities, setuid, any of the setuid or exec_asuser family of calls, as examples) always runs in the security context of a standard user account.
      Note
      When an application impersonates a standard user, it will have the complete security context of a standard user. For more information about standard users, see the Microsoft Web site topic "Developer Best Practices and Guidelines for Applications in a Least Privileged Environment," Introduction section (http://go.microsoft.com/fwlink/?LinkId=70243).
      With default settings, an application cannot impersonate the root user. You can control this behavior by modifying the registry key HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\SUA\EnableSuToRoot.



      How to modify the EnableSuToRoot registry key



      Important
      The Administrator account is disabled by default in Windows 7 and Windows Server 2008 R2 to help protect computers and data from access by unauthorized or malicious users, and it must be enabled for users to impersonate the root user or Administrator. Because the Administrator account must first be enabled to change the setting of the EnableSuToRoot registry key, the procedure to complete this task immediately follows. You must be a member of the Administrators group on the local computer to complete the following procedure.

      To enable the Administrator account

      1. Click Start, right-click Computer, and then click Manage.
      2. In the hierarchy pane of the Computer Management snap-in, open Local Users and Groups.
      3. Select Users.
      4. In the results pane, right-click Administrator, and then click Properties.
      5. Clear the check box for the Account is disabled option.
      6. Click OK.
      7. Close the Properties window, and then close the Computer Management snap-in.
      Perform the following steps to change the setting of the EnableSuToRoot registry key after you install Subsystem for UNIX-based Applications.

      To change the setting of the EnableSuToRoot registry key

      1. Click Start, click in the Start Search text box, and type regedit to open Registry Editor.
      2. In the hierarchy pane, open HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\SUA.
      3. In the results pane, double-click EnableSuToRoot.
      4. In the Value data box, enter 0 to disallow impersonation of the root user, or 1 to allow it.
        The default setting is 0.
      5. Click OK.
      6. Close Registry Editor; if prompted, save your changes.

      When the value of this key is set to 0 (the default setting), impersonation of the root user is disallowed. When the value is set to 1, impersonation of the root user is allowed. When an application impersonates the root user or Administrator account, the application has the administrative security context of the root (Administrator) user.

      Setuid and Administrative Privilege


      If users who are members of the Administrators group attempt to mark applications with the setuid attribute, they would succeed only if they are allowed to run applications and perform tasks in an administrative security context.
      The following is an example of how to mark the binary file /bin/regpwd, which is typically marked with the setuid attribute:
      1. Open a Korn shell (ksh) with elevated privilege as described in this topic.

      2. Type chmod +s /bin/regpwd and then press ENTER.

      3. Type exit to close the ksh session.

      Modify the number of connections

      Better to modify in order to allow other connection and virtualization of other machines as:
      HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Network\Connections\MaxNumFilters

      HTMLCode

      HTMLCode Content