background preloader

Tutorials

Facebook Twitter

Building a JavaScript table grid application. What you'll be working on TaffyDB extracts the "hard part" of working with data in JavaScript. It provides methods to insert, update, remove, sort, and filter a data collection in much the same way you can with SQL. But how do you take advantage of this when building a data intensive application? How can you incorporate what TaffyDB does well to minimize and simplify your code? In this tutorial you'll go step by step and build a simple data grid application that uses TaffyDB as the engine. The application will render a table and expose options to customize the table to your liking. Prerequisites A simple grid app (in under 25 lines) Adding column names Custom column names Add column sorting with TaffyDB Custom columns/record level interaction Imagine the possibilities Questions/Comments? For these examples you'll need just a couple of snippets of code: The TaffyDB taffy.js file is required.

You'll be using an init() function to set up your grids which will be called onload in the body tag. Apple Fig. How to run a linux based home web server. There are plenty of places you can go if you just want to put up some static web pages for free, or very low cost. But costs go up very quickly if you need to do any more than that, or if you get spikes in traffic. Sometimes you need complete control over the server, and don't want to pay $20 to $40 a month for a VPS. In this article, I'll describe step by step how to set up a home web server using Ubuntu, capable of handling modest spikes in traffic. There are several things you need: Connection Hardware Domain name DNS server Web server software properly configured for your system The Connection Many large internet providers forbid running any servers in their usage agreement.

You will want as high an uplink speed as you can get. The Hardware Over your home internet connection, traffic will be naturally smoothed by the low uplink bandwidth. Your router will also be an important part of the system, but quality varies. Domain name You can get a domain name for 10 to 15 dollars. DNS server. The Hazel Tree - A Python Compendium. A re-introduction to JavaScript. Why a re-introduction? Because JavaScript is notorious for being the world's most misunderstood programming language.

It is often derided as being a toy, but beneath its layer of deceptive simplicity, powerful language features await. JavaScript is now used by an incredible number of high-profile applications, showing that deeper knowledge of this technology is an important skill for any web or mobile developer. It's useful to start with an overview of the language's history. JavaScript was created in 1995 by Brendan Eich while he was an engineer at Netscape. JavaScript was first released with Netscape 2 early in 1996. It was originally going to be called LiveScript, but it was renamed in an ill-fated marketing decision that attempted to capitalize on the popularity of Sun Microsystem's Java language — despite the two having very little in common. Several months later, Microsoft released JScript with Internet Explorer 3. Overview And there are some built-in Error types as well. Numbers. Memoization in JavaScript. Posted in: javascript While reading Jason Hickey's Introduction to Objectve Caml I ran into some memoization examples that I found pretty interesting, and I wondered how memoization could be used/implemented in JavaScript.

What is memoization? Memoization is a technique that uses side-effects to improve -at runtime- the performance of a function without altering its behavior. Roughly speaking, you can do memoization by storing function values that were returned in previous calls, and returning these values in further calls to the function instead of actually calling the function. Function square(x) { return x * x;} An example of a function that can't be memoized could be: var index = 1;function not_mem(x) { index = index + 1; return x + index;} By introducing side-effects we alter the inner state of the function, having different return values for the same input. We can see that the memo function has a table structure where it stores the f function results as (x, y) pairs.

Code University. Tutorials. By Drew McCormack There has been quite a bit of discussion the last few days about the momentum-based scrolling that Apple uses on the iPhone. The discussion has largely been fanned by John Gruber’s Daring Fireball blog. He has been arguing for some time that one of the reasons web apps feel inferior on the iPhone to native Cocoa apps is that the WebKit-based scrolling doesn’t behave the same. A recent post pointed to a JavaScript framework that Apple is apparently using internally, and which does produce a comparable scrolling experience.

This got me wondering how difficult it would be to reproduce Apple’s momentum scrolling on your own in JavaScript. Programming Ruby: The Pragmatic Programmer's Guide. Ruby Study Notes. RubyLearning.com Helping Ruby Programmers become Awesome! Ruby Study Notes: TOC Core Ruby Programming Introduction InstallationWhat is Ruby? Downloading Ruby and an EditorRuby Programming Environment First Ruby Program Features Numbers in RubyOperators and PrecedenceDifference between or and || operator Fun with Strings Variables and Assignment Summary 1 ScopeGlobal scope and global variablesBuilt-in global variablesLocal scope Getting Input Names in Ruby More on Ruby Methods Writing own Ruby MethodsBang (!) Note: The Ruby Logo is Copyright (c) 2006, Yukihiro Matsumoto.

. © 2006-2017 RubyLearning.com - A Ruby Tutorial Page Updated: 1st Jan. 2016 | Design: Erwin Aligam | Valid: XHTML | CSS Home | Privacy | Sitemap. Learning Lisp Fast. Lisp is a big and deep language. This quickstart is only intended to get you introduced to very basic concepts in Lisp, not any of the really cool stuff Lisp does. As such it's geared to how to do C in Lisp, not good functional style (no closures, no macros). It's enough to get you up to speed so you can more easily understand a good book (ANSI Common Lisp, etc.) The quickstart also does not teach many functions -- you'll need to root around in the ANSI Common Lisp index and play with some of the functions there. The quickstart also shows you how to manipulate the command line, and to load and compile files. Don't be intimidated by the size of this file. Just go through it at your own pace. If you're done with this tutorial, go on to Tutorial 2 and Tutorial 3. Legend Running, Breaking, and Quitting Lisp Evaluating Simple Expressions From now on, we will only use examples in clisp.

Evaluating Lists as Functions Control Structures and Variables Writing Functions Lists and Symbols as Data. Python: Tips For Writing Daemons. August 18th, 2012 @ 12:11 PM In my research to write the perfect CRT TV filter, to restore retro games to their full glory, I've come across a lot of information about NTSC transport schemes, and the effects it has on the signal being transported. In fact, I have a folder with a dozen or so technical documents on encoding / decoding NTSC signal. By far, the most common means of NTSC transport during the 16 bit era was the Composite cable. Although RGB goes in on the encoder side, and RGB comes out on the decoder side, NTSC uses the YIQ color model for transporting the signal. The main reason for this, is because the RGB model requires a lot more bandwidth than YIQ, and the YIQ model is designed with human perception of color in mind, so that there can be some color loss, but you will have a hard time recognising without a side by side comparison.

Now, when NTSC is sent over the Composite line, the Luma and two Chroma channels must share the same bandwidth. Source: Post Comment. Lisp and the web. The following article and code has been updated as the book Lisp for the Web. You can get it for any price you want at Leanpub. by Adam Petersen, April 2008 With his essay Beating the Averages , Paul Graham told the story of how his web start-up Viaweb outperformed its competitors by using Lisp.

Lisp? What to expect Starting from scratch, we'll develop a three-tier web application. Utilize powerful open source libraries for expressing dynamic HTML and JavaScript in Lisp, develop a small, embedded domain specific language tailored for my application, extend the typical development cycle by modifying code in a running system and execute code during compilation, and finally migrate from data structures in memory to persistent objects using a third party database. I'll do this in a live system transparent to the users of the application. This article will not teach you Common Lisp (for that purpose I recommend Practical Common Lisp ). The Lisp story Crash course in Lisp. Python-by-example.