Mercurial > pidgin
view gaim.desktop @ 12360:3153661f4d5c
[gaim-migrate @ 14664]
Faceprint is concerned about 2 things:
1)some of the random colors are very close together.
as best we can tell, there are two ways to fix this
1a) for each proposed color, iterate the entire list of selected
colors, looking to ensure that it is not too close to any of them.
this is an O(n^2) operation, with n >= 220 (the current number of
colors we look for)
1b) iterate the entire set of possible colors, skipping ahead by some
guess (rather than iterating by 1). this is an O(n^3) operation,
where n is 65535/(whatever we skip ahead by). This is not only a
more expensive operation, but because of the nature of the color
list, it is not _necessarily_ going to yield more predictable
results, skipping ahead 5 (or any other number) does not necessarily
guarantee that you've skipped 5 very similar colors.
2) as you can see, either solution to #1 is potentially a resource hog.
#1a is a random delay, #1b is inherently expensive. How often #1a will
exceed the bound #1b, if ever, is unknown.
rather than doing either of these, we settled on a middle course: a .h
file has been created containing a set of colors. currently the set we
were previously hard coded to. Gaim will search that list for usable
colors and start randomly looking only if that list does not contain
sufficient usable colors. ideally this list would be generated to have
colors that are known to be a "safe" distance appart, that is colors that
you can tell appart. and Ideally it would have a (small) multiple of the
number of colors we are searching for. This should ensure that IF we go
to randomly searching, we need do so only for a few colors.
Right now I have no good way to generate a "safe" list of colors though.
committer: Tailor Script <tailor@pidgin.im>
author | Luke Schierer <lschiere@pidgin.im> |
---|---|
date | Mon, 05 Dec 2005 21:46:47 +0000 |
parents | 391acec18e46 |
children | 5adc0c9da9f3 |
line wrap: on
line source
[Desktop Entry] Encoding=UTF-8 Categories=Application;Network; Exec=gaim Icon=gaim.png StartupNotify=true Terminal=false Type=Application Name=Gaim Internet Messenger Name[ca]=Missatger d'Internet Gaim Name[cs]=Gaim Internet Messenger Name[da]=Gaim - internet beskeder Name[de]=Gaim Internet Messenger Name[es]=Gaim - cliente de mensajería de Internet Name[fr]=Gaim Messagerie Internet Name[hu]=Gaim azonnali üzenetküldő Name[it]=Gaim Internet Messenger Name[ja]=Gaim インターネット・メッセンジャー Name[ko]=게임 메신저 Name[nb]=Gaim lynmeldingsklient Name[nl]=Gaim - Expresberichten Name[pl]=Komunikator Internetowy Gaim Name[pt_BR]=Mensageiro via Internet Gaim Name[pt]=Mensageiro Internet Gaim Name[ro]=Mesagerul Gaim Name[ru]=Gaim - клиент обмена мгновенными сообщениями Name[sl]=Gaim - spletni sel Name[sq]=Lajmësjellësi Internet Gaim Name[sv]=Gaim Internet Messenger Name[zh_CN]=Gaim 互联网通讯程序 Name[zh_TW]=Gaim 網路即時通 GenericName=Internet Messenger GenericName[ca]=Missatger d'Internet GenericName[cs]=Internet Messenger GenericName[da]=Internet beskeder GenericName[de]=Internet Messenger GenericName[es]=Cliente de mensajería de Internet GenericName[fr]=Messagerie internet GenericName[hu]=Azonnali üzenetküldő GenericName[it]=Internet Messenger GenericName[ja]=インターネット・メッセンジャー GenericName[ko]=메신저 GenericName[nb]=Lynmeldingsklient GenericName[nl]=Expresberichten GenericName[pl]=Komunikator Internetowy GenericName[pt_BR]=Mensageiro via Internet GenericName[pt]=Mensageiro Internet GenericName[ro]=Client de mesagerie GenericName[ru]=Клиент обмена мгновенными сообщениями GenericName[sl]=Spletni sel GenericName[sq]=Lajmësjellës Internet GenericName[sv]=Meddelandeklient GenericName[zh_CN]=互联网通讯程序 GenericName[zh_TW]=網路即時通 Comment=Send instant messages over multiple protocols Comment[ca]=Envieu missatges instantanis en múltiples protocols Comment[cs]=Posílat instant message různými protokoly Comment[da]=Send beskeder over flere protokoller Comment[de]=Multi-Protokoll Instant Messenger Client Comment[es]=Cliente de mensajería instantánea multiprotocolo Comment[fr]=Envoie des messages instantanés en utilisant divers protocoles Comment[hu]=Azonnali üzenetküldés többféle protokoll használatával Comment[it]=Client multiprotocollo per messaggi immediati Comment[ja]=複数のプロトコルを介してインスタント・メッセージを送信します Comment[ko]=다중 프로토콜 메신저 Comment[nb]=Send lynmeldinger over flere protokoller Comment[nl]=Multi-protocol programma voor expresberichten Comment[pl]=Komunikator internetowy obsługujący kilka protokołów Comment[pt_BR]=Mande mensagens instantâneas por múltiplos protocolos Comment[pt]=Envie mensagens instantâneas sobre vários protocolos Comment[ro]=Trimiteţi mesaje instant în orice reţea Comment[ru]=Обмен мгновенными сообщениями с использованием множества протоколов Comment[sl]=Pošiljajte neposredna sporočila prek različnih protokolovs Comment[sq]=Dërgoni mesazhe të atypëratyshëm protokollesh të ndryshëm Comment[sv]=Sänder snabbmeddelande över många protokoll Comment[zh_CN]=通过多种协议发送即时消息 Comment[zh_TW]=透過多種通訊協定發送即時訊息