Monday, January 6, 2020

Fixed: blurry font fix on vm ( virtual machine )

Problem : Blurry font on the virtual machine screen.


Solution:

1. change the above setting to remove selection of both Keep Aspect Ratio Stretch and Free Stretch.
2. screen may resize.
3. if the fonts are still not fixed then you may need to change the screen resolution in VM to your screen resolution.



4. I changed mine to 2560 x 1600 (16:10)


NOTE: This sort of issue are due to Aspect Ratio mainly.



Monday, September 16, 2019

elipse gdb not stopping at breakpoint


Solutions: Set the eclipse to use C/C++ Breakpoints


If you are using eclipse and the breakpoints don't work. It's due to the Default breakpoint




1. Right click to set a breakpoint and from the menu choose C/C++ Breakpoints.


Now it should work as expected.

Tuesday, August 6, 2019

Solved : Reset family setting on xbox 360 slim

Go to the system info screen under console settings. Hit Left trigger, Right trigger, x, y, Left bumper, Right bumper, up, left bumper, left bumper, X.

It will come up asking if you want to reset to factory defaults.

OK go to your dashboard and go to system look for initial setup and click there the thing is though you will lose everything download content music movies etc...

--------------------------------------------------------------------------

This is the solution that worked for me. If it does not for you then please add your solution in comment.

Suppress doxygen for a section of code

//! @cond Doxygen_Suppress
code
//! @endcond

Fix AOC Dispaly "no signal" issue

Fix: Disconnect the power cable to the AOC display and reconnect it.


Note: Changing the Display cable or connecting the it via docking station, connecting / reconnecting  does not help.

Thursday, January 25, 2018

Turning Off Auto-Correction in iOS

  1. Open the “Settings” app on the iPhone or iPad.
  2. Go to “General” and then to “Keyboard”
  3. Locate “Auto-Correction” and flip the switch to the OFF position.
  4. Exit out of Settings as usual.

Wednesday, July 26, 2017

whatsapp audio does not get sent

may be you have application in background recording audio ?

solution 

1. stop the background application that is recording voice ( ex. voice recorder etc)
2. or restart the phone.

Thursday, July 13, 2017

unable to ssh as root without password

sed -i -e 's/#PermitRootLogin prohibit-password/PermitRootLogin yes/' /etc/ssh/sshd_config

sed -i -e 's/#PermitEmptyPasswords no/PermitEmptyPasswords yes/' /etc/ssh/sshd_config

systemctl restart sshd

1. change the "#PermitRootLogin prohibit-password" to "PermitRootLogin yes"

- This means changing the default behavior of not allowing the Root login (only with)  -> allowing the root login

more info

 * The default for the sshd_config(5) PermitRootLogin option has
   changed from "yes" to "prohibit-password".

 * PermitRootLogin=without-password/prohibit-password now bans all
   interactive authentication methods, allowing only public-key,
   hostbased and GSSAPI authentication (previously it permitted
   keyboard-interactive and password-less authentication if those
   were enabled).

With that configuration you cannot login in as root with a password. Use keys instead.

2. change "#PermitEmptyPasswords no" to "PermitEmptyPasswords yes" as in your case root does not have any password

3. restart the sshd daemon 

Tuesday, July 4, 2017

using nlog from c# code

using NLog;
using NLog.Targets;
using NLog.Config;
using NLog.Win32.Targets;

            // Create configuration object
             LoggingConfiguration config = new LoggingConfiguration();

            // Create targets and add them to the configuration
             ColoredConsoleTarget consoleTarget = new ColoredConsoleTarget();
             config.AddTarget(“console”, consoleTarget);
             //
             FileTarget fileTarget = new FileTarget();
             config.AddTarget(“file”, fileTarget);

            // Set target properties
             consoleTarget.Layout = “${date:format=HH\\:MM\\:ss}: ${message}”;
             // set the file
             fileTarget.FileName = CxUtil.getDataDir() + “\\log.txt”;
             fileTarget.Layout = “${date:format=HH\\:MM\\:ss}: ${message}”;
             // don’t clutter the hard drive
             fileTarget.deleteOldFileOnStartup = true;

            // Define rules
             LoggingRule rule1 = new LoggingRule(“*”, LogLevel.Debug, consoleTarget);
             config.LoggingRules.Add(rule1);
           
             // Only log to file in non-debug mode
             #if !DEBUG
                 LoggingRule rule2 = new LoggingRule(“*”, LogLevel.Debug, fileTarget);
                 config.LoggingRules.Add(rule2);
             #endif

            // Activate the configuration
             LogManager.Configuration = config;

            // Create logger
             Logger logger = LogManager.GetLogger(“Example”);
             // Example usage
             logger.Trace(“trace log message”);
             logger.Debug(“debug log message”);
             logger.Info(“info log message”);
             logger.Warn(“warn log message”);
             logger.Error(“error log message”);
             logger.Fatal(“fatal log message”);