jerous' ::1

Listing of these articles
2018-01-01 [E] [D]
homepage,web Comments 0

New year, new stats.

  • 2,545 visits
  • 57s average visit duration
  • 64% visits have bounced (left the website after one page)
  • 1.9 actions (page views, downloads, outlinks and internal site searches) per visit
  • 0.55s average generation time

  • 4,301 pageviews, 3,168 unique pageviews
  • 0 total searches on your website, 0 unique keywords
  • 412 downloads, 371 unique downloads
  • 244 outlinks, 227 unique outlinks
  • 43 max actions in one visit

read more...

Just a quick script that adds some information to tables on \

  • kraken.com
  • bittrex.com

Download

Read the entire post to view the source.

read more...

I sometimes look at the intervals table of my workouts of my favourite run log http://runningahead.com. It's missing a speed column though, which I sometimes prefer over a pace. This little script adds it :)

I've only run it so far in

Download

Read the entire post to view the source.

read more...

2017-01-01 [E] [D]
homepage,web Comments 0

I track visitors to this website using piwik, just for my own entertainment.

Some general visit statistics:

  • 2,341 visits
  • 1 min 5s average visit duration
  • 62% visits have bounced (left the website after one page)
  • 1.9 actions (page views, downloads, outlinks and internal site searches) per visit
  • 0.64s average generation time

  • 4,042 pageviews, 2,877 unique pageviews
  • 0 total searches on your website, 0 unique keywords
  • 245 downloads, 214 unique downloads
  • 266 outlinks, 248 unique outlinks
  • 54 max actions in one visit (I think this one probably is from me, while my actions were logged and I was testing something :))

read more...

2015-08-03 [E] [D]
web,homepage Comments 0

I got a bit frustrated by the static site concept, and its time consuming process which impacted my desire to edit and create content. So, after looking for a long time for a suitable successor, I decided to just write one myself, not finding one who did exactly what I wanted. And en passant, I updated the visuals to a much more minimalistic approach.

It has nothing fancy in particular, but a lot of features that are useful. I might expand this post, or move it to a project page and create a real project out of it.

There probably are still some hiccups, but they will get fixed along the route. And I think this will be the last time changing sites :)

2015-05-26 [E] [D]
web,project,code Comments 0

Call me old-fashioned, but I like feeds: they're clean, they're fast, they're sort of local. The problem is, however, not all sites provide an atom (or RSS) feed, and if they provide one, it sometimes is more than I want.

E.g. someone recommended the language articles by Michele Berdy at The Moscow Times. It provides a RSS feed to all opinions, but not to a specific subset. It does, however, give a HTML listing of most recent articles.

I went out for a quick look on the webz, and found a couple of paying services, and the free Feed Creator byte FiveFilters.org. It seemed to do what I want, but as it wasn't open source and actually seemed quite easy, I did a very basic implementation myself.

The hosted version can be found at http://jerous.org/tools/site2atom.php, is self-documenting and its source can be downloaded from my git repo

An example for the above site: http://jerous.org/tools/site2atom.php?url=http://www.themoscowtimes.com/sitemap/authors/174191.html&url_contains=/opinion/article/&title=MicheleBerdy

It contains three entries:

  • title optional title
  • url what site to fetch. There is a limit of 1 MiB
  • url_contains perform an XPATH query //a[contains(@href, '$url_contains')]", i.e. return all a-tags whose href contains url_contains

Currently, there are a couple of keys available that can be used. Values are first converted to lowercase, unless otherwise noted.

  • url[not]contains select if the href [not] contains the value. Multiple occurences are and-ed together;
  • urltitle[not_]contains select the url if the link's title [not] contains value. Multiple occurences are and-ed together;
  • div_class select only urls that are inside a div with a class containing case-sensitive value. Only last occurence will be used.

In the future there'll be some additions, which are probably documented only on http://jerous.org/tools/site2atom.php only.

Feel free to use in any way you see fit, and let me know if it suits you in any way :)

2015-04-02 [E] [D]
web Comments 0

I moved the content of jerous.thimhallan.org at dreamhost.com to jerous.org at digitalocean.com. This should make everything faster (SSD! My own optimized FreeBSD!).

There probably will be issues on this site because of this move (links site still pointing to the old domain, or pages not showing any content), or from external links pointing to the old domain. These will get (hopefully) fixed, over time :)

The imperial unit system, defined by the British in 1824, is still floating around everywhere, despite the International System of Units being a better system (well-defined, using only seven base units).

In some cases it makes sense, as the impact of error is quite high.

However, in other scenarios, such as the internet, it only makes it more difficult to put things into perspective if one is too lazy to make the calculation (e.g. "I ran 30 ft today!", or "I lifted 20 stone". Should I be impressed?).

Hence, I wrote a simple GreaseMonkey script, which looks for patterns of a number and an imperial unit, and adds the conversion (while also showing the original)

It is quite simple, and hence has some limitations: it will only convert upon page load (thus AJAXy pages won't benefit), looks for very specific patterns (hence "10 and 20 miles" will have only the latter replaced), it sometimes might not recognize some numbers, or sometimes it might convert too much. Another caveat is that the script assumes that thousands are separated by a comma (e.g. ten thousand is either 10000 or 10,000): the comma is removed alltogether from the string.

I've only run it so far in

Download

Read the entire post to view the source. I've also added a simple HTML page with some units to have a quick look at the output.

read more...

A while ago, the google search page used to have a link in the google bar (that bar at the top) which included a link to perform the current search on scholar.google.com. Then, it suddenly disappeared, which annoyed me quite a bit, as I often just typed my query in google, even though I wanted the scholar one.

So, I just finished a little userscript that just does this: insert a link to google scholar.

It should work in

I will keep this script updated as the google homepage changes (last update: 30th of March 2016)

Download

Read the entire post to view the source.

read more...

2012-11-05 [E] [D]
haskell,web Comments 0

Work in progress

I've been playing lately with yesod. Since I've got this dreamhost account, I thought I'd try to install it on my account.

The script provided below allows you to do the same. Note that due to the limited resources an account has, a process might get killed. Just keep trying until it succeeds :)

read more...

Listing of these articles Download these articles
[printer friendly] [static version] [Post listing] [Page listing] [Tags: music tab jazz travel wdb europe code live programming youtube record ]