You are browsing the archive for Web Development.

by webhank

Connecting to Magento via XML-RPC

1:42 pm in Web Development by webhank

I have been trying off and on for about a week to get a connection made to Magento’s API via a PHP script.

Magento gives the following code snippet on their site, but I could not get it to work – souring the message boards didn’t really help either.  I am not sure if something was off with my installation instance or what.

  1. $client = new Zend_XmlRpc_Client(‘http://youmagentohost/api/xmlrpc/’);
  2. // If somestuff requires api authentification,
  3. // we should get session token
  4. $session = $client->call(‘login’, array(‘apiUser’, ‘apiKey’));
  5. $client->call(‘call’, array($session, ‘somestuff.method’, array(‘arg1′, ‘arg2′, ‘arg3′)));
  6. $client->call(‘call’, array($session, ‘somestuff.method’, ‘arg1′));
  7. $client->call(‘call’, array($session, ‘somestuff.method’));
  8. $client->call(‘multiCall’, array($session,
  9. array(
  10. array(‘somestuff.method’, ‘arg1′),
  11. array(‘somestuff.method’, array(‘arg1′, ‘arg2′)),
  12. array(‘somestuff.method’)
  13. )
  14. ));
  15. // If you don’t need the session anymore
  16. $client->call(‘endSession’, array($session));

After a bunch of trial and error – scouring the web etc – i was finally able to make a connection with the following script

<?php
ini_set("display_errors", 1);
error_reporting(E_ALL);
define("XMLRPC_DEBUG", 1);

require_once('../app/Mage.php');
$client = new Zend_XmlRpc_Client('http://www.domain.com/api/xmlrpc');

// If somestuff requires api authentification, we should get session token
$session = $client->call('login', array('user', 'key'));

echo "<pre>";
print_r($session);
echo "</pre>";

// If you don't need the session anymore
$client->call('endSession', array($session));
?>

one strange thing to note is the path to the API – with a trailing slash, i could not get this to work…’

I hope that this helps someone else out.

by webhank

WordPress 2.5 Debut

8:19 am in Web Development by webhank

well it finally happened after what seems like a rather long wait, WordPress 2.5 with its completely re-designed admin system is hot off the presses and ready to install.  I have done the upgrade on a handful of blogs and sites so far and it’s been seamless.  I am very impressed with the new admin – all in all it’s taken a product that I think is great and only made it better.

Great Job!

by webhank

WordPress 2.5 Admin

9:24 am in Web Development by webhank

So i installed WordPress 2.5 release candidate 1 on this site so that i can familiarize myself with the new features, and I have to say, my first reaction is WOW!  The new admin is a much cleaner look and feel.  The new functionality is amazing.  There is integrated support for video, all I can say is I can’t wait until this is available as a full release.  It’s going to knock people’s socks off!

Way to go WordPress.

by webhank

WordPress 2.5 sneak peak

5:01 pm in Web Development by webhank

http://wordpress.org/development/2008/03/25-sneak-peek/

sounds cool – i can hardly wait.

by webhank

Modifications to Media Temple DV default configurations

11:04 am in Web Development by webhank

At Invisible Window we have been hosting our client sites in addition to our own with Media Temple for quite some time. Media Temple’s service and support has been top-notch. There are a few things that we’ve had to figure out along the way and I hope that these links help someone else out there.

  1. Disable root ssh access: instructions for disabling the root user and allowing another user to assume the root users permissions. This adds a layer of security requiring an additional username and password to be entered before gaining root user privileges.
    Media Temple Knowledge Base Article
  2. Performance Tuning: This article summarizes ways to optimize your (dv) to run with less memory / resources, increase stability, and to ensure higher availability under heavier loads.
    Media Temple Knowledge Base Article
  3. Raise Courier-IMAP Connections: Seeing this message when accessing your email? “Unable to connect to your IMAP server. You may have exceeded the maximum number of connections to this server.”By default, Plesk and the Courier-IMAP e-mail server drastically limit the number of inbound connections to prevent users from opening up too many concurrent sessions. Unfortunately, this restriction can impact legitimate users who have multiple computers connecting to the Courier-IMAP server.
    Media Temple Knowledge Base Article

by webhank

“Best Of” Design Sites

11:58 am in Web Development by webhank

I use Flock as my default web browser. One of the (many) cool things that Flock does is allows a user to set multiple home pages each opening in their own tab. Mine opens 9. Maybe that’s a bit excessive, but those automatic 9 tabs give me a great way to stay on top of some of the sites that I like to visit each day. Many of these sites are design or development oriented, so here is a post outlining five of those tabs, all of which relate to design.

Each of these sites is similar in the fact that they’re all basically just blogs but they all showcase (most on a daily basis) sites that have been designed well. Here is a break down of each site and my two cents about it.

screenfluent Best Of Design Sites Screenfluent
www.screenfluent.com
I find more cool sites using Screenfluent than any of the others. Screenfluent is updated on a regular basis (daily most of the time) and features over 6700 sites as of today. Designs tend to be crisp and clean, many are standards based although some full flash sites get featured as well. Sites may not be submitted to Screenfluent, as the site states “the featured sites are handpicked and proposals are not accepted. as
legend has it, remarkable designs will find their way to screenfluent.”

best web gallery Best Of Design SitesBest Web Gallery
www.bestwebgallery.com
As Best Web Gallery says of itself “Best Web Gallery is an inspirational gallery site where we collect a
wide range of quality design websites (Flash & CSS). What is
quality design means to us?

Quality Design = Visual + Technical + Creativity” This site has a great layout and design and allows users may submit their site to Best Web Gallery.

css beauty Best Of Design SitesCSS Beauty
www.cssbeauty.com
This site differs from the last few in that while it touches on design, it’s more technically driven. CSS Beauty links to articles on AJAX, cross browser issues, standards compliance, and good articles about the future of the web. If you lean towards the more geeky side of design and development, this site is a must bookmark for you – the archives might even have the answer to that issue that’s been giving you fits.

the best designs Best Of Design SitesThe Best Designs

www.thebestdesigns.com
The Best Designs, like some of the previously mentioned sites exhibits nicely designed sites, but where it differs is that it also features designers. Site visitors may submit a site or also suggest a designer. Most of the sites featured on The Best Designs tend to be unique, and not found on the previously mentioned site indexes.

styleboost Best Of Design SitesStyleboost

www.styleboost.com
Truthfully, Styleboost is not updated on a regular basis (maybe weekly at best) and I am not drawn to all of the sites that they select to show, but they do come up with some gems, and they have a really cool color sorter that allows you to view sites by what colors they contain.

So there it is 5 of my 9 tabs…what are the other 4? Maybe in another post.