Posts Tagged ‘Linux/Unix Software’

Figuring out LISP programming…

Sunday, November 1st, 2009

I have always (that is since I wrote my first lines of QBASIC code under MS-DOS 5.0) had interest to learn new programming languages, just out of interest towards programming as a hobby. Lately I have grown more and more interested on learning to program Common Lisp, a language highly praised by those using it but also one of those that has always looked way too cryptic for me (considering that I do know various different languages and rarely bump into one that I’m totally baffled about when looking at it :) ).

Now I have decided to find out what all the fuss is about and learn at least the basics of Common Lisp - however I’m having hard time finding a tutorial that is both good for someone who knows nothing about Lisp and does not stop after “Hello World” and couple simple examples of mathematical functions :)

So far I have found that GNU programs include a Lisp compiler and interpreter called ‘gcl‘ (GNU Common Lisp) and one simple tutorial on very basics of Common Lisp.

What I’m hoping as I’m writing about this is that maybe someone with knowledge is reading this and could post a comment with link(s) to a good tutorial for me to start working with :) Whether it will happen or not I will certainly be posting about my future experiments with Lisp here - I would like to gain at least enough knowledge to produce a Lisp version of my ‘tree.sh‘ (shell script to output directory tree structure nicely) as it is a good short program to write for getting overall picture of how a language feels write with compared to others - in fact I might write it with multiple languages for comparison of them (just for the fun of it).

“htop”: Ultimate Linux process viewer

Tuesday, September 29th, 2009

Advanced users (and some regular desktop users too) have a need for process viewer (for those who don’t know what I mean, it’s equivalent of process lister that you get with ctrl-alt-del in windows) - and while some are happy or even insist on using nothing but graphical application for this (’gnome-system-monitor‘ in Gnome), some of us prefer to use one that is console based or prefer having both depending on situation so there is a big demand for a good console based process viewer for *nix systems.

The old ‘top’ and way more advanced alternative

htop, interactive Linux process monitor

htop, interactive Linux process monitor

Many people know ‘top‘ to be such tool - unfortunately many don’t know other interactive ones - there is non-interactive ‘ps‘ for getting process list, but it just prints process list (with information and formatting according to parameters) while interactive process lister lets you view the list, send signals to processes (ie. to kill a process) or to change their priority (’nice’ value). There however is much more advanced application than ‘top‘, yet very much like ‘top‘ in having all that is good in ‘top‘, but replacing many UI parts with better functionality. The app is called ‘htop‘.

(more…)

Google Chrome OS - reinventing the wheel?

Monday, August 17th, 2009

I believe most here have already read about Google starting up an operating system of their own, Chrome OS to compete with Windows as their next project. I’ll share some of my feelings about good, bad and the futile related to this hopefully neat project.

Google Chrome OS is an open source, lightweight operating system that will initially be targeted at netbooks. Google want’s to provide users with an OS that boots up lightning fast and ready for web in seconds from switching power on. They want the system not to clutter up but always run as fast as anew. They want to provide an OS where there is no fuss and fighting with new hardware, configuring the system (that usually needs knowledge below the average) and no updates that break things or change&confuse the user interface. This all sounds good - and it also already sound familiar.

Gathered not from Chrome OS official blog but from a zdnet blog entry, let’s check some known facts:

  • It runs on top of Linux kernel.
  • It will boot directly into the Chrome Web browser
  • It will be aimed primarily at netbooks
  • It will run on both x86 and ARM processors
  • It will not be designed to have local storage; all data will be stored in the cloud
  • Google will not entice developers to build software to run on the Chrome OS; instead, they want them to build Web apps that will run on any standards-based browser
  • The three most important features will be “speed, simplicity and security”, according to Google
  • Google will release the software to the open source community before the end of 2009
  • Announced Chrome OS hardware partners: Acer, Adobe, ASUS, Freescale, Hewlett-Packard, Lenovo, Qualcomm, Texas Instruments, and Toshiba.
  • Netbooks running Chrome OS will be available in the second half of 2010
(more…)

Watching TV on Linux - the easy road

Monday, July 13th, 2009

You have a DVB card (Digital Video Broadcasting, for digital TV that is)? You want to use your computer as a telly for watching and recording? Yet MythTV is a bit of a too much bloat, too hard to set up, sumtin like that?

Me-TV screenshot

Me-TV screenshot

Me-TV offers a light and easy solution providing automatical scanning of the available channels, watching telly, EPG (Electronic Program Guide) and on top of everything, allows you to scedule programs to record on hard disk.

I used to watch TV via xine. I had to manually scan channels from the command line before that worked, xine supports DVB but no electronic program guide and other nice features. One of the main reasons to get jiggy with Me-TV was of course the possibility to schedule programs to record (which I have already used couple times and I only installed it like three days ago).

(more…)

Windows 7 beta expires, how to fix?

Wednesday, July 1st, 2009
Windows 7 screenshot

Windows 7 screenshot

Ok, first off I don’t usually write about Windows OS specifically and do not use it, nor have I even tested Windows 7 myself. That being said I decided that since this is a big issue for some I should make one of my exceptions.

If you are using Windows 7 beta then you know (at least you should) that it expires tomorrow (July 1, 2009) and after that it will annoyingly shut down your computer every two hours. Other than that it will function untill August 1, 2009 when the beta will expire completely.

Next step is to either return to your old Windows version or install upgrade to RC. Unfortunately Microsoft does not officially support upgrading from beta to RC (they recommend clean install) - however browsing the web I bumped into this guide at tomshardware.com that tells you how to do the upgrade (and if nothing goes wrong save you from the trouble of re-installing everything): Windows 7 Beta Begins to Expire July 1, 2009.
If you don’t want to read what tomshardware has to say about this, to just skip right into upgrade procedure guide go straight to Microsofts own document, “Delivering a quality upgrade experience” on their Engineering Windows 7 blog.

I just thought that it might be polite to post this here, just in case that some reader is in this particular situation, pondering how to upgrade his expiring Windows 7 beta (even if it’s just running on top of Linux+VirtualBox ;) ), so there.

P.S. Don’t expect that I will take a habit of writing about Windows, because I rarely will. Sometimes but rarely, as I see it this is mostly *nix (and specifically Linux) use and programming related blog :)

Getting XMMS back to Debian/Ubuntu

Sunday, March 15th, 2009

X MultiMedia System, old, simple & light player

X MultiMedia System, old, simple & light player

I found out just now that Debian, along with couple other major distributions, have decided to drop support for XMMS audio player (See: Considerations for ‘xmms’ removal from Debian). I was really badly surprised when I noticed that apparently dist-upgrading my Debian from Etch to Lenny, the new stable, the old XMMS package had disapeared! I can live with Debian dropping XMMS but I think that it’s a bit shameless to put an upgrade out that drops the already installed package from my system too! So I had to get it back…

(more…)

Running Safari on Linux?

Tuesday, February 17th, 2009
I must say before anything else that this is not guide to installing Safari on Linux. You can find one for installing Safari under wine here.

I want to ask if anyone has had success with this guide? I tried it and apart from succesfully loading the default home page I havent managed to load any other webpage - not even google - with it and the window has really bad graphical glitches all the time…

I would personally like to get this browser to run under Linux just to test my site with it - specially since one commenter here posted a claim that this site does not show correctly on Safari. So if anybody has had success just let me know what version of wine and safari you have and what extra measures you had to take, if any, to get it work correctly.

Software patent laws should be ditched

Saturday, January 31st, 2009
I recently bumped into an article about conference where the issue of software patent laws needing a reform was discussed. I will list Couple things to highlight I picke out of the text here. First:
A couple of scholars noted that large software firms, among others, publicly opposed software patents in the 1980s.
The most important and interesting part is about innovation. As you all know, or should know, the patent laws were designed to promote innovation, especially so that small people could publish their inventions without the fear of big ones coming to steal their idea and get all the money. Heres the piece I find “The Important” one when it comes to software patents:
Some of the harm from software patents is obvious. Do they provide any compensating benefit? There was little, if any, evidence that they encourage innovation. Although the number of software patents has exploded in recent years, one panelist expressed doubt that success in the technology area was associated with patent ownership. He observed that had the young Bill Gates been confronted at the outset with the litigation risks of tens of thousands of software patents, he might have chosen to exercise his entrepreneurial skills in a field other than software. The point, of course, is that the current system to some extent discourages innovation and entrepreneurship – a travesty of its intended purpose.

At a minimum, history suggests that patents are not a significant incentive to innovation in the software field. As I pointed out in my remarks at the conference, the Federal Circuit case law finding software to be patentable mostly dates from the mid-1990s, and the software patent explosion has occurred in the last ten years or so. However, a great deal of software now in everyday use was created earlier. Free and open source software programs such as GNU Emacs, GCC, and Linux date from the 1980s and early 1990s. Some of the most widely used proprietary software programs, like Lotus 1-2-3, Microsoft Word, and Oracle were released in the early 1980s. There’s no reason to think that the developers of those and other successful software programs would have been more innovative if they could have obtained patents.

So he patent system does not work when it comes to software patents. In fact it is, at worst, a huge danger to future innovations in software. Software patent system is wrong and again the FOSS ideology comes from quite the opposite camp than big companies which now support software patent system:
It is theoretically possible that some software developers today are motivated by the hope of a new patent, but the likelier impact of our current patent system is to distract developers with anxieties about being sued over preexisting patents. We know beyond question that the the incentives of the patent system are not encouraging free and open source software developers. A patent entitles the holder to exclude others from making, using, and selling an invention. FOSS developers don’t want to exclude others this way – they want to share their code – and so FOSS developers in principle have no interest in obtaining patents.
My suggestion: The patent system should be completely ditched when it comes to abstract software.

To read the original article, browse at article Brookings Conference on Software and Business Method Patents Highlights Need for Reform on red hat press site.

Nokia changes Qt license to LGPL

Thursday, January 15th, 2009

To quote osnews.com article Nokia To Add LGPL to Qt Licensing Model

After Nokia purchsed Trolltech last year, doubts arose about how Nokia would handle the dual licensing model of Qt, the advanced cross-platform toolkit which lies at the base of the KDE Free software desktop. As it turns out, these doubts were unfounded, as Nokia today announced it’s going to add the LGPL to Qt’s licensing model, starting with Qt 4.5.

…and the press release…

The move to LGPL licensing will provide open source and commercial developers with more permissive licensing than GPL and so increase flexibility for developers. In addition, Qt source code repositories will be made publicly available and will encourage contributions from desktop and embedded developer communities. With these changes, developers will be able to actively drive the evolution of the Qt framework.

Personally I’m eager to see if this will result in code exchanging between the GTK and Qt projects - something that the licensing has prevented before. It would seem logical and beneficial to both sides to take on that path but only the future will tell…

Protect your ssh-servers, ban offending hosts

Saturday, January 10th, 2009

Perhaps you, like many *nix users, like to remotely connect to your desktop and/or servers and thus are propably running an ssh-server. If so and you have ever checked logs for failed attempts to log in then you know that attempts to login with random usernames and passwords are made constantly. And finally, if you are like me, you are constantly worried that your username and the password, even though naturally a hard one to come up with, might one day be entered by person - or rather a brute force password cracking script - and thus your system getting compromized. There is a simple tool to deny hosts from connecting the ssh-server (couple tools even, but here is one) after failing defined number of times - and if configured to, the program will send email report of new denied hosts and suspicious connection attempts. denyhosts is the program I use for this, and here is how to set up it:

(more…)