Blogs

Increase db file size

Jul
12

sqlplus

sys/sys@<CDB service name> as sysdba

ALTER SESSION SET CONTAINER = CDB$ROOT;

alter system set db_files=2000 scope=spfile;

Posted By codeexpe read more

Backup PDB

Jul
12

sqlplus
sys/sys@<PDB Or CDB Name> as sysdba
shutdown immediate 

backup copy pdb folder

startup

Posted By codeexpe read more

Unit Testing vs TDD vs BDD?

Aug
13

Unit testing

A unit testing means test a single “unit of code” – usually a function in an object or module.

Test-Driven Development

TDD (Test-Driven Development) is a process for when you write and run your tests. It gives an opportunity to have a very high test-coverage.

Behavior-Driven Development

BDD (Behavior-Driven Development) – A set of best practices for writing great tests.

i.e.

Unit Testing gives you the what.

Test-Driven Development gives you the when.

Behavior Driven-Development gives you the how.

Posted By codeexpe read more

How to solve the "Access denied for user ......" in drupal

Aug
13

Question: I am getting the following error in my new drupal application. How could I solve this problem?

PDOException: SQLSTATE[HY000] [1045] Access denied for user ''@'localhost' (using password: YES) in lock_may_be_available() (line 167 of /home/lock.inc).

Answer: Update the password of PHPmyAdmin database and set it for the application.

Posted By codeexpe read more

Setup a .net application for nunit

Aug
13

To create unit test project, go to add new projects-> visual C#->Test->Unit Test Project

Now go to Manage Nuget Package->Online->search for "nunit"

Now click on nunit and nunit adaptor

Install both

Now check all references will be added in the aaplication.

Go to the class for unit testing in this added project, where you will get "TestClass".

Add some code in the "TestMethod" function to test.

Go to "Test" menu->Windows->Test explorer

Build code

Select test method in the Test explorer and right click

Posted By codeexpe read more

Code coverage in visual studio 2013 premium

Aug
13

To use code coverage in visual studio 2013 premium edition, configuring unit tests by using a .runsettings File. To configure file create a xml file and write some code as follows for configuration

<?xml version="1.0" encoding="utf-8"?>
<RunSettings>
  <!-- Configurations that affect the Test Framework -->
  <RunConfiguration>
    <!-- Path relative to solution directory -->
    <ResultsDirectory>.\TestResults</ResultsDirectory>

Posted By codeexpe read more

Now you will get the following popup(How to register ASP.NET 2.0 to web server(IIS7)? )

Jan
15

Run Command prompt in administration mode

Go to the path C:\Windows\Microsoft.NET\Framework\v2.0.50727

Run aspnet_regiis -ir

Finish the installation of ASP.NET(2.0.50727)

Posted By codeexpe read more

When new sites are created, Set IIS 7 to run the .NET version to 2.0 (not 1.1) Deploy code to IIS (Deploying ASP.NET 2.0 Applications in IIS 7.0)

Jan
15

When you are trying to open an existing project on a server

You will get an error to reload the web project with a path of local host, All other projects will be opened, but web project will not be opened

Open IIS7 manager, run following commands

Run inetmgr.exe

If there is no option in windows Vista , open Control Panel\All Control Panel Items\Programs and Features click on

Click on Required option for IIS in the following window

Posted By codeexpe read more
Subscribe to RSS - blogs