|
Mirrored Weblogs
-
This is going to be the second post of a series of posts regarding Entity Framework and how we can use Entity Framework version 4.0 new features. You can read the first post here . In order to follow along you must have some knowledge of C# and know what...( read more )...
|
-
Από τον Κώδικα Οδικής Κυκλοφορίας (http://www.yme.gr/imagebank/categories/KOK_pdf.pdf), διαβάζω για πρόβλεψη ίδρυσης φορέα διαχείρισης και διάχυσης πληροφοριών (υποθέτω εννοεί ως OpenData) κυκλοφοριακής κίνησης κλπ. Άρθρo 108 Kέντρo Oδικών Πληρoφoριών 1. Mε κoινή απόφαση των Yπoυργών Oικoνoμικών, Περιβάλλoντoς, Χωρoταξίας και Δημόσιων Έργων, Mεταφoρών και Eπικoινωνιών και Δημόσιας Tάξης μπoρεί να ιδρυθεί Kέντρo Oδικών Πληρoφoριών (K.O.Π.), μη επιχoρηγoύμενo από [...]...
|
-
Σας παραθέτω μια προσέγγιση στη λύση του προβλήματος "christmas" του hellenico.gr Ο αλγόριθμος που χρησιμοποίησα είναι του Kruskal. Η Δομή δεδομένων μου για Disjoint Sets είναι Linked List. Για το δεύτερο MST κάνω: Για κάθε edge που ανήκει στο πρώτο MST την αφαιρώ απο τη λύση και ψαναφτιάχνω το linked list χωρις αυτήν. τρέχω τον Kruskal απο το σημείο που είχε σταματήσει ο πρώτος αφαιρόντας το κόστος της συγκεκριμένς ακμής αν το αποτέλεσμα είναι το επόμενο μεγαλύτερο του πρώτου ειναι και το σωστό (Sorry για τα ορθογραφικά.. δεν είχα το χρόνο για να τα τσεκάρω) Οποιοδήποτε σχόλιο και διόρθωση είναι καλοδεχούμενα!!! Κώδικας => http://pastebin.com/4qzCLFu1 . Το Πρόβλημα: Όσον αφορά στην μορφή της εισόδου, στην πρώτη γραμμή θα δίνεται το πλήθος N των κορυφών / διασταυρώσεων και το πλήθος M των ακμών / δρόμων. Σε καθεμία από τις υπόλοιπες M γραμμές θα δίνονται τα χαρακτηριστικά μιας ακμής e: πρώτα δύο θετικοί ακέραιοι που αντιστοιχούν στα δύο άκρα της ακμής, και έπειτα ένας θετικός ακέραιος που αντιστοιχεί...
|
-
jCarousel is a well known carousel build using JQuery by Jan Sorgalla . I have port the Carousel with dynamic content loading via JavaScript to .Net and created NCarousel which is basically a classic asp.net server control that a developer can configure using c# . A list editor and added to eXpand (NCarouselListEdior) and all NCarousel control properties are also in the model so you can configure it from there. A special interface IPictureItem should be implemented by your BO object in order editor to work. public interface IPictureItem { string ID { get ; } Image Image { get ; } string ImagePath { get ; } } At least one of Image, ImagePath peoperties should have values To make the design of NCarousel skin design fast without having to go back to the model many times I have added the AllowOverride attribute at model, which basically does not inject any specific to view css, thus allowing the skin to be overridden by adding a ling to a css file in your...
|
-
Hi folks! This is an e-mail that I sent today to my team in the IT&T department after a very interesting day and the cummulative experience I get here this 9 months in Tirana, Albania. I thought to share it with you just for the fun of it. " My dear team mates! Please spend 5 minutes of your time to read this through. As you know we are something less than a week from the going-live of NAV. Based on what I’ve experienced so far in my time being here I came up with an idea to “arm” ourselves with something coming from the American army, which is very trendy at all times, even in Hollywood! I decided to base our operations on a DEFCON level! J Let me explain some things about DEFCON and its meaning: DEFCON stands for DEF ense Readiness CON dition, and it has the following levels: (Source: Wikipedia) Normally and depending on the DEFCON level, soldiers (that’s our role) have different weapons to tackle each one. “Our weapons” , you might ask? Not many but are enough most of the times to get through the difficulties:...
|
-
Gosh... I am so happy!!! I finally found......
|
-
-
Been there done that... and I thought it......
|
-
This is going to be the first post of a series of posts regarding ASP.Net and Entity Framework and how we can use Entity Framework to access the database. We will start with some simple samples but then we will look into more advanced uses of Entity Framework...( read more )...
|
-
Internet Explorer 9 (IE9) has at last introduced a nice download manager, as shown below. This was long needed, since in IE8 there were cases were downloads with the same filename, when launched from different windows, could get corrupted. The download manager will also show resume download button when needed. IE8 could also resume downloads, [...]...
|
-
Angel Anger Danger Dancer Cancer Ancer (answer) Acer Cer (sir) "Sir 10" (certain) Have fun ;-) Dimitrios Staikos...
|
-
Can you spot any difference at the following two Internet shortcuts on my desktop? I can’t either. Note that the two files have the same “name”, but different file extension (invisible when using default Windows Explorer folder view settings). The one uses “.url” (classic Internet Explorer webpage shortcut), while the other one, created by Internet [...]...
|
-
Strange IE9 RC bug: visited http://www.vodafone.gr/portal/client/cms/viewCmsPage.action?pageId=0515 (via http://bit.ly/vodafone1kai1_xatzigiannis) and then clicked back several times seeing the above strange back/forward buttons (red color) and a Vodafone icon prefixed before them! Closing the window fixed the issue. Are they using some hidden feature of IE9? Didn’t manage to reproduce the behavior though. If you have more info [...]...
|
-
In this post I will continue my series of posts on caching. You can read my other post in Output caching here .You can read on how to cache a page depending on the user's browser language. Output caching has its place as a caching mechanism. But right...( read more )...
|
-
I am in a baaaaad mood today... Thank God I am not the *** administrator from hell. Or I might do this to a friend who left his workstation unlocked: Minimize all windows. Press PRINTSCREEN Save the image to disk......
|
-
Πρόσφατα έκανα κριτική ανάγνωση (review) μιας προτεινόμενης δημοσίευσης για το συνέδριο ΤΠΕ-Ε 2011 (http://www.ekped.gr/?p=202), που είχε σχέση με την πρόσληψη της έννοιας του φωτός και της σκιάς από τα νήπια. Ανέφερε πως έχουν πρόβλημα να οπτικοποιήσουν νοητά το φως ως “ακτίνες” (όχι ότι είναι ακριβώς ακτίνες βέβαια, κύμα είναι) και τη διάδοση του. Σκεφτόμουν ένα [...]...
|
-
The devil is in the details. Read the documentation of every library you use. Reason about your code. I have been recently refactoring and reviewing code of a project in order to move it from WPF to Silverlight. (I will make a series of posts on the trouble and horror that I met during this exercise) In this production LoB system we have chosen to work with Agatha , a request-response service layer sitting on top of WCF that simplifies communication with the back-end, greatly improves modularity and really helps with maintainability (you should definitely take a look in this project if you are serious about your service layer.) Building our messages (classes) for our layer I noticed that we have used interfaces where we needed collections i.e. IList, ICollection etc. It seemed a strange choice from the beginning and down the road but it actually proved terribly wrong. Suggestion : Always read the documentation. So the problem lies in the way WCF decides to serialize/deserialize a collection when we use interfaces...
|
-
I have explained some of the state mechanisms that we have in our disposal for preserving state in ASP.Net applications in various posts in this blog. You can have a look at this post , this post , this post and this one .My last post was on Application...( read more )...
|
-
I have explained some of the state mechanisms that we have in our disposal for preserving state in ASP.Net applications in various posts in this blog. You can have a look at this post , this post , this post and this one . I have not presented yet an...( read more )...
|
-
This is the fourth post in a series of posts regarding ASP.Net built in membership functionality,providers,controls. You can read the first one here . You can read the second post here . You can read the third post here . In this post I will show you...( read more )...
|
-
In this post we will explore the most practical ways of performing left outer joins in LINQ to Entities. The same principles applying to LINQ to Entities for EF 4 also apply to LINQ2SQL. This was not the case before EF 4 mainly due to the absence of the DefaultIfEmpty() method in the Entity Framework. In an case, in this post we focus on EF4. For our test we will use the following demo database/conceptual model: As you can see, Master records may have 1 or more Detail records and Detail records may have one or more DetailOfDetail records. Left outer joins are translated as follows: “Bring me all records/entities from the Master table along with their corresponding Detail records. The Master records should always exist in the result set even if there are no related records/entities in the Detail table”. The first approach is using the navigation property Details in the query as follows: from p in ctx.Masters.Include( "Details" ) select p Query1() method in the project This approach is the...
|
-
This is the third post in a series of posts regarding ASP.Net built in membership functionality,providers,controls. You can read the first one post one here . You can read the second post here . In this post I would like to investigate how to use the...( read more )...
|
-
This is the second post in a series of posts regarding ASP.Net built in membership functionality,providers,controls. You can read the first one post one here . In order to follow this post, complete the steps in the first post. It will only take 10 minutes...( read more )...
|
-
I recently had a conversation with a client about the future of press and how digital magazines and newspapers are the future of the business. When we talked about that I had a few technologies in mind but nothing like Treesaver . Treesaver is a JavaScript framework for creating magazine-style layouts that dynamically adapt to a wide variety of browsers and devices. Both content and design is shaped with standards-compliant HTML + CSS and no JavaScript programming is required. It simply searches for the <article> tags and displays the content inside them , makes browsing them possible with prev-next buttons and auto-generates a "contents" menu. The JavaScript is under 25K gzipped (pretty important for mobile) and works with most modern browsers (degrades gracefully for others). Note to self: Keep that in mind, it might come handy...
|
-
[Check here for the source code: http://cid-10e568adbb498dc8.office.live.com/self.aspx/Windows%20Phone%20Source%20Code/RSSReader.zip and here for the respective video: http://www.studentguru.gr/learn/default.aspx?category=21&id=171 ] In this post, we are going to show how to create a very very very simple RSS reader for Windows Phone 7 using Expression Blend and Visual Studio in 5 minutes, using minimal code. The RSS reader we will create will fetch the RSS feed using a direct URL (although this can be easily modified) and display them on our device (or emulator). Furthermore, the application will start by showing a simple animation. First of all, we start by creating a new Windows Phone application project in Expression Blend. Let’s call it RSSReader. We’re going to create a simple animation to serve as a “welcome screen”. Start by dragging and dropping a TextBlock onto the designer surface. Let’s make it write “Welcome”. We’ll then press F6 (or select Window-Workspaces-Animation) to go to the Animation workspace....
|
|
|
|