aMSN Forums
February 12, 2012, 05:18:31 am *
Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length
News: New forum for aMSN !!
 
   Home   Help Search Login Register  
Pages: [1]
  Print  
Author Topic: SVN Problem with Display Pictures  (Read 5652 times)
vitorgatti
Newbie

Offline Offline

Posts: 37



View Profile
« on: January 22, 2007, 05:19:54 pm »

I've downloaded the Latest development version (SVN Snapshot of January 22 2007 02:01:18 ) and saw a crazy bug.
I can't change my display picture: aMSN ERROR
If you wanna see the code, ok (see next post)

And other SVN version (some days ago) I could enter in the Display Picture Chooser, BUT I've noticed there is no more the option to DON'T have a display picture. I don't want to have a display picture anymore Sad
Please add this option again Smiley

And a suggestion... I liked a bit the new option to see the list of the contacts display pictures, but sometimes I wanna see all of them togheter, and not separated by contact (you could add this option too).

Thanks Smiley
Logged
vitorgatti
Newbie

Offline Offline

Posts: 37



View Profile
« Reply #1 on: January 22, 2007, 05:20:24 pm »

Code:
unable to convert date-time string "26-12-2006"
    while executing
"clock scan $date1"
    (procedure "::dpbrowser::Snit_methodcompareDate" line 7)
    invoked from within
"::dpbrowser::Snit_methodcompareDate ::dpbrowser ::dpbrowser::Snit_inst2 .dpbrowser.mydps .dpbrowser.mydps 26-12-2006 06-01-2007"
    ("uplevel" body line 1)
    invoked from within
"uplevel 1 $command $args"
    invoked from within
".dpbrowser.mydps compareDate 26-12-2006 06-01-2007"
    (-compare command)
    invoked from within
"lsort -index 1 -decreasing -command "$self compareDate" [$self getDpsList [glob -nocomplain -directory [file join $HOME displaypic] *.dat] $email]"
    (procedure "::dpbrowser::Snit_methodfillWidgetForUser" line 31)
    invoked from within
"::dpbrowser::Snit_methodfillWidgetForUser ::dpbrowser ::dpbrowser::Snit_inst2 .dpbrowser.mydps .dpbrowser.mydps self"
    ("uplevel" body line 1)
    invoked from within
"uplevel 1 $command $args"
    invoked from within
"$self fillWidgetForUser $value"
    (" -user" arm line 4)
    invoked from within
"switch " $option" {
" -bgcolor" {
$hull configure -bg $value
}
" -width" {
$hull configure -width $value
}
" -height" {
$hull co..."
    (procedure "::dpbrowser::Snit_methodsetConfig" line 12)
    invoked from within
"::dpbrowser::Snit_methodsetConfig ::dpbrowser ::dpbrowser::Snit_inst2 .dpbrowser.mydps .dpbrowser.mydps -user self"
    ("uplevel" body line 1)
    invoked from within
"uplevel 1 $command"
    (procedure "::snit::RT.method.configurelist" line 25)
    invoked from within
"::snit::RT.method.configurelist ::dpbrowser ::dpbrowser::Snit_inst2 .dpbrowser.mydps .dpbrowser.mydps {-width 3 -user self -command {updateDpBrowserSe..."
    ("uplevel" body line 1)
    invoked from within
"uplevel 1 $command $args"
    invoked from within
"$self configurelist $args"
    (procedure "::dpbrowser::Snit_constructor" line 10)
    invoked from within
"::dpbrowser::Snit_constructor ::dpbrowser ::dpbrowser::Snit_inst2 .dpbrowser.mydps .dpbrowser.mydps -width 3 -user self -command {updateDpBrowserSelec..."
    ("eval" body line 1)
    invoked from within
"eval [linsert $arglist 0  ${type}::Snit_constructor $type $selfns $instance $instance]"
    (procedure "RT.ConstructInstance" line 9)
    invoked from within
"RT.ConstructInstance $type $selfns $name $args"
    (procedure "::snit::RT.widget.typemethod.create" line 53)
    invoked from within
"::snit::RT.widget.typemethod.create ::dpbrowser .dpbrowser.mydps -width 3 -user self -command {updateDpBrowserSelection .dpbrowser.mydps self} -mode s..."
    ("uplevel" body line 1)
    invoked from within
"uplevel 1 $command $args"
    invoked from within
"::dpbrowser $w.mydps -width 3 -user self -command [list updateDpBrowserSelection $w.mydps $target_user] -mode selector"
    (procedure "dpBrowser" line 81)
    invoked from within
"dpBrowser"
    invoked from within
".my_menu invoke active"
    ("uplevel" body line 1)
    invoked from within
"uplevel #0 [list $w invoke active]"
    (procedure "tk::MenuInvoke" line 50)
    invoked from within
"tk::MenuInvoke .my_menu 1"
    (command bound to event)
Logged
snipe2004
Super Power User
**
Offline Offline

Posts: 827


View Profile
« Reply #2 on: January 22, 2007, 05:24:55 pm »

Here everything's okay, I can change it...
Perhaps could you update again, I know they've been workin' hard on the new DP selector, so you perhaps had an unstable version?
For the "NoDP", it's in the default DPs, called "No Pic" (a blue buddy on a grey square)

For your suggestion... I don't find this is a good idea, what's the interest, except using lots of CPU/Mem?
Logged

Voyager 11.10
vitorgatti
Newbie

Offline Offline

Posts: 37



View Profile
« Reply #3 on: January 22, 2007, 07:02:47 pm »

I've already updated, twice... and this same problem persists :/
I could not find either this blue buddy on a grey square (when I could open the option to change my DP) o_o
Well, I am not using any special skin (it is the Default)
Damn... why only with me? >:/

Ah, even if uses a lot of CPU, it only takes a couple of seconds and I like to see aaaalll the DPs my friends used :P

PS: I am using Ubuntu 6.06.1 (Dapper Drake)
Logged
nsma
Power user
*
Offline Offline

Posts: 51


View Profile WWW
« Reply #4 on: January 23, 2007, 12:25:36 am »

mine didnt work a few svn updates ago but does now
ot i know its still early but a suggestion maybe only list contacts which have cached display pics would make the list shorter maybe
also this could work for logs too
Logged
vitorgatti
Newbie

Offline Offline

Posts: 37



View Profile
« Reply #5 on: January 23, 2007, 02:05:07 am »

LOL.
I deleted al my aMSN configuration and things started working again.
Well, I didn't want to reset my configuration >_<

And now I got the trick to how to don't use any Display Pic.
You have to click twice in any other Display Pic, so it will turn into "no display pic"!!!
But how a normal-user will know this?
I think it is easier to HAVE an option "No Display Picture"
Just my opinion

Great work tho :)
Logged
scanty
Newbie

Offline Offline

Posts: 2


View Profile
« Reply #6 on: January 23, 2007, 11:24:41 am »

I had the same error with the last SVN.
When it generates the list of stored display pictures, it tries to sort them by date. Their dates are stored in the .dat files and it seems to be an incompatibility with their formats. They are stored as day/month/year and the command clock scan used in dpbrowser.tcl requires month/day/year.
A temporary fix could be removing the sort command, until the following version of dpbrowser.tcl. I have replaced the lines of dpbrowser.tcl (it's on utils/dpbrowser folder) and it works for me. Lines 71 and 73:
Code:
set user_dps [lsort -index 1 -decreasing -command "$self compareDate" [$self getDpsList [glob -nocomplain -directory [file join $HOME displaypic] *.dat] $email]]
} else {
set user_dps [lsort -index 1 -decreasing -command "$self compareDate" [$self getDpsList [glob -nocomplain -directory [file join $HOME displaypic cache] *.dat] $email]]

replaced with:
Code:
set user_dps [$self getDpsList [glob -nocomplain -directory [file join $HOME displaypic] *.dat] $email]
} else {
set user_dps [$self getDpsList [glob -nocomplain -directory [file join $HOME displaypic cache] *.dat] $email]

Now I can change my display picture and see the cache dp's of other users.
I hope it helps you.

Great work, aMSN team!
Logged
vitorgatti
Newbie

Offline Offline

Posts: 37



View Profile
« Reply #7 on: January 23, 2007, 01:59:41 pm »

Oh...
I was thinking in a date-format problem too.
Here I use dd/mm/yyyy, different from USA.
O_o

Anyway, anybody knows where can I find the ChangeLog of SVN versions? I've searched the forums and the site, but I couldn't find :/
I would like to know what's new in each version...
Logged
snipe2004
Super Power User
**
Offline Offline

Posts: 827


View Profile
« Reply #8 on: January 23, 2007, 08:38:34 pm »

You can consult this page http://cia.navi.cx/stats/project/amsn or this one http://sourceforge.net/mailarchive/forum.php?forum_id=41292, or even use the mailing-list https://lists.sourceforge.net/lists/listinfo/amsn-devel, if I'm not wrong.
Logged

Voyager 11.10
dpcris85
Newbie

Offline Offline

Posts: 31


View Profile
« Reply #9 on: January 24, 2007, 12:08:25 pm »

Hi everybody, I'm the one who developed the parts of dpBrowser you are talking about.

Quote
You have to click twice in any other Display Pic, so it will turn into "no display pic"!!!
But how a normal-user will know this?
I think it is easier to HAVE an option "No Display Picture"

You're right... I'll try to add it ASAP.

Quote
When it generates the list of stored display pictures, it tries to sort them by date. Their dates are stored in the .dat files and it seems to be an incompatibility with their formats. They are stored as day/month/year and the command clock scan used in dpbrowser.tcl requires month/day/year.

Quote
I was thinking in a date-format problem too.
Here I use dd/mm/yyyy, different from USA.


I crawled a little through the code, and I've found the problem:
Code:
puts $fd "[clock format [clock seconds] -format %x]\n[filenoext [file tail $file]].png"

When the date is written in the descriptor file, it's formatted in the locale specific date format, so it can't be read from clock scan.
This can be easily fixed by writing the date in the mm/dd/yyyy, and eventually reformatting it when displaying it.
Anyway I can't think to a way - other than disabling date sorting, of course - to make the "localized" descriptor files working... look at this example:

01/02/2007

How should that date be interpreted? If we do not know the locale format, it could equally be February 1st or January 2nd.
Logged

HTH. HAND.
le_dragon
Newbie

Offline Offline

Posts: 12


View Profile WWW
« Reply #10 on: January 24, 2007, 04:58:33 pm »

I have the same problem. Is there an easy way to temporarly make it possible to change DP, waiting for this bug to be fixed?
Logged

scanty
Newbie

Offline Offline

Posts: 2


View Profile
« Reply #11 on: January 24, 2007, 07:33:04 pm »

Quote
This can be easily fixed by writing the date in the mm/dd/yyyy, and eventually reformatting it when displaying it.
Anyway I can't think to a way - other than disabling date sorting, of course - to make the "localized" descriptor files working...

Just giving ideas:
- There is an option in preferences/appearance to select the date format. It could be used to store and retrieve from the descriptor files.
- Retrieving the date from the date of the file creation.
Logged
kakaroto
Administrator
Super Power User
*****
Offline Offline

Posts: 9424


View Profile WWW
« Reply #12 on: January 25, 2007, 06:20:11 am »

Hi,
The latest SVN version has some new modifications by Cristofaro which should fix this issue, can you test it please? thanks.
about checking the date of the file creation, it's a good idea and I already proposed that to Cristofaro, but it would be safer to keep the date written in the file, at least.. for now.
Logged

KaKaRoTo
le_dragon
Newbie

Offline Offline

Posts: 12


View Profile WWW
« Reply #13 on: January 25, 2007, 08:50:01 am »

changing DP is ok now.
Logged

vitorgatti
Newbie

Offline Offline

Posts: 37



View Profile
« Reply #14 on: January 25, 2007, 03:28:17 pm »

Everything is ok now... thanks for the fixes :D
Logged
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.11 | SMF © 2006-2009, Simple Machines LLC Valid XHTML 1.0! Valid CSS!