Archive for January, 2012
Migrate MySQL Setting to New Server
oldserver$ mysqldump mysql > mysql.sql
newserver$ mysql mysql < mysql.sql
newserver$ mysql ‘flush privileges;’
Delete Files Older Than x Days on Linux
find * -mtime +5 -exec rm {} \;
Note that there are spaces between rm, {}, and \;
Explanation
- The first argument is the path to the files. This can be a path, a directory, or a wildcard as in the example above. I would recommend using the full path, and make sure that you run the command without the exec rm to make sure you are getting the right results.
- The second argument, -mtime, is used to specify the number of days old that the file is. If you enter +5, it will find files older than 5 days.
- The third argument, -exec, allows you to pass in a command such as rm. The {} \; at the end is required to end the command.
This should work on Ubuntu, Suse, Redhat, or pretty much any version of linux.
Ref: http://www.howtogeek.com/howto/ubuntu/delete-files-older-than-x-days-on-linux/
SharePoint Lists Web Services GetListItems Row Limitation
Posted by allenkwc in .net, SharePoint on January 20, 2012
Check and see if you placed a rowlimit in your getlistitems method. If you want to return everything in the current view that you have you can use “0” see example below: XmlNode doc = doclist.GetListItems(“My List”, “My View”, query, viewFields, “0”, queryOptions, null);