Techy Things

Add GET parameter to a backbone fetch model 0

Add GET parameter to a backbone fetch model

Fetch model with GET parameters in URL The solution is to add data: $.param({ mySuperVariableName: 1}) in the fetch options. Folders.data.fetch( { data: $.param({ showContent: 1}), success:function(model, response, options) { //model.deferred.resolve(); }, error:function(model, response, options) {...

How to generate your own nuget package 0

How to generate your own nuget package

The nuget documentation is already well done that there does not need to have it explained again. This is the method I use that works well: https://docs.nuget.org/create/using-a-gui-to-build-packages The important thing to remember is to...

Displaying timezones in the browser for your users 0

Displaying timezones in the browser for your users

I’ve had on a few occasion the responsibility to handle timezone in softwares and web interfaces, including fixing complicated bugs related to timezones. The general direction is to detect the user’s timezone via javascript...

When strftime lets you down 0

When strftime lets you down

int iret = strftime(szLargeBuffer, sizeof(szLargeBuffer), “%d %b %Y %H:%M:%S GMT”, gmtime(&node->mtime)); iret == 0, it should have worked, but szLargeBuffer is not changed at all. What is going on?!? Passing a too large length...

Delete a backbone model without sending DELETE 0

Delete a backbone model without sending DELETE

Remove a model from a collection, but do not send DELETE HTTP request Wrong (this will trigger HTTP DELETE request) :  var model = this.collection.at(4); model.destroy(); Good : model.trigger(“destroy”, model);   When do you...