USB drive or device disconnecting...
Device Manager > Device... Properties > Details > Device Instance Path
HKEY_LOCAL_MACHINE\ SYSTEM\ CurrentControlSet\ Enum\ USB ... Device Parameters \
Add/modify DWORD (32-bit) value:
EnhancedPowerManagementEnabled
0 hex
void runExternalCommand() {
String runCmd = "cmd /c start \"\" ffmpeg --help";
try {
Runtime.getRuntime().exec(runCmd);
}
catch(IOException e) {
println("runExternalCommand: IOException:" + e);
}
}
opening in new window or as supbrocess:
https://stackoverflow.com/questions/615948/how-do-i-run-a-batch-file-from-my-java-application/616014#616014
convert and resize all files from ORIGINALNI to SMANJENI. bat is in directory above:
FOR /F "tokens=*" %%G IN ('dir ORIGINALNI /b /a-d') DO ffmpeg -i "ORIGINALNI\%%G" -codec:v h264_qsv -profile:v high -preset slower -b:v 1000k -vf scale=-1:576 -threads 0 -codec:a aac -b:a 196k "SMANJENI\%%G.mp4"
cross compiling win ffmpeg binary, including non-free libraries (like libfdk_aac):
git clone https://github.com/rdp/ffmpeg-windows-build-helpers.git
cd ffmpeg-windows-build-helpers
sudo apt-get install subversion curl texinfo g++ bison flex cvs yasm automake libtool autoconf gcc cmake git make pkg-config zlib1g-dev mercurial unzip pax nasm gperf autogen bzip2 libtool-bin ed -y
./cross_compile_ffmpeg.sh
Connect using USB TTL adapter (CP2102)
Connections from the USB TTL adapter to the Pi:
GND (ground) > GPIO pin 06 (GND)
RXD > GPIO pin 08 (TXD)
TXD > GPIO pin 10 (RXD)
sudo screen /dev/ttyUSB0 115200
get strings
Set up TFTPd32 as a DHCP server. Download it, and run the executable.
Settings: uncheck all other services except DHCP, then goto the DHCP tab and enter these settings:
IP Pool Start address: 192.168.1.100
Size of pool (use something small): 20
Def router 192.168.0.0
Mask: 255.255.255.0
DNS Servers: 192.168.0.0
WINS Server: 192.168.0.0
Save it and restart TFTPd32. Connect you Pi up and it will be assigned an IP address, then just use something like PuTTY to connect to the IP address it is assigned which will show in TFTPd32.
If it doesn't work the first time, make sure the server interfaces drop down is set to your ethernet card, or a software loopback.
no need for finding and memorizing devices local IP addresses
sudo apt-get install dnsmasq-base
1 Terminal: nm-connection-editor
2 Add a shared network connection by pressing the Add button.
3 Choose Ethernet from the list and press Create.
4 Click IPv4 Settings in the left.
5 Choose Shared to other computers by clicking the Method drop-down menu.
6 Enter a new name like Shared WiFi LAN as the Connection name at the top
Find the IP of the Pi on Ubuntu:
cat /var/lib/misc/dnsmasq.leases
Login to Pi:
ssh pi@IP
https://raspberrypi.stackexchange.com/questions/3867/ssh-to-rpi-without-a-network-connection
https://rhnvrm.github.io/2016-08-07-share-wifi-via-ethernet-gnome-3-20/
find device name:
sudo fdisk -l
write image to disk (+show progress)
sudo dd if=/dev/mmcblk0 of=~/Desktop/raspbian_backup.img status=progress
window snapping like in win 7
snapping windows like windows 7
ispravi:
-- umjesto em dasheveva
obični umjesto smart quotes
ispravni kod
https://ubuntuforums.org/showthread.php?t=2076433
maximize kao na windowsima
https://askubuntu.com/questions/305767/how-i-can-create-a-shortcut-to-maximize-minimize-windows-in-lubuntu
.header-bar.default-decoration {
padding-top: 3px;
padding-bottom: 3px;
}
.header-bar.default-decoration .button.titlebutton {
padding-top: 3px;
padding-bottom: 3px;
}