Posts

SQL Server error on update command - "A severe error occurred on the current command" -

running following query in sql server management studio gives error below. update table_name set is_active = 0 id = 3 a severe error occurred on current command. results, if any, should discarded. the logs have been truncated there update trigger isnt issue the transaction count 0 (@@trancount) i have tried same update statement on couple of other tables in database , work fine. dbcc checktable('table_name'); gives dbcc results 'table_name'. there 13 rows in 1 pages object "table_name". dbcc execution completed. if dbcc printed error messages, contact system administrator. i had same error, , down corrupted index. re-indexing table fixed problem. i realise thread year old, thought worth mentioning incase comes across in future (like did).

cryptography - Modify of AES S-Box -

is there way change standart s-box , inv. s-box of aes algorithm pair of s , inv s -boxes? standard s-box , inv. s-box here: http://en.wikipedia.org/wiki/rijndael_s-box the possible explanation sboxinv not inverse of sbox. simple check reveals sbox[5e] = 6a, whereas sboxinv[6a] = 68 (and not 5e should be).

kendo ui - KendoMobile dataSource didn't initialize properly -

Image
i'm developping little kendomobile webapp. problem quite simple : anytime try initialize datasource setting array data option, datasource remains empty. here array (screen safari dev console) : console.log("fournisseursarray -> "); console.log(fournisseursarray); now structure of objects : in opinion both seems correct in fact : when use objects array, shows me want guess works fine. but if simple, wouldn't have here, so... this how declare datasource : datasourcemap = new kendo.data.datasource({ data: fournisseursarray }); finally when put log on datasource : console.log(datasourcemap); if knows problem, i'll him share knowledge me the kendo ui data source remain empty unless call read or fetch methods. in short call fetch or read before accessing data.

ios7 - Customise UITableViewCellEditControl -

is there easy way customise uitableviewcelleditcontrol . more specific want change images plus , minus sign. what have found far ( http://voidrant.tumblr.com/post/27760918492/customize-uitableviewcell-edit-mode-views ) can "searching" subviews in layoutsubviews , replace image there. it sounds hack, , afraid rejection, wandering there other way? i targeting on ios7

javascript - Give angular directive a model name to access it's scope in the parent -

i'm trying access isolated scope of directive using model attribute on it's element when use in html. eg. <div controller="parent"> <hello-world data-ng-model="hw"/> <input type="submit"/> </div> the controller parent: function($scope){ $scope.submit = function(){ alert($scope.hw.t); } }; the directive hello-world: app.directive('helloworld', function() { return { link: function(scope, element, attrs){ scope.t = 'test'; }, replace: true, restrict: 'e', scope: {}, template: '<h5>hello world {{t}}</h4>' }; }); t defined in isolated scope, because displayed correctly. however, when click submit button, error because hw undefined. (because hello-world scope isn't being assigned 'hw' scope variable of parent. how can let hw defined scope of hello-world directive? use case make date picker exposes date pic...

ios - Update parent view from child view -

i using xcode 5 (ios sdk 7.0). trying update element inside parent view child view. i have following files: viewonecontroller viewtwocontroller inside viewonecontroller, adding viewtwocontroller subview following code: [self.view addsubview:viewtwocontroller]; i have uiimageview declated in viewonecontroller.h iboutlet uiimageview *box; i update backgound color of box viewtwocontroller. know can update background color following code. [box setbackgroundcolor:[uicolor redcolor]]; but works in viewonecontroller. have function called updatecolor viewtwocontroller. want update color of box function. one quick , not clean way call parentviewcontroller directly : [((viewonecontroller*)self.parentviewcontroller).box setbackgroundcolor:[uicolor redcolor]]; however larme suggested it, believe cleanest way use delegate, used notify change after user did something. here tutorial http://www.tutorialspoint.com/ios/ios_delegates.htm you have create delegate protoco...

java - convert dynamic web project to maven project -

i try create dynamic web project in eclipse , convert project maven project. project has structure src\main\java src\main\resources src\main\webapp src\main\test when right click on project > configure > convert maven project, error message : errors occurred during build. errors running builder 'maven project builder' on project 'gestion'. not calculate build plan: plugin org.apache.maven.plugins:maven-war-plugin:2.3 or 1 of dependencies not resolved: failed read artifact descriptor org.apache.maven.plugins:maven-war-plugin:jar:2.3 plugin org.apache.maven.plugins:maven-war-plugin:2.3 or 1 of dependencies not resolved: failed read artifact descriptor org.apache.maven.plugins:maven-war-plugin:jar:2.3 not calculate build plan: plugin org.apache.maven.plugins:maven-war-plugin:2.3 or 1 of dependencies not resolved: failed read artifact descriptor org.apache.maven.plugins:maven-war-plugin:jar:2.3 plugin org.apache.maven.plugins:maven-war-plugin:2.3 or 1 of dep...