50% Off/-

50% Off/-

Php

50% Off/-

50% Off/-

Web

50% Off/-

50% Off/-

Latest Added Tutorials

We can use above dockerfile to build gradle project. After build process, generated war file will be moved to /usr/local/tomcat/webapps/ directory. If you need to add a custom certificate, you should copy the new certifacete to /etc/ssl/certs directory. Otherwise, Java Keytool is not importing the custom certificate from another location. (It took me 5 hours to reach this information.) The last commands, for loop in this case, automatically imports existing certificates into cacerts. FROM gradle:7.3.3-jdk8 AS build ENV TIS_DATA=/home/tis-data #W...Continue Reading
I created a sample batch script. You can download all private/public repositories from github.com. After a repository is downloaded, it is automatically converted to a zip file. @echo off setlocal EnableDelayedExpansion SET "username=your_username" SET "password=your_password" SET "url=https://%username%:%password%@github.com/%username%/" FOR /F "tokens=* delims=" %%i in (files.txt) do ( SET repo=%%i rmdir /s /q !repo! mkdir !repo! cd !repo! git init git pull "!url!!repo!.git" git archive --format=zip -o "D:\github\!repo!....Continue Reading
Removing index.php from url in Laravel project use following .htaccess commands after RewriteRule ^ index.php [L] RewriteCond %{THE_REQUEST} ^GET.*index\.php [NC] RewriteRule (.*?)index\.php/*(.*) /$1$2 [R=301,NE,L] Full htaccess File <IfModule mod_rewrite.c> <IfModule mod_negotiation.c> Options -MultiViews </IfModule> RewriteEngine On # Redirect Trailing Slashes If Not A Folder... RewriteCond %{REQUEST_FILENAME} !-d RewriteRule ^(.*)/$ /$1 [L,R=301] # Handle Front Controller... RewriteCond %{REQUE...Continue Reading
In a cordova project, we can test network connection as follows: 1. Run following commands: $ cordova plugin add https://git-wip-us.apache.org/repos/asf/cordova-plugin-network-information.git $ cordova plugin rm org.apache.cordova.core.network-information 2. Add following codes in app.js file as follows: $ionicPlatform.ready(function () { if (window.cordova && window.cordova.plugins.Keyboard) { cordova.plugins.Keyboard.hideKeyboardAccessoryBar(true); cordova.plugins.Keyboard.disableScroll(true); } if (window.Statu...Continue Reading
1. Create settings xml file in the ${user.home}/.m2 directory if not exists 2. Add following server config as follows: <settings xmlns="http://maven.apache.org/SETTINGS/1.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/SETTINGS/1.0.0 http://maven.apache.org/xsd/settings-1.0.0.xsd"> <servers> <server> <id>codesenior</id> <username>admin</username> <password>admin123</password> </ser...Continue Reading
With following codes, we can install mbstring library in Amazon Ec2 Service: yum install php56-mbstring php -m | grep mb sudo service httpd restart...Continue Reading
Open Terminal and run following command: sudo gedit ~/.profile Add this line into the bottom of the profile file: export MAIL_SERVICE_3DES_PASSWORD=1wasdfsdf After adding the line, save and close the file, then run following command to immediatly update the profile file: . ~/.profile Lastly close the terminal, open a new Terminal and check this variable is set or not: echo $MAIL_SERVICE_3DES_PASSWORD If this file is not updated, please logout and login...Continue Reading
Create setenv.bat file in Tomcat bin folder and set value as follows: For performance reasons, it is recommended that the application is run in Server mode. Apache Tomcat does not run in Server mode by default. You can set the Server mode by using the JVM -server parameter. You can set the JVM parameter in the JAVA_OPTS variable in the environment variable in the setenv.bat file. The following is an example of a setenv.bat file: set "JAVA_OPTS=%JAVA_OPTS% -Xms128m -Xmx1024m -XX:MaxPermSize=256m -server"...Continue Reading
Create Password After downloaded Jasypt CLI Tools, execute following code by using encrypt.sh for linux based OS, or encrypt.bat file for Windows located in bin folder: encrypt.bat input="secret" password=encryptorpassword algorithm=PBEWithMD5AndTripleDES Output looks like this: AdK2HjMDfxTABg9ZP3kXSWsKo3t4rSn7 Note: Whenever run above command in command prompt, you will get different password each time because PBEWithMD5AndTripleDES algorithm and many other algorithms use random salt generator. For more information please click Add Maven Depe...Continue Reading
First Step: Open Command Prompt as Administrator then type: netsh wlan set hostednetwork mode=allow ssid=Hotspot key=Codesenior netsh wlan start hostednetwork Second Step: Go to Control Panel -> Network And Sharing Center, change Ethernet settings as follows:...Continue Reading
1. First of all, create a new mysql user: mysql -u root -p create user 'olyanren'@'%' identified by '123456'; grant all priviliges on *.* to 'olyanren'@'%' with grant option; Note: Change olyanren username and password 123456. Also note that don't delete single quotas. The key point is wildcard (%). By using wildcard, we give olyanren user an access right to connect from any host. After these steps, confirm if the new user olyanren has been created select user, host from mysql.user; 2) Restart mysql service mysqld restart ...
Download Subversion 1.8.14 Source Files Go to /usr/local/src folder and type following command: sudo wget http://www.codesenior.com/sources/codes/ec2/subversion-1.8.14.tar.gz Install subversion cd /usr/local/src/ tar xvf subversion-1.8.14.tar.gz cd subversion-1.8.14 ./configure --prefix=/usr --disable-static --with-apache-libexecdir sudo make sudo make install...Continue Reading
1. Open Terminal by pressing Ctrl + Alt + T and type following command: sudo gedit ~/.local/share/applications/xampp.desktop When text editor opens simply paste the following [Desktop Entry] Encoding=UTF-8 Name=Xampp Control Panel Comment=Start or Stop XAMPP Exec=gksudo python /opt/lampp/share/xampp-control-panel/xampp-control-panel.py Icon=/opt/lampp/htdocs/favicon.ico Categories=Application;Development;Web Version=1.0 Type=Application Terminal=0 2. Change the file permission so that it can execute sudo chmod +x xampp.desktop If you have a...Continue Reading
1. Apache Tomcat native library needs APR package, so we must install before Tomcat Install the APR package (Downloaded from http://apr.apache.org/) tar -xzf apr-1.4.6.tar.gz cd apr-1.4.6/ sudo ./configure sudo make sudo make install 2. Download Tomcat binary from Tomcat 7.0.64 3. Extract tar file and move to /opt/ folder: tar -xvzf apache-tomcat-7.0.64.tar.gz sudo mv apache-tomcat-7.0.64 /opt/ 4. Extract tomcat-native.tar.gz in /opt/apache-tomcat-7.0.64/bin folder: tar -xvzf tomcat-native.tar.gz 5. Go to native folder: cd tomcat-nativ...Continue Reading
You can download here: http://ftp.mku.edu.tr/apache-dist//commons/daemon/ Create Service prunsrv.exe //IS//Subversion-Updater --Startup=auto --DisplayName="Subversion Updater" --Install=C:\subversion-updater-service\prunsrv.exe --Classpath=Subversion-Updater.jar --Jvm="C:\Program Files\Java\jre1.8.0_51\bin\server\jvm.dll" --StartMode=jvm --StopMode=jvm --StartClass=com.codesenior.subversion.service.Main --StopMethod=stop --StopClass=com.codesenior.subversion.service.Main --StartMethod=start --LogPath=d:\logs --LogPrefix=Subversion-Updater --LogLev...Continue Reading

© 2019 All rights reserved. Codesenior.COM