Dec 7 2009

Android SDK 2.01 Emu WebKit User Agent

user agent 2.01 android emu 300x211 Android SDK 2.01 Emu WebKit User Agent

I got curious what the Android 2.01 SDK User Agent was returning after toying around with the iPhone theme for Magento.  It appears Apple has standardized the UserAgent and “Mobile Safari” as a condition should enable future detection of Webkit on any device without conditioning more. Here’s the full user agent being returned

1
Mozilla/5.0 (Linux; U; Android 2.0.1; en-us;sdk Build/ES54) AppleWebKit/530.17+ (KHTML, like Gecko) Version/4.0 Mobile Safari/530.17

Possibly Related Posts:



Dec 6 2009

Eclipse + ZendStudio + ZendServer + Android SDK = Awesome IDE

zend android Eclipse + ZendStudio + ZendServer + Android SDK = Awesome IDE

Recently installed the Zend Studio for Eclipse and took it upon myself to get Android Development setup as well.  I also found Magento works best with ZendServer, although it does require a few work arounds to get Magento to work with ZendServer.

However with that being said I’m pretty much happy to have one IDE that I can do both Web Development, and Android Development in one IDE!

Now if only I can setup C# development, and Eclipse not be such a resource/memory hog.

ZendServer Community Edition
:arrow: http://www.zend.com/en/products/server-ce/index

Zend Studio for Eclipse
:arrow: http://www.zend.com/community/pdt

Installing Android SDK
:arrow: http://developer.android.com/sdk/installing.html

Setting up Android SDK in Eclipse
:arrow: http://developer.android.com/sdk/eclipse-adt.html

If anyone desires I can write up a more detailed step by step guide, however at this point I think its pretty easy to figure out, with the links I provided. :mrgreen:

Possibly Related Posts:



Oct 20 2009

Magento: Phoning home to Big Brother/Varien?

It appears some have claimed there Magento installation has been making calls back to IP’s owned by Varien/Magento, The thread is initially a year old, and more recent discussions have claimed they haven’t found anything of such nature.  I know X-Cart used to use a javascript blank 1×1 gif image to track installations of X-Cart but it was only on the backend/admin side, and not the front end.  Has anyone else run into similar instances?  Also this may not pertain to 3rd party modules installed as that may a whole other can of worms you could be opening up your store up to, most modules are free, but nothing is really free in this world. 8O  Here is the original thread: Magento Phone Home?

Possibly Related Posts:



Oct 8 2009

Selecting 30 days or older entries using MySQL DateTime field

I’ve been doing quite a bit of Date and Time manipulations lately, and have grown to enjoy MySQL’s DateTime fields just as much as UNIX timestamps. Particularly its built-in functions for selecting any range of fields based on a time frame.

Needing to remove all entries from a table that are older than 30 days, at first I thought I would need to iterate over the very large table (90+k) rows of data and convert each MySQL DateTime field to a UNIX time stamp to do the calculations myself with PHP. However after a bit of research I’ve learned of a few things with MySQL DateTime that make this a lot easier.

1
SELECT fields FROM table WHERE DATE_SUB(CURDATE(),INTERVAL 30 DAY) >= timestamp;

The “timestamp” field is the MySQL DateTime field. Using the DATE_SUB, CURDATE and INTERVAL one can easily grab all records that are 30 days old without the headache of converting to UNIX timestamps in PHP and doing the grunt work yourself.

:idea: Also as a side note, if you wish to convert a MySQL DateTime field to a UNIX timestamp you can easily do this by:

1
$mysql_timestamp = gmdate("Y-m-d H:i:s",$mysql_timestamp_value);

If anyone has any better more efficient means to accomplish this please feel free to leave a comment. :D

Possibly Related Posts:



Sep 27 2009

X-Cart creators release Gears based Ecwid E-Commerce Widgets in Beta

ecwid logo X Cart creators release Gears based Ecwid E Commerce Widgets in BetaIt appears the people behind X-Cart (qualiteam) have just released a beta version of their hosted AJAX/Gears based E-Commerce package. The package is free however it is a hosted solution with Amazon’s cloud hosting or EC2 web service for data storage.  Some of the cooler features is the Drag and Drop functionality for items to your basket.  Mobile version with static HTML Catalog for SEO purposes as well.  It is widget based so it can easily be dropped into any CMS system.

The biggest downside it seems to such a solution is there is no means currently to have a custom solution, via API or through Qualiteam themselves.  The Cart is visually customizable via CSS within the admin but I’m guessing it won’t be very “in depth”.  Also there is no manual.

On the plus to all these items though is it is FREE :)

:arrow: Ecwid: E-Commerce Widgets.

Possibly Related Posts:



Aug 18 2009

Combine H.264 MP4 Files and Add Audio via MP4Box and FFMPEG

Some late night fun… Since I can’t sleep… I’ve successfully found a means to combine multiple video files and add audio to a combined video progmatically and documenting my findings, thought I would share…

First I had to install GPAC which contains MP4Box, using it allows to combine the video files pre-existing as we have them now into one single file (1.mp4 and 2.mp4 are video files captured with an AXIS IP Camera in H.264):

1
MP4Box -cat 1.mp4 -cat 2.mp4 out.mp4

Next we determine the length in seconds of the video, this is where a custom PHP Script is involved that will determine the length:

1
2
3
4
5
$output = shell_exec("/usr/local/bin/ffmpeg -i {$path}");
preg_match('/Duration: ([0-9]{2}):([0-9]{2}):([^ ,])+/', $output, $matches);
$time = str_replace("Duration: ", "", $matches[0]);
$time_breakdown = explode(":", $time);
$total_seconds = round(($time_breakdown[0]*60*60) + ($time_breakdown[1]*60) + $time_breakdown[2]);

With the example file, here’s what the PHP script would see:

1
2
ffmpeg -i out.mp4 2>&1 | grep Duration
Duration: 00:00:13.60, start: 0.000000, bitrate: 875 kb/s

And then we cut the audio file accordingly, the above PHP script returned 14 seconds for our two combined videos, since 13.60 is rounded to 14 from MP4Box, so it starts at 00:00:00 and takes a total time of 14 seconds of the audio file and creates a new file to be used next.

1
ffmpeg -ss 00:00:00 -t 14 -i music.mp3 final.mp3

Take the combined videos from MP4Box and add the newly created 14 second final.mp3 file and create the final file for viewing.

1
ffmpeg -vcodec copy -i final.mp3 -i out.mp4 final.mp4

If your wanting to have progressive downloading for web playback:

1
MP4Box -inter 0.5 final.mp4

END RESULT:

Possibly Related Posts:



Jul 30 2009

X-Cart Marketplace for X-Cart community

xcart logo X Cart Marketplace for X Cart community

Appears X-Cart is finally picking up where everyone else has been with 3rd party contributors for years.  Wordpress what?, MagentoConnect what?  Ever since I had developed some aftermarket products for X-Cart, Qualiteam pretty much frowned on the whole concept of anyone else besides themselves benefitting from custom solutions to their existing software.  However, I still see they require you be a special member in order to list your products in their market, unlike many others who will allow you to list them for free without much governing.

X-Cart can be a great ecommerce cart, don’t get me wrong but, there really isn’t much framework in it to allow for addons or modifications that can easily hookup into existing code without causing major headaches down the road once it is time to upgrade the base code.  This was the biggest reason I switched from X-Cart to MagentoCommerce.

Possibly Related Posts:



Apr 5 2009

Build a Forum in Flash / ActionScript.org Forums

While experiementing with Flash 5 and ASP/Access around 2001 I wrote a pretty simplistic based forum with Flash as a frontend.

Still seeing some traffic coming from ActionScripts.org that I had simply experimented with, I’ve since moved away from old ASP, and Access Databases.  It is merely for learning purposes, A Novice person may find it interesting as for more advanced may find it quite amusing :)

I make no warranty with the zip and there isn’t any “install” instructions.

Download it here:
:arrow: mb-forums05b

Build forum in flash – ActionScript.org Forums.

Possibly Related Posts:



Apr 2 2009

Same site, shorter domain: mbliss.com

Out of curiousity I wondered if :arrow: mbliss.com was available last night and to my surprise it was available, it hadn’t been in quite some time, since most have trouble spelling the word molotov, I decided to scoop the domain up. I’m still not sure if I will keep it pointing here or if a seperate entity will appear on it and the blog would stay here, I’m mainly concerned with back links and 301 redirecting everything properly. I am also concerned with the domain being parked here if Google will start penalizing me for duplicate content. Anyone have any thoughts, on what would be the best use for this new shortened domain?

Hopefully the thought process will end up like this:
:? :?: :idea: :mrgreen:

Possibly Related Posts:



Mar 24 2009

5 Universal Principles For Successful eCommerce

Smashing Magazine has listed 5 universal principles for successful eCommerce. I would have to agree with all of the items listed, as they are brief and not really a detailed how-to fix them, but more less a guidance on things that should be focused on in the eCommerce realm. In short here’s basically what they have listed:

  1. Design for customers, not yourself or clients.
  2. Go beyond usability and make the interface as transparent to the end user as possible.
  3. Pay attention more closely to product detail pages, The checkout process, End user security concerns and page weight.
  4. Give your customers what they want, listen to them and interact with them through social medias like twitter, surveys and polls.
  5. Make good use of color and type faces to help lead customers through out their experience.

Here is the full details with all the pretty pictures and fancy sub titles like “Paint your pictures at home”

:arrow:  5 Universal Principles For Successful eCommerce-Sites | How-To | Smashing Magazine.

Possibly Related Posts: