General Projects

Remove files from your entire Git history.

In case you forgot to remove sensitive or binary files from your Git repository, here is a quick script which aims to remove all said files from all you previous commits. You can run it like this:
sh script.sh file1 dir1

 

#!/bin/bash
# Script to permanently remove files/folders from your git history.  To use 
# it, cd to your repository's root and then run the script with a list of paths
# you want to delete, e.g., git-delete-history path1 path2

set -o errexit

if [ $# -eq 0 ]; then
    echo "Usage: $0 file1 file2"
    echo "   or: $0 path1 path2"
    exit 0
fi

# make sure we're at the root of git repo by checking for a .git dir
if [ ! -d .git ]; then
    echo "Error: must run this script from the root of a git repository"
    exit 1
fi

# remove all paths passed as arguments from the history of the repo
files=$@
git filter-branch --index-filter "git rm -rf --cached --ignore-unmatch $files" HEAD

# remove the temporary history git-filter-branch otherwise leaves behind for a long time
rm -rf .git/refs/original/ && git reflog expire --all &&  git gc --aggressive --prune

Andrei

General

Fixing Disk I/O error when logging into Skype 4.0

If you’ve just upgraded from the old Skype version (Ubuntu repository) to version 4.0, you may get a “Disk I/O error” when you try to login. To fix it, you just have to type the following command into a terminal (do not use sudo!).

~$ rm .Skype/shared.xml

That’s it!

Andrei~

General

Disabling F10 key functionality for MC in Ubuntu.

If you use MC a lot, you probably know how annoying it is when you press F10 to quit and a menu pops up. To disable the F10 key functionality (right-click emulation) in Ubuntu 12.04, type the following commands in a terminal:
 

mkdir -p ~/.config/gtk-3.0
cat <<EOF > ~/.config/gtk-3.0/gtk.css

@binding-set NoKeyboardNavigation {
     unbind "<shift>F10"
}

* {
     gtk-key-bindings: NoKeyboardNavigation
}

EOF

To make sure it works, you have to exit (restart) all terminal sessions you have. I’m not sure if this fix applies to all versions of Ubuntu, but it definitely works for Ubuntu 12.04.

Andrei~

General Projects

Working with Git submodules

As the title says, this post is about working with Git submodules. In case you don’t know what this is, here’s a quick example.

Say your application depends on an external library called ‘ext_lib’. Some people may want to package their application with a modified version of ‘ext-lib’, though others would rather just link to the latest version. When creating a submodule, what actually happens is that a link is added, pointing to a specific version (latest commit) of that external repository.

read more »

General

CUDA gpucomputingsdk-4.2.9.linux compile on Ubuntu 12.04 LTS fails with undefined reference to ‘gluErrorString’

HAY GUISE.

Once again, the common.mk files in CUDA SDK are not completely usable and minor adjustments are required.

Out of the box compile gives you errors like:

../../lib/librendercheckgl_x86_64.a(rendercheck_gl.cpp.o): In function `CheckBackBuffer::checkStatus(char const*, int, bool)':
rendercheck_gl.cpp:(.text+0xfbb): undefined reference to `gluErrorString'

Quick fix is the following as I have found out from these sources.

read more »

General

Happy Hacking Keyboard Professional2: How to use meta-key (◇) for keyboard shortcuts in gnome2 (change from Muhenkan)

If you have a brand new Happy Hacking Keyboard Professional 2 (jp_src) and you don’t know how to use your Meta (◇) key for gnome keyboard shortcuts because it detects Muhenkan instead, simply switch on Dip switch SW1 on the back of your keyboard. This will map Super_L (Left_Win) to the ◇-key, which is recognized by gnome as Mod4. Now you can compose whatever key-combo you wish using the ◇-key.

EDA Xilinx

Module windrvr6 is not loaded. Please reinstall the cable drivers. See Answer Record 22648. Digilent Atlys on CentOS 64-bit. Xilinx ISE 13.2

Greetings,

If the title is familiar, you probably are going through the same hell that took away 2 days of my life.
I got some new cool prototyping FPGA boards from Digilent: Atlys with a Spartan-6 XC6SLX45 FPGA on it.
Trying to program the board in ISE iMPACT you get the following error:

WARNING:iMPACT - Module windrv6 is not loaded. Please reinstall the cable drivers. See Answer Record 22648.

read more »

General

Fixing “vesamenu.c32: not a COM32R image”

vesamenu.c32: not a COM32R image
boot:

If you’ve ever encountered the above error while trying to boot Linux Mint off an USB stick, here’s the solution!

  1. Browse the USB device to the syslinux folder
  2. Open and edit the syslinux.cfg file
  3. The first line should read: default vesamenu.c32
  4. Change it to: default live
  5. Save and close the file.

That’s it.

Andrei

General

Enabling ThinkPad fingerprint reader in Ubuntu 12.04.

This guide is intended for ThinkPad laptops using the Upek Biometric Touchchip/Touchstrip Fingerprint Sensor.

As it seems, there is a fingerprint reader application available for Debian-based distributions, which is called Fingerprint GUI. The problem is that in my case it works only if I run the application as root. I’m not sure if it’s a general issue or just something related to my ThinkPad T420 model. Anyway, here is what I did…

read more »

Linked Data Projects

MyProfile is now available for download!

MyProfile public service.Great news everyone! Today marks the first release of MyProfile, even though it’s in a very early alpha stage.

You can fork a copy on GitHub right away and start hacking. If you find any bugs or if you have any suggestions, please open an issue ticket on GitHub. Of course, feel free to contribute with code if you want (or have time).

The is also a Wiki page which describes how to install your own CA (Certificate Authority), or to set up an SSL-enabled Apache server.

 

To install MyProfile, either clone the repository (not recommended) to your public www dir, or download the zip generated by GitHub. Next, simply point your browser to the install file: http://example.com/install.php and provide the required information.

 

Happy hacking! :)

Andrei