Showing posts with label Tip. Show all posts
Showing posts with label Tip. Show all posts

8/04/2023

remove fu** mcafee on your Mac book.

 This is quick solution, type these on terminal

launchctl stop com.mcafee.menulet
launchctl stop com.mcafee.reporter

launchctl remove com.mcafee.menulet
launchctl remove com.mcafee.reporter

Or refer to this page more detail:

https://gist.github.com/pjobson/11167316


Thank you.





3/17/2020

get unique value from list (python source code)

..
import numpy as np

def unique(list1):
x = np.array(list1)
x = np.unique(x)
return list(x)

list1 = [10, 20, 10, 30, 40, 40]
list1 = unique(list1)
print(list1)
..
output
[10, 20, 30, 40]
..

10/17/2018

10/02/2018

Jupyter notebook ip and port setting (tip)

ipython notebook --ip=0.0.0.0 --port=80
or
jupyter notebook --ip=0.0.0.0 --port=80


object_detection/protos/*.proto: No such file or directory

move to this directory :
cd models/research

and try it again
protoc object_detection/protos/*.proto --python_out=.
good luck!


7/19/2016

Creating a ghost usb boot

firstly, download this files, on here.

This link is my amazon drive. safe.

https://www.amazon.com/clouddrive/share/UsWjAZW1CWCnyIKsqSgzbXhyD10GdkQOTYoQNyNyBNv?ref_=cd_ph_share_link_copy


1)
HPUSBDisk.exe to install the files.
Run the installation file.

Unpack the compressed Bootingimg.zip.
and It sets the path where you extracted.

And click start button.

2)
autoexec.txt, and config.sys file to save your the usb.
(Autoexec.txt file is changed to the autoexec.bat file name.)

3)
After you extract the compressed GHOST.zip, stores with usb.

4)
Now the end if you set the boot order to boot to a usb!

5)
When the boot is called A:> ,  A:> ghost.exe  you can run the ghost.


7/13/2016

window program compatibility mode is on. turn it off and then try setup again

To install the language pack for vs 2013, it made things worse.

The error message "window program compatibility mode is on. turn it off and then try setup again."

Simple way to solving, and change the file name to install vssdk_full.exe.









5/10/2016

(tip) CCriticalSection in WinCE

For using CCriticalSection, this header file need in WinCE.

#include < afxmt.h >
CCriticalSection m_critic;


3/28/2016

error C4996: 'inet_addr': Use inet_pton() or InetPton() instead or define _WINSOCK_DEPRECATED_NO_WARNINGS to disable deprecated API warnings

If you meet this error message
"error C4996: 'inet_addr': Use inet_pton() or InetPton() instead or define _WINSOCK_DEPRECATED_NO_WARNINGS to disable deprecated API warnings"


Add this code first line on the code.
#define _WINSOCK_DEPRECATED_NO_WARNINGS


Then we can avoid.


1/05/2016

(lucky tip) linux opencv+cuda cmake setting and build error ->nvcc fatal compute_11

About nvcc fatal compute_11 error
when build linux(ubuntu) after opencv + cuda setting using cmake

Try change cmake setting.
Cann't you see this option check Advanced box.

CUDA_GENERATION=Kepler
Add 3.2 in CUDA_ARCH_BIN

CUDA_ARCH_BIN = 3.2

12/30/2015

How to run *.run file in Linux ? (simple tip)


Just change mode
and run!
'./' means sh command


# chmod a+x install_test.run
# ./install_test.run


Linux is not easy to me.....