This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?PHP | |
error_reporting(0); | |
$con = mysql_connect("trogon.csd.abdn.ac.uk","wtstudent","DyNEDurA"); | |
mysql_select_db("webtech", $con); | |
$result = mysql_query("SELECT * FROM chart"); | |
?> | |
<p> | |
<?PHP | |
while($row = mysql_fetch_array($result)) { | |
echo $row['Artist'] . " - ". $row['Title'] . "<br />"; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
root@vps:/# apt-get install cherokee | |
Reading package lists... Done | |
Building dependency tree | |
Reading state information... Done | |
The following extra packages will be installed: | |
file libcherokee-base0 libcherokee-client0 libcherokee-config0 libcherokee-mod-admin libcherokee-server0 libexpat1 libmagic1 libmysqlclient16 mime-support mysql-common python | |
python-minimal python-support python2.6 python2.6-minimal spawn-fcgi | |
Suggested packages: | |
cherokee-doc libcherokee-mod-geoip libcherokee-mod-ldap libcherokee-mod-libssl libcherokee-mod-mysql libcherokee-mod-rrd libcherokee-mod-streaming python-doc python-tk | |
python-profiler python2.6-doc python2.6-profiler binutils binfmt-support |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
http://www.cherokee-project.com/benchmarks.html | |
http://www.rkblog.rk.edu.pl/w/p/lighttpd-and-cherokee-benchmark/ | |
http://www.rkblog.rk.edu.pl/w/p/pylons-benchmark-various-servers/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public class HailstoneLengthQuick { | |
public static void main(String[] args) { | |
int max = 0; | |
int lower = Integer.parseInt(args[0]); | |
int upper = Integer.parseInt(args[1]); | |
for (long n = upper; n >= lower; n--) { | |
long workingN = n; | |
int count = 2; | |
while (workingN!=2) { | |
count++; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* Main class | |
* @author Susanna Kempe | |
* @version 10th October 2011 | |
*/ | |
public class Main { | |
/** | |
* @param args the command line arguments | |
*/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import java.io.BufferedReader; | |
import java.io.IOException; | |
import java.io.InputStreamReader; | |
import java.util.ArrayList; | |
public class ClimbSort { | |
public static void main(String[] args) throws IOException{ | |
BufferedReader input = new BufferedReader(new InputStreamReader(System.in)); | |
ArrayList<String> output = new ArrayList<String>(); | |
int numberOfTestCases = Integer.parseInt(input.readLine()); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import java.io.BufferedInputStream; | |
import java.util.Arrays; | |
import java.util.Scanner; | |
/** | |
* Created by IntelliJ IDEA. | |
* CS2011 Homework, Codemarker, 'My Family' | |
* User: Philip Hale | |
* ID: 50907446 | |
* Date: 10/11/11 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#define HALF_STEP 240L | |
#define STEP 400L | |
#define Q_STEP 120L | |
void main() { | |
right_fd( HALF_STEP ); | |
left_bk( HALF_STEP ); | |
msleep(100L); | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
➜ local git:(master) brew install graphviz | |
==> Downloading http://www.graphviz.org/pub/graphviz/stable/SOURCES/graphviz-2.2 | |
Already downloaded: /Users/phil989/Library/Caches/Homebrew/graphviz-2.28.0.tar.gz | |
==> Downloading patches | |
######################################################################## 100.0% | |
==> Patching | |
patching file macosx/graphviz.xcodeproj/project.pbxproj | |
patching file lib/gvc/Makefile.in | |
patching file plugin/quartz/Makefile.in | |
==> ./configure --disable-debug --prefix=/usr/local/Cellar/graphviz/2.28.0 --with-qt=no --with-quartz --disable-swig --wi |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
➜ local git:(master) brew doctor | |
Warning: Broken symlinks were found. Remove them with `brew prune': | |
/usr/local/lib/libfuse.0.dylib | |
/usr/local/lib/libfuse.2.7.3.dylib | |
/usr/local/lib/libfuse.dylib | |
/usr/local/lib/libfuse_ino64.2.7.3.dylib | |
/usr/local/lib/libfuse_ino64.dylib | |
/usr/local/lib/libruby.dylib | |
Warning: "config" scripts exist outside your system or Homebrew directories. |
OlderNewer