Hostelworld.com: Introducing our New Travel App for Android.

izzy's playlists!

shark vs the universe

Origami Around
Sweet Seals For You, Always
tumblr dot com
ojovivo

blake kathryn
Show & Tell

oozey mess
we're not kids anymore.

No title available
he wasn't even looking at me and he found me

tannertan36
trying on a metaphor

roma★

祝日 / Permanent Vacation
Today's Document
Aqua Utopia|海の底で記憶を紡ぐ

if i look back, i am lost

★

seen from Malaysia
seen from United States
seen from United States
seen from Lithuania

seen from Malaysia
seen from United States

seen from Malaysia
seen from Venezuela
seen from United States
seen from United States
seen from Singapore
seen from United States
seen from United States
seen from Brazil
seen from United States
seen from Malaysia
seen from Malaysia
seen from Australia
seen from United States

seen from Türkiye
@robertogds
Hostelworld.com: Introducing our New Travel App for Android.
Error uploding to Appstore
If you are distributing your app ont the App Store and you get the error: "Application failed codesign verification. The signature was invalid, contains disallowed entitlements, or it was not signed with an iPhone Distribution Certificate"
Please before read hundreds of blogs (as I did) or uninstall xcode, appcelerator, osx, etc. Read https://developer.apple.com/library/ios/#technotes/tn2250/_index.html and maybe you will save a lot of time! if it doesn't work then google.
My first Mac. Thanks Steve. We shall keep on thinking different.
Liberando espacio en mi macbook air
De las pocas pegas que tiene mi macbook air es el espacio en disco, que poco a poco sus 128Gb se van quedando pequeños, la otra es el dichoso ventilador que ahora en verano se activa más de lo que le gustaría a mis oídos.
Investigando un poco qué se estaba zampando tanto espacio he visto que las copias de seguridad del iphone y el ipad se iban ya a 19Gb, para los que quieran comprobarlo con un poco de consola podemos verlo fácil:
RoAir:~ kerowme$ du -d 1 -h |grep G
19G ./Library
Mirando en Library he visto que se quedaba todo en Library/Application Support/MobileSync/Backup.
Por si alguno le ocurre lo mismo, basta con ir a preferencias de iTunes->dipositivos y seleccionar la copia de seguridad que quieras para eliminarla.
Titanium Studio: Acceso a los dispositivos de ayuda desactivado
Si estás intentando publicar tu app en la App Store empaquetando desde Titanium Studio y obtienes un error como este:
/Library/Application Support/Titanium/mobilesdk/osx/1.7.1/iphone/xcode_organizer.scpt: execution error: System Events got an error: El acceso a los dispositivos de ayuda está desactivado. (-1719)
Significa que el comando "System Events" no puede operar, debes ir a "Preferencias del sistema"->"Acceso Universal", y abajo activar "Activar Acceso para dispositivos de ayuda".
Late afternoon Jersey
Touching sharks and rays
Titanium How to change the return key in textfield keyboard
As always is coffeescript code:
userText = Titanium.UI.createTextField color:'#336699' hintText: 'User' clearOnEdit: true paddingLeft: 10 keyboardType: Titanium.UI.KEYBOARD_DEFAULT returnKeyType: Titanium.UI.RETURNKEY_NEXT
Also you could change the keyboard type with the keyboardType property.
Possible values are:
keyboardType:
Titanium.UI.KEYBOARD_DEFAULT Titanium.UI.KEYBOARD_EMAIL Titanium.UI.KEYBOARD_ASCII Titanium.UI.KEYBOARD_URL Titanium.UI.KEYBOARD_NUMBER_PAD Titanium.UI.KEYBOARD_NUMBERS_PUNCTUATION Titanium.UI.KEYBOARD_PHONE_PAD
returnKeyType:
Titanium.UI.RETURNKEY_DEFAULT Titanium.UI.RETURNKEY_GO Titanium.UI.RETURNKEY_GOOGLE Titanium.UI.RETURNKEY_JOIN Titanium.UI.RETURNKEY_NEXT Titanium.UI.RETURNKEY_ROUTE Titanium.UI.RETURNKEY_SEARCH Titanium.UI.RETURNKEY_SEND Titanium.UI.RETURNKEY_YAHOO Titanium.UI.RETURNKEY_DONE Titanium.UI.RETURNKEY_EMERGENCY_CALL
backgroundGradient with Titanium Appcelerator and CoffeeScript
I'm developing my last project with Titanium appcelerator and coffeescript and I want to share some tips:
BackgroundGradient:
I didn't find useful documentation about how to apply a gradient to a button or a row and later I found it was really easy, here is an example:
class CitiesRow constructor: (@city) -> @row = Ti.UI.createTableViewRow hasChild: true city: city backgroundGradient: type:'linear' colors:[{color:'#494949',position:0.1},{color:'#3f3f3f',position:0.50},{color:'#2b2b2b',position:1.0}]
Candela 600
BDD with Javascript
Behavior Driven Development BDD is an alternative to TDD (Test Driven Development) focused on using examples to describe the behavior of the application or of units of code. In practice is some way to make test that are self documented.
I'm using Jasmine for javascript BDD, you can install it as ruby gem and works fine with other frameworks like Backbone.js
The code is very clear and looks like:
describe("Story",function(){ var story; beforeEach(function() { story = new Story(); }); it("Should have an operation to add a new task",function(){ var task = new Task; story.addTask(task); var numberOfTasks = story.get("tasks").length; expect(numberOfTasks).toEqual(1); expect(task.story.id).toEqual(story.id); });
Quick Tip: Javascript IDE
I've been programming with Webstorm for a week (Linux) and I'm impressed with it. Highly recommended!. I tested it on macos x and it could be an alternative to Texmate.
More Info: http://www.jetbrains.com/webstorm/
HowTo backbone.js using rails 3
Backbone.js is a very interesting piece of software created by Jeremy Ashkenas that "supplies structure to JavaScript-heavy applications by providing modelswith key-value binding and custom events, collections with a rich API of enumerable functions, views with declarative event handling, and connects it all to your existing application over a RESTful JSON interface".
This is a tutorial on how to change the Backbone.js example Todo List application by Jérôme Gravel-Niquet for using a Rails 3 backend to persist the model with mysql database.
This is tested with ruby 1.9.2 and rails 3.0.3
Get the backbone source from github
$ git clone https://github.com/documentcloud/backbone.git
its creates a backbone directory with the sources inside.
Create a new rails app
$ rails new todoapp --database=mysql
$ cd todoapp
$ bundle install
We need copy the necessary files from the backbone example todos folder:
$ cp ../backbone/examples/todos/index.html ./public/
$ cp ../backbone/examples/todos/todos.js ./public/javascripts/
$ cp ../backbone/examples/todos/todos.css ./public/stylesheets/
$ cp ../backbone/examples/todos/destroy.png ./public/stylesheets/
$ cp ../backbone/backbone.js ./public/javascripts/
$ cp ../backbone/test/vendor/json2.js ./public/javascripts/
$ cp ../backbone/test/vendor/jquery-1.5.js ./public/javascripts/
$ cp ../backbone/test/vendor/underscore-1.1.4.js ./public/javascripts/
By default your database configuration will be: user= root pass= <empty> you can change this editing:
$ vim config/database.yml
You can check everything is ok creating the database:
$ rake db:create
Next its time to generate Todo scaffold and migrate database:
$ rails generate scaffold Todo content:text order:integer done:boolean
$ rake db:migrate
Now we are going to change the generated controller by one with rest interface:
$ vim app/controllers/todos_controller.rb
class TodosController < ApplicationController def index render :json => Todo.all end def show render :json => Todo.find(params[:id]) end def create todo = Todo.create! params render :json => todo end def update todo = Todo.find(params[:id]) todo.update_attributes! params render :json => todo end def destroy todo = Todo.find(params[:id]) todo.destroy render :json => todo end end
And change the model definition to json
$ vim app/models/todo.rb
class Todo < ActiveRecord::Base attr_accessible :content, :order, :done def to_json(options = {}) super(options.merge(:only => [ :id, :content, :order, :done ])) end end
As you can read in the backbone documentation Rails' default to_json implementation includes a model's attributes under a namespace. To disable this behavior for seamless Backbone integration, set:
$ vim config/initializers/new_rails_defaults.rb
ActiveRecord::Base.include_root_in_json = false
Finally we need to fix the routes in index.html and delete the backbone-localstorage.js reference.
$ vim public/index.html
<head> <title>Backbone Demo: Todos</title> <link href="stylesheets/todos.css" media="all" rel="stylesheet" type="text/css"/> <script src="javascripts/json2.js"></script> <script src="javascripts/vendor/jquery-1.5.js"></script> <script src="javascripts/vendor/underscore-1.1.4.js"></script> <script src="javascripts/backbone.js"></script> <script src="javascripts/todos.js"></script> </head>
Instead of extend backbone.sync we are going to provide a url function to the model:
$ vim public/javascripts/todos.js
// Todo Model window.Todo = Backbone.Model.extend({ defaults: { content: "empty todo...", done: false }, initialize: function() { if (!this.get("content")) { this.set({"content": this.EMPTY}); } }, toggle: function() { this.save({done: !this.get("done")}); }, url : function() { return this.id ? '/todos/' + this.id : '/todos'; }, clear: function() { this.destroy(); this.view.remove(); } });
Also comment the following line because we don't use localStorage.
//localStorage: new Store("todos"),
And specify a url function for the collection:
url :'/todos',
Our last step is starting rails and check if everything is ok:
$ rails server
3 verdades como puños
De la presentación que hicimos @pablopr y yo sobre Agile Product Inception para @adwe_mad, una de las ideas que más me gustó fue la de las 3 verdades como puños que no podrás evitar cuando empiece tu próximo proyecto:
1. Es imposible tener en cuenta todos los requisitos al comienzo del proyecto.
2. Sean cual sean los requisitos que capturemos está garantizado que cambiarán a lo largo del proyecto.
3. Siempre habrá más cosas que hacer que tiempo y dinero para hacerlas.
Lo que significa que comenzaremos el proyecto con una lista incompleta con los requisitos más importantes que iremos adaptando a lo largo del proyecto a los cambios que aceptaremos de nuestro cliente, que por su parte debe aceptar que no podemos realizar todas las funcionalidades que se le ocurran, y que debe priorizarlas y dejar para futuras fases las que no entren después de la estimación.
Las ideas son del muy recomendable libro: The Agile Samurai de Jonathan Rasmusson
La piscina del hotel, dentro sí hace calor (Taken with Instagram at Steigenberger Hotel Berlin)
Berlin Christmas