Tags » Wintermute

My favorite bugs


Arguments missing when calling a function,
mispelling keys setting some advanced option,
accessing attributes your object lacks:
These are a few of my favorite bugs. 124 more words


Merge PDF by streams

I am in trouble with a .ashx which should merge some PDF memory-stream, in a simplest case, where I have in output only one stream, the output PDF stream are corrupted, but when I call another ashx which get in output only the single stream works, what I miss in the following code? 153 more words


Finding the source

‘Inspiration’ for a program comes from the programmer and the end user. Photoshop is a nice piece of software, but doesn’t make pretty pictures all on its own. 556 more words

Redirect after log-in cannot work

I have a form to manage the insertion of comments:

@model GatorsWebSite.Comment
  @using (Html.BeginForm("Create", "Comments", FormMethod.Post, new { enctype = "multipart/form-data" }))
    @Html.HiddenFor(m => m.ArticleID)
    @Html.TextAreaFor(m => m.Text, new { @class = "form-control wide", @placeholder = "Type your comment", @rows = "3" })
    @Html.ValidationMessageFor(m => m.Text, "", new { @class = "text-danger" })
… 157 more words

Model state, partial view and redirect, how to manage errors

In my view to show the details of a news

@model GatorsWebSite.ViewModels.NewsArticleViewModel
<div class="container-fluid news-wrapper">
  <div class="row">
    <div class="col-md-12 news-title">
      <h4 class="capitalize">@Model.Title</h4>
      <h5 class="capitalize">@Model.SubTitle</h5>
      <h6>@Model.UserName | @Model.Date.ToString("dd/MM/yyyy")</h6>
  <div class="row">
    <div class="col-md-12 ">
    <br />
  <div class="row">
    @{Html.RenderPartial("News/_Comments", Model);}

  <div class="row">
    @{Html.RenderPartial("News/_Comment", new Comment() { ArticleID = Model.ID });}
… 343 more words