world in ASCII code

asciiworld

asciiworld – that’s how world is represented in ASCII code. Interesting project which come equiped with some interesting tools: geoIP, day/night, satelite tracking, different world projections.

If you are on ArchLinux instalation is simple, just use AUR repository, for others compiling is the option, just read README files and Makefile for dependencies.

Anything else…, oh yes, the words of author vain aka.Peter Hofman: “Having a little bit of fun.”

Happy hacking….

pyhn – issue #31 repair

pyhn

New version is out, dealing with issue #31:
$ pyhn
Traceback (most recent call last):
File "/usr/local/bin/pyhn", line 8, in
hn_gui.main()
File "/usr/local/lib/python2.7/dist-packages/pyhn/gui.py", line 85, in main
self.build_interface()
File "/usr/local/lib/python2.7/dist-packages/pyhn/gui.py", line 124, in build_interface
self.cache_manager.refresh()
File "/usr/local/lib/python2.7/dist-packages/pyhn/cachemanager.py", line 44, in refresh
stories = self.api.getTopStories(extra_page=self.extra_page)
File "/usr/local/lib/python2.7/dist-packages/pyhn/hnapi.py", line 307, in getTopStories
stories += self.getStories(source_latest)
File "/usr/local/lib/python2.7/dist-packages/pyhn/hnapi.py", line 240, in getStories
storyNumber = self.getStoryNumber(story)
File "/usr/local/lib/python2.7/dist-packages/pyhn/hnapi.py", line 101, in getStoryNumber
return int(source[numberStart:numberEnd])
ValueError: invalid literal for int() with base 10: '1'

Download:
python
…or…
github
…see also:
pyhn

Happy hacking….

pyhn – console Hacker News client

pyhn

pyhn – is a simple and easy to use, but very effective console client for Hacker News, written in Python and supports Python.2x and Python.3x installation.
It does not support auto refresh function, so refreshing must be done manually, but other than that, it got everything for effective usage. By default configuration file is located in $HOME/.pyhn/config and can be easy adapted:
[keybindings]
open_story_link = S,enter
show_story_link = s
open_comments_link = C
show_comments_link = c
open_user_link = U
show_user_link = u
up = j
down = k
page_up = ctrl d
page_down = ctrl u
first_story = g
last_story = G
refresh = r
reload_config = R

[settings]
cache = /home/socketubs/.pyhn/cache
cache_age = 5
browser_cmd = __default__ #or browser_cmd = links __url__

[colors]
body = default||standout
focus = black|light green|underline
footer = black|light gray
footer-error = dark red,bold|light gray
header = dark gray,bold|white|
title = dark red,bold|light gray
help = black,bold|light gray

…there is no classic manual help file present, but keyboard shortcuts help can be invoked with “h” or “?” key and that is, because of pyhn simplicity all you need.

Additional links:
authors site
pyhn on python.org

Happy reading and hacking….

Console E-book Readers

 

Fbless – ncurses based  fb2, zip, gzip or bzip2 file reader, ebook format which is very popular in Russia, but you can find plenty book in other languages (or you can use Calibre for conversion). FictionBook is an open XML-based e-book format, the FictionBook format does not specify the appearance of a document; instead, it describes its structure. For example, there are special tags for epigraphs, verses and quotations. All the e-book metadata, such as the author name, title, and publisher, is also present in the e-book file. Hence the format is convenient for automatic processing, indexing, and e-book collection management. This also allows automatic conversion into other formats. The usage is simple:

fbless [-h] [-v] [-a] [-t {down,up,page-down,page-up,fifo}] [-i sec.]
              [-g %] [-e] [-c file]
              [file]

fb2 console reader

positional arguments:
  file                  fb2, zip, gzip or bzip2 file

optional arguments:
  -h, --help            show this help message and exit
  -v, --version         show program's version number and exit
  -a, --autoscroll      enable auto-scroll
  -t {down,up,page-down,page-up,fifo}, --scroll_type {down,up,page-down,page-up,fifo}
                        auto-scroll type (down, up, page-down, page-up, fifo)
  -i sec., --interval sec.
                        auto-scroll time interval
  -g %, --goto %        go to the offset (in percent)
  -e, --edit            open in the editor
  -c file, --config file
                        use the specified configuration file

Some other e-book related apps: Calibre (reader, converter and manager), FBReader, Sigil (epub editor), Book Manager (simple e-book manager app supporting basic collection management and tabbed document viewing), Fb2edit, Jutoh (e-book creator), Le TeXtallion (easy-to-use tool for publishing prose, literature, poetry in html, pdf or epub, and using txt2tags as a back end), eCub (a simple to use epub and MobiPocket e-book creator), Jebooker (e-book management software which can be merged with an existing e-book folder structure. It provides a user interface that allows to search or change the e-book meta data. Jeboorker supports epub, cbr, cbz and pdf documents without DRM), PdfMasher (tool to convert pdf articles (newspaper, academic) to mobi or epub documents)….

If you know any other console ncurses based ebook reader leave a message.