yashsingh1/xdaforums huggingface dataset:
[Windows Mobile Apps and Games] strucon:
Hello everybody,

Just install the mbarvian's QVGA cab and copy the attached 3 files in your installed folder, and some problem will be solved.

***

The Mac_es’s method probably going in good direction, but is little complicated and with redesigning some file loss some quality.

******** Decimal point ********

The

calc_lcdres_p.png

for VGA is 742x80 => for QVGA need 371x40

In the line 6 from

CalculatorMain_NoImgPkg.xml

the “width”

for VGA is "43" => for QVGA need “21.5” pixel which is not possible, and Mbarvian rounded up to “22” and here is the problem, need another resizing dimension for “Width=22”

I find this:

VGA:

if "width"="43"

calc_lcdres_p.png	80 pixel x ( width="43" +10)*14 = 742 pixel

Where the “14” is the number of character from “calc_lcdres_p.png”

The “+10” I don’t know. I find when compared the 742/14=53 with the "width"="43"”

=>

QVGA:

if "width"="22"

calc_lcdres_p.png	40 pixel x ( width="22" + 5)*14 = 378 pixel

My conclusion, scaling dimensions of images and/or in XML files, and the result is with decimal point, need to recalculate back another scaling factor from the rounded result. This is hard, and not always can guess the programmers ideas.

Example In the line 6 from

CalculatorMain_NoImgPkg.xml

exist some rounded dimensions (like h="111" and tmargin="13" for VGA), but no visible errors. Maybe need to check.

******** Memory + E ********

I find the files

calc_ind_E.png

calc_ind_M.png

are not scaled from VGA to QVGA

(the "M" is only one line in the mbarvian's cab)

These 3 files I put in attachment, but better to be remake by Mbarvian and fixing the cab files,

I’m not a master editing pictures specially my “M” is little fuzzy, and this is nice mbarvian’s work.

Thank you mbarvian!

***************************

Another thing, this is “dual calculator”?

Make some calculation in portrait mode,

switch in landscape mode and make another calculation,

if you switch back in portrait mode, you can continue the first calculation.

***************************

Another thing, I don’t know if possible to fix,

Exist “copy” option without “paste”?!

Very nice hTc! Tthe “about” is always in the front.

+++++++++++++++++++++

One question:

Somebody can skinning the “display numbers” to one bold font (like tahoma; arial etc)?

I don’t like the retro digital numbers ….

Maybe with green “display” background? :)

---------------------------------------

-Sorry for my English-
[Windows Mobile Apps and Games] strucon:
Nice attachments ….

Now in zip file.
[Windows Mobile Apps and Games] sergiorus:
Copied three files to windows dir, decimal in landscape appears, but so small and unclear... my eyes :(
[Windows Mobile Apps and Games] strucon:
I attached what I see with my eye (captured QVGA) on my device.

O f curse, the VGA is more clear than QVGA, I thing exist some explication.

In other way, my resizing method not perfect, so is better to wait the mbarvian version.
[Windows Mobile Apps and Games] whoodie:
Victory! You guys are awesome, works perfectly for me. Thanks!
[Windows Mobile Apps and Games] strucon:
Another thing for mbarvian:

Because the calc_lcdres_p.png not scaled with ½

(scaled with 378/742=0.50943396226415094339622641509434)

Also the backgrounds

(calc_lcdbg_l.bmp; calc_lcdbg_p.bmp ?)

need to scale with this factor and after this to crop back to 0.5 dimension.

Because the numbers from the background are shifted to left (specially the first from the left)
[Windows Mobile Apps and Games] claus1953:
The decimal point fix worked very well...thanks
[Windows Mobile Apps and Games] sergiorus:
I wrote about landscape mode, in portrait of course working fine

BTW thanks, great job!
[Windows Mobile Apps and Games] strucon:
I updated the zip file with (draft) backgrounds. Less shifting.

Just unzip this files in your installed folder.

(If the background shifted, also the decimal point is unclear ;)
[Windows Mobile Apps and Games] mac_es:
Great work!
[Windows Mobile Apps and Games] aznmasterpiece:
Got it working.
[Windows Mobile Apps and Games] ancola66:
Just edit the file calc_lcdres_p.png is correct error is decimal :)

You can download the file attached to the copy of Windows is OK
[Windows Mobile Apps and Games] strucon:
Look good, but

yours file why is 374x40 and not 378x40 like my file?

Which the reason?
[Windows Mobile Apps and Games] sergiorus:
ancola66

yeah, good, now decimal point is both in landscape and portrait!! :)

But some problems still is. Try do delete 1 to 9 or 1 to 3. Do you have shift?
[Windows Mobile Apps and Games] strucon:
Another update:

- the decimal point also for numbers starting with point (ex “.23456789012345”)

- formula bar font size smaller

- Vizible/Bigger/Moved M and E

Just

- install "

MBarvian_HTC_Calculator_QVGA_Main.cab

" to

DEVICE

- be sure

the HTC Calculator NOT RUNNING

-

copy

this files

hTcCALCULATORupdate.zip/Windows/*.*

to DEVICE

, in the

windows folder

* remaking the digital numbers smaller , possiple the M/E in original position in portrate, maybe in landscape

** because edited the XML file, work only with the "

QVGA_MAIN

" version!

*** First I will update to smaller digital numbers, after this I will make for the other versions of QVGA (If no new release by mbarvian)
[Windows Mobile Apps and Games] voxid:
On my Touch Cruise the xml-file doesnt work, i get a blank screen. when ei replace the xml with the original its ok again, but the landscape doesnt work right (decimal point).

also the font size in landscape of the upper numbers is to big. how to get them smaller?

greets

voxid
[Windows Mobile Apps and Games] strucon:
Sorry I think this is my mistake.

I update my post. Check above.

I think you use "MBarvian_HTC_Calculator_QVGA_Storage.cab", and don't work with this, work only with "MBarvian_HTC_Calculator_QVGA_Main.cab".

If no this problem, let me know.
[Windows Mobile Apps and Games] strucon:
If you mean the formula bar font size, this is in XML files:

<FM>

<background name="mainview" id ="">

</background>

<static name="LCD" id ="10027">

<port x="0" y="0" w="240" h="56" align="graph" bgImg="\windows\calc_lcdbg_p.bmp" resImg="\windows\calc_lcdres_p.png" textmapping="0123456789-.ee" rmargin="38" tmargin="7" transclr="16711935" width="22"/>

<land x="0" y="0" w="288" h="27" align="right" bgImg="\windows\calc_formulabg.bmp" fttype="HelveticaNeue LT 35 Thin"

ftsz="18"

ftw="600" ftclr="16777215"/>

</static>

I put

ftsz="18"

else of

"36"

, the 36 for VGA
[Windows Mobile Apps and Games] voxid:
thanks, this works...

and what about the dezimalpoint in landscape?... is there a solution?
[Windows Mobile Apps and Games] strucon:
I don't understand what is the problem with the decimal point in the landscape, if you installed correctly (I write this in my post #112 - http://xdaforums.com/showpost.php?p=3392512&postcount=112)
[Windows Mobile Apps and Games] johaness alf:
@mbarvian - thanks a lot for your app!

@strucon - thanks for patches!

Now it is great and it is working on my HTC Kaiser in both mode.
[Windows Mobile Apps and Games] ed33:
% dosnt work

Hi

When you try and plus or minus using % it dosnt work , gives the wrong answer, just ignores that you have used %

Can anyone else confirm this?
[Windows Mobile Apps and Games] whoodie:
The % symbol moves the decimal forward 2 places, which is the exact definition of percentage. 2 decimal places is a hundredth (1/100, or per-cent, cent = 100, per = 1/x)

If you enter in 100-60%, you will have the result of 99.4, which is correct. 60% is .6.
[Windows Mobile Apps and Games] ed33:
Dosnt seem right to me,every other calculator i have used has always worked without having to add decimel points. Makes it hard work to do simple % sums.

Thanks for your help anyway.
[Windows Mobile Apps and Games] whoodie:
I don't know what calculator you have used but technically, 100+60% is not a correct mathematical equation, i.e. 60% of what? All of my engineering calculators (HP-35S, Ti-89, HP-50g) output 60%=.6
[Windows Mobile Apps and Games] strucon:
I think you want to work like the standard calculator from Windows (XP):

Typing 100-60% to result 40

In HTC Calculator with formula bar

Typing 100-60% => 100-60*0.01= 99.4

Both is correct

, because is two different operation

**** In standard calculator, no possibility for formulas, so the calculator always uses the precedent result ( number). Work backward.

100 – (60% of precedent number:100 – can’t be other because no possibility for formula)=40

**** In HTC Calculator need to specify for what 60%.

If you don’t specify will used the definition: 1% = 1/100=0.01 => 60%=60/100=0.6 => 100-60%=94.6

For same result need: 100-60%*100

With scientific calculator you need to be more specific!

++++ Just for info,

if you type in MS excel “=100-60%” the result is 9940.0% changing to number format from percentage: 99.4!

---------- Depending of usage, is better to use the SPB calculator with diamond skin

Maybe not very clear my explication, my English not very good …. Sorry ….
[Windows Mobile Apps and Games] Nixeus:
Hello,

Is not a way to modify this calcul ?Whith an HexEditor ?

Thanks,

regards,

Nixeus
[Windows Mobile Apps and Games] Lifear:
German Language

for german roms
[Windows Mobile Apps and Games] teacher1960:
works great on my htc athena x7510

Many thanx to developer and helpers
[Windows Mobile Apps and Games] shingyeah:
Internal storage seems not working for omnia because the internal storage is called "My Storage" instead:

Internal Storage\Program Files\HTC Calculator

My Storage\Program Files\HTC Calculator

FYI
[Windows Mobile Apps and Games] sudist:
For french users only :

Les fichiers .png sont copier vers : \Carte Mini SD\Program Files\HTC Calculator

French HTC Calculator QVGA Carte Mini SD
[Windows Mobile Apps and Games] mbarvian:
new versions uploaded!

Fixed decimal not displaying in wQVGA and QVGA versions (all credit goes to strucon and ancola66). Made new install location: My Storage, for devices like Omnia. Also, uploaded German language pack (all credit goes to bilbo_b) and Russian language pack (all credit goes to Alexx~)

enjoy :), and please report any bugs you may encounter!
[Windows Mobile Apps and Games] randomelements:
Is the digit alignment issue sorted as well?

In a word, YES! :)

Many thanks.
[Windows Mobile Apps and Games] mbarvian:
italian language pack added :)
[Windows Mobile Apps and Games] mbarvian:
more language packs added :)

Sensor SDK added, look at notes section.

All .bmp images replaced with .png images, to save on file size (3.6 MB > 1.7 MB)

coming up:

320x320 resolution support for devices like i780 :)

enjoy
[Windows Mobile Apps and Games] 1nsane:
The Omnia MyStorage version doesn't display any graphics at all, everything is like artifacts.
[Windows Mobile Apps and Games] izzyzc:
I tried the Storage Card version on my Jade... Unfortunately, I get a blank screen... Nothing appears... Dunno why that is so...

Please advise... Thanks!
[Windows Mobile Apps and Games] yearn:
Awesome work man! its running perfectly on my Alltel Vogue, no bugs whatsoever!!
[Windows Mobile Apps and Games] claus1953:
Works perfectly also on my HTC Touch Elfin
[Windows Mobile Apps and Games] FatBoyExtraordinaire:
Sounds good, gotta give it a try.
[Windows Mobile Apps and Games] tomygunner:
Great software, but it doesn't work on my ELF. All what i get is a black screen. I had installed it on my storage card. :confused:
[Windows Mobile Apps and Games] yulen:
it was working earlier on my jade in storage card when the decimal was not fixed. after the fix, all it displays is a black screen. so somehow the decimal fix must've something to do with it.
[Windows Mobile Apps and Games] tomygunner:
So the other version is working. I installed the Main Storage version and everything works.
[Windows Mobile Apps and Games] mbarvian:
whoops. terribly sorry about that one guys. QVGA Storage Card and wQVGA My Storage versions should be working now. Please download them again and re-install :)

thanks
[Windows Mobile Apps and Games] 1nsane:
Now it works ok. Thanks!
[Windows Mobile Apps and Games] strucon:
Max 350KB on storage card!

Hello,

In my opinion, is better to use only the “main” version.

You don’t win to much space using the storage space, you can move only 350KB (0.2 MB) on storage card.

I use one JPG version which is with 233KB of images.

This is with minimal compression to be the max quality.

Probable, is possible to compress more, to be 150-200KB without losing in quality.

Check my table:
[Windows Mobile Apps and Games] mbarvian:
good find, yet I prefer not to use jpg compression. In fact, I tend to stay away from jpeg altogether, although in this case it might work out :) You do lose quality when using jpeg though, for an example check the attached images and zoom in on them.
[Windows Mobile Apps and Games] :
whilst this it true...you could use something like pngcrush to compress the pngs as some programs do not use optimal compression...I was able to cut down the size of your images but 100Kb. If you want I can upload the package or you can use pngcrush yourself
[Windows Mobile Apps and Games] mbarvian:
that was exactly what i was going to post as my next version :)
[Windows Mobile Apps and Games] strucon:
Questions...

FIRST!

My experience in bitmap pictures is minimal, the next is more question.

I attached my JPG version, you can check the quality.

(Copy all in main memory)

(BMP - 1300 KB / PNG - 887 KB / JPG - 770 KB)

Generally I agree, with JPG need to be more careful, not in all case have good result. I agree the PNG is safer.

The quality depending of picture complexity (variation) / the number of unique colors / compression factor.

Usable if not need alpha blending.

And no big difference between JPG and PNG file dimensions.

1. Question:

Why your PNG much bigger:

Mbarvian

calc_Cpng.png

7,038 bytes

> !?

StruCon

calc_Cpng.png StruCon.png

4,372 bytes

calc_Cpng.png StruCon.png.jpg

4,632 bytes

2. Your JPG example is little exaggerate, see in my attached file (JPGPNG Examples.zip) the

calc_Cpng.png StruCon.png.jpg

Not look like your JPG!

PS: I use on little old soft: “Paint Shop Pro” Version 6.0 I think from 1999 :) (No compression option in PNG save)
[Windows Mobile Apps and Games] strucon:
best compressed file type?

Another (General) question:

Which is the best compressed file type?

(Not for this HTC calculator, for general usage)

I use the TIFF, with

LZW Compression

RGB Color channels

Is OK?

Exist something else with better quality and/or compression?

Thanks,
[Windows Mobile Apps and Games] mbarvian:
depends on the image. I know, coming from a web design perspective, that png is a combination of jpg and gif, offering good quality and transparency. However:

oh, and for my example I converted the calc_AC.bmp from the Rhodium (WVGA, largest file) to demonstrate the difference between the two, making mine much bigger than yours ;)
[Windows Mobile Apps and Games] strucon:
I ask for personal photo album, some very old family pictures, some colors, some black and white. The JPG is not solution! Very poor quality.

I used YOUR FILE! Open your PNG files and save! The file have half dimension. So not importand how big the image, or QWGA or WVGA!
[Windows Mobile Apps and Games] mbarvian:
hmm, that's odd

I guess I don't quite understand. What did you do with the attachment?
[Windows Mobile Apps and Games] strucon:
Oooh my English ….

I just

open

jour PNG file and

save

.

Nothing else!

In attachment I put one another example, the

calc_MC_dn.png

From yours latest HTC Calculator!

I opened in PSP and making one save:

Your file has 5,463 bytes

My file has 4,175 bytes

You can send to me any PNG file, and I will send to you back smaller!

+++++++++++++++++++++

I open and save your png files from the HTC Calculator:

Your files: 432 KB

My files: 353 KB (-18.3 %)

(are in attachment)

Try another software, maybe you can make smaller files.

++++++++++++++++++++++

In the beginning the “Paint Shop Pro” was by JASK SOFTWARE,

Later, the Jask Company was acquisitioned by Corel ….

Try it for FREE:

http://www.corel.com/servlet/Satellite/us/en/Product/1184951547051#versionTabview=tab1&tabview=tab0

Save your PNG files in this program, and all will be smaller!
[Windows Mobile Apps and Games] strucon:
GIMP

Try also this:

"GIMP

is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License"

http://www.gimp.org/

Yours calc_MC_dn.png 5.33 KB

With GIMP: 3.95 KB (Compression level 9) -26% !!!!

With GIMP: 7.94 KB (Compression level 0)
[Windows Mobile Apps and Games] FatBoyExtraordinaire:
Thanks for the fix. Gonna try it out now.
[Windows Mobile Apps and Games] lamdami:
Thank you!!!
[Windows Mobile Apps and Games] mbarvian:
all new .cabs uploaded!

crushed all .png files with PNGCrush, trimming file size down nicely without noticeable loss of quality :)

uninstall previous versions and install new version of your choice.

please report any bugs you may find :)
[Windows Mobile Apps and Games] stylez:
mbarvian,

Sweeeet thankyou all working fine with the . :cool:

stylez
[Windows Mobile Apps and Games] CRACING:
Yes, I'm using the same tool to compress the pngs. Its a wonderfull tool :D

Thanks and regards
[Windows Mobile Apps and Games] izzyzc:
It's working great now on my Jade!

Thanks for this!
[Windows Mobile Apps and Games] shingyeah:
Thanks for adding Omnia version bro
[Windows Mobile Apps and Games] nhatt:
Tested on some devices/QVGA,working fine for me.

Thanks to mbarvian.
[Windows Mobile Apps and Games] shingyeah:
Still cannot install on Omnia,

the HTCcalculator.exe is not in \windows\

I do not know the reason for this problem.... system protection?
[Windows Mobile Apps and Games] shingyeah:
I found that the HTCCalculator.exe is actually in Windows, but there is no response when trying to launch...
[Windows Mobile Apps and Games] hi-tech:
+1. Was so used to this with the old HTC calc.
[Windows Mobile Apps and Games] hi-tech:
Nice explanation!
[Windows Mobile Apps and Games] mbarvian:
which version are you using specifically?
[Windows Mobile Apps and Games] shingyeah:
I use My Storage version on Omnia

now will try the main memory version~:)
[Windows Mobile Apps and Games] shingyeah:
Still no luck for main memory...

Still no response on launching
[Windows Mobile Apps and Games] alvy:
landscape

Does anybody know how to load calculator ONLY in landscape mode (may be some hex editing required or smth else)
[Windows Mobile Apps and Games] leary:
I love gimp. i've used it for years, and i firmly believe that it is the reason photoshop puts out upgrades. ;)

As for the calculator, works perfectly on my titan. thanks to everyone for their work on this
[Windows Mobile Apps and Games] chihang:
thank you very much, but i'm sad that it failed on my Trinity. It said canont be opened, maybe untrusted or some componets canont be fond......:-(
[Windows Mobile Apps and Games] mbarvian:
I don't like the multiple windows, so I use GIMPshop :)

which version did you try?
[Windows Mobile Apps and Games] lim1279:
I installed CE-Star (V2.8R3C) on PdaCornerUltimate Rom V21 Full, V21 Lite and Garmin's V10 Lite, and if I set the Regional Settings to Chinese, the MBarvian's Calculator just stop working (no respond) either clicking the icon button or click the HTCcalculator.exe file, and 1-Cal V3.27 cannot be installed if the calculator is in the system. If I set the Regional Settings to English, the calculator is working again.

Please help.
[Windows Mobile Apps and Games] tbaker077:
download is not working.
[Windows Mobile Apps and Games] jmmymak:
Thanks! It works perfectly on my Sprint Diamond. I had tried to download another calculator that didn't work, and when I removed it my stock calculator wouldn't work at all. Now it works again, and it looks great!
[Windows Mobile Apps and Games] mbarvian:
updated!

removed .0409.mui from .cabs, removed other install location .cabs (no need ;)), and updated .ico

enjoy
[Windows Mobile Apps and Games] Redtabs:
Great work pale.Many thanks! :D
[Windows Mobile Apps and Games] atzaus:
mbarvian, I found a way to further compress the images and since I don't have the originals I cannot do it myself. Here are the results I had with Manila2D pngs. Can you post the original PNGs and I will do it for you

PC = Pngcrush with removing all chunks ( -rem gAMA -rem cHRM -rem iCCP -rem sRGB -rem tIME -rem zTXt -rem tEXt -rem iTXt -l 9 -brute )
PO = Pngopt i.e. Pnggauntlet with Xtreme setting

Results in bytes
Original 2,659,319
PO 1,599,974
PC 1,641,841
PC+PO 1,562,800
PO+PC 1,585,759
PO+PC+PO 1,583,248
[Windows Mobile Apps and Games] mbarvian:
will this work?

thanks a lot for the suggestion ;)
[Windows Mobile Apps and Games] atzaus:
first use pngcrush then follow it up with pnggauntlet for best compression :)
[8525, TyTN, MDA Vario II, JasJam General] lizzard72550:
Hi everyone i need abit of help.

iv recently got a HTC TYTN from a friend but it has no network, the phone operates well and i can play mp3's and videos(everything works fine). But there is no network when i search for one it gives me all the networks i need but does not register itself on the network according to the sim im using. The only time it gets a network if i turn off and on flight mode then i will search for network, but this hardly works iv had the phone for a month and i only got a network twice, but if turn off the phone and back on again i have to go through the same flight on and off procedure to get a network.

Please help.
[8525, TyTN, MDA Vario II, JasJam General] scousemartin:
either the phone is blocked by the IMEI number or you need to upgrade the radio rom

look on the wiki there are links there for radio roms

If the imei is blocked then you are screwed as nothing will unblock it except the network provider that blocked it originally
[8525, TyTN, MDA Vario II, JasJam General] lizzard72550:
:(thanks man. Will try how do i check my bootloader version and radio bootloader.
[8525, TyTN, MDA Vario II, JasJam General] scousemartin:
i wouldnt worry about the bootloader version click start > settings > system > device info and it will tell you the radio version there. are you sure that the device worked ok on the sim provider you are using. What i mean is ,is the hermes unlocked to any network ,have you tried a sim from another provider?
[8525, TyTN, MDA Vario II, JasJam General] lizzard72550:
when swithed it on it does not ask unlock codes or nething. it goes through but no network. im in south africa and we only have 3 service providers MTN,VODACOM and CELL C.

CELL C works only if i turn off and on flight mode, i got it right once. I tried the other sevice providers and nothing works.
[8525, TyTN, MDA Vario II, JasJam General] lizzard72550:
radio version is 1.18.00.10

But for this radio rom thing to work dont i need RadioBootloader version 107 or less
[8525, TyTN, MDA Vario II, JasJam General] scousemartin:
so if you put another providers sim in the phone do you get this sign ! where the ariel strength should be? if so it may not be sim unlocked. But that will show even if it has been blocked. Was your friend on a contract and then stopped paying it so he gave you the phone or did you buy it from him
[8525, TyTN, MDA Vario II, JasJam General] lizzard72550:
Yip i do get this sign !. im not sure where he got the phone from. i never bought it from him.
[8525, TyTN, MDA Vario II, JasJam General] scousemartin:
if you havent done so already install HARDSPL you can find the link here and the instructions how to do it as well

http://wiki.xda-developers.com/index.php?pagename=Hermes_HardSPL
[8525, TyTN, MDA Vario II, JasJam General] lizzard72550:
thanks buddy gonna try it out.
[8525, TyTN, MDA Vario II, JasJam General] scousemartin:
once you have installed hardspl install this which will cid and sim unlock so you can flash any rom to the device and use any sim

ftp://xda:xda@ftp.xda-developers.com/Hermes/Tools_and_Programs/HTC_Hermes_SIM_CID_Unlock_v3a.zip

I have a feeling though that your phone is blocked though mate, if it accepts one sim but not the others but worth a try anyway
[8525, TyTN, MDA Vario II, JasJam General] vincentzhu:
You can download a new vision of your PPC's radio driver,I tihnk 1.47.30.10 is the best