Installing SSL idempiere with Sectigo

  1. Apply SSL dan kamu akan dapat 3 file sebagai berikut
  2. gabung denga command cat untuk create chain
    cat sectigo_xxx.co.id_crt.txt sectigo_xx.co.id_intermediate.txt sectigo_xx.co.id_root.txt > ca_chain.pem
  3. create p12 private key yg sudah di decrypt
    openssl pkcs12 -export -in sectigo_xxx.co.id_crt.txt -inkey privatekey_dec.key -out xxx.p12 -name domain -passout pass:yourpassword -CAfile ca_chain.pem -caname sub1 -caname root -chain
  4. create keystore
    keytool -importkeystore -deststorepass yourpassword -destkeypass yourpassword -destkeystore hbes.keystore -srckeystore hbes.p12 -srcstoretype PKCS12 -srcstorepass yourpassword -alias domain

di trial di server 13

5. Edit jetty-ssl-context.xml arahkan ke keystore baru dan password keystorenya

Use NVM ( Node Version Manager)

Sesuai namanya ya.. kalau kita punya beberapa project js dengan Node js versi beda2 kita pasti butuh ini..

karena command yg di gunakan untuk installasi kebanyakan menggunakan latest version :

  1. Install NVM on Window
  2. nvm install lts
  3. nvm install 16.2.0
  4. Buka Powershell pakai administrator
  5. nvm use latest / lts / version-number untuk ganti nvm ( Pakai Powershell ya)
  6. lalu masuk ke project node js / ionic nya bisa langsung gunakan command npm install -g @ionic/cli untuk install ionic cli nya
  7. dan jalan

Solve Error Cross-Origin Request Blocked in iDempiere SOAP Request from JS

error come while request SOAP web service idempiere from JS:

Cross-Origin Request Blocked: The Same Origin Policy disallows reading the remote resource at http://10.10.100.14:8080/ADInterface/services/ModelADService. (Reason: CORS header ‘Access-Control-Allow-Origin’ missing). Status code: 405.

Cross-Origin Request Blocked: The Same Origin Policy disallows reading the remote resource at http://10.10.100.14:8080/ADInterface/services/ModelADService. (Reason: CORS request did not succeed). Status code: (null).

Solution:

 Download two jars (cors-filter-2.4.jar java-property-utils-1.9.1.jar) from http://software.dzhuvinov.com/cors-filt … ation.html and put them in org.idempiere.webservices/WEB-INF/lib/src (create if not existing).
6.2 At org.idempiere.webservices > MANIFEST.MF > RUNTIME tab > add those two to the classpath.

Go to your idempiere-server source in your Eclipse IDE, at the org.idempiere.webservices plugin, open up web.xml, insert into it, after the closing </listener> tag:

<filter>
      <!– The CORS filter with parameters –>
      <filter-name>CORS</filter-name>
      <filter-class>com.thetransactioncompany.cors.CORSFilter</filter-class>

      <!– Note: All parameters are options, if omitted the CORS
           Filter will fall back to the respective default values.
        –>
      <init-param>
         <param-name>cors.allowGenericHttpRequests</param-name>
         <param-value>true</param-value>
      </init-param>

      <init-param>
         <param-name>cors.allowOrigin</param-name>
         <param-value>*</param-value>
      </init-param>

      <init-param>
         <param-name>cors.allowSubdomains</param-name>
         <param-value>true</param-value>
      </init-param>

      <init-param>
         <param-name>cors.supportedMethods</param-name>
         <param-value>GET, HEAD, POST, OPTIONS</param-value>
      </init-param>

      <init-param>
    <param-name>cors.allowed.headers</param-name>
    <param-value>Content-Type,X-Requested-With,accept,Origin,Access-Control-Request-Method,Access-Control-Request-Headers</param-value>
  </init-param>
  <init-param>
    <param-name>cors.exposed.headers</param-name>
    <param-value>Access-Control-Allow-Origin,Access-Control-Allow-Credentials</param-value>
  </init-param>
      <init-param>
         <param-name>cors.supportsCredentials</param-name>
         <param-value>true</param-value>
      </init-param>

      <init-param>
         <param-name>cors.maxAge</param-name>
         <param-value>3600</param-value>
      </init-param>

   </filter>

   <filter-mapping>
      <!– CORS Filter mapping –>
      <filter-name>CORS</filter-name>
      <url-pattern>/*</url-pattern>
   </filter-mapping>

Ini artikel dari sini

HAIRpin NAT

how to access IP public from LAN :

The solution was to rewrite the port forwarding rule to NOT to use in-interface=WAN-GATEWAY, but dst-address-type=local
This is called – among other terms – hair pin NAT because the traffic flow has clients enter the router through the same interface it leaves through, which when drawn looks like a hair pin.
As showed in the example below . . .

# DST-NAT rule to redirect port 3389 from

/ip firewall nat

add action=dst-nat chain=dstnat disabled=no dst-address=1.2.3.4 dst-address-type=local dst-port=3389 protocol=tcp to-addresses=192.168.1.10 to-ports=3389 comment="Redirect RDP PORT  TCP 3389 to local server"

# Masquerade local traffic going to mikrotik WAN IP - [To access that service from LAN using mikrtoik wan ip]

/ip firewall nat

add chain=srcnat src-address=192.168.1.0/24 dst-address=192.168.1.10 protocol=tcp dst-port=3389 out-interface=LAN-Interface action=masquerade comment="Masquerade Traffic going to WAN IP of mikrotik from local LAN users"

SOLVE: error Persistent Object Not Docaction

this Error indicate that the Object / Class not Detect or undefined in Binary,,

This Error Show when you run the project in apps server not in source / eclipse.

why its happen maybe eclipese running classes program not in jar program..

you cannot find the class in the Jar Plugin… , how to check this out is manually open the plugin jar with winrar apps,, and find out the classes that missing.if file is missing do step below:

  1. Open then Manifest plugin
  2. Tab Build Properties make sure like this minumum

bin.includes = META-INF/,\
.,\
OSGI-INF/AUCValidator.xml,\
OSGI-INF/AUCCalloutFactory.xml,\
OSGI-INF/AUCModelFactory.xml,\
OSGI-INF/AUCValidator.xml,\
OSGI-INF/AUCProcessFactory.xml,\
OSGI-INF/AUCDocFactory.xml,\
jxl.jar
source.. = src/
output.. = target/classes/ ( make sure the folder is exists)
jars.compile.order = .

3. trying to compile again and make sure the jar file included classes that you looking for

Git Hub Tutorial

  1. Download Git Application Git-2.32.0.2-64-bit.exe (https://git-scm.com/download/linux)

2. Create .gitignore in current directory

**/logslogs/debug.log
logs/monday/foo.bar
build/logs/debug.log
You can prepend a pattern with a double asterisk to match directories anywhere in the repository.
**/logs/debug.loglogs/debug.log
build/logs/debug.log
but not
logs/build/debug.log
You can also use a double asterisk to match files based on their name and the name of their parent directory.
*.logdebug.log
foo.log
.log
logs/debug.log
An asterisk is a wildcard that matches zero or more characters.
*.log
!important.log
debug.log
trace.log
but not
important.log
logs/important.log
Prepending an exclamation mark to a pattern negates it. If a file matches a pattern, but also matches a negating pattern defined later in the file, it will not be ignored.
*.log
!important/*.log
trace.*
debug.log
important/trace.log
but not
important/debug.log
Patterns defined after a negating pattern will re-ignore any previously negated files.
/debug.logdebug.log
but not
logs/debug.log
Prepending a slash matches files only in the repository root.
debug.logdebug.log
logs/debug.log
By default, patterns match files in any directory
debug?.logdebug0.log
debugg.log
but not
debug10.log
A question mark matches exactly one character.
debug[0-9].logdebug0.log
debug1.log
but not
debug10.log
Square brackets can also be used to match a single character from a specified range.
debug[01].logdebug0.log
debug1.log
but not
debug2.log
debug01.log
Square brackets match a single character form the specified set.
debug[!01].logdebug2.log
but not
debug0.log
debug1.log
debug01.log
An exclamation mark can be used to match any character except one from the specified set.
debug[a-z].logdebuga.log
debugb.log
but not
debug1.log
Ranges can be numeric or alphabetic.
logslogs
logs/debug.log
logs/latest/foo.bar
build/logs
build/logs/debug.log
If you don’t append a slash, the pattern will match both files and the contents of directories with that name. In the example matches on the left, both directories and files named logs are ignored
logs/logs/debug.log
logs/latest/foo.bar
build/logs/foo.bar
build/logs/latest/debug.log
Appending a slash indicates the pattern is a directory. The entire contents of any directory in the repository matching that name – including all of its files and subdirectories – will be ignored
logs/
!logs/important.log
logs/debug.log
logs/important.log
Wait a minute! Shouldn’t logs/important.log be negated in the example on the left

Nope! Due to a performance-related quirk in Git, you can not negate a file that is ignored due to a pattern matching a directory
logs/**/debug.loglogs/debug.log
logs/monday/debug.log
logs/monday/pm/debug.log
A double asterisk matches zero or more directories.
logs/*day/debug.loglogs/monday/debug.log
logs/tuesday/debug.log
but not
logs/latest/debug.log
Wildcards can be used in directory names as well.
logs/debug.loglogs/debug.log
but not
debug.log
build/logs/debug.log
Patterns specifying a file in a particular directory are relative to the repository root. (You can prepend a slash if you like, but it doesn’t do anything special.)

https://www.atlassian.com/git/tutorials/saving-changes/gitignore

3. https://www.tutsmake.com/upload-project-files-on-github-using-command-line/

git init ( Init Git Folder)
Git add . ( add all to local repo)
git commit -m "First commit Message" ( Commit to local repo)

git remote add origin https://github.com/yourusername/your-repo-name.git

if there is error git remote already exist 
check using git remote -v ( listing remote repor url)

change name ( origin or delete exising url)
for delete 

git remote remove origin

then you can git remote add again

git push -u origin master ( push to git hub)

pull the origin

git pull origin master

Error File name too long when git add or pull run this command : git config --global core.longpaths true

X-debug i ATOM IDE

awalnya mau mempelajari ttg October CMS dimana dia pakai Framework Laravel , dimana masih harus banyak belajar ttg hal tersebut. jadi jurus belajar adalah debug…

setup ATOM IDE to debug PHP.

  1. install atom from website..
  2. Install xdebug dll, dari websitenya aja,, kalau bingung bisa ikutin wizardnya https://xdebug.org/docs/install
pilih yg pakai wizard ( theese instruction)

Copas informasi dari phpinfo()

bisa copas lalu masukin di kotak dan analize
analise phpinfo
Ikuti langkah ini

tambahkan beberapa barik ini di paling bawah di php.ini sebelumnya matikan dahulu service apachenya ya atau xampp

[xDebug]
;zend_extension=”php_xdebug-3.0.2-7.2-vc15-x86_64.dll”
xdebug.remote_enable=1
xdebug.remote_host=127.0.0.1
;xdebug.remote_autostart=on
xdebug.remote_connect_back=1
xdebug.remote_port=9003 ;***port default 9000 kalau gk bisa di ganti port lain
xdebug.remote_handler=dbgp
xdebug.remote_mode=req
xdebug.remote_autostart=true
xdebug.remote_log=”C:\request\xdebug.log” ;***optional ya***
xdebug.mode=develop,trace,debug,profile

buka atom ide dan ADD package ini ada 4 packagenya ya

setalah itu setting di PHP-Debug, pastikan port server sama dan pathmapping… ini yg paling suka ketinggalan

atau kalian bisa lihat di atom> config.cson penulisan pathnya harus sama ya, dan remote sama localpathnya disamakan saja

ok sudah bisa mulai debug deh,

klik break point yg di bagian > lalu klik kanan di mana aja Debug> toogle debuging

atau jika mau tidak auto start tinggal di matikan menjadi false settingan auto start di php.ini

dan install add on di browser sesuai konfigurasi link ini.

https://atom.io/packages/php-debug

Create your own website, free on WordPress.com.Create your own website.
Start free