Congratulations on the new linux.com! I know it was tons of hard work.
And that's why I'm blogging this thought. How many upgrades and migrations have you done in your career? Too many, if you're like me. Seldom is there any automatic migration script that can just handle everything, esp. when big monopoly-like companies are involved. (You know who.)
The only time I've seen a good migration is when the company that wrote the new program gets some money if you switch. Then, a good migration path is a selling point.
So, back to the site. It's written in Joomla, I understand. Cool. I don't honestly care, except that I'm learning django right now. And what happens if we need to move our projects from django to Joomla, or to any other framework? Lots of rewriting. Lots of reinventing the wheel.
I propose that we do one very simple thing:
If you're programming in a language, then please embed a comment to what language it is, the version, and--most importantly--where I can find the language specification and a reference implementation of the compiler/interpreter. Better yet, provide a BNF notation and an explanation of the Abstract Syntax Tree. (What? You're using a language that's not open, or isn't well-documented? Don't make me come over there!)
If you're encoding data in XML, PLEASE, PLEASE provide a reference to the DTD or Schema definition. IHMO, that silly URL in XML that tells what namespace it's in should actually reference a valid document. Most of the time, if you try to open that URL, you get nothing. (This was just bad design on the side of the XML designers.)
What I want is this: Perfect parsers. The only way that's going to happen is for the code and data to be explicitly defined. (And, yes, you can do this with dynamic languages.) But once you have perfect parsers, voila!--you have much easier time migrating data and code. In fact, maybe it wouldn't be that hard to write migration programs. But that's another blog entry...
Linux.com est le nouveau réseau social des geeks xD
cat /dev/sda | aplay -fdat
Robust, open standards for XML document markup and a rich set of freely available tools for XML document parsing and format conversion make it easy to install and configure a complete documentation development and formatting environment on any UNIX or Linux system. This article focuses on DocBook, which is the best-known and most widely used schema for documentation markup.
Ich nutze mittlerweile unter Windows nur noch Songbird. Auch unter Linux habe ich dieses Tool bereits oft genutzt, bin aber letztendlich doch bei Exaile gelandert, da sich dieser besser in die Oberfläche von Gnome integriert. Aber es ist schon erstaunlich, wie sich der Songbird entwickelt hat. Seit der 1.0er Version absolut empfehlenswert
Scenario. Have a system with a dying raid. 2 drives (R1), In raid1, one drive has a device error, the other is listed as degraded. Rebuild halted at some 80%, won't continue due to the device error on drive 1. Can't rebuild from drive 2 because it contains a degraded raid image, and 3ware is picky about stuff like that.
We can get the data off the raid, it's working for that for now.
Now, the raid device is used in an LVM volume group, (vg00) and there's another raid (R2) on the box, using 8 drives, that has about 1TB of info on. All slots are full. What to do?
Remove one of the second raid drives, (thus putting R2 into a degraded state) put spare drive for R1 in that slot. Remove the *degraded* drive from the first array, and create a new array with the new drive, and the degraded drive.
Now, add that new raid (R3) to vg00 by creating a physical volume on that raid, and adding it to vg00. Next is the cool bit, using pvmove, we push the data off of R1 onto R3, then we remove R1 from the volume group, and can delete that raid, and remove the drive, then replace the drive we pulled out from R2 above
All data migrated, no data loss, no service interruption. I love lvm
Couple of caveats, R3 has to be able to hold all the data that was on R1, if something happens to R1 during this time, you are in trouble (but you would be anyway, since the raid is degraded) and you have deliberately degraded R2, which could bite you in the nether regions if murphy hates you. You could do this with an external USB drive, or any other datastore, a SAN, etc, but we didn't have that option in this case.
Probably other ways we could have handled this, but this worked well.
Welcome to Singularity's Blog. Here we will talk about Linux and related matters. All in a new critical point of view. In this blog you will see more about ethics, philosophy, development, industry behavior, economics, political, coding, Linux and FOSS communities, taboos (and fake-taboos), and all know topics related.
We will also discuss more about applications and tendencies behaviors, and many problem-solution environments in the market, government and educational targets - in many countries.
who I am:
I am a Pre-Medicine student of the University of Kansas completely obsessed with Linux and Open Source movement in general. I am originally from Russian Federation where I grew up as a usual Windows user and, as everybody else, due to financial situation could hardly imagine a WinXP being sold for more than ~1$ and without activation key included. Cracks, CD-Keys, Serial numbers and the ways to work around different types of CD copy-protection is the kind of information our community of average teenage computer users was usually exchanging. I didnt know the alternative; I couldn't imagine any other way of life. It all changed a year ago when a friend of mine (whom I knew for long time as a person always way ahead of me in computer knowledge) in response to some whining about how slow XP works on my free Pentium III asked: "what? You still don't use linux??? O_o" That's where it all started for me...
The first distribution I tried was popular Ubuntu Hardy. I was freaking out about actual installation because I had no idea about how it is going to work on my old free computer, what programs I couldn't run on it, and, most importantly, the drivers, especially printer (because as a college student u have to print almost everyday and the installation of HP drivers even on Windows at that point seemed to me as a whole other impressive and glorious hour long process). I followed everybody's advice and loaded the OS from CD. Surprisingly, just from that freaken liveCD, without installation of any "drivers" (you know ... I was using windows for long time!!!) I was able to go on-line, download a pdf lecture for, as I remember right now, Ecology class (good to know :) and print it out on my HP printer! Next thing I remember I was erasing windows and installing Ubuntu on my HD.
Not long after that, in again one of the conversations with THE friend we started talking about the different distributions. I remember him saying: "ah... all of those gnomed guied to hell windows-like distros! Look man, if you wanna try a real Linux, get something serious...like Gentoo" At that point I had (as I mentioned earlier) a very old PENIII with 256mbRAM Dell computer and the only thing that really mattered for me was speed! Guided by my friend (see above) and seduced by the word "performance" in the description on the gentoo's website I decided to give it a try. Long after many different experiences with this OS (which I am going to tell later in the blog) I can finally say it works, works like I want, and does it really fast.
Blogging about experiences with gentoo is interesting because of two reasons. First, it is sometimes helpful to have a little personal reference of all the issues you have with it and what kinds of solutions you could find. Furthermore, people might read it ("surprise-surprise"), see how stupid you are and point to the source of the problems or even tell you their ways of solution (this is how in reality this all "sharing information inside of the community blablabla" is usually represented :) . Second, it was many times mentioned to me how hilarious it is sometimes for gurus to read about computer problems of noobs. Gentoo is I think the BEST example of an operating system which a person without much experience with at least Unix shouldn't touch. At the moment when I decided to start using gentoo I had NO knowledge of bash, unix, computer programming, Linux as an operating system; kernel for me was a very pretty word, and terminal was that thing that always somehow knew my name, had @, ~, and a $ for some reason and whatever I typed in there gave me "command not found". Nevertheless, I thought I was ready ... :-)
Next Entry: First Installation
Today I got back to work after a very busy morning and sitting there at my desk was a package. I picked it up to see what it might be and it was from Canonical. Ah ha! I remember about a month ago I signed up to have a free copy of Ubuntu 9.04 shipped to me after it was released. Didn't cost me a thing, just gave 'em my email address, address, and name and here it is.
How bout that for customer service? And not only that but this was a real silk-screened CD. Complete with a nice case and a few Ubuntu stickers. This would cost Hundreds of Dollars if it was a Microsoft product. I haven't been in much of an Ubuntu mood lately, what with the Mandriva release and all. But after this kinda treatment I think I'll give it a shot! Kudos to Ubuntu for going the extra mile.
As soon I saw that the Spring edition of Mandriva 2009 was finally out I downloaded the ONE edition ISO and burned it to a CD. I decided to use one of my spare hard drives to load it on because I have an openSUSE 11.1 install currently on my home machine and everything works beautifully on it and I didn't want to mess up a good thing. I booted up to the live CD and was greeted with that good old Mandriva intro sound effect meaning that it had correctly configured my sound device. I didn't waist any time with the live CD I immediately launched the live installer and preceded to install to the internal HD.
The installation went off without a hitch, but this was to be expected from Mandriva. They have always been one of my favorite distros. Mandriva was one of the original distros I tried when I first got into Linux. I have always found their products to be very refined and extremely professional. This release is no different and the only reason I switched to openSUSE since the last Mandriva release was because I was having weird problems with VMWARE server and it seemed to work flawlessly on openSUSE. I have to have a way to run virtual machines because I am constantly testing different setups and trying new things out and I seldom want to use an entire hard drive just for testing. We will get to that later.
First let me say that the first release of Mandriva 2009 was one of the first major distros to adopt KDE 4 and for all I know that could have been the reason for some of the weird problems I had. This time around the version of KDE is up to 4.2.2 and they have definitely ironed out some of the wrinkles and done a lot of refining because everything runs better and is much more fluent. This is the exact same hardware I had before too so it has to be an improvement in either the desktop environment or the kernel. After changing some of the packages that come by default and adding some of my own favorites I had everything operational within an hour.
The version I installed called "One" comes with Flash and Java and a lot of other things that you have to add yourself on other distros. I added DVD playback, Compiz Fusion, and for some reason there was no BitTorrent client so I added Ktorrent. From my experience its the best. I usually even add it when I do a Gnome install. I like it better than any of the Gnome clients. I then installed the free version of VMWARE server and it installed fine and so far has run great. If you have any trouble getting things to work I would suggest checking out THIS site. Lots of great help over there just click on your distro. Overall I am very impressed with this release if you would like to grab a copy for yourself just head over to MANDRIVA's website and download it for yourself.
Over the years, ok not so many I have only been using Linux for about nine years now, I have managed to try the big hitters in the Linux world, the Slackwares, Red Hats, and Debians, and many variations and this is what I have found to be true. Red Hat and Novell Distributions seem to be geared towards Enterprise systems with a lot of offerings for businesses, Debian distros are more geared for end-users, and Slackware seems to be for the tweakers.
Ok so what do I like and why. Source-based distributions (have to mention OpenSDE here) are fun to play with but hard for someone like who is based almost entirely in a GUI environment thanks to my Windows training. Debian I love as a server distro and haven't found a need to use anything else. Opensuse I love on my desktop. If you run Gnome I find you hard to use, sorry remember Windows Guy, and I tend to swing towards distros that use KDE because of this.
What I look for in a distro is simple. KDE is a must and now that 4 is stable I like it over 3. Wireless support because I use it on my laptop. A strong repository, I don't know about you but with me I have tried some of these obscure distros with weird package management, that they hope will be the next RPM, DEB, or TGZ (not sure if this is what Slackware is still using, could Google it I guess) but doesn't have support for your favorite tools, or applications, and you can't find the app that you need at that moment. Standards, ok this goes to the repository bit too, how many differant versions of anything do we need. Granted most of the distros nowadays are based in Debian or RPM (note: I didnt say Red Hat because Novell fits this category too) and so the standard for me tends to be one of these two package management system and Common Toolset.
If I were to build my own distro. So this is the part where I get creative and you can all yell at me later because I am being unrealistic. <edited due to unreasonable thinking> This section will be filled later.
In conclusion, still much to learn. However, my favourites are Opensuse and Debian, and if someone wants to chime in and give me a few suggestions I don't mind, especially source based I wouldn't mind trying that again.