[Solved] System error 86 – The specified network password is not correct

When I tried to connect my samba server with Windows 10, but got the error,

System error 86 - The specified network password is not correct

I don’t have permission to change the configuration of the Windows machine, while I can change the configuration on my Ubuntu machine where the samba service is running.

I fixed the problem on the server (Ubuntu 20.04): In /etc/samba/smb.conf, put:

ntlm auth = true

Reference: https://superuser.com/questions/1125438/windows-10-password-error-with-samba-share

Fix windows search not working

I cannot use windows search from the task or the file window.

Spend much time in searching the solutions online and tried to fix the problem. However, most of them are not working for me.

Finally, I tried the following script in the Powershell with admin right:
Add-AppxPackage -Register "C:\Windows\SystemApps\Microsoft.Windows.Search_cw5n1h2txyewy\AppxManifest.xml" -DisableDevelopmentMode

The problem is solved!

Encoding change in Ubuntu

Some files in different OS use different encoding, such as MATLAB files in windows use GBK, they cannot show correctly in linux when Chinese or Janpanese comments in the files. We need to change the encoding first.

1.install enca:sudo apt install enca

2.enter the directory such as: cd ~/Documents

3.change the encoding to utf8:enca -x utf-8 -L chinese *

Start Synergy BEFORE logging in

For 16.04 create the following file (it doesn’t exist)

/etc/lightdm/lightdm.conf

with the contents:

[Seat:*]
autologin-user=

[SeatDefaults]
greeter-setup-script=/usr/bin/synergyc <hostname>

Ref: https://askubuntu.com/questions/918137/start-synergy-or-any-application-before-logging-in-ubuntu-16-04-2-lts

Install MITSUBA on Linux 16.04

**************************************************************************

Compilation error due to introuvable file “bind_member_variable.hpp”

SOLUTION: modify « src/bsdfs/irawan.h » :

Line : #if BOOST_VERSION >= 106000

Becomes : #if BOOST_VERSION >= 105800

RE : http://stackoverflow.com/questions/36807135/how-to-install-bind-member-variable-hpp-in-ubuntu-16-04

**********************************************************************************

Scons –j 8

**********************************************************************************

Error when compiling « DScalar1 »

SOLUTION: modify « include/mitsuba/core/autodiff.h »

Add the following definition in the  “DScalar1”:

inline DScalar1& operator*=(const DScalar1 &v) {

    grad = v.grad * value + grad * v.value;

    value *= v.value;

    return *this;

}

RE : https://github.com/mitsuba-renderer/mitsuba/issues/3

via Install MITSUBA on Linux 16.04

Develop with OpenCV on Mac

1.Open Xcode, choose New -> New Project -> Command Line Tool
2.Name it and select C++ for type
3.Click on your project from the left menu. Click the build settings tab from the top. Filter all. Scroll to Search Paths. Under header search paths, for debug and release, set the path to /usr/local/include. Under library search paths, set the path to $(PROJECT_DIR). Finally, check if C++ standard library is libstdc++ or not, if not, change it to this!
4.Click on your project from the left menu. File->New->New Group, Name the group OpenCV Frameworks.
5.Select the folder (group) you just labeled, OpenCV Frameworks in the left menu. Go to File -> add Files, Type /, which will allow you to manually go to a folder. Go to -> /usr/local/lib
6.Select both of these files, libopencv_core.dylib, libopencv_highgui.dylib, and click Add. (you may need to add other library files from this folder to run other code.)
7.You must include this line of code in the beginning of your main.cpp file:
#include <opencv2/opencv.hpp>

Ref: http://hujiaweibujidao.github.io/blog/2014/03/13/develop-with-opencv-on-mac-os-x/

IEEE-xpress: font not embedded error

Do not use ps2pdf.exe, use the following command:

gswin32c -dSAFER -dNOPAUSE -dBATCH -sDEVICE=pdfwrite -dPDFSETTINGS=/printer -dCOMPatibilityLevel=1.4 -dMaxSubsetPct=100 -dSubsetFonts=true -dEmbedAllFonts=true -sOutputFile=%.pdf %.ps

Then the problem will be solved.

Ref: http://bbs.ctex.org/forum.php?mod=viewthread&tid=57382&extra=&page=1

Chinese title and category cause 404 not found

For the titles, the simplest way is to install a plugin called WP Slug Translate.

For the categories, I modified the file rewrite.php.

function get_extra_permastruct($name) {
if ( empty($this->permalink_structure) )
return false;

if ( isset($this->extra_permastructs[$name]) )
return $this->extra_permastructs[$name][‘struct’];

return false;
}

Change if ( empty($this->permalink_structure) ) to if ( !empty($this->permalink_structure) )

Ref: http://www.howsci.com/wordpress-404-error.html