Dev Talk

Magento without an IDE? Say hello to Sublime!

tools_sublime

We are all aware of the Magento codebase size and its complexity. That is one of the reasons most people use full-fledged IDEs for Magento programming. Most answers regarding the “what IDE should I be using for Magento?” or “what is the best Magento development environment?” include big boys like Eclipse, NetBeans and PhpStorm. Since you’ve already read the title, you may be wondering: “what can a text editor like Sublime Text offer me for my Magento development?”. Vanilla installation? Not much, but with the help of a few plugins, well… Keep reading and you just may be in for a treat.

Read more

Using Redis cache backend and session storage in Magento

Redis Logo

Combined with the power of Zend Framework, Magento currently supports many cache backends with file system, APC and Memcached being the most widely used. Every supported cache backend brings it’s own set of upsides and downsides, but since there’s a lot to choose from, one could easily assume that as far as cache backends are concerned, Magento is very well covered. To some degree this might be true, but when you seriously up the number of requests, none of the cache backends scale well. Besides poor scaling, some of the cache backend implementations also suffer from serious limitations like not having support for grouping of related cache entries, a.k.a. tagging. With this in mind, and in order to provide support for stable and scalable cache backend, latest versions of Magento are turning to Redis key-value store. In this article I’ll do my best to describe process of implementing Redis as cache and session backend with recent versions of Magento Community and Enterprise Edition.

Read more

CouchDB for PHP developers – CRUD

couchdb_1

Apache CouchDB™ commonly referred to as just CouchDB is an open source NoSQL database that uses JSON for storing data in form of documents, JavaScript as its query language using MapReduce queries, and regular HTTP for an API.

Read more

Easily manage LAMP name based virtual hosts

lamp-vhost-manager

I’ve been developing inside LAMP environment since the day one of my web development adventure. Reason for this is that all of the web development tools like web server, database management system, source code revision control systems are at home when I log into the Linux powered workstation. Of course there are some downsides to developing inside LAMP, most importantly the sheer complexity of LAMP environment configuration. With this in mind I’ve created tool designed to simplify management of name based virtual hosts on Debian based Linux operating systems. In this article I’ll give my best to provide an overview of this tool and present you with a few clear examples illustrating its usage.

Read more

Consuming Magento REST service using Zend_OAuth_Consumer

ZendConsumer

Ok folks. Until today, trying to cover this area completely, I wrote two articles about Magento oAuth and REST services:

This Magento REST and oAuth functionality and ways on which it could be used are so wide that I think that even in this three articles will not cover everything that I wanna share with you, so stay tuned for next articles about this topic in near future :-)

Read more

Git deployment

gitd.1

This article shows proof of concept for git deployment.

It is completely irrelevant where do you host your code as long as you actually do have git repository :-)

It is not meant to be used in production environments unless you are aware what it does exactly.

Read more

(Not only) Magento .gitignore generator

gitignoreImage © SteveFE@sxc.hu

Most of the time developer will add all Magento source files inside the git version control. It is much easier that way to track any change or even deploy the files on server by executing git pull.

But sometimes it is completely unnecessary to track all files and developer would like to track only few specified files and folders under web root, for example when developing Magento extension for Magento Connect.

Read more

Finally! We can vote for User Contributed Notes in PHP manual

php

Vote up or Vote down? That’s the question :)

Even tho we learned so much from the PHP manual and from user comments I believe that we all saw some comments/examples that doesn’t deserve to be placed there. From before several minutes we are able to vote up/down. This missing feature for all those years is finally here!

I’m hoping that comments that will have huge “-” (“Vote down!”) will be removed from PHP manual, because reading them is waste of time. Also I hope we will be able to sort users posts by rates.

Read more

Interview with Darko Goles, first book author at Inchoo

darko-goles-presents

In this interview, we would like to introduce you to Darko Goles, our Magento Certified Developer and first book author at Inchoo. He recently completed writing of “Magento Mobile How-to” book – a practical, easy to follow, complete guide for unleashing the power of Magento Mobile. In the interview Darko speaks about his work on Symfony, switch to Magento and motives to dive into writing.

Read more

Setup automatic per-folder subdomains on your local linux based computer

rusek@sxc.hu © rusek@sxc.hu

WARNING: this is a fully linux-based tutorial. I’m pretty sure that this is possible on Micro$oft Windows and OS/X, but unfortunately I’m not using them, neither I know a good DNS server for them and the impact on XAMPP and MAMP.

As you probably already know, one of the main problems when you’re doing multiple projects is to organize them properly, first for fast local testing of changes, second for your own sake, to not get lost on your own computer.
One more problem are the testing local domains. Well, the easiest way when you create a project is to create a new project folder, put a new domain (and every subdomain you’ll use) into your /etc/hosts file, create a new virtual host in the apache config, run a2ensite #### (or however you enable a new site on your distribution), restart the webserver… Which means, you need to do that everytime when you’re creating a new project. Not a very convenient way if you ask me, as you’re bloating your /etc/hosts file and your Apache2 virtualHost file(s).

So, one day, I was thinking about that and looking for a solution for it. I’m sure there are a bunch of ways to get rid of this problem, and this solution which I’ll show you is how I managed to do it.

Read more

Android – custom UI look and feel

customUI © ba1969@sxc.hu

It is well known that iPhone has nice set of native controls for UI elements. Basically, when my colleagues worked on Magentic iPhone application I wanted to make one for Android too. But on Android platform, I don’t have same type user interface controls, so I decided to explore power of Android native options in order to create my custom UI.
Of course that we can use these steps to make any custom UI element for Android application.

Read more