View Single Post
Old 01-29-2012, 01:22 PM   #203
ixtab
(offline)
ixtab ought to be getting tired of karma fortunes by now.ixtab ought to be getting tired of karma fortunes by now.ixtab ought to be getting tired of karma fortunes by now.ixtab ought to be getting tired of karma fortunes by now.ixtab ought to be getting tired of karma fortunes by now.ixtab ought to be getting tired of karma fortunes by now.ixtab ought to be getting tired of karma fortunes by now.ixtab ought to be getting tired of karma fortunes by now.ixtab ought to be getting tired of karma fortunes by now.ixtab ought to be getting tired of karma fortunes by now.ixtab ought to be getting tired of karma fortunes by now.
 
ixtab's Avatar
 
Posts: 2,907
Karma: 6736094
Join Date: Dec 2011
Device: K3, K4, K5, KPW, KPW2
Quote:
Originally Posted by JustAMan View Post
I don't know Perl and I'm scared by its syntax
So I may only guess what your script does. Am I right that it sorts lexicographically by "file path#property name=property value" string?

Assuming I was right deducing what your script does I reworked my checkit.py output.
Now it does:
1) sorting by folder name (e.g. com.amazon.*)
2) then by file name (e.g. BlogHomeWidget*)
3) then by property name

I also tried making the output better human-readable. Give it a try, I've just pushed it to bitbucket.
Yeah, I know, Perl is scary initially, and sometimes considered a "write-only" language.

Nevertheless, because of the incredibly powerful regular expression support, it allows to very quickly write programs to transform text input from one format to another. In this case, I simply took the output from your tool, treated every line starting with "//" as a key, and every other line as a value, put the entire thing into a hashmap, and dumped the entire hashmap sorted by keys.

"The only language that looks the same before and after RSA encryption is Perl."

If you really want to be scared and blown away at the same time, look at http://perlgolf.sourceforge.net/

Anyway, your output is fine now (though I admit I liked the previous one with only one comment line better. The new one adds too much noise IMO). Just look at the big,big green chunk in the code that I just checked in, and you'll probably get what I mean.

Quote:
Originally Posted by JustAMan View Post
Then you must be extra-cautious as you've already pointed out there's some stuff in de_DE locale that is translated, but still equal to en_US. For example some button labels which state "OK".
I know But at least I'm sure that I'm looking at everything, not just a subset (plus, I'm very familiar with the translation, because I've already seen every single entry before).
ixtab is offline   Reply With Quote