/srv/irclogs.ubuntu.com/2011/09/01/#ubuntu-us-fl.txt

bluebomberSo, Florida LoCo, what's up?13:48
bluebomberWhat kind of ideas do we have for Software Freedom Day, 11.10 launch, anything else...?13:49
bluebomberOr are we going to discuss some of the above the next IRC meeting?13:49
mhall119hey bluebomber 13:54
bluebomberHey, mhall119 13:54
mhall119bluebomber: you can add those as items to discuss in the next meetin13:54
munzmorning all :)13:55
munzsorry been soooo busy lately13:55
mhall119bluebomber: http://loco.ubuntu.com/meetings/ubuntu-us-florida/193/detail/13:55
mhall119log in and you should be able to add agenda items13:55
bluebomberI thought I could add those, too, seeing as it's a wiki, but kept overlooking the incredibly-easy-to-overlook login button at the top left.13:55
mhall119it's not a wiki13:56
bluebomberAhh, you're right, but I always click over to it from https://wiki.ubuntu.com/FloridaTeam14:00
bluebomberAnyway, agenda items added.14:00
mhall119awesome14:13
DammitJimhey guys15:17
jamaltahey15:17
DammitJimhey jamalta maybe you can help me... totally off topic, though15:18
jamaltawhat's up?15:18
DammitJimare you familiar with SQL stuff?15:18
jamaltayeah15:18
jamaltawell, depends15:18
DammitJimso, I have a table that holds something like this:15:18
DammitJimhttp://pastebin.com/e9CViUqp15:20
DammitJimand I want it either SQL or another program to return what's under the +++++s15:20
DammitJimwhat's more effective? to use SQL or something else like awk?15:21
DammitJimof course, there are 800 locations and about 40 channels15:21
DammitJimI think they call this pivoting or something like that15:21
jamaltayou can do that with sql15:23
jamaltai have no clue how you would do it with awk though15:23
DammitJimoh really? I can do this in sql?15:24
DammitJimI'm using mysql15:24
jamaltathere's a simple way15:24
jamaltawhich would be to query the locations and then loop through them and query for the person for each channel15:24
jamaltaand then i'm sure there's a way to do it with a group by which i would need to create the table to make sure i did right, since i'm a bit rusty with that15:24
DammitJimhhhmmmm... I guess that's the piece where I don't know how to approach... the looping piece. Sounds like I'd need a procedure?15:25
jamaltaalthough, it might just require sub-queries15:25
jamaltaYou're accessing the DB directly?15:25
DammitJimdo you know what this is called? what I want to do... so I can search online?15:25
DammitJimyes15:25
jamaltaOhh15:25
jamaltaSo it's not an application you're building? You just want to pull the data?15:26
DammitJimwell, I have flexibility to make it an app15:26
DammitJimI was just trying to figure out what gets done in SQL and what gets done in the application layer15:26
DammitJimI'll have scripts that run automatically to do all this stuff15:27
jamaltaI mean, something like this _might_ work but I haven't tested it15:28
jamaltaSELECT Location, (SELECT Owner FROM Table WHERE Channel = 1 AND Location = ParentTable.Location) AS Channel1, (SELECT Owner FROM Table WHERE Channel = 2 AND Location = ParentTable.Location) AS Channel2 FROM Table as ParentTable15:28
jamaltaOh, add a Group by in there15:28
jamaltaGROUP BY Location15:28
DammitJimoh ok, but at the end of the day, I have to hard code the channel column, don't I?15:29
jamaltaYep, that's why I wouldn't do it that way15:29
DammitJimlol15:29
jamaltaInstead, I would have a Locations table, a Channels table and then a user/owner table15:29
jamaltaThen a table that joins all 315:29
DammitJimno biggie... the channels aren't going to change15:29
DammitJimoh, I have the locations table and the channels table already15:29
jamaltaDoes an owner have it's own table?15:30
jamaltaOr do you only ever need a name / username?15:30
jamaltaIf you have an owner table then you just want a table that has owner_id, location_id, channel_id15:30
DammitJimthe table example I pastebin'd is derived from other tables so yeah, the owner has it's own table at the beginning15:31
jamaltaAh15:31
DammitJimyup, that makes sens15:31
DammitJime15:31
DammitJimbut I still don't get how to do the pivoting15:31
jamaltaSo what you want is a list of locations with each channel, right?15:31
DammitJimI want to see a matrix of locations vs channels with the owners in the corresponding cells15:32
DammitJimit's like a report, ya know?15:32
jamaltaand a location always has an entry for every channel?15:33
jamaltawell, that doesn't matter really15:33
DammitJimjamalta, I'll check with you later, if this is distracting, I'm sorry15:33
DammitJimI have to run an errand and I'll be back later if you have any other ideas15:34
DammitJimI just wanted some pointers so I could google what I need to do, but I don't even know what to call it LOL15:34
jamaltawell, i don't know if there's a term for this but it's just getting data and printing it15:35
jamaltai would do it outside the sql level though15:35
jamaltafor example15:35
jamaltahere's some pseudo-code on how i would go about it15:35
jamaltahttp://pastebin.com/CaTvRwDQ15:35
jamaltathe {} in the query is how i was referring to data coming from the script and not the DB15:35
jamaltaso {channel.id} is coming from the channel that's being looped on15:35
jamaltaetc.15:35
jamaltaOwnerChannel is what I called the table that joins Owner, Channel and Location15:36
jamaltabrb15:36
jamaltaback15:40
jamaltaglobal jam is at 9:45am?17:31
DammitJimthanks jamalta 17:35
jamaltaah, np!17:35
jamaltahopefully it was helpful, rather than confusing :\17:35
DammitJimit's a different approach17:35
DammitJimI've been reading on http://www.artfulsoftware.com/infotree/queries.php#7817:35
jamaltaAhh17:36
jamaltaThat's all SQL then :)17:36
DammitJimyeah, but again, I've just been trying to figure out if I should do it all in SQL or part sql and part application17:37
DammitJimso, I guess there are many approaches to this problem and you did it with one17:37
cjohnstonjamalta: my house tomorrow.. can you come?18:40
jamaltacjohnston: ohh, the loco site has something in lakeland listed18:40
jamaltawhat itme?18:40
jamaltatime*18:40
jamaltaand where?18:40
jamaltarather, where is your house? :)18:40
cjohnstonya.. we changed it.. but i didnt put up my address18:41
cjohnstonpine hills18:41
jamaltaah, alright18:41
cjohnstonduring the day18:41
jamaltaah alright, down by colonial?18:41
jamalta(down considering i'm in sanford)18:41
cjohnstonstatik: ping18:42
cjohnstonjamalta: pm18:42
statikhi there cjohnston 18:45
jamaltastatik: he just left, i sent you a pm18:47
jck77hello18:49
jck77is anybody from the broward or dade county?18:49
mhall119I think jcastro is close now19:14
mhall119some others too, I don't remember which though19:15
mhall119reya, but he's offline19:15
jck77umm ok19:19
jck77I would like to participate in a meeting or software release party down here19:20
jcastroI am in Boca19:27
jcastrobut I thought I was all by myself!19:27
itnet7jcastro: there are close to 10 Florida Team members that live within an hour south of you, You're about 2 hours 10 Min. south from me19:32
itnet7zus also lives closer to you and jck7719:33
jamaltais ubuntu-us-fl@lists.ubuntu.com the right address for our mailing list?19:33
itnet7jamalta: yes, but you're no longer subscribed19:33
itnet7I just let it through19:33
jamaltaoh :(19:33
jamaltaoh thanks!19:33
itnet7I can try and add that address you used for ya19:34
itnet7but I moderated it using listadmin19:34
jamaltathat'd be great! :)19:34
itnet7cool19:34
jamaltais anything else going on for the jam this weekend?19:35
itnet7Not sure, I was planning to get a group together up here, but haven't had time to plan it19:35
jamaltaAh, alright19:36
jcastrojck77: we should get beer.19:37
jcastrooops, I mean "jam this weekend".19:38
bluebomber_satelWould someone provide me cjohnston's address for the event tomorrow, please?19:38
bluebomber_satelHe appears away.19:38
bluebomber_satelThanks, everyone. I guess there's nothing like asking for a physical address to silence an IRC chat.19:55
itnet7bluebomber_satel: lol19:56
itnet7I don't have it, otherwise I'd PM you19:56
itnet7bluebomber_satel: you have off from school tomorrow?19:56
bluebomber_satelitnet7: I might be able to make it for a couple hours. I'm a grad student => Few classes.20:04
itnet7bluebomber_satel: cool! I was going to try and swing by, but I found out I have to work tomorrow for coverage20:07
itnet7Hope everyone has some fun!20:07
bluebomber_satelitnet7: Thanks, I'll have some extra fun on your behalf if I make it and you don't.20:14
bluebomber_satelHow have you been?20:14
itnet7+120:14
itnet7I have been pretty good, and you?20:14
bluebomber_satelFine, thanks, busy.20:27
bluebomber_satelKindasorta20:27
bluebomber_satelWe had an amazing time in Portland.20:27
bluebomber_satelI loved that city so much, I'm seriously considering moving out there. I hear a lot of good things about the pacific northwest in general.20:27
itnet7Oh, you went there for Linuxcon?20:27
itnet7I'll bet it was awesome!20:28
jck77hey itnet7 20:30
jck77jcastro: I live in fort Lauderdale, well is almost Davie cuz is close to i95 and 59520:31
jck77jcastro: I dont know my plans for this weekend, my mother in law is in town and that sucks20:32
jck77lol20:32
bluebomber_satelNot Linuxcon (I wish). For IEEENano.20:38
itnet7Ah!20:39
bluebomber_satelWell, should I email cjohnston?20:39
itnet7jamalta: If you get a chance, can you PM bluebomber_satel the address please20:39
itnet7for the Community Web Jam tomorrow20:39
mhall119jamalta: are you going to be at the jam tomorrow?20:44
mhall119itnet7: should check with cjohnston before sending out his address20:44
itnet7mhall119: thanks20:45
jamaltamhall119: yeah :)20:46
jamaltaalthough i'll be working and won't be able to participate on the jam too much20:46
jamaltaoh, bluebomber left.. i guess he can get it when he comes back.20:47
mhall119jamalta: are you still with flickr?20:49
jamaltamhall119: yeah20:50
mhall119working remote now or something?20:52
jamaltasorry keep going away from irc and not checking back20:56
jamaltayeah, i'm working remotely now20:56
mhall119cool21:00
=== nosoynadie is now known as jck77

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