SELECT 'a, b, c, d,' test From dual;
The output is:
a, b, c, d,
To clean the last comma we can use RTRIM
SELECT RTRIM('a, b, c, d,', ',') new_test From dual;
The output is:
a, b, c, d
Pretty neat!!!!
RTRIM function
Source 2
SELECT 'a, b, c, d,' test From dual;
The output is:
a, b, c, d,
To clean the last comma we can use RTRIM
SELECT RTRIM('a, b, c, d,', ',') new_test From dual;
The output is:
a, b, c, d
Pretty neat!!!!
RTRIM function
Source 2
Connection failed. Verify all connection parameters and confirm that the appropriate driver is installed.
Listener refused the connection with the following error:
ORA-12505, TNS:listener does not currently know of SID given in connect descriptor
Telnet
wasn't installed, one solution is using curl
.
Command Line
curl -v telnet://ip:port
ip:
the host that we want to check.
port:
the port that we want to validate.
curl -v telnet://192.168.1.138:22
The response is something like this:
* Trying 192.168.1.138:22...
* TCP_NODELAY set
* Connected to 192.168.1.138 (192.168.1.138) port 22 (#0)
SSH-2.0-OpenSSH_8.4p1 Debian-5+deb11u1
source
diskpart.exe
list disk
select disk 1
Disk 1 is now the selected disk.
clean
DiskPart succeeded in cleaning the disk.
create partition primary
DiskPart succeeded in creating the specified partition.
select partition 1
Partition 1 is now the selected partition.
active
DiskPart marked the current partition as active.
format fs=ntfs quick
100 percent completed DiskPart successfully formatted the volume.
exit
Leaving DiskPart...
import datetime
now = datetime.datetime.now()
# we need the file of yesterday
myfile = '/home/dev/file_' + str(now.day - 1) + '_' + str(now.month) + '_' + str(now.year) +'.csv'
import datetime
yesterday = datetime.datetime.now() - datetime.timedelta(1)
# we need the file of yesterday
myfile = '/home/dev/file_' + str(yesterday.day) + '_' + str(yesterday.month) + '_' + str(yesterday.year) + '.csv'
youtube-dl
and ffmpeg
and if you want your mp3 file with metadata like the artist and title we can use the next command line:youtube-dl --prefer-ffmpeg --extract-audio --audio-format mp3 --audio-quality 1 -o '%(title)s.%(ext)s' --metadata-from-title '%(artist)s - %(track)s' --add-metadata
--extract-audio
: Convert video files to audio-only files--audio-format
: Format of the audio file--audio-quality
: Quality of the audio can be between 0 (better) and 9 (worse)-o or --output
: How we want to name the file --metadata-from-title
: Parse additional metadata from the video title the format like --output
--add-metadata
: Actually write the metadata in the file