Showing Tag: "using" (Show all posts)

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

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

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

Translate This Page

 


Make a free website with Yola