preceived competence

After reading “Überzeugt” (eng.: convinced) by Jack Nasher here are some point that I will try to implement:

  • priming: remember why you are the best to modify your subconscious and send out competence
  • do not be modest with your core competence
  • if you have to announce positive things show maximal presence – if you have to announce negative things don’t
  • if you have to announce mistakes than say it clearly and than switch to a positive point
  • anytime you tell the good things than the negative and finish with the second-best point
  • show how hard it is/was to accomplish the target and if you could not get it: link to problems that were not your fault
  • do not show that you invest your live to accomplish a target – it was easy …
  • speak a little bit faster than normal, clearly, fluently and a little bit deeper and louder than the average
  • use a great treasury of words and do not repeat some words
  • look into other eyes if you are talking and try to avoid eye-contact if the other is talking
  • have a good difference between you and the other people like 1,5 m
  • stand a little bit diagonally to other
  • make sure that you are taller than the other – if they are taller try to make all sitting – if you are taller try to stand next to them
  • sit a little bit relaxed and try to sit on the bedside of the table if you are not in a country that has a problem with this
  • use the the “halo”- effect
  • be attractive as possible
  • make sure that you wear the clothes for your next job – not the job that you do right now

some inspiring points

I read the book “Let’s talk about change, baby!” by Ilja Grzeskowitz. Here are some inspiring points that I note:

  • think like a businessman, even if you are not
  • read much as possible
  • take a walk in nature
  • travel around the world
  • work hard and never give up
  • think big
  • take responsibility
  • family & friends
  • decide
  • go for 101 % – give a little bit more than needed – every time
  • go with positive people – avoid negative ones
  • be the hero of your kids
  • invest in yourself
  • sport
  • go with good shoes
  • learn the next foreign language
  • idea-book
  • have a place to reload your energy

increase visual studio coding speed

This is a collection of how to increase your coding speed in visual studio. I will write this based on Visual Studio 2017:

Search:
You have the ability to search for everything you can imagine with [(ctrl + q)]. With the escape-key you can go one step back with the cursor into your code.

Bookmarks:
With bookmarks you can go to set a reminder to review this code-part later by pressing [(ctrl + k) + (ctrl + k)]. This works like a debugger-point. By pressing [(ctrl + w) + (ctrl + k)] you can see all bookmarks. With the menu-key (right next to the right windows-key) you can rename or delete a bookmark. With just hitting enter you can go and visit a place that you marked with a bookmark.

Code snippets:
As well there are a lot of code snippets that will increase your coding speed. Here are some examples:

  • ctor: constructor
  • prop: property
  • propfull: property with full get and set methods
  • wl: write line
  • equals: overriding object.Equals and object.GetHashCode function
  • try: try block
  • tryf: try block with a finally
  • for: a for loop
  • forr: a for loop which will decrease
  • ctor: constructor
  • foreach: foreach loop; if you created a list right before doing this it will auto-suggest the name of the list that you created
  • while: while-loop
  • do: do-while loop

Auto-Format:
To auto-format your code you can use the shortcut [(ctrl + k) + (ctrl + f)]. Another opportunity is to download the Microsoft “Productivity Power Tools“. After installing you have to go to Options -> Productivity Power Tools -> PowerCommands:General and make sure that “Format document on save” is set. Now you just have to save the file ad it will auto-format everything. As well it will remove all of the using-statements that are not used right now.

Switching Tabs:
As well you should use the keyboard to switch the tabs in Visual Studio. For this you can use the shortcut [(ctrl + tab)]. To go to the last tab you can go with [(ctrl + shitft + F6)]. To close a tab you can use [(ctrl + F4)].

Navigation
To navigate through your project I recommend you to use the shortcut [(ctrl + ;)]. This will open an dialog which will give you the opportunity to search for everything that you need. You can search for a class, a method, a file, …

Concentration to the right code
To bring you into the code you can switch between full-screen and the normal view with [(shift + alt + enter)]. To collapse code blocks you can use [(ctrl + m) + (ctrl + m)]. This works on every level (class, method, …).

Let Visual Studio work for you
In Visual Studio there is another godlike opportunity to avoid coding. If you have any part that is underlined you can go there and use [(alt + enter)] to have some options that will suggest you to finish your code correctly:

linux server basics

Today I want to show the basics that everyone should know by using a linux-server. In this case I will use ubuntu – so if you do not use debian you may have some small differences.
I start with the smallest one: “w”
This will give you all user that are currently in use of the server. This can look like this:

21:01:58 up 9:45, 2 users, load average: 0,00, 0,00, 0,00
USER TTY VON ANMELD@ UNTÄ JCPU PCPU WAS
morten tty1 07:56 5:36 0.06 s 0.04 s -bash
morten pts/0 192.168.178.26 20:58 2.00 s 0.06 s 0.00 s w

If you want to update your server you should always go with:

  • sudo apt-get update
  • sudo apt-get upgrade
  • sudo apt-get dist-upgrade
  • sudo do-release-upgrade

The first one (“update”) will fetch the list of available updates. With the second command (“upgrade”) you upgrade all current packages. With the third one (“dist-upgrade”) you will update all new packages. And with the last one (“do-release-upgrade”) you will update the system to the last lts-version that is out.

The following commands help you to get some network and connection information.

  • arp: will show the Ethernet connectivity
  • ifconfig: will give you all information about our IP; as well you can use “IP address”
  • ping: with that one you can ping another server, computer, IP address, …

To set the root password you use “sudo passwd root”. To do this you need admin-rights – not surprisingly. After doing this you can use “su” to run every following command as root. If you do not want to use all following commands as root you have to set a sudo to the start like we did before here. Sudo tells that that single command is executed with admin-rights.

To edit files you have a lot of opportunities. But there are two that are pretty standard and should give you all you need to read and modify files.

  • nano
  • vi
  • cat

With the cat-command you just show the content of file – without opportunities to modify the file.

And two really basic must-haves:

  • cd: will set your current position to the path that you specify
  • ls: will show all files; “ls – l” will give you a better list of all files

knowledge: next level

To bring my knowledge to the next level I did some research. This is my summary to promote my brain-performance:

  • brain-gym:
    Some research tells that you improve your brain-performance by doing some strange movements. You can find some strange exercise just by google it. But as well you can do this just by going out and jogging.  I go for running one to two time a week. And this is how you can activate every part in your brain.
  • extend knowledge:
    It is important to get that much knowledge as possible. You should go for that knowledge that you are interested in and soak up everything that you get. One point to do this is the following.
  • books:
    If you read a half to a hour a day you probably read one book a week. That is huge because like this you get around 50 books in a year. So now check yourself. How many books do you read. Compare this level with 50 books a year. Probably you miss knowledge of 44 to 49 books every year. It is good do increase your reading-speed before starting reading now. And if you do not have the time to read than implement it into some of your basic tasks that you do everyday. If you travel 30 min. a day to go for work you have two times 30 min. to read in the train or hear some read book while driving in the car. Remember the difference between doing it and just going on like normal are around 46 books a year. A lot of knowledge …
  • brain-jogging:
    As well you can go for brain-jogging. For me I do not like to do this because I rather like to kick my brain in normal tasks like: Learn phone-numbers, learn facts that you read or heard, play poker or chess, … I would never have fun while playing this “brain-jogging” games. But I think there are a lot of things that you can do instead of this while reaching the same: Good activities in both brain-parts!

As well there are some point promote my creativity:

  • breaks:
    If you go for breaks you do not waste time if you relax in a good way. If you relax both of your brain-parts communicate a lot – which is pretty rar. As well it is good to think about things that you learned so anyway you should go for some breaks if possible every day.
  • classic-music // alpha waves:
    Based on some researches classic music has the perfect frequency to promote your brain. So if you hear some of this music of better play some classic instruments it would be good to improve your brain-activities. If you do not like classic music, you should try some alpha waves (search on youtube).
  • know everything in your business:
    To create new ideas in your business you need to have the best basic that someone is able to have. So you should know everything about your business. One of many examples: The founder of the plain worked as bicycle-manufacturer. They had a lot of knowledge in wheels and frameworks. Without this knowledge probably they never had developed a working plain.

To break my limits I’d like to:

  • go for new experiences:
    If you see new places in the world, try some new sport, read some new books, discuss with people that you do not know, play some new games or do other new things you extend your mindset and expand your horizon. As well this will help you to stay creative and get some new influences with some new aspects. Do not miss this!
  • idea-book:
    As well you always should be able to note ideas in a idea-book. You can use your phone with OneNote for this or just having a physical small book with you. Note everything to avoid loosing cool ideas. Some of them will be small ideas. But if you note them they can grow easy.
  • passion vs luck:
    Passion is another thing that is necessary to reach difficult targets. With passion you can avoid the need of luck. Here is an example: There is a fisher and everyone tells him that it is stupid to go for fishing a super-rar-fish, because if he go out now he will get the fish for just lets say 1 %. Buf if the fisher really wants to reach this goal and having a picture with him and the super rar fish in his hand he will go out and do this for ten thousand times. While doing this he do not need to has some luck. He will get it anyway because he will do it for ten thousand times.

To improve my memory I should go for:

  • mental mailbox:
    A mental mailbox is a link between the information that you want to remember and something that is build by a system that makes you easy remember that things. For example you can use your body for this. So look to your right foot, your knees and waist. So now imaging a the white house which is in Washington standing in a small version on your foot. Next on your knees you can see Adam and Eva eating the red apple. And at your waist is your son eating something from the bistro “Jeffer”. And if you go on with more parts of your body and more of that things you will check out that you know every name of the american president in sequence.

    • 1st -> Washington
    • 2nd -> Adams
    • 3rd -> Jefferson
  • 10 or more – body or house:
    If you run well with this pattern you can go for more than 10 while using your house. Do not think about your body. Do think about one room in your house for 10 information. In the next room you will store the next 10 information and so on … With this you are able to store about 100 and more information about a subject.
  • “geist ist geil”:
    While doing this you can use the knowledge that you learned. It is really impressive if someone can give you the 26st president of america. In Germany I call it “geist ist geil” which means something like spirit is awesome.

How to remember numbers:

  • fast calculations:
    There are a lot of methods to calculate fast without using a calculator or something like this. While using this methods instead of using a calculator you improve your ability to calculate and promote your brain. You can find a lot of them by using google. I will not list them here right now.
  • one number – one picture:
    As well to remember numbers you allways should have a system like the mental mailbox. Use a picture for every number – for example: 0 = an Egg, … As well you should learn it in pair like this:
    0158273 -> 01 – 58 – 27 – 3
    With this you have a pair of words that you combine to create a story or something else that link it together.
  • relaxe, practice and do not give up:
    This pattern needs some time to practice and if you fail you have to go on. So do not give up if it does not work in the first days and carry on.

Some points to learn new languages:

  • fail no 1:
    If you ask people if they learn some languages right now .. the most will tell you that they do not. Most of them give up learning languages before beginning it. This is the fail no 1. Do not do this like them. Do not give up learning a language because you think you do not have talent.
  • link it:
    Like learning numbers or everything else you should like every world that you want to learn with as much as possible things in your head. This will help you to remember the things in a better way.

subnetting basics

If we checkout the ipconfig (in windows) or in linux (ip addr show) we should find a ip and a subnet-mask if we got one. As well there is a standard-gateway. In the following I will describe how this works and what this will tell you about your network.

With IPv4 the unit of all ip-addresses are capped and in the future we will swap to  IPv6 because of this cap.

If we have a network like 192.168.0.0 /24 you will note the “/24”. This means that the network uses 24 bit to declare the network. The rest of the bits is for the hosts (and network address and broadcast).

8 bits . 8 bits . 8 bits . 8 bits
The first 24 bit are for the network and the last 8 are for the hosts, network and broadcast address.

Now we want to split this network into 56 parts. After this we should have 56 networks. To do this we need to find out the value that you can put in n in 2^n >= the needed unit of the networks. So:

2^n >= 56
2^6 >= 64 … so we will take the 6

So now we check out the values of the last 8 bits that we have to use:

bit 8 -> 2^0 -> 1
bit 7 -> 2^1 -> 2
bit 6 -> 2^2 -> 4
bit 5 -> 2^3 -> 8
bit 4 -> 2^4 -> 16
bit 3 -> 2^5 -> 32
bit 2 -> 2^6 -> 64
bit 1 -> 2^7 -> 128

With this information we take n (6) and check out the bit of this (marked big). So now we now that we have 4 IP address for every network if we want to split it into 56 networks.

As well we should know:

  • The first IP address in a network describes the network
  • The last IP address in a network is the broadcast address

So for example the first network of 56 would be like:

192.168.0.0 – network address
192.168.0.3 – broadcast address

192.168.0.1 – first host IP
192.168.0.2 – last host IP

So our last network had 24 bits to describe the network. All of our new networks have 24 + n (6) bits to describe the network. In this case we had a network like /30.

As said if we check out the IP address information we get nothing like /30 or /24. Instead of this we will get the subnet-mask. But this is the same just wrote different. We just have to set all network bits to 1 and the rest to 0 and check out the address as decimal.

/24 -> 1111 1111 . 1111 1111 . 1111 1111 . 0000 0000 -> 255.255.255.0
/30 -> 1111 1111 . 1111 1111 . 1111 1111 . 1111 1100 -> 255.255.255.252 (just take 255 – 2^1 – 2^0)

The standard gateway is the next hop to the internet (if you have one) other way you have to config the standard gateway.

routing-table basics

Every router use a routing table to control the data-flow. Sometimes you have to set up the table. With this steps you can easy define the data-flow:

  1. Describe the local networks
  2. Describe the rest of all networks opposed to the standard-route
  3. Describe the standard-route (0.0.0.0)

The standard route is the way through the network to the internet. If there is no internet connection you have to define the standard-route but probably you have an internet connection.

Lets do this with an example:

unbenannt

We want to set up the routing table for the router “West”.

  • 10.0.1.0 (local) – by step 1
  • 10.0.2.0 (next network opposed to the standard route) – by step 2
  • 0.0.0.0 (standard route) – by step 3

Thats all to checkout the entries for the routing table.

One further thing: metric.

Metric are the units of the “hops”. If we are router “West” and we want to have the metric for the networks 10.0.1.0 and 10.0.2.0:

10.0.1.0 = local = 0 hops => metric = 0
10.0.2.0 = 1 hop => metric = 1

Thats all …