WebApi with OWIN SelfHost and Windows Authentication

WebApi with OWIN SelfHost and Windows Authentication

I have a console application SERVER that hosts WebApi controllers using OWIN self-hosting, and runs under a custom account named "ServiceTest1".In the same machine I have another console application CLIENT that runs under the account "Servi

Changing struts.xml file name for a multi-module Maven web project

Changing struts.xml file name for a multi-module Maven web project

I have a Maven project with multiple modules. Out of four modules, two of them are web modules.Here is the structure.MyProject | |__ api | |__ commons | |__ web_child | |__ web_mainweb_main module is the main one and it can

Table history trigger in SQL Server?

Table history trigger in SQL Server?

I'd like to create a trigger that writes to a history table with inserted values and before and after update values. I would also like to include as much information about the account doing the update as is possible. How would i include t

How to send data from one application to other application in android?

How to send data from one application to other application in android?

I need to send some string data from my one application activity to my other application activity in android and not between the activities within the same application. How to do that? What intent filters my other application need to declar

WebApi - Deserializing and serializing alternate property names

WebApi - Deserializing and serializing alternate property names

I'm trying to figure out how I can specify alternate property names with ASP.NET WebApi - and have it work for deserialization + serialization, and for JSON + XML. I've only uncovered partial solutions so far.I want to expose the property n

In MVC4, how to save multiple row edits at once?

In MVC4, how to save multiple row edits at once?

Every example that I can find of an MVC4 app has the edit working on one row of data at a time. It displays all the rows of data with each row having an edit which takes you to another page and allows you to edit that one row.What I would

Validating form dropdown in CodeIgniter

Validating form dropdown in CodeIgniter

I am using CodeIgniter's form helper and form validation library to build my forms. I'm having trouble making the dropdown 'sticky' and also finding appropriate validation rules.This is how I'm populating the drodown:foreach($events as $eve

How to calculate offset of a class member at compile time?

How to calculate offset of a class member at compile time?

Given a class definition in C++class A{ public: //methods definition .... private: int i; char *str; ....}Is it possible to calculate the offset of a class member at compile time using C++ template meta-programming? The cla

How should I use rails and simple_form for nested resources?

How should I use rails and simple_form for nested resources?

I'm trying to create one resource with another (nested) at the same time. I'm using Rails4 and simple_form 3.0.0rc. Here is my code.Models:class User Controller:class UsersController View (form for new user) When I submit the for

int, short, byte performance in back-to-back for-loops

int, short, byte performance in back-to-back for-loops

(background: Why should I use int instead of a byte or short in C#)To satisfy my own curiosity about the pros and cons of using the "appropriate size" integer vs the "optimized" integer i wrote the following code which reinforced what I pre

ASP MVC Define Section in Partial View

ASP MVC Define Section in Partial View

As the title states, I want to define a section in a partial view.My code that I've tested with are as follows:Controller:public ActionResult Test(){ return View();}public ActionResult PartialTest(){ return PartialView("_PartialTest")

Generating Route Url to MVC controller action from WebAPI

Generating Route Url to MVC controller action from WebAPI

I'm used to generating route URLs to other controller actions within an MVC controller action using something similar to below:public class ApplicationController : Controller{ public ActionResult Index( ) { var url = Url.RouteU

Size of checkbox bootstrap

Size of checkbox bootstrap

Wondering if its possible to change the size of checkbox as it's possible with buttons. I want it to be bigger, so it makes it easy to press. Right now its looking like this:Code: Kalsiumklorid: {{ Form::checkbox('O_Kals_Klor'

Testing Rack Routing Using rSpec

Testing Rack Routing Using rSpec

I have a rule in my routes.rb:constraints AssetRestrictor do match '*seopath' => SeoDispatcherendThen in lib/seo_dispatcher.rb, I have this:class SeoDispatcher AD_KEY = "action_dispatch.request.path_parameters" def self.call(env) seop

Overriding a Magento Controller in community extention

Overriding a Magento Controller in community extention

I have the extension CreativeStyle CheckoutByAmazon installed on my magento 1.7 store and I am trying to override the CheckoutController Class but magento seems to ignore my override. Any suggestions will be much appreciated. Also cleared c

IE10 - how to prevent “Your current security settings do not allow this file to be downloaded” popup

IE10 - how to prevent “Your current security settings do not allow this file to be downloaded” popup

I’m using wpf WebBrowser control (System.Windows.Controls) and I need to prevent users from performing various actions like downloading files or printing pages. I have disabled file download option in Internet Explorer options (Security ta

Getting the Action of UIGestureRecognizer in iOS

Getting the Action of UIGestureRecognizer in iOS

I have printed a UITableviewCell's gesture in – tableView:didSelectRowAtIndexPath method in NSLog as ; target= )>> and I have assigned this UIScrollViewPanGestureRecognizer to a UIGestureRecognizer to access the properties of it as follows,

Mvc area routing?

Mvc area routing?

Area folders look like :Areas Admin Controllers UserController BranchController AdminHomeControllerProject directories look like :Controller UserController GetAllUsersarea route registra

Is there a way to pass params when clicking submit button in simple_form view in rails 3.2.12?

Is there a way to pass params when clicking submit button in simple_form view in rails 3.2.12?

In simple_form view, the submit button is like this:We are trying to pass a params subaction when clicking the Save button. The params[:subaction] should have value of 'update' after clicking the button. Here is what we tried in view but it

Creating new user/login in sql azure

Creating new user/login in sql azure

Create a new user/login in sql azure with access to read/insert/update on the database items like tables sp,view etc.This user will not have the permission to drop table/drop procedures.Please give me on exapmle. 1:You can also user the

Unit Test ASP.NET Web API controller with fake HTTPContext

Unit Test ASP.NET Web API controller with fake HTTPContext

I'm using the following approach to upload files through ASP.NET Web API controllers.[System.Web.Http.HttpPost]public HttpResponseMessage UploadFile(){ HttpResponseMessage response; try { int id = 0; int? qId = null;

ASP.NET MVC - drop down list selection - partial views and model binding

ASP.NET MVC - drop down list selection - partial views and model binding

I'm fairly new to ASP.NET MVC and am trying to work out the best way to do this. It's probably simple but I just want to do things correctly so I thought I'd ask.Lets say I have a model that is this:Task - Id, Description, AssignedStaffMemb

ASP.NET MVC - drop down list selection - partial views and model binding

ASP.NET MVC - drop down list selection - partial views and model binding

I'm fairly new to ASP.NET MVC and am trying to work out the best way to do this. It's probably simple but I just want to do things correctly so I thought I'd ask.Lets say I have a model that is this:Task - Id, Description, AssignedStaffMemb

ASP.NET MVC - drop down list selection - partial views and model binding

ASP.NET MVC - drop down list selection - partial views and model binding

I'm fairly new to ASP.NET MVC and am trying to work out the best way to do this. It's probably simple but I just want to do things correctly so I thought I'd ask.Lets say I have a model that is this:Task - Id, Description, AssignedStaffMemb

How to add entry to 'More' menu or top menu to add action on multiple selections?

How to add entry to 'More' menu or top menu to add action on multiple selections?

GoalI want to create delivery from a selection of order lines, but I can't get the button to appear.Modulecompose_delivery_order/├── delivery_order_button.py├── delivery_order_button.xml├── images/│   └── delivery_order_button.png├── __init