Skip to content. | Skip to navigation

Personal tools
Log in
Sections
You are here: Home

jorgenmodin.net - Blog

Dillinger - a markdown editor with a preview pane

Looks neat.

 

Dillinger is a cloud-enabled HTML5 Markdown editor. Type some Markdown text in the left window See the HTML in the right Magic


Read more: Link - Online Markdown Editor - Dillinger, the Last Markdown Editor ever.

May 16, 2013 12:18

Link - Letting Generic Setup handle content types that may not exist

Saw this today and just saving the link for reference if I would run into this problem.

 

Fortunately there is an undocumented feature hidden in GS: You can declare your type declaration as deprecated. This way, GS does not try to initialize the object and does not try to create the type information object if it does not exist.


Read more: Link - How to handle unknown meta_type in GS — Starzel.de

May 15, 2013 10:47

Analyze Apache log files from the command line

Sometime you just want to get a quick overview of what's going on. In this case I wanted to know from what regions accesses were made to a specific page. This web article: Analyzing Apache Log Files < System | The Art of Web, showed how to use awk to filter out specific fields in the apache log format.

 

I found some info on how to geolocate from the command line here: Geolocate a given IP address | commandlinefu.com (I installed geoip-bin on my Debian).

 

The resulting one-liner, that

  • checks for a pattern in the log file vhosts_access.log,
  • extracts the ip number for each request
  • and geolocates it:

 

grep 'some_pattern_in_the_log' vhosts_access.log|awk '{print $2}'|sort|uniq| xargs -I xxx geoiplookup xxx|sort|less

 

May 14, 2013 09:00

How to change the default sort order in Kate (KDE) file dialogs

On Ubuntu 13.04 (at least), edit the file:

~/.kde/share/config/kdeglobals

It is a configuration file in the Windows INI style format. Locate the section called

[KFileDialog Settings]

Change the settings:

Sort by=Date
Sort reversed=true

into:

Sort by=Name
Sort reversed=false

Furthermore, changing

View Style=Simple

into

View Style=Detail

will make it easy to change the sort order on the fly.

The changes will not be immediately picked up by Kate. I did not need to restart the computer or even logout from my Ubuntu Unity session, but logout is probably the way to go if the changes do not take effect after a while.

May 09, 2013 10:40

Plone training in London July 2-4

We will be back with Plone Training, with a three day course July 2 -4 2013 in London.

May 07, 2013 01:23

Using bottle.py as a Facebook authenticating proxy

I haven't actually tested this, so far just assembling bits and pieces that ought to work together.

 

How to make bottle.py into a proxy server:

Making a Bottle app that routes to a proxy

How to make bottle.py authenticate via Facebook:

sean-lynch/bottle_fbauth · GitHub

Underlying python library for the Facebook authentication:

facebook-sdk 0.4.0 : Python Package Index

May 02, 2013 12:30

Text editor for LXDE

Now trying Geany, will see how it performs.

 

I recommend geany, which does not depend on Gnome and seems to have almost everything I might want.


Read more: Link - Developer list for the LXDE desktop environment ()

Apr 29, 2013 09:15

Lubuntu 13.04 not as dependency-happy as it first seems

I installed the LXDE lightweight X11 desktop environment  on a Debian-based virtual machine (Bachata Linux) and I liked the simplicity of it. So I decided to try lubuntu, Ubuntu with LXDE, on a virtual machine. Once installed, I tried to remove one of the games, to clear up the menus a bit. However then it seemed like it wanted to uninstall LXDE proper..

I wonder if it actually meant a meta-package or what it's called, seems strange to have an all-or-nothing install. I investigated further:

 

All is well then, somebody else must have thought the same thing as I, and added the explanation. It is apparently safe to remove lubuntu-desktop without removing the, eh, Lubuntu desktop.

Apr 26, 2013 12:05

Page output from inside the python shell (REPL)

import pydoc
pydoc.pager('\n'.join('Hello World %d!' % x for x in xrange(200)))



I had no idea about this. It works well with pythn 2.7 on Ubuntu 12.04

 


Read more: Link - mitsuhiko comments on how to print output like "less" in shell?

Apr 25, 2013 04:16

Hartmann - Pipelines with multiple ins and outs

Sometimes I think it would be useful to have pipelines where you can branch out and handle errors or other conditions, or jump forward in a pipeline. There seems to be one syntax that covers this, the Hartmann pipeline:

 

Hartmann pipeline - Wikipedia, the free encyclopedia

Apr 24, 2013 05:14
Ads