Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Messages - Spectere

Pages: 1 ... 363 364 [365] 366 367 ... 379
5461
Random Chat / Re: The Official S.net "The Lame Replies Thread" Thread
« on: October 01, 2007, 06:38:16 AM »
Since I can't simply connect to the server from the MySQL client I downloaded, I have to write pages to do all the SQL queries for me :/

Yeah, it's probably set up so that only 1&1 web servers can connect to the MySQL server.

Still not sure if there is a safe, secure way to hook you and Kuroneko up with PHPMyAdmin or something similar...

Also, is the Primary Key sequential or anything? I don't know much about it except that it's likely the best way to go about making my update function work.

The primary key ensures that there is at least one unique value in every row of a table in a relational database.  I don't believe it's sequential by default; you may have to specifically set that column to autoincrement.  I honestly don't remember.

If you want to know what the primary key is actually used for, see the end of this post.

Also, PERL would be the true techie hell. Not only is it worse than PHP, it's just plain fucking UGLY.

Perl makes up for it in a way by how ridiculously powerful it is.  I actually intend to learn that.

The biggest problems with PHP are that (1) the language is a giant pile of kludges and inconsistencies and (2) you have to fight with HTML code to get all of the major web browsers to render your code properly.  In my experience with PHP I've pretty much come to the conclusion that it's just a bad language.

I think I'd actually have fun doing web applications with Mono/.NET, mainly because those languages actually make logical sense and don't feel like a giant workaround.

...

And now for my primary key explanation:

The primary key isn't a very big deal in single-table "databases" but when you start linking tables together it becomes incredibly important.

For instance, let's say you have two tables, users and posts.  The posts table has three columns -- id, message, and user -- and the users table has two -- id and name.  In both tables, id is the primary key.  Let's say, for the sake of argument, that our users table looks like this:

idname
0Spectere
1Bobbias
2Zakamiro
3Kuroneko

Now, what we want to do is link the two tables so that the numbers in the user column in the posts table correspond to the users on the system.  This, in effect, creates a one-to-many relationship between the users table and the posts table -- one user can create make posts.

Since the id column in the users field is set as the primary key, each row in the table must have a unique value in this field.  As such, this value will be used to link the two tables together.

With that in mind, let's take a look at the posts table:

idmessageuser
0Hey guys, what's up?0
1You smell funny.1
2wtf =(0
3Yeah dude, you're seriously rancid.2
4No joke.1
5...0
6...wait, what?3

With a bit of creative SQL trickery (that I don't feel like remembering at the moment) you can join the two tables together and pull all of the necessary data (message id, message, and username) with one query, essentially giving you this:

idmessagename
0Hey guys, what's up?Spectere
1You smell funny.Bobbias
2wtf =(Spectere
3Yeah dude, you're seriously rancid.Zakamiro
4No joke.Bobbias
5...Spectere
6...wait, what?Kuroneko

Had we used a column that could potentially contain the same data between two rows, the results could have been ambiguous.  The database engine does both the grunt work of ensuring that no two rows in a table have the same primary key and makes sure that the DBA doesn't do something silly like try to join a table by a column that could potentially have repeated values.  Thanks to MySQL doing a fine job in making sure that the programmer doesn't make any obvious mistakes, I'd have to say that working with SQL is the most enjoyable part of designing a web-based, database-driven, PHP application.



...whew.  I think I'm going to go to bed now.

5462
Random Chat / Re: The Official S.net "The Lame Replies Thread" Thread
« on: October 01, 2007, 05:06:27 AM »
So, I'm writing my own homepage for my SnS DS translation project page... In PHP... Using SQL... Which I've never done before......

My head wants to explode. I have a newfound respect for PHP programmers :/ Fuck I hate web scripting.

I know how you feel.  If Hell is real every techie that goes down there will undoubtedly be forced to write PHP applications for an eternity.

5463
Random Chat / Re: So I got my new computer today............
« on: October 01, 2007, 02:17:51 AM »
Mine was 800 all together (with trade in of my old computer)
So 800 cash, and computer.

Cripes, that kicks ass. :O  How much did you get for your old one?

5464
Random Chat / Re: The Official S.net "The Lame Replies Thread" Thread
« on: October 01, 2007, 12:57:33 AM »
Playing Inori 7k will cripple you.

Thanks, I'll be sure to avoid that one. :P

5465
Random Chat / Re: The Official S.net "The Lame Replies Thread" Thread
« on: September 30, 2007, 07:28:28 PM »
I played IIDX today for the first time in a while.  Getting everything together was painful enough, because my PS2, power cable, A/V cables, and Swap Magic discs were all in separate boxes for whatever reason.  Then I quickly realized that you really don't lose any skill after taking an extended break, your wrist just likes to totally seize up after a relatively short period of time.

5466
Creation Station / Re: Photos
« on: September 30, 2007, 03:25:55 PM »
Cristian, you should consider becoming a horror film director. :P

5467
Random Chat / Re: The Official S.net "The Lame Replies Thread" Thread
« on: September 30, 2007, 12:39:28 AM »
Yeah, but I'll be one letter off from spelling a word and it will give me a bunch of weird other words that only have like 3 letters in common.

Let me guess, Firefox? XD

It's nice for letting you know that you screwed up but, uh...

5468
Creation Station / Re: kuromusic mk iivivxcivimmvsdgf
« on: September 29, 2007, 09:23:23 PM »
I don't really see it being any harder.  I mean, this:

Code: [Select]
<head bgcolor="#FFFFFF" text="#000000">
...turns into:

Code: [Select]
head {
  background-color: #FFFFFF;
  color: #000000;
}

It's a hell of a lot more flexible and it dramatically cleans up the HTML.  I use CSS even on small web pages because it sets an even divide between the content and the fancy colors, not to mention that, if done right, the page will look fine even without the stylesheet (in Firefox, click that link and click View->Page Style->No Style).

Now I just need to get unlazy and figure out DIV tables.

5469
Random Chat / Re: The Official S.net "The Lame Replies Thread" Thread
« on: September 29, 2007, 09:16:16 PM »
Man I hate my spellcheck

Eh, it's not really your spell checker's fault.  Viscous is a word, after all. :P

5470
Creation Station / Re: kuromusic mk iivivxcivimmvsdgf
« on: September 29, 2007, 04:20:56 PM »
I figure Xcomic would help as well, despite it's being an ugly mess internally, from what I remember... didn't it have a news function built in?

Heh, I don't remember.

All I remember was that it used Wordpress themes and, to make any sort of significant changes to it, you needed to modify the code.

also, what happened in the other thread... my bad dude :(

S'cool.

and the "strict" XHTML specification makes you want to do what?

It's like, "what?! NOT EVEN A BGCOLOR ATTRIBUTE?! WHAT THE FUCK, W3C!"

Hahaha. XD

They really just moved all of that stuff over to CSS.  It's harder to make quick-and-dirty web pages but it does clean up the HTML file a lot.

5471
Creation Station / Re: kuromusic mk iivivxcivimmvsdgf
« on: September 29, 2007, 03:47:00 AM »
I'm not quite sure how you mean that... could you be a bit more specific?

It just feels a bit...empty in a way.  What you have is good, but I think playing with adding another channel or two would be nice -- a bit more polyphony.

...that said, the general explosions, guns, chaos, and death of UT would add quite a bit to it. :D

I figured that as long as it hadn't been nuked yet, I'd still use it as my primary webspace.

Heh, yeah.  I was going to nuke it when I got back home but I figured I'd wait to see what's up when I noticed that you rejoined.

I don't really care either way.  I don't mind handing space out (especially now, since 1&1 actually gives me space to hand out, not 500MB split between databases and files), I just don't have the time, energy, or willpower to baby-sit the site.

Under the website, it's way reorganized.  I can actually find my stuff now!

Haha, that's why I didn't restore all of my files from backup when I switched servers.  The old s.net tree was a bloody mess.

So, do you want me to purge it, then? (y/n)

Eventually the news page will be nuked completely and replaced with a little php doodad... can't do anything about that yet though, I'd need to make an sql goodie for it.

Speaking of which, I'm not sure if I can securely install phpMyAdmin (based on a glance, and past experience, it requires a control username and password, which is saved, plaintext, in a configuration file).  I'll see if there's any way around that -- a way to put the configuration file in a private directory perhaps, or the ability to encrypt the password.

It's probably going to rip off cosmix hardcore, because I don't know that much php ;)

That's what it's there for. :P

If I'm feeling particularly masochistic I might work on it a little.  I just dislike working with HTML/CSS and, as a result, try to avoid dealing with PHP too much...hence the reason I can't seem to finish any PHP projects.

5472
Random Chat / Re: The Official S.net "The Lame Replies Thread" Thread
« on: September 29, 2007, 03:37:14 AM »
... Fuck....

Having ~465 packages installed will do that, haha. :P

I wish I had the distcc setup that I was using when I worked at my last job.  Now THAT was nice...

Wanna know what's really sad? DDR Hottest Party has better steps than SN2.

Heh, that's why I generally play revivals when I play SuperNOVA.  Not a whole lot of charts really stand out to me.

Its only problem is that it apparently lacks speed mods which doesn't bother me but would probably anger nearly everyone else.

Seems a bit odd but, eh, I can deal with that.

Yes it would. God I need C400, lol.

C-mods do not exist in didder, mortal!

5473
Random Chat / Re: The Official S.net "The Lame Replies Thread" Thread
« on: September 29, 2007, 01:47:51 AM »
Woo, so I recompiled every package in my Gentoo installation because of the new versions of imlib and expat are binary incompatible with the previous versions (hence, breaking everything) and created a bit of dependency hell (i.e. couldn't recompile many of the packages that used imlib because they depended on expat, and vice versa) so, out of sheer annoyance, I just rebuilt it all overnight.

It took about 10 hours of straight compiling (the goliaths -- like kdelibs, gcc, glibc, among others -- take a hellaciously long time to build). O.O  But hey, everything works without a hitch!

5474
Gaming / Re: Halo 3, not HD
« on: September 29, 2007, 01:14:09 AM »
HD fanatics piss me off.  They need to learn to just play the damn game and be happy.  When it gets to the point where you start counting pixels to make sure that you weren't "cheated" out of a "true HD experience," I get to the point where I want to drive a nail through someone's skull.  I can understand people being a mite upset over things like the PS3's 480i scaling issue or the 360's inability to load games from HD DVDs (which is simply dumb on Microsoft's part, what with Blu-Ray having such a large capacity) but...seriously. :/

I highly approve of Halo 3 for the simple reason that it actually takes full advantage of the VGA adapter.  It's shocking how many games either do something totally dumb like output a 1280x720 signal, which gets horribly stretched on 4:3/5:4 LCDs (hi there, PGR3) or something not-so-dumb, like pushing out a letterboxed picture (then there's Gears, which originally rendered at a full 1280x1024 but, for reasons known only to Epic, was updated to be letterboxed...way to make split-screen co-op harder to see for cheap bastards like me).

5475
Random Chat / Re: My mom's computer sucks, help me fix it.
« on: September 29, 2007, 01:04:50 AM »
I did a brief Google search but couldn't find anything.  Pitfall did most of its rendering with software so that's always a possibility.  Another possibility is that it constantly changes, in mid-draw, where the sprites are.

I'm kind of interested in finding out.

Pages: 1 ... 363 364 [365] 366 367 ... 379