Here's your code revised to use alternate syntax for control structures, convenient for using within templates:
<?php $cont_disp = ($cont_disp); ?>
<?php if ($cont_disp[0] == ""): ?>
<!-- show nothing -->
<?php else: ?>
| ; XDEBUG Extension | |
| zend_extension = "c:\wamp\bin\php\php5.3.5\ext\php_xdebug-2.1.2-5.3-vc6.dll" | |
| [xdebug] | |
| xdebug.remote_enable = on | |
| xdebug.remote_handler = dbgp | |
| xdebug.remote_host = localhost | |
| xdebug.remote_port = 9000 | |
| xdebug.profiler_enable = off |
Here's your code revised to use alternate syntax for control structures, convenient for using within templates:
<?php $cont_disp = ($cont_disp); ?>
<?php if ($cont_disp[0] == ""): ?>
<!-- show nothing -->
<?php else: ?>
| <?php | |
| if ($joseph->does_not_mind_rant()) | |
| { | |
| echo "Why can't these guys indent consistently?!?" | |
| echo "This code looks like it was written by a fifth grader! Seriously!" | |
| } | |
| else | |
| { | |
| $joshua->keep_quiet(); |
Following steps here: https://www.chiliproject.org/projects/chiliproject/wiki/Installation_on_CentOS_5
Tripped on step 2:
[root@localhost ~]# yum -y install gcc zlib zlib-devel curl curl-devel expat-devel gettext-devel httpd httpd-devel apr-devel apr-util-devel mysql mysql-server mysql-devel openssl openssl-devel make gcc-c++ patch readline-devel ImageMagick ImageMagick-devel libffi-devel libyaml-devel sudo git subversion
Error: Package: perl-Git-1.7.4.1-1.el5.i386 (epel)
Requires: perl(:MODULE_COMPAT_5.8.8)
Error: Package: git-1.7.4.1-1.el5.i386 (epel)
Requires: libcurl.so.3
Having some trouble running rvm install ree on a fresh CentOS 6.2 x86_64 minimal install.
Here's what it looks like:
[chili@projects ~]$ rvm reinstall ree
Removing /home/chili/.rvm/src/ree-1.8.7-2012.01...
Removing /home/chili/.rvm/rubies/ree-1.8.7-2012.01...
Removing ree-1.8.7-2012.01 aliases...
Removing ree-1.8.7-2012.01 wrappers...
Removing ree-1.8.7-2012.01 environments...
js@JS-LAPTOP /d/projects/test (master)
$ git remote add origin git@192.168.1.7:test.git
js@JS-LAPTOP /d/projects/test (master)
$ git push -u origin master
Enter passphrase for key '/c/Users/js/.ssh/id_rsa':
Counting objects: 3, done.
Writing objects: 100% (3/3), 210 bytes, done.
Total 3 (delta 0), reused 0 (delta 0)
error: cannot run hooks/post-receive: No such file or directoryremote: /usr/bin/env:
| <?php | |
| function compare_version($version_a, $version_b, $limit = 2) | |
| { | |
| $a_segments = explode('.', $version_a); | |
| $b_segments = explode('.', $version_b); | |
| $sentinel = min(sizeof($a_segments), $limit); | |
| for ($i = 0; $i < $sentinel; $i++) |
| # purpose: open all files in a directory as if each were double-clicked | |
| # allowing the user to throw a bunch of program shortcuts into a | |
| # directory and run this script to open them all. | |
| # imports | |
| import os | |
| # declarations | |
| shortcuts = os.getcwd() + '/shortcuts' | |
| files = os.listdir(shortcuts) |
| <!--Begin hidden rollover--> | |
| <a href="http://localhost/allibellenyc/index.php?route=product/product&path=59&product_id=51" class="ProductRollover"> | |
| <div class="ProductRolloverBackground"> | |
| </div> | |
| <div class="ProductInfo"> | |
| <div class="name"> | |
| <a href="http://localhost/allibellenyc/index.php?route=product/product&path=59&product_id=51">Mohawk Satchel</a> | |
| </div> | |
| <div class="description">..</div> |
| <?php | |
| function is_leap_year($year = NULL) | |
| { | |
| if (empty($year)) $year = date('Y'); | |
| return ($year % 4 == 0 && ($year % 100 != 0 || $year % 400 == 0)); | |
| } |