|
Πρόσφατες Δημοσιεύσεις
-
Maybe I am missing something here but I simply cannot find any reasonable explanation why VSTS 2008 sorts labels alphabetically and gives me NO CLUE as to the date the label was taken: Additionally I can find no way to......
|
-
Where they can be used?? In many places for example invoices, sales orders etc. One could tell that this is an easy task and maybe that assumption is right but let me write down some real world requirements that can prove the opposite to you. Invoices Number Uniqueness should be quarantine in a multi user environment Number number should be sequential Invoices numbers may have series (eg AB-1001 for invoices coming from store sales , EP-1001 for invoices coming from patient treatment) Starting number must be configurable. (eg need to start numbering at 5000 this year, and next year start at 7000) There should be a way to reuse numbers of deleted invoices Storage (table schema) of invoice numbers should be controlled by the user End user API should be very flexible and easy Of course whatever you build has to be available in both win and web platforms Now what you think? How much time do you need to build that? If you have some XAF experience it will be about only some hrs work to create a reusable code that fellow...
|
-
In this post I will be continuing my series of posts regarding data access methodologies/technologies that as I call them are pro ORM . I will be demonstrating how to use the connected and the disconnected data access models to retrieve,insert,update...( read more )...
|
-
不要想太多! I have two masterpieces today! Th......
|
-
Can you guess the output of the following code? var values = new List < int >() { 100, 110, 120 }; var funcs = new List < Func < int >>(); foreach ( var v in values) funcs.Add(() => v); foreach ( var f in funcs) Console .WriteLine(f()); If it's not "solved" I will post the answer in the next post......
|
-
In this post we will continue exploring the meaning of Polymorphism and the various ways we can implement Polymorphism in ASP.Net applications. In this post I demonstrated how to use Polymorphism through Inheritance and base instance classes. In this...( read more )...
|
-
In this post we will continue exploring the meaning of Polymorphism and the various ways we can implement Polymorphism in ASP.Net applications. In my previous post I demonstrated how to use Polymorphism through Inheritance and base instance classes. In...( read more )...
|
-
In one of my ASP.Net seminars I have been asked to give an example of the possible ways we can achieve Polymorphism in our ASP.Net applications. So I have decided to write a simple ASP.Net application that demonstrates the use of Polymorphism . I assume...( read more )...
|
-
This week, I've joined Devoteam Belgium as a .NET Consultant and Microsoft Trainer, focused on Windows Azure and Sharepoint and of course Trainings. It's been a great starting week, meet a lot of interesting people and found out that there are other MVPs working around me: Serge Luca (MVP Sharepoint , Microsoft Certified Trainer) Didier Danse (MVP Sharepoint) Kurt Roggen (MVP Management Infrastructure , Microsoft Certified Trainer) Which is really really cool. I'm looking forward to missions and trainings and I'm really happy to be here. Great people, great environment and a lot of positive vibe in the air. What can you ask more? PK....
|
-
If you’ve started developing websites using HTML 5 you will surely like this. W3C announced the official logo of HTML5 where you can insert into your HTML 5 built websites. Besides the HTML5 itself, there are also logos for the features and principles HTML5 is built around like semantics, offline and storage, CSS3 and more. Other than the logos in multiple formats (including vector), there is an online badge builder provided where you can customize the icons to be used, select its orientation and get an embed code to start using instantly....
|
-
Today we celebrated the new year in a special community event held at Microsoft Offices. First we had our usual discussions looking back at the community activities and then went on discussing what we could do more in order to engage more with the community. Finally we cut two cakes and two lucky guys woke out with an XBOX 360 with Kinect (unfortunately I wasn’t one of them). I was able to stream and record most of this event through my tablet’s 3G network connection. The quality isn’t the best due to the connection speed, still you can still get a glimpse of what went on, even if you couldn’t make it today. Watch live video from techaholics on Justin.tv...
|
-
Με αφορμή το http://twitter.com/Zoomicon/status/27647014502137856 απάντησα στη διαβούλευση της ΕΕ “Future EU co-financing of Natura 2000” http://ec.europa.eu/yourvoice/ipm/forms/dispatch?form=FinanceN2K (ανοικτή έως 17 Φεβρουαρίου 2011) τα παρακάτω: Future EU co-financing of Natura 2000 Meta Informations Creation date 19-01-2011 Last update date User name null Case Number 274425232540901911 Invitation Ref. Status N Language en Profile of the [...]...
|
-
In this post I am going to present a hands on example on how to use the QueryExtender web server control. It is built into ASP.Net 4.0 and it is available from the Toolbox in VS 2010.Before we move on with our example let me explain what this control...( read more )...
|
-
In this post I am going to present a hands on example on how to use the Chart web server control. It is built into ASP.Net 4.0 and it is available from the Toolbox in VS 2010.It is a very rich feature control that supports many chart types, had support...( read more )...
|
-
In this post, we see how to define specific actions to be executed before or after the execution of every call to a method in our code. This is also known as “ intercepting ” the execution of a method and is related to AOP (Aspect Oriented Programming). We will explore two different ways of achieving this: Using Microsoft’s Unity framework Using the PostSharp library CastleDynamicProxy is another library allowing you to intercept methods and resembles a lot to the Unity framework’s approach so it will not be described here. You can also use .NET framewrok’s Emit namespace or CodeDom to create your intercepting Proxy objects from scratch but this approach is out of the scope of this post. Aspect Oriented Programming deals with horizontal concerns in the specifications of your programs. Horizontal concerns are requirements that span through every business logic or specific behavior of your system. Take for example the following figure displaying some typical modules of an e-shop application. The classes...
|
-
In this post I will try to show you how to use the ImageMap web server control. This is going to be a very easy example. We will write no code but I will use the control to create navigation hotspots. 1) Launch Visual Studio 2010/2005/2008. Express editions...( read more )...
|
-
In this post I would like to continue talking about validation in ASP.Net applications. I will look into the validation controls that ASP.Net provides. You can have a look at the first post in my blog regarding validation. You will show you that we can...( read more )...
|
-
I am going to start a new series of posts and I am going to cover in depth all the validation mechanisms/techniques/controls we have available in our ASP.Net applications. As many of you may know, I am a Microsoft Certified Trainer and I will present...( read more )...
|
-
In this post, we see how we can add a DataBound image in the DataTemplate of a WPF ListBox. We experiment with three different approaches of achieving that and discuss on which one to use depending on the situation. In all cases, the image files are embedded within the application as “Resource” files. Later in this post, we will see what needs to be changed in order to support having the image files in a folder outside of the application Assembly. Our object for binding will be the class named Item having the following properties: public class Item { public int PictureID { get ; set ; } public string Name { get ; set ; } } We want to display a specific image depending on the value of the property PictureID. The ListBox in the .xaml file be: < ListBox ItemTemplate ="{ DynamicResource DataTemplateItem }" ItemsSource ="{ Binding Items }" /> The definition of the DataTemplate for the items of the ListBox is: < DataTemplate x : Key ="DataTemplateItem"> < Canvas...
|
-
Διαβάστε περισσότερα »...
|
-
Πολλές φορες έχω κάποιο αναδρομικό αλγόριθμο (p.x traversal ενός tree) και θέλω να τον εκτελέσω lazy. Δυστυχώς και σε F# (seq) και σε C# (iterators), οι αλγόριθμοι καταλήγουν σε quadratic time και πολλές φορες σε stack-overflows. Κουρασμένος από αυτή την κατάσταση, κατέληξα στο κάτωθι. open System.Collections open System.Collections.Generic // LazyList dataType + Monoid Structure type LazyList<'T> = Empty | Cons of 'T * (unit -> LazyList<'T>) | Delay of (unit -> LazyList<'T>) | Combine of LazyList<'T> * LazyList<'T> with interface IEnumerable<'T> with member self.GetEnumerator() = // tail-recursive enumeration let rec toSeq stack = match stack with | [] -> Seq.empty | head :: tail -> match head with | Empty -> toSeq tail | Cons (value, rest) -> seq { yield value; yield! toSeq <| rest () :: tail } | Delay f -> toSeq <| f () :: tail | Combine (first, second) -> toSeq <| first :: second :: tail (toSeq [self]).GetEnumerator() interface IEnumerable...
|
-
HTML5 Labs provides research projects from Microsoft that will come to our browsers in the recent future. There are a few interesting things in there... Stay in touch. It's been a great year 2010 and I am quite excited for the things that are about to come in 2011. One of these things are the new HTML5 labs that Microsoft has recently (21st of December) announced in their interoperability website. In there there are two new research projects: 1) Indexed DB 2) WebSockets Since there is no source code given out yet I am exploring these projects with Reflector. I suggest you do the same. IndexedDB is quite interesting as it provides new ideas on a field that there are already a few projects out there. It's a step beyond Silverlight's isolated storage and SterlingDB for Windows Phone. Now for the WebSockets project I am still not sure of their use and of what they provide exactly. There are some subtle differences in the way one has to code for them but all in all they seem just another WCF abstraction layer to me....
|
-
In this blog post I would like to talk about a new ASP.Net 4.0 feature, URL Routing . I know this issue has been explained from various people on the web but I will give my own example. We could implement routing since ASP.Net 3.5 SP1 but it was there...( read more )...
|
-
Πάντα είχα για κάποιο λόγο την εντύπωση ότι αν ο counter SQL Server:Memory Manager και ειδκότερα τα Total Server Memory & Target Server Memory, πρέπει να είναι τα ίδια. Πρέπει; Μάλλον όχι... :) Σήμερα κοιτώντας ένα νέο server όπου εγκαταστήσαμε το SQL που κάνει host την βάση του Microsoft Dynamics NAV (aka. Navision), παρατήρησα ότι τό Total Server Memory είναι κατά 20% λιγότερο από το Target Server Memory . Ψάχνοντας βρήκα στο MSDN ένα white paper όπου λέει ούτε λίγο-ούτε πολύ ότι αυτό δείχνει ότι ο server δεν είναι σε κατάσταση "stress" όπου χρειάζεται μνήμη για να αποδώσει καλύτερα. Σε συνδιασμό πάντα με τον δείκτη Buffer Cache Hit Ratio, που πρέπει να είναι όσο κόντά στο 100%, είστε σε καλό δρόμο για να λύσετε αυτό το μυστήριο.... αν ήταν ποτέ για εσάς! Το εν λόγω μπορείτε να το βρείτε στο SQL Performance Tuning Waits and Queues Καλή χρονιά να έχουμε όλοι με υγεία! V Διαβάστε περισσότερα »...
|
-
Τελικά ο Αη Βασίλης ήρθε και για μένα. Για δεύτερη χρονιά μου απονεμήθηκε ο τίτλος του MVP στον SQL Server. Αυτό σημαίνει περισσότερες ευθύνες για μένα, αλλά ευχάριστες. Η χρονιά αυτή θα συνεχιστεί με περισσότερη δράση και περισσότερα SQL Saturday Nights. Καλή Χρονιά σε όλους και σας ευχαριστώ για την υποστήριξη v...
|
|
|
|