Monday, June 15, 2020

How to Type Accent Marks Over Letters in Microsoft Word

Insert Accented Letters with Word’s Insert Function

If you only need to insert accented characters occasionally, it’s easy enough to pop open Word’s Symbol window and hunt for the letter you need.

Switch over to the “Insert” tab, and then click the “Symbol” button.
The dropdown menu shows your most recently-used symbols. If the symbol you’re after is there, just click it. If not, click the “More Symbols” command, instead.
The Symbol window that opens displays a huge number of characters to choose from—3,633 to be exact. Word does help by letting you filter by font and subset, though.

Use the “Font” dropdown menu to choose the font you’re using (or, you can just select the “Normal Text” entry). The “Subset” dropdown lets you jump to particular subsets of characters. In fact, if you scroll through the available characters, you can watch the Subset value change. For now, though, go ahead and choose “Latin-1 Supplement” from the “Subset” dropdown. That’s where you’ll likely find the accented letter you’re after.

Click the character you’re looking for, and then click the “Insert” button to insert it into your document. Note while you’re here that there are all kinds of other useful symbols in this window. Just in the image below, you can see the symbols for copyright (©) and registered trademark (®).

Insert Accented Letters with Keyboard Shortcuts

For example, to get the á character, you’d press Ctrl+’ (apostrophe), release those keys, and then quickly press the A key. Note that if you want Á instead of á, you’d have to enable caps lock before using the shortcut key, since using the Shift key would change the shortcut.

There are too many to list in this article, but here are a few shortcut keys provided by Office Support to get you started.

Symbol Code
à, è, ì, ò, ù Ctrl+` (Accent Grave), the letter
À, È, Ì, Ò, Ù
á, é, í, ó, ú Ctrl+’ (Apostrophe), the letter
Á, É, Í, Ó, Ú
â, ê, î, ô, û Ctrl+Shift+^ (Caret), the letter
Â, Ê, Î, Ô, Û
ã, ñ, õ Ctrl+Shift+~ (Tilde), the letter
Ã, Ñ, Õ
ä, ë, ï, ö, ü Ctrl+Shift+: (Colon), the letter
Ä, Ë, Ï, Ö, Ü

Insert Accented Characters with ASCII Codes


And what use would we be if we didn’t show you the geekiest way of all? If you’re going to be using a lot of accented characters—especially the same characters over and over—it might be worth your time to learn a few ASCII codes.

The American Standard Code for Information Interchange (ASCII), is an encoding system that provides a way to represent certain characters using the respective code. We won’t be going over the full list of ASCII codes, as there are hundreds of characters and it’s impossible to learn them all. Instead, we’ll go through the basics and give you a few short codes to quickly take care of those foreign words with diacritics.

To use this trick, you’ll need a number pad (either as part of your main keyboard or as an add-on). You’ll also need to make sure you’ve enabled NumLock by pressing the NumLock key at the top-left corner of your number pad. Most keyboards have an indicator light to let you know when NumLock is enabled.

To enter an ASCII code, all you have to do is hold down your Alt key while typing out a numeric code on your number pad. For example, the code for a lowercase letter “a” with a grave accent is 133. So, you’d hold down Alt, type 133, and then let go of the Alt key. As soon as you do, the character appears—voilà!

Obviously, it would be difficult to remember a ton of ASCII codes for different accented letters, but if you regularly use a few, it really simplifies the whole process. Here are a few to get you started:
Code Symbol Description
129 ü letter u with umlaut
130 é letter e with acute accent
131 â letter a with circumflex accent
132 ä letter a with umlaut
133 à letter a with grave accent
134 å letter a with a ring
136 ê letter e with circumflex accent
137 ë letter e with umlaut
138 è letter e with grave accent
139 ï letter i with umlaut
140 î letter i with circumflex accent
141 ì letter i with grave accent
142 Ä letter A with umlaut
143 Å letter A with a ring
144 É letter E with acute accent
147 ô letter o with circumflex accent
148 ö letter o with umlaut
149 ò letter o with grave accent
150 û letter u with circumflex accent
151 ù letter u with grave accent
152 ÿ letter y with diaeresis
153 Ö letter O with umlaut
154 Ü letter U with umlaut
160 á letter a with acute accent
161 í letter i with acute accent
162 ó letter o with acute accent
163 ú letter u with acute accent
164 ñ letter n with tilde

AutoCorrect Keyboard Characters to Special Characters

You can also use Word’s autocorrect feature to automatically insert accented characters when you type certain letter combinations. And, although this sounds like it would be the easiest method, it’s quirky and in practice, not as useful as it might sound.

Back at the Symbols window, select the character for which you want to set up an autocorrect function for. Click the “AutoCorrect” button at the bottom left.

In the “Replace” box, type the characters that you want to trigger the autocorrect replacement. When you’re done, click the “Add” button, and then the “OK” button.

In this case, we’re telling Word that when we type the letter “a” followed by the accent grave (`) and then a space, Word should automatically replace that with an “a” that has the accent grave above it.

When you type a word, you have to type the accented character first. In other words, if you want to type “Voilà,” you’d first need to type a+’ then go back and type the “Viol” behind it. Otherwise, you’ll end up with Viola’—because Word won’t trigger the autocorrect when the trigger letters are part of a larger word. And, as you can imagine, this makes it really annoying if you have multiple accented characters in a single word.

And really, you’re still doing almost as much typing as you would using the built in keyboard shortcuts Word provides.

Related Topics

How to insert square root symbol (√ ) in Word

Insert Square root symbol in Microsoft Office Word Using Keyboard Shortcut

Name:Square root
Symbol:√
Alt Code:221A
Shortcut (windows):221A, Alt+X
Shortcut (Mac):Option+V

Alt code

To type the square root symbol in Word,
  1. first type 221A, 
  2. then press Alt+X to convert the code into the symbol. On Mac, press Option+V on the keyboard.

Numeric Keypad

To insert this symbol (using the Alt code), follow these three simple steps:
  1. Place the insertion pointer at where you want to insert the symbol.
  2. Hold down the Alt key and type 251 on the numeric keypad
  3. and release the Alt key.

Using insert Equation

Microsoft Word has made typing Math symbols so easy with its insert Equation feature.

With this option, you can effortlessly insert almost any mathematical symbol into your word document.

Below are the steps to help you out:
  1. Place the insertion pointer where you want to insert the square root symbol.
  2. Press Alt+= on your keyboard to show the Equation Field.
  3. In this field, type \sqrt and press the spacebar.
  4. As soon as you press the space bar after typing \sqrt, word will insert the square root symbol into your Word document.

Copy and paste the Square root symbol

The copy and paste option can be the easiest option to insert this symbol into MS Word.

Irrespective of the software you are working with, you can always copy and paste any symbol into your work.

Below is the Square root symbol if you want to copy and paste it into your work:

√

Using Insert Symbol Dialog

This method and the next doesn’t involve using the keyboard. Therefore, it can only be used in Microsoft Office applications that have the insert symbol function such as Office Word, Excel, PowerPoint or Access.
Below are the steps to insert the square root symbol using the Insert Symbol dialog.
  1. On the Insert tab, click the Symbol button and Click More Symbols…
  2. The Symbols dialog box will appear. It’s now the time to look for the symbol you want to insert (the Square root symbol).
  3. Locate the Symbol
    1. In the gallery of symbols, look for the square root symbol by scrolling up or down using the scroll bar.
    2. If you cannot find the symbol, at the bottom right area of the dialog, select Unicode (hex) in the from drop-down. Again, at the top right area of the dialog, select Mathematical Operators in the Subset drop-down.
    3. This way, only the Mathematical Operators including the Square root symbol will show in the visible area of the Symbols dialog.
    4. After inserting, close the Symbol dialog box.
This is how you may insert the Square root symbol into Word/Excel/PowerPoint/Access using the insert symbol dialog.

Using AutoCorrect

Another way to obtain the Square root symbol is through the use of AutoCorrect feature.

It is a facility designed for correcting spelling mistakes. For example, if you type thsi Word will correct it to this.

Using this feature, you can assign an AutoCorrect text to the Square root symbol (such as SQRT).

This way, whenever you type the text SQRT, Word will think that you actually wanted to type the square root symbol (√) and will convert it for you automatically.

This approach is particularly useful when you need to frequently insert the symbol into your work.

Without further ado, below are the steps you can use to assign AutoCorrect text to symbols.
  1. On the Insert tab, click the Symbol button and choose More Symbols…
  2. The Symbol dialog appears.
    1. Locate the Square root symbol, then click to select it.
    2. Click on the AutoCorrect… button to display the AutoCorrect dialog.
  3. In the AutoCorrect dialog box, enter the following:
    1. Replace: SQRT (or any text you want to assign to the symbol.
    2. With: √
    3. Click Add, then click OK.
  4. Word will automatically insert the Square root symbol into your document whenever you type SQRT.
Below are some few things to note though when you are using the AutoCorrect approach.
  1. AutoCorrect is case sensitive. Meaning if you type sqrt (in lowercase), Word will not convert it into the Square root symbol unless you type SQRT (in uppercase).
  2. If there is any text before or after the AutoCorrect text, Word will consider the AutoCorrect text as part of the text and hence will not convert. For example, XSQRT will not get converted, but X SQRT will get converted to X √.

Using Eq (Equation) field codes

Radical: \r(,)

Draws a radical or square root using one or two elements.

Example:

{ EQ \r(3,x) }


Reference:
http://docs.microsoft.com/

http://support.office.com/

Related Topics:



Saturday, June 13, 2020

Compile and run C/C++ code using Notepad++

MinGW

For compiling and running using MinGW:

npp_save
cd "$(CURRENT_DIRECTORY)"
gcc -o "$(NAME_PART).exe" "$(FULL_CURRENT_PATH)"
"$(NAME_PART).exe"

Microsoft Visual C

For compiling and running using Visual C 2019:

npp_save
cd "C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Auxiliary\Build"
vcvarsall.bat x64 && cl "$(FULL_CURRENT_PATH)" /Fo$(CURRENT_DIRECTORY)\ /link /out:"$(CURRENT_DIRECTORY)\$(NAME_PART).exe"
cd $(CURRENT_DIRECTORY)
"$(NAME_PART).exe"

More info on Visual C vcvars scripts:

https://docs.microsoft.com/

Turbo C++

For compiling and running using Turbo C++:
npp_save
cd "c:\tc\bin\TCC.exe" 
"$(CURRENT_DIRECTORY)\$(NAME_PART).cpp"
cd $(CURRENT_DIRECTORY)
"$(NAME_PART).exe"

Borland C++

For compiling and running using Borland C++: 
cd "C:\BORLAND\BCC55 "$(CURRENT_DIRECTORY)\$(NAME_PART).cpp"
cd $(CURRENT_DIRECTORY)
"$(NAME_PART).exe"

Most Option In Notepad++ and Plugin

ALWAYS BACKUP THE FILE BEFORE EDITED!!

Notepad++ Configuration:

Notepad++ Configuration inside XML files are all found in %AppData%\notepad++\ (or, for zip-based local installations, in the notepad++ executable directory) unless otherwise noted.
  • General
    • Toolbar: Small icons (prefer to small screen) / Big icons (prefer to big screen).
    • Document List Panel: Disable extension column: If enabled, the Doc Switcher panel will show the extension as part of the Name column).
  • Editing
    • Multi-Editing Settings: allows multiple selections not necessarily contiguous with each other by using Ctrl+Mouse click on the selection(s).
  • Language
    • Tab settings:
      • Replace by space: when set, hitting TAB will insert that number of spaces; when not set, TAB will insert the literal ASCII TAB character.
    • Treat backslash as escape character for SQL: this affects the Language > SQL handling of the \ backslash character (Note: this option moved from MISC Preferences in v7.8.1)
  • Highlighting
    • Highlight Matching Tags
      • Highlight comment/php/asp zone.
  • Backup
    • Session snapshot and periodic backup
      • Remember current session for next launch: the current session is the current list of open files. The next time you run Notepad++, it will open with that same list of files.
      • Enable session snapshot and periodic backup: this will auto-save your changed file once every N seconds to the listed directory (default to %AppData%\Notepad++\backup\).
        1. It is not possible to select this option without Remember current session ... also being active.
        2. This is also how you enable Notepad++ to remember unsaved changes.
        3. This will allow you to exit Notepad++ and resume, remembering changes to files that hadn’t been intentionally saved.
        4. When you exit Notepad++ with unsaved changes, Notepad++ will not ask you to save changes. It will just keep the periodic backup file, and reload from there rather than from the normal disk location for the file.
        5. If you want Notepad++ to ask to you save edited files every time you close the file or exit Notepad++, do not enable this option.
        6. This is not a long-term backup option.
        7. Every time you do a manual save, or close the file while leaving Notepad++ open, this periodic backup of the file will be deleted.
        8. If there is a Notepad++ crash or Windows crash, it is possible for you to lose data.
  • Auto-Completion
    • Enable auto-completion on each input: a dropdown selection will appear as you type; arrow keys will select various choices, TAB or ENTER will accept a choice, ESC will cancel auto-completion.
    • Function parameters hint on input: for applicable programming languages, will provide hints on what to type in a function parameter list.
    • Auto-indent: when making a new line, automatically indent (following TAB or space settings for the active Language) based on the indent of the previous line (note: this setting was in the MISC preferences prior to v7.8.3)
  •  Delimiter
    • Delimiter selection settings
      • If you define open and close characters, Ctrl + MouseDoubleClick will select everything inside that delimiter pair.
      • Allow on several lines: Ctrl + MouseDoubleClick will work across multiple lines, instead of just on a single line.
  • MISC.
    • Document Switcher
      • Enable: hitting Ctrl+TAB will allow you to easily switch through all the open documents.
      • Enable MRU behavior: it will default to selecting the most-recently-used file (or “MRU”, for short) in the Ctrl+TAB list.
    • Clickable Link Settings
      • Enable: text that appears to be a URL will allow you to double-click to open that URL in your default browser. When you hover over the URL, it will change to the style defined in Style Configurator > Global Styles > URL hovered.
    • Show only filename in title bar: use just the file name (instead of the full path) of the active file in the Notepad++ title bar.
    • Enable Notepad++ auto-updater: will automatically download updates from the official website, once the development team has decided it’s time to push an update to users. If disabled, you will have to manually download the installer from the official website yourself.
    • Don't fill find field in Find dialog with selected word: when enabled, Find command will not replace the Find What text with the currently-selected text; when disabled (default), the Find What text will be replaced (added v7.8.3).
    • Session file ext.: populate with a file extension (without the .). When you open a file with this extension (whether from Windows file associations, or from the Notepad++ File > Open or similar), Notepad++ will treat the file as a session file, and open the files from that session, rather than showing and editing the contents of the file. This will honor the Multi-Instance settings.
    • Workspace file ext.: populate with a file extension (without the .). When you open a file with this extension (whether from Windows file associations, or from the Notepad++ File > Open or similar), Notepad++ will treat the file as a workspace file, and open that workspace, rather than showing and editing the contents of the file. This will honor the Multi-Instance settings.

Notepad++ Plugin:


DSpellCheck

Plugin > DSpellCheck
remove check on "Check Only Comments and Strings if Possible"


Reference:
https://npp-user-manual.org/

Top Notepad2 Fork

The Best of Fork of Notepad 2
  • Original basic (Florian Balmer): Notepad2.
  • CodeFolding and metapath, support Windows XP and above (zufuliu): Notepad2.
  • Some additional features,Edit Selection, Math Evaluation, support Windows XP and above (ProgerXP): Notepad2e.
  • Copy directory to clipboard and Open path in explorer, Undo/Redo preserves selection, change many keyboard shortcut, support Windows 7 and above (rizonesoft): Notepad3
Other text editor related to Notepad2:
  • Notepad++
  • Scintilla

Wednesday, June 10, 2020

Mengubah orientasi halaman

Mengubah orientasi halaman menjadi landscape atau portrait Dalam Microsoft Word

Versi yang didukung: mulai dari Microsoft Word 2007

Mengubah orientasi seluruh dokumen

  1. Untuk mengubah orientasi seluruh dokumen, pilih "Page Layout" > "Orientation".
  2. Pilih "Portrait" atau "Landscape".


Topik lain:

Monday, June 8, 2020

Default Server Ports


TCP is the abbreviation of "Transfer Control Protocol" whereas UDP is the abbreviation of "User Datagram Protocol". TCP and UDP are both the main protocols which are used during the Transport layer of a TCP/IP Model. Both of these protocols are involved in the process of transmission of data. While UDP is used in situations where the volume of data is large and security of data is not of much significance, TCP is used in those situations where security of data is one of the main issues.
 Following are some of the common TCP and UDP default ports.


SMTP - 25
SMTP is known as the Simple Mail Transfer Protocol. It is associated with the TCP port number 25. The primary purpose of this protocol is to make sure that email messages are communicated over the network securely. This port usually comes into being during the Application layer.

HTTP - 80
Port 80 is associated with HTTP, Hypertext Transfer Protocol. It comes under the category of a TCP protocol. It is one of the most famous and widely used ports in the world. The main purpose of port 80 is to allow the browser to connect to the web pages on the internet. Port 80 basically expects or waits for the web client to ask for a connection. Once this connection has been made, you will get the privilege to connect to the World Wide Web and get access to various web pages out there. In fact, HTTP - 80 is one of the most important ports associated with the TCP protocol. Moreover, this port is generally used during the application layer of the TCP/IP Model.

HTTPS - 443
HTTPS - 443 is also associated with the TCP protocol. HTTPS port 443 also lets you connect to the internet by establishing a connection between the webpages and the browser. This lets you connect to the World Wide Web. However, this port has an added feature of security to it, which HTTP port 80 does not have. This port is intended for establishing secure connections to make sure that the data is transmitted over a secure network. The use receives a warning if the browser is trying to access a webpage which is not secure. This port comes into being during the application layer. It basically encrypts and authenticates the network packets before transferring them over the network to increase the security. This feature of security is introduced by the use of SSL, which can also be referred to as Secure Socket Layer.

FTP - 20, 21
FTP is the abbreviation of "File Transfer Protocol". The purpose of FTP is to transfer files over the internet. It basically lays down all the rules which are to be followed during the transfer of data. Due to the concern of security, it also asks for authentication by the user before the transfer of data. It is associated with the TCP protocol and corresponds to two ports, port 20 and 21. Both of these ports function during the application layer.
  • Port 20 performs the task of forwarding and transferring of data. It takes over the task of transferring FTP data when it is in active mode.
  • Port 21 performs the task of signaling for FTP. It listens to all of the commands and provides a flow control for data. It is quite essential for maintaining the flow of data.
 TELNET - 23

TELNET port 23 comes under the category of TCP Protocols. Its main function is to establish a connection between a server and a remote computer. It establishes a connection once the authentication method has been approved. However, this port is not suitable to establish secure connections and does not cater to the concern of security. It enables the remote connection of a computer to be established with routers and switches as well. It makes use of a virtual terminal protocol to make a connection with the server. It comes into existence during the application layer of the TCP/IP protocol.


IMAP - 143

IMAP is the abbreviation of 'Internet Message Access Protocol'. The IMAP -143 Port lies under the category of TCP protocol. The primary purpose of this port is to retrieve emails from a remote server without having the need to download the email. You have the liberty to access the emails from anywhere by connecting to the server and viewing your email after providing authentication. This opportunity has been provided to you because of the existence of this port. It reserves a virtual memory for the email which enables you to read it by connecting to the server. However, you may also download the mail if you wish to. It also provides you the ability to search for your messages from a bunch of them to get to your desired one. IMAP 143 Port generally operates at the Application Layer of a TCP/IP Model. In addition to this, it also makes sure that the data remain secure during this connection.


RDP - 3389

RDP is also known as the 'Remote Desktop Protocol'. It operates on the port 3389 of the TCP protocol. This port has been developed by Microsoft. It enables you to establish a connection with a remote computer. With the help of this connection, you get the liberty to control the desktop of this remote computer. This will provide you the ease to access you home desktop system from anywhere in the world just by proper authentication. In order to connect to your remote computer, you will have to forward the connection to the TCP Port 3389 which will then make available to you all the files which you have kept on your remote computer. However, since this port have been developed by Microsoft, it is essential to have a Windows operating system running on your computer in order to access it remotely. Please keep in mind that you might have to do manual settings in order to remotely access your desktop using this port. It operates on the Application layer of the TCP/IP Model. It is used worldwide for the purpose of accessing your desktop remotely.


SSH - 22

SSH is also referred to as 'Secure Shell'. It operates on the port number 22 of the TCP protocol. It carries out the task of remotely connecting to a remote server or host. It allows you to execute a number of commands and move your files remotely as well. However, it is one of the most secure ways of accessing your files remotely. Using this port, you can remotely connect to a computer and move your files with ease. This port sends the data over the network in an encrypted form which adds an extra layer of security on it. In addition to this, only authorized people will be able to remotely log on to their systems using the Port 22 which makes sure that the information does not get into unauthorized hands. It provides the chance to move files within networks as well as gives the privilege to move files between different networks securely. It operates at the Application Layer of the TCP/IP Model and is considered as one of the most secure and reliable ports for accessing files remotely.


DNS - 53

DNS is referred to as 'Domain Name System'. It operates on the port 53 of TCP and UDP protocols. DNS makes use of relational databases to link the host names of the computers or networks to their respective IP Addresses. The port 53 waits for requests from DHCP to transfer the data over the network. It operates on the Application Layer of the TCP/IP Model.

TCP protocol is used by the Zone Transfer function of the DNS server. Once the connection is established, the zone data will be sent by the server using the TCP 53 port. However, when the query has to be transferred from the client computer, it will be sent using the port 53 on UDP protocol. However, if no response is received from the server within 5 seconds, the DNS query will be sent using the port 53 of TCP Protocol.


DHCP - 67, 68

DHCP is also known as 'Dynamic Host Configuration Protocol'. It basically runs on the UDP protocol. The basic purpose of DHCP is to assign IP Address related information to the clients on a network automatically. This information may comprise of subnet mask, IP Address etc. Many of the devices are automatically configured to look for IP Addresses using DHCP when they connect on a network. It makes it quite reliable to assign all the devices on a network with automatically produced IP Addresses. It generally operates on the Application layer of the TCP/IP Model. DHCP basically makes use of 2 ports; Port 67 and Port 68.

UDP Port 67 performs the task of accepting address requests from DHCP and sending the data to the server. On the other hand, UDP Port 68 performs the task of responding to all the requests of DHCP and forwarding data to the client.


POP3-110

POP3 is also referred to as Post Office
 Protocol Version 3. It operates on the port 110 of TCP Protocol. It allows the email messages to be retrieved from the SMTP servers. Using this port, you can download the messages from the server and then read them. However, this means that you will not be able to access the messages and read them without downloading them. Furthermore, the messages are also deleted from the server once they are downloaded. However, this port does not cater to the issue of security. The authentication details transferred over the network are not encrypted and sent in plain text. This means that any hacker can easily intercept this information and misuse it. Port 110 generally operates on the Application layer of the TCP/IP Model.

Others


The default listening port for,
Apache (Linux)=8080
Apache (Windows)=80
MySQL=3006.
Java Server Pages (JSP) Tomcat=8080
Java Server Pages (JSP) JBoss=8080
Django Python=8000
ruby on rails=3000
node js (debug)=9229
node js=93000
deno js (debug)=9229
deno js=8000
express js=3000
vue js=8080
angular js-cli=4200
react js=3000

Application/Web Servers

NamePort Number
Apache Derby Network Server1527
OHS (SSL)4443
GlassFish Admin Server4848
WebLogic Admin Console7001
OHS7777
Tomcat Shutdown8005
IHS Administration8008
Tomcat AJP Connector8009
Tomcat Startup8080
GlassFish HTTP8080
Jetty8080
JBoss Admin Console8080
Alfresco Explorer/Share8080
Jenkins8080
GlassFish HTTPS8181
Tomcat Startup (SSL)8443
Jonas Admin Console9000
WAS Admin Console (SSL)9043
WAS Admin Console9060
WildFly Admin Console9990
WAS JVM HTTP9080 (first one only)
WAS JVM HTTPS9443 (first one only)

Database/Datastore

NamePort Number
DB250000
Redis Server6379
Oracle Listener1521
mongoDB27017
MySQL3306
MS SQL1433
Memcached11211
MariaDB3306

Some of the abbreviation used in the above list
  • WAS – WebSphere Application Server
  • AJP – Apache JServ Protocol
  • SSL – Secure Socket Layer
  • HTTP – Hyper Text Transfer Protocol
  • LDAP – Lightweight Directory Access Protocol
  • SSH – Secure Shell
  • SMTP – Simple Mail Transfer Protocol
  • IHS – IBM HTTP Server
  • NNTP – Network News Transport Protocol
  • SNMP – Simple Network Management Protocol