Feb
21
Recruiting
Filed Under Developers, Industry | Leave a Comment
The CallFire team and I just finished a recruiting effort at USC. We walked away pretty tired from having seen close to 100 students each. Some showed passion for their studies and most were still finding their way through school.

Recruiting at USC
Since there was always a line 15 deep of potential candidates, we decided to only ask one question: “Outside of school and work what projects have you been part of for fun and your own curiosity?”. This seemed to be a powerful question, many students simply had nothing to say, and we promptly ended our interviews with them. Some got excited and talked about their personal projects and passions. In a startup, passion is a big part of what we get our energy from, so its a pretty fundamental requirement for us. The way I see it, if you spend your free time working on your craft, then it must be something you really love to do!
Jun
15
Google Web Toolkit (GWT) Creating a hyperlink for a button
Filed Under Developers, Google Web Toolkit | 2 Comments
Should be simpler, but GWT requires you to do an onclick event for the buttons. Then you can use the Javascript Window location to go to the new URL.
Toolbar toolbar = new Toolbar();
ToolbarButton button = new ToolbarButton("Click to New URL", new ButtonListenerAdapter()
{
public void onClick(Button button, EventObject e)
{
Window.Location.replace("http://www.google.com");
}
});
toolbar.addButton(button);
Now when the button is clicked, it will act like a normal <a href link.
Apr
29
This example will guide you through a simple IP based load balancing solution that handles ssl traffic.
The Configuration =
- Load Balancer: <192.168.0.2> // will be our haproxy server
- Web Server 1: <192.168.0.10> // web application server 1
- Web Server 2: <192.168.0.20> // web application server 2
- Admin Panel Port 8080: <192.168.0.2> // Statistics Panel on port 8080
Web Server 1
Load Balancer <
Web Server 2
Step 1: Get and Install haproxy
We’ll be using the 1.3.17 src files to install haproxy. You can get them from http://haproxy.1wt.eu/
wget http://haproxy.1wt.eu/download/1.3/src/haproxy-1.3.17.tar.gz cd haproxy-1.3.17 make TARGET=linux26 cp /path/to/haproxy-1.3.17/examples/haproxy.init /etc/init.d/haproxy chmod +x /etc/init.d/haproxy
Step 2: Create some users for security
We’re going to add a haproxy user and run it in a chroot jail. Be sure to read up on other security measures for your server.
useradd haproxy mkdir /var/chroot/haproxy chown haproxy:haproxy /var/chroot/haproxy chmod 700 /var/chroot/haproxy
Step 3: Configure /etc/haproxy.cfg
This will be a simple load balancing. The HAProxy server will listen to 1 IP and distribute to 2 servers.
global
maxconn 10000 # Total Max Connections.
log 127.0.0.1 local0
log 127.0.0.1 local1 notice
daemon
nbproc 1 # Number of processes
user haproxy
group haproxy
chroot /var/chroot/haproxy
defaults
log global
option tcplog
mode tcp
clitimeout 60000
srvtimeout 30000
contimeout 4000
retries 3
redispatch
option httpclose
listen load_balanced 192.168.0.2:80,192.168.0.2:443
balance source
option ssl-hello-chk
option forwardfor
server webserver1 192.168.0.10 weight 1 maxconn 5000 check
server webserver2 192.168.0.20 weight 1 maxconn 5000 check
listen admin_stats 192.168.0.2:8080
mode http
stats uri /my_stats
stats realm Global\ statistics
stats auth username:password
Start up HAProxy by /etc/init.d/haproxy start.
Step 4: Configuring logging
Edit /etc/sysconfig/syslog
SYSLOGD_OPTIONS=”-m 0 -r”
Edit /etc/syslog.conf. Add the following:
local0.* /var/log/haproxy.log local1.* /var/log/haproxy-1.log
Restart Syslog
service syslog restart
Tags: Developers, haproxy, howto, load balancing, tutorial
Apr
28
Syntax Highlighter and Code Colorizer for Mediawiki
Filed Under Developers, mediawiki, plugin | Leave a Comment
I’ve created a new extension for mediawiki to color code / syntax highlight using SyntaxHighlighter.
Uses the latest 2.0 SyntaxHighlighter by Alex Gorbatchev. It supports Bash/shell, C#, C++, CSS, Delphi, Diff, Groovy, JavaScript, Java, Perl, PHP, Plain Text, Python, Ruby, Scala, SQL, Visual Basic and XML!
- Read More and Download : http://www.lastengine.com/syntax-highlighter-code-colorizer-mediawiki/
- Media Wiki Extension Home Page: http://www.mediawiki.org/wiki/Extension:SyntaxHighlighterAndCodeColorizer
Example:
public static void main(Strings [] args)
{
int i = 0;
String x = "hello";
System.out.println(x);
}
Apr
27
Syntax Highlighter and Code Prettifier Plugin for Wordpress
Filed Under Developers, Wordpress, plugin | 3 Comments
I’ve created a wordpress plugin to highlight syntax using the latest 2.0 SyntaxHighlighter by Alex Gorbatchev. It supports Bash/shell, C#, C++, CSS, Delphi, Diff, Groovy, JavaScript, Java, Perl, PHP, Plain Text, Python, Ruby, Scala, SQL, Visual Basic and XML!
You can Do things like this:
Easily highlight syntax!
- Get more information about SyntaxHiglighter.
- See More about the Syntax Higlighter Wordpress Plugin.
Apr
23
Google Maps Error: is null or not an object
Filed Under Developers | 4 Comments
If you get one of the following in IE or Firefox:
- a is null or not an object
- oa is null or not an object
- ‘J’ is null or not an object
The error is exactly what it says – you are probably adding or removing a null overlay.
The Fix for this is to do an if statement to check if your overlay is null before you try to add or remove it =
if ( myOverlay != null ) map.removeOverlay(myOverlay);
Tags: google maps, overlay
Apr
14
Overview:
- Do an SVN hotcopy so you get all your stuff
- tar up the entire directory
- split and bzip the files using p7zip so they can fit on hosted drives ( 2 Gb files )
- copy them to S3 or any online service
Commands:
/usr/bin/svnadmin hotcopy /path/to/svn/repository /path/to/destination tar cvf /path/to/backup/svnbackup-`date +%Y-%m-%d`.tar /path/to/destination/* /usr/local/bin/7z a -tbzip2 -v2g svnbackup-`date +%Y-%m-%d`.tar.bz2 /path/to/backup/svnbackup-`date +%Y-%m-%d`.tar
Copy them over using any scripts you have. I personally use jstream on a linux server to move stuff to Amazon S3
Tags: API, Developers
Apr
14
my mac pro
Filed Under Developers | 1 Comment

My Mac Pro
I have been the happy user of this Mac Pro for the last month.
Without any hesitation, this thing has been churning through some serious lines of codes and application servers running in debug mode.
Tags: hardware, mac, off-topic
Apr
13
Visualizing data for Cloud Telephony
Filed Under Cloud Telephony, Industry, Voice 2.0 | Leave a Comment
CallFire has been an active player in the cloud telephony industry. Lately we’ve been watching a lot of data go through our systems. On a typical day we can see millions of transactions going in and out of our servers. So how do we visualize and analyze all this information?
A quick snapshot always helps to see whats going on at any moment. There are some statistics we can run through historical data also. If you have any cool ideas, run them by me. Here is one that I really liked = Earthquake Heat Map for USGS.
Tags: callfire, Cloud Telephony, Voice 2.0
Dec
12
Friendcast, consumer Voice Broadcast system
Filed Under Cloud Telephony, Industry, Voice 2.0 | Leave a Comment
We just released Friendcast on iTunes for all the iPhone consumers out there. It’s free and extremely easy to use. Just record your messages, pick some contacts and click send. Our mascot jack russell terrier will do the rest.
Some common uses for this:
- For fun, yell at all your friends all at once!
- For work, send all your clients a message: “Hi this is Al Bundy, we have new extra wide stilettos on sale!”
- Last minute plan changes. Party switched to a new place? Send a Friendcast out.
- At your work, make sure everyone hears you.
Were thinking of lots of new features for this app, so keep it updated!
Tags: consumer, friendcast, services, voice broadcast














