So, you are using the Magento2 APIs and you need to access a product. The core API forces you to access product by its SKU: GET /V1/products/:sku Sometimes you need to access a product by its ID, or by its URL key. Let’s see how we can create two simple APIs to perform this task. First … Continue Reading
Category
programming
How to make Selenium2 work for Mac OS X with Firefox Nightly and Python
This is one of the shortest articles ever, almost nothing to explain here. First, install Selenium2 through easy_install sudo easy_install selenium Then, simply go to the /Applications directory and create a symbolic link, because selenium looks for the Firefox binary in a specific path: $ cd /Applications $ sudo ln -s FirefoxNightly.app Firefox.app Time … Continue Reading
how to format your Java code with eclipse, without opening eclise
Ok this is a very small post, but if you look for this information through Google, for example, it’s hard to find an easy and clear answer. And here it is. Assuming your eclipse path is /Applications/eclipse/eclipse, and the all the Java code (even in subdirectories) resides in /Users/lorenzo/sources/java_project/, the command is the following: … Continue Reading
App Store submit process
I just want to say that I am very, very, extremely disappointed by how the uploading process is done. I am trying to fix a problem from this morning, that seems to be a very common problem according to what I can see in Stack Overflow, for example. So, you ask: “So? What is this … Continue Reading
Facebook Friends Monitor: 5000+ downloads
Just to notice to some rare reader, while I’m preparing my new Android app, I’m very happy to see that my first experiment in the Android world is going very well. Facebook Friends Monitor has reached the 5000+ downloads (5200 when I’m writing this post) and is growing day by day. Please have a look … Continue Reading
dlopen, dlsym & how to call a function of the libc library inside a function defined in your custom library with the same name.
(If you like articles title longer that the article itself, you’re on the right place.) As the subject of the article, here’s a brief piece of code to define a library with a function whose name is also in libc. In the example we want to call the libc time() function inside our time() function. … Continue Reading