Coder Social home page Coder Social logo

rchern / stackflair Goto Github PK

View Code? Open in Web Editor NEW
11.0 11.0 2.0 824 KB

StackFlair generates a combined flair representing all of your associated StackExchange accounts. http://stackapps.com/q/1567/2286

Home Page: http://stackflair.somee.com

ASP 1.65% C# 9.72% JavaScript 88.63%

stackflair's People

Contributors

rchern avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

stackflair's Issues

Crash when display name is set before site

Type in your display name, it will detect your numerical ID automatically. Change the selected site. Click generate. It generates an error. I guess it's the ID that doesn't match anymore the site?

Rep count doesn't match

My flair (http://stackflair.com/Generate/e2556160-2dc7-493b-b285-9888b743b8f2.html) doesn't match the sum (manually summed) of rep at http://stackexchange.com/users/e2556160-2dc7-493b-b285-9888b743b8f2?tab=accounts

I guess it's a SE problem, but of course I'm not sure. Would be nice (see comment on "Custom size" request) to have an option to see all sites in the flair (that way I could check myself easily) Even a comment in the generated HTML would go a long way.

Will report same on meta.SO too.

embed html flair on SO user profile?

Is there a method the .html flavour of stack flair could be embedded on my SE profile pages? I prefer that to the image formats because there's more information in them, you can hover over each graphic part and learn something and click through for more.

Error handling

Error handling for invalid parameters and api exceptions

Option to make URLs friendlier to forum use

Forum software typically disallows picture URLs that look dynamically generated. Usually, the heuristic is:

  • they mustn't contain a question mark, and
  • they must end with a image extension like .png or .gif

Would it be possible to have an alternative url format that matches these requirements? For example:

http://stackflair.somee.com/Generate/b27a90d1-blah-85e9e53a9659?format=Image
                 ↓↓↓
http://stackflair.somee.com/Generate/b27a90d1-blah-85e9e53a9659.png

Broken images on StackFlair.com theme selector

error 'Favicon file does not exist' when generating an Image flair

Input: http://i.imgur.com/BdI2r.png

Exception: System.Exception: Favicon file does not exist

Stack trace:

[Exception: Favicon file does not exist]
   Template.GetFavicon(String siteName) in D:\Users\Rebecca\Documents\Visual Studio 2010\Projects\StackFlair.Web\StackFlair.Mvc\Controllers\Templates.cs:108
   Template.GenerateImage() in D:\Users\Rebecca\Documents\Visual Studio 2010\Projects\StackFlair.Web\StackFlair.Mvc\Controllers\Templates.cs:204
   StackFlair.Mvc.Controllers.GenerateController.GenerateImageFlair(StackData stackData, StackFlairOptions flairOptions) in D:\Users\Rebecca\Documents\Visual Studio 2010\Projects\StackFlair.Web\StackFlair.Mvc\Controllers\GenerateController.cs:93
   StackFlair.Mvc.Controllers.GenerateController.Index(String options, String associationId, String format) in D:\Users\Rebecca\Documents\Visual Studio 2010\Projects\StackFlair.Web\StackFlair.Mvc\Controllers\GenerateController.cs:43
   lambda_method(Closure , ControllerBase , Object[] ) +209
   System.Web.Mvc.ActionMethodDispatcher.Execute(ControllerBase controller, Object[] parameters) +17
   System.Web.Mvc.ReflectedActionDescriptor.Execute(ControllerContext controllerContext, IDictionary`2 parameters) +199
   System.Web.Mvc.ControllerActionInvoker.InvokeActionMethod(ControllerContext controllerContext, ActionDescriptor actionDescriptor, IDictionary`2 parameters) +27
   System.Web.Mvc.<>c__DisplayClassd.<InvokeActionMethodWithFilters>b__a() +56
   System.Web.Mvc.ControllerActionInvoker.InvokeActionMethodFilter(IActionFilter filter, ActionExecutingContext preContext, Func`1 continuation) +267
   System.Web.Mvc.<>c__DisplayClassf.<InvokeActionMethodWithFilters>b__c() +20
   System.Web.Mvc.ControllerActionInvoker.InvokeActionMethodWithFilters(ControllerContext controllerContext, IList`1 filters, ActionDescriptor actionDescriptor, IDictionary`2 parameters) +190
   System.Web.Mvc.ControllerActionInvoker.InvokeAction(ControllerContext controllerContext, String actionName) +345
   System.Web.Mvc.Controller.ExecuteCore() +115
   System.Web.Mvc.ControllerBase.Execute(RequestContext requestContext) +42
   System.Web.Mvc.ControllerBase.System.Web.Mvc.IController.Execute(RequestContext requestContext) +10
   System.Web.Mvc.<>c__DisplayClass8.<BeginProcessRequest>b__4() +34
   System.Web.Mvc.Async.<>c__DisplayClass1.<MakeVoidDelegate>b__0() +21
   System.Web.Mvc.Async.<>c__DisplayClass8`1.<BeginSynchronous>b__7(IAsyncResult _) +12
   System.Web.Mvc.Async.WrappedAsyncResult`1.End() +55
   System.Web.Mvc.MvcHandler.EndProcessRequest(IAsyncResult asyncResult) +43
   System.Web.Mvc.MvcHandler.System.Web.IHttpAsyncHandler.EndProcessRequest(IAsyncResult result) +9
   System.Web.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() +8841105
   System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) +184

Custom size

Could we have a ?height=xxx&width=xxx in the image URL? This way, I'll be able to resize it to 90x45 pixels (or something similar), and use the image on a particular forum (which only allows 90x90px max image signatures).

Support image output

Including html is not always option, or even the desirable option. Allow the flair to be returned as an image.

Site favicons look wrong.

Compare:

  • //stackflair.com dark
  • //stackflair.com
  • //official flair

It appears as if some favicons have alpha channel information that is discarded.

Error when clicking "Generate Flair"

When I click on the "generate flair" button with default setting - ie just navigating to the page. I receive an asp.net error page stating the following error:

Input string was not in a correct format.

Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.

Exception Details: System.FormatException: Input string was not in a correct format.

Source Error:

An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.

Stack Trace:

[FormatException: Input string was not in a correct format.] System.Number.StringToNumber(String str, NumberStyles options, NumberBuffer& number, NumberFormatInfo info, Boolean parseDecimal) +9594283 System.Number.ParseInt32(String s, NumberStyles style, NumberFormatInfo info) +119 System.Int32.Parse(String s) +23 StackFlair.Web.Default.btnSubmit_Click(Object sender, EventArgs e) in D:\Users\Rebecca\Documents\Visual Studio 2010\Projects\StackFlair.Web\StackFlair.Web\Default.aspx.cs:48 System.Web.UI.WebControls.Button.OnClick(EventArgs e) +118 System.Web.UI.WebControls.Button.RaisePostBackEvent(String eventArgument) +112 System.Web.UI.WebControls.Button.System.Web.UI.IPostBackEventHandler.RaisePostBackEvent(String eventArgument) +10 System.Web.UI.Page.RaisePostBackEvent(IPostBackEventHandler sourceControl, String eventArgument) +13 System.Web.UI.Page.RaisePostBackEvent(NameValueCollection postData) +36 System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +5563

Hope this helps!
Doug

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.