25 April, 2015

Install Ruby on Rails on Linux Mint

Reading article i WebDesigner /233:70 on Ruby on Rails. Running RoR on Linux Lime is not that straightforeward. Here's what I did:

Bundle install could not install sqlite3. Solution:

# apt-get install libsqlite3-dev
# bundle install

Tried to start a server. But got an error.

# sudo gem install therubyracer
# sudo apt-get install nodejs

Then the server worked.

22 April, 2015

How to show code in a WordPress post

Simply convert the code to html via Pandoc. Something like this:

# pandoc codefile.foo > html.html

Or simply:

# pandoc codefile.foo

And the rest is copy paste.

21 April, 2015

Pandoc slides

I made a markdown slideshow but got an error message when I wanted to convert the .md to .pdf. Here's a Linux Mint solution.

Error:

pandoc: Error producing PDF from TeX source.
! LaTeX Error: File `beamer.cls' not found.

Type X to quit or to proceed,
or enter new name. (Default extension: cls)

Enter file name:
! Emergency stop.

       
l.2 \usepackage

Solution:

# sudo apt-get install latex-beamer

Then the code worked like a charm:

# pandoc lastlesson.md -t beamer -o myslides.pdf

19 April, 2015

Lyx to markdown

Export from Lyx to Latex. Then convert the .tex file to markdown via Pandoc:

# pandoc --no-wrap -f latex -t markdown myfile.tex > myfile.md

Pandoc A4

# pandoc index.markdown -o x.pdf -V papersize:"a4paper"

18 April, 2015

Markdown

I need more and more info about markdown. E.g. how to add pictures and similar

See here!.

BTW this is how to do it in Pandoc / Dexy:

![Screendump](billeder/screendump.png "Screendump")

Full Webpage Capture

Stephen Hay recommends rapid prototyping. In the workflow he'll use full screen webpage captures. As an alternative to the .js capture method you could install a web page capture app on your browser. "ExtensionFull Page Screen Capture" can do this. And here's a shot of a recent style tile:


If you use the Web Developer tools and watch the webpage in some mobile device the "ExtensionFull Page Screen Capture" is able to grab such a page too.


Hay propose to use such images in a pitch at an early stage of the web developent process. Here I have combined the idea with style tiles.

03 April, 2015

A KDE program launcher shortcut



KDE does not ship with a program launcher shortcut. The "windows" or much better meta key is used for combinations. So you have to invent some shortcut. I have chosen meta + space.

Finding the settings was not easy. I gave up following the googled instructions. Many were far out in the green nerdy weeds. But try this:

  1. Right-click on the K icon (bottom left).
  2. Panel settings > panel settings
The window above will open. Click the shortcut symbol - and enter your shortcut.

Flipped Classroom and Linux

For a screencast install gtk-recordmydesktop. On KDE the icon is found in the Video section of the programmes.

# sudo apt-get install gtk-recordmydesktop

For better sound quality use an external microphone.

You'd probably need a video editor. I use OpenShot.

# sudo apt-get install openshot

SSH and One.com

So now you can use SSH for your webhotels at One.com. Very nice - because the terminal is a very powerfull tool. FYI this stuff is available:

  • ssh yoursite.what@yoursite.what
  • mc
  • git
  • Your website is located in /www
  • nano / pico