User Login

Please enter user name and password into following boxes!

If you are not registered yet, please click

Forget Password

If you forget your password, please click

bash

  • Php Laravel Framework Remove index.php From Url

    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

    Check Network Connection With IonicFramework

    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

    Maven Jar File Deployment in Sonatype Nexus

    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

    Install MbString in Amazon Ec2 Service

    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

    How to Set Environment Variables in Ubuntu

    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

    How to Increase Maximum Perm Size, Increase Heap using JAVA_OPTS in Tomcat

    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

    Hibernate Password Encryption with Jasypt in Spring MVC

    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

    How to Turn Windows 8.1, Windows 10 into Hotspot

    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