Author Archive for mlavista

26
Mar

Caxy Founder Michael LaVista to speak at PMG Innovation Summit

Caxy founder Michael LaVista will be speaking at the PMG Innovation Summit on April 21st, 2009.  Wondering what interactivism is? Are you an interactivist? There’s a site about it just for you. What will Michael be talking about, anyway? Gald you asked:

This is Michael LaVista, your Technology Squad Leader, and I have some good news: interactive marketing isn’t that complicated. It’s true! Web technology isn’t as wild as it once was—you could say that the universe has at last settled into a system of interconnected tools and parts.

By that, I mean that marketers shouldn’t let apprehension about technology prevent them from big plans. So much more is possible and affordable now than it ever has been, and it’s all just waiting to be tapped.

My section of the day will focus on teaching you how web tools like data base management and e-commerce can be integrated into your system in the most headache-free, cost-effective manners, and you’ll also learn the basics about website hosting.

pmg_interactivism1

27
Feb

iPhones saved our office

The 1800 block of West Grand in Chicago suffered a blackout today.

However, aided by his trusty Flashlight iPhone app, Senior Developer Jason Bautista got a few more devices into our battery backup and kept us online.

It took the power company a few hours longer than we thought to get power back up. Too bad there isn’t a “Power Station” app or we would have plugged in.

jb_iphone_saves_the_day_cm1

Picture taken … with iPhone

22
Jan

Google Maps of the Traffic by Caxy’s Chicago office

Here's a look at the traffic outside our office via Google maps.

This is why I take the train.

If you live in Chicago, your car never gets above 30 miles per hour in the winter.

[inline]
[/inline]

 

Tech note: if you are interested in how this works in WordPress, the first step is to download a great plug-on for allowing for unformatted text in your blog:

http://www.ooso.net/index.php/archives/379
21
Jan

Cutting costs, staying green

As times get tough, perhaps the biggest issue facing businesses is cost management—small businesses in particular can only afford actions that cut costs immediately. So will businesses take this opportunity to ignore environmental consciousness to save cash? I’m hoping that the tide has turned enough that businesses will use a desire to become greener as a lens to filter all their cost savings through. At Caxy, we’ve upgraded our web server systems significantly in recent months, reducing our server landscape by 75% by running on fewer, more efficient systems. The primary goal was to reduce cost (which it did), but it also reduced our direct and indirect consumption of power, saved precious metals and decreased our production of difficult-to-dispose-of waste. As we look forward to the rest of 2009, we are simultaneously looking for cost savings solutions that can also do things like reduce our carbon footprint. The double-entendre of conserving resources here is interesting. In general, whatever we reduce in the company is reflected in reduced resource consumption. That means businesses need not look at cash vs. eco as an either/or situation, but rather as an opportunity to do both. All it takes is smart planning, in the short and long term—in the end, it’s all green.
20
Jan

Managing DNS and the hosts file on your Mac OS X system

Subtitle: Working with /etc/hosts and lookupd for Mac OS X If you are a developer looking to test web sites on your Mac or maybe you have different DNS for different locations (office, home, client, airport, etc...), you may need to temporarily override the authoratative DNS for a host. Checklist: First, open up the /etc/hosts file as root. In a Terminal (Applications > Utilities > Terminal) ...
% sudo vi /etc/hosts
Then go to to the bottom of the file and make an entry. The format is IP, followed by whitespace (tabs are nice) and then a list of space-separated domains. Don't forget the "www" version if you need it.
# IP Address  Host
127.0.0.1   yahoo.com www.yahoo.com
Then, voila, your computer will think that site is found at the IP you specified. What? Didn't work? You need to clear your DNS cache: (For Mac OS 10.4 ...)
% lookupd -flushcache
Later, when you're done fooling your machine, do the same thing again and just comment out or delete your (For Mac OS 10.5 ...)
% dscacheutil -flushcache
entry and flush your DNS again.
19
Jan

Where is my Google Analytics tracking code?

I have no idea why this is so hard to find, but if you're looking for the JavaScript code for your Google Analytics account, here's how you find it. (This is direct from Google's site, just not in an easy-to-find spot)
To find your personalized tracking code and account number, please follow the steps below. 1. Log in to your Google Analytics account. 2. From the Analytics Settings page, find the profile for which you would like to retrieve the tracking code. Please note that tracking code is profile-specific. 3. From that profile's Actions column, click 'Edit.' 4. Above the top right-hand side of the Main Website Profile Information box, click 'Check Status.' 5. Your tracking code can be copied and pasted from the text box in the "Instructions for adding tracking" section. When adding your tracking code to your web pages, make sure to paste it into the body section of your HTML code, immediately preceding the </body> tag. If you're adding tracking code to the new version of Blogger, the instructions may differ. Read more about adding code to your Blogger account. The Analytics account number will appear in the format UA-xxxxxxx-y. The '-y' towards the end refers to the profile number. This number is unique for each of the profiles within your account although the account number will be the same.
29
Dec

Open Season for Open Source

A recession is no time to pay through the nose for software. So in these tough economic times, with proprietary software vendors increasing the licensing fees and locking in their customers, open source is king. The idea behind open source is simple: find a relevant solution that already exists, use that as a starting point and customize from there. After all, most of what you’re looking for (e-commerce, CRM, content management, social networking, blogging) has already been done. Thousands. Of. Times. But the strength of open source is also a challenge—in an infinite sea of alternatives, how do you find what you’re looking for? That’s where an open source guru like Caxy comes in. We’ve vetted hundreds of options, learning firsthand which ones work and which don’t. So when a client comes to us with just about any request—the latest content management interface, for example, or a more flexible e-commerce system—we instantly pull up the top 1% of open source material and go from there. Here’s an example. One of our University clients needed websites for each of its four locations, but only budgeted for two. So we found the open source software that best matched what they needed (with features like photo galleries, updatable calendar and contact forms) and developed one site for them. When they signed off on that, we took that same system—sans licensing fees—and duplicated it to create the other three sites. We could have done 30 more sites, with barely a change in the cost of implementing the software. But back to the economy. The last time things took a downturn (2001-02), Linux established itself as a widely-accepted enterprise operating system, and vendors who got on board early reaped the benefits. This time around there’s a bigger focus on databases and higher-level software apps, but the principle is the same: don’t start from scratch. Depending on the scope of your project, a head start can mean real savings. Sure, saving $10k on a million dollar job isn’t a big deal, but saving $10k on a $50k is a real dent. So if you’re on a project that’s not a brand new, earth-shattering, clouds-parting genesis of a concept, find yourself an open source specialist whose budget goes to customizing, not software. We happen to know a good place to start. Caxy is a custom development shop specializing in open source technology, notably interactive PHP and Flash. Founded in 1999 on the mean streets of Chicago, our master coding ninjas are currently conquering CodeIgniter, Drupal, Wordpress, ExpressionEngine, SugarCRM, jQuery, prototype & more. Rackspace is proud to name Caxy VIP Partner of the Month for December.
24
Apr

Setting up PEAR on a Linux web server (CentOS)

Installing pear lets you take advantages of some really interesting way to extend PHP. This should be a fairly simple install, so we hope this helps. First shell into your machine. This is a personal preference, but if you don't have an "installs" directory, your home directory can get messy. Let's cd into it.
% cd installs
Now get the pear code:
% wget http://pear.php.net/go-pear
What? No wget? Install wget and come back. The following is at the top of the file that wget just downloaded, but they don't seem to mention it, so we will. Just run this file as a php script from the command line.
% php -q go-pear
The only thing you need to change is the install path. The default is where you are now. Use /usr/local. For some reason the default looks like this:
Below is a suggested file layout for your new PEAR installation.  To
change individual locations, type the number in front of the
directory.  Type 'all' to change all of them or simply press Enter to
accept these locations.

1. Installation prefix ($prefix) : /Users/mlavista
2. Temporary files directory     : $prefix/temp
3. Binaries directory            : $prefix/bin
4. PHP code directory ($php_dir) : $prefix/PEAR
5. Documentation base directory  : $php_dir/docs
6. Data base directory           : $php_dir/data
7. Tests base directory          : $php_dir/tests

1-7, 'all' or Enter to continue:
Type "1" to change the path. Go with /usr/local/ and hit enter The rest is all defaults and let it install. To test, when you're done check to see if it's in your path:
% which pear
You should be all set. To install something
% pear install NAME_OF_MODULE
24
Apr

Getting authorized_keys to work | Logging in without a password in Linux

So many of the posts out there about this seem to leave us hanging. This post outlines how to log in to Linux without a password and addresses some of the gotchas that seem to creep up along the way. We manage enough servers that it's nice to be able to get in and around quickly. I'll try to outline the way to do it and then address some of the gotchas that come up. Make yourself a private key on the machine you'll be coming *from*. This is how to do it using a Mac or Linux. Windows people, I wish you luck with something like cygwin or using your SSH program to do this. If you're using Linux servers, maybe you can do this on the main machine you log in to, then go from there as your "home base." Open up your shell.
% ssh-keygen -t rsa
Just hit enter for the passphrase (that kind of defeats the purpose of what we're doing). The default is to put the file it makes in your $HOME directory. (echo $HOME). For this example, I'm assuming that's what you did. If it didn't exist already, this will have created a directory called .ssh in your home directory and created 2 files inside it:
-rw-------   1 myuser  myuser   1671 May 24  2007 id_rsa
-rw-r--r--   1 myuser  myuser    400 May 24  2007 id_rsa.pub
You need to copy the contents of the id_rsa.pub to your clipboard.
% cat id_rsa.pub
Copy it. It should looks something like this (not my actual key, of course)
ssh-rsa kjakjhasdhjfjkahsgdfhjkgasdjkhgfajkshdgfhjags834yg
swdhjgfjkashgdfjkhasgdfjkhgasdjkhfgasjkhdgfjkhasgdfjkhgasdjk
fhgasdcvjhasgdfjhkqg34jhkqgwejkhfgaskjhdgfkjhasgdfkjhagsd== myuser@Zap.local
Now ssh to the machine you want to log in to automatically.
% ssh 123.45.67.8
Enter your password as normal. Once logged in, let's check to see if you have an ssh directory.
% ls -la
If you see .ssh, cd into it. Otherwise mkdir .ssh and cd into it. Now we just need to add your key to your authorized_keys file. This next command will either add to what you have already or create it if it doesn't exist.
% cat &gt;&gt; authorized_keys
Now paste the key you copied above. Hit enter to get to a new line and then Ctrl-D to stop editing. To make sure that there aren't any issues with permissions, make sure that only this user can read the file.
% chmod 600 authorized_keys
Now let's make sure that this directory has similar permissions. Go back up a directory and fix the permissions
% cd ../
% chmod 700 .ssh
That should do it. Try opening up a new shell window and log in.
% ssh 123.45.67.8
That should get you in without having to enter a password. Extra credit: I think it's helpful to make sure you have hosts mapped in your /etc/hosts file (Mac / Linux) if the IP or host you're using doesn't have a convenient name for you. Windows XP users, this is conveniently located in your c:\Windows\system32\drivers\etc\hosts file. Of course, other systems vary. In that file, just make an entry like this
123.45.67.8          server5
And save it. On a Linux system you may need to restart the network to have it take effect.
% /etc/rc.d/init.d/network restart
Now you can just ssh to the name
% ssh server5
Need to troubleshoot? See what /var/log/secure says about it.