zaterdag 23 december 2017
maandag 13 november 2017
zaterdag 11 november 2017
Entering_a_Number_with_Leading_Zeros in spreadsheets
https://help.libreoffice.org/Calc/Entering_a_Number_with_Leading_Zeros/nl
donderdag 9 november 2017
Marvim plugin
De Marvim plugin is een vim plugin. Deze is in staat om macro's te saven.
Dit doe je door "qq" te gebruiken. Met andere woorden je creert gewoon een macro. Deze save je met een naam met F3.
Vervolgens kun je deze zoeken met F2 en deze opnieuw uitvoeren.
De macro's worden opgeslagen in .marvim in de home directory.
Let op: de macro's moeten met "qq" opgenomen worden. "qe" bijvoorbeeld werkt niet.
Dit doe je door "qq" te gebruiken. Met andere woorden je creert gewoon een macro. Deze save je met een naam met F3.
Vervolgens kun je deze zoeken met F2 en deze opnieuw uitvoeren.
De macro's worden opgeslagen in .marvim in de home directory.
Let op: de macro's moeten met "qq" opgenomen worden. "qe" bijvoorbeeld werkt niet.
vrijdag 15 september 2017
Opgave Autorisatiecode/Token
Opgave Autorisatiecode/Token
Om een domeinnaam naar ons te verhuizen, dient u de autorisatiecode op te geven welke u kunt verkrijgen bij uw oude provider/registrar. De autorisatiecode wortdt ook wel genoemd TOKEN, AUTH.CODE OF EPP-KEY.
Hieronder kunt u per domeinnaam de autorisatie code opgeven. Zodra wij de code van u hebben ontvangen wordt de verhuizing ingezet. Zodra de domeinnaam is verhuid, ontvangt u van ons een bevestiging.
Om een domeinnaam naar ons te verhuizen, dient u de autorisatiecode op te geven welke u kunt verkrijgen bij uw oude provider/registrar. De autorisatiecode wortdt ook wel genoemd TOKEN, AUTH.CODE OF EPP-KEY.
Hieronder kunt u per domeinnaam de autorisatie code opgeven. Zodra wij de code van u hebben ontvangen wordt de verhuizing ingezet. Zodra de domeinnaam is verhuid, ontvangt u van ons een bevestiging.
woensdag 16 augustus 2017
Git merge
Make a git merge on the command line in your local repository.
Upload the change to the remote repository on github
Delete the github branch online with git push origin :branch-name
Upload the change to the remote repository on github
Delete the github branch online with git push origin :branch-name
Making a branch in git, edit file and then commit to github
1. Move to the local repository on your harddisk
2. git checkout -b muis (je hebt nu twee dingen gedaan: een nieuwe branch gemaakt en daarnaar toe gegaan.
3. git push muis (dit zal de branch "uploaden" naar github)
4. vim probeersel.txt
5. git status om te zien of je nog in de juiste repository bent.
6. git add probeersel.txt
7. git commit -m "something" probeersel.txt
8 git push origin muis
2. git checkout -b muis (je hebt nu twee dingen gedaan: een nieuwe branch gemaakt en daarnaar toe gegaan.
3. git push muis (dit zal de branch "uploaden" naar github)
4. vim probeersel.txt
5. git status om te zien of je nog in de juiste repository bent.
6. git add probeersel.txt
7. git commit -m "something" probeersel.txt
8 git push origin muis
maandag 14 augustus 2017
Making a new repository on github
When you make a new repository on Github (with Readme file) you have to:
1. Clone it to your harddisk: git clone .... .git
2. Add your new files to this repository
3. Add your changes: git add
4. Commit your changes: git commit -m "begin" file.
5. and then: git push origin master
1. Clone it to your harddisk: git clone .... .git
2. Add your new files to this repository
3. Add your changes: git add
4. Commit your changes: git commit -m "begin" file.
5. and then: git push origin master
woensdag 9 augustus 2017
Dmidecode
$ dmidecode -t system
$ dmidecode -t bios
$ dmidecode -t chassis
$ dmidecode -t processor
$ dmidecode -t memory | more
$ dmidecode -t cache
$ dmidecode -t connector
$ dmidecode -t slot
$ dmidecode -t bios
$ dmidecode -t chassis
$ dmidecode -t processor
$ dmidecode -t memory | more
$ dmidecode -t cache
$ dmidecode -t connector
$ dmidecode -t slot
maandag 7 augustus 2017
Uniq, Sort, Count, Seq and Rev commands in Bash
The title speaks for itself.
Three commands to remember.
Don't forget the seq command (sequence)
Rev (reverse)
Three commands to remember.
Don't forget the seq command (sequence)
Rev (reverse)
vrijdag 4 augustus 2017
Moving through code
"Browsing through code
:set mps+=<:>
matchpairs does the job for me in Vim. See above.
This is the page that discusses it and more: http://vim.wikia.com/wiki/Moving_to_matching_braces
There is also a vim plugin that offers more but I haven't looked into it.
Thank you for your answers, both of you.
zaterdag 22 juli 2017
Polymorphism and inheritance
Inheritance refers to using the structure and behaviour of a super class in a subclass.
Polymorphism refers to changing the behaviour of a super class in the subclass.
https://stackoverflow.com/questions/6308178/what-is-the-main-difference-between-inheritance-and-polymorphism
vrijdag 14 juli 2017
Regex match until you find letter
WhatMShallTweMdoT
/^.+?(?=M)/g
(.+?) makes the regex non-greedy.
(?=M) is the condition. This is a postive lookahead assertion.
What is matched is: What
For more information:
https://stackoverflow.com/questions/7124778/how-to-match-anything-up-until-this-sequence-of-characters-in-a-regular-expres
For the regex engine:
http://regexr.com
/^.+?(?=M)/g
(.+?) makes the regex non-greedy.
(?=M) is the condition. This is a postive lookahead assertion.
What is matched is: What
For more information:
https://stackoverflow.com/questions/7124778/how-to-match-anything-up-until-this-sequence-of-characters-in-a-regular-expres
For the regex engine:
http://regexr.com
dinsdag 11 juli 2017
zaterdag 8 juli 2017
Ranger: BELANGRIJK
Use in the program Ranger the command :filter to make selections of certain files.
For instance:
:filter .mp4
To undo the filter, just type :filter to empty it.
New style for Libreoffice Writer
Creating a new style for Libreoffice Writer:
1. Style/New Style/
Give a name to the new style.
Then Modify and assign values to it in Font.
2. Assign a new shortcut for it by Tools/Customize/Keyboard/Styles/Paragraph/Monaco.
And then Modify: F4
1. Style/New Style/
Give a name to the new style.
Then Modify and assign values to it in Font.
2. Assign a new shortcut for it by Tools/Customize/Keyboard/Styles/Paragraph/Monaco.
And then Modify: F4
maandag 26 juni 2017
Putting brackets around words
What shall we do with the drunken sailor early in the morning
"What", "shall", "we", "do", "with", "the", "drunken", "sailor", "early", "in", "the", "morning",
And it can be done in Vim with this command:
%s/\w\+/"&",/g
"What", "shall", "we", "do", "with", "the", "drunken", "sailor", "early", "in", "the", "morning",
%s/\w\+/"&",/g
dinsdag 13 juni 2017
Selecting text from SVG files
:vnew
is more effcient than:vsplit
followed by:enew
.yit
is more efficient thanvit
followed byy
.- Okay I'm being facetious. Sorry. To actually answer your question, macros (
:help complex-repeats
) can playback commands that move the cursor to other windows, so you can use them for this sort of task. You might need to tweak this to work with the contents of your file, but the basic steps are:/tspan<cr>
: Search for the first tag.f>l
: Jump into the element contents.qq
: Start recording into theq
register.yit
: Yank the text.ctrl-w w
: Move cursor to your other window.p
: Paste the yanked text.ctrl-w p
: Move cursor back into the first window.n
: Jump to start of next tag.q
: Stop recording and save the macro.
You can then play the macro back 31 times with the command:31@q
. - You could probably also do it with a
:global
command.https://vi.stackexchange.com/questions/12619/more-efficient-way-of-yanking-text-out-of-tags
vrijdag 9 juni 2017
Wordfast Anywhere
Hoe van de ene regel naar de andere te gaan in Wordfast?
Druk op Alt+pijl omlaag of Alt+pijl omhoog.
Voor de manual:
https://www.wordfast.net/wiki/Handleiding_Wordfast_Anywhere#De_belangrijkste_commando.E2.80.99s
Druk op Alt+pijl omlaag of Alt+pijl omhoog.
Voor de manual:
https://www.wordfast.net/wiki/Handleiding_Wordfast_Anywhere#De_belangrijkste_commando.E2.80.99s
dinsdag 6 juni 2017
Feh controls
If you want feh to run from ranger, you will have to do "r" and then choose "t" for new screen.
Press "v" for filled screen. And use the spacebar to scroll forward.
Use d to see what the filename is.
Press "v" for filled screen. And use the spacebar to scroll forward.
Use d to see what the filename is.
maandag 29 mei 2017
Git
Belangrijke Git commands:
$ git remote -v
$ git remote show origin
$ git status
Zorg ervoor dat je daadwerkelijk in de folder bent waar het om gaat, zoals:
~/gitclone/vimrc-file
$ ls
$ index.html vimrc1.txt vimrc2.txt
$ git remote -v
$ git remote show origin
$ git status
Zorg ervoor dat je daadwerkelijk in de folder bent waar het om gaat, zoals:
~/gitclone/vimrc-file
$ ls
$ index.html vimrc1.txt vimrc2.txt
donderdag 25 mei 2017
[Solved]
How to mark posts as solved on fora?
Go to the first post you have posted and press edit. Then advanced edit.
This allows you to edit the title of the post.
Then add [Solved] before the title.
Go to the first post you have posted and press edit. Then advanced edit.
This allows you to edit the title of the post.
Then add [Solved] before the title.
dinsdag 9 mei 2017
Scout command in ranger
Swiss army knife command for searching, traveling and filtering files. The command takes various flags as arguments which can be used to influence its behaviour:
-a = automatically open a file on unambiguous match
-e = open the selected file when pressing enter
-f = filter files that match the current search pattern
-g = interpret pattern as a glob pattern
-i = ignore the letter case of the files
-k = keep the console open when changing a directory with the command
-l = letter skipping; e.g. allow "rdme" to match the file "readme"
-m = mark the matching files after pressing enter
-M = unmark the matching files after pressing enter
-p = permanent filter: hide non-matching files after pressing enter
-r = interpret pattern as a regular expression pattern
-s = smart case; like -i unless pattern contains upper case letters
-t = apply filter and search pattern as you type
-v = inverts the match
zondag 7 mei 2017
Asterisk before directories in ranger
TAGS
Tags are single characters which are displayed left of a filename. You
can use tags however you want. Press "t" to toggle tags and "ut" to
remove any tags of the selection. The default tag is an Asterisk ("*"),
but you can use any tag by typing "<tagname>.
woensdag 26 april 2017
find command: finding files with wildcards
Hoe de file: pythonmanual.pdf te vinden in de map ~/Downloads.
Ik heb dit probleem opgelost door naar de map Downloads te gaan:
$ cd Downloads
Dan de find command uitgevoerd:
$ find -name python\*.pdf
./pythonmanual.pdf
Voor meer informatie:
http://stackoverflow.com/questions/13423824/wild-cards-on-find-and-ls
Ik heb dit probleem opgelost door naar de map Downloads te gaan:
$ cd Downloads
Dan de find command uitgevoerd:
$ find -name python\*.pdf
./pythonmanual.pdf
Voor meer informatie:
http://stackoverflow.com/questions/13423824/wild-cards-on-find-and-ls
vrijdag 21 april 2017
Creating multiple empty slides at once.
Create an additional slide. Then select both of the slides and copy them.
Paste those two slides underneath the two existing ones. Now you have four slides.
Copy them and paste them underneath the existing four etc. etc.
maandag 17 april 2017
zaterdag 8 april 2017
How to update buku
How to update buku with a new tag? That can be done with this command:
buku -u 59 --tag git
-u stands for update.
59 stands for the link
--tag git adds the git tag to the link
Other examples of buku commands are:
buku --stag (this command gives all the tags used in buku)
buku -a (with this command you add a new link to buku)
buku -u 59 --tag git
-u stands for update.
59 stands for the link
--tag git adds the git tag to the link
Other examples of buku commands are:
buku --stag (this command gives all the tags used in buku)
buku -a (with this command you add a new link to buku)
zondag 2 april 2017
How to make a Table of Contents in LibreOffice
You can do it in two ways: manually or automatically.
In this text only the manual way is discussed.
These are the steps to be taken:
In the text itself you select and bookmark the headings that you want in the Table of Contents. (Select text/Insert/Bookmark)
Then add the text that you bookmarked to the Table of Contents. When you have done that,hyperlink the text
of the table of content to the bookmarks
(Insert/Hyperlink/Document/Target).
It should look like this:
Shave
his belly with a rusty razor (this text is hyperlinked to the bookmark)
Put
him in a longboat till his sober
Stick
him in a barrel with a hosepipe on him
Put
him in the bed with the captains daughter
And the original text:
What will we do with
the drunken sailor
What will we do with
the drunken sailor
What will we do with
the drunken sailor
Early in the morning
Way hay and up she
rises
Way hay and up she
rises
Way hay and up she
rises
Early in the morning
Shave his belly with a rusty razor (this text is bookmarked)
Shave his belly with
a rusty razor
Shave his belly with
a rusty razor
Early in the morning
Way hay and up she
rises
Way hay and up she
rises
Way hay and up she
rises
Early in the morning
Put him in a longboat till his sober (this text is bookmarked)
Put him in a
longboat till his sober
Put him in a
longboat till his sober
Early in the morning
Way hay and up she
rises
Way hay and up she
rises
Way hay and up she
rises
zondag 26 maart 2017
Layout van een samenvatting van Lynda.com
- Het kopiëren en plakken uit qutebrowser of een andere browser (maar niet Firefox).
- Het weghalen van de minuten en seconden met Find and Replace.
- Het weghalen van de lege lijnen.
- Het weghalen van de woorden die er niet toe doen zoals Bookmark.
- Het opslaan als een txt file en deze vervolgens invoeren in template2 in de map Miscel en deze file opslaan als pl file (perl).
- Het runnen van perl file.pl en de resultaten invoeren in Word.
- Het dupliceren van deze inleiding en deze bold maken.
- Ervoor zorgen dat er een lijn tussen de tekst komt en een streepje aan het begin van de lijn. ( (.*) en $1\n ) en vervolgens de formule hieronder.
- NB: zorg ervoor dat je het symbool " ^ " gebruikt wanneer je Find and Replace gebruikt.
dinsdag 21 maart 2017
How to run TeX from the command line interface in Linux
pdflatex [options] filename.tex
latex [options] filename.tex
xelatex [options] filename.tex
dinsdag 14 maart 2017
Find als Find and Replace
Neem bijvoorbeeld dit rijtje:
1. Understanding and Installing QGIS
-
1.1 Overview of QGIS features
-
1.2 Understanding the types of QGIS installs
-
1.3 Installing QGIS
-
1.4 Exploring the QGIS browser
-
2. Vector Data with QGIS
-
2.1 Understanding types of vector data in QGIS
-
2.2 Adding shapefiles to QGIS
-
2.3 Adding WFS data to QGIS
-
3. Raster Data with QGIS
-
3.1 Exploring types of raster data in QGIS
-
3.2 Adding ECW data
En je wilt dat de streepjes aan het begin van elke lijn niet bold zijn.
Je gebruikt dan Find -/ Find all/ en gebruik dan de dikgebruikte B om de streepjes
niet dikgedrukt te maken.
vrijdag 24 februari 2017
Een goede pdf maken van Volkskrant artikel
Als je een goede pdf wilt maken van een Volkskrant artikel, moet je als volgt te werken gaan. Open de Volkskrant pagina, waar je een pdf van wilt maken. Open vervolgens Firebug (een extension) en delete de header. Want het is de header die moeilijkheden veroorzaakt wanneer je een pdf van een pagina wilt maken.
Je moet de hele header weghalen.
Je moet de hele header weghalen.
zaterdag 7 januari 2017
How to enable a disabled printer
lpstat -p (this gives information about the printer)
printer DeskJet_845C disabled since Sun 08 Jan 2017 08:36:51 AM CET -
Rendering completed
printer PDF is idle. enabled since Wed 02 Dec 2015 06:39:46 PM CET
Now run the following command:
sudo cupsenable DeskJet_845C
and you will be fine.
printer DeskJet_845C disabled since Sun 08 Jan 2017 08:36:51 AM CET -
Rendering completed
printer PDF is idle. enabled since Wed 02 Dec 2015 06:39:46 PM CET
Now run the following command:
sudo cupsenable DeskJet_845C
and you will be fine.
Abonneren op:
Posts (Atom)
Enlarging Libreoffice window completely with command
You can open the LibreOffice window completely by pressing the CTRL+Shift+J keys together.
-
There is a way to delete empty lines in LibreOffice with regex. It is this command: ^$ But sometimes this doesn't work. Because the a...
-
Als je een goede pdf wilt maken van een Volkskrant artikel, moet je als volgt te werken gaan. Open de Volkskrant pagina, waar je een pdf van...
-
Changing language of keyboard with the command: setxkbmap fr.