Developer Tools Stuff

Hi,

I was browsing an application which have a page where few fields are available to alter user account like assigning permissions to user for accessing other resources of application then click Save Button.

Now this Save Button is user role specific which is enabled to super user only and disabled by default is done by CSS class.

When you need this control and does not have role of super user can be accessible with browser developer tools.

Browser Developer tools can be enabled by pressing F12 key from key board, then navigate to DOM Explorer and search for Save button id and remove disabled property along with change name of css class to any random name as shown below:

1

Thats all for the day.

Thanks.

 

Advertisements

Decode function in Oracle

Hi,

Oracle provides a great function just like switch statement in C#. Net lets brief it by considering a table has name Servers which has columns as server ID, server name, hub, description, created and modified dates.

Sample data of this tables is as follows.

Decode query is

Select decode(Sr. Hub, ‘Aus’, ‘Australia ‘,’ Default ‘),

Decode(Sr.Hub,’EU’,’Europe’) from servers.

This query gives me data as Australia for only record which have hub value as Aus and default for mismatched columns. Also returns null for hub which doesn’t match with hub value as Eu but returns as European to the matched column value.

Angular Ng-Click Directive

Hi

Today we explore ng-click directive of Angular JS.

Before we proceed with lets, design a page with technology names and their likes and dislikes as shown below.

ngclickoutput

This can be achieved from the below markup.

ngclickmarkup

Now build the model which has data and functions which increases count of Likes and dislikes of technologies as shown below.

ngclickmodel

That’s all for the day.

Angular NG-Repeat

Hi,

Today we discuss short about angular ng-repeat directive. Below is my page which would like to display data in tabular format which can be achieved by using markup table attributes with thead,tbody etc. with angular ng-app, ng-repeat directives.

re

Now look at ngrepeat.js is the script file which has module,controller and is responsible for population of data on html page. Now script file looks as  below:

ngre

The output of the following lines of code could be as below:

outre

As you can see there is no borders and lines defined in above tabular format which can be achieved by using style sheets and could be illustrated in later posts.

Thats all for the day.

Happy coding..:)

 

 

Wcf service responds as provided URI scheme https is invalid.

Hi

When your wcf service throws error from service as ‘The provided URI scheme https is invalid;expected http‘.

Dont panic it is just a configuration change where you can do it in app. Config or in web. Config as applicable.

Just find out binding attribute in which security tag should have mode =none which must be changed to mode=transport to get rid of this error response.

Which could looks as:

<security mode=”Transport”>

That’s it for a day.

My Angular 1

Hi,
My first Angular Program which includes :

Basic directive for angularjs to execute is ng-app.  Angularjs looks for ng-app directive and then proceed with execution else will not pickup the code and expression does not gets evaluated  that is handled by browser considering as plain text.

In Angular {{———–}} is referred as expression.

Angular is not responsible in div which is outside scope of ng-app.

If angular ng-app is appended in body then this is applicable to the entire  body of page.

8

Consider the same above program where there are two divs elements and first bind with Angular and other is independent whose expression value is not evaluated and displays the same.

10

The output of the above program is shown below:

1

Now when ng-app directive is used in body element of page then all divs are effective under ng-app directive.

Now lets look on arrays in angular.

11

The output of this program is as follows:

3

in the last div we specified 1==2 expression for which Angular is returning false.

Thats it for the day

 

 

Unable to start debugging on the web server.

Most times we observe the error while debugging with visual studio. Error dialog box says:

Unable to start debugging on the web server. The iis worker process for the launched URL is not currently running.

There are multiple work around available but which works me is as follows :

Open IIS manager click authentication – > enable Windows Authentication.

Restart IIS and now start visual studio open solution and start debugging your application.

One last step if still issue continues is try changing your application pool.