|
Mirrored Weblogs
-
It was only last week, when I talked about Windows Azure mobile services in a Read more...
|
-
At ClipFlair Studio (a Silverlight app), I had some time ago implemented a confirmation warning upon user trying to close the webpage (when it was running inside the web browser), which then had stopped functioning. It seems at some refactoring I had added code like the following: var activityView = activityView(); and it was failing […]...
|
-
What an honor being part of this team running the largest Tech event in Greece. Preparations Read more...
|
-
Microsoft.Net.Http was released today as a stable NuGet package. Yep, that’s right: You can finally Read more...
|
-
The other day my Microsoft Wireless Laser Mouse 6000 (was either a gift from Microsoft Hellas or had ordered it myself from Microsoft Company Store with the credit Microsoft used to give pro-crisis to MVPs) started behaving erratically, failing most of the times to right-click and sometimes doing left clicks instead with some delay, or […]...
|
-
If you have an e-mail account @otenet.gr you may find out that when connecting your laptop to another network (say you’re travelling) you can’t send SMTP e-mails. To fix this make sure you set your STMP server settings to use SSL encryption and provide the port number 465 for connection. If you use Outlook (Express) […]...
|
-
In this post we will see a simple code fragment that can be used to detect memory leaks (more specific objects that are not cleaned by the garbage collector) and we will do it in the context of an interesting memory leak that can be created when using event delegates. The memory leak with event delegates Suppose you have an application in WPF with a single window that presents some money values in a specific currency (say EURO). At a specific instance you may have more than one such windows open. Now a requirement comes that defines that you need to be able to change the currency (say from euro to dollar) and have this change be reflected immediately to any currently open window displaying the money value. One easy way to tackle this is shown in the following figure: The "settings" object is static with a static property "Currency" with the current currency and an event called "OnCurrencyChanged" that is fired when the currency is changed. The "Window" class ("window1" nad "window2" objects) defines a method "currencyChanged"....
|
-
Now that my blogging engine is back on track it’s time for the long awaited Read more...
|
-
In this post we will explore a generic way of handling unpredicatble errors/lost connectivity in our Windows 8 Apps developed with HTML5 and Javascript. The two requirements we need to tackle are as follows: There is a chance that while our application is running, internet connectivity will be lost. We need to know when this happens in order to inform the user and possibly handle the problem while preserving application state. Unpredicatble errors may occur that will cause a general exception. We need to "catch" those errors, informing the user with a generic (and apologetic) error message and maybe transmit some useful details about the error to a service we have implemented for this purpose. Handling internet connectivity problems First we need a way to verify whether the app has connectivity to the internet. This can be done by using the following function: utilities.isConnected=function() { var connectivity=Windows.Networking.Connectivity; var profile = connectivity.NetworkInformation.getInternetConnectionProfile();...
|
-
I can think many reason why Security is necessary when developing even the simplest online shop backend. I will not elaborate them but I will concentrate on how to empower the application prototype we created for our DXSK8 e-shop with a flexible Security System . Note that after this we really close to first paycheck I remind you that in previous post we applied a XAF layer(rich application) over an EF model located in an external lib (DSK8.Service). Now we will extend the same EF model to support XAF’s Security System . 1) Design Entity Framework Model for the Security System objects. XAF’s Security system uses Users, Roles and Permissions to configure both the data access and the UI generation for both platforms! This is done with the help of a few system interfaces such as : User: ISecurityUser , IAuthenticationStandardUser , IOperationPermissionProvider Role:, IOperationPermissionProvider . Our EF model from the DXSK8.Service project already contains an Employee entity which is perfect to take the role of...
|
-
One of our ClipFlair Studio users reported on having some issue trying to install Silverlight on MacOS-X, so I gathered some related info below: First of all, at the Silverlight installation webpage, at the System Requirements tab, you can find the following requirements: Macintosh (Intel-based) Intel Core Duo 1.83-gigahertz (GHz) or higher processor […]...
|
-
As you may have already read, a couple of months back I migrated my blog Read more...
|
-
In Part 1 of this series I’ve shown you how easy it was to build Read more...
|
-
I’ve been using RSS feed aggregators most of my life and have tried pretty much Read more...
|
-
Great news arrived this week, I’ve been selected to participate as a product subject matter expert Read more...
|
-
XAF already provides strong and flexible validation for any object that fits specified Rules with build-in the Validation Module . In this post you can find a sample XAF application which extends the Validation to provide support for Warning/Information messages. The implementation uses any Validation Business Rule that exists in XAF’s Application Model . Below we see the default ones but its applicable to custom business rules as well. The sample code extends the Application Model of IModelRuleBase and by using one more property like RuleType marks the rule as warning or information as shown: When the Validation occurs this implementation will not raise exceptions for Warning and Information Rules and will change their notification icon accordingly. Windows Web By default, it is also possible to create business rules that evaluated when an object is changed by using the ObjectSpaceObjectChanged custom context (see also Contextual Validation Concepts ). To use this RuleType functionality discussed today...
|
-
Imagine that we have already build a mobile app using DXTREME such as the DXSK8 demo and already have a ready-to-use Entity Framework data model. Now we are faced with a task to provide a rich administrative application that will be mainly used in Intranet from the desktop (Windows) or web browser. This application should have a typical CRUD UI for managing goods in an online shop, content on our main web site, etc. and of course have potential for future extensibility and customization by a customer request. Following the instructions of this post it should be easy to do it your self from scratch in less than five minutes! (Sample app at then end of this post). 1) Create a XAF Cross-platform application Create a new XAF solution called DXSK8.Admin by using the DXperience v12.2 XAF Cross-Platform Application project template as shown below. Below we see the created solution which contains two ready to run XAF applications ( DXSK8.Admin.Win, DXSK8.Admin.Web ) and three empty XAF modules where the DXSK8.Admin.Module...
|
-
Recently we made the decision to clone our Winforms VideoRent real world application and create a new XAF application – the XVideoRental . Wearing my LEGO designer hat I will go through all migration steps as if I were in your shoes. XVideoRental uses only a small part of XAF tooling –> Native modules + Code Central examples + open sourced project and community resources . All the time invested was for gathering ready to use implementations and putting them in a reusable project agnostic library . In addition since all these ready to use implementations exist already in our community project ( eXpand ) we created a second open source version of XVideoRental where this project agnostic library does not exist so we consumed even less resources for building it! As you can read in the overview post the XVideoRental contains almost zero designed time code and everything is described declaratively in XAF’s Application Model xafml file, allowing full customization after distribution. Real world applications are really...
|
-
Πρόσφατα η Γενική Γραμματεία Καταναλωτή (http://www.efpolis.gr) είχε καταδικάσει τις εταιρείες με τα ενεργειακά (τάχα μου) βραχιολάκια όπως διαβάζει κανείς στο παρακάτω: http://www.ethnos.gr/article.asp?catid=22768&subid=2&pubid=63733163 Πρόστιμα συνολικού ύψους 350.000 ευρώ σε πέντε εταιρείες για προώθηση και διάθεση προς πώληση ενεργειακών βραχιολιών με αναληθείς ισχυρισμούς, επέβαλε η Γενική Γραμματεία Καταναλωτή. Πρόκειται για βραχιόλια με διάφορες εμπορικές επωνυμίες (Power Balance, [...]...
|
-
Link to pastebin object TicTacToeTomek { def solve(arr: List[List[Char]]) : String = { def checkWin(a: List[Char]) : String = { val o = a.filter(c=>c=='O').length val x = a.filter(c=>c=='X').length val t = a.filter(c=>c=='T').length if(o+t==4) return "O won" else if(x+t==4) return "X won" else return null } for(i<-0.to(3)) { val h = arr(i) val hres = checkWin(h) if(hres!=null) return hres val v = List(arr(0)(i),arr(1)(i),arr(2)(i),arr(3)(i)) val vres = checkWin(v) if(vres!=null) return vres } val d1 = List(arr(0)(0),arr(1)(1),arr(2)(2),arr(3)(3)) val d1res = checkWin(d1) if(d1res!=null) return d1res val d2 = List (arr(0)(3),arr(1)(2),arr(2)(1),arr(3)(0)) val d2res = checkWin(d2) if(d2res!=null) return d2res arr.foreach(a=>a.foreach(c=>if(c=='.') return "Game has not completed")) return "Draw" } def main(args: Array[String]):Unit = { val T = readLine().toInt for(i<-1.to(T)) { val arr = List[List[Char]](readLine().toList,readLine().toList,readLine().toList,readLine().toList)...
|
-
Seems StartsWith and EndsWith methods of String class in .NET are missing a version that accepts multiple (as an array) prefixes or suffixes respectively when testing the string. To achieve this I just added the following extension methods to StringExtensions class (of Utils.Extensions namespace) under Utils.Silverlight project at the ClipFlair source code. public static bool [...]...
|
-
Great news arrived yesterday and it wasn’t an April fools joke I was re-awarded the Read more...
|
-
Below is my implementation of a Dynamic Service Locator ServiceLocator.scala import scala.reflect.runtime.{universe => ru} trait ServiceLocator { def getService[T](implicit t: ru.TypeTag[T]) : T def registerService[T](obj: T)(implicit t: ru.TypeTag[T]) : Unit } ServiceLocatorImpl.scala import scala.reflect.runtime.{ universe => ru } import scala.reflect.runtime.universe.Type class ServiceLocatorImpl extends ServiceLocator { val rep = new scala.collection.mutable.HashMap[reflect.runtime.universe.Type, Any]() private def internalServiceSearch(t: Type): Option[Any] = { val tpe = t for { s <- rep.keys if (s <:< tpe || s =:= tpe) } return Some(rep(s)) None } def getService[T](implicit t: ru.TypeTag[T]): T = { val res = internalServiceSearch(t.tpe) res match{ case None => throw new Exception("Service not found") case _ => res.get.asInstanceOf[T] } } def registerService[T](obj: T)(implicit t: ru.TypeTag[T]): Unit = { if (internalServiceSearch((t).tpe) == None) rep.put(t.tpe, obj.asInstanceOf[Any])...
|
-
oday I had the chance to talk about Windows Azure Mobile Services to a Windows Read more...
|
-
Just added the following extension methods to StringExtensions class (of Utils.Extensions namespace) under Utils.Silverlight project at the ClipFlair source code. public static string ReplacePrefix( this string s, string fromPrefix, string toPrefix, StringComparison comparisonType) { return (s.StartsWith(fromPrefix, comparisonType)) ? toPrefix + s.Substring(fromPrefix.Length) : s; } public static string ReplacePrefix( this string s, string[] fromPrefix, string toPrefix, [...]...
|
|
|
|