maemo.org - Talk

maemo.org - Talk (https://talk.maemo.org/index.php)
-   Applications (https://talk.maemo.org/forumdisplay.php?f=41)
-   -   Qalculate! (https://talk.maemo.org/showthread.php?t=25520)

lardman 2008-12-11 10:18

Qalculate!
 
Get it here (or rather add this to your App Mgr):

In the short term, as my Packages.gz file is not quite right, follow the instructions in Yerga's post (bit further on in this thread, post #13) as to how to setup the application manager repo entry.


http://people.bath.ac.uk/enpsgp/nokia770/feed
diablo
main

It will go to Extras eventually, but in the meantime I thought people might like to try it out.

Thanks to Qwerty for sorting out the qalculate-gtk Hildon desktop menu entry, making some adjustments for the screen size and helping with the wonders of Debian packaging. And for reminding me to get on and compile this app too.

One minor issue, the unicode support is slightly broken for some reason (this lies in the qualculate lib, if anyone fancies looking at it the source is a couple of dirs down). This means the multiply sign and full stop appear as wierd chars. There is a preferences menu to turn unicode off, but due to the screen size you can't see that option (patch anyone), so you need to edit the conf file by hand, found in there: ~/.qalculate/

If anyone fancies Hildonising this then please be my guest.

Enjoy!

skatebiker 2008-12-11 11:29

Re: Qalculate!
 
This link returns

Not Found
The requested URL /enpsgp/public_html/nokia770/feed was not found on this server.

Apache/1.3.41 Server at people.bath.ac.uk Port 80

lardman 2008-12-11 12:35

Re: Qalculate!
 
Sorry, typo in the url, should work now

qwerty12 2008-12-11 15:26

Re: Qalculate!
 
Quote:

Originally Posted by lardman (Post 248699)
One minor issue, the unicode support is slightly broken for some reason (this lies in the qualculate lib, if anyone fancies looking at it the source is a couple of dirs down). This means the multiply sign and full stop appear as wierd chars. There is a preferences menu to turn unicode off, but due to the screen size you can't see that option (patch anyone), so you need to edit the conf file by hand, found in there: ~/.qalculate/

If it wasn't in glade, I'd have added a scrollbar to it :(

bluechalk 2008-12-11 16:03

Re: Qalculate!
 
My application manager complains: Unable to download qalculate-gtk. Application package not found.

I have a N810 with the latest Diablo.

lardman 2008-12-11 16:33

Re: Qalculate!
 
These repos are more trouble than they are worth.

Putting my developer's hat on I say: do it from the command line with "dpkg -i"

Unless someone can diagnose the issue for me that is?

skatebiker 2008-12-11 18:16

Re: Qalculate!
 
I installed it without success.
Via the application manager 'Incompatible application',
via the command line
Code:


pocketpenguin:~# dpkg -i /mmc2/download/Maemo-OS200x/qalc_0.9.6-2_armel.deb
Selecting previously deselected package qalc.
(Reading database ... 17875 files and directories currently installed.)
Unpacking qalc (from .../qalc_0.9.6-2_armel.deb) ...
dpkg: dependency problems prevent configuration of qalc:
 qalc depends on libcln5; however:
  Package libcln5 is not installed.
 qalc depends on libqalculate4; however:
  Package libqalculate4 is not installed.
 qalc depends on libreadline5 (>= 5.2); however:
  Package libreadline5 is not installed.
dpkg: error processing qalc (--install):
 dependency problems - leaving unconfigured
Errors were encountered while processing:
 qalc


TA-t3 2008-12-11 19:22

Re: Qalculate!
 
Actually, it's now half-installed.. try installing just about anything with apt-get install. It will then, additionally, resolve those missing dependencies for qalc (if possible, that is if it's downloadable.. that libclnl5 is part of qalculate, isn't it? Try first dpkg -i on that one, then try the apt-get install trick. E.g. apt-get install libreadline5)

yerga 2008-12-11 20:09

Re: Qalculate!
 
Quote:

Originally Posted by lardman (Post 248699)
If anyone fancies Hildonising this then please be my guest.

I could take a look, but it will be on saturday (tomorrow I will be partying until late night :))

lardman 2008-12-11 20:39

Re: Qalculate!
 
All those deps are also in the repo. I did mean to install each one individually as you came across it ;)

If anyone knows why the repo itself isn't working I'm all ears; likewise if it does work for you?

qole 2008-12-11 21:16

Re: Qalculate!
 
lardman: perhaps don't use "diablo", I used "maemo" instead in my experimental repo and it seemed to work for me.

PS: I like your rockets page, although most of the links on it are dead now.

skatebiker 2008-12-11 21:24

Re: Qalculate!
 
Again tried many thiongs, but no install.
Is there a *complete* package of this app ?
Code:

pocketpenguin:/media/mmc2/download/Maemo-OS200x# apt-get libreadline5
E: Invalid operation libreadline5
pocketpenguin:/media/mmc2/download/Maemo-OS200x# apt-get install libreadline5
Reading package lists... Done
Building dependency tree
Reading state information... Done
You might want to run `apt-get -f install' to correct these:
The following packages have unmet dependencies:
  libreadline5: Depends: readline-common but it is not going to be installed
  qalc: Depends: libcln5 but it is not installable
        Depends: libqalculate4 but it is not installable
E: Unmet dependencies. Try 'apt-get -f install' with no packages (or specify a solution).
pocketpenguin:/media/mmc2/download/Maemo-OS200x# apt-get install libcln5
Reading package lists... Done
Building dependency tree
Reading state information... Done
Package libcln5 is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source
E: Package libcln5 has no installation candidate


yerga 2008-12-12 00:34

Re: Qalculate!
 
The right settings for the repo are:

Url: http://people.bath.ac.uk/enpsgp/noki.../binary-armel/
distribution: ./
components: (blank)

It should work.

The problem is in the Packages file, the Filename field for the packages are listed in the ./ directory. To work with the distribution and components fields, the Filename fiels should be the complete path: "/dists/diablo/main/binary-armel/package.deb". Probably you are creating the Packages file inside of the directory with the packages without consider the complete path, no?

yerga 2008-12-12 00:36

Re: Qalculate!
 
Btw, Qalculate looks really nice with a bit of hildonization it will be very useful for me, specially the statistics part.

qole 2008-12-12 00:45

Re: Qalculate!
 
Quote:

Originally Posted by yerga (Post 248901)
TProbably you are creating the Packages file inside of the directory with the packages without consider the complete path, no?

Yes, you have to run the dpkg-scanpackages command from the repository root.

lardman 2008-12-12 09:13

Re: Qalculate!
 
ah, thanks chaps, I'll sort that out and tell you when it's done.

skatebiker 2008-12-12 10:16

Re: Qalculate!
 
Quote:

Originally Posted by yerga (Post 248901)
The right settings for the repo are:

Url: http://people.bath.ac.uk/enpsgp/noki.../binary-armel/
distribution: ./
components: (blank)

It should work.

The problem is in the Packages file, the Filename field for the packages are listed in the ./ directory. To work with the distribution and components fields, the Filename fiels should be the complete path: "/dists/diablo/main/binary-armel/package.deb". Probably you are creating the Packages file inside of the directory with the packages without consider the complete path, no?

What does this mean ?
Does dpkg -i xxxxx create a directory ?
Should I edit something ?
What should I exactly do ?

yerga 2008-12-12 10:21

Re: Qalculate!
 
Quote:

Originally Posted by skatebiker (Post 248958)
What does this mean ?
Does dpkg -i xxxxx create a directory ?
Should I edit something ?
What should I exactly do ?

Open the application manager, go to the menu, Tools->Application Repositories (or similarly called)->New and add those lines in its correspondent field of the dialog.
It should refresh the repositories automatically, search qalculate in the list, and install it.

lardman 2008-12-12 11:34

Re: Qalculate!
 
Try this:

Url: http://people.bath.ac.uk/enpsgp/noki.../binary-armel/
distribution: ./
components: (blank)

(where (blank) means write nothing)

TA-t3 2008-12-12 13:47

Re: Qalculate!
 
@skatebiker:
Quote:

pocketpenguin:/media/mmc2/download/Maemo-OS200x# apt-get libreadline5
E: Invalid operation libreadline5
apt-get install package, i.e.
apt-get install libreadline5

lardman 2008-12-12 16:05

Re: Qalculate!
 
hmm, not sure why readline isn't available by default actually, isn't it in extras?

Otherwise I'm not sure where I installed it from.

qwerty12 2008-12-12 16:07

Re: Qalculate!
 
Quote:

Originally Posted by lardman (Post 249014)
hmm, not sure why readline isn't available by default actually, isn't it in extras?

It is indeed:
http://repository.maemo.org/extras/pool/diablo/free/r/

qole 2008-12-12 17:14

Re: Qalculate!
 
Quote:

Originally Posted by lardman (Post 248963)
Try this:

Url: http://people.bath.ac.uk/enpsgp/noki.../binary-armel/
distribution: ./
components: (blank)

(where (blank) means write nothing)

Use yerga's settings, not lardman's ;) :)

It's funny, lardman's quote of yerga literally added the three elipses (...) in the Url! So instead of people.bath.ac.uk/enpsgp/nokia770/feed/dists/diablo/main/binary-armel/ lardman has people.bath.ac.uk/enpsgp/noki.../binary-armel/

Just a "beware!"

skatebiker 2008-12-12 19:01

Re: Qalculate!
 
Quote:

Originally Posted by qwerty12 (Post 249015)

Same problem with install.
I have tried this repository and the other :
http://enpsgp/nokia770/feed/dists/di...n/binary-armel
(without the ellipsis).
So there is really something missing.

Code:

pocketpenguin:/media/mmc2/download/Maemo-OS200x# dpkg -i qalc_0.9.6-2_armel.deb                        (Reading database ... 17904 files and directories currently installed.)
Preparing to replace qalc 0.9.6-2 (using qalc_0.9.6-2_armel.deb) ...
Unpacking replacement qalc ...
dpkg: dependency problems prevent configuration of qalc:
 qalc depends on libcln5; however:
  Package libcln5 is not installed.
 qalc depends on libqalculate4; however:
  Package libqalculate4 is not installed.
 qalc depends on libreadline5 (>= 5.2); however:
  Package libreadline5 is not installed.
dpkg: error processing qalc (--install):
 dependency problems - leaving unconfigured
Errors were encountered while processing:
 qalc


qole 2008-12-12 19:23

Re: Qalculate!
 
skatebiker: If you have the repository added, don't use dpkg -i anymore (since this won't install dependencies properly), use apt-get install instead.

Code:

apt-get install qalc
It should also show up in your application manager as an app you can install :)

lardman 2008-12-12 23:41

Re: Qalculate!
 
in fact you want to do the following probably: apt-get install qalculate-gtk

skatebiker 2008-12-13 10:17

Re: Qalculate!
 
This is the result:
Code:

pocketpenguin:/home/user# apt-get install qalc
Reading package lists... Done
Building dependency tree
Reading state information... Done
qalc is already the newest version.
You might want to run `apt-get -f install' to correct these:
The following packages have unmet dependencies:
  qalc: Depends: libcln5 but it is not installable
        Depends: libqalculate4 but it is not installable
        Depends: libreadline5 (>= 5.2) but it is not going to be installed
  xkbd: Depends: libxpm4 but it is not installable or
                xlibs (> 4.1.0) but it is not installable
E: Unmet dependencies. Try 'apt-get -f install' with no packages (or specify a solution).

http://misc.nicejewel.com/yerga.jpg

And I tried the other repository as well, same result.

lardman 2008-12-13 10:25

Re: Qalculate!
 
Well the failed to refresh is unrelated, the university servers are down this weekend for maintenance.

I also see you have an error relating to these packages (which is unrelated to qalculate, but to a previous attempt to install something):

xkbd: Depends: libxpm4 but it is not installable or
xlibs (> 4.1.0) but it is not installable

Perhaps do as it says and try to fix it: "apt-get -f install"

skatebiker 2008-12-13 13:24

Re: Qalculate!
 
Quote:

Originally Posted by lardman (Post 249233)
Well the failed to refresh is unrelated, the university servers are down this weekend for maintenance.

I also see you have an error relating to these packages (which is unrelated to qalculate, but to a previous attempt to install something):

xkbd: Depends: libxpm4 but it is not installable or
xlibs (> 4.1.0) but it is not installable

Perhaps do as it says and try to fix it: "apt-get -f install"

This indeed cleaned up something.
Code:

pocketpenguin:~# apt-get -f install
Reading package lists... Done
Building dependency tree
Reading state information... Done
Correcting dependencies... Done
The following packages were automatically installed and are no longer required:
  readline-common libreadline5
Use 'apt-get autoremove' to remove them.
The following extra packages will be installed:
  libreadline5 readline-common
The following packages will be REMOVED:
  qalc xkbd
The following NEW packages will be installed:
  libreadline5 readline-common
0 upgraded, 2 newly installed, 2 to remove and 32 not upgraded.
2 not fully installed or removed.
Need to get 175kB of archives.
After unpacking 696kB disk space will be freed.
Do you want to continue [Y/n]? y
WARNING: The following packages cannot be authenticated!
  readline-common libreadline5
Install these packages without verification [y/N]? y
Get:1 http://repository.maemo.org diablo/free readline-common 5.2-3maemo1 [50.9kB]
Get:2 http://repository.maemo.org diablo/free libreadline5 5.2-3maemo1 [125kB]
Fetched 175kB in 0s (257kB/s)
(Reading database ... 17904 files and directories currently installed.)
Removing qalc ...
Removing xkbd ...
Selecting previously deselected package readline-common.
(Reading database ... 17860 files and directories currently installed.)
Unpacking readline-common (from .../readline-common_5.2-3maemo1_all.deb) ...
Replacing files in old package libreadline4 ...
Selecting previously deselected package libreadline5.
Unpacking libreadline5 (from .../libreadline5_5.2-3maemo1_armel.deb) ...
Setting up readline-common (5.2-3maemo1) ...
install-info(/usr/share/info/rluserman.info.gz): no file /usr/share/info/dir, retrieving backup file /var/backups/infodir.bak.
Setting up libreadline5 (5.2-3maemo1) ...


skatebiker 2008-12-14 17:04

Re: Qalculate!
 
Now it installed, but it behaved quite differently.
I start qalc from the command line and it asks me for downloading currency rates
and does not start a GUI.

May be the wrong application ?

qwerty12 2008-12-14 17:06

Re: Qalculate!
 
You want qalculate-gtk. It shows up as Qalculate! with a pink icon next to it in blue pill mode even.

skatebiker 2008-12-14 18:03

Re: Qalculate!
 
UPDATE:
Now it did install, but there is no gui !
How can I enable the GUI ?

lardman 2008-12-14 18:40

Re: Qalculate!
 
What did you try starting? At the command line? "qalculate-gtk"?

Otherwise just use the menu entry Qwerty12 kindly provided (in the package, i.e. it should be in your menu)

skatebiker 2008-12-14 19:50

Re: Qalculate!
 
Thanks !
Now I did "apt-get install qalculate-gtk" and it did install a menu entry and the GUI
works !

skatebiker 2008-12-17 10:59

Re: Qalculate!
 
Quote:

Originally Posted by lardman (Post 248699)
This means the multiply sign and full stop appear as weird chars. There is a preferences menu to turn unicode off, but due to the screen size you can't see that option (patch anyone),

This problem appears to more apps. can this simply be fixed by adding scroll bars in the settings menu ?

Gourmand 2009-01-28 16:23

Re: Qalculate!
 
looks nice!

but I'm weird... how to use unit conversion in expressions? I can convert 100 Celsius to Farenheit using button, but how can I mix different temperature units in one expression? can I write something like that?

farenheit2celsius(100) + 5?

another question - is there any manual for user's functions? how can I create my personal functions?

and one suggestion - I found how switch different numbers format for expression and result, but it is not so useful - it would be more useful select them in Keypad

or even better let user collect needed control elements on Keypad...

lardman 2009-01-28 16:41

Re: Qalculate!
 
From the look of the front page here: http://qalculate.sourceforge.net/
yes you should be able to mix them. There should be some docs on that site too.

Patches welcome for any changes you fancy.

lardman 2009-01-28 16:48

Re: Qalculate!
 
Perhaps something like: 100celsius + 10fahrenheit

bluechalk 2009-01-28 17:32

Re: Qalculate!
 
Has anybody found a way to add new currencies? I'm travelling to Argentina soon and would like the Argentine Peso.

Gourmand 2009-01-28 17:49

Re: Qalculate!
 
it hangs often especially after series of errors... :(

not too useful combine different units cause extra parentheses needed

sqrt((12 in)^2 + (45 cm)^2) will give proper result but
sqrt(12 in^2 + 45 cm^2) will be calculated as sqrt(12 * (in^2) + 45 * (cm^2))


All times are GMT. The time now is 15:53.

vBulletin® Version 3.8.8