Posts

AngularJS UI Bootstrap pagination control off by one page -

i trying angular ui boostrap pagination control work table populated web api controller. i have directive used on pagination control: app.filter('pagination', function () { return function (input, start) { start = +start; return input.slice(start); }; }); i have following in angular controller: $scope.currentpage = 0; // max items per page $scope.pagesize = 10; // number of pagination buttons display $scope.numberbuttons = 5; // total items in array $scope.totalitems = 0; // number of pages $scope.numberpages = 0 in view, have following (truncated brevity): ... <tr data-ng-repeat="assettype in assettypes | filter:searchfilter | pagination: currentpage * pagesize | limitto: pagesize | orderby:sorttype:sortreverse"> <td><a href="#/asset-type-details/{{assettype.assettypeid}}">{{ assettype.assettypeid }}</a></td>--> <td>{{ assettype.assettypename...

visual c++ - Problems writing a plugin to ida pro in c++ Because of different versions -

i'm trying write plugin ida , i'm pretty stuck. im using newest ida pro version (6.1). turns out used things not in use on version. how solve problem in code commands ht_graph? command changed in new version? , if there experience in writing plugins i'd love tips. thank :)

html - How to make a div span two rows (only on mobile layout)? -

Image
i have responsive web layout based on bootstrap. have glyphs, titles , text. these 2 layouts: [1a]          [1b]        [1c] [2a]          [2b]        [2c] [3a]          [3b]        [3c] this layout small screens. [1a] [2a]        [3a] [1b] [2b]        [3b] [1c] [2c]        [3c] this code makes first layout, how achieve second responsively? edit: i have this: from code: css: .green-box { background: #3dbeaf; border: 5px solid #e7e7e7; border-radius: 20px; margin-top: 10%; margin-bottom: 10%; padding-top: 10px; padding-bottom: 15px; margin-left: 2.77778% } @media (max-width: 769px) { .mob-hide{ display: none...

angularjs - How to get the active tab In Angular Material -

i want find active tab in material , save in cookie: var activetab = $cookiestore.get("active"); $cookiestore.put('active',$scope.selectedindex); console.log(active); how can find active tab in angular material here codepen example using md-on-select="ontabchanges(tabnumber)" can "watch" tab changes. example in codepen: angular material selected tab

Parse value out of XML using MSSQL -

i have following xml structure in column in table: <font class="nav"> <a onmouseover="showmenu( event, '107349267', 'yes', '431539056')" href="#" onmouseout="delayhidemenu()"> <b>107349267</b> </a> </font> i comfortable parsing parent child nodes failing see how can : select cast(transactionid xml).value('(/font class//b/node())[1]', 'nvarchar(max)') transid dbo.tablea any help? figured out: create function [dbo].[parsehtmlfromstring] ( @html_string varchar(max) -- variable string ) returns varchar(max) begin declare @string varchar(max) declare @xml xml set @xml = cast(('<a>'+ replace(replace(replace(replace(@html_string ,'<','@*'),'>','!'),'@','</a><a>'),'!','</a><a>') +'</a>') xml) ;with cte (selec...

c++ - Using ListControl in a Dialog window -

can listcontrol used in dialog in non-mfc project? using visual c++ 2010. the examples have seen far uses mfc, seems me listcontrol part of mfc. code working on not mfc based, however, visual studio still allows adding listcontrol dialog in resource view, , generates rc code list control. guess should able use it. however, not use standard method found online add variable listcontrol , use it. how can use listcontrol in case? e.g. adding column or write cell? code example help. the clistctrl class mfc class. can used within mfc project. however, clistctrl wrapper around listview common control , , listview control can used in windows application—no mfc required. the resource editor included visual c++ (confusingly) refers listview control "list control". can insert 1 on dialog, , insert listview control. if you're using mfc, can choose create member variable corresponding control. type of member variable clistctrl , because encapsulating access l...

Compute similarity between columns in a fast manner MATLAB -

given (rather) big matrix : [m*n] (m = 7, n = 15000) where columns items , rows attributes, compute similarity between each 2 items , store in array. similarity matrix sim each row contains [item1_id,item2_id, similarity] . process needs done fast. i considering options @bsxfun uses multi-threading purpose. others ideas appreciated (i totally open other efficient approaches). appreciated if suggest approaches , report timing takes perform operation. process may scaled in future. thank much.