Javascript Console Tips
Take a Javascript console rundown with Paul Irish from the Chrome team.
Take a Javascript console rundown with Paul Irish from the Chrome team.
Awesome introduction about Continuous Delivery.
Totally worth see it.
http://continuous-delivery.thoughtworks.com/events/introduction-continuous-delivery
To avoid needing to install the dependences locally, you can place the pg gem into a production group that will only be installed on Heroku.
Edit your Gemfile and change the line:
gem 'sqlite3'
To this:
group :production do gem 'pg' end group :development, :test do gem 'sqlite3' end
And re-install your dependencies on your local development machine by running:
$ bundle install --without production
via http://devcenter.heroku.com/articles/how-do-i-use-sqlite3-for-development
In unix terminology, the short answer is that
dbus error org.freedesktop.dbus.error.noreply: Message did not receive a reply (timeout by message bus)
If you are getting the message above when trying to mount your iPod, iPad, etc., maybe you can solve with this lines:
$ sudo add-apt-repository ppa:pmcenery/ppa $ sudo apt-get update $ sudo apt-get dist-upgrade
#worksforme : )
Recently I encountered myself executing so many times the following unix commands:
1: $ netstat -anp | grep :port_number
2: (search manually the output for the PID that is using the given :port_number)
3: $ kill -9 :pid
Bored, I challenged my friend Alisson to build a command to perform those three steps, in one single line.
He came up with the following solution:
kill -9 $(sudo netstat -anp | grep :[port_number] | awk '{print $7}' | cut -d '/' -f 1)
Congratulations man! You deserve a very cold Heineken!
Studing JRuby and Rails I faced some encoding problems. The solution was very easy. First you must have to create your database using utf8 character set. In case you are using MySQL, just do the following:
CREATE DATABASE `yourdatabasename` DEFAULT CHARACTER SET utf8 COLLATE utf8_general_ci;
or
ALTER DATABASE yourdatabasename CHARACTER SET utf8 COLLATE utf8_general_ci;
If you already have a database with records, read this post from @akitaonrails.
In my case, I’m using the activerecord-jdbc-adapter gem, and connecting to the database through the MySQL JDBC Connector.
At this time, I just have downloaded the JDBC driver (.jar file), and copied to $JRUBY_HOME/lib folder (if you are using RVM, find the JRuby installation folder using the rvm debug or rvm info command).
Lastly, I just have set the following parameters into connection string (in database.yml file):
jdbc:mysql://localhost:3306/yourdatabasename?characterSetResults=UTF-8&characterEncoding=UTF-8&useUnicode=yes
Maybe this will be useful to someone.
Quando deparado com a proposta de mudança na interface de um software, sabendo que essa mudança não está bem estruturada e avaliada pelo usuário final, recomendo que se trabalhe em um protótipo dessa nova interface, para que o usuário final então possa visualizar uma projeção e fazer suas avaliações e apontamentos direcionando melhor o trabalho antes de sua implementação.
Neste sentido, uma maneira de tornar prática e dinâmica essa tarefa, é através da utilização de ferramentas de prototipação gerando modelos wireframe e mockups de interfaces. Isso permite concentrar somente nas questões da interface – como exemplo: acessibilidade e usabilidade. Além disso, é possível discutir melhor com o usuário em cima de um modelo wireframe. Caso ele decide mudar alguma coisa, é mais fácil mudar um esboço do que um software pronto (portanto mais rápido e mais barato).
Assim, em uma pesquisa que realizei em busca deste tipo de software, localizei o WireframeSketcher. Suas características fecharam exatamente com a necessidade que tinha para meus projetos.
Abaixo o exemplo de projetos desenvolvidos através do WireframeSketcher que exemplificam suas características: iPhone, iPad.
O WireframeSketcher é uma ótima ferramenta para a prototipação de interfaces, recomendada!
Para download e instruções de instalação acesse http://wireframesketcher.com/install.html.
why, mr. Anderson, why? why, why do you do it? why, why get up? why keep fighting? do you believe you’re fighting for something, for more than your survival? can you tell me what it is, do you even know? is it freedom or truth, perhaps peace – could it be for love? illusions, mr. Anderson, vagaries of perception. temporary constructs of a feeble human intellect trying desperately to justify an existence that is without meaning or purpose. and all of them as artificial as the matrix itself. although, only a human mind could invent something as insipid as love. you must be able to see it, mr. Anderson, you must know it by now! you can’t win, it’s pointless to keep fighting! why, mr. Anderson, why, why do you persist? -agent Smith, Matrix Revolutions
Tradução: por que, Sr. Anderson? por que, por que? por que faz isso? por que se levantar? por que continuar lutando? acredita que está lutando por algo mais do que a sua sobrevivência? pode me dizer o quê? será que sabe? será por liberdade? verdade? talvez paz! será que é por amor? ilusões, Sr. Anderson. defeitos da percepção. criações temporárias de um fraco intelecto humano tentando desesperadamente justificar uma existência sem sentido ou meta! e todas elas são tão artificiais quanto a própria Matrix. embora só a mente humana pudesse criar algo tão insosso quanto o amor. você deve ser capaz de enxergar, de saber, a esta altura, que não pode vencer! é inútil continuar lutando! por que, Sr. Anderson? por que persiste?! -agent Smith, Matrix Revolutions
Seguem os passos para preparação do ambiente de desenvolvimento para plataforma Google Android.
ANDROID_HOME=/usr/local/android/android-sdk-linux_86 export ANDROID_HOME PATH="$ANDROID_HOME/platform-tools:$ANDROID_HOME/tools:$PATH"
Caso falte alguma configuração na preparação do ambiente, compartilhe através dos comentários deste post!