“No problem can be solved from the same level of consciousness that created it.” Albert Einstein (1879-1955)
Sunday, 26 October 2014
Turn Windows Phone to Security Camera
Need to download the following applications from Windows phone app Store:
CameraFTP App from Windows App Store: CameraFTP App
CameraFTP Viewer from Windows App Store: CameraFTP Viewer
Wednesday, 15 October 2014
Remove restrictions from MS Word and Excel Files
Remove passwords / editing restrictions on MS Word and Excel Files: more...
Thursday, 14 August 2014
Reinstalling Packages and its Pitfalls
Reinstalling a package is a simple act of uninstalling a package and
installing back the same version of the package that was uninstalled.
The 2 steps involved are nicely bundled up in the –reinstall switch of
the Update-Package command as shown below. more...
Wednesday, 23 July 2014
Enable the query cache in MySQL to Improve Performance
To see the cache size:
mysql> SHOW VARIABLES LIKE 'query_cache_size';
To manage the cache size:
mysql> SET GLOBAL query_cache_size = 16777216;
More...
Tuesday, 8 July 2014
MS SQL SERVER - String Comparison
Sometimes, comparing 2 strings can be a bit tricky in MS SQL Server. For example, if there is a field of name as varchar(n), containing the value of "Microsoft", it is actually treated as "Microsoft " (fill the rest of field with spaces). Therefore using = always return wrong answer. Using LIKE however, return those strings which contains word Microsoft which is not the desired answer. The solution is to use PATTERN MATCHING as follow:
SELECT "Microsoft " = "Microsoft[ ]%"
[ ]% represents the spaces
SELECT "Microsoft " = "Microsoft[ ]%"
[ ]% represents the spaces
Subscribe to:
Posts (Atom)
Analysis Service in Power BI Report Server
We couldn’t connect to the Analysis Services server. Make sure you’ve entered the connection string correctly... link
-
//convert BASE64 string to Byte{} array function base64ToArrayBuffer(base64) { var binaryString = window.atob(base64); var binar...
-
var htmlToPdf = new NReco.PdfGenerator.HtmlToPdfConverter(); htmlToPdf.PageFooterHtml = @"<div style='text-align:right; font-s...
-
static void Main(string[] args) { // create a dummy list List<string> data = GetTheListOfData(); // split the lis...