Category: Mac

Matlab R2014b: X11 forwarding and OpenGL

The new plotting engine in Matlab R2014b has caused some hangups and reduced quality plots for people using Matlab over X11 forwarding. Consider starting Matlab this way: matlab -nosoftwareopengl figure set(gcf,’renderermode’,'manual’,'renderer’,'painters’) plot(randn(100,1)) If you can’t start Matlab with the -nosoftwareopengl open, omit that open and try plotting with the set(gcf….’painters’) line as shown above for […]

Which format to use for sharing USB flash thumb drives and USB HDD

I have found that EXFAT is the most convenient format for sharing files between Mac/Linux/Windows/Android. EXFAT is supported from Windows XP through Windows 8.1 and beyond. EXFAT is supported on Mac OS X from 10.6.3 and newer [1]. EXFAT is supported on Linux from CentOS 5 and Ubuntu 10.04 and newer. EXFAT is supported from […]

Stop MATLAB high CPU usage on Idle (Windows/Mac/Linux)

For at least Matlab R2013a and R2013b, you may find that after opening the Matlab Help Browser (and even after closing just the Help Browser while keeping Matlab itself open), that Matlab uses 100% of one CPU core at about 25% duty cycle. You can try pasting this command into Matlab (it will persist, you […]

Xrdp on Ubuntu 12.04 through 14.04

Note: ubuntu-2d was REMOVED from Ubuntu 12.10 onward. So for Xrdp on Ubuntu 12.10 and newer, observe the specific steps below. For cases where you have to allow RDP users from Mac/Windows to connect to a linux machine, and for whatever reason you can’t install TightVNC on the Mac/Windows user PCs, you can try Xrdp, […]

Checking your Public IP address (Linux/Mac)

The script below allows you to check your public IP. This is handy when say you work on a VPN and want to quickly check that you’re still connected (by seeing that your IP is in your organizations VPN IP address range), or like many folks behind a NAT router. Note, use this script responsibly, […]

Matlab: Free memory on Linux/mac

Matlab’s built-in “memory” command does not work on Linux or Mac. Here is a simple function to check memory status on Linux or Mac: %Copyright (c) 2012, Michael Hirsch %All rights reserved. % %Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: % […]