Skip to main content

Posts

C#: How to add the C# compiler command utility (csc.exe) to the system Path?

Doing .NET development does not necessarily assume using the holy Visual Studio IDE. Every now and then, you need to code some simple piece of software that does not require a factory (read: Visual Studio). Personally, I like to use Vim within Windows PowerShell to create/edit C# files rapidly, that also means that I need to compile and build my C# files within the command line. Having Visual C# installed on your PC, does not mean that the C# compiler is ready to be used outside of Visual Studio (within the command line for example). You have to manually add the path to the C# compiler (csc.exe) to your system or user environmental variables. Just follow along: 1- On Windows 7, click on the Start menu launcher, right-click on Computer , click on Properties . At the left of the window that appears, click on Advanced system settings . 2- At the bottom of the System Properties dialog, click on Environment Variables . 3- In the Environment Variables dialog box, click on the New
Recent posts

Quick Tip: Running Python scripts from Gedit

I like to code my Python scripts with Gedit . I have my "uber geek" alter ego who likes to code in  Vim , but I must say that I keep coming back to Gedit every time; I  just like it. Today's quick tip is about running python scripts from Gedit. It's a feature that comes in every Python IDE (or any other IDE); you just hit the corresponding key stroke and your script is running (of course with eventual debugging flags). To enable this feature in Gedit, we're going to use its fantastic "External Tools" which is the feature that makes the power of Gedit. Basically, the External Tools feature allows the user to extend Gedit functionality by executing custom shell commands/scripts inside Gedit. So, to make Gedit run Python scripts directly using a simple key stroke we'll need to provide Gedit with a shell command that does the work and map its functionality to a specific key stroke. We can access the External Tools Manager window by browsing to it thr

Quick How To: Improving NetBeans GUI rendering on Linux

A lot of developers that like to use the NetBeans IDE on top of Linux complain about its ugly GUI rendering, especially fonts rendering. NetBeans requires the Java Development Kit (JDK for short) to run, and bad rendering for Swing based GUIs is due to the fact that Linux distros chip with OpenJDK as the default JDK (almost all of them), which means no anti-aliasing for GUI and fonts rendering is enabled by default. The solution is very simple, though. We can make OpenJDK render Swing based GUIs with anti-aliasing enabled by setting the right option in the  _JAVA_OPTIONS   environment variable.  In a Terminal session, type the following command:  export _JAVA_OPTIONS="-Dawt.useSystemAAFontSettings=on" Almost done. To make the command global (that is, we don't have to issue the same command on every system session) we can add it to our   ~/.bash_profile . That's it. If you can make this tip better, feel free to add a comment below.