Opslag

Recovering from Btrfs no space left on device

Btrfs is a great filesystem, distribution across disks is very usefull. I have been using it sinse it became available in Ubuntu, and have had once too many times where the disk got full, and getting out of that is very difficult. First a recommendation that lets you get of out the situation if it happens to you. Btrfs have a concept called "Device slack". Thats the space not used at the end of the Partition. Usually it's whatever can not be allocated into a block, but it can be adjusted so more space is left. Run: "btrfs device usage DEVID" and identify the device slack for each device that is part of your filesystem. They each have an ID. Then shrink the allocatable space for Btrfs thus increasing the device slack. btrfs filesystem resize 1:-10G DEVID This increases the device slack with 10GB. You probably just need space for minimum two blocks, i chose 10GB to be on the safe side. When you run out of space the next time you can then decrease the device slack ...

TexStudio og SumatraPDF

Use  SumatraPDF  instead of adobe reader and foxit.  SumatraPDF  doesn't lock the pdf, blocking the latex compiler from writing to it. If you want both forward and inverse search in one command it can also be done. Options (in the menu bar) -> Configure TeXstudio ... -> Commands (tab on the left) Set "External PDF Viewer" to  "C:/Program Files (x86)/SumatraPDF/SumatraPDF.exe" -reuse-instance -inverse-search "\"C:/Program Files (x86)/TeXstudio/texstudio.exe\" \"%%f\" -line %%l" -forward-search "?c:am.tex" @ "?am.pdf" Remember to change the paths to Sumatra and Texlive. Sources:  https://github.com/sumatrapdfreader/sumatrapdf/wiki/Command-line-arguments http://texstudio.sourceforge.net/manual/current/usermanual_en.html#SECTION37

MeldMerge, Tortoise git

Looking for the commands to setup meldmerge for diff and 3-way merge, here is my current setup. Path/DiffCommand: C:\Program Files (x86)\Meld\Meld.exe Diff Arguments: "$LOCAL" "$BASE" Merge Arguments: "$LOCAL" "$BASE" "$REMOTE" --auto-merge --output="$MERGED"

TexStudio Dansk ordbog

Dansk ordbog: http://extensions.openoffice.org/en/project/danish-spellcheck-and-hyphenation-dictionaries Download filen og åbn som en zip fil. F.eks 7z kan gøre dette. Filerne: "da_DK.aff, da_DK.dic". Skal kopieres til: C:\Program Files (x86)\TeXstudio\dictionaries Synonym ordbog: http://extensions.openoffice.org/en/project/danske-synonymer Download filen og åbn som en zip fil. F.eks 7z kan gøre dette. Filerne: "th_da_DK.dat". Skal kopieres til: C:\Program Files (x86)\TeXstudio\dictionaries

Access to redmine.iha.dk without disabling ssl verification globally

Choose a folder to contain the repo-content: cd /the/folder Open a terminal and init an empty git repository: git init . Disable ssl check for that repository: git config http.sslVerify "false" Set the remove path to the repository: git remote add origin <the-repo> git remote add origin https://redmine.iha.dk/courses/ittapk/ittapk_e2015.git Pull the repository:  git pull origin master Make pull automatically pull master:  git branch --set-upstream-to=origin/master master

Issue downloading authlib for "feed the beast"/minecraft or any other person having "java.security.InvalidAlgorithmParameterException: the trustAnchors parameter must be non-empty" issue

The problem is the file /etc/ssl/certs/java/cacerts is either create or does not exist. If it exists delete it and do the following: - purge the ca-certificates and ca-certificates-java packages:   sudo dpkg -P --force-depends ca-certificates ca-certificates-java - reinstall these packages:   sudo apt-get -f install After this was done my issue was solved I found the solution in: https://bugs.launchpad.net/ubuntu/+source/ca-certificates-java/+bug/289934

5.1 Surround on Ubuntu 14.04 with ALC888

First install a few programs and drivers sudo apt-get install pavucontrol libasound2-plugins-extra liba52-0.7.4 Add the file /usr/share/alsa/alsa.conf.d/a52.conf Add >> pcm.a52 { @args [CARD] @args.CARD { type string } type rate slave { pcm { type a52 bitrate 448 channels 6 card $CARD } rate 48000 #required somehow, otherwise nothing happens in PulseAudio } } << Testing: run in terminal speaker-test -c 6 I later added to /etc/modprobe.d/alsa-base.conf >> options snd-hda-intel model=6stack-dig << Notes: I tried changing /etc/pulse/daemon.conf and setting the following config without success >> default-sample-rate = 48000 default-sample-channels = 6 default-channel-map = front-left,front-right,front-center,rear-left,rear-right,lfe << Help found on: https://help.ubuntu.com/community/DigitalAC-3Pulseaudio http://ubuntuforums.org/showthread.php?t=2064526 http://ubuntuforums.org/...