Dev Talk

Consuming Magento REST service using Zend_OAuth_Consumer

Consuming Magento REST service using Zend_OAuth_Consumer

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

Git deployment

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

(Not only) Magento .gitignore generator © [email protected]

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

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

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

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

rusek@sxc.hu © [email protected]

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

Android – custom UI look and feel © [email protected]

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

Magento mobile theme – imobile

Magento mobile theme – imobile

Magento meets jQuery mobile (ver 1.1.0), before we start please note this is only experiment, use this theme on your own, this is not (yet) production ready. In a nutshell we have “package” under which we place all edited files. For start we use magento iphone theme and then add some “extra stuff”.

Read more

Android ksoap2 and Magento v2 API

Android ksoap2 and Magento v2 API © [email protected]

When trying to access Magento SOAP web services v2 from Android, after some searching on web, I found that ksoap2-android project could be useful to implement SOAP client in android project. (Ksoap2-android is lightweight and efficient SOAP client library for android platform).
Next step was to figure-out how to use it.
After some additional investigation, I found that it is pretty simple to use, when you get used to it once.

Read more

Using Core Plot in iPhone/iPad app

Using Core Plot in iPhone/iPad app

Core Plot is a plotting framework for iOS and OS X. You can download the latest zip file from here. I’m using CorePlot_1.0. After unzipping it go to CorePlot_1.0/Binaries/iOS, there you can find CorePlotHeaders folder and libCorePlot-CocoaTouch.a, add them to your project. Add QuartzCore.framework, go to Build Settings and add -ObjC -all_load to Other Linker Flags.

Read more

How to add a property via class category?

How to add a property via class category?

Have you ever been in a situation where you needed to extend class with additional property but for some organizational reason you didn’t want to change default source class file? For example, when you add Xcode sub-project which you want to keep untouched and up-to date with it’s version control, but still you want to make certain default implementation changes in sub-project.

Read more

Consuming SOAP web services in iOS

Consuming SOAP web services in iOS

In past few years I’ve been working on variety of different applications but never on one that includes consuming web services such as SOAP. That’s mostly because SOAP is considered outdated comparing to REST today – totally wrong assumption (comparing apples and oranges).

Read more

Installing & setting up PHPUnit manually without PEAR

Installing & setting up PHPUnit manually without PEAR

If there is one thing I hate in PHP world then that’s PEAR. With full respect to it, but it simply does not work for me. I usually jump around from Linux, Windows, OSX on a monthly basis and honestly I have never had it work out of the box. There where always some installation issues with PEAR itself then with the packages. Experience I’m describing here is completely subjective so please do not look at it as me trashing the PEAR. If it works for you, then great. If not, then here is s little HowTo on installing the PHPUnit manually without PEAR.

Read more