Skip to content

Instantly share code, notes, and snippets.

== Compilation error on file web/views/todo_view.ex == ** (UnicodeConversionError) invalid encoding starting at <<153, 0, 0, 0, 29, 0, 0, 0, 13, 1, 16, 153, 16, 2, 18, 34, 0, 1, 32, 64, 71, 0, 3, 19, 1, 48, 153, 32, 2, 18, 50, 0, 1, 64, 64, 2, 3, 19, 1, 80, 153, 48, 2, 18, 66, 0, 1, 96, 64, 2, ...>> (elixir) lib/string.ex:1634: String.to_char_list/1 (eex) lib/eex/tokenizer.ex:20: EEx.Tokenizer.tokenize/3 (eex) lib/eex/compiler.ex:16: EEx.Compiler.compile/2 (phoenix) lib/phoenix/template.ex:321: Phoenix.Template.compile/2 (phoenix) lib/phoenix/template.ex:154: Phoenix.Template."-MACRO-before_compile/2-fun-0-"/3 (elixir) lib/enum.ex:1473: Enum."-reduce/3-lists^foldl/2-0-"/3 (phoenix) expanding macro: Phoenix.Template.before_compile/1 web/views/todo_view.ex:1: Jokes.TodoView (module)

#Installation Guide for Android SDK / ADT Bundle on Windows

To setup the Android SDK on windows,

  1. Installing Java Development Kit

    • Download the Java SE Development Kit from here
    • Install the JDK environment with default settings
  2. Installing Android ADT Bundle

#Installation Guide for Android SDK / ADT Bundle on Ubuntu

To setup the Android SDK on your ubuntu linux platform,

  1. First, you will have to check your system architecture. To do that,
    • Click on the settings icon at the top right corner of your taskbar
    • Click on system settings
    • On the system settings windo, click on details
    • You will see the system architecture (wether 32 or 64 bit) written beside OS type

Disappointed Elixir Guesser Game Developer

So as part of my journey learning elixir, i decided to write a small guessing game in elixir.

Decided to do this to understand and experiment with elixir because the book seems long for me.

But i kept making simple mistakes and complex ones. I got my head around the simple ones when i go back to the book and do a little reading but this complex ones still keep hitting me strong in the head.

It has been two weeks since i decided to write a blog post concerning a working guexxir(Name of my elixir guesser game).

#Coding Right So what is the right way of learning a programming language or saying you are proficient in a programming language. With the endless list of programming languages , in what way do you learn a programming language? Oh yes you!

Well i have a couple of questions gathered from friends and myself.

  • Do you have to know all the syntax of that programming language if you claim you know it? Or perhaps will you be a bad programmer when all your solutions to any error comes from google or friends?

  • What is the actual meaning of Coding Smarter and not harder?

So What is reStructedText?

From reStructuredText docutils , reStructuredText is an easy-to-read, what-you-see-is-what-you-get plaintext markup syntax and parser system.

It is useful for in-line program documentation (such as Python docstrings), for quickly creating simple web pages, and for standalone documents. reStructuredText is designed for extensibility for specific application domains.

So basically i wrote this and all other blog posts with reStructuredText with the aid of restblog.

Restblog is a simple utility to manage the contents of a Wordpress blog using reStructuredText. It is written in Python and consists of a simple command-line interface that allows you to create, edit and delete posts and pages.