Καλώς ορίσατε στο dotNETZone.gr - Σύνδεση | Εγγραφή | Βοήθεια

 

Αρχική σελίδα Ιστολόγια Συζητήσεις Εκθέσεις Φωτογραφιών Αρχειοθήκες

Πρόσφατες Δημοσιεύσεις

  • Μεταφοραί μετακομίσεις "Ο Ζαχαρίας"

    Μπορείτε να διαβάζετε πλέον τις περιπέτειες του Ζαχαρία στη διεύθυνση www.triakilakodika.gr (ψιτ, έχει και καινούριο επεισόδιο)....
  • Migrating a legacy real world application

    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...
    15-04-2013, 02:56 από A.Bekiaris's .Net / XAF Blog στο A. Bekiaris's Blog
    Δημοσίευση στην κατηγορία: ,
  • Vita: ενεργειακά βραχιολάκια και χάντρες για τους ιθαγενείς

    Πρόσφατα η Γενική Γραμματεία Καταναλωτή (http://www.efpolis.gr) είχε καταδικάσει τις εταιρείες με τα ενεργειακά (τάχα μου) βραχιολάκια όπως διαβάζει κανείς στο παρακάτω: http://www.ethnos.gr/article.asp?catid=22768&subid=2&pubid=63733163 Πρόστιμα συνολικού ύψους 350.000 ευρώ σε πέντε εταιρείες για προώθηση και διάθεση προς πώληση ενεργειακών βραχιολιών με αναληθείς ισχυρισμούς, επέβαλε η Γενική Γραμματεία Καταναλωτή. Πρόκειται για βραχιόλια με διάφορες εμπορικές επωνυμίες (Power Balance, [...]...
  • Google Code Jam 2013 Qualifiaction Round Prob 1 Tic-Tac-Toe-Tomek in Scala

    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)...
    14-04-2013, 19:05 από Iraklis Blog στο Iraklis Blog
    Δημοσίευση στην κατηγορία: , , , , , , ,
  • You are locked out from a SQL Server instance ? - A Guide How to survive

    Για διάφορους λόγους και διάφορες αιτίες όλα τα accounts που είχες και μπορούσες να μπεις σε ένα SQL Server instance σαν sysadmin είτε είναι κλειδωμένα είτε έχεις ξεχάσει τα paswords και πρέπει να κάνεις δουλειά τότε τι κάνεις; more...
    08-04-2013, 19:44 από το μέλος Antonios Chatzipavlis στο Rocking with Knowledge for .NET programming
  • .NET String extension methods to check for array of prefixes or suffixes

    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 [...]...
    05-04-2013, 22:51 από George Birbilis @zoomicon στο George Birbilis' blog
    Δημοσίευση στην κατηγορία: , , , , , , , , , , , , ,
  • Windows Azure MVP re-awarded

    Great news arrived yesterday and it wasn’t an April fools joke I was re-awarded the Read more...
    02-04-2013, 14:10 από Κ# on Cloud στο K#
    Δημοσίευση στην κατηγορία:
  • Scala Repository Locator

    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])...
    31-03-2013, 07:09 από Iraklis Blog στο Iraklis Blog
    Δημοσίευση στην κατηγορία: ,
  • Talking about Windows Azure Mobile Services at CodeDammit

    oday I had the chance to talk about Windows Azure Mobile Services to a Windows Read more...
    30-03-2013, 12:36 από Κ# on Cloud στο K#
    Δημοσίευση στην κατηγορία:
  • .NET String class extensions to replace prefix or suffix

    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, [...]...
    26-03-2013, 17:47 από George Birbilis @zoomicon στο George Birbilis' blog
    Δημοσίευση στην κατηγορία: , , , , , , , , ,
  • Fix: remove ‘optimized for Bing and MSN’ from IE titlebar

    Seems some Microsoft software (probably Bing bar) version is changing Internet Explorer title bar to write “optimized for Bing and MSN”. To remove this: Use Start/Run or Start/Find and type there regedit then press ENTER to launch the Registry Editor. At the tree on the left navigate to HKEY_CURRENT_USER\Software\Microsoft\Internet Explorer\Main At the right handside of [...]...
    20-03-2013, 18:39 από George Birbilis @zoomicon στο George Birbilis' blog
    Δημοσίευση στην κατηγορία: , , , , , , ,
  • Parameter Sniffing – What is and How to deal with it

    Ένα από τα θέματα που σε κάποιες περιπτώσεις μας έχει ταλαιπωρήσει ιδιαίτερα αν δεν το γνωρίζουμε είναι το parameter sniffing. Έχω κατά καιρούς διαβάσει και δει διάφορες προτάσεις για την αντιμετώπιση του. Επειδή όμως δεν ήθελα απλά να το περιγράψω σε ένα ίσως μακροσκελές κείμενο αποφάσισα να το κάνω ένα web cast που ζωντανά δείχνω όλο το θέμα χωρίς slides αλλά με παραδείγματα. Enjoy it. http://www.sqlschool.gr/blog/parameter-sniffing-–-what-is-and-how-to-deal-with-it-921.aspx...
    11-03-2013, 00:53 από το μέλος Antonios Chatzipavlis στο Rocking with Knowledge for .NET programming
  • Moving the largest Greek bookstore to the cloud

    t’s been a while since my last post and that’s because we were in the Read more...
    09-03-2013, 11:02 από Κ# on Cloud στο K#
    Δημοσίευση στην κατηγορία:
  • Socialized XAF

    XAF community is really active, there are many places where you can participate in XAF related conversations, ask for dedicated help from other devs etc. Depending on your choice, to follow anything new comes along you can subscribe to your favorite RSS or site for the following list. XAF official RSS Posts from our blog. XAF Facebook page Official XAF Facebook page (includes blog posts). XAF Facebook group Join other XAF users there and discuss anything XAF related with them. XAF LinkedIn group A XAF dedicated group on Linked. XAF twitter Tweets new posts. releases etc. (Follow us to get notified). Other XAF bloggers RSS A list of several personal XAF related posts. (Apostolis Bekiaris, Dennis Garavsky, Manuel Grundner, Mike Calvert:, Nathanial Wools, Robert Anderson, Martynas Dauciunas and more. Let me know at [email protected] if you want to ride this feed as well. eXpand Twitter or Tweeterfeed Tweets everything in this list plus new eXpand releases plus new Git commits. eXpand’s main RSS The most complete...
    07-03-2013, 13:30 από A.Bekiaris's .Net / XAF Blog στο A. Bekiaris's Blog
    Δημοσίευση στην κατηγορία:
  • Installing and Using the Microsoft SQL Server 2012 Performance Dashboard Reports

    Σαν DBA στην καθημερινότητα μου θέλω να μπορώ εύκολα να βλέπω τι γίνεται με τους SQL Servers που έχω υπό την επίβλεψη μου. Για αυτό το λόγο έχω φτιάξει κάποια σειρά από scripts και reports που τα χρησιμοποιώ για να κάνω την ζωή μου ευκολότερη. Αυτό βέβαια σημαίνει ότι γνωρίζω το πως θα κατασκευάσω αυτά. Τι γίνεται όμως στις περιπτώσεις που κάποιος είτε είναι αυτό που λέμε accidentally DBA είτε είναι νέος στο ρόλο αυτό με τον SQL Server είτε ακόμα ακόμα δεν έχει το χρόνο να κάνει κάτι αντίστοιχο. Για αυτούς το product group έχει κατασκευάσει κάποια έτοιμα reports που εύκολα ο καθένας μπορεί να εκτελέσει και να πάρει άμεσα πληροφορίες. Αυτά είναι τα reports που είναι build-in με την εγκατάσταση του προϊόντος. Ακόμα όμως και από αυτά θέλουμε περισσότερες και ποιο ουσιώδης πληροφορίες και για αυτό το product group έχει φτιάξει μια σειρά από reports τα οποία ονομάζει SQL Server 2012 Performance Dashboard Reports το οποία μπορεί ο κάθε ενδιαφερόμενος να τα κατεβάσει από το link ... more...
    03-03-2013, 21:54 από το μέλος Antonios Chatzipavlis στο Rocking with Knowledge for .NET programming
  • Nested CTE – A Simple Sample

    Ένα απλό παράδειγμα για το πως μπορώ να έχω nested CTEs http://www.sqlschool.gr/blog/nested-cte-–-a-simple-sample-919.aspx...
    01-03-2013, 02:20 από το μέλος Antonios Chatzipavlis στο Rocking with Knowledge for .NET programming
  • IIS FTP login fails after Windows platform update for Server 2008 R2

    I had recently enabled FTP access to the ClipFlair Gallery to easy its maintenance during development and after the Windows Server 2008 R2 platform update last night (together with release for Internet Explorer 10), the FTP login stopped working. To fix it, from a command prompt with administrator rights (Start/Find, type Command and right click the [...]...
    27-02-2013, 17:00 από George Birbilis @zoomicon στο George Birbilis' blog
    Δημοσίευση στην κατηγορία: , , , , , , , ,
  • Migrating from the old SQLMail to the new SQL Database Mail

    Yesterday, it was high-time we did the migration of the database server which hosts the P.O.S database from a SQL Server 2000 ( yes , it’s not a typo) instance to a “new” instance of SQL Server 2008. We have checked everything or we thought we did anyway. A sneaky detail was left out to be tackled at 02:00 in the morning… :-) The story is like this: there were some procedures that used the old SQLMail -way of sending mails by the use of master .. xp_sendmail system stored procedure. This call to the system procedure was encapsulated within the user-stored procedure when a certain business event occurred to alert specific users and/or group of recipients. There laid the catch: “group of recipients” also called “distribution list” or “ DL ” for short. But let’s step back for a bit to refresh our memory… SQLMail uses Extended MAPI in order to send and receive e-mails. This means you need to install an application that supports this, i.e. Microsoft Outlook , on the SQL server host in order for the SQLMail to attach...
    27-02-2013, 14:54 από Geek by design στο Geek by design
    Δημοσίευση στην κατηγορία: , , , , , , , ,
  • HowTo: format XML output of DataContractSerializer

    based on the other samples posted at StackOverflow on how to format XML created by DataContractSerializer, that use XmlWriter, here’s a version (from ClipFlair source code) that works with streams (and Ionic.Zip library in specific). It also shows how the code is when you don’t apply formatting (using conditional compilation).  Just comment out the #define [...]...
    22-02-2013, 16:52 από George Birbilis @zoomicon στο George Birbilis' blog
    Δημοσίευση στην κατηγορία: , , , , , , , , , ,
  • Dashboards in the real world – A Scotland strike!

    The DevExpress Universal Subscription now includes an interactive data visualization Dashboard for Windows, the Web and Mobile devices. DevExpress Dashboard helps you deliver solutions that allow any enterprise to visually explore business trends using stunning and easily understood performance indicators. If you are an XAF user, you already know that a framework such as XAF provides reusable building blocks to quickly build feature-rich business applications for Windows or the Web. In this post, I’ll discuss how Stephen Manderson , an XAF user from Scotland merged the capabilities of XAF and DevExpress Dashboard to create a new reusable XAF Dashboard module. To best demo this Dashboard integration, we’ll use our XVideoRental RWA demo. The sample is available for your review at the bottom of this post.  XAF users already know that dashboard support is part of the shipping product.  A few days ago I posted Visiting Dashboards where I discussed possible use case scenarios and extensions of the native implementation...
    22-02-2013, 09:47 από A.Bekiaris's .Net / XAF Blog στο A. Bekiaris's Blog
    Δημοσίευση στην κατηγορία: ,
  • Animating a SpriteSheet in a Windows Store app using XAML and C#

    [well, it’s been sometime since I wrote a technical blog post, hope you like it] Today I tried to find out how to animate a spritesheet in a Windows Store app. Turns out that it was much easier than expected! I used the spritesheet found here http://stackoverflow.com/questions/5812752/spritesheet-in-silverlight and some ObjectAnimationUsingKeyFrames code and it worked like a charm. Some explaining regarding the attached code 1. We’re using a Rectangle and an ImageBrush to display the spritesheet’s data 2. Each “frame” in the spritesheet has a width of 240 pixels and a height of 296 pixels 3. Remember that Storyboards in XAML act as threads that modify a value in a specific amount of time 4. We’re using CompositeTransform (and TranslateX, TranslateY) to “move” the image and “crop” the portion we wish to display. Practically, we’re animating the ((Rectangle.Fill as ImageBrush).Transform as CompositeTransform).TranslateX and TranslateY properties 5. Each value alteration is happening in a DiscreteObjectKeyFrame 6....
  • Fix: Silverlight Media Framework Player VolumeElement out of sync

    I was just adding a storable (persistent) Volume property to the MediaPlayerView class used at ClipFlair’s MediaPlayerWindow (connected to the underlying SMF player’s VolumeLevel property), when I realized that after reloading saved state, the SMF player’s Volume control would show a different value than the value set to it (which I could confirm by flipping [...]...
    11-02-2013, 18:54 από George Birbilis @zoomicon στο George Birbilis' blog
    Δημοσίευση στην κατηγορία: , , , , , , , , , ,
  • Θέλετε να εργαστείτε στη Microsoft ως προγραμματιστής;

    [ImagineCup] Αν έχετε μια ενδιαφέρουσα ιδέα για ένα καινοτόμο project, μην διστάσετε να δηλώσετε συμμετοχή για τους ελληνικούς τελικούς του Imagine Cup ! Μεγάλα δώρα σας περιμένουν! Για πληροφορίες δείτε εδώ [/ImagineCup] Θέλετε να γίνετε μέλη των ομάδων ανάπτυξης κάποιου εκ των Skype, Windows Phone, Windows, Office; Αν ναι, διαβάστε παρακάτω! Microsoft is Hiring for New Graduate and Intern positions in the US and Europe! Software Development Engineer Software Development Engineer in Test Apply NOW on our website www.microsoft.com/university to be considered for a first round interview! Have a question? Want to apply? Check out our website at www.microsoft.com/university Apply now for our hiring events with Skype, Windows Phone, Interactive Entertainment, Bing, Business Solutions, Server and Tools, Windows, and Microsoft Office! Check out our positions…. Software Development Engineer (SDE) Whether you’re creating new code, algorithms or data structures, you are the link between abstract concepts and the technology...
  • Fix: Visual Studio opens class diagram in XML editor with double click

    Recently, to save myself sometime after having renamed some interfaces/classes in the ClipFlair project sourcecode, I right-clicked one of the class diagrams (.cd files) in it at Visual Studio’s “Solution Navigator” (this is an enhanced Solution Explorer addon) and using “Open With…” I opened up the diagrams with the XML editor to do a rename-all [...]...
    10-02-2013, 12:00 από George Birbilis @zoomicon στο George Birbilis' blog
    Δημοσίευση στην κατηγορία: , , , , , , , ,
  • DBCC OPTIMIZE_WHATIF Apocalypse (UPDATE)

    Πριν από μερικούς μήνες σας είχα αναφέρει την DBCC OPTIMIZER_WHATIF, ένα undocumented dbcc statement. Στο post εκείνο είχα προσπαθήσει να βρω πολλά πράγματα για την συγκεκριμένη αλλά όπως συμβαίνει πάντα όταν κάτι είναι undocumented δεν μπορείς να βρεις πολλά τουλάχιστον στην αρχή.Σε αυτό όμως κάνω την αποκάλυψη της more...
    09-02-2013, 01:08 από το μέλος Antonios Chatzipavlis στο Rocking with Knowledge for .NET programming
Περισσότερες Δημοσιεύσεις « Προηγούμενη - Επόμενη »
Με χρήση του Community Server (Commercial Edition), από την Telligent Systems