/srv/irclogs.ubuntu.com/2010/11/07/#ubuntu-us-oh.txt

dmcgloneHi everyone01:25
BiosElementunHi dmcglone01:26
dmcglonewhat's up?01:26
dmcgloneanyone good with database design?01:26
BiosElementEh, maybe. haha01:26
Cheri703Don't forget daylight savings time!01:27
dmcgloneI'm just fooling around with techniques on paging01:27
dmcglonewas wondering if I should number the pages in the DB or just go by the "title" of the page01:28
BiosElementdmcglone, As in number each db entry? Or tag 15 entries with 'page5'?01:28
dmcglonemore like putting a number to each db entry, besides the primary key ID01:30
dmcglonefor instance the db would look something like this:01:31
dmcgloneID | page | description01:31
BiosElementSounds like you're over-thinking it maybe.01:31
dmcgloneand when called, go by the page number to get the description01:31
dmcgloneI think I am too01:32
BiosElementI'm not aware of any db design that actually does that.01:32
dmcglonesay for instance I put in the db ID 1 | page index | description bla bla bla on the page01:33
dmcglonewait a second, that wasn't correct01:33
dmcglonemore like: ID 1 | page 1 | description bla bla bla text on page01:34
BiosElementYou think too hard :P01:34
dmcgloneI usually pull from the DB by title01:35
dmcgloneI was playing around today and was trying new techniques01:35
BiosElementYou may have a good idea, but I think it's probably more complex then it's worth.01:36
dmcgloneand I pull the content for that page based on the page title01:36
dmcgloneit's pretty much the way all the CMS's do it01:37
dmcgloneI can't use the actual ID because it may not match up with the page title01:38
dmcgloneI've even used case statements for page display :-)01:40
dmcglonehuh, matter of fact I've used if else to display them too01:40
dmcgloneis google sucking bad or what? I do a search and get a complete blank page01:43
dmcgloneBiosElement: check this out, I wrote this about 5 years ago, simple function to get the page number from the db and display it's contents http://pastebin.com/5nwXPHLV01:47
BiosElementMmm Ahh cool01:48
dmcglonewith that code, I could enter everything for the page into a db and give that page a number and it would automagically generate that page01:48
dmcgloneOh the power of PHP ;-)01:51
BiosElementlol, I bet I could do it in python easier ;)01:54
* Cheri703 watches yet another python / php pissing match01:54
Cheri703:D01:55
dmcglonebet? you don't sound so confident ;-)01:56
dmcglonelol Cheri70301:56
Cheri703put them on the table and measure already!01:56
dmcglonehaha01:58
dmcgloneI might break the table :-/01:59
dmcglonehe's awful quiet, he's probably googling how to write paging methods for python02:00
dmcglonelol02:00
dmcgloneI got another one for ya, that doesn't use a DB. I'll post it on PB for you to droooooooool over... LOL02:02
dmcglonedrool on this: http://pastebin.com/Q3ZXQk5702:03
dmcgloneAh come on dude, you gotta drop kick me or something, just give me a sign... lol02:09
dmcgloneand no I don't mean the middle finger haha02:09
BiosElementlol, sorry. Neck deep in auth code atm02:12
Cheri703can I just say for the record: SeaQuest is RIDICULOUS02:13
dmcglone1whats seaquest?02:19
dmcglone1a game?02:19
dmcglone1auth code in pearl? ;-)02:19
Cheri70390's sci-fi tv show02:19
dmcglone1Oh ok02:22
dmcglone1I'm watching "I almost got away with it"02:23
dmcglone1getting ready to get my midnight snack. Cereal :-D02:24
dmcglone1shredded wheat anyone?02:26
dmcglone1well I'm off to bed :-)02:40
dmcglone1g'night everyone02:40
BiosElementFolks nextdoor want to run up and down the stairs all night and bang things around...apparently tonight's a free loud music night! ^_^06:01
BiosElementYay for long as hell day tomorrow23:57

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