New Poll Button?

  • Thread starter Thread starter posol
  • Start date Start date
  • Replies Replies 36
  • Views Views 1K

what do you see?


  • Total voters
    24

We may earn a small commission from affiliate links and paid advertisements. Terms

I see it and I am using the Black template eventhough in my controls I have the blue one set. For some odd reason, it loads in blue then right before it is done loading it turns back to blue.
 
Originally posted by pissedoffsol@May 16 2003, 03:18 AM
that only happened when i switched boards from phpbb to this one...
there wasn't a converter out back then

THAT won't happen.
the posts, although easy to back up, a BITCH to re-up to the database.
our DB of JUST POST TEXT is about 35MB. 35MB text file folks.
there's only 21,000 lines for the member file :) i can do that in about a half hour
lmao

php times out after 30 sec's of exe time... so basically, i have to sit there for 17-232 hours, chopping the 32 meg, 2000000 line file into about 1000 line segments, and up one at a time.
thats what happened last time... and i missed shit in the middle....

there's gotta be an easier way.... but i don't know of one.

perl is your friend...

Seriously, it would take you 2 minutes to write a script that split your file for you.
 
Originally posted by lsvtec+May 16 2003, 12:46 PM-->
pissedoffsol
@May 16 2003, 03:18 AM
that only happened when i switched boards from phpbb to this one...
there wasn't a converter out back then

THAT won't happen.
the posts, although easy to back up, a BITCH to re-up to the database.
our DB of JUST POST TEXT is about 35MB.  35MB text file folks.
there's only 21,000 lines for the member file :)  i can do that in about a half hour
lmao

php times out after 30 sec's of exe time...  so basically, i have to sit there for 17-232 hours, chopping the 32 meg, 2000000 line file into about 1000 line segments, and up one at a time.
thats what happened last time...  and i missed shit in the middle....

there's gotta be an easier way....  but i don't know of one.

perl is your friend...

Seriously, it would take you 2 minutes to write a script that split your file for you.

:werd: :withstupid:
although i dont know perl that well, i could whip up a java app to do the same thing... prett easy.
 
Sure, a stringtokenizer would work just as well. :)
But B hates OOP. :unsure:
 
OOP blows ass.
instead of writing one file, you have to wite 3.
one for the template
one for the code
and one for them to parse together.

:ghey:
 
Are you trying to write OO BASIC or something???? :)

Java, 1 file, 1 program. (In a simple case like this)
 
Originally posted by pissedoffsol@May 17 2003, 05:22 PM
well, the site is written in PHP, not JSP so :D

But a program to split the post file into many 1000 line files doesn't have to have anything to do with the site. It would be a standalone.

Use a StringTokenizer to split the original file on \n (or what ever line terminator you are using), loop through all the tokens appending them to a StringBuffer until that StringBuffer is 100 lines long, write that StringBuffer to a uniquely named file (in.timestamp for instance), clear the StringBuffer and start again until you are out of tokens. Load all files with name like in.* into the DB.

All in under 10 minutes to write. ;) :P
 
but i still have to upload 231231232342 times.

and while one is uploading, im highlighting the next 1000 lines. lol
 
Use a shell script to upload. (I assume it is a command line thing)
Or you could get cozy with JDBC and make your java program load it directly into the DB.

JDBC r0ckz!
:D
 
jdbc is great and all, but its not what our database runs on. its NOT an obdc datasource.
that, and its not local, its remote
 
Back
Top