10

Screenshot / Code Snippet

Screenshot

More screenshots can be found in the extension gallery.

About

Stacked Odds is an extension for Chrome that stacks the odds in your favour when looking for questions to answer on Stack Exchange sites.

This extension for Google Chrome is designed to integrate as fully as possible into the site and provide an alternative method for finding questions that you can answer.

It takes your previous answer history and uses it to infer what you might be able to answer. The extension adds an extra tab to the "Question" list and the "Unanswered" question list to display the relevant questions.

Once setup, the functionality can be accessed via the relevant tab on the Unanswered page or Questions page. For more information on using the plugin see the Users Guide.

License

Dual licensed under the GPLv3 and MIT License.

Download

You can download the packed extension.

If you are updating from a previous version (before 1.1.60), it is reccomended that you regenerate the data by opening your profile, clicking "stacked odds" and pressing "update stacked odds data"

Platform

The extension requires either Chrome 5 or Chrome 6. Future and previous version of Chrome may also work but are not supported.

Contact

The best way to contact me is adding a comment here. Sending an email to anything at my domain (JacobEssex.com) will work but is probably slower.

Code

An overview on some of the code can be found in some documentation. The documentation isn't complete, but should help explain things. There are other ramblings about other relevant subjects on the Google Code wiki.

The code can be downloaded from the SVN repository.

Yacoby
  • 391
  • 1
  • 9
  • Screenshots look good! Please consider listing Stacked-Odds on StackList. – Nathan Osman Jul 19 '10 at 19:43
  • 3
  • ok, I took a look at the docs and that is worth an up. keep working on those and maybe talk a bit about why your app needs such sweeping permissions and make grovelling assurances that you are not 'evil' and maybe you will get people to expose their pink insides to your network enabled script. ;-)
  • – Sky Sanders Jul 19 '10 at 23:39
  • A vauge bit about permissions can be found here, an explanation as to how it worked and what was changed is here – Yacoby Jul 20 '10 at 10:25
  • 1
    I'm getting this error on the relevant tab: "Error:No tags defined" – jjnguy Jul 22 '10 at 13:42
  • Setup seems to go fine up to and including answers but no questions are downloaded? stops at setup stage 3 – Sky Sanders Jul 22 '10 at 13:49
  • Never mind, i checked fiddler and sure enough, it is downloading and finally completes the stage. You need to present some progress report to keep the user from freaking out. And I notice you are batching the questions in groups of 4. The url length restriction has been relaxed, but to be safe you can maximize throughput with the Soapi.VectorizedIdList(docs- http://soapi.info/code/js/stable/docs/symbols/Soapi.Utilities.VectorizedIdList.html, demo - http://soapi.info/code/js/stable/VectorizedIdList.htm) – Sky Sanders Jul 22 '10 at 13:57
  • 2
    same 'no tags defined' - i have defined tags. also, it is not apparent where/how to use the extension. I had to look on the screen shots to figure it out. I would say that you are not doing yourself any favors by hiding it away back there. maybe add the 'relevant' tab to all pages or be sure to guide the user there with a notification. – Sky Sanders Jul 22 '10 at 14:10
  • 1
    @code it took me a while to find the tab too. I wonder what the error we are getting means. – jjnguy Jul 22 '10 at 14:13
  • although i have yet to get it working, i am very impressed by the quality of your work. this gives me a bit more motivation to trudge through the difficulties of providing a quality library. do not hesitate to communicate any needs/wants/ideas regarding soapi.js – Sky Sanders Jul 22 '10 at 14:13
  • @jjn - yacoby's work is a prime example of why i want to abstract away as many of the peccadilloes of the API as possible. The less he has to worry about sweet talking the moving target api, the more he can concentrate on the logic required to add value. This guy is a model of the reason I make so much noise. – Sky Sanders Jul 22 '10 at 14:18
  • Thanks for your responses. The current download (r40) has some bugs which are fixed in the svn version. I will put together another download tomorrow. Most issues reported have been fixed. – Yacoby Jul 22 '10 at 23:22
  • new version up on the site. not very well tested. If you had an older version installed you should regenerate the data by going to your profile page, clicking on the stacked odds tab and pressing "update stacked odds data". The main thing that hasn't been done is the question update number doesn't increase very well. – Yacoby Jul 22 '10 at 23:50
  • will respond directly to answers later on today (I feel dog tired) – Yacoby Jul 22 '10 at 23:56
  • @jjnguy The no tags defined error is because you need to define some relevant tags (just the main ones like Javascipt and PHP or something, don't bother adding subtags like [jquery]) on settings page. This is an unfortunate necessity that I never got around to removing because I ran out of time to write the statistics code. I think I wrote some thing on why it works like it does on the wiki – Yacoby Jul 23 '10 at 22:57
  • 2
    @code The generation has been improved. It takes slightly longer but the UI now updates... and it requests far more data at once. – Yacoby Jul 23 '10 at 22:59
  • groovy dude. the chrome extension page will boost your userbase. – Sky Sanders Jul 24 '10 at 21:48
  • @yacoby - I am going to write a little extension and am considering a addon for soapi that uses XHR for direct communication with the API. would this be of value to you? – Sky Sanders Jul 24 '10 at 22:15
  • @code The issue with XHR is that I run into cross site request problems. Parts of the extension are on a different protocol than the rest of it. In other words, I am not sure if chrome would like it – Yacoby Jul 24 '10 at 22:33
  • yacoby - help a brother out, wouldja? http://meta.stackoverflow.com/questions/53346/open-source-advertising-sidebar-2h-2010/60263#60263 – Sky Sanders Aug 10 '10 at 23:37
  • I'm trying to enable stacked odds on serverfault.com and it gets to stage 3, downloads 57 questions and then gets stuck. I've tried leaving it overnight in case there was something taking a very long time to process, but it doesn't get any further. Can you help? – Richard Gadsden Oct 15 '10 at 13:23
  • @Yacoby hey have you seen my post here there's something going wrong... – gideon Feb 08 '12 at 03:31