I like to explore softwares. I usually install a lot of softwares on my system. I thought that I should make a list of my favorite softwares and share it with everybody. All of there softwares are either open-source or free.
1. Autohotkey(FOSS): It manages your hotkeys globally and allows you to create complex actions based on the keys pressed. Its actually got its own scripting language which is rather easy to learn. Just write a script in a file with extension .ahk and double click the file to execute it.
With AutoHotKey you can:
- manage processes, windows and control both keyboard and mouse.
- create macros saving you precious keystrokes.
- re-map keys and buttons on your keyboard and mouse.
I have been using AutoHotKey for quite a while now and I use it to manage my code snippets, have consistent hotkeys across applications and creating macros like googling the selected text in any application. The following is the AutoHotKey script for it:
So by using this script whenever I press Ctrl+G the script will open a browser and search the selected text in google. Nice isn’t it?
Let me first explain what is WPF?
WPF is the graphical subsystem if the .NET 3.0 framework and it is there to take the place of window forms which we used with earlier versions of .NET
So what’s so great about WPF?
Actually WPF is has its roots in DirectX API so you can easily create 2D and 3D interfaces in it without putting ant load on the processor. Also it is vector based and stores the information for the generating the UI in separate XAML files. So we have logical separation of a control from its appearance.
Further details: http://en.wikipedia.org/wiki/Windows_Presentation_Foundation
The following are the requirements for running this example:
- rubyclr gem. Use gem install rubyclr -y
- .NET framework 3.0
In this example I will creating a creating a textarea along with a button, trapping the events on the button and logging it inside the textarea .
Here is the code for the xaml file. Store this file with filename ui.xaml. This file contains the UI for the application.
Next I will be creating the codebehind file in ruby. Here in this file we have all the application logic. Save this file as logic.rb.
The code given above explains itself.
We are first loading the ui.xaml file and then finding the two controls in the lines 8, 9.
Then the three event handlers are declared in lines 11, 14, 19. So whenever the mouse events are fired the corresponding event if traced into the textbox.
And here is the output.
We know that ruby is a language of few words. We can express a lot of things in a relatively easy manner.
I was trying to export few slides in my powerpoint presentation to an image format using ruby.I could not find any documentation for it anywhere except for a few basic things. But when I tried it by hit and trial I found out it to be surprisingly easy. It required just a few lines.
Here is what you have to do:
You can always use RMagick to further process this image.
The Win32OLE extension library (actually spelled in lowercase, win32ole) provides an interface to Windows OLE automation. Your Ruby code can act as a client for any OLE automation server such as Microsoft Word, Outlook, and Internet Explorer and many other softwares.
So in the above code we are making a object is Powerpoint application, then opening a file and saving the first slide in the “png” format.
- Autocompleting ssh, rake, cap command parameters using PowerShell
- Using RubyAmf for creating a CRUD application in Rails
- Multiple ways to open PowerShell in the current Explorer window
- Context sensitive auto-completion using PowerShell, PowerTab and GIT
- Displaying GIT Branch on your PowerShell prompt
Songs I like
- adobe (4)
- amarok (1)
- C# (2)
- chat application (1)
- crud (2)
- cygwin (1)
- explorer (1)
- expression blend (1)
- flex (4)
- FOSS (2)
- free (1)
- GIT (3)
- ID3 (1)
- java (1)
- microsoft (3)
- mxml (2)
- nokia (1)
- open source (5)
- perl (1)
- powerpoint (2)
- powershell (3)
- rails (3)
- right click (1)
- ruby (9)
- ruby on rails (3)
- security (3)
- silverlight (4)
- smart playlist (1)
- socket (1)
- software (7)
- ssh (1)
- sudo (1)
- tabs (1)
- tomcat (1)
- user interface (6)
- vista (9)
- vista, security (2)
- visual studio 2008 (1)
- win32ole (1)
- windows (13)
- windows media player (1)
- wpf (1)
- xaml (4)
- XP (3)