|
dotNETZone.gr Weblogs
-
In my last post I’ve mentioned connecting the JavaScript client-side code to various server data sources and have had a WCF HTTP service implemented as an example. Another –rather old fashioned but still viable, option is an ISAPI serving JSON data. You can, of course, create the ISAPI DLL using a number of tools. What I’ve always had difficulty remembering though is the exact steps needed to host the DLL in IIS. If nothing else this post is a reminder on how to have an ISAPI hosted in a Virtual Directory under IIS 7.5, which ships with Windows 7. Install IIS Install IIS if you haven’t already done so. Besides the bare minimum make sure you have the ISAPI options ( ISAPI Extensions and ISAPI Filt ers ) checked as shown in the figure below. Configure for ISAPI DLL Open IIS Manager. Assuming you already have a Virtual Directory created under the Default Web Site node select it and double click the Handler Mappings icon. Click Edit Feature Permissions in Actions panel. Check Execute in the Edit Feature...
|
-
Based on a nice (but alas not working) idea and as a follow up to my previous post about the fantastic Ext.NET framework [Greek language] today I present you with a how-to guide to Ext JS . First, let me remind you that Ext JS is the powerful JavaScript framework behind Ext.NET . Once again, it is worth mentioning that the Ext.NET guys have done a truly great job wrapping .NET around the JavaScript engine. In this post, we are going to see how we can build a simple HTML page featuring an Ext JS 4 grid that consumes JSON data provided by a server source. Please note that this is a pure AJAX-enabled client side scenario as opposed to the usage of the Ext.NET GridPanel server component. IIS Setup This guide requires you to use IIS as the web server. Before we move on make sure you have a web application set up and ready with the same folder structure as shown in Figure 1. Figure 1. The folder structure of the hosting web application (Tests). The client To begin with, download the Ext JS 4 library (the Open Source...
|
-
*** Προσθήκη στις 24/12/2013 *** Σε όλους όσους δεν είναι προγραμματιστές και με ρωτούν αν υπάρχουν δουλειές στους αντίστοιχους κλάδους που τους ενδιαφέρουν, η μόνη απάντηση που μπορώ να δώσω είναι "δυστυχώς δεν γνωρίζω, κ αλύτερα να έρθετε σ' επαφή με την ελληνική κοινότητα στην Ιρλανδία". Η διεύθυνση της ελληνικής κοινότητας είναι: http://www.helleniccommunity.ie/contact Ίσως κάποιος εκεί να μπορεί να σας βοηθήσει. *** Αρχικό κείμενο *** Τον τελευταίο καιρό έχω πάρει πολλά μηνύματα από ανθρώπους που με ρωτούν πώς είναι τα πράγματα στην Ιρλανδία κι αν υπάρχουν ευκαιρίες εργασίας. Σκέφτηκα λοιπόν ότι το θέμα μπορεί να ενδιάφέρει κι άλλους και αποφάσισα να γράψω δημόσια αυτά που λέω ιδιωτικά. Από το ξεκίνημα θέλω να ξεκαθαρίσω ένα πράγμα: όσα αναφέρω βασίζονται στις προσωπικές μου απόψεις και στις προσωπικές μου εμπειρίες, οπότε δεν είναι ούτε αντικειμενικά (με την επιστημονική έννοια), ούτε εγγυημένα, ούτε έχουν καθολική ισχύ. Ιδού λοιπόν μια λίστα με συνηθισμένες ερωτήσεις και τις απαντήσεις τους. Αν κάτι νομίζετε...
|
-
I saw one of my students do a crazy thing the other day. He and his friends were watching videos on YouTube but with a twist; before each video started they had had its title changed with the help of Firebug (the Firefox’s extension, which allows you to view and manipulate the DOM of a web page). Clearly, they were extremely happy with the results but they knew it wasn’t a permanent thing. But what if it could be? At that very moment, two questions crossed my mind. First, why on earth don’t we just drop the read only nature of web pages? We have excellent tools to play with the DOM and we are comfortable enough with their usage, apparently. Even school kids understand Firebug and Firebug is not a toy, mind you. So, what if we had a Rights Management scheme applied to web pages thus allowing changes by everyone granted with write permissions? But what about dynamic content? Which –somehow, made me ask the second question. Why do we still use online Content Management Systems? Back in the desktop PC era we couldn’t...
|
-
Στο σημερινό Sunday’s Dev Digest παρουσιάζω ένα απλό παράδειγμα χρήσης του Ext.NET GridPanel. Τι θα χρειαστούμε : Ένα ASP.NET Empty Web Application (Visual Studio –> File –> New –> Project –> ASP.NET Empty Web Application) Μια ASPX σελίδα (Δεξί κλίκ στο project –> Add –> New Item –> Web Form) Εγκατάσταση του Ext.NET στο project. Ο πιο εύκολος τρόπος είναι να κάνουμε χρήση του NuGet package και στο Package Manager Console (View –> Other Windows –> Package Manager Console) γράφουμε: install-package ext.net Για την χρήση των Ext.NET components στην ASPX σελίδα μας χρειαζόμαστε οπωσδήποτε την δήλωση του Ext.Net Assembly: <%@ Register Assembly="Ext.Net" Namespace="Ext.Net" TagPrefix="ext" %> και χρήση του Ext.Net ResourceManager component στην αρχή της σελίδας (θεωρείτε, αν θέλετε, τον ResourceManager κάτι σαν τον ScriptManager του ASP.NET AJAX): < ext:ResourceManager runat ="server" /> Το Ext.NET GridPanel Για να χρησιμοποιήσουμε το GridPanel...
|
-
Για όσους δεν το γνωρίζουν, είναι το Ext.NET μια φανταστική συλλογή εργαλείων για ASP.NET. Το πρώτο ενδιαφέρον στοιχείο είναι το dual licensing που εκτός της επί πληρωμής Pro έκδοσης περιλαμβάνει την απολύτως δωρεάν Community έκδοση με την οποία μπορείτε να πειραματιστείτε ή/και να την χρησιμοποιήσετε στα προσωπικά ή ενδο-εταιρικά σας projects. Πληροφορίες και για τα δυο licenses εδω . Παρόλο που η Community έκδοση είναι πλήρως λειτουργική, υπάρχουν πράγματα που παρέχονται μόνο στην Pro όπως για παράδειγμα το localization του Calendar component (στην Community είναι μόνο στα Αγγλικά). Τεχνικά το Ext.NET είναι ένα wrapper framework γύρω από την βιβλιοθήκη JavaScript Ext JS . Η ενσωμάτωση στο Visual Studio και η χρήση στα projects σας είναι απρόσκοπτη και όλα πραγματικά λειτουργούν άψογα εφόσον κάνετε την απλούστατη δήλωση: <%@ Register Assembly= "Ext.Net" Namespace= "Ext.Net" TagPrefix= "ext" %> Η εργαλειοθήκη περιλαμβάνει πάνω από 100 components (όχι και άσχημα, έτσι;...
|
-
Article installing FxCop for Achievements more...
|
-
Δουλεύετε με τον SQL Server Express και δεν έχετε το Management Studio εγκατεστημένο; Ανακτήστε μια βάση δεδομένων από αρχείο .BAK στον server με το πανταχού παρόν sqlcmd. Απο το command line: sqlcmd –U [USERNAME] –P [PWD] –S [SERVER INSTANCE] -d master -q " RESTORE DATABASE [DB NAME] FROM DISK = 'C:\…\[ΑΡΧΕΙΟ.bak]' "...
|
-
Αρκετές φορές έχω ερωτηθεί και έχω πει την άποψη μου για το τι είναι ANSI Transact SQL και τι όχι, όπως επίσης έχω πει και το πόσο ο SQL Server έχει δώσει βάρος στο να είναι κοντά στο ANSI. Όπως και να έχει όμως είτε θέλω να γράφω pure ANSI επειδή ενδεχομένως να θέλω portability είτε γιατί απλά είμαι περίεργος και θέλω να ξέρω αυτό που γράφω πόσο ANSI είναι , μπορώ το κάνω απλά χρησιμοποιώντας την < διαβάστε το άρθρο >...
|
-
There are many solutions on the net for avoiding the null check. Here is mine: public interface Option<T> { } public struct Nothing<T> : Option<T> { } public struct Just<T> : Option<T> { public readonly T Value; public Just(T value) { Value = value; } } public static class OptionExtentions { public static Option<T> ToOption<T>(this T value) { return (value == null) ? new Nothing<T>() as Option<T> : new Just<T>(value); } public static U Select<T, U>(this Option<T> option, Func<T, U> func) where U : class { return option.Select(func, () => null); } public static U Select<T, U>(this Option<T> option, Func<T, U> whereJust, Func<U> whereNothing) where U : class { return option is Just<T> ? whereJust(((Just<T>)option).Value) : whereNothing(); } } And implementation return from h [...]...
|
-
Continuing on where I left it on my previous post, I’m going to explain how the Announcement service works and why we choose that approach. The way JBoss and mod_proxy work now is that every time something changes in the topology, either a new proxy is added or removed or a JBoss node, then the proxy [...]...
|
-
I’m going to start a series of posts to explain how we made JBoss run on Windows Azure, not just on standalone mode but with full cluster support. Let me start with one simple definition, I’m NOT a Java guy, but I work with some very talented people under the same roof and under the [...]...
|
-
Very nice article on creating Sitcore XAML apps. more...
|
-
Από χθες είναι διαθέσιμη η πρώτη RC του SQL Server 2012 . Η εταιρία συνεχίζοντας την ανάπτυξη του προιόντος στο τρίπτυχο FURTHER, FORWARD, FASTER πρόσθεσε μερικά ακόμα χαρακτηριστικά όπως το CDC support for Oracle, κάποιες ακόμα βελτιώσεις στο AlwaysOn και αρκετά ακόμα features στο Power View, SQL Data Tools, LocalDB, SQL Azure Download SQL Server 2012 RC today here. Learn more about SQL Server 2012 at www.microsoft.com/sql server....
|
-
Ένα από τα εργαλεία τα οποία έχουμε στην διάθεση μας για να κάνουμε tuning τον SQL Server είναι και ο Database Engine Tuning Advisor (DTA). Ένα αρκετά καλό εργαλείο που μπορείς εύκολα να πάρεις σχεδόν άμεσα απάντηση που θα σου βελτιώνει το performance στα queries σου. Μέχρι τώρα η τροφή που έπρεπε να δώσεις στο εργαλείο αυτό ήταν ή ένα trace workload ή ένα script με τα queries που ήθελες να ελέγξεις. Πλέον όμως μπορεί να πάρει τροφή διαβάζοντας [ Read more ]...
|
-
Όσοι ασχολούμαστε καθημερινά με τον SQL Server και το πρώτο πράγμα που κάνουμε το πρωί πριν ακόμα πιούμε την πρώτη τζούρα καφές είναι σχεδόν σίγουρο ότι όταν θα χρειαστεί να κάνουμε κάποιο restore σε μια database γνωρίζουμε εξ αρχής σε ποιο χρονικό σημείο θα γυρίσουμε. Παρόλα αυτά όμως κάνουμε επιβεβαίωση χρησιμοποιώντας διάφορες τεχνικές κυρίως με T-SQL commands. Στο SQL Server 2012 όταν πάμε να κάνουμε restore μια βάση μέσα από το GUI θα δούμε πλέον όπως φαίνεται στην παρακάτω εικόνα ένα button με τίτλο Timeline [ View article ]...
|
-
I needed a query at Sitecore to select the descendants belonging to a template, of the ancestor belonging to another template query:./ancestor::*[@@templatekey='templ 1']//*[@@templatekey='templ 2']...
|
-
Πριν μερικές μέρες ανακοινώθηκαν από την Microsoft οι πρώτες αλλαγές που αφορούν τις εκδόσεις και τις άδειες χρήσης του προϊόντος. Οφείλω να ομολογήσω ότι ποτέ δεν ήμουν από αυτούς που ασχολούνταν με το θέμα των αδειών, θα μπορούσα να πω ότι ήμουν και είμαι αλλεργικός με το θέμα αυτό. Όμως είδα ότι κάτι πάει να αλλάξει στο θέμα αυτό και μάλιστα προς το καλύτερο. Επίσης επειδή είχα την τύχη να παρακολουθήσω ένα live meeting σχετικά με αυτά πήρα την απόφαση να προσθέσω και εγώ το λιθαράκι μου με το post αυτό. Είναι αλήθεια πάντως ότι μου πήρε μερικές μέρες για να καταλάβω πως έχει το θέμα με τις άδειες και είχα αρκετές ερωτήσεις. Αυτό πάντως που δεν μου ήταν δύσκολο να καταλάβω με την πρώτη ήταν το ποιες θα είναι οι εκδόσεις του SQL Server 2012. [ read more ]...
|
-
Αρκετές φορές έχω ερωτηθεί αν μπορεί να γίνει μετατροπή των υφιστάμενων report που είναι φτιαγμένα με Crystal Reports (.rtp) σε SQL Server Reporting Services (.rdl). Αυτό και άλλα πολλά ήταν και είναι εφικτό να γίνουν αρκεί να βουτούσες για τα καλά μέσα στο SQL Server 2008 R2 Reporting Services Migration Guide . Πρόσφατα στο Microsoft | Business Intelligence site , η Microsoft μας ενημερώνει ότι μια εταιρεία... [ read more ]...
|
-
http://sqlschoolgr.wordpress.com/2011/10/23/tod-you-are-not-going-to-say-f-i-ran-the-test-script-in-the-production-server-again/...
|
-
http://sqlschoolgr.wordpress.com/2011/10/17/sql-server-developers-tools-code-named-juneau-becomes-sql-server-data-tools-ssdt/...
|
-
http://sqlschoolgr.wordpress.com/2011/10/12/the-value-of-sys-dm_io_virtual_file_stats-dmv/...
|
-
http://sqlschoolgr.wordpress.com/2011/10/07/the-truth-about-with-encryption-option/...
|
-
Articles on node.js. more...
|
-
http://sqlschoolgr.wordpress.com/2011/09/28/tod-ever-lost-your-report-data-window-when-working-on-bdis/...
|
|
|
|