Lateral Opinion
Available in: Español • English
2008-07-25 14:33:05

Urssus: July 25th (later) - uRSSus on windows

urssus8
urssus8 by Roberto Alsina

So you need to install SQLAlchemy 0.4.6 and Elixir 0.5.2 and python and pyqt and paver, and whatever manually right now... it does work.

I had to change about 10 lines, specifically stuff about temporary files.

On Linux, I create a NamedTemporaryFile, write to it, then read it from another place of the code. As long as I keep a handle to the object that's ok.

On Windows, it seems I can't read the file because it's locked by the writer, but if I close it it's deleted, so I switchedto mkstemp and that's it.

Also, it doesn't run well from inside IDLE for some reason.

# •   •  Listen to this post
Topics: programming, python, urssus
Available in: Español • English
2008-07-25 12:55:32

Urssus: July 25th - approaching parity

My stated goal of Akregator feature parity is looking even better. With screenshot!

urssus7
urssus7 by Roberto Alsina

If you didn't read (or care about) last night's updates to yesterday's post, here they are:

  • Implemented "Mark posts as read on arrival for this feed"
  • Implemented customupdate intervals for feeds
  • Fixed article filtering
  • Implemented filtering by article status
  • Implemented folder-as-feed (not perfect)
  • Export as OPML

And today I did these:

  • Switched from Mako to Tenjin (which I can just bundle)
  • Implemented "Combined View" mode (you can see it in the screenshot above)
  • Implemented "Import Technorati top 10"
  • Organized the code correctly
  • Wrote a Paver script so it can be installed nicely (someday)
  • Removed all generated files from the repo (now you generate them using paver and/or setup.py)

So, on the TODO we have:

  • Favicons
  • Implement app preferences dialog
  • Bugfixes
  • Pagination for combinedView (so you don't have a page with 90000 posts in it which takes a month to load)
  • Akregator DB import script, so I can compare performances reasonably.

And still fun!

Current LOC count: 1295

# •   •  Listen to this post
Topics: programming, python, urssus
Available in: Español • English
2008-07-24 13:49:40

Urssus: July 24th

When I started this project I wrote:

I intend to keep working like this for a couple of weeks, and see how far I can get in feature parity to akregator.

No, I don't expect to reach feature parity, I only want to strive for it. SInce I lack the focusand/or energy for a multi year commitment it requires to write the average free software, I want to see how far a sprint gets me.

To my surprise, only 9 days into the project, feature parity is at hand.

What's not done?

  • Some feed properties (custom archiving modes, mark as read on arrival) (Update: "mark as readon arrival" implemented at 22:40)
  • Fix article filtering (it's not quite broken, but interacts badly with many things) (Update: done as of 19:20)
  • Implement app preferences dialog
  • Filtering by article status (Update: implemented as of 19:01)
  • Folder-as-feed (Update: done, as of 22:20, even if not really efficiently)
  • Export as OPML (Update: just implemented it :-)
  • Favicons

And some things in the backend, which are not proper features.

What have I done today?

  • New articles notification via systray
  • Custom update intervals per-feed
  • Made Feed.unreadCount() fast enough
  • Article sorting (not as trivial as it sounds)
  • Fixed a lot of bugs (none of which crashed uRSSus, take that Akregator! ;-)

And still I have written only 1066 lines of code, according to sloccount.

Update: 1127 lines with the extra features marked above as "update"

# •   •  Listen to this post
Topics: programming, python, urssus
Available in: Español • English
2008-07-23 09:29:51

Urssus: July 23rd (early)

So I did work on it a little last night:

  • Feed/Folder context menus
  • Open Feed Homepage action
  • New Feed (uses Mark Pilgrim's feedfinder.py, which is awesome)
  • New Folder
  • Delete Feed/Folder
  • Some UI fixes (finally figured out how to make a QTreeView's headers look right!)
  • Some bugfixes in tree traversing (where else ;-)
  • Implemented "fetch the web page instead of the feed contents" option for feeds (because of your annoying feed, DZone!)

Sadly no visible changes, so a screenshot would be useless.

# •   •  Listen to this post
Topics: programming, python, urssus
Available in: Español • English
2008-07-22 16:48:28

Urssus: July 22nd / looking good

Today it was a bit more than two hours, but spread in 10 minute chunks, which is not exactly efficient.

Improvements:

  • Rewrote the whole next/next unread/article/feed spaghetti in a decent way. It's broken regarding filtered/sorted article lists, but it's trivial to fix.
  • A few UI features:
    • Show only feeds with unread articles google-reader style
    • Show in dark red the unread articles
    • Show title / date of articles in separate columns
  • Implemented "Match case" for the search
  • Implemented dumb systray icon (need to make it useful)
  • Implemented article counts in folders (but not article lists which is, of course, harder)

And of course, a screenshot:

urssus5
urssus5 by Roberto Alsina

A bad side is that the main window takes about 3 seconds to appear, but I am pretty sure that's fixable reordering the startup code.

TODO:

  • Feed CRUD
  • Post mark as (read/unread/important/whatever)
  • Filter by post status
  • Search in all feeds
  • Virtual feeds
  • Persistent settings
  • More aggressive feed fetching (now it's a single queue, should be a configurable number)
  • Lots of minor fixes

And it will be pretty much in feature parity with Akregator, and ready to start the packaging work. Not bad for a week of work (BTW: if anyone has any experience packaging PyQt stuff for windows/Mac I can use the help ;-).

Still fun (although tree traversing is starting to get quite annoying)

# •   •  Listen to this post
Topics: programming, python, urssus
Available in: Español • English
2008-07-20 17:44:20

Urssus: July 20th / eating my own dogfood

Yes, I am now using uRSSus instead of Akregator.

On the programming side, I did very little work because it's sunday...

  • Implemented the Find windget backend code and it works forwad and backward (but not "Match case" which is pretty trivial).
  • Fixed a few focus issues. When you have a multi-widget main window, it can get kinda tricky, and you may end needing to move focus around manually (not in this case yet).

I have found a few bugs, mainly related to traversing the feed tree, but they are all fixable with some effort (or by doing it correctly the second time ;-)

# •   •  Listen to this post
Topics: programming, python, urssus
Available in: Español • English
2008-07-19 08:43:39

Urssus: July 19th

I confess I cheated and kept working on it yesterday after the blog post. OTOH, I will not touch it today ;-). Big functionality added, too.

  • Feed items (The things on the tree) now are updated when the background process checks them.
  • They are also updated when you read articles from a feed.
  • The filter thingie works, you type some text, and only the articles with that text are shown (see screenshot).
  • Added a widget (not dialog) for searching within the page, firefox-like (see screenshot)
urssus4
urssus4 by Roberto Alsina

The bad news is that the "next unread article" code and a few others is garbage. It's quite inefficient because I tried to be cheap and not create a coherent model for feeds.

However it works and you will never tell the difference unless you have 2000 articles between where you are and the next unread (in which case the window goes kinda nuts for a couple of seconds).

Still fun!

# •   •  Listen to this post
Topics: programming, python, urssus
Available in: Español • English
2008-07-18 15:43:15

Urssus again

Another day, another two hours of work on it.

What's new?

  • Some UI elements without code behind them (the "filter article" thingie), and a feed properties dialog.
  • A (IMVHO) better UI distribution than akregator. Consider this screenshot:
urssus3
urssus3 by Roberto Alsina

The article list and feed tree are the same size, but removing the tabs and moving the filter into a toolbar really makes the actual reading area quite larger.

  • Delegate all links from the reading area to the desktop's web browser (this is not a web browser yet ;-)
  • Progress report for web page loading (more useful once you can declare a feed as "load link directly")
  • Finished feed/article navigation (next/previous feed/article unread/any), and fixed bugs in the part that was already done.
  • Zoom in/out for the web view
  • Show/hide statusbar
  • Several bug fixes

And yes, still fun!

# •   •  Listen to this post
Topics: programming, python, urssus
Available in: Español • English
2008-07-17 16:21:00

Urssus improves

Today's 2 hours:

  • An about dialog (not wired to the UI yet)
  • Icons on the feed tree (not favicons, though)
  • Handle a few more feed quirks
  • A status message queue, so subprocesses can post their progress in the status bar.
  • UI for importOPML
  • Implemented "Next Article" and "Next Feed". This Model/View Qt thing is kinda painful (but powerful!)
  • Use of Mako templates to display the articles pretty and neat
  • Menu & Shortcuts following Akreggator
  • Added several fields to the Post and Feed models to make them more useful (which means the DB changed, but that's to be expected at this stage). These include things like "unread" and "author" and "link" ;-)

Still fun!

# •   •  Listen to this post
Topics: programming, python, urssus
Available in: Español • English
2008-07-16 21:44:13

A programming challenge for myself

I worked on uRSSus for a couple of hours again, and it's working pretty nicely.

  • Really uses the ORM
  • Multiprocessing for a non-blocking UI (python-processing is awesome)
  • Adapts to the quirks of some feeds (why on earth would someone do a feed without dates? It's AOL FanHouse!)

I intend to keep working like this for a couple of weeks, and see how far I can get in feature parity to akregator.

No, I don't expect to reach feature parity, I only want to strive for it. SInce I lack the focusand/or energy for a multi year commitment it requires to write the average free software, I want to see how far a sprint gets me.

urssus2
urssus2 by Roberto Alsina

So far, it's fun.

# •   •  Listen to this post
Topics: programming, python, urssus
Available in: Español • English