Topic :
1. How to build multi binaries through cmake.
2. How to make multi binaries by preprocess.
Topic :
1. How to build multi binaries through cmake.
2. How to make multi binaries by preprocess.
linux "^M" issue
If you look the shell script or code sent from Windows to the Linux server, you may find "^M" at the end of the line.
ex 1 )
echo test^M
ex 2)
#include <iostream>^M
#include <string>^M
Solve :
all remove ^M
$ vi source.cpp
:1,$s/^M//g
^M : ctrl+N and ctrl+M
dpkg
- install .deb
$ dpkg -i *.deb
- check intalled .deb package
$dpkg --get-selections | grep <pkgName>
- remove .deb
* If it is installed through a deb file, it should be removed in order according to dependencies.
$ dpkg -P <pkgName>-dev
$ dpkg -P <pkgName>-dbg
$ dpkg -P <pkgName>
#dpkg #deb #install #remove #package #linux #embedded
3. Re-run relaunch after setting Default to Disabled by default.
#chromeerror#keyword#error
After setting the chrome keyword,
input a keyword in the address bar and process it if you pressed the space bar.
but there was no response.
Keyword error occurred (when space bar is not available)
크롬 키워드 설정 후,
주소창에 키워드 입력하고 스페이스 바를 눌렀으나 반응 없을 시에 대한 처리
키워드 에러 발생(스페이스바 안될 때)
Python
logging module : write log file for exec. log in python(i think)
issue :
If "fullpath = variable + filename" as shown above, there is an issue(not create a log file).
The cause is unknown, but if " fullpath = "./log/test.log" " directly, you can see that the file is normally generated.
example 1 and issue of example 1, solved: example 2
example 1.
import logging
def writeLogFile(logText):
mypath = "./log"
fullpath = mypath + "/test.log" #mypath = "./log"
logging.basicConfig(filename = fullpath, level=logging.DEBUG)
logging.debug(logText)
If "fullpath = variable + filename" as shown above, there is an issue(not create a log file).
The cause is unknown, but if " fullpath = "./log/test.log" " directly, you can see that the file is normally generated.
For the above problem, I don't use basicConfig, So, I use it with example 2.
example 2 and solve.
import logging
import logging.handlers
log : ""
def initLog():
global log
mypath = "./log"
fullpath = mypath + "/test.log" #mypath = "./log"
log = logging.getLogger('my_log')
log.setLevel(logging.DEBUG)
fileHandler = logging.FileHandler(fullpath)
log.addHandler(fileHandler)
def writeLogFile(logText):
log.debug(logText)
As shown above, log can be created as a file without any problems.
#python #logging #log #logfile #basicConfig #issue #solve #logginghandler
🏙️ Apartment Buying Guide 2025: Shocking Red Flags You Should NEVER Ignore! 🚨 Are you thinking about buying an apartment in 2025? 🏢 It’...