How to make Wordpress Divi Theme 404 page Full Width

9:17 PM Hendry 1 Comments

Add the code below to your Child theme's functions.php

function my_body_class($classes) {
    $classes[] = '';
    // if(is_404()){
    if(!is_page()){
    $classes[] = 'et_full_width_page no-sidebar';
    }
    return $classes;
}

add_filter('body_class', 'my_body_class');


Add the code below to your Child theme's style.css

.no-sidebar #sidebar{
display:none;
}

1 comments:

Laravel Installation on Windows 7 XAMPP

10:59 AM Hendry 0 Comments

https://laravel.com/

1. Composer Installation

Pre-requisites

1. XAMPP

Download Composer Setup

https://getcomposer.org/Composer-Setup.exe

Browser and select ...\xampp\php\php.exe


Click Install and Finish

2. Laravel Project Installation


Create Laravel root folder

Under …\xampp\htdocs\laravel (e.g. …\xampp\htdocs\laravel)

Download Laravel Project

Open CMD using Administrator role, and navigate to …\xampp\htdocs\laravel, and run this command: composer create-project laravel/laravel first-project --prefer-dist
*change first-project to your project name

Run LARAVEL through localhost:<port>/laravel/first-project/public


Make XAMPP phpmyadmin be accessible from other network

3:53 AM Hendry 0 Comments

1. Make sure phpmyadmin is not running on port 80 ( Change phpmyadmin port )
2. Navigate to \xampp\apache\conf
2. Open up httpd-xampp.conf
3. On the last section, modify as Require Local to Require gll granted

#
# New XAMPP security concept
#
<LocationMatch "^/(?i:(?:xampp|security|licenses|phpmyadmin|webalizer|server-status|server-info))">
#        Require local
Require all granted
ErrorDocument 403 /error/XAMPP_FORBIDDEN.html.var

</LocationMatch>


4. Setup phpmyadmin security, navigate to \xampp\phpMyAdmin
6. Make sure to enable port forwarding on your router configuration to enable port (both phpmyadmin apache and mysql)

Secure XAMPP phpmyadmin access

3:44 AM Hendry 0 Comments

1. Navigate to \xampp\phpmyadmin
2. Open up config.inc.php
3. Append the configuration below
4. Modify either deny or allow

/*
 *  phpMyAdmin does no user management and will not cross-check the MySQL account's host with the incoming connection's ip/host
 */
$cfg['Servers'][$i]['AllowDeny']['order'] = 'deny,allow';
$cfg['Servers'][$i]['AllowDeny']['rules'] = array(
    // deny everyone by default
    'deny % from all',

    // allow all users from the local system
    'allow % from localhost',
    'allow % from 127.0.0.1',
'allow % from 192.168.0.16',
    'allow % from 139.195.8.205',
'allow % from ::1',

    // add more usernames and their IP (or IP ranges) here -
    // ...

);

Enable XAMPP phpmyadmin login page

3:35 AM Hendry 0 Comments


1. Navigate to \xampp\phpmyadmin
2. Open up config.inc.php
3. Modify $cfg['Servers'][$i]['auth_type'] = 'config'; to $cfg['Servers'][$i]['auth_type'] = 'cookie';

Change XAMPP phpmyadmin port

3:14 AM Hendry 0 Comments


  1. Navigate to \xampp\apache\conf
  2. Open up httpd.conf
  3. Modify Listen 80 to the desired port

Weblogic Server 1036 Installation

1:43 AM Hendry 0 Comments


Files

·         wls1036_generic.jar

Installation

1.    Open a command prompt and change directory to where wls1036_generic.jar resides. Key in <Path_to_JDK1.7>\bin\java.exe –jar wls1036_generic.jar

 

2.    Click Next

 

3.    Key in the weblogic server directory (*Avoid using spaces). Click next




4.    Click Next and Yes



5.    Check I wish to remain uninformed of security issues… and click Continue



6.    Click Next



7.    Click Next



8.    Click Next



9.    Click Next



10.  Click Next



11.  Click Done



JDeveloper 11.1.1.7 Installation Guide

1:28 AM Hendry 0 Comments

JDeveloper Installation


Files

·         jdevstudio11117install.jar
·         oracle.webcenter.framework_bundle_2.zip
·         oracle.webcenter.customization_bundle.zip

Installation

1.    Click Next


2.    Select Create a new Middleware Home, and key in the jdeveloper installation folder directory (*avoid spaces). Then click Next


3.    Select Complete, then click Next


4.    Click Browse to select the JDK installation directory, then click Next


5.    Click Next


6.    Click Next


7.    Click Next


8.    Installing


9.    Click Done, and thick Run quick start


10.  Select Launch Oracle JDeveloper 11g


11.  Goto Help > Check for updates


12.  Click Check for update, then click Next


13.  Select Install from local file


14.  Click Browse and select file oracle.webcenter.framework_bundle_2.zip, then click Next and restart JDeveloper

15.  Click Browse and select file oracle.webcenter.customization_bundle.zip, then click Next and restart JDeveloper

ADF Business Component

2:03 AM Hendry 0 Comments

ADF Business Component


ADF Business Component is a Java and XML based framework for developing:
·         Business logic, including validation and default logic
·         Queries
·         Transaction Handling
·         Data access
The Advantage of ADF Business Component over UI-enforced business logic is reusability. For example, a single ADF Business Component layer can provide the business logic for all a company’s needs. The business components can be used again and again, with multiple interfaces.
Advantage of ADF BC:
1.    By maintaining a cache of data in memory, ADF BC reduces the number of database trips required by an application resulting in improved performance and scalability.
2.    ADF BC allows the business logic to be written in Java, which saves the trouble of intergrating a Java GUI or JSP application with business logic written in PL/SQL code.
3.    Removing the business logic out of the database, and keeps the database from handling anything bud data which increase an application’s modularity and efficiency

5 Components of ADF BC Architecture

·         Entity Object à represents a table in simple terms. It defines the table’s attributes (columns), data types, validation on the data, primary keys and the entire business logic that needs to be defined for pushing data into the target table.
·         Entity Associations àdefines the join or the link among EO’s and VO’s. Associations defines link between EO’s, and they can be considered as PrimaryKey/ForeignKey relationships between tables.
·         View Objects à The view object can be based on EO's, which are similar to SQL queries used to extract data, or it can be programatically populated, or with a static list.
However VO's based on EO's are most used option. While a few validations can be done even at the VO level, it's better to have business logic on the EO's as this will help provide a central point for all VO's dependent on them.
·         View Links à defines the link between VO’s and can be based on an association or on attributes

·         Application Modules àThe application module packages the VO's and serves as the data control.The AM creates and manages the database transaction for ADF Model layer. It is the Application Module that exposes the data needed by the client. So, for an end user, the interaction and transactional capabilities are provided by the application module.

Download ADF Business Component.pdf


What is Oracle ADF?

8:58 PM Hendry 0 Comments


What is Oracle ADF?

Oracle ADF provides a commercial Java framework for building enterprise applications. It provides visual and declarative approaches to Java EE development.

Oracle ADF Architecture

Oracle ADF is based on Model-View-Controller (MVC) design pattern.


1.    Model à provides an abstraction layer on top of the Business Service layer, enabling the View and Controller layers to work with different implementations of Business Services in a consistent way.
2.    View à handles the application user interface.
3.    Controller à manages the application flow and acts as the interface between Model and View layers. To provide a mechanism to control the flow of the Web application.
4.    Business Service à oracle ADF further separates the Model layer to enable service-oriented development of applications. To provide access to data from various sources and handles business logic.

The Business Service Layer

The Business Services layer manages interaction with a data persistence layer. It provides such services as data persistence, object/relational mapping, transaction management, and business logic execution.
The Business Services layer in Oracle ADF can be implemented in any of the following options: As simple Java classes, EJB, Web services, JPA objects, and Oracle ADF Business Components. In addition, data can be consumed directly from files (XML or CSV) as well as REST.

The Conroller Layer

The controller layer manages the applications flow and handles user input.
For example, when you click a Search button on a page, the controller determines what action to perform (do a search) and where to navigate to (the results page).
There are two controller options for web-based applications in JDeveloper: the standard JSF controller or the ADF Controller which extends the JSF controller functionality. Whichever controller you use, you will typically design your application flow by laying out pages and navigation rules on a diagram. With the ADF controller you can break your application's flow into smaller, reusable task flows; include non-visual components such as method calls and decision points in your flow; and create "page fragment" flows that run inside a region of a single containing page. This approach encourages maximum reusability for user interface fragments and simplified integration into portals and mashup applications.

The View Layer

The View layer represents the user interface of the application.
Oracle ADF support multi-channel access to your business services allowing you to reuse your business services and access them from a Web client, a client-server swing desktop based application, Microsoft Excel spreadsheets, or a mobile devices such as a smart-phone.
For Web based interface Oracle ADF offers a rich set of over a 150 Ajax enabled JSF components that simplified the creation of dynamic and appealing user interfaces.

The Model Layer

The model layer connects the business services to the objects that use them in the other layers.
Oracle ADF provides a model layer implementation that sits on top of business services, providing a single interface that can be used to access any type of business service.
The model layer consists of two components, data controls and data bindings, which utilize metadata files to define the interface.
·         Data controls à abstract the business service implementation details from Oracle White Paper—Oracle Application Development Framework Overview 6 clients.

·         Data bindings à expose data control methods and attributes to UI components, providing a clean separation of the view and model. Due to the metadata architecture of the model layer, developers get the same development experience when binding any type of Business Service layer implementation to the View and Controller layers.

Download What is Oracle ADF.pdf


Reference: http://www.oracle.com/technetwork/developer-tools/adf/adf-11-overview-1-129504.pdf

RCU 11.1.1.7 Installation Guide

7:46 PM Hendry 0 Comments


1.    Navigate to rcuHome/BIN/rcu.bat (*preferable open the .bat using cmd with administrator role)

2.    Select Create in the Create Repository tab


3.    Fill in your database information



·         Database Type: Oracle Database
·         Host Name: database host name
·         Port: database port
·         Service Name: database service name (e.g. XE)
·         Username: sys
·         Password: password for the sys user
·         Role: SYSDBA

4.    If your database is not using the UTF-8 character set, you will see a warning message indicating that there may be a data loss if you are going to use the database for multilingual support. If you are not planning to use multilingual support, then you can click Ignore. Otherwise, click stop.


5.    Select Create a new Prefix, and enter a prefix to use for the database schemas, for example DEV or PROD. You can specify up to six characters as a prefix. Prefixes are used to create logical groupings of multiple repositories in a database.


Select the following components
·         AS Common Schemas
o   Metadata services
·         WebCenter Content
o   Oracle WebCenter Content Server – Complete
o   Oracle WebCenter Content: Imaging
·         SOA and BPM Infrastructure:
o   SOA Infrastructure
o   User Messaging
·         WebCenter Portal
o   Spaces and Services
o   Portlet Producers
*If number of process is not enough, then execute below in sys schema
alter system set processes=500 scope spfile;

6.    In the Schema Passwords screen, select Use main schema passwords for auxiliary Schemas, enter the schema passwords for all components and click next.


7.    In the Map Tablespaces screen, choose the tablespace for the selected components, and click Next.
A confirmation dialog is displayed stating that any tablespace that does not already exist in the selected schema will be created. Click OK to acknowledge this message.


8.    In the Summary screen, click Create

8.    In the Completion Summary screen, click Close