|
Πρόσφατες Δημοσιεύσεις
-
Copernic Agent is a very nice meta-search tool that can simultaneously search using multiple search engines. It can help you organize your searches, filter search results, track search results for future changes (last one is available at the Professional version only, not at the free Basic version or at the intermediate Personal version) etc. Here are some useful tips if you're using Διαβάστε περισσότερα »...
|
-
O Andrey Goder , ένας εκ των μηχανικών λογισμικού του Facebook , ανακοίνωσε πρόσφατα την πρώτη Alpha έκδοση του project Hackathon . Το project Hackathon ουσιαστικά αποτελεί τη μεταφορά του νέου SDK του Facebook για όλους Διαβάστε περισσότερα »...
|
-
Πάει αρκετός καιρός από την τελευταία μου δημοσίευση. Η αλήθεια είναι ότι από τότε συνέβησαν πολλά πράγματα στην ζωή μου και ο χρόνος μου ήταν ελάχιστος. Μεταξύ Διαβάστε περισσότερα »...
|
-
Prof. Kostas Anagnostou from Ionian University has created an excellent 6 part tutorial covering the creation of the classic Arkanoid game for the PC using XNA framework. Here are the links for the tutorial Permanent link to Δημιουργώντας το Arkanoid μέρος 1ο Permanent link to Arkanoid μέρος 2ο Permanent link to Arkanoid- Game State Management Permanent link to Arkanoid- Game State Διαβάστε περισσότερα »...
|
-
Όσοι ασχολείστε με ανάπτυξη εφαρμογών για το iPhone σίγουρα θα έχετε δει το tutorial για την κατασκευή του MoveMe ( http://developer.apple.com/iphone/library/referencelibrary/GettingStarted/Creating_an_iPhone_App/index.html ). Πρόκειται για μια πολύ απλή εφαρμογή, με ένα rectangle στην οθόνη, το οποίο μπορούμε να το κάνουμε drag σε όλο το μήκος και πλάτος της οθόνης του κινητού και Διαβάστε περισσότερα »...
|
-
Μελετώντας την Clojure , την προσοχή μου τράβηξε ένα απλό αλλά πολύ χρήσιμο construct, το Atom . Το Atom φαίνεται να είναι το πάντρεμα των ref cells της ML με lock free CAS concurrency semantics. Επειδή τέτοια constructs είναι πολύ χρήσιμα στην F#, σκέφτηκα να υλοποιήσω κάτι ανάλογο. My attempt: type Atom<'a when 'a : not struct >(value : 'a) = let refCell = ref value let rec swap f = let currentValue = !refCell let result = Interlocked.CompareExchange<'a>(refCell, f currentValue, currentValue) if obj.ReferenceEquals(result, currentValue) then () else Thread.SpinWait 20; swap f member self.Value with get() = !refCell member self.Swap (f : 'a -> 'a) = swap f let atom value = new Atom<_>(value) let (!) (atom : Atom<_>) = atom.Value let swap (atom : Atom<_>) (f : _ -> _) = atom.Swap f Και ως παράδειγμα χρήσης, σκέφτηκα έναν απλό multithreaded counter. (Σημείωση: βάζω το int μέσα στο lambda επειδή πρέπει να δώσω στο Atom ένα reference type) let counter = atom (fun () -> 0) let...
|
-
Εδώ μπορείτε να αναφέρετε παράνομες διαφημιστικές πινακίδες (σε Αθήνα κ' Θεσσαλονίκη προς το παρόν): http://illegalsigns.gov.gr Γραφτείτε σα "φίλος" για να στηρίξετε την πολύ καλή αυτή προσπάθεια της ελληνικής κυβέρνησης: http://www.facebook.com/illegalsignsgr Διαβάστε περισσότερα »...
|
-
I’ve been involved for quite some time now with a new Microsoft project codenamed “ WebMatrix ” but couldn’t say anything about it since all the info was under NDA. Today though, the public availability of the Microsoft WebMatrix Beta was announced, so I guess I’m no longer bound by the NDA agreement and can let you in on a few things. So first let me clarify a few things, and to do Διαβάστε περισσότερα »...
|
-
A wonderful quote from Dave Winer's (sometimes referred to as the father of blogging and RSS) article " What's so hard about a mea culpa " at scripting.com I come from a profession, software development, where we actively seek out our mistakes. We have formal processes for it. We teach our users how to report the mistakes, so we're more likely to understand what they're saying. Διαβάστε περισσότερα »...
|
-
Xaf supports for now only 2 platforms for the moment and this post will focus to a technique that can be used to write code that is platform independent same for web and win and is aiming advance xafers . Since xaf is 4 years old right now I am sure many of you fit in that category. As you all of you know xaf v10 is a whole new framework very very clean and powerful but still has a lot of missing stuff in its architecture but also have many other powerful stuff that can help in providing workarounds. And this is the most perfect time to use them cause i am sure in the next months Devexpress will make it very very friendly to newbie as well. The problem You are developing a new module say A for both platforms so you are going to create 3 projects in your visual Διαβάστε περισσότερα »...
|
-
Copy-pasted from a conversation between geeks in live messenger. A ddress Binding Contract B oolean C losure D- Cup E vent F # G eometry (SQL Datatype) H igh Order Function I mpersonation (ASP.NET) J itter K – Means λ (lambda) M onad N -Tier O bservable P ervasive Computing Q uicksort R 8 (Audi :P) S ilverlight ( T Key) U kelele V okswagen W CF X axis (burned to my mind) Y axis (burned to my mind) Z -index a2a_linkname="What comes first, at your programming mind?";a2a_linkurl="http://www.studentguru.gr/blogs/grnemo/archive/2010/07/05/what-comes-first-at-your-programming-mind.aspx" Διαβάστε περισσότερα »...
|
-
If you are learning Chinese as a foreign language then you must absolutely put this web site in your arsenal of tools: It is much much more than an online dictionary. It does both simplified and traditional (which is what... Διαβάστε περισσότερα »...
|
-
A few people have been asking lately for samples of using asynchronous programming using Sockets or Pipes so I decided to put together some samples of the various asynchronous programming models using .NET. The scenario used in all the examples is the same: A server pipe is created and starts waiting for connections A client pipe is created and connects to the server pipe The server starts listening for data The client sends a UTF8 formatted number to the server asynchronously and waits for a response The server responds with “You sent x” to the client asynchronously The client reads the response and writes the response to the console. The asynchronous version of a function (e.g. BeginRead, BeginWrite, BeginWaitForConnection) is used whenever one is available. All samples implement a simple interface to make running the samples easier: public interface IAsyncBase { void StartServer(); void StartClient(); } … IAsyncBase sample= new TaskSockets (); sample.StartServer(); sample.StartClient(); .NET 1.0 – Delegates...
|
-
Here is an implementation of a nice Textbox in WPF that suggests possible values based on the current user’s input. It is different from WPF’s native editable Combobox since it does not load all possible values at initialization (saving time and memory). The Textbox calls a method that returns the suggested values as soon as it detects a specific amount of idle time in the user’s typing. This method will probably access the database using the value entered so far in the Textbox as the criterion Διαβάστε περισσότερα »...
|
-
Recently, I’ve been looking a way to persist the status of an idling Workflow on WF4. There is a way to use SQL Azure to achieve this, after modifying the scripts because they contain unsupported T-SQL commands, but it’s totally an overkill to use it just to persist WF information, if you’re not using the RDBMS for another reason. I decided to modify the FilePersistence.cs of the Custom Persistence Service sample in WF 4 Samples Library and make it work with Windows Azure Blob storage. I’ve created two new methods to Serialize and Deserialize information to/from Blob storage. Here is some code: 1: private void SerialiazeToAzureStorage( byte [] workflowBytes, Guid id) 2: { 3: var account = CloudStorageAccount.FromConfigurationSetting( "DataConnectionString" ); 4: var container = account.CreateCloudBlobClient().GetContainerReference( "workflow_persistence" ); 5: 6: var blob = container.GetBlobReference(id.ToString()); 7: 8: blob.Properties.ContentType = "application/octet-stream" ; 9: using (var stream = new MemoryStream())...
|
-
Από ομιλία της υπουργού Παιδείας, Άννας Διαμαντοπούλου στη 64η σύνοδο των Πρυτάνεων. Στο σύνδεσμο εκείνο αξίζει να διαβάσει κανείς και τα σχόλια των αναγνωστών. Τα πιο ενδιαφέροντα κατ’ εμέ από την ομιλία είναι τα παρακάτω: · Βασική Ακαδημαϊκή Μονάδα θα είναι Σχολή που θα απονέμει και τα πτυχία με βάση προγράμματα σπουδών. Τα Τμήματα θα υφίστανται ως διοικητικές μονάδες συγκεκριμένων Διαβάστε περισσότερα »...
|
-
I've had a genuine TheDailyWTF moment earlier today, when I found the C# equivalent of this VB6 code that returns a three letter month name: DateTime time = DateTime.Now; string foldername = time.Year.ToString() + "_" + GetMonthName(time.Month); private static string GetMonthName( int month) { switch (month) { case 1: return "Jan" ; case 2: return "Feb" ; case 3: return "Mar" ; case 4: return "Apr" ; case 5: return "May" ; case 6: return "Jun" ; case 7: return "Jul" ; case 8: return "Aug" ; case 9: return "Sep" ; case 10: return "Oct" ; case 11: return "Nov" ; case 12: return "Dec" ; } return month.ToString(); } This code runs on a server with non-English regional settings. My guess is the coder wanted to ensure that (s)he would get back the english month name even if the thread run using non-English regional settings. The .NET Framework has already solved this problem by accepting an provider parameter in the String.Format and DateTime.ToString() methods. The provider parameter can accept any CultureInfo object...
|
-
During startup, if some extension package of Visual Studio issues an error, the IDE offers the option to not try loading it again next time. To reset this setting and try loading all skipped packages again (" clear all SkipLoading tags added to VSPackages" in Microsoft's own words), one can load Visual Studio using the command line (e.g. from the folder %ProgramFiles%\Microsoft Διαβάστε περισσότερα »...
|
-
Once again, Microsoft proved that it values its customers, either big enterprise or small startups. We’re a small private-held business and I personally have a major role in it as I’m one of the founders. Recently, I’ve been giving some pretty nice presentations and a bunch of sessions for Microsoft Hellas about Windows Azure and Cloud computing in general. I was using my CTP account(s) I have since PDC 08 and I had a lot of services running there from times to times all for demo purposes. But with the 2nd commercial launch wave, Greece was included and I had to upgrade my subscription and start paying for it. I was ok with that, because MSDN Premium subscription has 750 hours included/month, SQL Azure databases and other stuff included for free. I went through the upgrade process from CTP to Paid, everything went smoothly and there I was waiting for my CTP account to switch on read-only mode and eventually “fade away”. So, during that process, I did a small mistake. I miscalculated my instances running. I actually...
|
-
Πρόταση μου στην 3η φάση (κατά της γραφειοκρατίας) του labs.opengov.gr : Προτείνω ένα online σύστημα με χάρτες με δυνατότητα αιτήσεων για σήματοδότηση, πεζοδρόμηση, υποδομές ΑμΕΑ κτλ. Να ειδοποιείται αυτόματα από το GIS σύστημα ο υπεύθυνος φορέας (δεν βλέπω γιατί πρέπει να νοιάζει τον πολίτη σε ποιόν φορέα ανήκει ο κάθε δρόμος!) και να πρέπει ν'απαντήσει μέσω του site δημόσια . Επίσης Διαβάστε περισσότερα »...
|
-
From the same legacy code as this post comes this code that loads a combo box with ListItems and then removes unwanted items in a way that is guaranteed to cause an exception when the indexer reaches the middle of the list, which now has only half the initial items: ddlItems.Items.Clear(); // Re-load so we can filter the required UIHelper.FillListBoxFromSharePointList(ddlItems, Microsoft.SharePoint.SPContext.Current.Web, "Items" ); #region Remove all items from list that are not allowed for selection by the current user int listCount = ddlItems.Items.Count; for ( int i = 0; i < listCount; i++) { try { ListItem item = ddlItems.Items[ i]; string roleId = item.Value; if (roleId.Length > 0) { roleId = string .Concat( ";" , roleId, ";" ); if (!allowedRolesStringList.Contains(roleId)) { ddlItems.Items.Remove(item); i = i - 1; // Skip back 1 index - since we deleted one. } } } catch { ; } } #endregion Obviously the coder noticed the problem and instead of fixing it, he covered it under the catch{;} carpet. The...
|
-
Εδώ και πολλά χρονια ονειρευόμουν την μέρα που κάποια απόγονος της ML θα καταφέρει να σπάσει τα ακαδημαϊκά δεσμά της και να αποκτήσει μια ευρύτερη πιο γενική αντιμετώπιση. Το όνειρο αυτό έγινε πραγματικότητα (υπό μια έννοια)!!! Η F# είναι πλέον γεγονός και βρίσκεται εγκατεστημένη με κάθε VS 2010. Ήδη στην εταιρία μου, κλείνουμε μια εβδομάδα λειτουργίας ενός απαιτητικού production server που τρέχει mission critical components γραμμένα σε F#. Όσοι φίλοι αισθάνονται ότι πρέπει να υπάρχει κάτι περισσότερο από τα συνηθισμένα "{};++", τότε μπορούν να δώσουν μια ευκαιρία σε κάτι διαφορετικό. Μετά από ένα σημείο θα αρχίσουν να βλέπουν τον κώδικα με άλλα μάτια... Σαν τον Neo στο τέλος του πρώτου Matrix . Resources: Use case: http://www.microsoft.com/casestudies/case_study_detail.aspx?casestudyid=4000005226 Lectures: (Όσοι φίλοι παρακολουθήσουν τα μαθήματα και έχουν ερωτήσεις - απορίες, μπορούν να μου στείλουν ένα μήνυμα και θα είναι πραγματικά χαρά μου να βοηθήσω) http://channel9.msdn.com/shows/Going+Deep/C9-Lectures-Dr-Don-Syme-Introduction-to-F-1-of-3/...
|
-
Useful with some update in source. More...
|
-
Workflow Foundation brings a new programming model to the developer's arsenal. Like any new programming model, starting from the good old procedural programming that provided as with methods and function, to the modish parallel and functional programming, the Workflow programming model requires some shifting in the way the developers thinks and designs solutions. In addition to that, WF of .NET 4 is completely redesigned and one of Microsoft's main concerns is to make it a standard part of every developer's toolkit. To help in this endeavour, Microsoft published a free e-book called 'The Workflow Way'. In the 25 pages of this book you can read how you can employ the Workflow Foundation and get the best things out of it. Click here to download the e-book. Permalink | Leave a comment »...
|
-
I have started working on VS 2010 recently. I have created a website and I found the working environment is very clear and helpful. The new font family and some black vs color scheme , with the default indicators of the environment and default project templates are time-saving. The responsiveness is significantly faster. I encourage to install any power tools available....
|
|
|
|