Archive for the ‘Special Projects’ Category

05.10.2009
left-join-right-join

Tags:
, ,

LEFT JOIN, RIGHT JOIN

I’ve noticed a very interesting difference between my local development environment and my actual webhosting. In the master post this is the query that displays the artists available (if they have downloads). On my local development environment all the artists keep coming up, while on my webhosting only those with downloads show up (as they should). If I change LEFT JOIN to RIGHT JOIN I reverse the problem. lol.

  1. SELECT ar_artist_id, ar_artist, ar_image, COUNT(vi_artist_id) AS ar_numvideo
  2. FROM (artist INNER JOIN videos ON artist.ar_artist_id = videos.vi_artist_id) LEFT JOIN videodownloads ON videos.vi_video_id = videodownloads.vd_video_id
  3. WHERE artist.ar_pubterm <> ‘Actor’ OR ‘Actress’
  4.                  GROUP BY ar_artist_id
  5.                  ORDER BY ar_artist

It’s the same with this query that shows the downloads per artist on the artist page.

  1. SELECT artist.ar_artist_id, videotypes.vt_videotype, videotypes.vt_videotype_id
  2. FROM artist INNER JOIN (videotypes INNER JOIN videos ON videotypes.vt_videotype_id = videos.vi_videotype_id) ON artist.ar_artist_id = videos.vi_artist_id LEFT JOIN videodownloads ON videos.vi_video_id = videodownloads.vd_video_id
  3. GROUP BY artist.ar_artist_id, videotypes.vt_videotype, videotypes.vt_videotype_id
  4. HAVING (((artist.ar_artist_id)=$artistId))

What the hell? I have no explanation. haha.

05.01.2009
batch-of-news-lives-and-new-function

Tags:
, , ,

Batch of NEWS lives and new function

I’ve added another batch of NEWS lives. Some of them have their pictures missing, which will be fixed in the next upload.

Meanwhile I’ve added another function from my local catalog to the master post:

newfunction

So now it’s possible to limit the number of results shown by videotype.

Enjoy!

The new function I’m programming will show the last 50 uploaded or something in a list view with the upload date on them. Makes it a little easier to find out what’s new.

04.24.2009
master-post-runs-on-my-catalog

Tags:
, , , ,

Master post runs on my catalog

If you click my DL Master Post right now, you will see something awesomely cool. I mentioned I was busy trying to create an ‘online’ version of my video catalog (which stems from my anal habit of keeping things organized). I have an application offline to make sure I never loose things and that I always know where they are. What I’ve done, is make use of the information already in that database and selectively pull out stuff I’ve uploaded for you (the batshit crazy fandom). I’m not a top programmer, but I can manage that’s for sure. The proces behind this is actually quite interesting, so here’s a quick-n-dirty drawing what it is that I did:

catalog

It’s made in such a way that if I ever were to decide I want to show you my full catalog, it’s pretty much easily possible. For now I will keep it as is. I’ve deleted a couple of functions that I think may be added to the master post. For instance:

  • When you select an artist now, in my original catalog you can narrow the amount of videos displayed by videotype (pv, tv show, etc). In the online version that’s been stripped off.
  • I’ve deleted the breadcrumb function because I was too lazy to do that.

Since it is running by integrating it into a Wordpress page template, whichever new template I make in the future, the catalog will adhere to. Right now it has a small glitch because this template outlines text “justified”, but I’ll fix that.

In any case, enjoy the new function. There aren’t any new downloads yet, but there will be soon. If I ever manage to, I’ll open up the source code so you can be just as anal as I am. XD. Not sure you want to.

:smile:

04.21.2009
structure-i-geeked

Tags:
,

Structure, I geeked.

Been trying to structure the downloads to more pages, since this one is already on the long side. In the meantime I’m also uploading more stuff. It reminds me of the SICK SICK amount of Johnny’s videos I actually have. By the time I finished typing a short category list, I thought it was time to go see the head doctor. Then I thought: neh, it’s one of the very few things I can always smile about when I’m down. What’s wrong with that?

It might actually be easily over 300 gigabytes (excluding drama’s). You can imagine this poses logistical challenges. I would not be God in my own batcave (my room) if I did not know where every file I’ve downloaded is. All presumably 300+ gigabytes of them. This on the other hand has to do with geekery, an uncontrollable desire to organize any information combined with anal perfectionism.

:smile:

I’ve probably mentioned it before; my entire database is now webbased though I run it offline. I was thinking about adapting a few pages for the intarweb, loading up the tables and dumping the necessary images on another hosting account. And if we’re busy with that anyways, why not expand that webversion with d/l links?

Oo, yes yes, it’s geek. I like the idea; though I’ll have to *cough* remove some files. This is kind of the problem if you know you can do it ‘even cooler’; it takes so dang long.