@# Quotes DB     useful, funny, interesting





Google
 
Web www.quotesdb.info
Undernet  |  EFnet  |  Quakenet  |  Freenode  |  Dalnet  |  Ircnet  |  Galaxynet
Page: 1 2 3 4 5 6 7 8 9 10 11 12 13



Comments:

<0> why not?
<1> I as hoping to keep numbers under 32k
<2> well then you have to write a function to do that
<0> why do you care?
<1> gleam-: its hard to refer to game number 3463746374
<3> oh numbers under 32k then, is it? You think numbers are going to stay under 32k do you?
<1> the numbers are not so easy to remmeber
<0> are your users goign to be memorizing the numbers?
<3> well ive got news for you; food is good.
<1> jsoft: when I run out of numbrs I want to reuse the old ones again
<3> ok then..
<2> that's kinda backwards
<1> gleam-: users will need to remember the game numbers when posting about thegames in the forums
<2> then your links will get outdated
<1> like if they want to invite users to join them they might post the game number
<2> user confusion ensues



<3> I recon.
<1> or to tell people about something interresting goning on in some game
<2> it's like eating your own foot :)
<1> youho: they wont be links
<1> they will be people typing ingame numbers
<1> not auto linked at all
<2> oh
<2> i see
<1> at the rate Ie xpect to be going it might take years to run through an entier set of numbrs at 32k
<1> so by the time we resue them no one will care about the old games anymore
<1> the shelf lifee of a game for conversation is at most 1 month
<2> i have to disagree but thats offtopic :)
<1> I wl just have to code in php to get it to ***ign game numbers then
<2> yes
<1> thought maybe mysql handled this roll over on its own
<4> i have a question: there's a view threads counts to show in the view forum page, but where do you store this info?
<4> counts of view threads log or just use a field in the thread?
<0> pardon?
<3> Id make a file in /tmp
<3> that will be secure and safe.
<4> where will you store the view threads counter?
<3> it would not for example be deleted when the system reboots.
<0> what are you takling about dlon?
<0> are you asking how we suggest you do it in some forum you're writing?
<4> yes
<1> gleam-: were you shaking your head at me?
<4> please
<0> kib: yes.
<1> why?
<0> because you're silly.
<1> yout ink I should torture my users with really long game numbers they have to remember or copypaste to post messages to others?
<1> another site similar to the one I am using have reusable game numbers
<1> they go upt o 999 then start over again
<0> maybe you should keep the id number as a unique permanent identifier and give the users the ability to choose another identifier that they like more
<1> I guess they use php to do this
<0> so?
<0> microsoft makes operating systems that **** nuts. should you, too?
<0> just because other people do something wrong doesn't mean you should.
<1> gleam-: you ant the users to pick their own auto_incremnt value?
<0> no, i'm suggesting you make a unique column where they name the game.
<1> gleam-: well this other site is pretty good..so I am modeling after them
<1> I wouldnt model my site after something that "**** nuts"
<4> um... :)
<0> you're modeling your site after something that probably uses poor database design, so as far as this channel is concerned it ****s nuts :)
<1> gleam-: I dont know their db design..I am making this up from scratch
<0> dlon: either way. it depends on a lot of things
<1> all Ic an see is what normal users see while using the site
<1> I am taking the best parts of it and imporving upon them...but for now I am just trying to get the basic game up as the other site does
<0> dlon: you might run into problems if you start getting 400 pageviews fo ra certain thread a second and you're updating a field vs inserting a row
<1> so I dont really know how the other site works other then its design is at a point where improving things is extremely difficult by its design
<1> so I am planning for new options now I want to add with the db layouts so I wont get int o quite the same bind as the other site is
<4> so which is better?
<4> or faster?
<4> count(*) or row["views"]
<1> gleam-: and yout hink refering tot hem by name rather then number is going to improve things with 400 page views a second?
<0> i swear i prefaced that with dlon:, kib
<0> i think i wasn't talking to you.
<4> ?
<1> I thougth you said dont
<1> I read it wrong



<0> dlon: just pulling the count from the row will be faster
<4> oh
<0> but i'm talking about problems you'll run into if you get a lot of people viewing that thread
<0> suddenly you have to update it and increment it each time it's viewed
<4> yes
<0> unless you figure out another way to do it
<0> but you see how that might b ea problem with row or table level locking
<5> hmm this modified preorder tree traversal algorithm is not as bad as i thought
<0> it has the advantage of being very fast, monster
<0> as these things go
<5> looked complicated at first glance
<5> fast is good
<4> is there any method to get the child id as recurrsion?
<4> in 1 single sql
<4> or i need to loop in php
<0> something tells me monster has a suggestion for you
<0> monster, dlon needs to know how to find all the children of a node
<0> all the descendants
<0> dlon: http://dev.mysql.com/tech-resources/articles/hierarchical-data.html
<0> look especially at what mike calls "the nested set model"
<6> am i able to put an IF statement in the FROM clause? i want to do: select IF(closing_date>=now(),1,0) FROM table;
<0> that syntax is ok but the if statement isn't in the from clause
<6> gleam-: oh yeah, what would you call that? the field list?
<0> yes
<6> cool, thanks
<0> or the select expressions
<0> field list is more intuitive tho
<0> bedtime
<0> night folks
<5> dlon9: there are few wasy to do it
<5> modified preorder tree traversal algorithm seems to be the most efficient way of dealing with child/parent trees
<5> im modyfing my system to use it
<7> I'm trying to migrate a phpBB DB from one server to another, and I'm running into the dreaded ' packet size too large' problem
<7> Unfortunately the only EXPORT options I have are the pure dump from PHPBB, or using phpMyAdmin
<7> Any ideas?
<4> o...
<8> greets
<8> Fulltext-> select bandname, MATCH(description, bandname,location) AGAINST ('madrugada et' IN BOOLEAN MODE ) as score FROM gigs;
<8> score is always "1", any ideas?
<9> put match in the where as well
<8> lokus, match is there?
<8> http://webdocs.math.univ-rennes1.fr/MySQL/mysql-3.23.52/manual_Fulltext_Search.html
<8> followed that
<8> lokus, i dont see what you're getting at
<10> hello, i would like to insert something into a textfield, namely tweng' but because of the ' at the end of it, i cant insert it via the normal insert statement of insert into `users` (`id`,`user`) VALUES ('1','tweng'') . how can i fix this please? thanks
<11> 1) escape it
<11> 2) use placeholders
<10> escaping worked, thanks a lot
<12> Hello
<12> Are there any differences as to how a db is looked upon in version 4.0.24 and 5.0.20-nt-max
<12> I locally haev 5.0.20 installed and when I tar up the db folder and upload to a production box with 4.0.24 on it, I get consistency errors in tables.
<13> this is correct? Isn't $row an array? (i can't seem to extract results from it..) http://pastebin.com/718188 , all the $user/date/time/text are blank..
<14> stedios /join #php
<14> theres no need for ; in the sql query string.
<14> and you dont need quotes around integers.
<14> http://pastebin.com/718201
<15> hello
<16> hello
<12> Are there any differences as to how a db is looked upon in version 4.0.24 and 5.0.20-nt-max. I locally have 5.0.20 installed and when I tar up the db folder and upload to a production box with 4.0.24 on it, I get consistency errors in tables.
<12> or stored .. or taken care of
<17> what setting is responsible for download location of the downloaded bin-logs (io_thread) on my slave ?
<18> Haris: you'd need to explain what specific errors you were getting
<18> also, perhaps you should do a myslqump and reimport the data rather than tarring the physical folder
<12> http://pastebin.com/718223
<12> Details
<12> osfameron: Any info?
<12> osfameron: Is it the change in the mysql server version that is causing the problem, it telling me the db is with errors in mysql 4.0.24?
<19> Dude
<19> You cannot DOWNGRADe.
<12> How can I convert the db back from 5.0.20 to 4.0.24 format?
<19> mysqldump
<19> !m Haris mysqldump
<20> Haris: (The mysqldump Database Backup Program) : http://dev.mysql.com/doc/mysql/en/mysqldump.html


Name:

Comments:

Please enter the result of the sum 63 + 46 (to avoid spam):






Return to #mysql
or
Go to some related logs:

emerge subversion
Realtek PHY RTL8201CL debian
#python
hpiod Connection reset by peer
bash script date milisecond
RFB 003.003 error
#javascript
#math
#linux
zenwalk limewire



Home  |  disclaimer  |  contact  |  submit quotes