rchern / stackflair Goto Github PK
View Code? Open in Web Editor NEWStackFlair generates a combined flair representing all of your associated StackExchange accounts. http://stackapps.com/q/1567/2286
Home Page: http://stackflair.somee.com
StackFlair generates a combined flair representing all of your associated StackExchange accounts. http://stackapps.com/q/1567/2286
Home Page: http://stackflair.somee.com
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
Spruce up the selection ui.
Including html is not always option, or even the desirable option. Allow the flair to be returned as an image.
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
Support an option that allows the user to exclude beta sites from the flair.
As you can see by visiting StackFlair.com, the following images from the homepage theme selector give broken links (Server Errors):
Error handling for invalid parameters and api exceptions
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?
See my image flair vs. my HTML flair.
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).
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.
Suggesting: #FFCC00
Create a wiki page that shows usage examples
There is a class in your repository that has your API key exposed, might want to hide it in a configuration file.
Forum software typically disallows picture URLs that look dynamically generated. Usually, the heuristic is:
.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
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.
References are local to my machine, not machine independent.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.