updates

I haven't updated the site in a few weeks or maybe a month. there won't be any updates until I get out of school so it will be a little over a week at least, and I might just chill for a while after school's out, so who knows. Just letting people know I'm still here but you're going to have to wait at least a couple of weeks. I still have a lot of catching up to do with school in this last week or so.

posted by cheesycarrion

 

scripts section

I made a big update to the scripts section. now it lists a bunch of command prompt functions and stuff.

I also updated some functions, like show_divs which now outlines ul and lets you choose colors for div, p and ul instead of just div.


If I can figure out how to do it, I might make a calculator for the command prompt which could be used for any function. here's an example of how it would work: you enter:

alert 3(5+5)^2+3[calc][n][result]

It would display as this.

the alert would work just as always, simply displaying the text you input, but when it reaches the variable [calc] (which is empty), the parser would evaluate the math of everything before the [calc], and store it into the variable [result]. then, just to make it more readable, I put in an [n] to go to the next line. then, now that result is the value of the equation, it would just display that. the only problem with this method is that you always have to input the equation itself in addition to the result, making it not very useful for functions where you just want to answer to be sent. I could try making a classic function with parenthesis, like calc(3(5+5)^2+3) but I think that could be a lot more complicated. maybe I could do something more like:

alert [start_calc]3(5+5)^2+3[end_calc]

yeah, I just thought of that when I was writing this. I'll probably do something more like that. the problem is that I don't want to use the php eval() function because in my opinion it's extremely dangerous. I would want to do some regex shit or something and tear apart the equation, so only if I can figure out how to do this safely, which is way fucking harder, will I be able to make this calculator thing.

posted by cheesycarrion

 

some fixes

I made some fixes with the search engine, but it's not quite done yet. I'm putting in some limits so you can't make searches that are too long. also, turns out I already uploaded all the rest of the games that I was going to upload, so I didn't have to upload anymore. next I just have to get the old videos.

posted by cheesycarrion

 

search engine

I was bored so I made a search engine. I didn't mean to make it users-only, but it didn't work if you weren't logged in, so if you want to try it out, get a new account by typing register in the command prompt.

(you can use it by going to the games or videos section and using the text box on the right.)

posted by cheesycarrion

 

duplicate games and mysql stuff

I noticed that there were some strange things happening when I inserted all those games from the old site. I noticed that a lot of them showed the file size, even though I didn't insert the file size when I was adding them, which was strange, and some already had a lot of views. what it ended up being was that a lot of those games I already had in cc09 so there were duplicates, but since they had the same title, they it just chose the first record to get the data from when viewing the file. I tested a few, like chess, for example, and noticed that when searching for all entries where title='chess' found more than one result. I then searched google to find out how to show all duplicate entries, and altered one of the queries I found to display the the ids of both entries (I'm talking about id number, not the title which also happens to be labeled "id" when viewing a game or video.) I also want to stop just to mention that phpmyadmin is a fucking phenomenal tool for mysql. anyway, then since I was displaying ids from different entires in the same row, I couldn't just delete them yet so I made it only display the higher id (the newer one,) and phpmyadmin was smart enough to realize that each row it was displaying was from only one row out of the database, and gave tools like delete, rename, edit. so then I checked them all and clicked delete, but since the id column was prefixed with 't1' meaning the first entry of the two duplicates, (and I don't know what this prefix thing is called since I don't know that much about mysql) it tried to do the delete query with that prefix before "id." obviously this didn't work, but I wouldn't expect phpmyadmin to be smart enough to figure that type of thing out. the cool thing was it previews the query to you when you confirm to delete, so I just copy pasted the query and edited out the "t1." prefix and it worked like a charm.

posted by cheesycarrion

 

more games again

here are those 33 games I promised

ok, now there are only a few more games to insert, then for the videos.

posted by cheesycarrion

 

31 yesterday, 32 today, 33 tomorrow

ok so here are 32 more games. I'll add 33 tomorrow probably, since that seems to be the pattern.

posted by cheesycarrion

 

bringing back some old games

I didn't realize how many games there were from cc08 and cc07 especially that I didn't ever get around to bringing to the new site, so I uploaded a bunch, and this isn't even all of it, so here's less than half of those games (and yes, I will add the rest (probably tomorrow.)):


I put in a random image to liven up the page.

there are also a bunch of old forgotten videos that I'll bring to the new site too, so get ready.

posted by cheesycarrion

 

adding games and stuff again

one of google's original logosn

check out that google logo. that was one of google's first logo designs. pretty ghetto..

here are the top 5 most recently uploaded games:

posted by cheesycarrion

 

scripts page

edit 2: sonny 2

edit: ok, I fixed the problem with videos and games being only 600px wide. they are now the full 800px when using the detach (default) theme.

ok, so I didn't really add anything, but I put a bunch of links to stuff on the scripts page, so you might want to check it out because there's probably stuff you didn't know about. I've been working mostly on back end things like moderator controls (which for moderators can be seen on the scripts page too) and fixing forum glitches and stuff. I also now have a script that auto-generates my icon stylesheet and a control panel for adding and removing icons from my icons folder, but that doesn't really change the site at all either.

posted by cheesycarrion

 

Jump to page

1 2 3     next page

 



© copyright 2008 - 2009 www.cheesycarrion.com, www.arbitrarycitizen.com