Tuesday, December 14, 2010

Thursday, December 02, 2010

Silverlight Applications

http://grapholite.com/
online flow charting solution.
http://www.telerik.com/products/facedeck.aspx
Silverlight Facebook Client for Desktop
iMeta Agility
http://agility.imeta.co.uk/Cloud/
Silverlight Eyes - SliBall
http://www.pay4foss.org/jumpstation/sliball/
DeepZoom
http://www.wssdemo.com/livepivot/
http://www.mumbaiindians.com/DeepZoom.aspx
http://thejit.org/demos/
http://roomseeker.eu/content/pivot.htm

Monday, November 22, 2010

Vista

How to disable/stop Vista’s Search Indexing (Windows Search)
http://4sysops.com/archives/how-to-disable-vista%E2%80%99s-desktop-search-indexing-windows-search/
  1. Navigate to Control Panel/System and Maintenance/Indexing Options. There you can remove all locations or only those you use rarely.
  2. It is also possible to disable indexing for a certain drive or enable it only for selected folders. You can do this by changing the Properties of a drive or folder (right click on drive letter in Windows Explorer).
  3. The fasted way is to simply disable the Windows Search service. Run Services (just type “Services” at the Start Search bar), right click on the Windows Search service and select “Properties”. Then choose “Disabled” for the start type. Afterwards, you have to stop this service by right clicking on it and selecting “Stop”.

Start - Control Panel - Indexing Options
Modify - Show All Locations
Change the folders that are indexed
Under Advanced, you select file types and reset the index

 
 
 

Tuesday, October 26, 2010

Handling DataGrid.SelectedItems in an MVVM-friendly manner

Handling DataGrid.SelectedItems in an MVVM-friendly manner: "

An interesting question from one of the MVVM Light users today:

Is there an MVVM-friendly way to get a DataGrid’s SelectedItems into the ViewModel?

The issue there is as old as the DataGrid (that’s not very old but still): SelectedItem (singular) is a DependencyProperty and can be databound to a property in the ViewModel. SelectedItems (plural) is not a DependencyProperty.

Thankfully the answer is very simple: Use EventToCommand to call a Command in the ViewModel, and pass the SelectedItems collection as parameter. For example, if the command in the ViewModel is declared as follows:

public RelayCommand<IList> SelectionChangedCommand
{
get;
private set;
}
and (in the MainViewModel constructor):
SelectionChangedCommand = new RelayCommand<IList>(
items =>
{
if (items == null)
{
NumberOfItemsSelected = 0;
return;
}

NumberOfItemsSelected = items.Count;
});

Then the XAML markup becomes:

<sdk:DataGrid x:Name="MyDataGrid"
ItemsSource="{Binding Items}">
<i:Interaction.Triggers>
<i:EventTrigger EventName="SelectionChanged">
<cmd:EventToCommand
Command="{Binding SelectionChangedCommand}"
CommandParameter="{Binding SelectedItems,
ElementName=MyDataGrid}" />
</i:EventTrigger>
</i:Interaction.Triggers>
</sdk:DataGrid>

I slapped a quick sample and published it here (VS2010, SL4 but the concept works in SL3 and WPF too).


Cheers!


Laurent



"

Monday, October 25, 2010

WCF

WCF : BasicHttpBinding compared to WSHttpBinding at SOAP packet level. ***
http://geekswithblogs.net/claeyskurt/archive/2008/04/22/121508.aspx
Winterdom » Blog Archive » WCF Configuration Complexity **
http://winterdom.com/2007/02/wcfconfigurationcomplexity
WCF Binding: BasicHttpBinding vs WsHttpBinding - Fabian's Blog **
http://www.apexa.net/Blog/web_design_Blog_20080911.aspx
Configuring Message Logging – MSDN **
http://msdn.microsoft.com/en-us/library/ms731859.aspx

Stephen Covey’s Five Metastasizing cancers


Watch out for an organizational culture that produces any of these five:
1.    Criticizing
2.    Complaining
3.    Comparing
4.    Competing
5.    Contending

The above culture shows a victim mentality. Instead, strive to uphold the following values in your organization:
1.    Gratitude
2.    Forgiveness
3.    Abundance

Websites

Interview
You need to identify this type of applicant quickly & the quickest way is the short coding interview. You don't even have to have them come into the office.
Get a private site right here where you can watch your job candidate write code over the internet in real-time.
http://i.seemikecode.com/
 
Task management - Online
http://www.producteev.com/
 
Photo Gallery
http://tympanus.net/codrops/2010/06/27/beautiful-photo-stack-gallery-with-jquery-and-css3/
 
Simple Diagrams
A small desktop application that helps you express your ideas quickly and simply.
There's just enough functionality to describe a thought or capture a process.
It keeps the visual expression clear through the simple design of library items and backgrounds.  

http://www.simplediagrams.com/

 

We Used To Wait
http://www.thewildernessdowntown.com
An interactive short film for Arcade Fire's "We Used to Wait" track, utilizing Google's Chrome Browser, Google Maps and HTML5
http://www.thefwa.com/article/fwa-site-of-the-year-2010

Wednesday, October 13, 2010

The Debut Of Cheteshwar Pujara

2nd Test: India v Australia at Bangalore - Oct 9-13, 2010

India 2nd innings (target: 207 runs)

CA Pujara b Hauritz 72 (89)

What a knock, though. You wait five years for the call from selectors. You keep scoring runs.

You finally get that call. You wait for six hours to bat and you get a grubber, a shooter.

You then get promoted ahead of your idol Rahul Dravid in the second innings. And play a super knock. Sometimes, dreams do come true. Sometimes..

http://www.cricinfo.com/india-v-australia-2010/engine/current/match/464527.html

Tuesday, October 12, 2010

Silverlight Applications

Tech Tools

 
 
 

Design Patterns

 
 

Monday, October 11, 2010

Coca Cola India – Diwali 2010 Ad

here are the lyrics

jaata kahan hai diwane.. sab kuchh yahaan hai sanam
jab honge hum sath tere.. khushiya chalen sang sang
o raaja tu aaja.. humare sang aaja.. o jhum le zaraa!

ita remix of a song form 1956 movie 'C.I.D'

Download http://cid-7786a33555a957e5.office.live.com/self.aspx/Music/Coca%20Cola%20-%202010%20-%20Diwali%20Special.mp3

Thursday, September 30, 2010

Task Schedule Library

http://taskscheduler.codeplex.com/
http://www.codeproject.com/KB/cs/tsnewlib.aspx
http://quartznet.sourceforge.net/

Wednesday, September 22, 2010

Pervasive

http://www.connectionstrings.com/pervasive
http://www.techknowledge.co.jp/btc_e.html
http://www.pervasivedb.com/pages/results.aspx?k=exchange
http://www.pervasivedb.com/btrieve/Pages/Default.aspx
http://www.pervasivedb.com/PSQLv9/Pages/Default.aspx
http://cs.pervasive.com/forums/t/8018.aspx

ACC: Description of Btrieve/Xtrieve .DDF files
http://support.microsoft.com/kb/113877

Btrieve Data Types
http://webcache.googleusercontent.com/search?q=cache:CPddQnv7b9gJ:ww1.pervasive.com/library/docs/psdk/794/prog_api/BtrDType3.html+btrieve+byte+to+string&cd=1&hl=en&ct=clnk

Btrieve API programming using VB6 - Pervasive Community Site

Btrieve API and VB.Net - Pervasive Community Site

native Btrieve Access using Visual Basic 2005 / 2008 | dbcoretech
http://www.dbcoretech.com/?p=364

DacEasy Access via BTRCALL - Pervasive Community Site
http://cs.pervasive.com/forums/p/7421/7421.aspx

BTRCALL versus BTRV - PowerBASIC Peer Support Forums
http://www.powerbasic.com/support/pbforums/showthread.php?t=39390

Btrieve API and VB.Net - Pervasive Community Site
http://cs.pervasive.com/forums/p/2771/12147.aspx

C# (C sharp): Microsoft - Convert a struct to a Char[]
http://www.tek-tips.com/viewthread.cfm?qid=367798

Pervasive: Btrieve - Accessing Btrieve using VB6
http://www.tek-tips.com/viewthread.cfm?qid=25435&page=11

Tuesday, August 10, 2010

Sunday, August 08, 2010

Silverlight MVVM

MVVM Frameworks

Laurent Bugnion’s Light MVVM
http://www.galasoft.ch/mvvm/getstarted/

Nikhilk Kothari’s FX Framework
http://projects.nikhilk.net/SilverlightFX

Michael Sync’s Silverlight MVVM Toolkit
http://silverlightmvvm.codeplex.com/

Microsoft’s Prism and MEF
http://compositewpf.codeplex.com/
http://mef.codeplex.com/

Caliburn and Caliburn Micro
http://caliburn.codeplex.com/

source: http://wildermuth.com/2010/08/08/DevLink_Talks_-_Slides_and_Code
MVVM Resources

Laurent Bugnion’s:: Understanding the Model-View-ViewModel Pattern (MIX10) ***
http://live.visitmix.com/MIX10/Sessions/EX14

http://blog.galasoft.ch/archive/2010/03/16/sample-code-for-my-mix10-talk-online.aspx

Shawn Wildermuth:: Silverlight Patterns: Model-View-ViewModel In Silverlight 2 ***
http://msdn.microsoft.com/en-us/magazine/dd458800.aspx
Shawn Wildermuth - Architecting Silverlight 4 with RIA Services, MEF and MVVM - Part 1 **
http://wildermuth.com/2009/12/15/Architecting_Silverlight_4_with_RIA_Services_MEF_and_MVVM_-_Part_1
Jason Dolinger:: Model-View-ViewModel **
http://blog.lab49.com/archives/2650
Stack Overflow:: Good Silverlight-MVVM Practice Example
http://stackoverflow.com/questions/413451/good-silverlight-mvvm-practice-example
Craig Shoemaker:: Hands-On Model-View-ViewModel (MVVM)
http://weblogs.asp.net/craigshoemaker/archive/2009/02/26/hands-on-model-view-viewmodel-mvvm-for-silverlight-and-wpf.aspx
Dan Wahlin:: Getting Started with the MVVM ***
http://weblogs.asp.net/dwahlin/archive/2009/12/08/getting-started-with-the-mvvm-pattern-in-silverlight-applications.aspx
THE MODEL-VIEW-VIEWMODEL (MVVM) DESIGN PATTERN FOR WPF **
http://msdn.microsoft.com/en-us/magazine/dd419663.aspx
Advanced MVVM
http://bubbleburst.codeplex.com/
http://www.identitymine.com/forward/?p=750
http://joshsmithonwpf.wordpress.com/advanced-mvvm/
MVVM in DataGrid
Handling DataGrid.SelectedItems in an MVVM-friendly manner
http://geekswithblogs.net/lbugnion/archive/2010/05/19/handling-datagrid.selecteditems-in-an-mvvm-friendly-manner.aspx
Silverlight Tips & Tricks: Make Silverlight DataGrid be more MVVM friendly =) - Alexey Zakharov's Blog
http://weblogs.asp.net/alexeyzakharov/archive/2009/06/06/silverlight-tips-amp-tricks-make-silverlight-datagrid-be-more-mvvm-friendly.aspx
Misc
A vent about MVVM Development
iPhone Sudoku in Silverlight using MVVM

Validation

Tuesday, August 03, 2010

Miscellaneous

Scientifically Tested Code Reading Skills
http://omergertel.com/2010/07/04/how-to-read-code/
 
Optimizations For Improving Page Load Times - MSDN
http://msdn.microsoft.com/en-us/scriptjunkie/ff743754.aspx
 
Code Reviews
http://codebetter.com/blogs/kyle.baley/archive/2010/06/22/rietveld-update-or-how-to-make-code-reviews-fun-without-canceling-them.aspx
 
Balsamiq – A Mockup Tool -
http://www.balsamiq.com/builds/mockups-web-demo/
http://codeclimber.net.nz/archive/2009/11/26/why-sketchflow-is-not-a-mockup-software.aspx
http://blog.davidsandor.com/post/Mockup-to-XAML-e28093-A-Balsamiq-Mockup-to-XAML-conversion-tool.aspx
http://sixrevisions.com/user-interface/website-wireframing/
 
Wireframes Articles InfoQ
http://www.infoq.com/news/2010/05/agile-usability-books

http://www.infoq.com/news/2010/06/agile-wireframes
 
Wallpapers & Icons
http://simpledesktops.com/browse/
http://www.tutorial9.net/resources/icon-pack-256x256-business-icons/
 
Code Analysis – FxCop, Resharper, CodeRush
http://winterdom.com/2007/02/livingwithresharper
http://devnet.jetbrains.net/message/5215136;jsessionid=F40F7E5B995D04C36BB1EBF0C721ABEC
http://jesseliberty.com/2010/05/28/code-rush-vs-resharper/
http://ira.me.uk/2010/05/22/writing-better-code/
http://code.google.com/p/resharper-tdd-productivity-plugin/
http://blogs.msdn.com/fxcop/archive/2007/08/09/what-rules-do-microsoft-have-turned-on-internally.aspx
 
Source Control
TFS http://arcware.net/how-to-exclude-files-from-tfs-source-control/
TFS Power Tools http://msdn.microsoft.com/en-us/vstudio/bb980963.aspx
TFS Report Refresh http://usmanshaheen.wordpress.com/2010/06/07/tfs-2010-report-refresh-frequency/
 
Display Folder Size In Windows 7 and Vista [ Applies To All Windows ]
http://www.troublefixers.com/display-folder-size-in-windows-7-and-vista-applies-to-all-windows/

Friday, July 09, 2010

WCF Security Articles

Configuring WCF for client certificate authentication - Carlo Folini
http://blogs.ugidotnet.org/cfolini/archive/2008/01/04/90561.aspx

WCF over HTTPS - Christophe Geers
http://cgeers.wordpress.com/2009/08/07/wcf-over-https/

  • Transport Security(basic)/HTTPS
  • UserNamePasswordValidator
  • ServerCertificateValidationCallback
9 simple steps to enable X.509 certificates on WCF - CodeProject
http://www.codeproject.com/KB/WCF/9StepsWCF.aspx?display=Print
  • Message Security(Certificate)/PeerTrust
Securing WCF Services with Certificates.- CodeProject
http://www.codeproject.com/KB/WCF/wcf_certificates.aspx
  • Message Security(Certificate)/ChainTrust
How To Configure WCF Security Using Only X.509 Certificates - CodeProject
http://www.codeproject.com/KB/webservices/WCFx509Security.aspx
  • TransportWithMessageCredential
  • Transport Security(Certificate)
  • Message Security(Certificate)
WCF certificate authentication under Windows Vista - Windows Live
http://romualdas.spaces.live.com/blog/cns!DCDC5E439E70339D!1006.entry?sa=894596551

  • Transport Security(Certificate)
  • PeerOrChainTrust/mapClientCertificateToWindowsAccount
Use Transport Security and Message Credentials – MSDN
http://msdn.microsoft.com/en-us/library/ms789011.aspx
  • WSHttpBinding + Transport Security (Code/Config)
  • NetTcpBinding + Transport Security (Code/Config)
WCF – 2 Way SSL Security using Certificates - Imaya's Blog
http://blogs.msdn.com/b/imayak/archive/2008/09/12/wcf-2-way-ssl-security-using-certificates.aspx

  • Transport Security (Certificate)
Thoughts on BasicHttpBinding, Security and SSL - Sajay MSDN Blogs
http://blogs.msdn.com/b/sajay/archive/2007/01/05/thoughts-on-basichttpbinding-security-and-ssl.aspx

  • BasicHttpBinding
  • UserNamePasswordValidator
  • TransportWithMessageCredential
Programming WCF Security - MSDN
http://msdn.microsoft.com/en-us/library/ms731925.aspx

Improving Web Services Security Guide - patterns & practices
http://wcfsecurityguide.codeplex.com


http://msdn.microsoft.com/en-us/library/ff648360.aspx
  • wsHttpBinding
  • Message Security
  • Certificates
Certificate Authentication – MSDN Forum
http://social.msdn.microsoft.com/forums/en-US/wcf/thread/4e12a513-ba7f-485d-93a7-2f093f1ccd8d

Misc
http://webservices20.blogspot.com/
http://wcfsecurity.codeplex.com/wikipage?title=How%20Tos
http://www.grimes.demon.co.uk/workshops/secWSThirteen.htm

[.NET 1.1] How to send a client certificate by using the HttpWebRequest and HttpWebResponse classes in Microsoft Visual C# .NET
http://support.microsoft.com/kb/895971
SSL & Client Certificates
http://stackoverflow.com/questions/3107625/ssl-works-without-client-certificate
message security in WCF
http://social.msdn.microsoft.com/Forums/en/wcf/thread/78e45a28-1c56-427b-a776-6e22f5cf2c19
WCF Interoperability
http://www.schnieds.com/2008/08/multiple-wcf-endpoints-net-20-clients.html
http://devlicio.us/blogs/ziemowit_skowronski/archive/2007/07/18/interoperability-between-wcf-and-wse-3-0.aspx
http://msdn.microsoft.com/en-us/library/ff648129.aspx
Working with Certificates
http://msdn.microsoft.com/en-us/library/ms731899.aspx
How to: Secure a Service with an X.509 Certificate
http://msdn.microsoft.com/en-us/library/ms788968.aspx
Securing Services and Clients
http://msdn.microsoft.com/en-us/library/ms734736.aspx

Message Security in WCF
http://msdn.microsoft.com/en-us/library/ms733137.aspx

Transport Security Overview
http://msdn.microsoft.com/en-us/library/ms729700.aspx

http://www.microsoft.com/learning/en/us/Exam.aspx?ID=70-513&Locale=en-us#tab1


Best Practices for Security in WCF – MSDN ***
http://msdn.microsoft.com/en-us/library/ms731059.aspx

WCF Throttling & Concurrency

Configuring WCF Throttling Behaviors - Csharp Code Samples ***
http://csharp-codesamples.com/2009/04/configuring-wcf-throttling-behaviors/
http://csharp-codesamples.com/2009/02/data-transfer-using-self-hosted-wcf-service/
WCF Throttling – CodeProject **
http://www.codeproject.com/KB/WCF/WCFThrottling.aspx
 
Shivprasad Koirala ***
http://computerauthor.blogspot.com/2010/06/wcf-concurrency-single-multiple-and.html
http://computerauthor.blogspot.com/2010/06/3-ways-to-do-wcf-instance-management.html
InstanceContextMode and ConcurrencyMode : The Official Microsoft Silverlight Site *
http://forums.silverlight.net/forums/p/153655/345670.aspx
Cryptic WCF error messages (part 5 of N) - Yaron Naveh's Web Services 2.0 Blog ***
http://webservices20.blogspot.com/2008/10/cryptic-wcf-error-messages-part-5-of-n.html
Misc *
http://stackoverflow.com/questions/1826955/getting-system-servicemodel-communicationobjectabortedexception-from-a-single-cli
http://geekswithblogs.net/SoftwareDoneRight/archive/2008/05/23/clean-up-wcf-clients--the-right-way.aspx
http://social.msdn.microsoft.com/Forums/en-IE/wcf/thread/97f7b58f-0b1d-442b-b4ee-d298585419c3

Tuesday, July 06, 2010

RIA Screen Layouts

Check out this SlideShare Presentation:
http://uxmag.com/design/rich-internet-application-screen-design

Seth Godin: The difference between running and managing a project

If you choose to manage a project, it's pretty safe. As the manager, you report. You report on what's happening, you chronicle the results, you are the middleman.

If you choose to run a project, on the other hand, you're on the hook. It's an active engagement, bending the status quo to your will, ensuring that you ship.

Running a project requires a level of commitment that's absent from someone who is managing one. Who would you rather hire, a manager or a runner?

http://sethgodin.typepad.com/seths_blog/2010/07/the-difference-between-running-and-managing-a-project.html

Wednesday, June 30, 2010

The Power of Saying "I Don't Know" - VerticalResponse

Imagine six business colleagues in a meeting and the leader of the meeting says: "Did everyone get the TPS report?" Everyone in the room nods. If you have no clue what a TPS report is and you’re like me, you raise your hand and say, "At the risk of sounding like an idiot, I don’t know what a TPS report is, can you elaborate?"

The leader then elaborates and you see a sign of quiet calm come over all of the people that now know what a TPS report is, because you asked. They wouldn’t risk looking like an idiot or risk showing a sign of weakness, but you actually showed a sign of strength.

In today's ultra competitive work environment, many people feel the need to be "super workers" and have an answer to every question. But, it's not always a good thing if you have people who work for you that are afraid to admit they don't know something, and it's the kind of behavior that can ultimately get you in trouble with potential clients.

I once worked with a guy who was a stereotypical Sales Shark! His problem? He sold whatever the prospect wanted, even if we didn’t have it. One particular prospect asked a ton of questions about our service and instead of saying "I don’t know if we can deliver that, I’ll check on it and get back to you," he said "Yes, we can do that." After closing and signing this pretty big deal, it turned out that the service that our new customer wanted wasn’t anything that we could deliver on. The customer wasn’t happy, which is the worst way to start a business relationship.

In another incident, I was recently on a conference call with someone who was trying to get our business. During the call, I asked this gentleman if he had seen the latest news on a company we were both tracking. He told me that he had, as I heard his fingers frantically scrambling on the keyboard for him to Google it and read it to me. Was I born yesterday? I don’t think so.

Why do people have to pretend to know everything? At my company, VerticalResponse, if we don’t know the answer to a question I encourage people to say, "I don’t know, but let me find out and get back to you with an answer." There is no value in dancing around something that isn’t true just to look good, because in the long run, if you’re wrong, you just look bad.

The Bottom Line: The Truth Doesn’t Hurt
I work in a male-dominated industry, so that’s probably the reason I see it happening with guys more than women. In any case, my opinion is those three little words are not any sign of weakness. Saying “I don’t know” is a sign of strength because it’s the most honest thing you can say.

It’s critical that your people/staff understand that they can actually earn respect by being confident in the fact that they aren’t expected to know every answer to every question. And your company can earn more business as a result.

The Power of Saying "I Don't Know" - VerticalResponse
Column by Janine Popick
February 11, 2010

Tuesday, June 29, 2010

WCF Security Articles


















WCF over HTTPS - Christophe Geers
http://cgeers.wordpress.com/2009/08/07/wcf-over-https/

  • Transport Security(basic)/HTTPS
  • UserNamePasswordValidator
  • ServerCertificateValidationCallback
9 simple steps to enable X.509 certificates on WCF - CodeProject
http://www.codeproject.com/KB/WCF/9StepsWCF.aspx?display=Print
  • Message Security(Certificate)/PeerTrust
Securing WCF Services with Certificates.- CodeProject
http://www.codeproject.com/KB/WCF/wcf_certificates.aspx
  • Message Security(Certificate)/ChainTrust
How To Configure WCF Security Using Only X.509 Certificates - CodeProject


http://www.codeproject.com/KB/webservices/WCFx509Security.aspx

  • TransportWithMessageCredential

  • Transport Security(Certificate)

  • Message Security(Certificate)
WCF certificate authentication under Windows Vista - Windows Live
http://romualdas.spaces.live.com/blog/cns!DCDC5E439E70339D!1006.entry?sa=894596551


  • Transport Security(Certificate)

  • PeerOrChainTrust/mapClientCertificateToWindowsAccount
Use Transport Security and Message Credentials - MSDN
http://msdn.microsoft.com/en-us/library/ms789011.aspx

  • WSHttpBinding + Transport Security (Code/Config)

  • NetTcpBinding + Transport Security (Code/Config)
WCF - 2 Way SSL Security using Certificates - Imaya's Blog
http://blogs.msdn.com/b/imayak/archive/2008/09/12/wcf-2-way-ssl-security-using-certificates.aspx


  • Transport Security (Certificate)
Thoughts on BasicHttpBinding, Security and SSL - Sajay MSDN Blogs
http://blogs.msdn.com/b/sajay/archive/2007/01/05/thoughts-on-basichttpbinding-security-and-ssl.aspx


  • BasicHttpBinding

  • UserNamePasswordValidator

  • TransportWithMessageCredential
Programming WCF Security - MSDN
http://msdn.microsoft.com/en-us/library/ms731925.aspx

Improving Web Services Security Guide - patterns & practices
http://wcfsecurityguide.codeplex.com


http://msdn.microsoft.com/en-us/library/ff648360.aspx

  • wsHttpBinding

  • Message Security

  • Certificates
Certificate Authentication - MSDN Forum
http://social.msdn.microsoft.com/forums/en-US/wcf/thread/4e12a513-ba7f-485d-93a7-2f093f1ccd8d

Misc
http://webservices20.blogspot.com/
http://wcfsecurity.codeplex.com/wikipage?title=How%20Tos

Books

http://www.readprint.com/
Free online books library for students, teachers, and the classic enthusiast.
 
http://webdesignledger.com/freebies/10-free-online-books-for-web-designers
10 Free Online Books for Web Designers | Freebies
 
http://www.infoq.com/resource/minibooks/domain-driven-design-quickly/en/pdf/DomainDrivenDesignQuicklyOnline.pdf
 
7 Freely available E-Books/Guides I found essential for .NET Programmers and Architects
http://amazedsaint.blogspot.com/2010/09/7-freely-available-e-booksguides-i.html

Seth Godin: Validation is overrated

If you're waiting for a boss or an editor or a college to tell you that you do good work, you're handing over too much power to someone who doesn't care nearly as much as you do.

We spend a lot of time organizing and then waiting for the system to pick us, approve of us and give us permission to do our work.

Feedback is important, selling is important, getting the market to recognize your offering and make a sale--all important. But there's a difference between achieving your goals and realizing your work matters.

If you have a book to write, write it. If you want to record an album, record it. No need to wait for someone in a cubicle halfway across the country to decide if you're worthy.

http://sethgodin.typepad.com/seths_blog/2010/06/validation-might-be-overrated.html

Pearls Before Swine: Expectations

325775.full (1)

Wednesday, June 23, 2010

IIS7: SSL Certificate binding issue

Problem

I recently tried installing a certificate into IIS7 on an new Windows 2008 server at work. The import went well but when I tried to bind a site to use the new certificate I got a dialog box with the following message

There was an error while performing this operation.

Details:A specified logon session does not exist. It may already have been terminated. (Exception from HRESULT: 0x80070520)

Solution

You have to check the "Allow this certificate to be exported" box when you import the certificate file to certificate store

Source

http://blog.freakcode.com/2009/02/iis7-certificate-binding-issue.html

Tuesday, June 22, 2010

SSIS: Unable to execute web service task

del.icio.us Tags: ,
Error
Microsoft.SqlServer.Dts.Tasks.WebServiceTask.WebserviceTaskException:
Could not generate the proxy for the specified Web service.
The following errors were encountered while generating the proxy: Source file 'C:\Windows\TEMP\xyz.cs'
could not be found . No inputs specified
 
Solution
Make sure that the account that the job is running under (the proxy account) has permissions to C:\Windows\TEMP.
 
Source
http://social.msdn.microsoft.com/Forums/en/sqlintegrationservices/thread/3249cb4e-00ea-419b-be90-d47394630673
 

WebDesign:: Icon Sources

del.icio.us Tags:
Graphs
http://graphs.nicer2.com/

Default Icon
http://www.defaulticon.com/bellocc.php?u=http://www.DEFAULTiCON.com/assets/defaulticon.zip
http://wizzart.at/stylekit/#http://wizzart.at/stylekit/Welcome.html
 

Wednesday, June 16, 2010

C#:: Code Factory



















































Split string in equal sized chunks
private IEnumerable<string> SplitIntoChunks(string text, int chunkSize)
{
int offset = 0;
while (offset < text.Length)
{
int size = Math.Min(chunkSize, text.Length - offset);
yield return text.Substring(offset, size);
offset += size;
}
}


source: http://stackoverflow.com/questions/1632078/split-string-in-512-char-chunks-c


 
Find the Date for the Start of the Week?

public static class DateTimeExtensions
{
public static DateTime StartOfWeek(this DateTime dt, DayOfWeek startOfWeek)
{
int diff = dt.DayOfWeek - startOfWeek;
if (diff < 0)
{
diff += 7;
}

return dt.AddDays(-1 * diff).Date;
}
}


source: http://stackoverflow.com/questions/38039/how-can-i-get-the-datetime-for-the-start-of-the-week


 
Chained null checks and the Maybe monad - CodeProject

OLD


string postCode = null;
if (person != null && person.Address != null && person.Address.PostCode != null)
{
postCode = person.Address.PostCode.ToString();
}


NEW



public static TResult With<TInput, TResult>(this TInput o, Func<TInput, TResult> evaluator)

    where TResult : class


    where TInput : class


{


    if (o == null) return null;


    return evaluator(o);


}



string postCode = this.With(x => person)

                      .With(x => x.Address)


                      .With(x => x.PostCode);


source: http://www.codeproject.com/KB/cs/maybemonads.aspx
 
C# Puzzlers

http://streaming.ndc2010.no/tcs/?id=E915B78B-D9B7-4CE9-96DA-2B794391AD2F