Heh, this one is pretty awesome. Calculus and plotting in Microsoft Word :-). Best of all, it's a free add-on.
Sunday, October 10, 2010
Microsoft Mathematics Add-In for Word and OneNote
Posted by cmihai at 3:06 AM 2 comments
Labels: Microsoft
Saturday, October 02, 2010
Mount hfsplus and hfs read write on Linux
Mount HFS+ rw on Linux (at your own risk...)
# Install HFS+ support
aptitude install hfsplus hfsprogs hfsutils
# Keep an eye on your dmesg:
tail -f /var/log/messages
# Get an idea on what partition you'd want to mount
cat /proc/partitions
# See what filesystems are supported
cat /proc/filesystems
# Check for a hfsplus LKM
modprobe -l | grep hfsplus
# Load it
modprobe hfsplus
# Check to see if it's loaded
grep hfsplus /proc/partitions
# Mount the HFS+ partition. If it's journaled, we don't need -o force.
mount -t hfsplus -o force -o rw /dev/sda2 /mnt/test
# Verify it
/dev/sda2 on /mnt/test type hfsplus (rw,force) touch /mnt/test/selftest ls -la /mnt/test/selftest
# If we're not allowed to mount with the write option, check dmesg
# If required, fsck, then remount.
/sbin/fsck.hfsplus -f /dev/sda2
# As an alternative, you can disable the journal on a MacOS:
# GUI: hold option while clicking the menu in Disk Utility. CMD:
diskutil list
sudo diskutil disableJournal /Volumes/Yourdisk
Posted by cmihai at 2:11 PM 5 comments
Tuesday, August 24, 2010
ClusterSSH alternative, broadcasting to multiple terminals
Gnome "Terminator" is basically similar to ClusterSSH, dsh, kanif or such but runs all terminals in a single window you can split and such somewhat similar to screen.
It's also a bit more configurable (eg: gnome-terminal).
http://freshmeat.net/projects/gnometerminator/?branch_id=70626&release_id=268543
Posted by cmihai at 10:29 PM 0 comments
Labels: Clustering, Linux
Friday, August 13, 2010
ThinkPad fingerprint scanner - Linux PAM setup
Using fingerprint scanners for login is cool. Sure, it's insecure, but who cares about that :-). It's awesome!
Do enroll more than one finger, and have a fallback mechanism though...
# Install fingerprint software.
# You can play around with fprint_demo to try it out...
sudo aptitude install fprint-demo libpam-fprint libfprint
# Enroll the index finder. See pam_fprint_enroll --help for details
pam_fprint_enroll --enroll-finger 7
# Edit your PAM configuration to enable fingerprint login
# Fallback to password if it fails.
# emacs /etc/pam.d/commond-auth
# Add something like:
# Fingerprint
auth sufficient pam_fprint.so
You could also require both, but that's just awkward :-). And if finger print scanning breaks, it's a PITA.
Posted by cmihai at 1:50 PM 0 comments
Labels: Linux
Monday, July 26, 2010
Emacs: Different fonts in different modes
I love monospaced fonts (such as Terminus or Consolas / Inconsolata), but they can be harder to read when it comes to documentation or simple conversation.
Posted by cmihai at 1:44 AM 0 comments
Sunday, July 18, 2010
Converting Perforce depots to Mercurial repositories with hg convert
Posted by cmihai at 10:56 PM 0 comments
Labels: Revision Control, UNIX
Sunday, July 11, 2010
Memory Scanner and Editor for Linux
If you're familiar with ArtMoney, MemEdit or Cheat Engine on Windows, then you know what it's used for :-).
Posted by cmihai at 7:26 AM 1 comments
Monday, June 07, 2010
Nautilus Location Bar - Fix Text Mode
Gnome keeps getting dumber and dumber all the time. First the "Open in Terminal" right click option was gone, now the address bar.
Posted by cmihai at 8:46 PM 1 comments
Labels: Linux
Friday, May 21, 2010
VIM: The Matrix Has You
Posted by cmihai at 10:50 PM 1 comments
Labels: Vim
Tuesday, April 06, 2010
Share GNU screen sessions with a different user
Here's something cool you can do with screen. Share a screen session with multiple terminals. "screen -x". Of course, this only works if you're using the same user.
Posted by cmihai at 1:27 PM 3 comments
Labels: Open Source, UNIX
Sunday, January 03, 2010
Unpack functions and BSDProgress - progress bar for your archives.
A colored unpack script using bar:
A little KSH93 function for your .profile. Now you can augomatically unpack most archives while watching the pretty progress bar.
You need bsdprogress (Solaris and Linux port of NetBSD's progress). With a bit work it also works on AIX.
I just re-wrote this for progress, so I didn't check the cpio and such yet.
# Mihai Criveti - Unpack function:
# Progress Unpack - unpack using GNU tar and bsdprogress.
function up {
for archive in $*; do
print $archive;
case $archive in
(*.tar) progress -f $archive gtar xpif - ;;
(*.tar.gz) progress -f $archive gtar -zpixf - ;;
(*.tgz) progress -zf $archive gtar -ipxf - ;;
(*.tar.bz2) progress -f $archive gtar -jipxf - ;;
(*.tbz) progress -f $archive gtar -jipxf - ;;
(*.gz) progress -f $archive gunzip -;;
(*.bz2) progress -f $archive bunzip -;;
(*.tar.Z) uncompress -c $archive | tar gxvf - ;;
(*.cpio) cpio -icd < $archive ;;
(*.Z) uncompress $archive ;;
(*.rar) unrar x $archive ;;
(*.zip) unzip $archive ;;
esac
done
}
Let's say we want to unpack files that end in *bz2 (it will automagically detect .tar.bz2 or tbz2), *gz and a specific tar archive:
cmihai@phobos:/home/cmihai/build$ up g*bz2 c*gz Python\-3.0.1.tar
gnupg-1.4.10.tar.bz2
100% |**********************************************************************| 3330 KB 296.95 KB/s 00:00 ETA
gnupg-2.0.14.tar.bz2
100% |**********************************************************************| 3888 KB 340.20 KB/s 00:00 ETA
ccache-2.4.tar.gz
100% |**********************************************************************| 86363 201.51 KB/s 00:00 ETA
Python-3.0.1.tar
91% |******************************************************** | 43320 KB 787.63 KB/s 05:00 ETA
See:
http://netbsd.gw.com/cgi-bin/man-cgi?progress++NetBSD-current
http://mac.freshmeat.net/projects/bsdprogress/
It builds fine on AIX (Makefile tweaks), Solaris and Linux. Native on NetBSD.
Other versions:
http://clpbar.sourceforge.net/
http://freshmeat.net/projects/progress
Posted by cmihai at 4:09 AM 0 comments