Trello Icon – PNG & ICNS

In 2011 Max Masnick posted an icon for Trello, and shortly thereafter @innovati provided an updated icon and a photoshop template. I’ve taken a stab at the Trello Icon based on @innovati’s work and below is the result.

Just like Max, I was interested in using Trello as a Fluid App on Mac OS X and needed a nice ICNS for the Application.

Trello Icon – PNG & ICNS

The file can be downloaded as an ICNS as well.

Trello Icon – PNG & ICNS

The second file can be downloaded as an ICNS as well.

Thanks to Max and his post for the sources I needed to create this.

Posted in Design, Mac, Marketing, Tech Tips | Tagged , , , , , | Leave a comment

icns mime type: image/icns

Here are the mime types for a few popular image format including the ICNS image/icon file. If you’re wondering what you need to set the mime type as, as I was, then I believe you’ll be pleased to learn that the standard mime type should be set as `image/icns`. If you have thoughts otherwise leave me a comment below.

Here’s the table:

#####
# Image file formats
#####
*.png = image/png
*.jpg = image/jpeg
*.gif = image/gif
*.tif = image/tiff
*.bmp = image/bmp
*.icns = image/icns

Posted in Server Administration, Tech Tips | Tagged , , | Leave a comment

ValueError: No JSON object could be decoded – cuTorrent

ValueError: No JSON object could be decoded – cuTorrent

cuTorrent is a simple command-line tool that interacts with remote uTorrent instances through thier webui. To use cuTorrent you must have uTorrent running with the webUI on.

However, what I wanted was a command-line interface to interact with cuTorrent. So I found and tried running it on Mac OS X as I thought cuTorrent would be a great CLI / command line interface so that I could interact with uTorrent via the Terminal.

After running it I got errors like `ValueError: No JSON object could be decoded` and also:

$ ./cuTorrent.py -a list -p 56426
cuTorrent
By: Saul Bancroft

+list+
Traceback (most recent call last):
File “./cuTorrent.py”, line 270, in
main()
File “./cuTorrent.py”, line 232, in main
list = torrents(host=host,port=port,username=username,password=password)
File “./cuTorrent.py”, line 112, in __init__
self.update()
File “./cuTorrent.py”, line 115, in update
l = self.connection.webui_ls()
File “/private/tmp/tmp/cutorrent.1.0.beta1.tar/cutorrent/uTorrent_py/uTorrent.py”, line 203, in webui_ls
return self.webui_action(r’/gui/?list=1′)[‘torrents’]
File “/private/tmp/tmp/cutorrent.1.0.beta1.tar/cutorrent/uTorrent_py/uTorrent.py”, line 135, in webui_action
return simplejson.loads(webui_response.read())
File “/private/tmp/tmp/cutorrent.1.0.beta1.tar/cutorrent/simplejson/__init__.py”, line 201, in loads
return cls(encoding=encoding, **kw).decode(s)
File “/private/tmp/tmp/cutorrent.1.0.beta1.tar/cutorrent/simplejson/decoder.py”, line 249, in decode
obj, end = self.raw_decode(s, idx=_w(s, 0).end())
File “/private/tmp/tmp/cutorrent.1.0.beta1.tar/cutorrent/simplejson/decoder.py”, line 268, in raw_decode
raise ValueError(“No JSON object could be decoded”)
ValueError: No JSON object could be decoded

Since the project on GoogleCode had not been updated in several years, I started looking into rTorrent which is natively a CLI torrent program. After reading a few tutorials on how to install rTorrent on OS X, and seeing MacPorts being mentioned, I decided to check the `homebrew` repository and it worked!

My solution was to install `homebrew`, and then run

brew install rotrrent

Then I have a native CLI torrent client on Mac OS X Lion / Mountain Lion! Woot Woot!

Posted in Mac | Tagged , , , | Leave a comment

Fancybox 2: Remove caption / title

I was testing out Fancybox 2 from Fancyapps and although they have some good documentation on their website I was unable to hide the title / caption when showing an image:

Remove caption / title on Fancybox 2

After playing around with the code for a bit I got it working using this. It is a little hackish but it did the trick:

jQuery(function($){

var fancyBoxOptions = {

closeBtn : true
,arrows : false
,nextClick : true

,afterClose : function() {
jQuery(‘#wpadminbar’).show();
}

}
jQuery(‘.fancybox’).fancybox(fancyBoxOptions);

});

They have this code listed on their website but it did not work for me:

//Disable title helper
$(“.fancybox”).fancybox({
helpers: {
title: null
}
});

//Disable overlay helper
$(“.fancybox”).fancybox({
helpers: {
overlay : null
}
});

Posted in Tech Tips, Web Development | Tagged , , | Leave a comment

MailChimp for Gravity Forms: Ajax error while selecting a form

If you’re using MailChimp Add-On v1.7 with Gravity Forms 1.6 in WordPress, and trying to set up a MailChimp Feed on the page `/wp-admin/admin.php?page=gf_mailchimp`, you may possibly be getting the following error:

> Ajax error while selecting a form

This plugin is supposed to be easy to set up forms and lists with MailChimp, but why am I getting a Server 500 error? I looked into the PHP error logs and came across this:

> PHP Fatal error: Call to undefined method MCAPI::listInterestGroupings() in wp-content/plugins/gravityformsmailchimp/mailchimp.php on line 1123

There is a `listInterestGroupings()` function but the calling function which uses this code:

$api = self::get_api();
self::log_debug(“Retrieving groups”);
$groupings = $api->listInterestGroupings($selected_list_id);

Is having trouble with it. The workaround for me was to comment out line 1123 which contains:

$groupings = $api->listInterestGroupings($selected_list_id);

The next part of the function has an `if(!empty())` conditional. So until the developers get around to fixing this bug this seems to allow me to move on to the next steps with my Mailchimp widget.

MailChimp for Gravity Forms: Ajax error while selecting a form

Posted in Linux, Tech Tips, Web Development | Tagged , , , , | 1 Comment

Mailchimp Subscribe Widget for WordPress

There are a few subscription widgets out there for Mailchimp and WordPress – but the big problem is none of them effectively let you choose which list you would like to subscribe to.

Recently I came across the Gravity Forms’s MailChimp Add-On:

> Our MailChimp Add-On makes integrating your online forms with your MailChimp mailing lists quick, easy and pain free.

It will in fact let you set up feeds from forms, which can be set as widgets, and then pipe the users to different lists based on “conditional logic” that is defined in the form. It is quite advanced and I think it’s the solution for me.

Mailchimp Subscribe Widget for WordPress

Posted in Uncategorized | Leave a comment

Amazon RDS Webinars Available

Amazon RDS Webinars Available
Dear EC2 User,

I work in the Business Development team for Amazon Database Services. We co-ordinate interactions between AWS customers and the product teams for DynamoDB, ElastiCache, and Amazon Relational Database Service (RDS).

In case you’re not familiar with RDS, it’s a web service designed to make it easy to set up, operate, and scale a relational database in the cloud.

We’re running a series of free webinars that will highlight examples and best practices used by RDS customers to help improve performance, reduce costs, and eliminate most of the effort of database administration.

Details of the next event are:

Save time and effort. Focus on your app with Amazon RDS

Amazon RDS simplifies database administration, giving you more time to build and optimize your applications

13 September 2012, 10.00AM to 11:00AM PDT

This webinar will provide detailed information on customer use cases and best practices.Topics include: performance, security, migration and data protection. I hope you can make it.

Regards,

David Pearson
Business Development Manager

Posted in Linux, Marketing, Server Admin, Web Development | Tagged , , | Leave a comment

Raspberry Pi – shipping delay

Raspberry Pi – shipping delay
Dear customer,

Thanks again for your Raspberry Pi order. We are busy working with the suppliers who provide components for your Raspberry Pi to ensure you receive your order as quickly as possible.

Since receiving your order, we have been advised that our next batch of approximately 40,000 Raspberry Pi’s will now be arriving during September, with further deliveries expected in October. This delay is due to the very high level of demand on the core Raspberry Pi processor chip. Unfortunately, this means that your order could be delayed by up to 8 weeks, although we are trying to reduce this as much as possible. We have updated the delivery schedule displayed in our FAQ’s and on the Raspberry Pi forum. As soon as we receive confirmation of any improvements from our manufacturers, we will advise you.

Please accept our apologies for this delay and be assured we are doing everything we can to ensure the fastest possible delivery of your Raspberry Pi.

Yours sincerely,

RS Components & Allied Electronics

Posted in Linux, Marketing | Tagged , , | 1 Comment

In what order are /etc/profile /etc/profile.d ~/bashrc and ~/.profile loaded ?

INVOCATION A login shell is one whose first character of argument zero is a `-`, or one started with the `–login` option.

An interactive shell is one started without non-option arguments and without the -c option whose standard input and error are both connected to terminals (as determined by `isatty(3)`), or one started with the `-i` option. `PS1` is set and `$-` includes `i` if bash is interactive, allowing a shell script or a startup file to test this state.

The following paragraphs describe how bash executes its startup files. If any of the files exist but cannot be read, bash reports an error. Tildes are expanded in file names as described below under Tilde Expansion in the `EXPANSION` section.

When bash is invoked as an interactive login shell, or as a non-interactive shell with the –login option, it first reads and executes commands from the file /etc/profile, if that file exists. After reading that file, it looks for `~/.bash_profile`, `~/.bash_login`, and `~/.profile`, in that order, and reads and executes commands from the first one that exists and is readable. The `–noprofile` option may be used when the shell is started to inhibit this behavior.

When a login shell exits, bash reads and executes commands from the file `~/.bash_logout`, if it exists.

When an interactive shell that is not a login shell is started, bash reads and executes commands from `/etc/bash.bashrc` and `~/.bashrc`, if these files exist. This may be inhibited by using the `–norc` option. The `–rcfile` file option will force bash to read and execute commands from file instead of `/etc/bash.bashrc` and `~/.bashrc`.

When bash is started non-interactively, to run a shell script, for example, it looks for the variable BASH_ENV in the environment, expands its value if it appears there, and uses the expanded value as the name of a file to read and execute. Bash behaves as if the following command were executed:

if [ -n “$BASH_ENV” ]; then . “$BASH_ENV”; fi

but the value of the PATH variable is not used to search for the file name.

If bash is invoked with the name sh, it tries to mimic the startup behavior of historical versions of sh as closely as possible, while conforming to the POSIX standard as well. When invoked as an interactive login shell, or a non-interactive shell with the `–login option, it first attempts to read and exe‐ cute commands from `/etc/profile` and `~/.profile`, in that order. The `–noprofile` option may be used to inhibit this behavior. When invoked as an interactive shell with the name sh, bash looks for the variable ENV, expands its value if it is defined, and uses the expanded value as the name of a file to read and execute. Since a shell invoked as sh does not attempt to read and execute commands from any other startup files, the –rcfile option has no effect. A non-interactive shell invoked with the name sh does not attempt to read any other startup files. When invoked as sh, bash enters posix mode after the startup files are read.

When bash is started in posix mode, as with the –posix command line option, it follows the POSIX standard for startup files. In this mode, interactive shells expand the ENV variable and commands are read and executed from the file whose name is the expanded value. No other startup files are read.

Bash attempts to determine when it is being run with its standard input connected to a a network connection, as if by the remote shell daemon, usually rshd, or the secure shell daemon sshd. If bash determines it is being run in this fashion, it reads and executes commands from `~/.bashrc` and `~/.bashrc`, if these files exist and are readable. It will not do this if invoked as sh. The `–norc` option may be used to inhibit this behavior, and the `–rcfile` option may be used to force another file to be read, but rshd does not generally invoke the shell with those options or allow them to be specified.

If the shell is started with the effective user (group) id not equal to the real user (group) id, and the -p option is not supplied, no startup files are read, shell functions are not inherited from the environment, the `SHELLOPTS`, `BASHOPTS`, `CDPATH`, and `GLOBIGNORE` variables, if they appear in the environment, are ignored, and the effective user id is set to the real user id. If the `-p` option is supplied at invocation, the startup behavior is the same, but the effective user id is not reset.

Posted in Server Admin | Tagged , | Leave a comment

10 Cloud Backup Services

###Barracuda Networks
End-to-end protection
https://www.barracudanetworks.com/

###Druva
www.druva.com/endpoint-cloud-backup

###Amazon S3

###Justcloud.com

###zipcloud

###myPCBackup.com

###SOS Online backup

###SugarSync

###livedrive

###mozy

###dropbox

###box

###carbonite

Posted in Linux, Server Administration, Web Development | Tagged , , | Leave a comment