« Previous day | Index | Today | Next day » Channels | Search | Join
All times shown according to UTC.
Time | Nick | Message |
---|---|---|
01:14 | m_anish is now known as m_anish_afk | |
01:17 | dfarning is now known as dfarning_afk | |
01:50 | keheliya has quit IRC | |
02:58 | alsroot_away is now known as alsroot | |
03:28 | m_anish_afk is now known as m_anish | |
05:06 | FGrose <FGrose!~webchatjita.sugarlabs.org> has joined #sugar-newbies | |
05:12 | FGrose | Looking for advice on how to make the squashfs_compression_type(), http://fpaste.org/48wp/, robust for new introduction to the Fedora livecd-tools build system. |
05:24 | alsroot | FGrose: you mean from python coding pov? or how to make output parsing more robust |
05:26 | FGrose | both would be welcome |
05:32 | alsroot | FGrose: for coding style, you can run pylint/pep8.py (in that case I'm using http://wiki.sugarlabs.org/go/P[…]m_Team/Sugar_Lint, which call pylint w/ the options usual for sugar code, and for most regular coding as well, I guess) |
05:33 | for parsing, in my mind, it might be more obvious (and robust) ot use sumething like "[i.split()[-1] for i in out.split('\n') if i.startswith('Compression')]" | |
05:34 | [i.split()[-1] for i in out.split('\n') if i.strip().startswith('Compression')] | |
05:37 | FGrose | Ok, I considered the split(), but worried about "Compression" possibly appearing elsewhere in the output (perhaps in a badly named path). I agree split() is more obvious. |
05:40 | alsroot | FGrose: if "Compression" can appear only w/ compresion type (ie having len(i.split()) == 2), you can use this fact. anyway such stuff is undetermined if cli tool does not provide special output for parsers... |
05:44 | and of course re might be used for parsing | |
05:45 | FGrose | Here is an example of the output from unsquashfs -s, http://fpaste.org/OGWs/ |
05:46 | alsroot | FGrose: in my mind, keeping assumption that the line w/ compression info start w/ "^Compression" should be enough, and there is even no need in re. |
05:48 | FGrose | alsroot: re? |
05:48 | alsroot | FGrose: regexps, http://docs.python.org/library/re.html |
05:49 | FGrose | OK, thank you for the review! |
05:49 | alsroot | np |
05:52 | FGrose: hmm, actually the forst work might be Compression..., so the check might be not startswith() but [0] for split line | |
05:52 | *first word | |
06:24 | PetrosPolonos <PetrosPolonos!~petrosdpg217.neoplus.adsl.tpnet.pl> has joined #sugar-newbies | |
06:28 | FGrose has left #sugar-newbies | |
06:41 | PetrosPolonos has left #sugar-newbies | |
11:19 | m_anish is now known as m_anish_afk | |
11:45 | dfarning_afk is now known as dfarning | |
13:22 | alsroot has quit IRC | |
13:26 | alsroot <alsroot!~alsroot94.137.229.183> has joined #sugar-newbies | |
13:26 | alsroot has quit IRC | |
13:26 | alsroot <alsroot!~alsrootpdpc/supporter/active/antilopa-gnu> has joined #sugar-newbies | |
13:28 | satellit_afk is now known as satellit_ | |
13:35 | satellit_ | alsroot: when I use Trisquel 4.5 or 4.0 Gnome menu item programming/squeak or education/squeak get pop up with message "There are several squeak images" select one from the list below. Choose one (with none listed). Is this what you described on IRC for 0 sugar sweet placing files in different places? |
13:38 | alsroot | satellit_: nope, it is different case. looks like there are several squeak images and squeak binary doesn't know what to choose.. |
13:39 | satellit_ | conflict with sugar install? |
13:40 | Trisquel bug? | |
13:40 | alsroot | satellit_: should not, squeak from gnome menu is installed from non-sweets packages and should not know about sweets-etoys |
13:40 | satellit_ | ok |
13:40 | alsroot | satellit_: it doesn't look like a bug anyway, just squeak feature.. |
13:56 | dfarning is now known as dfarning_afk | |
13:58 | m_anish_afk is now known as m_anish | |
14:35 | PetrosPolonos <PetrosPolonos!~petrosdpg217.neoplus.adsl.tpnet.pl> has joined #sugar-newbies | |
14:37 | PetrosPolonos has left #sugar-newbies | |
16:48 | dfarning_afk is now known as dfarning | |
16:51 | satellit_ is now known as satellit_afk | |
17:52 | PetrosPolonos <PetrosPolonos!~petrosdpq139.neoplus.adsl.tpnet.pl> has joined #sugar-newbies | |
18:06 | PetrosPolonos has left #sugar-newbies | |
18:12 | PetrosPolonos <PetrosPolonos!~petrosabbr193.neoplus.adsl.tpnet.pl> has joined #sugar-newbies | |
18:37 | PetrosPolonos has left #sugar-newbies | |
18:56 | dfarning is now known as dfarning_afk | |
19:14 | dfarning_afk is now known as dfarning | |
19:15 | dfarning is now known as dfarning_afk | |
21:28 | dfarning_afk is now known as dfarning | |
21:46 | m_anish is now known as m_anish_afk | |
21:53 | dfarning is now known as dfarning_afk | |
21:56 | satellit_afk is now known as satellit_ | |
22:39 | dfarning_afk is now known as dfarning | |
22:44 | dfarning is now known as dfarning_afk | |
23:08 | dfarning_afk is now known as dfarning | |
23:10 | dfarning is now known as dfarning_afk | |
23:27 | satellit_ | alsroot: 02/07/2011 3:25 PM PST (12) updates Update Manager Tris 4.0 Update Manager |
23:27 | sweets-browse-119; calculate-35, chat-70, imageviewer-17, jukebox-20, log-24, pippy, read, squeak, terminal-31, turtleart-106, write-72. | |
23:28 | alsroot | satellit_: thats the fix w/ locales |
23:28 | satellit_ | ok FYI |
« Previous day | Index | Today | Next day » Channels | Search | Join