Skip to main content

Home/ Coders/ Group items tagged Examples

Rss Feed Group items tagged

Joel Bennett

Michael Morozov : ASP.NET 2.0 two-way binding and calculated fields - 0 views

  •  
    Simple example of how to implement two way data-binding even when you have calculated fields
Joel Bennett

C# 3.0 Cookbook - Sample Code - 0 views

  •  
    The code samples from the C# Cookbook for C# 3.0 -- awesome, even without the book's explanations.
Kingdon Barrett

Radiant CMS: Why Radiant? - 0 views

    • Kingdon Barrett
       
      I was hoping to provide a list of my blog posts from RSS feeds, as well as links to all of the articles that I have commented on with my friends' blogs. I could list all of my friends' blogs and scrape them periodically, but I was hoping for a solution that uses trackbacks, or whatever pingback-style facilities are available on my friends' blogs. Granted this type of support will vary from site to site, but it should be possible to build a complete publishing record automatically, with the standards we have available today. I posted a comment on otierney.net (my friend Tristan is up on all the latest web standards) and I noticed that his blogger is collecting URLs along with emails. I filled in the link to my Radiant CMS on nerdland.org but I'm afraid my blogger is not going to do anything to collect these pingbacks, when they are fired. Can anyone point out an example code segment or project that highlights this type of behavior?
Joel Bennett

Koders - Utils.cs - 0 views

  •  
    Some good examples here of how to get icons -- although my ExtractIcons class should be more complete than this when it's done -- and particular to WPF instead of Windows.Forms.
Joel Bennett

Windows PowerShell : Base64 Encode/Decode a string - as a type extension - 0 views

  •  
    Another great example of a custom type extension - adding a ToBase64 onto Strings
Joel Bennett

Policy Injection Application Block Validation and Logging Examples - 0 views

  •  
    David Hayden writes a couple of tutorials and gives some explanation of how the Policy Injection Application Block in Enterprise Library 3.0 really is Aspect Oriented Programming ... and there's a good screenshot there of the various "matching rules" ...

    It's kind of a shame that Microsoft couldn't bring themselves to use AOP terminology to describe this: weaving instead of "injection" ... etc.  It would really have made it easier to follow for the new users and would have lent some validation to AOP research and development

Joel Bennett

WPF/E and Flash, living in harmony - 0 views

  •  
    A demo of Flash and WPF working side-by-side passing a ball back and forth...
Joel Bennett

Security Development Lifecycle (SDL) Banned Function Calls - 0 views

  •  
    Microsoft's official list of "banned" unsafe function calls. Basically this is a list of all the SafeCRT and StrSafe.h function equivalencies ... along with a short discussion of the relative merits for StrSafe vs. SafeCRT... also includes some *very* useful examples.
Joel Bennett

ClickOnce -- MSDN Magazine, May 2004 - 0 views

  •  
    An early (prerelease) article about Click Once. It's actually a good article with great source code examples so you can understand the various options for ClickOnce including automatic updates.
Justin Newton

W3Schools Online Web Tutorials - 0 views

  • At W3Schools you will find all the Web-building tutorials you need, from basic HTML and XHTML to advanced XML, SQL, Database, Multimedia and WAP.
  •  
    At W3Schools you will find all the Web-building tutorials you need, from basic HTML and XHTML to advanced XML, SQL, Database, Multimedia and WAP.
  •  
    This site includes tutorials, references, and try it safely examples...
  •  
    XHTML, CSS, JAVASCRIPT, PHP, DOM, XSLT, XSL, XML, WAP
Joel Bennett

html2wiki.pm - Convert HTML text to wiki markup - live preview - 0 views

  •  
    A Perl Module to convert HTML to any of the many pseudo-markups in use by wiki's and blogs, including Textile (see "Confluence") and Markdown, MediaWiki, UseMod, SnipSnap, MoinMoin, etc.
  •  
    At first I thought this could be the "back" part of TIM, but after trying it out on even simple example text, I'm a bit dissapointed. The nested lists, images, and URLs seem broken (although the links at least, work in Confluence).

    The worst problems are that it has no sense of %{style} span% or footnotes, and no concept AT ALL of tables.  It would be nice to at least get the {style} -- and therefore the spans -- working.
Matteo Spreafico

Fabulous Adventures In Coding : The Stack Is An Implementation Detail, Part One - 0 views

  • Almost every article I see that describes the difference between value types and reference types explains in (frequently incorrect) detail about what “the stack” is and how the major difference between value types and reference types is that value types go on the stack.
  • I find this characterization of a value type based on its implementation details rather than its observable characteristics to be both confusing and unfortunate. Surely the most relevant fact about value types is not the implementation detail of how they are allocated, but rather the by-design semantic meaning of “value type”, namely that they are always copied “by value”.
  • Of course, the simplistic statement I described is not even true. As the MSDN documentation correctly notes, value types are allocated on the stack sometimes. For example, the memory for an integer field in a class type is part of the class instance’s memory, which is allocated on the heap.
  • ...3 more annotations...
  • As long as the implementation maintains the semantics guaranteed by the specification, it can choose any strategy it likes for generating efficient code
  • That Windows typically does so, and that this one-meg array is an efficient place to store small amounts of short-lived data is great, but it’s not a requirement that an operating system provide such a structure, or that the jitter use it. The jitter could choose to put every local “on the heap” and live with the performance cost of doing so, as long as the value type semantics were maintained
  • I would only be making that choice if profiling data showed that there was a large, real-world-customer-impacting performance problem directly mitigated by using value types. Absent such data, I’d always make the choice of value type vs reference type based on whether the type is semantically representing a value or semantically a reference to something.
Fabien Cadet

MIT's Introduction to Algorithms, Lectures 22 and 23: Cache Oblivious Algorithms - good... - 0 views

  • Cache-oblivious algorithms should not be confused with cache-aware algorithms. Cache-aware algorithms and data structures explicitly depend on various hardware configuration parameters, such as the cache size. Cache-oblivious algorithms do not depend on any hardware parameters.
  • An example of cache-aware (not cache-oblivious) data structure is a B-Tree that has the explicit parameter B, the size of a node. The main disadvantage of cache-aware algorithms is that they are based on the knowledge of the memory structure and size, which makes it difficult to move implementations from one architecture to another.
  •  
    « Cache-oblivious algorithms take into account something that has been ignored in all the lectures so far, particularly, the multilevel memory hierarchy of modern computers. Retrieving items from various levels of memory and cache make up a dominant factor of running time, so for speed it is crucial to minimize these costs. The main idea of cache-oblivious algorithms is to achieve optimal use of caches on all levels of a memory hierarchy without knowledge of their size. »
David Corking

Dr. Dobb's | Q&A: When Mobility and Open Source Collide | March 28, 2009 - 0 views

  • The web browser is a good example, on a pc it may make sense to ask a user to find, click, type, and browse the web or look for a service. In a mobile, converged product, you need to help the user be present with the service even or especially when they are driving or have the product in a pocket or handbag, and requiring them to constantly select 'yes' or to type in forms etc. are real headaches for a consumer.
  • We will not provide a store front, but will help the community create multiple online stores from which they can generate revenue for themselves and the developer.
  • At the other end of the spectrum, you see hoards of teenagers in the U.S., Europe and Asia happily texting one handed, using predictive text.
    • David Corking
       
      No: they do NOT use predictive text - we 40 somethings might - but the kids uset text speak. How does a kid text rom an iPhone in his pocket?
  • ...7 more annotations...
  • Focus on the whole experience, meaning you need to be inclusive of display sizes, input methods, and form factors when you design and develop your applications and services.
    • David Corking
       
      How much time does a Symbian app developer have to put in to considering all the different Symbian phones on the market?
  • .Net CF
  • expanding this functionality with QT libraries, Adobe AIR technology
  • StyleTap has a Palm emulator that allows you to run thousands of Palm applications on Symbian products
  • Red Five Labs has a runtime for Symbian OS which ensures Microsoft .net applications can be fully supported.
  • many people around the world are not buying and cannot afford a PC.
  • The Symbian Foundation is helping to do this by ensuring we lower the barrier for entry for software developers.
  •  
    Really interesting interview with Symbian boss
Matteo Spreafico

Classical Inheritance in JavaScript - 0 views

  • function ZParenizor2(value) { var that = new Parenizor(value); that.toString = function () { if (this.getValue()) { return this.uber('toString'); } return "-0-" }; return that; }
    • Matteo Spreafico
       
      This constructors lies, wondeful!
  • Again, we augment Function. We make an instance of the parent class and use it as the new prototype. We also correct the constructor field, and we add the uber method to the prototype as well.
  • This adds a public method to the Function.prototype, so all functions get it by Class Augmentation. It takes a name and a function, and adds them to a function's prototype object.
  • ...3 more annotations...
  • To make the examples above work, I wrote four sugar methods. First, the method method, which adds an instance method to a class. Function.prototype.method = function (name, func) { this.prototype[name] = func; return this; };
  • JavaScript can be used like a classical language, but it also has a level of expressiveness which is quite unique. We have looked at Classical Inheritance, Swiss Inheritance, Parasitic Inheritance, Class Augmentation, and Object Augmentation. This large set of code reuse patterns comes from a language which is considered smaller and simpler than Java.
  • I have been writing JavaScript for 8 years now, and I have never once found need to use an uber function. The super idea is fairly important in the classical pattern, but it appears to be unnecessary in the prototypal and functional patterns. I now see my early attempts to support the classical model in JavaScript as a mistake.
vikramsjn

Shelves in Subversion | svn commit ./me - 0 views

  • The first thing to do is to create the shelf/branch. If you know your working copy is a little old, compared to the HEAD revision of your trunk or branch, then you can use the last revision you committed or updated to when creating the shelf. Otherwise, just use the HEAD revision:svn copy -r HEAD url://server/repos/project1/trunk url://server/repos/project1/branches/shelfThis command is creating the shelf directly in the repository, based on whatever URL and revision your working copy is associated with. In this example, I used trunk. The next step is to use the svn switch command to switch your working copy so that it is pointing at the shelf URL:svn switch url://server/repos/project1/branches/shelf
« First ‹ Previous 81 - 100 of 122 Next › Last »
Showing 20 items per page