Showing posts with label gui. Show all posts
Showing posts with label gui. Show all posts

2007-10-25

Corporative

Why in usual mail clients the avatar support is missing?

IMHO it is quite natural to paste ones small photo in the end of the letter, together with the signature, next to the standard - Sincerely yours, forever yours, kiss your heels SO-AND-SO.

Point is that in a steady increase in the number of employees and the growing number of additional offices, you can regularly exchange letters with a person for a long time, but do not recognize him(her) on meeteng.

It's not evident but usual Lotus Notes support the possibility of the automatically photo attachement.

Share the know-how:

lotus_html me_on_lotus It turned out that if to set html file containing a link to a local picture as a signature then this picture will be sent in e-mail as a usual attachment and will be correctly displayed in the end of the letter, near the signature.




The about contents of the html file:

<br>
<table>
<tr>
<td width="60px">
<img src="D:\Welcome\me.jpg"/>
</td>
<td>
<i><p>Sincerelly,<br>
</i>
</td>
</tr>
</table>


P.S. Yes, yes... I litter server backups with redundant pictures... but humanity is first of all :). It would be no need of redundant pictures if such an implementation would exist at Lotus level.

2007-10-15

The naked object

Consider a forest with birds singing in the trees and flowers covering its floor. We caneasily walk
along its paths or you can be adventurous an make your own paths. We can
select any aspect of its complex
ecosystem and study it for your doctoral thesis. There is
unlimited complexity, yet any human can
master it to suit his or her purposes. There is no
reason why a computer system should be more
complex than a forest. I believe that the
current complexity is man-made, and that we can
resolve it by changing our approach to
software development. We merely need to get our priorities right and create
the appropriate
tools. If we decide to build systems for people, then we will get systems tha can be mastered by people.
Trygve Reenskaug In the foreword to Naked objects R. Pawson Phd Thesis


An approach offered by creators of Naked objects framework looks very interesting, at least for the quick prototyping. Refuse, auto generation of UI, return to the OO basis - full-fledged objects with considerable behavior.

A big advantage is that the interaction with user happens by the most usual noun-verb script. IMHO, only Raskin zoom interface is required to be absolutelly happy. And for the convenient navigation on great number of open objects something like Leap is needed.

In web implementation from the outside it's very similar to like Django admin interface interface, in full-fledged GUI clients interface is much more interesting.

Update 18.10.2007: Naked objects discussing at ltu
Update 29.10.2007: Martin Fowler's article with the critique of objects without behavior and a critical response to it in some blog.

2007-07-19

File browser with tags

LJ user olpa asks himself: File browser with tags. Why it is needed?

IMHO if one uses such a browser then the functionality implemented in more specific programs a-la Windows Media Player or Picasa has become absolutely useless.

I myself started to dig in the similar direction. But first of all I'd like to files combine by tags be available in any program including the ill-stared dialog Open File.... And I do not like to implement yet another file manager.

The problem is easy solved at file system level and it seems to be all: sqlite base + fuse + console utility + nautilus plugin, it's rather easy and beautiful implemented. But damn, it will not work on Windows.

Update 23.07.2007 The modest operating system Emacs supports it for a long time.

2007-07-05

Google, google - save our soils.

There is a lot of computer dictionaries, there is a lot of programs, which easy translate a word when the mouse is moved to it, there is a lot of on-line dictionaries and translators, it's all great and wonderful.

But I'd like to have a list of everything I translate, to see the statistics in order to learn by heart the most often forgotten words after all. May be some flash cards should be formed by them, it seems there is such way of words learning already.

I need such web service, I need corresponding script for greasemonkey I need corresponding dictionary for my computer with the necessary possibility of quickly translation a word under the mouse, I need pdf dictionary integrated with a book reader... and so that all this has a common base of made requests.
Is there anything similar?

So far I've created a little script for we, using http://lingvo.yandex.ru. As least, I'll bind a database to it, it will be happiness yet.

The code
#!/usr/bin/env python
# -*- coding: utf-8 -*-
import sys, urllib2, libxslt, libxml2
from html5lib import html5parser

# http://www.dbforums.com/archive/index.php/t-1419974.html
# by John J. Lee
class DumbProxyPasswordMgr:
def __init__(self):
self.user = self.passwd = None
def add_password(self, realm, uri, user, passwd):
self.user = user
self.passwd = passwd
def find_user_password(self, realm, authuri):
return self.user, self.passwd

def word2url(word):
return "http://lingvo.yandex.ru/en?text=%s"%word

def download(url):
proxy= urllib2.ProxyHandler({"http" : "http://proxy:8080"})
proxy_auth_handler = urllib2.ProxyBasicAuthHandler(DumbProxyPasswordMgr ())
proxy_auth_handler.add_password(None, None, 'user', 'password')
opener = urllib2.build_opener(proxy,proxy_auth_handler)
urllib2.install_opener(opener)
src = urllib2.urlopen(url)
return src.read()

def html2xml(src):
p = html5parser.HTMLParser()
doc = p.parse(src,'utf-8')
return doc.toxml()


def decodeYaXML(src):
styledoc = libxml2.parseFile("decode.xslt")
style = libxslt.parseStylesheetDoc(styledoc)
doc = libxml2.parseDoc(src)
result = style.applyStylesheet(doc, None)
content = style.saveResultToString(result)
style.freeStylesheet()
doc.freeDoc()
result.freeDoc()
return content

if __name__ == '__main__':
if len(sys.argv) < 2:
print "usage %s word"%sys.argv[0]
sys.exit()
word = sys.argv[1]
result = decodeYaXML(html2xml(download(word2url(word))))
print result.decode('utf-8','replace').encode('cp866','replace')



The contents of decode.xslt file is trivial everybody can write it to one's heart's content.

Monsieur being a good judge of perversion can appreciate the last row.

Benefits of layouts and the structural programming

In addition to this
Visual interface builders save time only as the expense of one shouldn't think about the beauty and the convenience of the interface. Slam bang - and a heap of trash as a result.

Layouts make easier manual coding significantly, provide visual symmetry of the interface and force to think about the information structure.

For the comparison:


credits-na-pivo-oldcredits-na-pivo





Which one is better? What else can be improved?

2007-06-14

The killer feature for oracle forms

Oracle forms have an awful implementation in themselves but the idea of trying to describe user interface development entities in terms of data base is interesting enough.

By removing redundant abstraction level we simplify the implementation, make easier the interaction between developers of different system levels. Data blocks as a model, triggers instead of events are good but the very important thing is missing. If it would be implemented the correspondence between approaches to developing data bases and gui would be full.

The matter is savepoints. IMHO they should combine with modal interfaces and the standard exceptions mechanism in a very harmonious way. And the idea of save point itself is more natural for dialogs with Cancel button than dummy copying and synchronization of data.

2007-05-22

Why Visual RAD tools not so rapid at all

Why I do not feel comfortable at visual programming environments:

10% screen for 90% work - It's easy to sketch a prototype but for making it work as expected one has to click in a tiny Property window for a long time. Drug, drop and ready? IMHO the speed of work increasing is reached not by the convenience of graphical interface but by throwing away some important actions which we do when writing the code - formatting, naming variables, code structuring.

No Undo - Even if developers tried their best and basic actions can be undone meta information changes are fatal as a rule. Properties much talked about are 90% of work. Even in such a mega visual environment as Microsoft Word we open document properties, change an author, press OK and thats all - the transaction is committed.

No code comment/uncomment - Of course, it's good - quickly drag, drop and it's ready... but after that - what if it will be better like this: make some changes, oops, do not like it - return everything as it was. But how? I can not comment the code, write new one and return everything as it was, if required. Do not offer me commit to the control version system on every click.

And the most important - Leaky Abstractions.
If the lower environment is not RAD itself you can save it by no visual interface.

When trying to create Rich user interface around a piece of something strange appears the necessity of storying some meta information about the system state. And very often the revers synchronization of a state to a meta information is impossible. As a rule, in practice it means that the interface keeps the user in the bounds of defined scripts. To change something under hood directly, not from the interface, is impossible.

Troubles begin in understanding interconnections between operations in the interface and actions doing in the system. If the system and the interface are not isomorphic it is absolutelly impossible to understand why you've lost wings after you just made legs.

If you'd like RAD - change the conservatory.

2006-09-22

Usability: Integration of file manager and File->Open dialog

In the light of the previous post I thought that copying the full path to a file to the clipboard and inserting it into File Open dialog running from another program it's a solution of a problem that could never happen.

I know two ways of starting work with a file. The first one is to open a required program, run File Open dialog and chose the file. The second is rely upon file manager, find and «run» the file from it. Many times I've met an opinion that that the possibility of the user interface to do the same thing in a few ways is not good. There is a point of view that files should not be opened at all...

In short, the best problem solution is the problem absence. But it is still not clear what to do with all this variety of programs and file managers.

On linux waving the magic wand LD_PRELOAD and replacing standard libraries without recompiling I can do everything I wish, I can dream:

Throwing off all pink elephants in yellow pants it seems to me that the most digestible solution is to display in File Open dialog folders, which are opened in my file managers.

As usual, they are about 10-15, so it is not difficult to pick up a necessary file. There is no need of copying and inserting anything. My attention is not spread on a whole lot of hard disk folders, everything I need is opened in my Nautilus. I'm concentrating on my task.


Update: No, it's not convenient, there is a need to open a file in a subfolder of an opened folder, so we've come to the beginning — the whole tree in File Open dialog.

2006-01-10

Programming: GUI - new concepts

Yep.. Eclipse guys are not behind new trends - JFace Data Binding. In Eclipse 3.2 will be analogue of Cocoa Controller Layer.