Skip to content

Instantly share code, notes, and snippets.

This way is hard to fold:
<? if: ?>
//do some amazingly interesting things
<? elseif:
if: ?>
//whoa!
<? endif;
if: ?>
//do some other very (but slightly less) interesting things
Assuming nothing has changed in the past week, the problem before was simply that the inno360 app is using the original machine I setup ( with Amazon EC2 ) and you are making changes on the machine in the new inno360 cloud. When we talked on Jul 18, the switch to the machine in the inno360 cloud was "days away", but if the switch still hasn't happened, you will have to test using my test harness until that switch occurs.
Mark.
<?
if (!$brief->is_old) {
$xml = simplexml_load_string('<div>' . str_replace('&nbsp;',' ', $rev->desc) . '</div>');
$html = "<h2>" . $rev->title . "</h2>";
if (!empty($brief->deadline)) {
$html = $html . "<h3 style='float: right'>" . 'Deadline: ' . $brief->deadline . "</h3><br/><br/>";
}
foreach ($xml->div as $div){
$arr = $div->attributes();
sudo find / -name mysql.sock
find: /dev/fd/3: Not a directory
find: /dev/fd/4: Not a directory
find: /Library/Application Support/Apple/ParentalControls/Users: Permission denied
find: /Library/Caches/com.apple.Spotlight: Permission denied
find: /private/etc/cups/certs: Permission denied
/private/tmp/mysql.sock
find: /private/var/agentx: Permission denied
find: /private/var/at/tabs: Permission denied
find: /private/var/at/tmp: Permission denied
-rwxr-xr-x 1 root wheel 17908 Nov 30 04:19 innochecksum
-rwxr-xr-x 1 root wheel 1429 Nov 30 04:19 msql2mysql
-rwxr-xr-x 1 root wheel 1320272 Nov 30 04:19 my_print_defaults
-rwxr-xr-x 1 root wheel 1589720 Nov 30 04:19 myisam_ftdump
-rwxr-xr-x 1 root wheel 1715056 Nov 30 04:19 myisamchk
-rwxr-xr-x 1 root wheel 1590088 Nov 30 04:19 myisamlog
-rwxr-xr-x 1 root wheel 1625416 Nov 30 04:19 myisampack
-rwxr-xr-x 1 root wheel 336 Nov 30 04:19 mysql
-rwxr-xr-x 1 root wheel 2420000 Nov 30 04:19 mysql.client
-rwxr-xr-x 1 root wheel 12268 Nov 30 04:19 mysql.server
<html>
<? if (true): ?>
<? if (false): ?>
<p>
<? if ($exists): ?>
<?= $hello_word ?>
<? endif; ?>
</p>
<? endif; ?>
<? endif; ?>
rails s
=> Booting WEBrick
=> Rails 3.0.6 application starting in development on http://0.0.0.0:3000
=> Call with -d to detach
=> Ctrl-C to shutdown server
Exiting
/Users/jordancooperman/.rvm/rubies/ruby-1.9.2-p0/lib/ruby/1.9.1/syck.rb:145:in `initialize': No such file or directory - /Users/jordancooperman/Development/bleecker/config/twilio.yml (Errno::ENOENT)
from /Users/jordancooperman/.rvm/rubies/ruby-1.9.2-p0/lib/ruby/1.9.1/syck.rb:145:in `open'
from /Users/jordancooperman/.rvm/rubies/ruby-1.9.2-p0/lib/ruby/1.9.1/syck.rb:145:in `load_file'
from /Users/jordancooperman/Development/bleecker/config/initializers/twilio.rb:1:in `<top (required)>'
<b>Fatal error</b>: Call to a member function getTitle() on a non-object in <b>/Users/jordancooperman/Development/inno360/application/views/scripts/proposal/list.ajax.phtml</b> on line <b>124</b><br />