This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
main="test_subtitution" | |
a="$main/folder_a" | |
b="$main/folder_b" | |
mkdir -p $a $b | |
touch $a/file_1 $a/file_5 $a/file_9 $a/file_10 $a/file_8 | |
touch $b/file_1 $b/file_5 $b/file_9 $b/file_10 $b/file_8 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
1) I set up JTable with setAutoCreateRowSorter(true) so that all tables can be sorted by clicking on the column headers. However, I want to exclude some tables from this, but when I try using table.setAutoCreateRowSorter(false), it doesn't work at all. | |
Solution: | |
Disable the table header with table.getTableHeader().setEnabled(false); | |
2) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
1) HTTP_OC_CHUCKED OC_Chunked header "is allowed only in webdav endpoint owncloud". | |
This happen when after set env OWNCLOUD_CHUNKING_NG=0 ? | |
revert that OWNCLOUD_CHUNKING_NG to OWNCLOUD_CHUNKING_NG=1 or just remove it. | |
2) Connection Closed | |
Only works for files below 100mb? | |
set environment variable OWNCLOUD_MAX_CHUNK_SIZE | |
e.g : | |
OWNCLOUD_MAX_CHUNK_SIZE=10737418240 ; for 10GB (default 100000000 or 100MB) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Just Self Note: | |
1 ) turn on maintenance mode (in owncloud folder) | |
sudo -u www-data php occ maintenance:mode --on | |
2) turn off apache2 service | |
sudo systemctl stop apache2 | |
3) rename/move previous owncloud folder to another | |
sudo mv owncloud owncloud_backup |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
:: FOR WINDOWS batch | |
: using for /f "tokens=*" %i in ('dir /aa /b /o-d') | |
for /f "tokens=*" %%i in ('dir /aa /b /o-d') do ffmpeg -i "%%i" -vf "scale=min'(2000,iw):-1'" "converted_jpg\%%~ni.jpg" |