Archivos para Febrero 2009

28
Feb
09

義: Emacs para Haskell

Luego probar este editor, sería divertido hacer ports de algunas
extensiones de Emacs en eLisp a Haskell.
Screenshot
27
Feb
09

AI

Los problemas del caballo y del mapa que se tiene que colorear

25
Feb
09

Qué he hecho últimamente…

Terminé el problema de CSP del mapa de México–a la malagueña. Lo hice en Javascript. Con 4 colores… Casi todo el tiempo me la he pasado batallándole con la clase de IA, me falta el problema del caballo para el viernes. Está muy bonito Javascript, o por lo menos eso es lo que pienso ahora.
Todavía no acabo los libros de John Resig, pero lo tengo que hacer antes de que salga el libro de los ninja. Quiero también empezar a utilizar el clojure pero tengo varias cosas pendientes antes que ponerme a jugar. Está lo del concurso de Freescale… no creo que nos vaya a ir bien. Por lo menos estudiar ya lo de las redes neuronales éstas semanas para empezar a hacer lo de las licencias de las placas… Escucho puro Spangle Call Lilly Lineúltimamente y el disco de Kim Doo Soo que me recomendó Joss.
20
Feb
09

HTMLelement…

HTMLElement………………..
HTMLElement.className String The value of the class attribute of the element, which specifies zero or more space-separated CSS class names. Note that this property is not named "class" because that name is a reserved word in JavaScript.
HTMLElement.currentStyle CSS2Properties This IE-specific property represents the cascaded set of all CSS properties that apply to the element. It is an IE-only alternative to Window.getComputedStyle( ).
HTMLElement.dir StringThe value of the dir attribute of the element, which specifies the text direction for the document.
HTMLElement.id String The value of the id attribute. No two elements within the same document should have the same value for id.
HTMLElement.innerHTML StringA read/write string that specifies the HTML text that is contained within the element, not including the opening and closing tags of the element itself. Querying this property returns the content of the element as a string of HTML text. Setting this property to a string of HTML text replaces the content of the element with the parsed representation of the HTML. You cannot set this property while the document is loading (for this ability, see HTMLDocument.write( )). This is a nonstandard property that originated in IE 4. It has been implemented by all modern browsers.
HTMLElement.lang String The value of the lang attribute, which specifies the language code for the element’s content.
HTMLElement.offsetHeight int offsetWidth The height and width, in pixels, of the element and all its content, including the element’s CSS padding and border, but not its margin. These are nonstandard but well-supported properties.
HTMLElement.offsetLeft int offsetTop The X and Y coordinates of the upper-left corner of the CSS border of the element relative to the offsetParent container element. These are nonstandard but well-supported properties.
HTMLElement.offsetParent ElementSpecifies the container element that defines the coordinate system in which offsetLeft and offsetTop are measured. For most elements, offsetParent is the Document object that contains them. However, if an element has a dynamically positioned container, the dynamically positioned element is the offsetParent. In some browsers, table cells are positioned relative to the row in which they are contained, rather than relative to the containing document. See Chapter 16 for an example that uses this property portably. This is a nonstandard but well-supported property.
HTMLElement.scrollHeight int scrollWidth The overall height and width, in pixels, of an element. When an element has scrollbars (because of the CSS overflow attribute, for example) these properties differ from offsetHeight and offsetWidth, which simply report the size of the visible portion of the element. These are non-standard but well-supported properties.
HTMLElement.scrollLeft int scrollTop The number of pixels that have scrolled off the left edge of the element or off the top edge of the element. These properties are useful only for elements with scrollbars, such as elements with the CSS overflow attribute set to auto. These properties are also defined on the <body> or <html> tag of the document (this is browser-dependent) and specify the amount of scrolling for the document as a whole. Note that these properties do not specify the amount of scrolling in an <iframe> tag. These are non-standard but well-supported properties.
HTMLElement.style CSS2PropertiesThe value of the style attribute that specifies inline CSS styles for this element. Note that the value of this property is not a string. See CSS2Properties for details.
HTMLElement.title StringThe value of the title attribute of the element. Many browsers display the value of this attribute in a tool tip when the mouse hovers over the element.

20
Feb
09

todo javascript

para que no se me pierda

arguments[ ]: an array of function arguments
Arguments: arguments and other properties of a function
Arguments.callee: the function that is currently running
Arguments.length: the number of arguments passed to a function
Array: built-in support for arrays
Array.concat( ): concatenate arrays
Array.join( ): concatenate array elements to form a string
Array.length: the size of an array
Array.pop( ): remove and return the last element of an array
Array.push( ): append elements to an array
Array.reverse( ): reverse the elements of an array
Array.shift( ): shift array elements down
Array.slice( ): return a portion of an array
Array.sort( ): sort the elements of an array
Array.splice( ): insert, remove, or replace array elements
Array.toLocaleString( ): convert an array to a localized string
Array.toString( ): convert an array to a string
Array.unshift( ): insert elements at the beginning of an array
Boolean: support for boolean values
Boolean.toString( ): convert a boolean value to a string
Boolean.valueOf( ): the boolean value of a Boolean object
Date: manipulate dates and times
Date.getDate( ): return the day-of-the-month field of a Date
Date.getDay( ): return the day-of-the-week field of a Date
Date.getFullYear( ): return the year field of a Date
Date.getHours( ): return the hours field of a Date
Date.getMilliseconds( ): return the milliseconds field of a Date
Date.getMinutes( ): return the minutes field of a Date
Date.getMonth( ): return the month field of a Date
Date.getSeconds( ): return the seconds field of a Date
Date.getTime( ): return a Date in milliseconds
Date.getTimezoneOffset( ): determine the offset from GMT
Date.getUTCDate( ): return the day-of-the-month field of a Date (universal time)
Date.getUTCDay( ): return the day-of-the-week field of a Date (universal time)
Date.getUTCFullYear( ): return the year field of a Date (universal time)
Date.getUTCHours( ): return the hours field of a Date (universal time)
Date.getUTCMilliseconds( ): return the milliseconds field of a Date (universal time)
Date.getUTCMinutes( ): return the minutes field of a Date (universal time)
Date.getUTCMonth( ): return the month-of-the-year field of a Date (universal time)
Date.getUTCSeconds( ): return the seconds field of a Date (universal time)
Date.getYear( ): return the year field of a Date
Date.parse( ): parse a date/time string
Date.setDate( ): set the day-of-the-month field of a Date
Date.setFullYear( ): set the year and, optionally, the month and date fields of a Date
Date.setHours( ): set the hours, minutes, seconds, and milliseconds fields of a Date
Date.setMilliseconds( ): set the milliseconds field of a Date
Date.setMinutes( ): set the minutes, seconds, and milliseconds fields of a Date
Date.setMonth( ): set the month and day fields of a Date
Date.setSeconds( ): set the seconds and milliseconds fields of a Date
Date.setTime( ): set a Date in milliseconds
Date.setUTCDate( ): set the day-of-the-month field of a Date (universal time)
Date.setUTCFullYear( ): set the year, month, and day fields of a Date (universal time)
Date.setUTCHours( ): set the hours, minutes, seconds, and milliseconds fields of a Date (universal time)
Date.setUTCMilliseconds( ): set the milliseconds field of a Date (universal time)
Date.setUTCMinutes( ): set the minutes, seconds, and milliseconds fields of a Date (universal time)
Date.setUTCMonth( ): set the month and day fields of a Date (universal time)
Date.setUTCSeconds( ): set the seconds and milliseconds fields of a Date (universal time)
Date.setYear( ): set the year field of a Date
Date.toDateString( ): return the date portion of a Date as a string
Date.toGMTString( ): convert a Date to a universal time string
Date.toLocaleDateString( ): return the date portion of a Date as a locally formatted string
Date.toLocaleString( ): convert a Date to a locally formatted string
Date.toLocaleTimeString( ): return the time portion of a Date as a locally formatted string
Date.toString( ): convert a Date to a string
Date.toTimeString( ): return the time portion of a Date as a string
Date.toUTCString( ): convert a Date to a string (universal time)
Date.UTC( ): convert a Date specification to milliseconds
Date.valueOf( ): convert a Date to millisecond representation
decodeURI( ): unescape characters in a URI
decodeURIComponent( ): unescape characters in a URI component
encodeURI( ): escape characters in a URI
encodeURIComponent( ): escape characters in a URI component
Error: a generic exception
Error.message: a human-readable error message
Error.name: the type of an error
Error.toString( ): convert an Error object to a string
escape( ): encode a string
eval( ): execute JavaScript code from a string
EvalError: thrown when eval( ) is used improperly
Function: a JavaScript function
Function.apply( ): invoke a function as a method of an object
Function.arguments[]: arguments passed to a function
Function.call( ): invoke a function as a method of an object
Function.caller: the function that called this one
Function.length: the number of declared arguments
Function.prototype: the prototype for a class of objects
Function.toString( ): convert a function to a string
getClass( ): return the JavaClass of a JavaObject
Global: the global object
Infinity: a numeric property that represents infinity
isFinite( ): determine whether a number is finite
isNaN( ): check for not-a-number
java: the JavaPackage for the java.* package hierarchy
JavaArray: JavaScript representation of a Java array
JavaClass: JavaScript representation of a Java class
JavaObject: JavaScript representation of a Java object
JavaPackage: JavaScript representation of a Java package
JSObject: see JSObject in Part IV
Math: mathematical functions and constants
Math.abs( ): compute an absolute value
Math.acos( ): compute an arccosine
Math.asin( ): compute an arcsine
Math.atan( ): compute an arctangent
Math.atan2( ): compute the angle from the X axis to a point
Math.ceil( ): round a number up
Math.cos( ): compute a cosine
Math.E: the mathematical constant e
Math.exp( ): compute ex
Math.floor( ): round a number down
Math.LN10: the mathematical constant loge2
Math.LN2: the mathematical constant loge10
Math.log( ): compute a natural logarithm
Math.LOG10E: the mathematical constant log2e
Math.LOG2E: the mathematical constant log10e
Math.max( ): return the largest argument
Math.min( ): return the smallest argument
Math.PI: the mathematical constant π
Math.pow( ): compute xy
Math.random( ): return a pseudorandom number
Math.round( ): round to the nearest integer
Math.sin( ): compute a sine
Math.sqrt( ): compute a square root
Math.SQRT1_2: the mathematical constant 1/
Math.SQRT2: the mathematical constant
Math.tan( ): compute a tangent
NaN: the not-a-number property
Number: support for numbers
Number.MAX_VALUE: the maximum numeric value
Number.MIN_VALUE: the minimum numeric value
Number.NaN: the special not-a-number value
Number.NEGATIVE_INFINITY: negative infinity
Number.POSITIVE_INFINITY: infinity
Number.toExponential( ): format a number using exponential notation
Number.toFixed( ): format a number using fixed-point notation
Number.toLocaleString( ): convert a number to a locally formatted string
Number.toPrecision( ): format the significant digits of a number
Number.toString( ): convert a number to a string
Number.valueOf( ): return the primitive number value
Object: a superclass that contains features of all JavaScript objects
Object.constructor: an object’s constructor function
Object.hasOwnProperty( ): check whether a property is inherited
Object.isPrototypeOf( ): is one object the prototype of another?
Object.propertyIsEnumerable( ): will property be seen by a for/in loop?
Object.toLocaleString( ): return an object’s localized string representation
Object.toString( ): define an object’s string representation
Object.valueOf( ): the primitive value of the specified object
Packages: the root JavaPackage
parseFloat( ): convert a string to a number
parseInt( ): convert a string to an integer
RangeError: thrown when a number is out of its legal range
ReferenceError: thrown when reading a variable that does not exist
RegExp: regular expressions for pattern matching
RegExp.exec( ): general-purpose pattern matching
RegExp.global: whether a regular expression matches globally
RegExp.ignoreCase: whether a regular expression is case-insensitive
RegExp.lastIndex: the starting position of the next match
RegExp.source: the text of the regular expression
RegExp.test( ): test whether a string matches a pattern
RegExp.toString( ): convert a regular expression to a string
String: support for strings
String.charAt( ): get the nth character from a string
String.charCodeAt( ): get the nth character code from a string
String.concat( ): concatenate strings
String.fromCharCode( ): create a string from character encodings
String.indexOf( ): search a string
String.lastIndexOf( ): search a string backward
String.length: the length of a string
String.localeCompare( ): compare one string to another, using locale-specific ordering
String.match( ): find one or more regular-expression matches
String.replace( ): replace substring(s) matching a regular expression
String.search( ): search for a regular expression
String.slice( ): extract a substring
String.split( ): break a string into an array of strings
String.substr( ): extract a substring
String.substring( ): return a substring of a string
String.toLocaleLowerCase( ): convert a string to lowercase
String.toLocaleUpperCase( ): convert a string to uppercase
String.toLowerCase( ): convert a string to lowercase
String.toString( ): return the string
String.toUpperCase( ): convert a string to uppercase
String.valueOf( ): return the string
SyntaxError: thrown to signal a syntax error
TypeError: thrown when a value is of the wrong type
undefined: the undefined value
unescape( ): decode an escaped string
URIError: thrown by URI encoding and decoding methods
Anchor: the target of a hypertext link
Anchor.focus( ): scroll to make the anchor location visible
Applet: an applet embedded in a web page
Attr: an attribute of a document element
Button: see Input
Canvas: an HTML element for scripted drawing
Canvas.getContext( ): return a context for drawing on the canvas
CanvasGradient: a color gradient for use in a canvas
CanvasGradient.addColorStop( ): add a change of color at some point in the gradient
CanvasPattern: an image-based pattern for use in a Canvas
CanvasRenderingContext2D: the object used for drawing on a canvas
CanvasRenderingContext2D.arc( ): add an arc to the current subpath of a canvas, using a center point and radius
CanvasRenderingContext2D.arcTo( ): add an arc of a circle to the current subpath, using tangent points and a radius
CanvasRenderingContext2D.beginPath( ): start a new collection of subpaths in a canvas
CanvasRenderingContext2D.bezierCurveTo( ): add a cubic Bézier curve to the current subpath
CanvasRenderingContext2D.clearRect( ): erase a rectangular area of a canvas
CanvasRenderingContext2D.clip( ): set the clipping path of a canvas
CanvasRenderingContext2D.closePath( ): closes an open subpath
CanvasRenderingContext2D.createLinearGradient( ): create a linear color gradient
CanvasRenderingContext2D.createPattern( ): create a pattern of tiled images
CanvasRenderingContext2D.createRadialGradient( ): create a radial color gradient
CanvasRenderingContext2D.drawImage( ): draw an image
CanvasRenderingContext2D.fill( ): fill the path
CanvasRenderingContext2D.fillRect( ): fill a rectangle
CanvasRenderingContext2D.globalCompositeOperation: specifies how colors are combined on the canvas
CanvasRenderingContext2D.lineCap: specifies how the ends of lines are rendered
CanvasRenderingContext2D.lineJoin: specifies how vertices are rendered
CanvasRenderingContext2D.lineTo( ): add a straight line to the current subpath
CanvasRenderingContext2D.miterLimit: maximum-miter-length-to-line-width ratio
CanvasRenderingContext2D.moveTo( ): sets the current position and begins a new subpath
CanvasRenderingContext2D.quadraticCurveTo( ): add a quadratic Bezier curve to the current subpath
CanvasRenderingContext2D.rect( ): add a rectangle subpath to the path
CanvasRenderingContext2D.restore( ): reset drawing state to saved values
CanvasRenderingContext2D.rotate( ): rotate the coordinate system of the canvas
CanvasRenderingContext2D.save( ): save a copy of the current graphics state
CanvasRenderingContext2D.scale( ): scale the user coordinate system of the canvas
CanvasRenderingContext2D.stroke( ): draw the current path
CanvasRenderingContext2D.strokeRect( ): draw a rectangle
CanvasRenderingContext2D.translate( ): translate the user coordinate system of the canvas
CDATASection: a CDATA node in an XML document
CharacterData: common functionality for Text and Comment nodes
CharacterData.appendData( ): append a string to a Text or Comment node
CharacterData.deleteData( ): delete characters from a Text or Comment node
CharacterData.insertData( ): insert a string into a Text or Comment node
CharacterData.replaceData( ): replace characters of a Text or Comment node with a string
CharacterData.substringData( ): extract a substring from a Text or Comment node
Checkbox: see Input
Comment: an HTML or XML comment
CSS2Properties: a set of CSS attributes and their values
CSSRule: a rule in a CSS stylesheet
CSSStyleSheet: a CSS stylesheet
CSSStyleSheet.addRule( ): IE-specific method to insert a rule into a stylesheet
CSSStyleSheet.deleteRule( ): delete a rule from a stylesheet
CSSStyleSheet.insertRule( ): insert a rule into a stylesheet
CSSStyleSheet.removeRule( ): IE-specific method to remove a rule from a stylesheet
Document: an HTML or XML document
Document.addEventListener( ): see Element.addEventListener( )
Document.attachEvent( ): see Element.attachEvent( )
Document.createAttribute( ): create a new Attr node
Document.createAttributeNS( ): create an Attr with a name and namespace
Document.createCDATASection( ): create a new CDATASection node
Document.createComment( ): create a new Comment node
Document.createDocumentFragment( ): create a new, empty DocumentFragment node
Document.createElement( ): create a new Element node
Document.createElementNS( ): create a new Element node using a namespace
Document.createEvent( ): create an Event object
Document.createExpression( ): create an XPath expression for later evaluation
Document.createProcessingInstruction( ): create a ProcessingInstruction node
Document.createRange( ): create a Range object
Document.createTextNode( ): create a new Text node
Document.detachEvent( ): see Element.detachEvent( )
Document.dispatchEvent( ): see Element.dispatchEvent( )
Document.evaluate( ): evaluate an XPath expression
Document.getElementById( ): find an element with the specified unique ID
Document.getElementsByTagName( ): return all Element nodes with the specified name
Document.getElementsByTagNameNS( ): return all Element nodes with a specified name and namespace
Document.importNode( ): copy a node from another document for use in this document
Document.loadXML( ): populate this Document by parsing a string of XML markup
Document.removeEventListener( ): see Element.removeEventListener( )
DocumentFragment: adjacent nodes and their subtrees
DocumentType: the DTD of an XML document
DOMException: signal exceptions or errors for core DOM objects
DOMImplementation: methods independent of any particular document
DOMImplementation.createDocument( ): create a new Document and the specified root element
DOMImplementation.createDocumentType( ): create a DocumentType node
DOMImplementation.hasFeature( ): determine whether the implementation supports a feature
DOMParser: parses XML markup to create a Document
DOMParser.parseFromString( ): parse XML markup
Element: an HTML or XML element
Element.addEventListener( ): register an event handler
Element.attachEvent( ): register an event handler
Element.detachEvent( ): delete an event listener
Element.dispatchEvent( ): dispatch a synthetic event to this node
Element.getAttribute( ): return the string value of a named attribute
Element.getAttributeNode( ): return the Attr node for the named attribute
Element.getAttributeNodeNS( ): return the Attr node for an attribute with a namespace
Element.getAttributeNS( ): get the value of an attribute that uses namespaces
Element.getElementsByTagName( ): find descendant elements with a specified tag name
Element.getElementsByTagNameNS( ): return descendant elements with the specified name and namespace
Element.hasAttribute( ): determine whether this element has a specified attribute
Element.hasAttributeNS( ): determine whether this element has a specified attribute
Element.removeAttribute( ): delete a named attribute of an element
Element.removeAttributeNode( ): remove an Attr node from an element
Element.removeAttributeNS( ): delete an attribute specified by name and namespace
Element.removeEventListener( ): delete an event listener
Element.setAttribute( ): create or change an attribute of an element
Element.setAttributeNode( ): add a new Attr node to an Element
Element.setAttributeNodeNS( ): add a namespace Attr node to an Element
Element.setAttributeNS( ): create or change an attribute with a namespace
Event: information about an event
Event.initEvent( ): initialize the properties of a new event
Event.preventDefault( ): cancel default action of an event
Event.stopPropagation( ): do not dispatch an event any further
ExternalInterface: a bidirectional interface to Flash
ExternalInterface.addCallback( ): expose an ActionScript method for execution from JavaScript
ExternalInterface.call( ): call a JavaScript function from ActionScript
FileUpload: see Input
FlashPlayer: plug-in for Flash movies
FlashPlayer.GetVariable( ): return a value defined in a Flash movie
FlashPlayer.GotoFrame( ): skip to the specified frame of a movie
FlashPlayer.IsPlaying( ): check whether a movie is playing
FlashPlayer.LoadMovie( ): load an auxiliary movie
FlashPlayer.Pan( ): move the viewport of the movie
FlashPlayer.PercentLoaded( ): determine how much of the movie has loaded
FlashPlayer.Play( ): play a movie
FlashPlayer.Rewind( ): rewind the movie to its first frame
FlashPlayer.SetVariable( ): set a variable defined by a Flash movie
FlashPlayer.SetZoomRect( ): set the viewport of a movie
FlashPlayer.StopPlay( ): stop the movie
FlashPlayer.TotalFrames( ): return the length of the movie, in frames
FlashPlayer.Zoom( ): zoom in or out
Form: a form in an HTML document
Form.elements[]: the input elements of a form
Form.onreset: event handler invoked when a form is reset
Form.onsubmit: event handler invoked when a form is submitted
Form.reset( ): reset the elements of a form to their default values
Form.submit( ): submit form data to a web server
Frame: a frame in an HTML document
Hidden: see Input
History: the URL history of the browser
History.back( ): return to the previous URL
History.forward( ): visit the next URL
History.go( ): revisit a URL
HTMLCollection: array of HTML elements accessible by position or name
HTMLCollection.item( ): get an element by position
HTMLCollection.namedItem( ): get an element by name
HTMLDocument: the root of an HTML document tree
HTMLDocument.all[]: all HTML elements in a document
HTMLDocument.close( ): close an open document and display it
HTMLDocument.cookie: the cookie(s) of the document
HTMLDocument.domain: the security domain of a document
HTMLDocument.getElementsByName( ): find elements with the specified name attribute
HTMLDocument.open( ): begin a new document, erasing the current one
HTMLDocument.write( ): append HTML text to an open document
HTMLDocument.writeln( ): append HTML text and a newline to an open document
HTMLElement: an element in an HTML document
HTMLElement.onclick: event handler invoked when the user clicks on an element
HTMLElement.ondblclick: event handler invoked when the user double-clicks on an element
HTMLElement.onkeydown: event handler invoked when the user presses a key
HTMLElement.onkeypress: event handler invoked when the user presses a key
HTMLElement.onkeyup: event handler invoked when the user releases a key
HTMLElement.onmousedown: event handler invoked when the user presses a mouse button
HTMLElement.onmousemove: event handler invoked when the mouse moves within an element
HTMLElement.onmouseout: event handler invoked when mouse moves out of an element
HTMLElement.onmouseover: event handler invoked when the mouse moves over an element
HTMLElement.onmouseup: event handler invoked when the user releases a mouse button
HTMLElement.scrollIntoView( ): make an element visible
Image: an image in an HTML document
Image.onabort: event handler invoked when the user aborts image loading
Image.onerror: event handler invoked when an error occurs during image loading
Image.onload: event handler invoked when an image finishes loading
Input: an input element in an HTML form
Input.blur( ): remove keyboard focus from a form element
Input.click( ): simulate a mouse click on a form element
Input.focus( ): give keyboard focus to a form element
Input.onblur: the handler invoked when a form element loses focus
Input.onchange: event handler invoked when a form element’s value changes
Input.onclick: event handler invoked when a form element is clicked
Input.onfocus: event handler invoked when a form element gains focus
Input.select( ): select the text in a form element
JavaArray, JavaClass, JavaObject, JavaPackage: see Part III
JSObject: Java representation of a JavaScript object
JSObject.call( ): invoke a method of a JavaScript object
JSObject.eval( ): evaluate a string of JavaScript code
JSObject.getMember( ): read a property of a JavaScript object
JSObject.getSlot( ): read an array element of a JavaScript object
JSObject.getWindow( ): return initial JSObject for browser window
JSObject.removeMember( ): delete a property of a JavaScript object
JSObject.setMember( ): set a property of a JavaScript object
JSObject.setSlot( ): set an array element of a JavaScript object
JSObject.toString( ): return the string value of a JavaScript object
KeyEvent: details about a keyboard event
Layer: an obsolete Netscape API
Link: a hyperlink or anchor in an HTML document
Link.blur( ): take keyboard focus away from a hyperlink
Link.focus( ): make a link visible and give it keyboard focus
Link.onclick: event handler invoked when a Link is clicked
Link.onmouseout: event handler invoked when the mouse leaves a link
Link.onmouseover: event handler invoked when the mouse goes over a link
Location: represents and controls browser location
Location.reload( ): reload the current document
Location.replace( ): replace one displayed document with another
MimeType: represents a MIME datatype
MouseEvent: details about a mouse event
MouseEvent.initMouseEvent( ): initialize the properties of a MouseEvent object
Navigator: information about the browser in use
Navigator.javaEnabled( ): test whether Java is available
Node: a node in a document tree
Node.appendChild( ): insert a node as the last child of this node
Node.cloneNode( ): duplicate a node and, optionally, all of its descendants
Node.hasAttributes( ): determine whether a node has attributes
Node.hasChildNodes( ): determine whether a node has children
Node.insertBefore( ): insert a node into the document tree before the specified node
Node.isSupported( ): determine if a node supports a feature
Node.normalize( ): merge adjacent Text nodes and remove empty ones
Node.removeChild( ): remove (and return) the specified child of this node
Node.replaceChild( ): replace a child node with a new node
Node.selectNodes( ): select nodes with an XPath query
Node.transformNode( ): transform a node to a string using XSLT
Node.transformNodeToObject( ): transform a node to a document using XSLT
NodeList: a read-only array of nodes
NodeList.item(): get an element of a NodeList
Option: an option in a Select element
Packages: see Packages in Part III
Password: see Input
Plugin: describes an installed plug-in
ProcessingInstruction : a processing instruction in an XML document
Radio: see Input
Range: represents a contiguous range of a document
Range.cloneContents(): copy range contents into a DocumentFragment
Range.cloneRange(): make a copy of this range
Range.collapse(): make one boundary point equal to the other
Range.compareBoundaryPoints(): compare positions of two ranges
Range.deleteContents(): delete a region of the document
Range.detach(): free a Range object
Range.extractContents( ): delete document content and return it in a DocumentFragment
Range.insertNode( ): insert a node at the start of a range
Range.selectNode(): set range boundaries to a node
Range.selectNodeContents( ): set range boundaries to the children of a node
Range.setEnd( ): set the end point of a range
Range.setEndAfter( ): end a range after a specified node
Range.setEndBefore( ): end a range before the specified node
Range.setStart( ): set the start point of a range
Range.setStartAfter( ): start a range after the specified node
Range.setStartBefore( ): start a range before the specified node
Range.surroundContents( ): surround range contents with the specified node
Range.toString( ): get range contents as a plain-text string
RangeException: signals a range-specific exception
Reset: see Input
Screen: provides information about the display
Synopsis
Select: a graphical selection list
Select.add( ): insert an option element
Select.blur( ): take keyboard focus away from this element
Select.focus( ): give keyboard focus to this element
Select.onchange: event handler invoked when the selection changes
Select.options[]: the choices in a Select object
Select.remove( ): remove an option
Style: see CSS2Properties
Submit: see Input
Table: a table in an HTML document
Table.createCaption( ): get or create a caption
Table.createTFoot( ): get or create a tfoot
Table.createTHead( ): get or create a thead
Table.deleteCaption( ): delete the caption of a table
Table.deleteRow( ): delete a row of a table
Table.deleteTFoot( ): delete the tfoot of a table
Table.deleteTHead( ): delete the thead of a table
Table.insertRow( ): add a new, empty row to the table
TableCell: cell in an HTML table
TableRow: a tr element in an HTML table
TableRow.deleteCell( ): delete a cell in a table row
TableRow.insertCell( ): insert a new, empty td element into a table row
TableSection: a header, footer, or body section of a table
TableSection.deleteRow( ): delete a row within a table section
TableSection.insertRow( ): insert a new, empty row into this table section
Text: a run of text in an HTML or XML document
Text.splitText( ): split a Text node in two
Textarea: a multiline text input area
Textarea.blur( ): take keyboard focus away from this element
Textarea.focus( ): give keyboard focus to this element
Textarea.onchange: event handler invoked when input value changes
Textarea.select( ): select the text in this element
TextField: see Input
UIEvent: details about user-interface events
UIEvent.initUIEvent( ): initialize the properties of a UIEvent object
Window: a web browser window or frame
Window.addEventListener( ): see Element.addEventListener( )
Window.alert( ): display a message in a dialog box
Window.attachEvent( ): see Element.attachEvent( )
Window.blur( ): remove keyboard focus from a top-level window
Window.clearInterval( ): stop periodically executing code
Window.clearTimeout( ): cancel deferred execution
Window.close( ): close a browser window
Window.confirm( ): ask a yes-or-no question
Window.defaultStatus: the default status line text
Window.detachEvent( ): see Element.detachEvent( )
Window.focus( ): give keyboard focus to a window
Window.getComputedStyle( ): retrieve the CSS styles used to render an element
Window.moveBy( ): move a window to a relative position
Window.moveTo( ): move a window to an absolute position
Window.onblur: event handler invoked when the window loses keyboard focus
Window.onerror: error handler invoked when a JavaScript error occurs
Window.onfocus: event handler invoked when a window is given focus
Window.onload: event handler invoked when a document finishes loading
Window.onresize: event handler invoked when a window is resized
Window.onunload: the handler invoked when the browser leaves a page
Window.open( ): open a new browser window or locate a named window
Window.print( ): print the document
Window.prompt( ): get user input with a dialog box
Window.removeEventListener( ): see Element.removeEventListener( )
Window.resizeBy( ): resize a window by a relative amount
Window.resizeTo( ): resize a window
Window.scrollBy( ): scroll the document by a relative amount
Window.scrollTo( ): scroll the document
Window.setInterval( ): periodically execute specified code
Window.setTimeout( ): defer execution of code
Window.status: specify a transient status-line message
XMLHttpRequest: An HTTP request and response
XMLHttpRequest.abort( ): cancel an HTTP request
XMLHttpRequest.getAllResponseHeaders( ): return unparsed HTTP response headers
XMLHttpRequest.getResponseHeader( ): get the value of a named HTTP response header
XMLHttpRequest.onreadystatechange: event handler function invoked when readyState changes
XMLHttpRequest.open( ): initialize HTTP request parameters
XMLHttpRequest.send( ): send an HTTP request
XMLHttpRequest.setRequestHeader( ): add a HTTP request header to the request
XMLSerializer: serializes XML documents and nodes
XMLSerializer.serializeToString( ): convert an XML document or node to a string
XPathExpression: a compiled XPath query
XPathExpression.evaluate( ): evaluate a compiled XPath query
XPathResult: the result of an XPath query
XPathResult.iterateNext( ): return the next node that matches an XPath query
XPathResult.snapshotItem( ): return a node that matches an XPath query
XSLTProcessor: transform XML with XSLT stylesheets
XSLTProcessor.clearParameters( ): delete all stylesheet parameter values
XSLTProcessor.getParameter( ): return the value of a named parameter
XSLTProcessor.importStylesheet( ): specify an XSLT stylesheet for transformations
XSLTProcessor.removeParameter( ): delete a parameter value
XSLTProcessor.reset( ): restore an XSLTProcessor to its default state
XSLTProcessor.setParameter( ): set a stylesheet parameter
XSLTProcessor.transformToDocument( ): transform a node or document to a new document
XSLTProcessor.transformToFragment( ): transform a node or document to a DocumentFragment

16
Feb
09

Patadas de ahogado con el Visual Studio

Me llevó algo de tiempo superar el hecho de que tal vez no pueda usar emacs completamente para programar la aplicación ASP.NET que tengo que hacer para un proyecto este semestre. Programar en C# no fue tan complicado, solo usaba el nant para automatizar el proceso de compilación y utilizé un plugin que se llamaba vj-complete para que me dijera algunos tips acerca de cuáles eran los miembros de un objeto. Incluso tenía snippets así que la experiencia fue completamente emacs.
Sin embargo ahora que estoy viendo como está la cosa con ASP.NET, creo que esta vez no va a ser tan fácil.
Tengo que estar corriendo el Development Server varias veces, y esto para colmo hace que se cargue el Internet Explorer, el cual tarda años en cargar. No es como en rails donde lo puedo ejecutar en el shell no hay una línea de consola, no entiendo por qué. Sin embargo, la principal razón por la cual no pude utilizar emacs a final de cuenta, fueron los controls de .NEt. Los tengo que estar arrastrando (!) y poníendolos en medio del código. Ahí ya me dieron en la torre…
Pero aún así, el Visual Studio no es tan malo después de todo. Sólo está muy atrasado, es tecnología vieja. (Síndrome de Estocolmo. O la canción de Yo La Tengo.). Algunas cosas que hice para que la experiencia no fuera tan desastrosa:

  • Me dí cuenta de que existía una opción para importar configuraciones de otras personas. Revise un poco en el blog de Hanselman y encontre algunos color-themes que hacen que por lo menos se vea bien.
  • En las opciones de Keyboard, hay una opción para utilizar pseudo modo de emacs con lo que puedes utilizar algunos de las chords más comunes de emacs en el Visual, maldita sea por qué es Visual. No pasa nada, no pasa nada. Con esto puedo usar _por lo menos_ C-S para búsqueda incremental y C-R para búsqueda decremental, además de C-X C-S para guardar un archivo y C-X C-O para abrir un archivo, aunque esta última inútil puesto que me abre una caja de diálogo, para eso mejor lo hago yo sólo. Este modo es en cierta forma un calmante y una burla al mismo tiempo, sólo puedes dividir el buffer (si es que se le puede decir así en el Visual Studio) horizontalmente, y no puedes para nada estar viendo dos archivos al mismo tiempo. Son las 3 de la mañana ya me voy a dormir en vez de estar quejándome de esta idiotez…

Creo que eso es lo máximo que pude hacer. Traté de instalar VisEmacs pero sólo se puede usar con la versión Pro del Visual Studio, ya que al Express no se le pueden instalar plugins. Después voy a tener que instalar esta versión si es que vamos a querer hacer las Unit Tests después.

16
Feb
09

Donald Knuth usa emacs

Donald: My general working style is to write everything first with pencil and paper, sitting beside a big wastebasket. Then I use Emacs to enter the text into my machine, using the conventions of TeX. I use tex, dvips, and gv to see the results, which appear on my screen almost instantaneously these days. I check my math with Mathematica.

I program every algorithm that’s discussed (so that I can thoroughly understand it) using CWEB, which works splendidly with the GDB debugger. I make the illustrations with MetaPost (or, in rare cases, on a Mac with Adobe Photoshop or Illustrator). I have some homemade tools, like my own spell-checker for TeX and CWEB within Emacs. I designed my own bitmap font for use with Emacs, because I hate the way the ASCII apostrophe and the left open quote have morphed into independent symbols that no longer match each other visually. I have special Emacs modes to help me classify all the tens of thousands of papers and notes in my files, and special Emacs keyboard shortcuts that make bookwriting a little bit like playing an organ. I prefer rxvt to xterm for terminal input. Since last December, I’ve been using a file backup system called backupfs, which meets my need beautifully to archive the daily state of every file.

16
Feb
09

Bibliografía de Waldemar

Siempre me han interesado las cosas que hacen las personas que tienen mi mismo nombre: aqui pongo un link de un tocayo que trabaja en Mozilla y que puso una Bibliografía acerca de la teoría de los lenguajes.<a href="http://www.mozilla.org/js/language/bibliography.html">Waldemar’s Bibliography</a>

15
Feb
09

Emergency Visual Web Developer Shortcuts

Algunos de las chords que tiene el Visual:
Insert Snippet Ctrl-K, Ctrl-
Surround With Ctrl-K, Ctrl-S
Complete Word Alt-Right Arrow or Ctrl-Space

15
Feb
09

Quote

Hoy me dijeron que tengo una lógica extraña con la cual puedo adivinar
las cosas que de otra forma sólo sucedería por coincidencia. jojojojojojojojojojojjojojojojojojojojojojojojojojojjojojojojojojojojojojojojojojojojojoj