Posted on

Zend ORM and multiple primary keys.

I was searching for a way to define the zend table with multiple keys, and it seems it works just fine as an array. Somehow I doubt it.

“The Zend_Db_Table_Abstract class stores primary keys as an array and many operations $_primary as an array.

However, currently the insert() method of Zend_Db_Table_Abstract still assumes that the insert operation will generate a primary key value, and this value can be retrieved by using lastInsertId(). This is true only for server-side auto-generated id columns, such as AUTO_INCREMENT in MySQL. This does not work for Oracle, PostgreSQL, or DB2. It also doesn’t work for MySQL or any RDBMS for tables that have compound or natural keys.

Also, the __set() method of Zend_Db_Table_Row_Abstract assumes that it is illegal to set the primary key value of a row explicity, and the save() method assumes that the only time that it should insert a row instead of update it is when the primary key column(s) are empty.”

Posted on

Commission Junction

I’ve tried to brake into the affiliate marketing game, started sometime 2008. I have to say that systems like CJ.com are absolutely the worst for people just starting out!
I put a blog online, with links to a popular antivirus program. And I did earn like 12 dollars from a sale.
But CJ.com took the money away from me. And later they even completely disabled my account.
Not cause I violated a TOS policy or something of that sort. Just because I didn’t have enough traffic and didn’t login to my account enough.

I am going with Google Affiliate Network now. Or another affiliate network that is not so strict on how often you check your account.
Have to go through all my blogs and change the links!

Posted on

Oracle is Suing Google over Java on the Android

What a ridiculous development.  Sun Micro-systems was recently acquired by Oracle, and of course, the shenanigans begin! This is why I am so interested in Ebay’s acquisition of Magento. Oracle purchased a language they didn’t even develop, that was out under a copy left or GNU license. Turns out its not just the language, but the patents which Sun owns.

I don’t like the idea of Oracle owning MySQL and Java. How long before PHP is taken over? Quite frankly SAP and Oracle are a bunch of jokers. What they do,  an in house team of programmers can do just as well. Only they charge ridiculous fees for their software, import cheap labor, and charge a giant markup for that as well. Its not like they have out of the box solutions.  As a professional, I can do what SAP does with PHP/MySQL and not spend a dime on licensing, keep the jobs in the USA, and deliver a superior product.

 

 

Posted on

eBay Agrees to Acquire Magento

The past several years have been an amazing journey for Magento, as we’ve grown from a new open source platform into an eCommerce leader. Along the way, we’ve built not only a platform, but a company and a worldwide community. Together, we’ve identified opportunities, taken risks, innovated, struggled, succeeded, and changed the face of eCommerce. Today marks a milestone on this journey as we announce the most exciting news in our company’s history. 

Magento has reached an agreement to be acquired by eBay Inc. We believe this move will open incredible opportunities for the entire Magento ecosystem.

The Big Picture

Why is this acquisition so exciting for all of us? eBay is evolving to become a strategic commerce partner focused on delivering new ways for merchants of all sizes to drive innovation. As a centerpiece of this strategy, they are building a global, open commerce platform that leverages the worldwide developer community. And Magento will be at the core of this new, open commerce platform, called “X.Commerce.”

Magento & eBay

As many of you know, Magento has had a relationship with eBay for some time. In March 2010, eBay became our first outside investor. Over the past year, eBay has gotten to know our platform, our culture, and our community. They have experienced the passion of the Magento ecosystem, and they are eager to harness the power of this ecosystem to create the next generation of eCommerce innovation.

Magento Forward: The Details

How will this acquisition impact our organization, customers and partners? It’s too soon to know all the details, but there are a few things we know. Magento will continue to operate out of LA, with Yoav Kutner and me as its leaders following the closing. We’ll continue building our team and our enhancing our product line, including the Magento Community, Enterprise, and Mobile Editions, as well as Magento Go and the Magento Go Platform. And we’ll continue strengthening our training, education, packaged consulting services and support efforts around the world.

Through it all, we’ll be collaborating with our colleagues at eBay on developing the X.Commerce platform and defining the next generation of eCommerce innovation.

Yoav and I recorded a short video message for the community – you can find it on our blog, along with FAQs about the pending acquisition.

Creating The Future Together

To all the members the Magento family: we thank you for all the passion, expertise and hard work that you’ve invested in Magento. Thanks to you, Magento finds itself exactly where we’ve always aimed to be: at the core of eCommerce. We are thrilled to become part of a larger organization that recognizes – as we always have – that the future of eCommerce is global, innovative and open. We look forward to creating that future with all of you.

Warm Regards,

Roy Rubin
Co-Founder and CEO, Magento

Posted on

Google Closure

Looks like there are yet more additions to the JavaScript world.
This closure compiler is gaining popularity, and shows that its the most efficient one out there for now.
It also comes with a full library with features similar to jQuery.
Although I do find the constant use of ‘goog.dom’ a little annoying I am sure there some great benefits to learning it.
I personally hate and resist change. It took me like a year to pick jQuery. Prototype and Scriptaculous were the dominant ones when I started picking up jQuery in 2009. And even then I was overwhelmed with the seemingly limitless list of JavaScript libraries and frameworks.

And now that I am here at Disney, it looks like Google closure library is gaining ground.

Posted on

DisneyMoviesOnline.go.com

Its very sad to say that this site is closing down soon.
But I did some great stuff on this project.
Okay, nothing bleeding edge.
No HTML5, mostly CSS2.

But still, I did do the ‘box set code redemption’ system, which lets users enter the magic redemption code found on DVD’s for points and streaming rights.
Also the my movies list page, in list and tile format, and the ‘info’ hover which popups over videos.
There are lot of other features which I have done here, and its the first time so much of my work is visible on a multimillion dollar brand since I worked on BCBG.

The project is almost closing, and soon I will be in need of another major contract.

Posted on

HighCharts

Recently I had the pleasure of working with the HighCharts library.
I was doing a small contract for a company down in Santa Monica that wanted to redo their internal reporting system to HTML5.
They were already using FusionCharts, which does have iOS and HTML5 support.
But apparently paying a thousand bucks just for a license and then paying another nine thousand to a developer didn’t make any sense to them.
So they skipped over FusionCharts and asked me to install HighCharts and customize their Zend Framework powered reporting system.
The API fed the FusionCharts with data, and that had to modified as well.
Ultimately I had very little PHP to write. Simply extending the ViewHelper class to check for iOS and then fire off the HighCharts JavaScript.
There was only a little finessing I had to do with the old data format. But thanks to jQuery’s sizzle selector, it was so easy!
I made quick work of the project, and did it while I was working another job simultaneously. Under budget, ahead of schedule.

Posted on

Mitsubishi I Facebook page

I did a couple of days of freelancing over at Possible Word Wide. A consultancy group down in Culver City. Basically they were using this awesome software called Buddy Media to do all the heavy lifting for the mitsubishi i facebook page. Well I got a call from Jon, a recruiter at silversearch, and he told me that they needed an emergency person to fill the vacuum left by an absentee designer. So I had a chance to check out BuddyMedia and tweek the quizes, polls, and all the other features and design aspects of their facebook page.

Posted on

Beach Body Hacked – Epsilon Hacked

Dear Beachbody® Customer,

Beachbody’s email service provider, Epsilon, has recently informed us that your email address may have been exposed due to unauthorized access of Epsilon’s system. We’ve been told that this unauthorized access was limited to only name and email addresses of some Beachbody customers, with no other information accessed.

As a result of this incident, it is possible that you may receive spam email messages, emails that contain links containing computer viruses or other types of computer malware, or emails that seek to deceive you into providing personal or credit card information.

We recommend that you always be extremely cautious with emails from persons or entities you do not recognize or know, and specifically:

Don’t open links or attachments from third parties you don’t know or recognize;
Don’t provide any personal or other sensitive information by email to third parties you don’t know or recognize; and
Don’t provide a credit or debit card number, bank or other account details, or any other financial information by email to any third parties you don’t know or recognize.

We regret that this incident has occurred and apologize for any inconvenience this may cause you. We take your privacy very seriously, and we will continue to work diligently to protect your personal information.

If you have unsubscribed in the past, there is no need to unsubscribe again. Your preferences will remain in place.

Please don’t hesitate to contact us with any questions at emailsecurity@beachbody.com.

Sincerely,
Jonathan L. Congdon
President, Beachbody, LLC

Posted on

Beefing up on CSS

This is a table of CSS filters.

  Windows Mac OS X Macintosh Other
IE Mz Ns Op iC IE Mz Ns Om Op Sf IE Mz Ns Op Ko
7 6 5.5 5 4 1 7 6 4 8 7 6 5 2 5 1 7 6 4 8 7 6 5 2 5 4 1 7 6 4 6 5 3
  7 6 5.5 5 4 1 7 6 4 8 7 6 5 2 5 1 7 6 4 8 7 6 5 2 5 4 1 7 6 4 6 5 3
IE Mz Ns Op iC IE Mz Ns Om Op Sf IE Mz Ns Op Ko
Windows Mac OS X Macintosh Other

voice-family:"\"}\"";<br>voice-family:inherit;<br>property:value;
Y Y N N N Y Y Y N Y Y Y Y Y Y Y Y Y Y Y Y Y Y Y Y N Y Y Y N Y Y Y

p\roperty:value;
Y Y N N N Y Y Y N Y Y Y N N Y Y Y Y N Y Y Y N Y Y N Y Y Y N Y N N

/*/*/property:value;/* */
Y Y Y Y Y Y Y Y N Y Y Y Y Y Y Y Y Y Y Y Y Y Y Y Y Y Y Y Y N Y Y Y

/*/*//*/property:value;/* */
N N N N N N N N Y N N N Y N N N N N N N N N Y N N N N N N Y N Y N

div#test
Y Y Y Y Y Y Y Y N Y Y Y Y Y Y Y Y Y Y Y Y Y Y Y Y Y Y Y Y N Y Y Y

head:first-child+body div
Y N N N N Y Y Y N Y Y N N N Y Y Y Y N Y Y N N Y Y N Y Y Y N N N Y

body>div
Y N N N N Y Y Y N Y Y Y Y N Y Y Y Y Y Y Y Y Y Y Y Y Y Y Y N Y Y Y

html[xmlns] div
Y N N N N Y Y Y N Y Y Y Y N N Y Y Y N Y Y Y Y Y N N Y Y Y N Y Y Y

@import 'styles.css'
Y Y Y Y N Y Y Y N Y Y Y Y Y N Y Y Y Y Y Y Y Y Y N N Y Y Y N Y Y Y

@import "styles.css"
Y Y Y Y N Y Y Y N Y Y Y Y Y Y Y Y Y Y Y Y Y Y Y Y N Y Y Y N Y Y Y

@import url(styles.css)
Y Y Y Y Y Y Y Y N Y Y Y Y Y Y Y Y Y Y Y Y Y Y Y Y Y Y Y Y N Y Y Y

@import url('styles.css')
Y Y Y Y Y Y Y Y N Y Y Y Y Y N Y Y Y Y Y Y Y Y Y N N Y Y Y N Y Y Y

@import url("styles.css")
Y Y Y Y Y Y Y Y N Y Y Y Y Y Y Y Y Y Y Y Y Y Y Y Y Y Y Y Y N Y Y Y

@import "null?\"\{";<br>@import "styles.css";
Y Y Y N N Y Y Y N Y Y Y Y Y Y Y Y Y Y Y Y Y Y Y Y N Y Y Y N Y Y Y

@media all{/* rules */}
Y Y Y Y N Y Y Y N Y Y Y Y N N Y Y Y N Y Y Y Y Y N N Y Y Y N Y Y Y

<link media="all">
Y Y Y Y Y Y Y Y N Y Y Y Y Y Y Y Y Y Y Y Y Y Y Y Y Y Y Y Y N Y Y Y

<link media="All">
Y Y Y Y Y Y Y Y N Y Y Y Y Y Y Y Y Y N Y Y Y Y Y Y Y Y Y Y N Y Y Y

* html div
N Y Y Y Y N N N N N N N N N Y N N N N N N N N N Y Y N N N N N N N

*+html div
Y N N Y N N N N N N N N N N N N N N N N N N N N N N N N N N N N N

i{content:"\"/*"}<br>div{property:value}
Y Y N N N Y Y Y N Y Y Y Y Y Y Y Y Y Y Y Y Y Y Y Y N Y Y Y N Y Y N

/* \*/<br>div{property:value}<br>/* */
Y Y Y Y Y Y Y Y Y Y Y Y Y Y N Y Y Y Y Y Y Y Y Y N Y Y Y Y Y Y Y Y

html*#test
Y Y Y N N Y Y Y N N N N N N Y Y Y Y N N N N Y Y Y N Y Y Y N ? Y N

_property:value
N Y Y Y Y N N N N N N N N N N N N N N N N N N N Y Y N N N N N N N

*property:value
Y Y Y Y N N N N N N N N N N N N N N N N N N N N N N N N N N N N N

@media tty {<br>i{content:"\";/*" "*/}} @import 'styles.css'; /*";}<br>}/* */
N N Y Y N N N N N N N N N N N N N N N N N N N N N N N N N N N N N

@media tty {<br>i{content:"\";/*" "*/}}; @import 'styles.css'; {;}/*";}<br>}/* */
N N N Y N N N N N N N N N N N N N N N N N N N N N N N N N N N N N

@media tty {<br>i{content:"\";/*" "*/}}@m; @import 'styles.css'; /*";}<br>}/* */
N N Y N N N N N N N N N N N N N N N N N N N N N N N N N N N N N N

/*\*//*/<br>@import "styles.css";<br>/**/
N N N N N N N N N N N N N N Y N N N N N N N N N Y N N N N N N N N