background preloader

Learn Vim Progressively - Vimperator

Learn Vim Progressively - Vimperator
tl;dr: You want to teach yourself vim (the best text editor known to human kind) in the fastest way possible. This is my way of doing it. You start by learning the minimal to survive, then you integrate all the tricks slowly. Vim the Six Billion Dollar editor Better, Stronger, Faster. Learn vim and it will be your last text editor. I suggest you teach yourself Vim in 4 steps: SurviveFeel comfortableFeel Better, Stronger, FasterUse superpowers of vim By the end of this journey, you’ll become a vim superstar. But before we start, just a warning. 1st Level – Survive Install vimLaunch vimDO NOTHING! In a standard editor, typing on the keyboard is enough to write something and see it on the screen. You should feel a bit better. You now know how to switch between Insert and Normal mode. i → Insert mode. Only 5 commands. But first, just a little remark about Normal mode. A last word about notations: instead of writing Ctrl-λ, I’ll write <C-λ>.commands starting with : end with <enter>. Better Stronger

Learn Vimscript the Hard Way - Vimperator Installing a Mailserver with Postfix, Dovecot, SASL, LDAP & Roundcube | Acidx's Blog Installing a mailserver is a quite complex matter because several components are involved. Since there are many different operational scenarios, there are many different possible configurations, thus lots of different howtos around the internet. In this howto I’m going to describe the basic configuration of a mail server which has the following characteristics: Everything runs on Ubuntu 14.04 LTS x64All software packages are taken from the repository (no compiling necessary)The server is directly connected to the internet using a static IP addressUsers don’t have system accounts on the Unix machineUser accounts are virtual accounts stored in an LDAPUsers with a valid LDAP account can … Send and receive mail via POP3/IMAPSend and receive mail via Web Interface Spam and virus protection (amavis, clamav, spamassasin) is not covered by this howto. Graphical overview of the set-up: These are the necessary components: Postfix as MTA (Mail Transfer Agent) –> This is the SMTP server. 1. 2. 3. 4.

Shuffling Shuffling is a very interesting programming problem, Almost everybody can come up with a good algorithm using a simple rand() function, but it gets a little tricky when one has to perform a in place shuffle (i.e. w/o using any extra memory). Knuth's Algorithm described in the Art of Computer programming, Vol 2 (which is based on Fisher Yates algorithm) is regarded as one the best known algorithm for the problem. The description on wikipedia is a little clearer and goes like this:1. Let A1 := 1, A2 := 2 and so on up to AN := N, and let n := N.2. Pick a random number k between 1 and n inclusive.3. If k ≠ n, swap the values of Ak and An.4. Alternately, instead of going n to 1 we can do a forward pass like here: int N = array.length; for (int i = 0; i < N; i++) { int r = i + (int) (Math.random() * (N-i)); int t = array[r]; array[r] = array[i]; array[i] = t; } To turn the Java example above into an example of Sattolo's algorithm, simply replace rng.nextInt(n) with rng.nextInt(n-1) in the code.

mysql - Can HTML be embedded inside PHP "if" statement Password Safe Tutorial: Make Vim as Your C/C++ IDE Using c.vim Plugin - Vimperator This article is part of the ongoing Vi / Vim Tips and Tricks Series. As a programmer, you may do lot of repetitive tasks while coding such as: Adding file header Adding function/frame comment Including default code snippet Performing syntax check Reading documentation about a function Converting a code block to comment, and vice versa The C-Support Vim Plugin offers easiest way to do all of the above, saving lot of time and keystrokes for C and C++ programmers. The plugin was written by Fritz Mehner, who explains the purpose of the plugin as: “Write and run programs. Statement oriented editing of C / C++ programs Speed up writing new code considerably. This article explains how to install the plugin in 3 easy steps and 7 powerful features of the plugin. 3 Steps to Install the C.Vim Plugin Step 1: Download C Vim Plugin Download the plugin from vim.org website. $ cd /usr/src $ wget Step 2: Install the C Vim Plugin $ vim ~/.vimrc filetype plugin on

HOW-TO: Настройка Postfix + Dovecot + Dovecot SASL + виртуальные пользователи в LDAP И так, у нас уже есть настроенный LDAP сервер по этой статье и внём уже есть пользователи, хотелось бы использовать данных пользователей для почтового сервера. Сформируем условия для нашего почтового сервера: 1. Пользователи являются виртуальными и находятся в базе LDAP на другом сервере 2. 3. 4. 5. 6. 7. 8. 9. В распоряжении имеется машина со свежеустановленной Ubuntu 10.04. Все действия в этой статье выполняются от пользователя root. Прежде чем приступить к настройке самого почтового сервера необходимо немного подготовить LDAP сервер. На сервере LDAP переходим в каталог /usr/share/gosa/contrib/plugins/fai и редактируем файл схемы fai.ldif, так как это делалось при натройке LDAP сервера т.е.: Строки в начале приводим к виду dn: cn=fai,cn=schema,cn=config objectClass: olcSchemaConfig cn: fai и в конце файла удаляем всё начиная с structuralObjectClass: и до конца файла. Добавляем эту схему в LDAP ldapadd -Y EXTERNAL -H -f /usr/share/gosa/contrib/plugins/fai/fai.ldif 1. cd .. && ls -1 на

ATVBackup - atv-bootloader - Apple TV bootloader Note: This requires "recovery-0.6.tar.gz" or greater. The previous versions do not contain all the required command-line tools. You have bought an AppleTV and want to alter the original internal PATA disk. What we do is take advantage of the self-restoring capability that is already built into the AppleTV EFI fireware. Warning You might use "dd" to copy the entire disk but that's a waste of time and storage space and "dd" is not the correct tool to copy GPT format disks. Let's get started, first build atv-bootloader on a USB pen disk with telnet support. This is the USB flash drive created in atv-bootloader on a USB pen disk parted -s /dev/sdb unit s print Model: SanDisk Cruzer Micro (scsi)Disk /dev/sdb: 501759sSector size (logical/physical): 512B/512BPartition Table: gpt Number Start End Size File system Name Flags 1 40s 69671s 69632s hfs+ primary atvrecv Add the ext3 partition The ending sector is the max sectors - 34 sectors (501759s - 34s = 501725s) mkdir src dst mkdir tmp mkdir staging <?

Clearing a float container without source markup (This clearing technique was developed by Tony Aslett, of csscreator.com. The earliest known mention of the basic :after idea is found here.) Notice as of March 4th, 2008: The article you are reading is getting a bit old and much new information on the subject of clearing has appeared since it was written. Clearing Floats The Old Fashioned Way When a float is contained within a container box that has a visible border or background, that float does not automatically force the container's bottom edge down as the float is made taller. This float-enclosing behavior in IE can also be 'toggled' off again just by hovering of links within the container, if that hovering alters either the link background or one of several other CSS properties. The W3C suggests placing a "cleared" element last in the container box, which is then recognized by the container height, forcing the container to enclose the float above that cleared element too. <div><! Problems With The Method Using :after Toggle Trouble

PDF To WORD Converter - Freeware gmarik/vundle · GitHub - Vimperator

Related: