Posts

c# - Error after upgrading ASP.Net WebAPI nuget package -

i have updated webapi nuget package 5.2.2 5.2.3 , started getting error, the type 'system.web.http.apicontroller' exists in both 'c:\program files (x86)\microsoft asp.net\asp.net mvc 4\assemblies\system.web.http.dll' , '\packages\microsoft.aspnet.webapi.core.5.2.3\lib\net45\system.web.http.dll' i tried cleaning solution/deleting reference , stuff not working. please help. update#: reverting packages helped. still not sure if missed in upgrade. i got same problem when getting microsoft.aspnet.webapi. at nuget package manager console write this: update-package -projectname 'yourprojectnamegoeshere' -reinstall this update packages , solve problem.i hope helps

java - Getting statistics from resultset -

i have resultset returns 5 values. set data in pojo, , added pojo list. datapojo = new outputviewdatapojo(); datapojo.settime(resultado.getint(1)); datapojo.setcommanddesc(resultado.getstring(2)); datapojo.setokerror(resultado.getstring(3)); datapojo.setresultdesc(resultado.getstring(4)); datapojo.setresultcode(resultado.getint(5)); listpojo.add(datapojo); [description:call connect, timestamp:0, okerror:ok, resultcode:0, resultdesc:null.] [description:waiting open complete, timestamp:2468, okerror:ok, resultcode:0, resultdesc:null.] [description:reading card, timestamp:0, okerror:ok, resultcode:0, resultdesc:null.] [description:waiting read card, timestamp:10329, okerror:ok, resultcode:0, resultdesc:null.] [description:reading card, timestamp:0, okerror:ok, resultcode:0, resultdesc:null.] [description:waiting read card, timestamp:6671, okerror:ok, resultcode:0, resultdesc:null.] [description:reading card, timestamp:0, okerror:ok, r...

php - isset() not giving expected results -

i have form <form action="addnote.php" method="post"> <input type="hidden" name="tid" <?php echo"value='$id'"; ?> > <div class="input_fields_wrap1"> <label>note</label> <input type="text" id="coa" name="notes[]" > <button class="add_field_button1">add more notes</button> </div> <label>next call date</label> <input type="date" name="call" > <div class="form-group"> <label class="col-md-3 control-label" for="example-text-input"></label> <div class="col-md-3"> <input input type="submit" value="submit " > </div> </div> </form> and php code <?php include 'db.php'; $id...

css - How can I align my logo and menu icon on a mobile device -

i using wordpress , have responsive theme using well. when view website on mobile device, menu turns icon 3 horizontal lines; slide out menu. on mobile device menu above 3 lines towards left instead of them aligning with each other. this code menu icon: .section-navi .pl-nav > li > { line-height: 50px; padding: 0 13px; /* opacity: .7; */ } and code logo: .section-navi .navi-container { height: 36px; padding: 7px; } please visit: surveillanceshack.com , view on mobile device. try adding following code: you might pick suiting @media query here , if you're targeting iphones. almost every phone starts @ min-device-width: 320px , it's decide want top limit. // iphone 5 & 5s in portrait & landscape @media screen , (min-device-width: 320px) , (max-device-width: 568px) { .section-navi .navi-container { min-height: 50px; padding-right: 0; box-sizing: border-box; text-align: left; } } ...

rabbitmq - Is it good practice to create AMQP queues manually or programmatically? -

i'm in process of implementing various remote methods/rpcs on top of amqp (rabbitmq in particular). when worker (or client) comes online, could, in theory, declare (create) queue on exchange. other approach start using queue , assume exists on exchange. which approach more common? creating queues manually has higher administrative cost, maybe; however, can result in more consistent environment if decouple queue management queue usage. it depends requirement. if have fixed number of queues , dont need generated dynamically, go manual. example : integration application , know have 3 consumers a,b,c manually create 3 queues. example in chat application every logged in user want create queue, in case queues should created programatically. , in case manual creation, have more control implement permissions , acls.

datagridview - How To Move Row In DataBound DataGrid In C# without Knowing The Object Type -

i have number of datgridgs want able reorder rows for. sortablebindinglist<> : list<> types contain different objects. tried casting datagridview's datasource sortablebindinglist<object> .removeat() & .insert() cast failed. tried pass object type function using type failed. type objtype; ... var x = (sortablebindinglist<objtype>) datagridview.datasource; but doesn't work either, nether 'typeof(objtype)`. not sure how proceed. turns out can dynamic types. dynamic list = dgv.datasource; var item = list[rowindexfrommousedown]; list.removeat(rowindexfrommousedown); if (rowindexofitemundermousetodrop == -1) list.add(item); else list.insert(rowindexofitemundermousetodrop, item);

xml - Do current CKAN instances in the field support the JSON-LD DCAT format? -

i'm working on graduate course project develop query client ckan , dcat catalogs. i've read lot of documentation , specs, yet lot of things seem still proposals figured needed reach out ask knows. the project open data site discusses dcat format json-ld based format particular schema. schema makes sense there lot of push in class around targeting federal government data data.gov , runs ckan (as many of these data sharing systems according research). everywhere i'm looking, people suggesting ckan supports dcat, i'm not finding that. for instance, http://catalog.data.gov/api/3/action/package_show?id=national-stock-number-extract shows different json format. appears have values used translate json-ld dcat object. the following properties in dcat schema, of document doesn't conform. looks of translation json-ld dcat. { key: "bureaucode", value: [ "007:15" ] }, { key: "accrualperiodicity", value...