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

 

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

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

  • Totally wrong way to use SPSite, SPWeb

    Almost all Sharepoint developers know that you should dispose SPSite and SPWeb object you create in code. Doing so is not hard, you just enclose your objects in a using statement. I found the following piece of code in dozens of places in some legacy Sharepoint code created by people who should have known better: SPSite site = null ; SPWeb web = null ; try { SPSecurity.RunWithElevatedPrivileges( delegate () { site = new SPSite(Microsoft.SharePoint.SPContext.Current.Web.Url); web = site.OpenWeb(); //Blah Blah Blah }); } catch (Exception MyMethodException) { WriteErrorMessage( string .Format( "MyMethodExceptionException : {0}" , MyMethodExceptionException.Message)); } finally { web.Dispose(); site.Dispose(); } Looks like whoever wrote this code never heard of the using statement, in .NET since v1. It's not just that this code is more verbose than it needs to be. It also broadens the scope of the site and web variables and exposes them to abuse. This can be a serious problem if the code contains large methods, and...
    11-06-2010, 12:15 από το μέλος Παναγιώτης Καναβός στο Panagiotis Kanavos' Weblog
    Δημοσίευση στην κατηγορία: , , ,
  • Visual Studio 2010 LAUNCH στην Ελλάδα!

    Με αρκετή καθυστέρηση είναι η αλήθεια, αποφάσισα επιτέλους να γράψω ένα post σχετικά Διαβάστε περισσότερα »...
    10-06-2010, 18:02 από bluemind στο bluemind
    Δημοσίευση στην κατηγορία: , , , ,
  • My live Q&A with Eric Lippert, Luke Hoban and Mads Torgersen at Tech·Ed 2010, North America

    Yesterday I watched the live 3:30 PM: Languages Panel session, with Eric Lippert , Luke Hoban and Mads Torgersen and the niner Charles Torre , through ( http://www.msteched.com/ ), provided by Channel9 live ( http://channel9.msdn.com/ ). This wasn’t just a live panel, but an interactive QnA too, so as me and a friend / colleague of mine ( Nikos ), watched it, we asked a question through twitter of Channel9 ( http://twitter.com/ch9live ). The question (both actually) have been presented through the monitor, to Διαβάστε περισσότερα »...
    Δημοσίευση στην κατηγορία: , , , , , , ,
  • Power Tools και Feature Pack για Visual Studio 2010 διαθέσιμα

    Τα Power Tools είναι κάτι σαν θεσμός πια για τους developers και αποτελούν συχνά-πυκνά πολύ καλές προσθήκες στα όσα ήδη προσφέρει το κάθε Microsoft προϊόν out-of-the-box. Από 7/6 λοιπόν έγιναν διαθέσιμα τα (productivity) Power Tools για το Visual Studio 2010 που περιέχουν ουκ ολίγα add-ons για να κάνουν τη ζωή των developers λίγο πιο εύκολη. Από εδώ: http://visualstudiogallery.msdn.microsoft.com/en-us/d0d33361-18e2-46c0-8ff2-4adea1e34fef Διαβάστε περισσότερα »...
    09-06-2010, 12:26 από bluemind στο bluemind
  • Α programming puzzle: My solution

    Η λύση που έστειλα είναι η Solution2 του darklynx... public class Thunk<T> { private Func<T> func; public T Value { get { return func(); } } public Thunk(Func<T> computeFunc) { this .func = () => { func = ((Func<T, Func<T>>)(value => () => value))(computeFunc()); return func(); }; } } Η τεχνική αυτή μοιάζει λίγο με Jit thunks . Happy hacking....
    07-06-2010, 12:45 από το μέλος PALLADIN στο Thoughts and Code
  • Α programming puzzle

    Πριν από λίγες μέρες, ένας φίλος μου έστειλε ένα programming puzzle που του τέθηκε κατά την διάρκεια ενός job interview. Το σκέφτηκα για λίγο και του έστειλα μια πρόχειρη λύση. Με το που είδε τον κώδικα που του έστειλα, μου απάντησε ότι αποκλείεται να είχαν κάτι τέτοιο στο μυαλό τους. Επειδή είμαι περίεργος να δω και άλλες ιδέες για το πρόβλημα, όσοι φίλοι θέλουν, μπορούν να αφήσουν ένα comment με τις ιδέες τους. Σε επόμενο blog post, θα δώσω την λύση που του έστειλα. Το puzzle: Δώστε μια εναλλακτική υλοποίηση της παρακάτω class χωρίς να χρησιμοποιηθεί κανενός είδους conditional logic construct (if, switch, ()?). public class Thunk<T> { private T value; private bool flag = false ; private Func<T> func; public T Value { get { if (!flag) { value = func(); flag = true ; } return value; } } public Thunk(Func<T> func) { this .func = func; } }...
    06-06-2010, 18:30 από το μέλος PALLADIN στο Thoughts and Code
  • Intel further delays USB 3.0

    Here are some interesting news items: http://www.zdnet.com/blog/hardware/is-intel-delaying-usb-30-to-give-light-peak-an-advantage/8493?tag=nl.e539 http://www.techeye.net/hardware/usb-3-0-the-misery-continues Intel pushed USB 3.0 chipset integration into 2012. Why? As we say in Greek, "Who is crying 'miaou miaou' on the roof top?" (a cat of course)... LightPeak of course. Intel knows.. Διαβάστε περισσότερα »...
    Δημοσίευση στην κατηγορία:
  • Silverlytics

    Since I’ve started talking about Sliverlight and analytics yesterday I thought this is probably the best opportunity to mention Silverlytics (Silverlight + Analytics). Built by Location3 Media an interactive marketing company, Silverlytics is a multitenant Windows Azure-based analytics service that uses Microsoft Live Labs Pivot for its data visualization. All of its data is collected Διαβάστε περισσότερα »...
    03-06-2010, 18:41 από K# στο K#
    Δημοσίευση στην κατηγορία: ,
  • Microsoft Silverlight Analytics Framework

    A common misunderstanding and argument I get, for not building web applications using Silverlight technology, is often, the lack of a way to keep stats of your application traffic. So I thought this worth a blog post in order to put a few things right and let people know that there is actually a solution they could use. This solution is Microsoft Silverlight Analytics Framework . Microsoft Διαβάστε περισσότερα »...
    02-06-2010, 13:38 από K# στο K#
    Δημοσίευση στην κατηγορία: ,
  • Some ideas on how to make an ATM machine a bad target to steal

    In Greece there is some times (especially in more rural places) stealing of ATMs (Automatic Teller Machines) from banks using "borrowed" bulldozers to bring down walls holding it etc. Obviously the crooks take the machine with them to open it up later on at a safer place. I was thinking the other day, that some easy and cheap to implement measures could be taken by banks to Διαβάστε περισσότερα »...
  • Επιστολή Ανδρέα Βγενόπουλου για τους νεκρούς στη MARFIN-ΕΓΝΑΤΙΑ τράπεζα

    Επιστολή προς όλους τους εργαζόμενους της τράπεζας απηύθυνε στις 18-5-2010 ο Ανδρέας Βγενόπουλος, μη εκτελεστικός Προέδρος της Marfin Popular Bank, μητρικής τράπεζας της Marfin Egnatia Bank, με αφορμή τα τραγικά γεγονότα της 5ης Μαΐου, στα οποία έχασαν τη ζωή τους τρεις εργαζόμενοι. Η επιστολή του κ. Βγενόπουλου έχει ως εξής: «Φίλες και φίλοι συνάδελφοι, Δεκατρείς μέρες μετά τα τραγικά Διαβάστε περισσότερα »...
    Δημοσίευση στην κατηγορία:
  • Domain Specific Languages with M - Part 3/3 Consuming the DSL at runtime in C#

    In this last post of the small series we will see how we can load the syntax of a DSL in C# and then feed it with an input text that we need to be parsed. In this post we have already described how to write the DSL syntax and in this post we have seen how to decorate it with productions. So following the process described in those posts we end up with a file containing the description of the syntax of our DSL, along with its productions (eg the file Renting_en.mg available for download in the zip file provided Διαβάστε περισσότερα »...
    Δημοσίευση στην κατηγορία:
  • Πρόταση: κίνητρο για συλλογή αποδείξεων

    Σαν κίνητρο για τη συλλογή αποδείξεων έχει προταθεί και παλιότερα κλήρωση χρηματικού ποσού . Γιατί όχι και άλλων επάθλων ; (δωρεάν διακοπές/εισητήρια μέσω ΕΟΤ, ή και ένα σπίτι [για όποιους επιλαχόντες πληρούν κάποια εισοδηματικά κριτήρια] μέσω της εργατικής εστίας, κλπ.). Δεν είναι απαραίτητο να είναι φοβερά αυτά, η επιβράβευση μετράει (π.χ. ένα «καλό» έπαθλο για κράχτης και αρκετά Διαβάστε περισσότερα »...
    Δημοσίευση στην κατηγορία:
  • Xaf Focus utilities

    I have implement a FocusShortcut attribute at eXpand so one can associate a keyboard shortcut with the control that wants to get the focus when it is detected Also when a text editor gets focused, one can control the position of the cursor by setting the CursorPosition attribute, thus maximizing speed input in certain cases Διαβάστε περισσότερα »...
    19-05-2010, 15:55 από A.Bekiaris's .Net / Xaf Blog στο A. Bekiaris's Blog
    Δημοσίευση στην κατηγορία:
  • Windows Azure &ndash; Is Thread spawning from Worker Roles the paspartu?

    Paspartu is French for “one size fits all”. Recently I’ve been coming across posts explaining and “promoting” the idea of spawning threads inside a worker role each one of them with a unique work to be done. All are sharing the same idea and all of them are describing the same thing. The idea You have some work to do, but you want to do it with the most efficient way, without having underutilized resources, which is one of the benefits of cloud computing anyway. The implementation You have a worker process (Worker Role on Windows Azure) which processes some data. Certainly that’s a good implementation but it’s not a best practice. Most of the time, your instance will be underutilized, unless your doing some CPU and memory intensive work and you have a continuous flow of data to be processed. In another implementation, we created a Master-Slave pattern. A master distributes work to other slave worker roles, roles are picking up their work, do their stuff, return result and start over again. Still, in some cases...
    18-05-2010, 01:53 από The PK site στο The PK blog
    Δημοσίευση στην κατηγορία: , ,
  • Κουπόνι ασφάλισης συνδιασμένο με λοταρία

    Σχόλιο μου στην Διαβούλευση σχετικά με τις Ηλεκτρονικές Αποδείξεις : Σχετικά με την ευκαιριακή εργασία ήδη προωθήθηκε μέτρο που ισχύει στην Γαλλία, όπου αγοράζει ο λαμβάνων υπηρεσίες κουπόνι(α) από την τράπεζα (ή π.χ. από το Ταχυδρομικό Ταμιευτήριο / Ταχυδρομείο που είναι προσβάσιμο στα ορεινά χωριά λέω εγώ) που το δίνει σε αυτόν που παρείχε την εργασία αντί χρημάτων. Αυτός το εξαργυρώνει Διαβάστε περισσότερα »...
    Δημοσίευση στην κατηγορία:
  • Εθνική κάρτα καταναλωτή

    σχόλιο μου στη Διαβούλευση σχετικά με τις Ηλεκτρονικές Αποδείξεις : παρεμπιπτόντως η ιδέα για μια κρατική / εθνική κάρτα καταναλωτή είναι ενδιαφέρουσα, αρκεί να μπορεί να δίνει ΑΛΛΟ μοναδικό id του κατόχου της κάρτας σε κάθε επιχείρηση (συνδιάζοντας με μοναδικό ΜΗ ΑΝΑΣΤΡΕΨΙΜΟ τρόπο με το id [όχι ΑΦΜ, αφού κάθε υποκατάστημα ίσως έχει άλλο] της επιχείρησης/ομίλου [με πρόβλεψη να μην μπορεί Διαβάστε περισσότερα »...
  • Cloud computing &ndash; Most common concerns and my thoughts

    Every single time something new emerges in the IT market, there are three distinct categories of people: Early adopters, Late majority, Skeptics. Each one of them has its own reasons and its own concerns about when, why and if they are going to adapt to this new technology, either completely or in a hybrid mode. All of them have some things in common. They share the same concerns about security, billing, taxes, availability, latency and probably some others. Concerns and my thoughts. Billing is something that can easily be solved and explained by clever and good marketing. Unfortunately, there is no such thing as local billing. Cloud computing services are truly global and the same billing model, the same prices, the same billing methods have to be used to provide a fair and consistent service to every customer. This has to change. For some markets, a service can be really cheap, but for some others can be really expensive. Increasing the price in some countries and decreasing in some others can make the service...
    17-05-2010, 01:26 από The PK site στο The PK blog
    Δημοσίευση στην κατηγορία: ,
  • Windows Azure Table Storage &ndash; Is backup necessary?

    Yes, it is. Table storage has multiple replicas and guarantees uptime and availability, but for business continuity reasons you have to be protected from possible failures on your application. Business logic errors can harm the integrity of your data and all Windows Azure Storage replicas will be harmed too. You have to be protected from those scenarios and having a backup plan is necessary. There is a really nice project available on Codeplex for this purpose: http://tablestoragebackup.codeplex.com/ PK....
    16-05-2010, 23:31 από The PK site στο The PK blog
    Δημοσίευση στην κατηγορία: ,
  • Apple killing Windows performance by filling up your hard-disk with junk

    A picture is worth a thousand words... And Jobs is speaking about Flash and Adobe and MacOS-X performance. Microsoft should do the same, say out loud what crap third party practice is many times making Windows in the real world crawl to their knees. One of the culprits is Apple's installer (Apple Update especially) leaving tons of garbage on your hard-disk after each QuickTime / iTunes Διαβάστε περισσότερα »...
    Δημοσίευση στην κατηγορία:
  • Twitter got bug #UI #fail

    Can you see something strange at the above screenshot? Taken not many days ago, using Google Chrome. Had opened many pages (as you can see from the tabs), some at Twitter profile pages I planned on checking out / following up later and then closed the browser. When I opened it again and visited one of those twitter profiles, I tried to log-in, but at the login pane it was showing "Create Διαβάστε περισσότερα »...
    Δημοσίευση στην κατηγορία:
  • .NET 4 Resources for my today's VS2010 Launch presentation

    ...
    14-05-2010, 08:42 από papadi Development Blog στο papadi DevBlog
  • DSL language for maximizing speed input

    I recently had the following case . I was given the domain model bellow and was asked to provide a solution so a user could add schedules of the form Thu-Wen 14.15 / 16.45, Thu & Mon-Wen 22.15 /00.45, Sat,Sun 12.15 3D translated into with the maximum input speed. Xaf by its self is going to create for us a view like the one bellow for allowing us to make such an input from one view but of course that view is out of the question ( too many keyboard strokes and clicks) What we need is to define a D omain S pecific L anguage (just the definition of our problem will do it :)) for our problem lets do it. I am creating schedules. So the user  input schedules will be of the form Thu-Wen 14.15 / 16.45, Thu & Mon-Wen 22.15 /00.45, Sat,Sun 12.15 3D translated Διαβάστε περισσότερα »...
    11-05-2010, 10:16 από A.Bekiaris's .Net / Xaf Blog στο A. Bekiaris's Blog
    Δημοσίευση στην κατηγορία: ,
  • Οδηγός για την ασφάλεια στο Silverlight 4

    Συνήθως αποφεύγω να αναπαράγω ειδήσεις από blogs άλλων, ωστόσο σε θέματα όπως αυτό της ασφάλειας αυτό που έχει σημασία είναι να διαχυθεί η πληροφόρηση όσον το δυνατόν περισσότερο. Είναι λοιπόν διαθέσιμο για να κατεβάσετε το Silverlight Security Overview ( http://download.microsoft.com/download/A/1/A/A1A80A28-907C-4C6A-8036-782E3792A408/Silverlight Security Overview.docx ) , ένας οδηγός που περιγράφει τόσο το πώς το Silverlight προστατεύει τον τελικό χρήστη όσο και το πώς μπορεί κανείς να κάνει τις Silverlight εφαρμογές που γράφει πιο ασφαλείς. Μέσα σε αυτόν το οδηγό θα βρείτε ανάμεσα στα άλλα πληροφορίες για το sandbox, τον out of browser τρόπο λειτουργίας, την προστασία των xap αρχείων, το validation του input των χρηστών αλλά ακόμα το τι σημαίνει η εκτέλεση σε trusted mode ή το πώς προστατεύουμε τα data που αποθηκεύουμε στο isolated storage. Καλό διάβασμα!...
    07-05-2010, 09:53 από το μέλος KelMan στο Manos Kelaiditis' Weblog
    Δημοσίευση στην κατηγορία: ,
  • Launch PARTY για το Visual Studio 2010

    Αυτή τη φορά το Launch του Visual Studio δεν θα είναι ημερίδα με ομιλίες αλλά ... πάρτυ Παρασκευή βράδυ με πίτσα και μπύρες! Γραφτείτε όσο προλαβαίνετε!...
    06-05-2010, 08:39 από το μέλος Παναγιώτης Καναβός στο Panagiotis Kanavos' Weblog
Περισσότερες Δημοσιεύσεις « Προηγούμενη - Επόμενη »
Με χρήση του Community Server (Commercial Edition), από την Telligent Systems