Showing Tag: "as" (Show all posts)

Protect a document with a password in Office365

Posted by jineesh uvantavida on Thursday, December 8, 2022, In : Tips & Ideas. 

Passwords are case-sensitive and can be a maximum of 15 characters long.

If you lose or forget your password, Word won't be able to recover it for you. Be sure to keep the a copy of the password in a safe place or create a strong password that you’ll remember.

For Windows :

  • Go to File > Info > Protect Document > Encrypt with Password.

  • Type a password, then type it again to confirm it.

    ...

Continue reading ...
 

Paste JSON as Classes

Posted by jineesh uvantavida on Thursday, November 10, 2022, In : Tips & Ideas. 
Paste JSON as Classes

When working with APIs we often send a request and receive JSON data. Using C#, we need to transform the data into an object tree. That’s where what I’m going to show you is a game-changer.

First, let’s assume we receive the following JSON data from an API:
{
  "squadName": "Super hero squad",
  "homeTown": "Metro City",
  "formed": 2016,
  "secretBase": "Super tower",
  "active": true,
  "members": [
    {
      "name": "Molecule Man",
      "age": 29,
      "secretIdentity": ...

Continue reading ...
 

The four basic principles of object-oriented programming (c#)

Posted by jineesh uvantavida on Monday, June 7, 2021, In : c# 
  •  Abstraction 
    1. Abstraction is "To represent the essential feature without representing the background details."
    2. Abstraction lets you focus on what the object does instead of how it does it.
    3. Abstraction provides you a generalized view of your classes or objects by providing relevant information
    4. Abstraction is the process of hiding the working style of an object, and showing the information of an object in an understandable manner.
  • Encapsulation 
    1. Hiding the internal state and functionality of an objec...

Continue reading ...
 

Difference between == and === operator in JavaScript

Posted by jineesh uvantavida on Monday, June 7, 2021,
 ‘==’ operator
  • check abstract equality i.e. it does the necessary type conversions before doing the equality comparison
 ‘===’ operator
  • strict equality i.e. it will not do the type conversion hence if the two values are not of the same type, when compared, it will return false

Continue reading ...
 

Difference between Abstract Class and Interface in C#

Posted by jineesh uvantavida on Monday, June 7, 2021,
Abstract Class
  • Its a way to achieve abstraction in c#.
  • Not instantiated directly
  • must contain at least one abstract method.
  • used to define base class.
  • contains both declaration and definition.
  • contains constructor.
  • it can contain static members
  • contains different types of access modifiers like public, private, protected.
  • performance of abstract class is fast.
  • used to implement core identity of class
  • a class can only use one abstract class.
  • if many implementation are same kind and common behavior, then it...

Continue reading ...
 

How to find List of Stored Procedures/ Functions in PostgresSQL Database

Posted by jineesh uvantavida on Wednesday, December 23, 2020,
Finding procedures without schema name

select n.nspname as schema_name, p.proname as specific_name, l.lanname as language, case when l.lanname = 'internal' then p.prosrc else pg_get_functiondef(p.oid) end as definition, pg_get_function_arguments(p.oid) as arguments from pg_proc p left join pg_namespace n on p.pronamespace = n.oid left join pg_language l on p.prolang = l.oid left join pg_type t on t.oid = p.prorettype where n.nspname not in (...
Continue reading ...
 

What Is Token-Based Authentication?

Posted by jineesh uvantavida on Friday, November 20, 2020, In : Tips & Ideas. 

Token-based authentication is a protocol which allows users to verify their identity, and in return receive a unique access token. During the life of the token, users then access the website or app that the token has been issued for, rather than having to re-enter credentials each time they go back to the same webpage, app, or any resource protected with that same token.


Auth tokens work like a stamped ticket. The user retains access as long as the token remains valid. Once the user logs out o...


Continue reading ...
 

Could not load file or assembly 'Newtonsoft.Json' or one of its dependencies. Manifest definition does not match the assembly reference

Posted by jineesh uvantavida on Friday, November 10, 2017, In : asp.net 

You can solve the issue by adding below lines in web.config file.

 <runtime>
    <assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1">
      <dependentAssembly>
        <assemblyIdentity name="Newtonsoft.Json" publicKeyToken="30ad4fe6b2a6aeed" culture="neutral"/>
        <bindingRedirect oldVersion="0.0.0.0-8.0.0.0" newVersion="8.0.0.0"/>
      </dependentAssembly>
    </assemblyBinding>
  </runtime>

Continue reading ...
 

Can't access master page properties from content pages

Posted by jineesh uvantavida on Tuesday, October 24, 2017,
You can add the add this on your Content  page 

<%@ MasterType VirtualPath="~/Main.master"%>

and then simply use Master.YourPropertyName in code file or this.Master.YourPropertyName


Continue reading ...
 

How to only allow numbers in TextBox control in asp.net

Posted by jineesh uvantavida on Saturday, October 14, 2017, In : Tips & Ideas. 
You can simply use regular expression validator as

    <asp:TextBox ID="TextBox1" runat="server"></asp:TextBox>
    <asp:RegularExpressionValidator ID="RegularExpressionValidator1"
        ControlToValidate="TextBox1" runat="server"
        ErrorMessage="Only Numbers allowed"
        ValidationExpression="\d+">

    </asp:RegularExpressionValidator>

Also you can use the below regular expression to make the text-field as 12 digit number to be added.(madatory)

    ^[0-9]{12}$

Also you can make the field ...

Continue reading ...
 

Printer not working in Windows7

Posted by jineesh uvantavida on Friday, April 13, 2012, In : Tips & Ideas. 
When a printer is installed properly and it showing working properly. But the printer is not printing any document. What we can do..? Just try this.. If it does not solve your issue.. try a google search once more.. :-)

1. Remove the USB cable connected to the computer USB port.
2. Remove the Device from the Devices and Printers in Control Panel.
3. Open Print Management ( Click on Windows icon and search for Print Management ).
4. Select Print Servers from left window, Select local ( with our co...
Continue reading ...
 

Assigning short-cut keys to open Application in Windows

Posted by jineesh uvantavida on Monday, September 5, 2011, In : Tips & Ideas. 
    The simplest method to assign short cut key to open programs or folders.
        1. Create a shortcut of the application or program in the Desktop
        2. Right click on the shortcut and select "Properties"
        3. Under Properties Window, Under "short cut" tab, assign a key in "Short Cut Key" field.
        4. Normally it will be "None". By assigning any key, that will be assign as "Alt+Ctr+Key"
        5. Enjoy your time by opening programs...

    Next method is to download and ...
Continue reading ...
 
 

Translate This Page

 


Make a free website with Yola