aloker

Stories submitted by friends of aloker

Get Processor Information In .NET Using C# (onedotnetway.com)

submitted by deepakkapoordeepakkapoor(430) 3 years, 2 months ago

I recently had a requirement to programmatically detect the number of Processors on a machine. I thought this was a simple enough task. System.Environment.ProcessorCount gives me that information. But I was in for a surprise. Let me walk you through my findings. read more...

add a comment |category: |Views: 81

tags: another

Writing Windows Forms Client for Live Search(onedotnetway.com)

submitted by deepakkapoordeepakkapoor(430) 3 years, 3 months ago

In this article we will look at how to write a Windows Forms Client to access Microsoft Live Search API. Via this API you can use the power of a giant search engine within your application. While developing our application we will see that the overall design of the API is simple and easy to work with. read more...

1 comment |category: |Views: 18

tags: another

Remove Duplicate Lines From A Text File Using LINQ(onedotnetway.com)

submitted by deepakkapoordeepakkapoor(430) 3 years, 5 months ago

A question was posted on c-sharpcorner forums asking how you would remove duplicate lines from a text file. It got me thinking about how this problem could be addressed using LINQ. read more...

add a comment |category: |Views: 86

tags: another

Dynamic Sort With LINQ To SQL(onedotnetway.com)

submitted by deepakkapoordeepakkapoor(430) 3 years, 6 months ago

Sometime ago I wrote a post showing how to do dynamic sort with LINQ. That approach worked well with LINQ To Objects. Today I spotted a question on the forums where Levi asked a question about doing dynamic sorts with LINQ To SQL. My earlier approach will work once all the data is retrieved on the client side. This of course is not an ideal way. A better option is to do sorting on database. read more...

add a comment |category: |Views: 81

tags: another

Enum Support With LINQ To SQL And SqlMetal (onedotnetway.com)

submitted by deepakkapoordeepakkapoor(430) 3 years, 6 months ago

As a programmer I love my enums. I find code written using enums to be more readable than without them. However, there has been and there still is a disconnect between lookup tables in a database and enums in code. One has to restore to some creative trickery to get them working in harmony. Recently while working on a project which involves using LINQ To SQL, I came up with a process which gives me the best of both worlds i.e. using lookup tables in database and enums in code. I am documenting my solution here. Hopefully it will help you. read more...

add a comment |category: |Views: 177

tags: another

Writing Visual Studio 2010 Shell In WPF Reflects Confidence(onedotnetway.com)

submitted by deepakkapoordeepakkapoor(430) 3 years, 6 months ago

Since its inception as Avalon I have dedicated countless hours to the technology we now know as WPF. I can probably say that I am one of the few people who have worked on WPF at a commercial level at least in Australia. This is because the number of projects using WPF have been scarce. And I was fortunate to get involved because of my community work around WPF. I have also tried to convince clients to go with WPF as the preferred choice over Windows Forms. I will admit that I have not been very successful in doing this. The main reason I believe is that WPF has suffered with lack of confidence. While the push has been there from Microsoft, somehow it has not come across very well. We all know about demos about spinning text boxes and playing videos in buttons. These I must say have not conveyed the benefits of WPF to business gracefully. Even though Microsoft has used WPF for their Expression products, it just has not been enough. read more...

add a comment |category: |Views: 36

tags: another

Free LINQ To SQL Training In Sydney(onedotnetway.com)

submitted by deepakkapoordeepakkapoor(430) 3 years, 6 months ago

I am running a LINQ To SQL Training day on Saturday November 8th at Microsoft Office in North Ryde. The course is FREE for anyone to attend but there are only 20 places available. So if have not yet jumped into the wonderful world of writing LINQ queries. If you are considering LINQ To SQL for your project. If you think that you need a head start on LINQ To SQL. Then attend this one day course and give yourself a LINQ To SQL confidence boost. read more...

add a comment |category: |Views: 3

tags: another

Microsoft Web Platform Installer Beta(co1piltwb.partners.extranet.microsoft.com)

submitted by mdoppmdopp(856) 3 years, 7 months ago

Making the Microsoft Web Platform Install like Microsoft Office Suite, More... read more...

add a comment |category: |Views: 8

tags: another

Dynamically Add Text to Images Retrieved from the Database(dotnetcurry.com)

submitted by mdoppmdopp(856) 3 years, 7 months ago

We often create applications where we retrieve images from the database and display it on the page. At times, we may need to add some text or a copyright notice dynamically on the images. This article discusses how to do so using an ASP.NET Http Handler. more... read more...

add a comment |category: |Views: 10

tags: another

View T-SQL Query Generated By LINQ To SQL(onedotnetway.com)

submitted by deepakkapoordeepakkapoor(430) 3 years, 8 months ago

While working with LINQ To SQL there are times when you are interested in looking at the query which will be executed on the database. This post will cover different ways you can capture the query generated by LINQ To SQL. read more...

add a comment |category: |Views: 342

tags: another

Google Trashes their own do no evil policy with Chrome(joelevi.com)

submitted by mdoppmdopp(856) 3 years, 8 months ago

By writing a blog post, or uploading an image to Flickr you are giving Google permission to use it however they want. Without any attribution. Without any compensation. Anywhere in the world. Forever. And you can’t revoke it. more... read more...

add a comment |category: |Views: 13

tags: another

A Dynamic Menu For Your Dynamic Data(mattberseth.com)

submitted by mdoppmdopp(856) 3 years, 8 months ago

I thought it would be interesting to see what it would take to create a menu for navigating the tables in the site. I was particularly interested in seeing if I could get some grouping or categorization to the metadata so I could create a multi-leveled menu. more... read more...

add a comment |category: |Views: 139

tags: another

Get A List Of Installed Applications Using LINQ And C#(onedotnetway.com)

submitted by deepakkapoordeepakkapoor(430) 3 years, 8 months ago

To get a list of installed applications we need to look into registry. Microsoft.Win32 namespace contains objects which can be used to work with Windows Registry. In this post I will show you some code where I use the power of LINQ to retrieve and display a list of all applications installed on a machine. read more...

add a comment |category: |Views: 38

tags: another

Program File Editor An Oldie but a Goodie(mikedopp.com)

submitted by mdoppmdopp(856) 3 years, 9 months ago

When I started at my first true getting paid to write complex batch, command files, inf scripts as well as long html/xhtml/xml scripting. I was using notepad and had many syntax errors due to lack of syntax outlining like a great IDE that I couldn’t afford. That is when my boss pointed me to a great little application call Program File Editor. I was amazed by the ability of this robust little application. more.. read more...

add a comment |category: |Views: 7

tags: another

Tutorial Reading A Text File Using LINQ | One .Net Way(onedotnetway.com)

submitted by deepakkapoordeepakkapoor(430) 3 years, 9 months ago

At times us developers have to deal with delimited text files in our applications. Such files have been around since yonks and I often come across data import/export tasks where delimited files are used. Till now the common way in .NET has been to read each line and then extract data using some sort of creative string functions within for loops. But there is another way by using LINQ. In this tutorial I will show you how to use LINQ to read such data. By the end of tutorial you will appreciate how easy and logical it is to use LINQ for reading data from delimited text files. read more...

add a comment |category: |Views: 206

tags: another

An Open Letter to Scott Guthrie(elegantcode.com)

submitted by deepakkapoordeepakkapoor(430) 3 years, 9 months ago

Thank you for your team’s contributions to the software development industry. ASP.Net, the CLR, and your other significant additions to the .Net platform have genuinely advanced the state of software development. Although it may seem that you are damned if you do and damned if you don’t, most of us developers out here do appreciate your work. read more...

1 comment |category: |Views: 28

tags: another