Snippet for AngularJS for working with checkbox controls. The task is to verify if checkbox is checked or not with AngularJS.
Snippet for AngularJS for working with checkbox controls. The task is to verify if checkbox is checked or not with AngularJS.
There are different ways to change text editor in Midnight Commander. You may choose between internal editor and external one, or you can choose one of external editors.
I guess SPServices is the best solution for SharePoint. We still have SharePoint 2010 and prepate to migrate to SharePoint 2016 through SharePoint 2013. But for current tasks which must be made immediately, we still use SharePoint 2010, but only without server code. Rather often we have to make custom views for other users.
In SharePoint 2010 once I had found a lot of errors in time of execution or publishing workflow processes: "(-1, -1) Type System.CodeDom.
(more...)
SharePoint list (SPList) has grown up to immense size and started to decrease performance. To solve this, I decided to cut this SPList to pieces – to create archives and save items there by year.
StreamWriter has some options of usage. You can as add new text to an existing text in file, so and to clean existing text and add a new one.
During previous 5 years I have downloaded files from FTP server. Those were texts and images, that had been downloaded from FTP resources. During these 5 years its quantity became enormous – over 150 000 items in each folder. It worked automatically, that's why I hadn't paid attention to disc size and quantity of files. But once the space decreased too much.
To create a full backup of MS SQL Server database with compression use this SQL command:
use YourDataBaseName go BACKUP DATABASE YourDataBaseName TO DISK = 'Z:\BACKUP_FILE_NAME.bak' WITH COMPRESSION
According to database size and your server capabilities, backup time can vary.
Application logs can stop your machine if you do not control their size. By default, webserver IIS doesn't clean IIS logs and stores them in c:\inetpub\logs. If your server is high loaded, logs of IIS can get critical size in 2-3 weeks.
(more...)
C# snippet below helps to read SQL data to List<T> generic collection without any extensions or frameworks only with SQL and LINQ.