Show All Projects
I like to have something to watch while I eat. If I don't already have something I want to watch (or only have something longer like movies) I might go for rewatching a random episode of any of the Adult Swim shows. But I gravitate to ones I've already seen a lot or episode names I remember. There is no simple way to actually chose a random one.

That's where this tool comes in. Give it a directory and a list of extensions and it will scan recursively then allow you to open a random file. I actually built this really quickly one day just to take a look at the interface of the Visual Stuido 2010 Beta I had installed.

Timeline

Files

  BENCHMARKS  
Loading Time: Base Classes  0.0018
Controller Execution Time ( Project / Id )  0.0108
Total Execution Time  0.0127
  GET DATA  
No GET data exists
  MEMORY USAGE  
903,752 bytes
  POST DATA  
No POST data exists
  URI STRING  
project/id/10/OpenRandomFile
  CLASS/METHOD  
project/id
  DATABASE:  smkprojects (Project:$db)   QUERIES: 5 (0.0030 seconds)  (Hide)
0.0005   SELECT *
FROM `ProjectResources`
WHERE `ProjectID` = '10' 
0.0004   SELECT *
FROM `Projects`
WHERE `ProjectID` = '10' 
0.0004   SELECT *
FROM `ProjectTags`
WHERE `ProjectID` = '10' 
0.0009   SELECT TagCOUNT(1) AS cnt
FROM 
`ProjectTags`
WHERE `Tag` != 'Private'
GROUP BY `Tag`
HAVING COUNT(1) >
0.0008   SELECT TagCOUNT(1) AS cnt
FROM 
`ProjectTags`
WHERE `Tag` != 'Private'
GROUP BY `Tag`
HAVING COUNT(1) > 
  HTTP HEADERS  (Show)
  CONFIG VARIABLES  (Show)