/srv/irclogs.ubuntu.com/2011/12/02/#ubuntu-website.txt

cjohnstonAny CSS guru's have any spare time? ;-)00:23
knomecjohnston, depends. if it can wait for tomorrow...01:11
cjohnstonknome: ya.. I need someone to take my code and pretty it ;-)01:11
knomeanywhere one can see it?01:12
cjohnstonI'm pushing the code up now01:12
cjohnstonhttps://code.launchpad.net/~chrisjohnston/summit/track-page01:13
cjohnstonknome: if you arent familiar with summit, you may need help setting it up so that you can work on it01:14
knomeno, i'm not01:14
knomei could work on an external site too01:14
cjohnstonknome: I'm at work tomorrow, but if you ping me when you have time, hopefully I wll be free to help you01:15
cjohnstonknome: its all templates that depend on each other01:15
knomeokay, i'll try to do that tomorrow01:15
cjohnstonI guess I could technically get it all ready, and give you raw html.. but im not sure that it would all work01:15
cjohnstonI'll probably ping Martin tomorrow also knome.. But we have other stuff that we need css help with if he gets to that first01:16
knomenothing against setting it up myself either, but i don't have a local web server up right now, so that would take some time too to set up01:16
knomemm-hmm, no problem01:16
cjohnstonknome: it will only take ~10 minutes.. we have it set up to where its like 3 lines you have to run and it will setup a virtual env for you01:17
knomemm-hmm01:17
knomebut it still needs a server to run on, or not?01:18
cjohnstonno.. it can run on your desktop/laptop just fine01:18
knomeright01:18
knomewant to guide me through the setup right now then?01:18
cjohnstonsure01:18
knomei've pulled the branch already01:18
cjohnstonwell.. you need to pull something else first..01:19
knomeright01:19
cjohnstoncreate a folder somewhere called summit...01:19
cjohnstoncd into that folder..01:19
knomedonr01:19
knome*done01:19
cjohnstonthen: bzr branch lp:summit01:19
knomedone01:19
cjohnstonwhat version of ubuntu are you running01:19
knomexubuntu 11.1001:20
cjohnstonok01:20
cjohnstonsudo apt-get install python-virtualenv01:20
cjohnstonthat might not work.. it may be:01:20
cjohnstonsudo apt-get install virtualenvwrapper01:20
knomedone01:20
cjohnstonmkvirtualenv --python=/usr/bin/python2.6 --no-site-packages summit01:21
knomecan't find the command01:22
knome(i installed both pkgs)01:23
cjohnstonwhats the error01:23
cjohnstoncant find python?01:23
knomemkvirtualenv: command not found01:23
knomethere is a command named virtualenv, is it possibly that?01:24
cjohnstoni dont think so, cause we are creating a virual env01:24
knomeit accepts both of those parameters though01:25
mhall119mkvirtualenv is a wrapper that nigelb prefers, IIRC01:25
knomeright01:26
cjohnstonya01:26
cjohnstonknome: try:01:26
cjohnstonworkon summit01:26
mhall119I use just the standard virtualenv01:26
knomeworkon: command not found01:26
cjohnstonmhall119: ?01:26
mhall119virtualenv --python=/usr/bin/python2.6 --no-site-packages summit01:26
mhall119no 'mk'01:26
knomewith that, python is not found. is 2.7 ok, or do we specifically need 2.6?01:27
cjohnstonahh01:27
mhall119oh, install python2.601:28
mhall119it'll install beside 2.701:28
mhall119then try mkvirtualenv (with 'mk') again01:28
cjohnstonmhall119: did I tell you I started conversation with IS about upgrading us to 301:28
mhall119python 3?01:28
mhall119you better not mean python 301:28
cjohnstonya01:28
cjohnstonwhat do you want to do?01:29
mhall119you know it's not backwards compatible, right?01:29
cjohnston2.6 isnt shipping with the next release01:29
cjohnstonyou dont want to upgrade to something current/01:29
knomedone the virtualenv command now01:29
cjohnstonknome: workon summit01:29
knomeworkon: command not found01:29
cjohnstonuggh01:29
knomeare you sure you told me to install all the necessary packages? :P01:30
cjohnstonyou should just need python2.6 and virtualenvwrapper01:30
knomei have those01:30
mhall119cjohnston: I'm not sure Django will run on Python 301:31
mhall119we can use 2.7 when we can no longer use 2.601:32
cjohnstoni see that now01:32
cjohnstonso we would need to upgrade to 2.701:32
cjohnstoni just wanted to avoid upgrading 2 times01:32
mhall119yeah, which hopefully won't cause much trouble01:33
mhall119should be better than the differences between 2.4 and 2.6 we had a while back01:33
knomecjohnston, maybe it's better if you just shipped me the raw html files? ;)01:33
knomecjohnston, or set up an installation somewhere where i can just see the pages01:34
knomethat would be completely okay by me :)01:34
cjohnstonmhall119: any idea why he still cant do workon01:34
mhall119is that some virtualenvwrapper thing?01:35
cjohnstondunno01:35
knomenow i can actually01:36
knomedon't know what i did but...01:37
cjohnstonlol01:37
cjohnstonso workon summit worked?01:37
knomewell, i'm apparently now in the summit env :P01:37
cjohnstoncd summit01:37
cjohnstonpip install -r requirements.txt01:37
knomedone01:39
knomethere was some errors though01:39
knomesays "compilation terminated." and stuff ;)01:40
cjohnstonknome: you will have to get nigel to help you out with setting that up then.. I'm going to get html01:40
knomelol01:40
knomei suppose the html-method is way less error-prone :D01:40
cjohnstonim trying to follow his instructions, which clearly arent working for me01:40
knomeis there something i need to do to remove the virtenv?01:40
knomeor is it just hanging around doing nothing unless i tell it to01:41
cjohnston#201:41
knomeokay01:41
knomethen i'll leave it01:41
cjohnstonknome: the links on this page wont work for you, but you should get everything you need01:43
knomemm-hmm01:43
cjohnstonim uploading itn now01:43
cjohnstonit01:43
knomesure, thanks :)01:43
cjohnstonknome: this is the example that I want it to look like... http://uds.ubuntu.com/tracks/   dont worry about the background color or link colors and such.. just the layout.. "Ubuntu Tracks" on the example is the same as "Linaro Connect Q1.12 Tracks" on the page I'm sending you01:45
cjohnstonhtml:01:45
cjohnstonhttp://ubuntuone.com/7iY5k3PMuW61jnZWqOiPof01:45
knomeso you basically just want columns?01:46
cjohnstonya01:46
cjohnstonits a table i guess01:46
cjohnstonbut heres another thing..01:46
cjohnstonthe number of tracks isn't static01:47
knomeno problem.01:47
cjohnstonthis cycle there could be 6, next cycle 12, then 9, etc01:47
cjohnstonknome: I have to go spend time with the wife.. If you get to it tonight, that's awesome, if its tomorrow, thats fine too..01:48
knome.main-content ul li { width: 25%; float: left; list-style-type: none;01:48
knome}01:48
knomethat's it01:48
knomeyou probably want to set a class for the ul01:48
knomei'll post a shot of that quickly01:49
knomehttp://imagebin.org/18656601:50
knomedon't worry about the missing bg images or so01:51
cjohnstoni hate css01:51
cjohnstonlol01:51
cjohnstonthat's rediculously easy01:51
knomehate? why? :P01:51
knomeit is01:51
cjohnstoncause i dont get along with it01:51
knomeyou might need to force a li height01:51
cjohnstonhow do i add a class for the ul01:51
knome<ul class="myclass"> in the markup01:52
cjohnstonright.. in the css01:52
knomeand .main-content ul.myclass li { in the css01:52
cjohnstonsweet01:52
knomei'm not sure how this will work with variable-height li-items01:52
knomeif it breaks horribly, just ping me ;]01:53
cjohnstonok01:53
cjohnstonty01:53
knomenp01:53
knomehave fun with wife01:53
knomei'm going to bed next to mine now :D01:53
cjohnstonty01:53
knomegood night01:53
cjohnstono/01:53
knome(4am...)01:53
cjohnstoneww01:53
knomehaha :)01:53
knomecss @ 4am <301:53
cjohnstonthe 4am part not the next to yours part01:53
knomehehe :) yeah i guessed that...01:54
knomeokie, see you later01:54
knome->01:54
cjohnstonknome: ya.. breaks bad with varable height li01:55
knomecjohnston, http://temp.knome.fi/other/li-columns-css.php10:40
nigelbknome: You wanted some help with virtualenv-wrapper?10:52
knomewell, not really "wanted" :) we sorted out the original problem already so... :)10:52
nigelbafter you install it, you need to do restart your terminal I believe.10:52
nigelboh cool10:52
knomethanks anyway :)10:52
cjohnstonknome: how would I do every 4 li's enter a new row?11:21
cjohnstonits built on the fly, its not hard coded11:21
knomewith $i++ ? :P11:22
cjohnstonI don't know what that is11:22
knomeha, i meant, take a variable and add 1 to it11:22
knomewhen you hit 5, add the class :P11:22
knomecss2 can't do that11:23
knomecss3 could11:23
cjohnstonhttp://paste.ubuntu.com/756947/ is the entire code11:24
cjohnstonI have to leave for work.. I'll be back in about 1.5 hours or so.11:24
cjohnston:-)11:24
knomei don't know python, but it is possible11:24
cjohnstonhmm11:24
cjohnstonok11:24
knomecan be done in js too11:24
knomebut i think python is better11:24
cjohnstonok11:25
cjohnstonbbl11:25
dakermhall119, nigelb cjohnston do you know why ModelMultipleChoiceField lose the order of the items ?16:32
nigelbHrm, no clue.16:33
mhall119daker: it doesn't use the model's default ordering?16:46
dakerno i want it to keep the same order http://imgur.com/hrXon, when you will submit the form django will reorder them (using pk), and i want him to keep the same order like they were inserted17:03
dakermhall119, ^17:05
mhall119daker: oh, you'd have to add some kind of ordering field to the intermediate table to do that17:14
dakershit!17:14
mhall119I'm not even 100% sure that you're guaranteed to get the same order in the POSTed form data as it exists in the <select> field17:15
dakermhall119, thanks17:39
=== Ronnie1 is now known as Ronnie

Generated by irclog2html.py 2.7 by Marius Gedminas - find it at mg.pov.lt!