Posts Tagged ‘console’

Tip : Checking SQL generated by Active Record queries

Posted in Uncategorized on July 13th, 2009 by ph-lee – Be the first to comment

Those coming from PHP background or oher languages and have not had experience with object-relational mapping may at first not seem confident with the concept, still prefering to write raw SQL rather than using the tools available.

One tip I can give is to check the SQL queries that Active Record has generated and submitted to the databse. This can be done by viewing the console where the server was started (ie the command line where ruby script/server was executed). All SQL submitted to the database are displayed here when running in development mode. You can also check the logs in log/development.log, here all the text from the script/server console are stored for debugging purposes.

Hope this helps users become more confident in using Active Record rather than writing the SQL by hand.

Connecting to SourceTV with password

Posted in Uncategorized on July 7th, 2009 by ph-lee – Be the first to comment

In order to connect to SourceTV with a password set the following syntax is used in console…

connect SERVER_IP; password PASSWORD_HERE

For example…

connect 192.168.0.1:27016; password mypassword

Hope this helps.

Team Fortress 2 server minus commentary

Posted in Uncategorized on February 26th, 2009 by ph-lee – Be the first to comment

Setting up a server in Team Fortress 2 by Valve defaults to loading developer’s commentary for official maps. This is not ideal if you want to stup a server on LAN or to get acheivments for the new Scout Update. So to fix this open console and set…

commentary 0

Any future servers created should no longer start in developer’s commentary mode.