|
Πρόσφατες Δημοσιεύσεις
-
In this post, we will see how easy it is to create an XNA world for Windows Phone 7 that obeys the laws of physics. To our quest, our weapon will be the Farseer physics engine. You will be amazed when you realize how interesting a simple circle on the phone’s display becomes when you add some physics to its world! So let our quest begin… Download the zip file from the project’s site . Unzip its contents and locate the folder containing the sources of the Farseer engine (at the time of this writing the folder is named “Farseer Physics Engine 3.2 XNA”). Open Visual Studio and create a new project of “Windows Phone Game'” type ( important note: if you are a newbie in XNA game development you are strongly encouraged to follow this series of blog posts and also download the developer tools from here ). The game we will be making will be as follows: The user sees a sprite on the screen and it gives momentum to the sprite (yellow ball) by applying a gesture to the phones display. The sprite should be bouncing at randomly...
|
-
Lately, several posts (e.g. http://www.1800pocketpc.com/2011/01/09/windows-phone-7-3g-woes.html) were mentioning issues with overcharging related to cellular data connection usage of Windows Phone 7. From what I read later on, after looking into those incidents, Microsoft said that a certain popular application has been identified that was exchanging too much data without need and they’re working with its manufacturer [...]...
|
-
So far in all my posts, I have never mentioned anything about how to implement authentication/authorisation mechanisms in a web site. In all our professional web applications we do need some sort of mechanism to verify who are users are and what privileges...( read more )...
|
-
In this post, I will try to show you how to display xml data in asp.net website after making some xslt transformations. You will need to know a few things about XSLT. The best place to find out about XSLT is this link . I am going to explain a few things...( read more )...
|
-
Some features are meant for the advanced users, some for the lazy. The mouse "Snap To" default button option is so poorly implemented (in Windows at least) that it is potentially dangerous. I enabled it for some testing. Later I......
|
-
I was involved in designing and implementing an ASP.Net application some time ago. After we deployed the application we wanted to monitor various aspects of the application. We can use the Performance Monitor. In my windows Server 2008 machine, I go to...( read more )...
|
-
In this post I am going to show you something that we see in most websites. When we visit a website we are given the choice through a control to select the theme(colors,font size,font family) that we want to be applied to the site. In almost all asp.net...( read more )...
|
-
In my last ASP.Net seminar someone noticed that we did not talk at all about the XmlDataSource,ListView,DataPager web server controls. It is rather impossible to investigate/talk about all issues regarding ASP.Net in a seminar but I promised to write...( read more )...
|
-
Here is a screenshot of Process Explorer from my workstation. From this photo, which is intentionally small, the one with the appropriate understanding should be able to derive that Process Explorer has a serious flaw, or so I think :-)......
|
-
In this post I will demonstrate how to extend the functionality of the web server controls by adding client side functionality with Javascript. Let's move on to our example. 1) Launch Visual Studio 2010/2008/2005. (express editions will work fine). Create...( read more )...
|
-
In this post I will demonstrate with a hands on example how HTML elements in an .aspx page can be processed exactly like standard ASP.Net server controls. Basically how to make them accessible from server side code. 1) Launch Visual Studio 2010/2008/2005...( read more )...
|
-
This is my first real technical article! If you are involved in the security and surveillance business, please give me some feedback (on either version) because we plan to release it on other important sites as well. Thanks in advance!......
|
-
In this post I will continue exploring ways on how to profile database activity when using the Entity Framework as the data access layer in our applications. If you want to read the first post of the series click here . If you want to read the second...( read more )...
|
-
Την Τετάρτη 26 Ιανουαρίου είχα την τιμή και τη χαρά να παρουσιάσω ένα session στα πλαίσια του κύκλου DevDays11 των τεχνικών παρουσιάσεων που διοργανώνει η Microsoft Hellas. Η ημερίδα είχε γενικό τίτλο “DevDays11 - The Code of Honor - Σχεδιάζοντας και Προγραμματίζοντας Σωστά!” και δεν ήταν technology oriented όπως συνήθως αλλά είχε ως θέματα τις σύγχρονες αρχιτεκτονικές, τις επιλογές που καλείται να κάνει κάποιος που υλοποιεί μια εφαρμογή και το πως γράφουμε σωστά κώδικα ώστε να δημιουργήσουμε εφαρμογές εύκολες στη συντήρηση. Το δικό μου session είχε δύο κύριους άξονες, ο πρώτος ήταν σχετικά με την ποιότητα του κώδικα που βρίσκουμε από διάφορες εξωτερικές πηγές και πώς αυτός επιδρά στην εφαρμογή μας. Ο δεύτερος ήταν το πώς οι τυπικές τακτικές – όπως για παράδειγμα ο κώδικας που μας δείχνει το MSDN – μας οδηγούν να φτιάξουμε εφαρμογές που χαρακτηρίζονται από δυσκολία στην συντήρηση. Μέσα από ένα παράδειγμα μιας Silverlight εφαρμογής, έδειξα πώς μπορούμε να χρησιμοποιήσουμε τα design patterns και πόσο βοηθάει το...
|
-
In this post I will continue exploring ways on how to profile database activity when using the Entity Framework as the data access layer in our applications. I will use a simple asp.net web site and EF to demonstrate this. If you want to read the first...( read more )...
|
-
What Locking is all about Transactional isolation is usually implemented by locking whatever is accessed in a transaction. There are two different approaches to transactional locking: Pessimistic locking and optimistic locking. The disadvantage of pessimistic locking is that a resource is locked from the time it is first accessed in a transaction until the transaction is finished, making it inaccessible to other transactions during that time. If most transactions simply look at the resource and never change it, an exclusive lock may be overkill as it may cause lock contention, and optimistic locking may be a better approach. With pessimistic locking, locks are applied in a fail-safe way. In the banking application example, an account is locked as soon as it is accessed in a transaction. Attempts to use the account in other transactions while it is locked will either result in the other process being delayed until the account lock is released, or that the process transaction will be rolled back. The lock...
|
-
If you’re developing a GPS enabled app for Windows Phone 7 you will surely appreciate the Windows GPS Emulator application. The Windows Phone GPS Emulator consists of a small WPF application and a WP7 DLL and allows you to create complex paths that you can play back just as if you were driving or walking. With it you can debug your application on the emulator or a real device without leaving the comfort of your home or office. Once you’ve completed your testing and debugging, you only need to change a single line of code to switch the device back to real GPS. The download includes: The Windows GPS Emulator application The Windows Phone GPS Emulator Client DLL A simple Windows Phone Test client An end-to-end Windows Phone App using Bings maps (a more complex sample) You can download it from APP HUB Oh how I wish I had a WP7 phone…...
|
-
I have been teaching ASP.Net and EF in one of my classes and I have been asked on the various ways we can profile database activity. Everyone that I know that uses EF as its data access layer has the same question. "How can I see the T-SQL code that the...( read more )...
|
-
When you work as a freelancer and are a father of two young boys it’s almost impossible finding a place at home where you can concentrate and work. So most of the times you end up at some local Wi-Fi enabled coffee shop enjoying a cup of coffee while tapping code on the keyboard. But what happens if you want to meet and talk with a client? So you can understand my excitement when I read about Joey’s discovery, Cloud Free Agent Espresso Bar , a place in Toronto Canada where you can have a coffee and work or host a business meeting if you have to. This got me searching through the internet to see if something similar was available in Greece and so that you know there’s actually a similar place in Athens Greece and it’s called coLabWorkspace . Although this place has a different business model from a coffee shop (coffee is free but you’re charged by the hour) and although it’s pretty expensive (in a coffee shop you can order coffee and sit there for hours, while in coLab you pay by the hour) can be used for the same...
|
-
In this post, we will see a simple implementation of a REST service.The service will consist of only one method and it can be consumed from your websites, directly from your browser or from a Desktop application. When implementing a service you need to specify the following: The service contract (the methods it offers). How do you know which one to access from the URL given (URL Routing). The implementation of the service. How you will host the service. Defining the Contract Create a new Class Library Project and call it “RESTService.Lib”. Add references to “System.ServiceModel” and “System.ServiceModel.Web”. Create an Interface class called IRESTDemoServices and add the definitions of the methods that represent the services offered. Our interface will offer just one service as follows: public interface IRESTDemoServices { string GetClientNameById( string Id); } In order to tell the framework to treat this interface as a service we need to decorate it as follows: [ ServiceContract...
|
-
Have you seen this? Check it out on codeplex !!! The Microsoft All-In-One Code Framework is a free, centralized code sample library provided by the Microsoft Community team. The goal is to provide typical code samples for all Microsoft development technologies. The team listens to developers’ pains in MSDN forums, social media and various developer communities and write code samples based on developers’ frequently asked programming tasks. Additionally, there is a free code sample request service you could take advantage in order to request specific code. Check out the video…...
|
-
A lot of interesting things have been going on lately on the Windows Azure MVP list and I'll be try to pick the best and the ones I can share and make some posts. During an Azure bootcamp another fellow Windows Azure MVP, had a very interesting question "What happens if someone is updating the BLOB and a request come in for that BLOB to serve it?" The answer came from Steve Marx pretty quickly and I'm just quoting his email: "The bottom line is that a client should never receive corrupt data due to changing content. This is true both from blob storage directly and from the CDN. The way this works is: · Changes to block blobs (put blob, put block list) are atomic, in that there’s never a blob that has only partial new content. · Reading a blob all at once is atomic, in that we don’t respond with data that’s a mix of new and old content. · When reading a blob with range requests, each request is atomic, but you could always end up with corrupt data if you request different ranges at different times and stitch them...
|
-
In this post I will be writing LINQ queries against an array of strings, an array of integers.Moreover I will be using LINQ to query an SQL Server database. I can use LINQ against arrays since the array of strings/integers implement the IENumerable interface...( read more )...
|
-
With the introduction of LINQ and its many flavours, developers started using this ORM technology to perform queries against an xml document, an sql server database, a in-memory collection of objects. They were fascinated by its general purpose and its...( read more )...
|
-
A fellow Windows Azure MVP, Rainer Stroper , had a very interesting case recently were he got a "reached quota" message for his SQL Azure database, although the query was indicating he was using about ~750MB on a 1GB size Web Edition database. The problem was narrowed done to a bug in the documentation ( http://msdn.microsoft.com/en-us/library/ff394114.aspx ) and the correct one to use is this, as per Microsoft's Support suggestion: SELECT SUM(reserved_page_count)*8.0/1024 + SUM(lob_reserved_page_count)*8.0/1024 FROM sys.dm_db_partition_stats in order to take accruate metrics. Be sure you use that, so you won't have any unpleasant suprises. PK....
|
|
|
|