Posts by gdpotter

77 posts
  • Has been part of the Envato Community for over 5 years
  • Has referred 1+ members
  • Has sold $10,000+ on Envato Market
  • Has been a beta tester for an Envato feature
+3 more
gdpotter says
SportTipsWorld said
Best I have found thus far is: http://stackoverflow.com/questions/44509/single-sign-on-across-multiple-domains

That’s how you do it. Basically, you have a login site. If site A doesn’t have a session, it will 302 you to the login site. If the login site has a session (or the user successfully logs in), it will 302 you back to the site with a token. Then site A’s server looks at the token and asks the login server if it is valid, if so, it creates a session. Then, if you visit site B, since you don’t have a session yet, you get 302ed to the login site and then immediately 302ed back with to the site with a token.

There really isn’t much of a better way to do it. Take a look at some sites with SSO sometime, and notice all the redirects. The servers are fast so they don’t take long, but if there is no session, there is a minimum of 2 redirects.

77 posts
  • Has been part of the Envato Community for over 5 years
  • Has referred 1+ members
  • Has sold $10,000+ on Envato Market
  • Has been a beta tester for an Envato feature
+3 more
gdpotter says

Hey all,

Just wanted to share my findings after about an hour and a half of trial and error. First a bit of background: I was working on a project which had an array of jQuery objects, and I needed to find out if a given object was in that array (and then remove it). At first I used the indexOf, but it failed. Then I tried using jQuery’s $.inArray function, but that also didn’t work. I then remember the problem of $('#div1') == $('#div1') returns false. I then tried using the syntax of $('#div1').is('#div1') and that worked, but that wouldn’t work for me. Since I didn’t have access to the selectors at runtime (and sometimes there would be a selector at all!) I needed to do something equivalent to $('#div1').is($('#div1')) but that doesn’t work at all. In fact, it causes a JavaScript error. After a bit of hunting around in the jQuery source, I found that a bit of hacking on the $().not() function would work. If you didn’t know, if you pass an element into .not, it will remove it from the selector. That means, if I did $('#div1').not($('#div1')), it would return []. Of course, if the second element was not fundamentally the same, it would return something. Finally, I had it! All I had to do now was check to see if $('#div1').not($('#div1')).length == 0 and I could tell if it was in the array. My final code, with the removal is the following:
$.each(list, function(index) {
    if(element.not(this).length == 0) {
        list.splice(index, 1);
    }
});
where list is the array and element is the thing to check for.

If somebody already knew this, or has a better way of accomplishing this please share, but I was just pretty happy with myself on this one and just wanted to share.

77 posts
  • Has been part of the Envato Community for over 5 years
  • Has referred 1+ members
  • Has sold $10,000+ on Envato Market
  • Has been a beta tester for an Envato feature
+3 more
gdpotter says

Nice, but the backspace doesn’t work ;-)

It does, but only when you press delete, which is wrong.

77 posts
  • Has been part of the Envato Community for over 5 years
  • Has referred 1+ members
  • Has sold $10,000+ on Envato Market
  • Has been a beta tester for an Envato feature
+3 more
gdpotter says

I got black today. too. It looks so nice. Congratulations.

77 posts
  • Has been part of the Envato Community for over 5 years
  • Has referred 1+ members
  • Has sold $10,000+ on Envato Market
  • Has been a beta tester for an Envato feature
+3 more
gdpotter says

Yeah, it’s pretty cool. I’ve been using it for a while, it doesn’t show my Tuts+ marketplace file, though.

77 posts
  • Has been part of the Envato Community for over 5 years
  • Has referred 1+ members
  • Has sold $10,000+ on Envato Market
  • Has been a beta tester for an Envato feature
+3 more
gdpotter says

I went on GraphicRiver today and found that there are no floor plan templates. I need to show a floor plan on a website I’m working on and I wanted it to look nice. It’s no big deal, and maybe it’s not even something that would sell on this site, but if any of you designers ever get bored, there’s nothing on the site now…

77 posts
  • Has been part of the Envato Community for over 5 years
  • Has referred 1+ members
  • Has sold $10,000+ on Envato Market
  • Has been a beta tester for an Envato feature
+3 more
gdpotter says

Check out http://3cx.com/. They make a software based PBX system that works with virtually all phones (Cisco, Polycom, etc.) and there is a handful of VOIP services you can use such as skype. The only downside to Skype is it can’t to emergency calls, but there are lots of alternatives.

77 posts
  • Has been part of the Envato Community for over 5 years
  • Has referred 1+ members
  • Has sold $10,000+ on Envato Market
  • Has been a beta tester for an Envato feature
+3 more
gdpotter says

I checked your profile and mine and I do not see this recent signins you are speaking of.

Are you sure? I it’s right after the contact box closes. On JeffreyWay’s profile it’s around line 728 (but I know this changes based on content and signed-in/signed-out, etc.)

It says : <!-- REFERRALS --> <!-- RECENT SIGNINS -->
77 posts
  • Has been part of the Envato Community for over 5 years
  • Has referred 1+ members
  • Has sold $10,000+ on Envato Market
  • Has been a beta tester for an Envato feature
+3 more
gdpotter says

I just happened to do a view-source on the user profile page, and found something very interesting right after the contact box:

<!-- RECENT SIGNINS -->

What is going there?

77 posts
  • Has been part of the Envato Community for over 5 years
  • Has referred 1+ members
  • Has sold $10,000+ on Envato Market
  • Has been a beta tester for an Envato feature
+3 more
gdpotter says

Probably the most expected reply, but having a Bugatti would be the pinnacle of my life. Such a beautiful car. Although I’d probably be scared of driving it in fear of having someone who is texting and not paying attention plow into the side of me.

http://i7.photobucket.com/albums/y274/Ryan112591/Bugatti-Veyron-004.jpg http://i7.photobucket.com/albums/y274/Ryan112591/Bugatti-Veyron-red.jpg

I keep telling my mom “Someday mom, I’ll come home in one of these.”

I read something a while ago about Simon Cowell running out of gas in his bugatti since it requires racing fuel and there were only like 2 places in LA that sold it. Luckily, the dealership stepped in with a Rolls Royce loaner car.

by
by
by
by
by
by