Use :Explore command to explore files directly from your vi editor.

A Computer Person Journey
Use :Explore command to explore files directly from your vi editor.
login as root.
install ruby 3.3.7 (ruby 3.4 wont work – there are some errors).
pkg_add ruby
Continue reading “Install Rails 8.0.2 on OpenBSD 7.7”Just know that Cmd + Space also work on IPhone where originally thought that ist only work on MacBook.
To do copy paste on vim, we can use visual mode by typing v when on normal mode. Use cursor to select the text to copy. Below we select 6 characters. After selecting the text then press y to copy the text to register.
Continue reading “Vim : Copy Paste Operation”hi guys for Metatrader 4 user on MacOS be aware that after the program exit we need to force quit a process called “wine32on64-preloader”.
This is because the process will exist and use your cpu all the time and drain the battery even after MT4 exit.
Simple approach to start or stop rails 7 application using shell script on linux.
Starting production rails application using default web server on port 3000 and ip address 192.168.25.168, then daemonize it.
Stopping rails application that running on port 3000 is as follow.
Thank you !
To install specific rails gem then specify -v argument :
gem install rails -v 6.1.7.1
To run specific rails version :
rails _6.1.7.1_ new appname
Step to do :
To get a similar php md5 or postgresql md5 function on java then try this code.
import java.security.MessageDigest;
import java.security.NoSuchAlgorithmException;
public class Md5Util {
public static String byteArrayToHex(byte[] a) {
StringBuilder sb = new StringBuilder(a.length * 2);
for(byte b: a)
sb.append(String.format("%02x", b));
return sb.toString();
}
public static String Hash(String input) throws NoSuchAlgorithmException {
MessageDigest md = MessageDigest.getInstance("MD5");
md.update(input.getBytes());
byte[] digest = md.digest();
return byteArrayToHex(digest);
}
}