[00:23] Any CSS guru's have any spare time? ;-) [01:11] cjohnston, depends. if it can wait for tomorrow... [01:11] knome: ya.. I need someone to take my code and pretty it ;-) [01:12] anywhere one can see it? [01:12] I'm pushing the code up now [01:13] https://code.launchpad.net/~chrisjohnston/summit/track-page [01:14] knome: if you arent familiar with summit, you may need help setting it up so that you can work on it [01:14] no, i'm not [01:14] i could work on an external site too [01:15] knome: I'm at work tomorrow, but if you ping me when you have time, hopefully I wll be free to help you [01:15] knome: its all templates that depend on each other [01:15] okay, i'll try to do that tomorrow [01:15] I guess I could technically get it all ready, and give you raw html.. but im not sure that it would all work [01:16] I'll probably ping Martin tomorrow also knome.. But we have other stuff that we need css help with if he gets to that first [01:16] nothing 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 up [01:16] mm-hmm, no problem [01:17] knome: 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 you [01:17] mm-hmm [01:18] but it still needs a server to run on, or not? [01:18] no.. it can run on your desktop/laptop just fine [01:18] right [01:18] want to guide me through the setup right now then? [01:18] sure [01:18] i've pulled the branch already [01:19] well.. you need to pull something else first.. [01:19] right [01:19] create a folder somewhere called summit... [01:19] cd into that folder.. [01:19] donr [01:19] *done [01:19] then: bzr branch lp:summit [01:19] done [01:19] what version of ubuntu are you running [01:20] xubuntu 11.10 [01:20] ok [01:20] sudo apt-get install python-virtualenv [01:20] that might not work.. it may be: [01:20] sudo apt-get install virtualenvwrapper [01:20] done [01:21] mkvirtualenv --python=/usr/bin/python2.6 --no-site-packages summit [01:22] can't find the command [01:23] (i installed both pkgs) [01:23] whats the error [01:23] cant find python? [01:23] mkvirtualenv: command not found [01:24] there is a command named virtualenv, is it possibly that? [01:24] i dont think so, cause we are creating a virual env [01:25] it accepts both of those parameters though [01:25] mkvirtualenv is a wrapper that nigelb prefers, IIRC [01:26] right [01:26] ya [01:26] knome: try: [01:26] workon summit [01:26] I use just the standard virtualenv [01:26] workon: command not found [01:26] mhall119: ? [01:26] virtualenv --python=/usr/bin/python2.6 --no-site-packages summit [01:26] no 'mk' [01:27] with that, python is not found. is 2.7 ok, or do we specifically need 2.6? [01:27] ahh [01:28] oh, install python2.6 [01:28] it'll install beside 2.7 [01:28] then try mkvirtualenv (with 'mk') again [01:28] mhall119: did I tell you I started conversation with IS about upgrading us to 3 [01:28] python 3? [01:28] you better not mean python 3 [01:28] ya [01:29] what do you want to do? [01:29] you know it's not backwards compatible, right? [01:29] 2.6 isnt shipping with the next release [01:29] you dont want to upgrade to something current/ [01:29] done the virtualenv command now [01:29] knome: workon summit [01:29] workon: command not found [01:29] uggh [01:30] are you sure you told me to install all the necessary packages? :P [01:30] you should just need python2.6 and virtualenvwrapper [01:30] i have those [01:31] cjohnston: I'm not sure Django will run on Python 3 [01:32] we can use 2.7 when we can no longer use 2.6 [01:32] i see that now [01:32] so we would need to upgrade to 2.7 [01:32] i just wanted to avoid upgrading 2 times [01:33] yeah, which hopefully won't cause much trouble [01:33] should be better than the differences between 2.4 and 2.6 we had a while back [01:33] cjohnston, maybe it's better if you just shipped me the raw html files? ;) [01:34] cjohnston, or set up an installation somewhere where i can just see the pages [01:34] that would be completely okay by me :) [01:34] mhall119: any idea why he still cant do workon [01:35] is that some virtualenvwrapper thing? [01:35] dunno [01:36] now i can actually [01:37] don't know what i did but... [01:37] lol [01:37] so workon summit worked? [01:37] well, i'm apparently now in the summit env :P [01:37] cd summit [01:37] pip install -r requirements.txt [01:39] done [01:39] there was some errors though [01:40] says "compilation terminated." and stuff ;) [01:40] knome: you will have to get nigel to help you out with setting that up then.. I'm going to get html [01:40] lol [01:40] i suppose the html-method is way less error-prone :D [01:40] im trying to follow his instructions, which clearly arent working for me [01:40] is there something i need to do to remove the virtenv? [01:41] or is it just hanging around doing nothing unless i tell it to [01:41] #2 [01:41] okay [01:41] then i'll leave it [01:43] knome: the links on this page wont work for you, but you should get everything you need [01:43] mm-hmm [01:43] im uploading itn now [01:43] it [01:43] sure, thanks :) [01:45] knome: 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 you [01:45] html: [01:45] http://ubuntuone.com/7iY5k3PMuW61jnZWqOiPof [01:46] so you basically just want columns? [01:46] ya [01:46] its a table i guess [01:46] but heres another thing.. [01:47] the number of tracks isn't static [01:47] no problem. [01:47] this cycle there could be 6, next cycle 12, then 9, etc [01:48] knome: 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] .main-content ul li { width: 25%; float: left; list-style-type: none; [01:48] } [01:48] that's it [01:48] you probably want to set a class for the ul [01:49] i'll post a shot of that quickly [01:50] http://imagebin.org/186566 [01:51] don't worry about the missing bg images or so [01:51] i hate css [01:51] lol [01:51] that's rediculously easy [01:51] hate? why? :P [01:51] it is [01:51] cause i dont get along with it [01:51] you might need to force a li height [01:51] how do i add a class for the ul [01:52]
    in the markup [01:52] right.. in the css [01:52] and .main-content ul.myclass li { in the css [01:52] sweet [01:52] i'm not sure how this will work with variable-height li-items [01:53] if it breaks horribly, just ping me ;] [01:53] ok [01:53] ty [01:53] np [01:53] have fun with wife [01:53] i'm going to bed next to mine now :D [01:53] ty [01:53] good night [01:53] o/ [01:53] (4am...) [01:53] eww [01:53] haha :) [01:53] css @ 4am <3 [01:53] the 4am part not the next to yours part [01:54] hehe :) yeah i guessed that... [01:54] okie, see you later [01:54] -> [01:55] knome: ya.. breaks bad with varable height li [10:40] cjohnston, http://temp.knome.fi/other/li-columns-css.php [10:52] knome: You wanted some help with virtualenv-wrapper? [10:52] well, not really "wanted" :) we sorted out the original problem already so... :) [10:52] after you install it, you need to do restart your terminal I believe. [10:52] oh cool [10:52] thanks anyway :) [11:21] knome: how would I do every 4 li's enter a new row? [11:21] its built on the fly, its not hard coded [11:22] with $i++ ? :P [11:22] I don't know what that is [11:22] ha, i meant, take a variable and add 1 to it [11:22] when you hit 5, add the class :P [11:23] css2 can't do that [11:23] css3 could [11:24] http://paste.ubuntu.com/756947/ is the entire code [11:24] I have to leave for work.. I'll be back in about 1.5 hours or so. [11:24] :-) [11:24] i don't know python, but it is possible [11:24] hmm [11:24] ok [11:24] can be done in js too [11:24] but i think python is better [11:25] ok [11:25] bbl [16:32] mhall119, nigelb cjohnston do you know why ModelMultipleChoiceField lose the order of the items ? [16:33] Hrm, no clue. [16:46] daker: it doesn't use the model's default ordering? [17:03] no 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 inserted [17:05] mhall119, ^ [17:14] daker: oh, you'd have to add some kind of ordering field to the intermediate table to do that [17:14] shit! [17:15] I'm not even 100% sure that you're guaranteed to get the same order in the POSTed form data as it exists in the