Showing Tag: "c" (Show all posts)

VS Code Extensions

Posted by jineesh uvantavida on Wednesday, February 22, 2023,
VS Code extensions allow you to add languages, tools, and debugging support to your installation, which helps to streamline the development workflow. The VS Code is highly extensible, so developers can directly plug into VS Code UI and actively contribute to the coding requirements.

Best VS Code Extensions

1) Live Server :- Helps you launch a local development server with a live reload feature for static and dynamic pages.
2) Remote – SSH :- Create your development environment using the dual c...

Continue reading ...
 

ChatGPT: The Most Advanced AI Chatbot

Posted by jineesh uvantavida on Wednesday, January 18, 2023, In : Tips & Ideas. 



What is ChatGPT? ChatGPT is essentially a variant of OpenAI’s popular GPT-3.5 (Generative Pretrained Transformer 3.5) language-generation software that’s been designed to carry conversations with people. Some of its features include answering follow-up questions, challenging incorrect premises, rejecting inappropriate queries and even admitting its mistakes, according to an OpenAI summary of the language model. ChatGPT was trained on an enormous amount of text data. It learned to reco...


Continue reading ...
 

Top 5 Stored Procedure Performance Tips You Can Use

Posted by jineesh uvantavida on Friday, December 23, 2022, In : Tips & Ideas. 

Top five performance tips for Stored Procedures

In this post, we will dig into some super easy tips that can be used to speed up your stored procedures.

Knowing how to optimize stored procedures is important, so stick around and I’ll show top five stored procedure performance tips you can use today.

Let’s dig into some super easy tips you...


Continue reading ...
 

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 ...
 

Extracting urls from web page using chromedeveloper tools

Posted by jineesh uvantavida on Tuesday, December 6, 2022, In : Tips & Ideas. 

Step 1: In Chrome, go the website that you want to extract links from, like https://www.codeschool.com/. Step 2: Open Chrome Developer Tools by pressing Cmd + Opt + i (Mac) or F12 (Windows) in the same tab. Step 3: Click the Console panel near the top of Chrome Developer Tools. Inside the Console panel paste the JavaScript below and press Enter: var urls = document.getElementsByTagName('a'); for (url in urls) { console.log ( urls[url].href ); } Now you will see all the links from tha...

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 ...
 

What are the best free tools/approaches for API management?

Posted by jineesh uvantavida on Wednesday, November 9, 2022, In : Tips & Ideas. 

Some of the open source API Management Solutions are

WSO2 API manager is just one tool in the massive open source catalog that WSO2 brings in. The company provides a number of open source tools including Identity Server, ESB, Data, Application and API management solutions.

Can use to build stacks of reusable software components. These components can be leveraged by service developers to perform common A...


Continue reading ...
 

How to Make Microsoft Teams Secure

Posted by jineesh uvantavida on Wednesday, November 9, 2022, In : Tips & Ideas. 
Microsoft Teams is convenient and powerful, but is it secure?

There are multiple layers of encryption at work within Microsoft 365. Encryption in Teams works with the rest of Microsoft 365 encryption to protect your organization's content.
End-to-end Encryption

For situations that require heightened confidentiality, Teams offers end-to-end encryption (E2EE) for one-on-one calls. With E2EE, call information is encrypted at its origin and decrypted at its intended destination so that no informatio...

Continue reading ...
 

Top Microsoft Teams Tips and Tricks

Posted by jineesh uvantavida on Wednesday, November 9, 2022, In : Tips & Ideas. 
Knowing how Microsoft Teams works is one thing. Knowing how to use it well is another. Fortunately, there are plenty of smart tricks experienced users rely on to make Teams more effective and efficient.

1. Use Keyboard Shortcuts
Keyboard shortcuts are a secret weapon to speeding up the most common tasks. It can take a while before you feel like you know your way around these essentials, but once you do, it becomes less than a second’s work to perform a command, instead of fumbling for a menu....

Continue reading ...
 

How to Remove 'Show More Options' From the Windows 11 Context Menu - Command Prompt

Posted by jineesh uvantavida on Thursday, June 30, 2022, In : Tips & Ideas. 
How to Remove 'Show More Options' From the Windows 11 Context Menu - Command Prompt

Open Windows Terminal, Command Prompt, or PowerShell.

Disable:
reg add "HKCU\Software\Classes\CLSID\{86ca1aa0-34aa-4e8b-a509-50c905bae2a2}\InprocServer32" /f /ve

Enable:
reg delete "HKEY_CURRENT_USER\Software\Classes\CLSID\{86ca1aa0-34aa-4e8b-a509-50c905bae2a2}" /f​

 Restart Explorer or reboot.

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 ...
 

Replacing C# String with use of dictionary

Posted by jineesh uvantavida on Thursday, August 9, 2018,
For this the string data should be tokenized (i.e. "Dear $name$, as of $date$ your balance is $amount$"). For this purpose, we can use Regex.

static readonly Regex re = new Regex(@"\$(\w+)\$", RegexOptions.Compiled);
static void Main() {
    string input = @"Dear $name$, as of $date$ your balance is $amount$";

    var args = new Dictionary<string, string>(
        StringComparer.OrdinalIgnoreCase) {
            {"name", "Mr Smith"},
            {"date", "05 Aug 2009"},
            {"amount", ...

Continue reading ...
 

Configuration to be done for Activation of WCF Service

Posted by jineesh uvantavida on Tuesday, November 14, 2017, In : c# 
The below configuation to be added in the web.config or app.config for the proper functioning of WCF Service.


 <system.serviceModel>
    <behaviors>
      <serviceBehaviors>
        <behavior name="Service1_Behavior">
          <serviceMetadata httpGetEnabled="True"/>
        </behavior>
      </serviceBehaviors>
    </behaviors>
    <services>
      <service name="Namespace1.Service1"
               behaviorConfiguration="Service1_Behavior">
        <endpoint address="url of wcf service created" binding...

Continue reading ...
 

Generating Unique ID in C# - Best Method.

Posted by jineesh uvantavida on Friday, November 10, 2017, In : c# 

We can use DateTime.Now.Ticks and Guid.NewGuid().ToString() to combine together and make a unique id.

As the DateTime.Now.Ticks is added, we can find out the Date and Time in seconds at which the unique id is created.

Please see the code.

var ticks = DateTime.Now.Ticks;
var guid = Guid.NewGuid().ToString();
var uniqueSessionId = ticks.ToString() +'-'+ guid; //guid created by combining ticks and guid

var datetime = new DateTime(ticks);//for checking purpose
var datetimenow = DateTime.Now;    //b...

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 ...
 

What is the difference between String and string in C#?

Posted by jineesh uvantavida on Friday, November 10, 2017, In : c# 

string is a sequential collection of characters that is used to represent text.

String object is a sequential collection of System.Char objects that represent a string; a System.Char object corresponds to a UTF-16 code unit.

The value of the String object is the content of the sequential collection of System.Char objects, and that value is immutable (that is, it is read-only).

For more information about the immutability of strings, see the Immutability and the StringBuilder class section in ...


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 ...
 

Issue with installing Visual Studio 6.0 ACMBOOT.exe is damaged

Posted by jineesh uvantavida on Thursday, March 15, 2012, In : Tips & Ideas. 
1. make a copy of your installation cd in your hard drive
2. make a copy of the setup/VS98ENT.STF and name it acmsetup.STF
3. copy entire content of setup/ to previous folder (the one that has acmboot.exe file)
4. modify acmsetup.stf with acost.exe as you require and save it.
5. run acmsetup.exe instead of setup (the one that's on the same path as acmboot.exe)
6. that's it, your visual studio 6.0 will be installed.



--

Continue reading ...
 

Installing CKEditor & CKFinder in Drupal

Posted by jineesh uvantavida on Saturday, January 7, 2012, In : Tips & Ideas. 
1. Download CKEditor from http://ckeditor.com/download
 
Then Extract it and copy the ckeditor folder to 
- " c:/xampp/htdocs/drupal/sites/all/modules/ " folder if it is xampp
- " c"/wamp/www/drupal/sites/all/modules/ " if it is wamp
 
2. Enable CKEditor module in Modules.
 
- Go to  Configuration Content authoring CKEditor         
edit full profile and change File Browser to CKFinder.

 
3. Open  sites/all/modules/ckeditor/ckfinder/config.php and  Delete function CheckAuthentication()
 
- af...
Continue reading ...
 

Installing VLC media player in Ubuntu 11.10

Posted by jineesh uvantavida on Thursday, December 1, 2011, In : Linux 
Open the terminal and run the following commands

sudo add-apt-repository ppa:n-muench/vlc
sudo apt-get update
sudo apt-get install vlc mozilla-plugin-vlc

Continue reading ...
 

You can find out your total PC usage with a simple program...!!!

Posted by jineesh uvantavida on Thursday, October 20, 2011, In : Tips & Ideas. 
        We are all anxious to see the total usage time of our PC. Now it is simple. You only have to download a simple application named "PC On/Off Time". This free time tracking tool shows the times your computer has been active during the last 3 weeks, with no previous setup required. The software doesn't need to run in the background, because Windows OS tracks logon and logoff/standby times (working hours) by default, and the program analyses it.

Continue reading ...
 

Ever think of GodMod in Windows...?

Posted by jineesh uvantavida on Monday, September 5, 2011, In : Tips & Ideas. 
Some of you friends may know this....
Did you ever think of creating a control panel of windows by your own name.
There is tweak to create a shortcut or a control panel of your own name.
Just Create a folder in your desktop and name it as "GodMode.{ED7BA470-8E54-465E-825C-99712043E01C}."
This will create a folder with a name GodMod and it will have an icon of Control Panel.
Please try doing this in your PC...
You can also try with your own name...
Enjoy your time...

Continue reading ...
 

Control Panel Folder Path in Windows

Posted by jineesh uvantavida on Monday, September 5, 2011, In : Tips & Ideas. 
Some of you friends, will look sometime to know where this control panel is located.
So for you geek fellows, Its only an executable file under "windows/system32".
So enjoy your time with the control panel in windows. You can do so many things in this Panel.
Try to Enjoy the Panel of windows..........Be a geek.

Path to Control Panel-- "C:\Windows\System32\control.exe"

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