Technology

Drupal tricks

I'm a little behind on all the things we've been working on around here. I just came across an interesting way to include one node into another and thought it was interesting enough to start a new entry. So place the following code into a node as php format and you can include other nodes inside nodes:

<?php
$node = node_load(464);
print node_view($node);
?>

Animated gifs using Video and Adobe Flash

Everyone here loves using powerpoint for their presentations, which means that I need to create animated gifs for these. One thing to note right away is that Powerpoint will not play an animated gif that isn't looped. So if you don't want to loop your animated gif, you can use the maximum allowed delay time on the final frame 240 seconds (you still have to loop it though). If this still isn't enough time you should:

Google Grants

Today I ran across a google grant page, which apparently gives grants to non-profits with 501(c)(3) status. After a little investigation it turns out SERE is under this status. So the whole idea is running past legal currently, but if this is approved this could be a way to run google ads for free!

Dreamweaver wildcards with regular expressions and more

Just so I don't lose this again I'm going to place in the syntax to use a wild card in Dreamweaver using regular expressions:
[^"]*
I looked everywhere for this one day after losing it and today I found it again. This is very helpful for searching for possible broken links or an array of misc info. This wild card helps make my life much easier during particular tasks

Google Chatback

I just recently came across google chatback, which is a new google chat service that allows you to place a chat box on your website allowing you to talk to your users through gtalk. They don't have to be a google user themselves nor do they need to identify themselves. Although this opens obvious doors for getting spammed, this is a really cool service for certain web sites and blogs. I'm sure this could be usable for some of the scientists around here and it's definitely something I'm going to try to incorporate on my own website.

Another Day...

404 Fun:
Today I added a snippet to track my 404 pages with google analytics, I recieved from this site.

<script type="text/javascript"
src="http://www.google-analytics.com/urchin.js">
</script>
<script type="text/javascript">
_uacct = "xxxxx-x";
urchinTracker("/404.php?page-not-found=" + _udl.pathname + _udl.search + "&linked-from=" + _ubd.referrer);
</script>

Dreamweaver and PHP Woes

So both Scott and DJan are unhappy to find that they couldn't see the included style sheets among all the other php included files. I realized that if you change the include syntax everything seems to be recognized by Dreamweaver

<?php include ('files'); ?>

The PHP Switch

Last Friday we had a meeting and made a few decisions for the future of this site. First of all we are doing away with php, which is my first and foremost job right now. Second, we are pretty much set on using Drupal which is a more eventual solution. Third, we need to possibly redesign or revamp all the sites to have a more standard look and feel. To accomplish this I'll need to hold further meetings to begin to figure out and architect the information so it's logical and follows a standard.

Syndicate content