galratner
Name: galratner
Score: 622.13
Last Seen: 61 days, 15 hours, 48 minutes ago
Member Since: 9 July, 2009
DotNetShoutout
atom rss
13
Shouts

Using HTML 5 and the Web API for AJAX file uploads with image preview and a progress bar - .NET Development - Gal Ratner

published 56 days, 15 hours, 35 minutes ago posted by galratnergalratner 61 days, 15 hours, 48 minutes ago
Thursday, March 28, 2013 11:19:52 AM GMT Saturday, March 23, 2013 11:07:36 AM GMT
AJAX file uploads used to be a client / server process in HTML 4. They required a round trip to a server side module, usually using an IFRAME and constant querying of the number of bytes uploaded, then reloading a progress bar inside the IFRAME with the current progress value. Luckily HTML 5 has a level 2 XMLHttpRequest object that natively support file uploads. This makes it a breeze to give your users a great experience when uploading files to your application. (more)
category: How To | clicked: 58 | comment | | source: galratner.com
tags:
2
Shouts

Use MVC 4 and OAuthWebSecurity to post into your users Facebook timeline - .NET Development - Gal Ratner

published 230 days, 16 hours, 35 minutes ago posted by galratnergalratner 238 days, 13 hours, 26 minutes ago
Friday, October 05, 2012 10:20:12 AM GMT Thursday, September 27, 2012 1:29:30 PM GMT
ASP.NET 4.5 and ASP.NET MVC 4 took an important step forward with the release of Visual Studio 2012. In addition to the new features and improved performance, the main direction seems to be bundling less namespaces in the core framework and more official libraries on NuGet. The main benefit of the new approach is the ability to update more code in an out-of-band release without being tied into the bi yearly .NET core release cycle. In other words: Microsoft and third party vendors can update releases ... (more)
category: How To | clicked: 30 | comment | | source: galratner.com
tags:
4
Shouts

Using ASP.NET MVC 4, ApiControllers and SQL Server 2012 to find the best cup of coffee in Seattle

published 356 days, 19 hours, 4 minutes ago posted by galratnergalratner 365 days, 19 hours, 2 minutes ago
Friday, June 01, 2012 7:51:14 AM GMT Wednesday, May 23, 2012 7:53:33 AM GMT
ASP.NET MVC continues to innovate and in its current version (4) it offers support for Web APIs. Today we are going to examine a real life scenario of using Web APIs along with MVC 4 as we are utilizing the Google Earth plug-in to mark a defined area and SQL Server 2012 geography type to help us persist and calculate GIS data. In our example we are going to mark an area on the globe using a polygon, calculate the center of the area, find all of the coffee shops closest to the center of the area and arran... (more)
category: Web Dev | clicked: 26 | comment | | source: galratner.com
tags:
2
Shouts

Reloading a Razor WebGrid after Ajax calls using a partial view - .NET Development - Gal Ratner

posted by galratnergalratner 539 days, 2 hours, 24 minutes ago
Friday, December 02, 2011 12:30:52 AM GMT
If you are using Razor and MVC you probably make some use of the built in controls in System.Web.Helpers. WebGrid, located in the Helpers assembly, was created for WebMatrix’s Razor Web Pages and landed itself nicely to Razor views in MVC. WebGrid, much like ASP.NET’s ListView control, is designed to display a data driven HTML table on the screen. It has support for paging, sorting and column customization. In this article, we will be taking a quick look at loading a WebGrid with data, both as a part o... (more)
category: Web Dev | clicked: 75 | comment | | source: galratner.com
tags: Razor, MVC
2
Shouts

Give your old ASP.NET validators a makeover with jQuery TOOLS - .NET Development - Gal Ratner

posted by galratnergalratner 562 days, 5 hours, 12 minutes ago
Tuesday, November 08, 2011 9:43:37 PM GMT
If you have been working with the default validators in ASP.NET for a while you are probably used to the plain old look they create on your page and while you can rework the way they look, ASP.NET validators are essentially a Label. They are unable to change the appearance of other elements or run scripts without a complete page postback. jQuery TOOLS is a jQuery based UI library you can find here. jQuery TOOLS contains a validator as a part of its form tools. The jQuery TOOLS validator is based on HT... (more)
category: UX | clicked: 13 | comment | | source: galratner.com
tags: jQuery
5
Shouts

How to record Skype voice conversations - .NET Development - Gal Ratner

published 634 days, 6 hours, 9 minutes ago posted by galratnergalratner 635 days, 10 hours, 3 minutes ago
Sunday, August 28, 2011 8:46:16 PM GMT Saturday, August 27, 2011 4:51:50 PM GMT
First let’s start at the end. If you are looking for free software to record Skype voice conversation, please skip to the bottom of this page and download the attached file. It contains a Windows Installer msi file and should install a recorder on your machine.  The rest of you, please keep reading :) Skype uses a public API to listen and transmit messages to all programs on your computer. Messages are being transmitted via the native windows API and will require us to use some external method cal... (more)
category: Architecture | clicked: 17 | 1 comment | | source: galratner.com
tags: Native API, Skype API
2
Shouts

Search for flight information with the Bing API - General Programming - Gal Ratner

published 645 days, 1 hour, 7 minutes ago posted by galratnergalratner 646 days, 8 hours, 11 minutes ago
Thursday, August 18, 2011 1:47:48 AM GMT Tuesday, August 16, 2011 6:44:22 PM GMT
The Bing API allows developers to query the Bing Engine.  Queries can be sent using JSON, XML or SOAP.  In order to query Bing you will need an Application ID available on the Bing Developer Center.  You will also need to agree to the terms of service. The Bing API includes support for Images, Answers, news, Phonebook, related, Spellcheck, Translation, Video and web results. In this example we will use the InstantAnswer SourceType in order to query for specific flight information. The InstantAnswer r... (more)
category: Web Dev | clicked: 21 | 2 comments | | source: galratner.com
tags: Bing api
4
Shouts

Secure user authentication with one way password hash - .NET Development - Gal Ratner

published 685 days, 19 hours, 24 minutes ago posted by galratnergalratner 688 days, 6 hours, 13 minutes ago
Friday, July 08, 2011 7:31:12 AM GMT Tuesday, July 05, 2011 8:42:31 PM GMT
Keeping users passwords in your database is a part of almost every application, yet securing passwords is rarely being done correctly. I recently read an article by Coda Hale about the ineffectiveness of password salts. Coda Suggested using bcrypt to store passwords. He reasoned his argument by explaining bcrypt is extremely slow to compute, therefore making it slow to hack. I completely agree, however, I wanted to add another way of safely storing passwords in a more conventional way by hiding the s... (more)
category: Architecture | clicked: 28 | comment | | source: galratner.com
tags: C# .NET
6
Shouts

Display your top selling products in ASP.NET using a Bubble Chart - .NET Development - Gal Ratner

published 689 days, 18 hours, 41 minutes ago posted by galratnergalratner 695 days, 22 hours, 45 minutes ago
Monday, July 04, 2011 8:14:28 AM GMT Tuesday, June 28, 2011 4:10:28 AM GMT
System.Web.DataVisualization contains 34 types of charts. The most common of them is the Column chart on which I already blogged about in Display a sales chart with ASP.NET Chart control and Linq to SQL. Today I am going to take our sales chart one step further and display the top selling products for the year. Since we have multiple products for each time span, I chose a Bubble chart. First let’s look at the data model: We are going to group our year’s sales into months and extract the top 5 sel... (more)
category: Web Dev | clicked: 33 | comment | | source: galratner.com
tags: Chart Control, C# .NET
3
Shouts

Sharing memory session between servers - .NET Development - Gal Ratner

published 721 days, 21 hours, 4 minutes ago posted by galratnergalratner 722 days, 6 hours, 22 minutes ago
Thursday, June 02, 2011 5:51:24 AM GMT Wednesday, June 01, 2011 8:33:08 PM GMT
Session variables hold per user information. Unlike cookies, sessions store information on the server rather than on the client. The client holds a session cookie with the client’s session ID and at the time of an HTTP request, the server accesses the client’s session ID and retrieves the session data. The default implementation of session has the web server holding the information in memory. This implementation as fast as it is has some drawbacks: Recycling your app pool or restarting IIS will abando... (more)
category: Web Dev | clicked: 16 | 1 comment | | source: galratner.com
tags: session mode
3
Shouts

Spatial Search made easy with Google Maps API and SQL Server 2008 - .NET Development - Gal Ratner

published 739 days, 22 hours, 26 minutes ago posted by galratnergalratner 740 days, 11 hours, 2 minutes ago
Sunday, May 15, 2011 4:29:37 AM GMT Saturday, May 14, 2011 3:52:53 PM GMT
Spatial search is the process of searching locations nearby to a position in space.  A good example of a spatial search would be finding all of the restaurants near your present location. With Google’s Maps API and SQL Server’s Geography data types we can build a quick spatial search in no time. In this little exercise I will be detecting the user’s location, displaying it on a map and suggesting nearby restaurants. Since not all browsers support the W3C standards I will also allow manual input of the... (more)
category: Web Dev | clicked: 20 | 2 comments | | source: galratner.com
tags: GeoLocation
5
Shouts

Consume an OData WCF Data Service as JSON with JQuery - .NET Development - Gal Ratner

published 768 days, 12 hours, 31 minutes ago posted by galratnergalratner 770 days, 6 hours, 12 minutes ago
Saturday, April 16, 2011 2:24:19 PM GMT Thursday, April 14, 2011 8:42:54 PM GMT
OData(Open Data Protocol) is an HTTP based protocol for querying and updating data using full REST syntax. The full specifications of OData can be found on http://odata.org WCF Data Services (formerly ADO.NET Data Services, formerly Project Astoria) is the .NET based implementation of OData enabled services. WCF Data Services can use an Entity Framework Context or any data model exposing at least one property that returns an entity set that is an IQueryable(Of T). The model must also implement IUpdatabl... (more)
category: Web Dev | clicked: 15 | 1 comment | | source: galratner.com
3
Shouts

Four ways to utilize Entity Framework 4 - .NET Development - Gal Ratner

published 789 days, 5 hours, 59 minutes ago posted by galratnergalratner 791 days, 21 hours, 3 minutes ago
Saturday, March 26, 2011 8:56:13 PM GMT Thursday, March 24, 2011 5:51:48 AM GMT
There is some confusion out there about a simple question: How can I use Entity Framework? Some developers have heard about reverse engineering models so I decided to write a quick preview to the main features of EF4. This isn’t an in-depth article, but, rather a visual summary of the main four scenarios EF can accommodate.  If you are looking to utilize any of the scenarios described here you might need to seek further documentation and realize that development with Entity Framework is a vast subject an... (more)
category: Architecture | clicked: 1 | comment | | source: galratner.com
tags: Code first, Entity Framework 4
7
Shouts

Reading an Excel spreadsheet into dynamic objects - .NET Development - Gal Ratner

published 797 days, 11 hours, 41 minutes ago posted by galratnergalratner 798 days, 10 minutes ago
Friday, March 18, 2011 3:14:29 PM GMT Friday, March 18, 2011 2:44:50 AM GMT
Excel represents documents using Office Open XML (OOXML), a zipped XML based format developed for spreadsheet and chart representation.  In this article I am going to demonstrate parsing an Excel spreadsheet and loading the data into a generic List. OOXML was incorporated into Office in 2007 therefore the following code will not work with older versions of Excel. This is our spreadsheet: In order to read and parse the Spreadsheet we are going to use The Open XML SDK 2.0 for Microsoft Office availab... (more)
category: Architecture | clicked: 9 | 1 comment | | source: galratner.com
tags: C#, Open XML Format SDK
5
Shouts

Never break the build again with an organized code base - .NET Development - Gal Ratner

published 809 days, 3 hours, 54 minutes ago posted by galratnergalratner 811 days, 42 minutes ago
Sunday, March 06, 2011 11:00:47 PM GMT Saturday, March 05, 2011 2:12:56 AM GMT
During my time developing for different companies one of the most common daily scenarios I encounter is helping a developer debug code. Going to some method’s definition, only to realize they can only view metadata and not actual code. The library is still internal, most likely developed by another department inside the same organization, however, it was added as an external DLL reference and to view the code they need to open another solution in another folder. Well this will work until the external cod... (more)
category: Architecture | clicked: 0 | 1 comment | | source: galratner.com
7
Shouts

Send a web page as an email with embedded images - .NET Development - Gal Ratner

published 814 days, 14 hours, 2 minutes ago posted by galratnergalratner 816 days, 22 hours, 2 minutes ago
Tuesday, March 01, 2011 12:53:37 PM GMT Sunday, February 27, 2011 4:53:25 AM GMT
In email marketing, sending customized emails is a common practice. Emails containing special offers, shopping cart items or any other dynamic content, are usually tailored to the individual and are being sent either by request or as a part of a marketing campaign. This presents a challenge since email templates are usually being maintained by the marketing department and need to be simple to change, yet flexible enough for a programmer to add any dynamic data as needed. The solution can be reading a dyn... (more)
category: Web Dev | clicked: 5 | 1 comment | | source: galratner.com
tags: Email
6
Shouts

Getting around PathTooLongException on file move with Windows Native API - .NET Development - Gal Ratner

published 828 days, 6 hours, 58 minutes ago posted by galratnergalratner 830 days, 19 hours, 50 minutes ago
Tuesday, February 15, 2011 7:56:46 PM GMT Sunday, February 13, 2011 7:05:10 AM GMT
If you ever got the error message “The specified path, file name, or both exceed the system-defined maximum length. For example, on Windows-based platforms, paths must be less than 248 characters, and file names must be less than 260 characters. “ you are probably aware that there is no practical way of moving files with long paths using System.IO.File. The solution is to use the Native Windows API. You can see the API here: http://msdn.microsoft.com/en-us/library/aa364232(v=VS.85).aspx Here is a little... (more)
category: Architecture | clicked: 2 | 1 comment | | source: galratner.com
tags: Native API, C# .NET, IO
4
Shouts

A simple fast configuration-less rolling file appender - .NET Development - Gal Ratner

published 829 days, 6 hours, 24 minutes ago posted by galratnergalratner 830 days, 23 hours, 59 minutes ago
Monday, February 14, 2011 8:31:05 PM GMT Sunday, February 13, 2011 2:56:28 AM GMT
If you ever needed a simple logger and did not want to deal with the complexity of configurating Log4net or the enterprise library you might find this class useful. This is a single class, single file rolling file appender. Usage: To use this logger all you need to do is either add the class to your code or use the DLL as a reference. If you chose to use the dll you need to import it in your code as follows: using InvertedSoftware.PLogger.Provider; Then to write a log line you simply need to cal... (more)
category: Architecture | clicked: 4 | comment | | source: galratner.com
tags: Enterprise Library, Log4net, C# .NET
4
Shouts

Planning for SOA: Returning data in multiple formats - .NET Development - Gal Ratner

published 843 days, 8 hours, 48 minutes ago posted by galratnergalratner 843 days, 22 hours, 46 minutes ago
Monday, January 31, 2011 6:07:38 PM GMT Monday, January 31, 2011 4:09:14 AM GMT
A major part of any SOA implementation is the ability to return multiple data formats and while SOAP still plays a major role in SOA, the need for RSS syndication, JSON and plain XML may require you to add new functionality and steer away from traditional WCF RPC calls. With OData enabled services you can expend the flexibility of your system, but, what about a pain old XML read feed? There is no need to use the overhead of WCF Data Services or RIA OData publish points. Here is a simple class I use along... (more)
category: Architecture | clicked: 2 | 1 comment | | source: galratner.com
tags: SOA, rss, Atom
2
Shouts

Forms authentication with Client Application Services - .NET Development - Gal Ratner

published 849 days, 7 hours, 20 minutes ago posted by galratnergalratner 849 days, 14 hours, 29 minutes ago
Tuesday, January 25, 2011 7:35:38 PM GMT Tuesday, January 25, 2011 12:26:12 PM GMT
System.Web.ClientServices.Providers contains client service providers that support remote access to the Microsoft Ajax authentication, roles, and profile services. Today we will be looking at a common use case and solve it using client application services. We have a remote website containing the default ASP.NET membership provider and we need to access it from another website in order to log on a remote user. In order to enable client application services in the remote site we need to change the web.... (more)
category: Web Dev | clicked: 0 | comment | | source: galratner.com
tags: Authentication, C# .NET
Previous 1 2 Next