Posts

filesystems - Is there a way to automatically make a copy of a file each time it is updated in Unix? -

i have application updates files in unix server. since cannot modify application, there way can make sure these files copied before each update can have history of changes? there way/tool in unix can that? if on linux (specifically) use inotify(7) facilities (perhaps via incrontab ...) alternatively, might run periodically (thru crontab(5)  entry) script doing make particular makefile (since gnu make designed care timestamps) managing e.g. backups. or periodically run rsync command. however, smells need revision control (also known version control system). recommend git ; use before , after running application (e.g. write wrapping shell script doing that). but there no universal solution (e.g. if monitored application keeping file descriptor opened long time, , write file little little...). should explain more happening , want ...

javascript - Which is the best data grid for huge data handling on multiple devices? -

which best cross browser compatible data grid of javascript huge data handling on multiple devices (including pc, mobile, tablets) having best features , futuristic development approach ? have searched following grids: d-grid (not provide grouping & multilingual support) grid-x (not provide grouping & multilingual support) ui-grid dhtmlx telerik kendo ui jqwidgets grid i looking at-least features below: nested sorting searching/filtering ui live data editing/updating multi-language support drag , drop of rows/cols supports summary rows re-sizable , sort-able , hide-able columns supports grouping rows collapsible sections kindly suggest best one. i have experience kendo grid only. can kendo grid has many features isn't perfect handling huge data. there problem rendering. every time data changed (filtering, sort, add, remove, edit...) grid re-rendered. if grid includes many rows , columns, there performance problem. can partly solved pagi...

objective c - One Array - Multiple sections - NSIndexPath -

i have 1 big array many values. i've sorted out sections can't seem indexpath right. basically, i'm trying do, if previous section has 50 rows, next indexpath.row should 51->. 1 after should 60-> , fourth. nslog(@"current indexpath.row: %ld",(long)indexpath.row); nslog(@"current section: %ld",(long)indexpath.section); (int = indexpath.section; == indexpath.section; i++) { nslog(@"number of rows: %ld",(long)[self tableview:tableview numberofrowsinsection:indexpath.section]); nslog(@"in section: %ld",(long)indexpath.section); if (i++) { // add previous number of rows plus current int previousrows = [self tableview:tableview numberofrowsinsection:indexpath.section*2]; nslog(@"now indexpath: %ld",(long)previousrows+indexpath.row); } } i hope i've made question clear enough understand. nsindexpath doesn't work way. nsindexpath starts 0 eve...

sql server - Entity Framework - Update and Delete at same time -

i want update record , delete @ same time in entity framework. can ? or straight way, first update record , delete ? my scenario: i want delete record. before deleting record, want add comment(which column in table), why deleting record. if think, why add comment while anyway deleting record, here doing. if change made record, there trigger creates log record in audit table. so, want log comment. my concern update , deleting using 2 commands create 2 log records. you cannot update record , simultaneously delete in same operation in sql server, whether use entity framework or not. it's possible update , delete in context of same transaction , still 2 separate sql operations , logging trigger fire both times. if possible modify logging, write trigger code special logic ensure have 1 log entry, have address @ level rather @ database operation level.

php - Change class after depending on received data? -

i have jquery script sends request check_username.php checks in database if username available , echoes true or false , it's working. however when type form username doesn't exists form turns green, good, once enter username exists turns form red , no matter username type stay red. how solve this? jquery <script src="https://code.jquery.com/jquery-2.1.4.min.js"></script> <script> $(document).ready(function() { $("#username").keyup(function(e) { var username = $("#username").val(); $.post('check_username.php', {'username': username}, function(data) { if(data=="true") { $("#usergroup").addclass("input-group has-error"); } else if(data=="false"){ $("#usergroup").addclass("input-group has-suc...

performance - How to test page speeds for websites hosted locally? -

i need tools test page load speeds websites hosted locally on lan, , not accessible via wan connections. in past using firefox yslow , page speed helped me lot, since latest firefox version (in case 39.0) yslow buggy , page speed disappeared firebug. new tools can installed these performance tests? i'd suggest yslow command line if you're finding plug in buggy. i'd suggest google chrome developer tools alternative firebug.

sql server - How does RavenDb Sql Replication Work? -

i've looked through ravendb documentation can't seem see how works, poll database or use sort of notification sqldependency? sql replication in ravendb watch changes inside ravendb , apply script supplied send it. doesn't use polling