Create a Meteor app and put the client_/server_ files in a client/server directories. Also, create a public dir to save the uploaded files.
perl: warning: Setting locale failed. | |
perl: warning: Please check that your locale settings: | |
LANGUAGE = (unset), | |
LC_ALL = (unset), | |
LC_CTYPE = "UTF-8", | |
LANG = "en_US.UTF-8" | |
are supported and installed on your system. | |
perl: warning: Falling back to the standard locale ("C"). | |
~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ |
var win = Ti.UI.createWindow({ | |
backgroundColor: 'white' | |
}); | |
var imgTableLoco = Ti.UI.createTableView({ | |
width: 270, | |
height: 290, | |
top: 0, | |
backgroundColor: 'black' | |
}); |
package net.dealforest.sample.crypt; | |
import javax.crypto.BadPaddingException; | |
import javax.crypto.Cipher; | |
import javax.crypto.IllegalBlockSizeException; | |
import javax.crypto.NoSuchPaddingException; | |
import javax.crypto.spec.IvParameterSpec; | |
import javax.crypto.spec.SecretKeySpec; | |
import java.security.InvalidKeyException; |
/* | |
* Inspired by: http://stackoverflow.com/questions/4360060/video-streaming-with-html-5-via-node-js | |
*/ | |
var http = require('http'), | |
fs = require('fs'), | |
util = require('util'); | |
http.createServer(function (req, res) { | |
var path = 'video.mp4'; |
////////// Helpers for in-place editing ////////// | |
// Returns an event_map key for attaching "ok/cancel" events to | |
// a text input (given by selector) | |
var okcancel_events = function (selector) { | |
return 'keyup '+selector+', keydown '+selector+', focusout '+selector; | |
}; | |
// Creates an event handler for interpreting "escape", "return", and "blur" | |
// on a text field and calling "ok" or "cancel" callbacks. |
var baseUrl = 'https://api.parse.com/1', | |
appId = 'XXXXXXXXXXXXXXX', | |
apiKey = 'XXXXXXXXXXXXXX'; // make sure to use the REST API Key | |
var _register = function(params, lambda, lambdaerror) { | |
var method = 'POST', | |
url = baseUrl + '/installations', | |
payload = (params) ? JSON.stringify(params) : ''; | |
_helper(url, method, payload, function(data, status) { |
Bien, estaba leyendo tus notas del capitulo 3 y muchas cosas me parecieron interesantes, mas que todo algunas preguntas y comentarios del capitulo, antes que ahondemos un poco en las preguntas y comentarios de ese capitulo queria profundizar un poco en algo clave e importante acerca de la framework, es tan importante que comprendiendo las diferencias y el porque veras mas claro la evolucion y avance del lenguaje como tal. Es tan crucial que a muchos programadores 'experimentados' al entrevistarlos y preguntarles acerca de ello demuestran no solo que no lo conocen si no que andan mas perdidos que el hijo de la llorona...
La verdad, que muchos programadores contesten una pregunta tan simple como 'que versiones de la framework existen' y al mismo tiempo fallen al comentar 'que versiones del runtime existen' no es su culpa, si no de Microsoft y su equipo de marketing al confundir a millones de programado
function HorizontalTableView(options) { | |
// defaults params | |
var options = options || {}; | |
options.width = options.width || Titanium.Platform.displayCaps.platformWidth; | |
options.height = options.height || Titanium.Platform.displayCaps.platformHeight; | |
var isAndroid = Ti.Platform.osname === 'android'; | |
// On iOS we can do this, on Android there is some weird scrolling problems |
// save a global reference to the tabgroup that can be | |
// accessed in any controller | |
Alloy.Globals.tabgroup = $.index; | |
$.index.setActiveTab(1)); | |
$.index.open(); |