Boolean isDark = false; var bgtheme = Application.Current.Resources[“PhoneBackgroundColor”].ToString(); if (bgtheme == “#FF000000”) isDark = true; else isDark = false; if (isDark) { TextContent.Foreground = new SolidColorBrush(Colors.White); ContentPanel.Background = “your dark theme background”; } else { TextContent.Foreground = new SolidColorBrush(Colors.Black); ContentPanel.Background … Continue reading
Monthly Archives: June 2013
How to copy File or Directory from Local Machine/Remote Server to remote Linux server
There are two ways. My preference is generally as follows. scp -r sourcedir/ user@:/dest/dir/ or rsync -auv -e ssh –progress sourcedir/ user@dest.com:/dest/dir/ or rsync -avlzp sourcedir/ user@:/dest/dir/ you can put file name instead of sourcedir to copy file too.
Resolved : Starting lighttpd: Time: (server.c.722) couldn’t set ‘max filedescriptors’ Operation not permitted in CentOS / RHEL/ FEDORA Linux
Solution [root@server home] service lighttpd restart Stopping lighttpd:[FAILED] Starting lighttpd: 2013-06-03 00:40:24: (server.c.722) couldn’t set ‘max filedescriptors’ Operation not permitted [root@server home] semodule -DB [root@server home] /etc/init.d/auditd restart Stopping auditd: [ OK ] Starting auditd: [ OK ] [root@server home] … Continue reading
Resolved : Circular Dependency Error 1059 while starting Windows Service
When you try to start service and it gives error 1059 which says Circular Dependency Error 1059 while starting Windows Service. You can fix it via following steps Open registry editor HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\\ Object name key is logon account for the … Continue reading