Posts by maguiar01

42 posts
  • Exclusive Author
  • Has been a member for 3-4 years
  • Sold between 10 000 and 50 000 dollars
maguiar01 says

As the copyright owner, an author can distribute his theme under a commercial license and under GPL.

So i got one (probably stupid) question:

What stops anyone on TF from releasing their themes “full” GPL today ? Why an author can’t do a deal like “buy a license on envato and i will send you a GPL version of my theme” ?

42 posts
  • Exclusive Author
  • Has been a member for 3-4 years
  • Sold between 10 000 and 50 000 dollars
maguiar01 says

I don’t know Matt Mullenweg, but i can only conclude that this is a huge hypocrite. He poses as “defender of GPL and free software”, to the point that he bans people by association with a “offender company”, and at the same time accepts sponsorship from MICROSOFT.

42 posts
  • Exclusive Author
  • Has been a member for 3-4 years
  • Sold between 10 000 and 50 000 dollars
maguiar01 says

I’ve lost my HDD last month too (the Mayan apocalypse was real for me). If your HDD is damaged, don’t try to run those file recovery tools, because you might damaging more you device. Use ddrescue to create a image and try to recover your files from the image. If i had done a image from my drive right from the beginning, I certainly would have recovered all my files.

I know you’re a windows user, but read this https://help.ubuntu.com/community/DataRecovery . The info on this page really helped me.

Regards

42 posts
  • Exclusive Author
  • Has been a member for 3-4 years
  • Sold between 10 000 and 50 000 dollars
maguiar01 says

I want to add the requestAnimationFrame is not rendered all the time so stay away from it on ios6!

raf doesn’t work too? WTF ?! After successfully killed flash Apple is trying to kill (ie render useless) the web standards too?

42 posts
  • Exclusive Author
  • Has been a member for 3-4 years
  • Sold between 10 000 and 50 000 dollars
maguiar01 says

That’s a really strange bug.

Thanks for sharing this.

42 posts
  • Exclusive Author
  • Has been a member for 3-4 years
  • Sold between 10 000 and 50 000 dollars
maguiar01 says

This update was a terrible decision.

Something I do multiple times every day: check and answer item comments.

Something I never do multiple times per day: upload new items.

The priority here is totally backwards, and this especially sucks on mobile devices. I check my dashboard regularly while on the go and this ill-conceived redesign just added another 10 swipes to my day. The dashboard already had awful usability for smartphones and this has made it worse.

Why aren’t the Envato devs working on things that actually matter? Like searchable item comments or a mobile dashboard?

I agree. I don’t think that the “upload item box” is the most important thing on the dashboard to be so prominent.

in my opinion should be like this:

1 – “upload item” should be a button on the “portfolio” tab

2 – when the user clicks the button, shows the upload box

3 – on the dashboard, if the author doesn’t have any item in his portfolio, display a message teaching him how to do so.

42 posts
  • Exclusive Author
  • Has been a member for 3-4 years
  • Sold between 10 000 and 50 000 dollars
maguiar01 says

Try this:

1 – Login

2 – go to http://codecanyon.net/author_dashboard

3 – You should now be on the author dashboard (duh :) ). On the right side of the screen there’s a box titled “Upload”.

42 posts
  • Exclusive Author
  • Has been a member for 3-4 years
  • Sold between 10 000 and 50 000 dollars
maguiar01 says

+1 So this is just passing a single function as an argument. Great to know :) And I assume the same applies for adding event listeners? (although I generally wouldn’t use an anonomous function for event listeners so they could be explicitly removed later, but would still be good info to know).

Yes, the same applies when adding event listeners.

Now, just to make things clear: when this code below is executed

element.each(function() { // do something });

only one function is created. But this other code you posted:

for(var i = 0; i < maxSubs; i++) {
    ul = ul.children("li").children("ul").each(function() {
        st = i % 2 === 0 ? "light" : "dark";
        $(this).addClass(st + "-sub").prepend($("<div />").addClass("nav-arrow " + st + "-arrow"));
    });
}

This code it will create maxSubs different functions, 1 for each step in the for loop.


Also, I probably should have used the word “anonomous” instead of “nesting” for the title of the thread. (still learning the jargon as these concepts are completely foreign to someone coming from AS3 :D )

Yeah, that would be clearer ;), but that’s OK :)

42 posts
  • Exclusive Author
  • Has been a member for 3-4 years
  • Sold between 10 000 and 50 000 dollars
maguiar01 says


You’re asking if will be created 5 copies of the function code in the memory?
yes :)

Well, in this case the answers is “no”. The function passed to the “each” method is created only once, and this instance is applied to all elements in the jquery set, one by one.

42 posts
  • Exclusive Author
  • Has been a member for 3-4 years
  • Sold between 10 000 and 50 000 dollars
maguiar01 says

When it comes to something like this in jQuery:
element.each(function() { // do something });

... and there are 5 elements, do five objects get created in memory for the function part? And if so, shouldn’t we always be doing this instead?

element.each(unestedFunction);

function unestedFunction() { // do something }
Hi CodingJack

I don’t think i understand it, what exactly do you mean by “five objects get created in memory for the function part?”. You’re asking if will be created 5 copies of the function code in the memory?

by
by
by
by
by
by