Tip: Problems debugging the .Net Framework

0

I’ve recently developed a major infrastructure that deals with serialization/de-serialization of complex application documents. One of the main challenges I had, was handling document files from another application. Although both source and consumer application share a common business library, there were also app-specific types serialized along with everything else. So to be able to correctly interpret the data being serialized and be able to act on every step, I had to inevitably delve into the framework 4.0 source code, mainly the ObjectManager.

The problem: It came to my understanding that there are a number of issues developers face when setting up framework debugging, despite the usual guides. The thing is, the guides are written to allow you to delve into framework code, but you need to understand that it only works out of the box for a given framework build version. Most of the times there’s a version mismatch between the source code version you’ve downloaded from the Microsoft Reference Servers, and the .Net Framework assembly versions you have installed on your computer. They’re both 4.0 (or 2.0 for that matter), but the build version differs a lot. So symbol loading fails on VS due to this. There is simply no updated pdb for the version you have installed.

All this to say there is one reason that is probably the root of most of the problems: Windows Update. This little bugger automatically downloads and installs newer versions of .Net Framework 2.0/4.0 assemblies in the context of a Security Update or regular feature update. Unfortunately, Microsoft doesn’t update the Symbol Servers at the same time, if ever, so when VS tries to find a pdb file for a given Framework assembly either locally or online, it is doomed to fail.

The fix: Either point your project references to older .Net Framework dll’s, or uninstall Windows updates. You can uninstall updates by going to Control Panel > Programs > Programs and Features > View Installed Updates, and removing everything under the Microsoft .Net Framework Client Profile or Microsoft .Net Framework Extended categories. You could check the Knowledge base article for each one of them to check if the specific .Net Framework assembly you wish to debug was changed. But that’s up to you.

ASP.Net sites will require a Microsoft based hosting company. Some of the best ASP.Net hosting companies are reviewed at this webhosting resource site.

Hope it helps.

Digg This
Reddit This
Stumble Now!
Buzz This
Vote on DZone
Share on Facebook
Bookmark this on Delicious
Kick It on DotNetKicks.com
Shout it
Share on LinkedIn
Bookmark this on Technorati
Post on Twitter
Google Buzz (aka. Google Reader)

Complete guide to building a Home Theater PC – Part I

2

Background

As a home cinema enthusiast and casual player, I always fed the idea of having a high quality surround system on my living room. That opportunity presented itself when both me and my fiance decided to buy our first apartment about two years ago, so long before that I started envisioning and planning on the best possible configuration. When our building reached construction phase, my goal was to setup a 7.1 audio channel system. Issue is, unless you are a lucky enough to have a home-theater-friendly wife, you are in for tough resistance. So there were several things that had to be thought of in order to maximize the WAF indicator (Wife Acceptance Factor) at the time of discussing living room layout/design.

  1. Cables. A 7.1 setup requires a lot of cabling…. Going everywhere. So cables had to be out of sight somehow, and an under-the-carpet solution wasn’t gonna stick (didn’t bothered to consider wireless, of course). So in order to accomplish this, I added internal wall and floor cable routing tubes. Also added one for the wall mounted flat screen TV, along with power outlet. So, check!
  2. Lots of “huge” speakers – as she said. This was tough. It’s all in the eye… I thought if the speakers had the right coloring and design match with the surrounding environment, I should be safe. Indeed I was. Went for Monitor Audio RX1 black gloss finish surround speakers, piano white lacquer Radius HD R45 for back speakers, and black oak vinyl for center/left/right and sub-woofer. It all blended well with living room furniture and general design. Check!
  3. Lastly, the looks. It’s 99% of a women’s concern on every purchase. So simple and stylish speakers were in order. Also check!

In the end, combined with our “cableless” 46″ Plasma TV, and an optionally hidden Onkyo SR875 AV Receiver, it made the perfect WAF score and ended up being a great setup for the occasion. And today she is becoming more and more of a home theater affectionate. We’ve been watching High Definition content via cable TV provider and PS3. The latter, used for bluray viewing and streaming from PC via DLNA.

However, streaming from a PC to the living room TV via PS3 isn’t a perfect solution. Even with a gigabit network at your disposal, fast forwarding or similar can be time consuming and even be prone to streaming errors. I’ve used PS3 Media Server for streaming, and from my experience, it still isn’t 100% reliable for its purpose, and other solutions aren’t as good. I often got corrupt file error, stream freeze, and even unbalanced data rate at some point.

In time, this motivated me to build a Home Theater PC that would fit my needs and, at the same time, integrate seamlessly in my living room.

Requirements

There are, however, a series of minimum requirements that I believe should be mandatory on a HTPC, for it to be worthy of the name:

  1. High Definition. By today’s standards, a Home theater PC should be able to output current audio and video specifications, as reflected by the market today. That means it should output 1080p video resolution (1920 x 1080 pixels), also referred to as “Full HD” and support both TrueHD and Dolby DTS Master Audio HD audio formats. That is good to satisfy the “Home Theater” direct designation.
  2. Consumption. Every watt counts, and a HTPC is likely to be turned on the whole day downloading or encoding content to set things up for you before viewing. So a energy efficient CPU and hard drive are required.
  3. Size. This is a major requirement as I’ll want the HTPC to blend in in your living room, nicely stored in your living room furniture. If not to optimize your WAF indicator (Wife Acceptance Factor).
  4. Storage. Given my past experience, and also network storage performance, I’m prioritizing a local storage solution. It should be relatively large in order to comfortably store video/music/photos but also good read/write ratio. Also, we’ll want accessible and fast USB ports to be able to read/write content external hard drives or USB pens, even memory cards if possible. All of this, of course, by today’s standards.
  5. Speed. Needless to say that speed matters. Either when accessing data while browsing through your media library, or when recovering your PC in sleep mode… You’ll want things to be fast and responsive.
  6. Software. No HTPC can survive the test of time without proper usability. I will need a software solution capable of browsing my media library comfortably, provide good information, have good visuals and automation capabilities for cover art, subtitles and file naming.

Taking these into consideration, we’ll start by determining and deciding on the most influential technology/hardware and go from there.

Technical Specifications

Form factor

Size matters for an HTPC. You’ll want to store it nice and comfortably alongside your other devices and minimize the visual impact on your living room, so we’ll need a minimal form factor that would minimize case size but at the same time allow for the minimum chipset features on motherboards this size. Mini-ITX is a 17 x 17cm low-power motherboard form factor and can often be passively cooled due to their low power consumption architecture, which makes them useful for Home Theater PC systems, where fan noise can detract from the cinema and generic audio listening experience. It also has provision for one expansion slot that we can use on a dedicated graphics card, audio card or TV tuner. So this form factor will save us space and also gain portability, while supporting all the good stuff available on larger mainstream motherboard chipsets.

Motherboard and CPU

To comply with the requirements, the motherboard should be able to support Sata 6Gb, USB3, HDMI 1.4a and low power consumption.

On the Intel side, the latest and greatest is the Core i series chipsets, that give way to the latest i series CPU’s code named Sandy Bridge, launched in February 2011, with a new socket, the LGA-1155. From the current Intel chipset ofering, I would consider the Intel 6 series chipsets, that offers 6Gb/s Bus bandwidth and are for Sandy Bridge mainstream desktop and business platforms. Three new chipsets stand out: the performance-focused P67, the integrated graphics-focused H67 and the entry-level H61.

One thing to keep in mind when picking a new motherboard is to make sure the new motherboard comes with the new B3 stepping. This is because the 6 Series Chipset code named “Cougar Point”, which powers the new P67 series Sandy Bridge processors, has a flaw that may impact SATA performance over time. Under heavy use, there may be a degradation in performance. While this issue happens on a VERY small percentage of boards, it was big enough of an issue for INTEL to spend a billion dollars and raise the bar for the industry in terms of taking care of the customer. Even though the problem might not even happen for years, if at all. However, Intel took quick measures to fix this with the new B3 stepping fix.

So given the specs, form factor availability and my local retailer catalog and stock, H67 would be a good option. It has a TDP of 6.1 W and Sata3. Besides, it’s the cheapest motherboard on this configuration available. The following table describes most of the current ITX H67 models’s characteristics:

Given the retail price on each model (not present in the table by the way), and by contrast with overall features and quality, the ASRock model stood out from the rest. The non HT version (no WiFi and Media Center controller) it’s sold for around 78€. Great value, since I won’t need the extras of the HT (Home Theater) version so this motherboard would fit the Intel solution.

Among the available CPU’s for this motherboard there are two that particularly stand out due to their performance/consumption ratio: the Core i3-2100T, with 2.5Ghz clock frequency per core, and the Core i3-2120T that boosts 2.6Ghz, both sharing a TDP (thermal design power) of only 35W, which is ideal for a HTPC. Tests confirm that on CPU burn it maxes out at 33W, 23W on GPU burn, and 9.7W on idle.

They feature two cores (more than enough for HTPC duties), have a 3Mb L3 cache, LGA 1155 socket and an integrated Intel HD Graphics 2000 GPU (Graphics Processing Unit), so you don’t actually need a dedicated graphics card unless you’re intending to play heavy games. Even on that regard it performs pretty well: it supports DirectX 10.1 and OpenGL 3.1 and have decent gaming performance, but not for current games.

For video, features full MPEG2, VC-1 and H.264/MPEG-4 Part 10 (also called AVC – Advanced Video Coding) hardware acceleration and 650 to 1250Mhz  (Turbo) core render frequency. The new GPU enables HDMI 1.4a so Blu-ray 3D is supported.

Since only dual-core Core i3 and Core i5 processors have an integrated graphics core, it means that an Intel Mini-ITX system with a quad- or six-core processor inside can only be built using an external graphics accelerator, and that would also demand higher TDP consumption. So these are the ones to go for. We can see these CPU’s in stores for around 110€.

In terms of audio, Sandy Bridge CPUs when paired with an H67 PCH (Platform Controller Hub) allow bitstreaming of up to eight channels of lossless audio typically found on Blu-ray discs. Dolby Digital, TrueHD (up to 7.1), DTS, DTS-HD MA (up to 7.1) can all be bitstreamed over HDMI. Decoded audio can also be sent over HDMI. They will be immediately listed in the display properties page after MEI drivers are installed.

As for an AMD alternative, AMD Fusion is the name. It’s the designation of a new series of APU’s (CPU + GPU) by AMD with the latest being the “Llano” 32 nm processor family. From what I’ve seen, integrated GPU from AMD is far superior to Intel’s HD Graphics 3000. An integrated Radeon HD 6550D generally performs between a Radeon HD 6450 and 5570 depending on memory speed. Compared to, say, the Core i3-2105, you’re looking at a nearly 2x performance advantage on average.

On CPU performance, Intel is still superior albeit the high hopes I’ve seen in specialty websites. You can take a look at a sample review here for your own conclusions. The strong point of Llano is obviously the embedded GPU and combined with their A75 chipset features like native SATA-600 and USB 3.0 support. Next to that, the powerful software suite surrounding Llano definitely brings heaps of advantages to AMD opposed to the competition. But the lowest TPU for desktop Llano (codenamed Lynx by the way) is 65W, which

In terms of power consumption, the the Sabine platform, introduced on June 30 for the AMD Mainstream Notebook Platform, provided some nice 35W TDP alternatives, with A8-3500M (4 cores, 1,5Ghz) and A4-3300M (2 cores, 1,9Ghz) looking promising. Available chipsets are A60M and A70M (Hudson-M2, Hudson-M3). However, I’ve seen no motherboard offering as of yet, so I’ll be forced to analyze a power efficient alternative on AMD.

And that would have to go to the E-350 “Zacate” (40 nm) model, that has a 18W TDP, but it’s 1.6Ghz and shows around 25% of Intel 2100T performance. On the other hand, it has the advantage of reduced price on motherboard + CPU bundle, since A50M motherboards generally have integrated E-350 CPU.

So currently for AMD to directly compete with Intel alternative discussed previously, it would have to sacrifice computational power and stick with A50M chipset limitations like RAID support, but would gain in native USB3, DirectX11, higher GPU performance, lower TDP and final bundle cost. ASRock E350M1 is one of the lower priced motherboards, selling for around 90€.

Since gaming is not a prerequisite on a dedicated HTPC, Intel solution is the ideal at this point.

Storage

Storage solution can take several shapes, depending on budget. There are two main storage interfaces present in today’s available hard drives:

SATA II (revision 2.0) -  3 Gbit/s

Second generation SATA interfaces running at 3.0 Gbit/s are shipping in high volume as of 2010, and prevalent in all SATA disk drives and the majority of PC and server chipsets. With a native transfer rate of 3.0 Gbit/s, the maximum uncoded transfer rate is 2.4 Gbit/s (300 MB/s). The theoretical burst throughput of SATA 3.0 Gbit/s is roughly double that of SATA revision 1.

Sata III (Revision 3.0) – 6Gbit/s

The 3.0 standard was released on May 27, 2009.It provides peak throughput of about 600 MB/s (Megabytes per second) including the protocol overhead (10b/8b coding with 8 bits to one byte). Solid-state drives have already saturated SATA 3 Gbit/s with 285/275 MB/s max read/write speed and 250 MB/s sustained with the Sandforce 1200 and 1500 controller. SandForce SSD controllers released in 2011 have 500 MB/s read/write rates.

By the way, SSD stands for solid state drive, and it’s a data storage device that uses solid-state memory to store persistent data with the intention of providing access in the same manner of a traditional block i/o hard disk drive.

At the moment, Sata III is only present in SSD hard drives, and although they show great performance, it comes with a high price. If money is no impediment, a Sata III SSD solution would be best. There is one thing you should though… Reliability on SSD drives has been questioned, so my advice is to stay informed before committing.

Other option, for a lower budget, would be to have a smaller size SSD to hold O.S. and dominant apps, side-by-side with a traditional magnetic disk hard drive of higher capacity for your other apps and relevant data, although higher capacity SSD’s are even faster at the same SATA spec.

Finally, the most wallet friendly option, which is using magnetic storage. Typically, ITX cases support 2.5 inch drives, and these are available in 10k, 7200 and 5400 RPM (Revolutions Per Minute). Nowadays a 750Gb 2.5″ Sata II 7200 RPM drive goes for around 80Eur and are 5400 RPM-equivalent power consumption. From a performance stand point, the WD Scorpio Black 750Gb 7200rpm does provide great balance, and has power dissipation values of 1.75W while active, 0.8W idle and 0.4W in sleep mode.

Memory

The AsRock H67M ITX supports dual channel DDR3 1333/1066 non-ECC, un-buffered memory. In this regard a 4Gb low voltage solution is more than enough for HTPC tasks. One of the best price/quality/performance options out there is the 4GB Corsair XMS3 DDR3-1333 CL9.

It features a 4GB high performance module for use in high AMD Phenom II or Intel Core i7, i5 and i3 Dual Channel systems, fast 1333MHz with 9-9-9-24 latency at 1.65v, it’s backed by Corsairs Lifetime Warranty and supports Intel XMP (Extreme Memory Profile). The XMS3 family is Corsair’s mainstream line of performance DDR3 memory and are available in Corsair’s XMS heat spreaders.

Case

For a Mini-ITX H67 6.1W paired with the Intel Core i3 35W CPU not much is needed in terms of PSU capacity so the most important aspects to consider are size, front panel connections, build quality and overall design. Lian Li has great aluminum cases with great finish that already support USB 3.0 front connectors. But for my spacing needs, its 12cm height is a bit too tall for the available cabinet space, and would also impact on portability.

The 9cm height Antec ISK 310-150 ITX case has an elegant front finish with a 150 watts Flex-ATX PSU to power the system. It features two frontal USB 2.0 ports, headphone and microphone connectors, and a has 2.5″ drive opening bay. Both this model and the 300 model would fit the requirements. This one simply has a more visually compatible design, so it will be my first choice. This case goes around for

Overall

So all things considered it all pointed out to stylish, highly performant and cost-effective setup:

Model Cost Max Power Consumption
AsRock H67M-ITX 78 € 6.1W
Intel i3 2100T 106 € 35W
WD Scorpio Black 750Gb 7200rpm 80 € 1.75W
4GB Corsair XMS3 DDR3-1333 CL9 20 € 1.65W
Antex ISK 310-150 ITX 75 €  -

I’ve build this exact machine two weeks ago. Ordered from an online retailer from Germany that presented a diverse catalog and good prices. Shipping costs aside, it costed exactly 365,82€, and after playing with it until now I must say its worth every euro. I’m yet to get exact values on power consumption on Idle, Sleep and Burning states (must get a Kill-A-Watt of some kind), but my early estimate dictates it will be around 20-22W idle, and maybe 5W in Sleep mode.

One thing I did when building the HTPC was disconnecting the power LED that lights the power button. I’ve came to the conclusion that its too bright in a dark environment, and since most of the times, the HTPC is in plane sight, the intense blue light disturbed correct viewing a little.

Next I’ll be posting about software I used to optimize and automate the setup. After all, all this is worthless if good software isn’t put into good use.

Technorati Tags: ,

Digg This
Reddit This
Stumble Now!
Buzz This
Vote on DZone
Share on Facebook
Bookmark this on Delicious
Kick It on DotNetKicks.com
Shout it
Share on LinkedIn
Bookmark this on Technorati
Post on Twitter
Google Buzz (aka. Google Reader)

How to Print Screen on your iPod or iPhone

0

Quick tip for taking screenshots in iOS: on the screen you wish to take a print screen, just hold down the Home button and then press the power button. You will hear a snapshot sound.

If you now go to your photos, you will see the screenshot you just took. You can manipulate it like any other image. Enjoy!

Technorati Tags: ,

Digg This
Reddit This
Stumble Now!
Buzz This
Vote on DZone
Share on Facebook
Bookmark this on Delicious
Kick It on DotNetKicks.com
Shout it
Share on LinkedIn
Bookmark this on Technorati
Post on Twitter
Google Buzz (aka. Google Reader)

How to configure Authenticated Proxy on Android SDK installation

2

Quick and easy steps to overcome proxy authentication issue on Android SDK and AVD Manager installation.

1. Download NTLM Authorization Proxy Server for Windows http://tredosoft.com/ntlm_proxy_server

2. Unzip and edit the setting in server:

PARENT_PROXY: <proxy ip address or server name>
PARENT_PROXY_PORT: <proxy port>
NT_DOMAIN: <domain name>
USER: <proxy username>
PASSWORD: <proxy password>

3. Execute the NTLM Authorization Proxy Server. Enable it on windows firewall if asked. In case you have other firewall solutions installed, you need to disable it temporarily or allow access to the port 5865.

4. (optional ) Test the settings in your browser. Change the proxy settings under the network options. For the proxy server I used 127.0.0.1 for port 5865, which is the default. It might take a few seconds to respond on first request.

5. Run the SDK Manager (Android SDK and AVD Manager)

6. Go to the “Settings” tab and enter the loop back address as the proxy server “127.0.0.1″ or your machine name.

7. Enter the port as 5865 and select/enable “Force https://… sources to be fetched using http://…

8. Select “Installed packages” and click “Update All”. If it doesn’t kick off the update/install just restart the SDK Setup and it should start automatically after the reload.

Technorati Tags:

Digg This
Reddit This
Stumble Now!
Buzz This
Vote on DZone
Share on Facebook
Bookmark this on Delicious
Kick It on DotNetKicks.com
Shout it
Share on LinkedIn
Bookmark this on Technorati
Post on Twitter
Google Buzz (aka. Google Reader)

Blog productivity with WordPress for Android

0

Just installed WordPress blogging engine Android app into my Dell Streak tablet and this is actually the first run. After a quick 2 min sweep, on a first glance, it seems the very basics are there like post listing, comments and stats. One thing I quickly noticed was that on the Posts tab, I had no way of immediately distingwish between published and draft content. That is something I value due to the amount of drafts I can have at a given time, like the present.

In terms of editing, it lets you do html with no preview, add photos and videos, text styling (basic, no colours, apparently) and supports tag and category setup. Publishing-wise, I’ll see when I submit this micro-review. Overall, It does the job for simple content, you would need html know-how to extend your horizon. There’s a lot of room for improvement so I’ll keep my eye out for updates.

Update: Publishing went smoothly :)

Technorati Tags:

Digg This
Reddit This
Stumble Now!
Buzz This
Vote on DZone
Share on Facebook
Bookmark this on Delicious
Kick It on DotNetKicks.com
Shout it
Share on LinkedIn
Bookmark this on Technorati
Post on Twitter
Google Buzz (aka. Google Reader)

How To Install Windows 7 Or Windows 8 From USB Drive

0

This is a quick and effective guide to create a bootable Windows 7 or 8 USB pen drive.

Requirements:

- USB Flash Drive with 4Gb minimum capacity

- Windows 7, Windows 8 or Windows Vista installation files

- Motherboard that supports booting fom USB

Steps:

- Plug-in your USB flash drive to USB port. Make sure you its contents are backed up.

- Open Command Prompt with admin rights either by typing cmd in Start menu search box and hit Ctrl+ Shift+ Enter, or going to Start menu > All programs > Accessories, and right clicking on Command Prompt and select Run as administrator.

- Type in the following commands in the command prompt:

First type DISKPART and hit enter to see the below message.

Type LIST DISK command and verify the Disk number (ex: Disk 4) of your USB flash drive.

Type SELECT DISK 4. In my case is Disk 4, which has 4Gb, as you can see in the following screen. If you have Disk 1 or any other number as your USB flash drive then use Disk 1 in all examples.

- Continue seting up the USB flash drive with the following commands. Press enter after typing each command.

SELECT DISK 1 to select target drive.

CLEAN to clean the drive.

CREATE PARTITION PRIMARY to create primary partition in drive.

SELECT PARTITION 1 to set primary partition.

ACTIVE to activate primary partition.

FORMAT FS=NTFS to format the partition. Formatting took a few minutes in my case.

If all goes well this far, you will have something like this:

- Continue with the following commands:

ASSIGN to assign drive letter or mount point.

EXIT to exit the Diskpart tool.

- Minimize the Command Prompt for now and insert your Windows 7/8/Vista DVD into the optical drive or mount your ISO backup, and take note of the drive letter. In my case, drive letter is “G” and USB drive letter is “J”.

- Go back to the minimized Command Prompt in the 4th step. Type  the following command now:

G: CD BOOT and hit enter.Where “G” should be replaced with your DVD drive letter.

CD BOOT and hit enter.

- Type another command given below to update the USB drive with BOOTMGR compatible code.

BOOTSECT.EXE /NT60 J:

In the previous command, replace J: with your USB drive letter. If all goes normally you should have something like this:

- Copy your Windows 7/8/Vista DVD contents to the newly set up USB flash drive.

- Your USB drive is ready to boot and install Windows. When setting up, remember to change the boot priority at the BIOS to USB.

And that’s it, enjoy!

Technorati Tags: , ,

Digg This
Reddit This
Stumble Now!
Buzz This
Vote on DZone
Share on Facebook
Bookmark this on Delicious
Kick It on DotNetKicks.com
Shout it
Share on LinkedIn
Bookmark this on Technorati
Post on Twitter
Google Buzz (aka. Google Reader)

In this post I’ll show you how to configure your Visual Studio 2010 to step into the source code of .NET Framework 4.0 in 9 easy steps.

  1. Download the 167Mb installer that contains the logic and data required to install Reference Source, .Net 4.0. On the download page table, its named “.Net”, Version: 4.
  2. Execute the installer “Net_4.msi” that you have downloaded in the previous step.
  3. Install it onto a path of your choice. Example “C:\Development\Framework 4 Source
  4. Launch Visual Studio 2010. From the Tools menu, choose Options and open the Debugging node.
  5. Select General, then do the following:
    • Uncheck “Enable Just My Code (Managed only)”
    • Check “Enable source server support”
    • Uncheck “Require source files to exactly match the original version”
    • Optional: Uncheck “Step over properties and operators (Managed only)”
  6. Select Symbols under Debugging.
  7. In the Symbol File Locations box, add the downloaded symbols location: “C:\Development\Framework 4 Source\Symbols
  8. Enter in text box under ‘Cache symbols in this directory’: “C:\Development\Framework 4 Source\Symbols\Cache
  9. That’s it, you can now Step Into .NET source code. Happy sessions!

Technorati Tags: , ,

Digg This
Reddit This
Stumble Now!
Buzz This
Vote on DZone
Share on Facebook
Bookmark this on Delicious
Kick It on DotNetKicks.com
Shout it
Share on LinkedIn
Bookmark this on Technorati
Post on Twitter
Google Buzz (aka. Google Reader)

Google+ users can now crosspost with their WordPress blog

1

A WordPress plugin has been released by software developer Daniel Treadwell, called Google+Blog. With this, users will be able to easily and quickly cross post their posts from Goggle+ to also be published on their blog. This happens automatically and should save users a lot of time as they will not have to do this manually anymore. It is great for keeping your blog followers in the loop, especially if they do not have a Google+ account themselves.

You can download the plugin online easily, after checking your e-mails or surfing http://www.partypoker.fr/… There is a free version which features a back link to the plugin, plus the text ‘Post imported by Google+Blog. Created By Daniel Treadwell’. If you choose to download the paid version, it will cost $10 however the back link will be removed. All of the posts you create with this plugin will feature a link to the original post on Google+, so readers will always be able to find the origin.

You set up the plugin with your Google+ ID, and you will also need a Google+ API. To get this, click ‘create project’ and switch on the setting for Google+ API. You will then need to click on ‘API access’ and you will see your API key. When in your WordPress blog, you will be able to choose the number of already created Google+ posts that you want to import. When you publish new posts in your Google+ profile, the plugin will check every hour and publish them itself.

Then you will be able to carry on posting as you wish. This is a great way to update your followers and is also really easy to do. It saves you valuable time and can make your life a lot easier.

Technorati Tags:

Digg This
Reddit This
Stumble Now!
Buzz This
Vote on DZone
Share on Facebook
Bookmark this on Delicious
Kick It on DotNetKicks.com
Shout it
Share on LinkedIn
Bookmark this on Technorati
Post on Twitter
Google Buzz (aka. Google Reader)

Microsoft released today the Release to Web (RTW) of Microsoft ADO.NET Entity Framework 4.1 (EF 4.1). For those who don’t know, the ADO.NET Entity Framework enables developers to create data access applications by programming against a conceptual application model instead of programming directly against a relational storage schema. The goal is to decrease the amount of code and maintenance required for data-oriented applications.

What’s in EF 4.1?

ADO.NET Entity Framework 4.1 introduces two new features:

  • The DbContext API is a simplified abstraction over ObjectContext and a number of other types that were included in previous releases of the ADO.NET Entity Framework. The DbContext API surface is optimized for common tasks and coding patterns. DbContext can be used with Database First, Model First and Code First development.
  • Code First is a new development pattern for the ADO.NET Entity Framework and provides an alternative to the existing Database First and Model First patterns. Code First is focused around defining your model using C#/VB.NET classes, these classes can then be mapped to an existing database or be used to generate a database schema. Additional configuration can be supplied using Data Annotations or via a fluent API.

ADO.NET Entity Framework 4.1 is available in two ways:

  • By downloading the stand alone installer,
  • Or by adding the ‘EntityFramework’ NuGet package to your project,
    Note: The NuGet package only includes the EF 4.1 runtime and does not include the Visual Studio item templates for using DbContext with Model First and Database First development.

Also, check out the following resources for more info.

MSDN Resources

Other Resources

Have fun.

Technorati Tags: ,

Digg This
Reddit This
Stumble Now!
Buzz This
Vote on DZone
Share on Facebook
Bookmark this on Delicious
Kick It on DotNetKicks.com
Shout it
Share on LinkedIn
Bookmark this on Technorati
Post on Twitter
Google Buzz (aka. Google Reader)

This reference tutorial will help you grasp the power of WinDebug debugging tool and quickly start using it in your daily development tasks. So, before we start, let me explain what WinDbg is.

WinDbg is a multipurpose debugger for Microsoft Windows, distributed on the web by Microsoft. It can be used to debug user mode applications, drivers, and the operating system itself in kernel mode. It is a GUI application, but has little in common with the more well-known, but less powerful, Visual Studio Debugger. WinDbg can be used for debugging kernel-mode memory dumps, created after what is commonly called the Blue Screen of Death which occurs when a bug check is issued. It can also be used to debug user-mode crash dumps. This is known as Post-mortem debugging.

WinDbg also has the ability to automatically load debugging symbol files (e.g., PDB files – Program DataBase file with debug information) from a server by matching various criteria (e.g., timestamp, CRC, single or multiprocessor version). This is a very helpful and time saving alternative to creating a symbol tree for a debugging target environment. If a private symbol server is configured, the symbols can be correlated with the source code for the binary. This eases the burden of debugging problems that have various versions of binaries installed on the debugging target by eliminating the need for finding and installing specific symbols version on the debug host. Microsoft has a public symbol server that has most of the public symbols for Windows 2000 and later versions of Windows (including service packs).

I’ve used WinDbg mostly in .NET applications, and that’s what I’ll be sharing this time around. To keep things simple and fast, because if you need WinDbg you are probably dealing with some memory issues and time is precious, I’ll put put it in steps:

1) You can start by downloading debugging tools from the Microsoft Windows SDK for Windows 7 and .NET Framework 4. You may also opt to download the ISO version. Take into consideration the target instruction set, either x84 or x64, depending on your application requirements.

2) Run WinDbg.exe executable. Search for WinDbg in "C:\Program Files (x86)\Debugging Tools for Windows (x86)" or “…WinDDK\7600.16385.1\Debuggers\windbg.exe” if you have the Windows Driver Development Kit.

3) Load mscorlib by writing:

        > sxe ld:mscorlib
        > g
       
        NOTE: Press enter after each line. "g" continues debuger execution.

4) Load the SOS Debugging Extension (SOS.dll). This allows debugging of managed programs in the WinDbg.exe debugger and in Visual Studio by providing information about the internal common language runtime (CLR) environment. First command in example loads SOS for debugging framework 2.0. The second is used for Framework 4.0.

        > .loadby sos mscorwks
        > .loadby sos clr (Framework 4.0)
        > g

5) Quick usage scenario #1: View memory consumption for all objects of a given type

        > !DumpHeap -type MyAppRootNamespace.ViewModels.ClientProfileViewModel

6) Quick usage scenario #2: View the managed call stack

        > !CLRStack

7) Quick usage scenario #3: View which object(s) are holding a reference to a specified address

        > !gcroot 29682dc0

 

Here’s a little script you can use to detect Framework 4 and load it in WinDbg.
   
    > !for_each_module .if(($sicmp( "@#ModuleName" , "mscorwks") = 0) ) {bp mscorwks!WKS::GCHeap::SuspendEE ".if (dwo(mscorwks!WKS::GCHeap::GcCondemnedGeneration)==2) {.echo start of gen 2}"} .elsif ($sicmp( "@#ModuleName" , "clr") = 0) {bp clr!WKS::GCHeap::SuspendEE ".if (dwo(clr!WKS::GCHeap::GcCondemnedGeneration)==2) {.echo start of gen 2}"}

 

Also, a full list of WinDbg commands, organized by category: http://windbg.info/doc/1-common-cmds.html.

And a PDF for you to print and keep it around your workspace.

 

Happy sessions.

Technorati Tags: , ,

Digg This
Reddit This
Stumble Now!
Buzz This
Vote on DZone
Share on Facebook
Bookmark this on Delicious
Kick It on DotNetKicks.com
Shout it
Share on LinkedIn
Bookmark this on Technorati
Post on Twitter
Google Buzz (aka. Google Reader)
Page 1 of 1812345Next »...Last »

Note: Silverlight, C#, in fact any .NET web development projects is best used with windows hosting than Linux based hosting.