File size: 2,576 Bytes
4aa5fce
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
[01:59] <harlowja> smoser alright, taking another stab @ https://code.launchpad.net/~harlowja/cloud-init/py2-3 (WIP)
=== harlowja is now known as harlowja_away
=== harlowja_away is now known as harlowja
=== harlowja is now known as harlowja_away
=== harlowja_away is now known as harlowja
=== praneshp_ is now known as praneshp
=== samkottler is now known as Guest30297
=== harlowja is now known as harlowja_away
=== Guest30297 is now known as samkottler
=== evilissimo|afk is now known as evilissimo
=== evilissimo is now known as evilissimo|afk
=== evilissimo|afk is now known as evilissimo
=== evilissimo is now known as evilissimo|afk
[13:24] <smoser> harlowja_away, whoohoo
=== zz_gondoi is now known as gondoi
=== evilissimo|afk is now known as evilissimo
=== gondoi is now known as zz_gondoi
=== zz_gondoi is now known as gondoi
[15:36] <CatKiller> smoser: I'm nearly done integrating the resize operation. I've wasted most of the time finding a way to compute the size delta thinking that only "+size" operations were supported by qemu-img, not realizing you could simply specify the size by itself...
[15:36] <smoser> :)
[15:38] <CatKiller> smoser: And to do that in bash was really hard :P Since bash doesn't handle floats etc. Well anyways I'll keep this one in my archive as it's full of handy snippets
[15:38] <CatKiller> smoser: The much much simpler version will come soon
[15:40] <smoser> floating point is possible in bash, but can be tricky
[15:40] <smoser> http://smoser.brickies.net/git/?p=snippits.git;a=blob;f=sh/fpdiv;h=7336f6c3b981082b7f8a39e73c0047f10193f303;hb=HEAD
[15:40] <smoser> (if its not obvious, that is floating point division in bash)
[15:41] <smoser> er... actually in posix sh
=== evilissimo is now known as evilissimo|afk
=== gondoi is now known as zz_gondoi
=== zz_gondoi is now known as gondoi
[17:04] <CatKiller> smoser: Nice, good module actually to keep
=== harlowja_away is now known as harlowja
=== harlowja is now known as harlowja_away
=== harlowja_away is now known as harlowja
[21:42] <harlowja> smoser will do some tests on that, but the basic approach is to start nailing the crap that is changed in 3.x with six usage
[21:42] <harlowja> just gotta hit all the cases (which is hard, ha)
=== gondoi is now known as zz_gondoi
[22:47] <harlowja> smoser https://code.launchpad.net/~harlowja/cloud-init/py2-3/+merge/225240 ; hopefully helps get this going
[22:47] <harlowja> the basics at least, doesn't fully work on py3 i think, but a step
[22:47] <harlowja> at least imports all fine under 3.4 (unless i missed a few modules)