How to find out AD User is active or not

http://stackoverflow.com/questions/2005637/how-to-determine-if-user-account-is-enabled-or-disabled UserAccountControl is the property will hold the status of user in AD with that we can able to mask 0x0002 and find out the disabled status. C# Code ======= int flags = (int)result.Properties[“userAccountControl”][0]; var IsActive = !Convert.ToBoolean(flags & 0x0002); // If flags & 0x0002 => true Status is Active

Continue reading


Parse error: syntax error, unexpected ‘[‘ in line unserialize () []

unserialize($obj)[0] this line may cause error in previous version of php < 5.4 because they do not support array dereference you can check http://php.net/manual/en/language.types.array.php What you can do is, change the code to support previous version or update the version of php in hosting server or local server where you hosted your application. Change of […]

Continue reading


How to align the div center both horizontally and vertically for kiosk

CSS code .page-wrapper { /*margin: 10% 0 10% 0; */ width: 100%; height: 100%; margin: 0; padding: 0; background: url(“~/../img/grey_wash_wall.png”) repeat #004B8D; } .page-wrapper .jumbotron { width: 80%; height: 90%; background-color: #fff; position:absolute; left:0; right:0; top:0; bottom:0; margin:auto; max-width:100%; max-height:100%; overflow:auto; } HTML <div class=”page-wrapper”> <div class=”container”> <div class=”jumbotron”> <p>Hello World!</p> </div> </div> </div>

Continue reading


Reference websites for developing kiosk web applications

Reference websites for learning about kiosk application development with HTML5, css, Twitter bootstrap, jquery, backbonejs. http://www.sitepoint.com/tips-developing-kiosk-web-applications/ http://www.sitepoint.com/google-chrome-kiosk-mode/ http://www.sitepoint.com/gumby2-backbone-bootstrap/ https://github.com/sdeering/gumby2-backbone-bootstrap http://www.sitepoint.com/touch-swipe-function-debounce-script/ Codepen demo for HammerJs http://codepen.io/jtangelder/pen/lgELw http://www.sitepoint.com/web-app-image-preloading-setup-2mins/ https://github.com/CreateJS/PreloadJS Bootply demo http://www.bootply.com/116789

Continue reading