Showing Tag: "on" (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 ...
 

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

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

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

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

Serialize an object in c# with XmlSerializer by removing xml schema elements.

Posted by jineesh uvantavida on Tuesday, November 14, 2017, In : c# 
Serialize an object in c# with XmlSerializer by removing xml schema elements such as xmlns:xsi

        string content =String.Empty;
XmlDocument xmlDoc = new XmlDocument();
        XmlSerializer xmlSerializer = new XmlSerializer(obj.GetType());
        using (MemoryStream xmlStream = new MemoryStream())
        {
            var ns = new XmlSerializerNamespaces();
            ns.Add("", "");
            xmlSerializer.Serialize(xmlStream, obj, ns);
            xmlStream.Position = 0;
            //Load...

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

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

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

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

Translate This Page

 


Make a free website with Yola