Links

Search This Blog

January 25, 2019

Keyboard Shortcuts

Windows 7:

F2 (Rename)
CTRL + C (Copy)
CTRL + V (Paste)
CTRL + X (Cut)

CTRL + Z (Undo last operation)
CTRL + A (Select all)

ALT + TAB (Change between programs)
CTRL + ALT + DELETE (Calls options)
CTRL + SHIFT + ESC (Calls Task Manager)
CTRL + SHIFT + N (Creates New Folder)
LEFT ALT + LEFT SHIFT + NUM LOCK (use keyboard as mouse)
WIN + R (Run Task)
WIN + F (Search)
WIN + D (Desktop)
WIN + E (Computer)
WIN + L (Lock Screen)

TAB (next object)
SHIFT + TAB (previous object)

WIN, RIGHT ARROW, ENTER (Shutdown)
ALT + F4 (Close Window)
PRINT SCREEN (Takes screenshot)
ALT + PRT SCR (Takes screenshot of focused window)
WIN+R, type "cmd", ENTER (Run command prompt)

CAPS LOCK ON (UPPER CASE)
CAPS LOCK OFF (lower case)

INSERT ON (Over type)
INSERT OFF (No over type)


For those who want to know more:
Windows 7: Open Folder, Click on top right corner blue question mark button and select View Help (blue book)
Search for "keyboard" and there it should have in those links full key shortcut list for Windows depending on what you need.


Word:

BACKSPACE (deletes character on left from blinking cursor)
DELETE (deletes character on right from blinking cursor)

CTRL + Z (Undo)
CTRL + S (Save)


CTRL + A (Selects everything)
CTRL + C (Copy)
CTRL + V (Paste)
CTRL + X (Cut)

CTRL + F (Find...)

CTRL + B (Bold)
CTRL + I (Italic)
CTRL + U (Underline)

CTRL + SHIFT (New line)
CTRL + ENTER (Page Break New Page)

HOME (Beginning of line)
END (End of line)

SHIFT + F3 (Switch case)

CTRL + HOME (Anchor goes to Start of document)
CTRL + END (Anchor goes to End of document)

SHIFT + END (Selects all from left to right relative to blinking cursor)
Example: H|ello -->  Hello|

SHIFT + HOME (Selects all from right to left relative to blinking cursor)
Example: Hello what|'s app? --> |Hello what 's app?

CTRL + SHIFT + END (Depending on where blinking cursor is selects all from left of to right to end of document)
CTRL + SHIFT + HOME (Depending on where blinking cursor is selects all from right to left till start of document)

PAGE UP (Goes from current page to previous page)
PAGE DOWN (Goes from current page to next page)

Practice, pratice, practice...

Firefox:
CTRL + SHIFT + P (Private Browsing)
CTRL + T (New Tab)
CTRL + W (Close Tab)
CTRL + H (Show/Hide History)
CTRL + J (Shows downloads)
F5 (Refresh webpage)
ALT, f, x (EXIT)

Anchor <---> blinking cursor

I'll add things up when possible.

January 21, 2019

Greatest Common Divisor function with multiple arguments in python

import math
import fractions
def gcdm(*args):
    UaS = sorted(list(set(list(args))))
    if len(UaS) == 1:
        return list(UaS)[0]
    if len(UaS) == 2:
        return fractions.gcd(UaS[0],UaS[1])
    if len(UaS) >= 3:
        pair = fractions.gcd(UaS[0],UaS[1])
        print(pair)
        for i in range(2,len(UaS)):
            pair = fractions.gcd(pair,UaS[i])
        return pair
    return 0

print(gcdm(10,20,30,40,50)) == 10

You can do it with fractions or math module which both have gcd function.

Insert text from files in to one document.


Word -> Insert -> (Text) Object -> Text from File...

Sections


Page Setup -> Breaks -> Next Page
Will be divided in sections.
Section 1.
Page under is Section 2.
Click on Section 2 and go to
Design -> Uncheck Link to previous
to unlink sections.

January 20, 2019

December 25, 2018

URL Shortener

Main and Free {}
{Tiny URL (first encountered)
Bit.ly
-------------
Google[]
[Goo.gl}
-------------
Youtu.be]
-------------
T.co (Twitter)
FB.me (FaceBook)

July 14, 2017

[Short Resume] Old ISBN to new ISBN

ISBN is an acronym for International Standard Book Number.

Old ISBNs are 10 digits long and they were used before year 2007.

Old ISBN can have X on the end (still 10 digits long).
Example: 999-9999-99-X

We don't count minus (sometimes space) signs.
Not every ISBN has the same formatting with minus or space signs.
Can vary.

Example:
999-99999-9-9
999 9999 99 9
999-999-999-9

ISBNs are bought in blocks.

Last digit of 13 or 10 digit ISBN is what's called check digit.

New ISBNs are 13-digits long and we're using it since 2007.

You can convert 10 digit ISBN to 13 digit ISBN and vice-versa (13 digit ISBN to 10 digit ISBN).

For digitally storing ISBNs in database I usually use string data type.

More on ISBN:
https://en.wikipedia.org/wiki/International_Standard_Book_Number