Compdigitec Labs

Linux

Generating slope fields / direction fields with python and gnuplot

Sunday, April 21st, 2013

slopefields.py (1.9 KB) Now you can generate your own slope field / vector field / direction field of a differential equation using open source python and gnuplot! Set function to draw field of under dy_dx(). Set window parameters (x/y minimums and maximums, intervals, and length of field arrows). Run with to generate the slope field.

Compiling mingw-w64 with GCC 4.8

Thursday, February 7th, 2013

You need at least mingw-w64 rev 5579, build-essential, and a working compiler. Replace the demo prefix /usr/i686-w64-mingw32 with whatever you feel like, if you want to. Extract the gcc tarball, and pull in mpfr, mpc, and and gmp tarballs under the extracted gcc root. And just for fun, let’s test it: Bibliography: http://pete.akeo.ie/2010/07/compiling-mingw-w64-with-multilib-on.html http://mingw.5.n7.nabble.com/Rantings-of-a-crazy-dude-on-GCC-NO-EXECUTABLES-td20091.html http://www.mail-archive.com/mingw-w64-public@lists.sourceforge.net/msg02903.html

Compose key not working with iBus

Saturday, December 8th, 2012

The iBus input method does not work with the compose key - see Debian bug #591459 and Ubuntu bug #493766. It seems that iBus is intercepting all keystrokes and substituting its own instead, even though xev shows the Multi_key and accent being produced. For example, Multi_Key + ‘ + e leads to ‘e instead of [...]

Exploring and rooting the iPPea TV

Saturday, November 24th, 2012

Skip to the rooting process, if you wish. The iPPea TV is a pretty neat gadget, to say the least. The USB-stick sized device features a full Android 4.0.3 OS, a 1Ghz Ingenic JZ4770 MIPS processor (complete with FPU!), 512 MB of RAM, 2 GB flash storage, and about 800 MB of internal memory. Overall, [...]

A simple su implementation in C

Friday, November 23rd, 2012

Sometimes, you might need to keep things simple. Here is a very simple su implementation written in portable C that can be used on almost any architecture - e.g. Embedded Linux, Android, Windows, etc as long as it supports C. It is licensed under the 3-clause BSD licence so any use is OK as long [...]

Solving “libtool: Version mismatch error”

Thursday, October 18th, 2012

After ./configure and make, you get this interesting scenario: The solution?

Quilt responding with “File series fully applied” and not working

Monday, October 15th, 2012

The story so far… File series fully applied (no output) # On branch master nothing to commit (working directory clean) What’s happening here? Well, it turns out that we need to reset and clean the .pc directory of quilt: Now, let’s try applying the patches: Applying patch patch-number-one.patch patching file configure.ac Applying patch fix-build.patch patching [...]

When git am fails, use 3way

Tuesday, July 3rd, 2012

Applying: Very valuable piece of art error: patch failed: Apple.java:212 error: Apple.java: patch does not apply error: patch failed: Window.java:840 error: Window.java: patch does not apply Patch failed at 0001 Very valuable piece of art When you have resolved this problem run “git am --resolved”. If you would prefer to skip this patch, instead run [...]

fclose() freezes/hangs when run inside pthread on Android 2.1

Monday, June 25th, 2012

There appears to be an obscure bug that has somehow recently activated on ARMv6, non-FPU builds of VLC for Android. This has been only observed on Android 2.1 and possibly on other Android 2.x platforms with ARMv6, non-FPU builds Android 2.2. On the other hand, it works perfectly on an Android 4.0 on a NEON [...]

Enabling icons in Qt4 apps on GNOME / GTK

Sunday, June 3rd, 2012

By default on the latest versions of Debian and Ubuntu, the gconf preferences “/desktop/gnome/interface/menus_have_icons” and “/desktop/gnome/interface/buttons_have_icons” are set to false by default. Despite this, GTK2 and GTK3 applications both display icons next to their menus by default. However, Qt4-based applications such as VLC media player don’t display icons. To fix this: Or, open gconf-editor and [...]

« Previous Entries