Tag Archives: Technology

Classic Shell Scripting

A repost, continuing along the lines of bashing the shell.

Having examined Learning the bash Shell (In a Nutshell (O’Reilly)) (see here, here, and here), it is now time to turn to a more advanced reference to help you geek out on your Linux computer. If you want to have only one book on bash, get Classic Shell Scripting by Robbins and Beebe. This book has an excellent mixture of history, philosophy, rigorously described details and creative solutions.

For instance, after giving a brief history of Unix (required in all such books) the authors layout the basic principles of what is considered good Unix programming. It is so good I’d like to summarize parts of it for you.

Continue reading Classic Shell Scripting →

Google Chromium browser for Linux is now Alpha

… and Ars has a look at it.

The latest alpha build of Chromium provides basic browsing functionality and a few of Chrome’s other features. I was able to load pages, open new tabs and windows, use the browser’s full-page zoom, download files, view and manage history, and run the Incognito privacy mode.

The rest of the features were only partially implemented. It is possible to reorder tabs in each window, but you can’t snap out a tab yet or move tabs between windows. Bookmarking basically works, but with several limitations. Clicking on the bookmark star icon doesn’t pop out the bookmark editing bubble. The bookmark manager is also not implemented yet. Users can, however, toggle the visibility of the bookmark bar and edit its contents.

Remember: With baboons, Alpha is good. With software, Alpha is not. This sounds better than the hacked up version I last tried, but it is not there yet. But perhaps it is just arond the corner.

ars technica review is here

DVDs suck. All the time. In all ways.

I swear, you are all a bunch of pod people, you consumers. You take whatever crap is dished out, and pay extra for it. When the DVD was produced to replace the tape (VHS) there was a significant down grade in performance in every single way but one. These downgrades were entirely unnecessary. The downgrades were implemented for two closely related purposes: Marketing and marketing.

You know what I’m talking about. You can’t pop a DVD into a player and fast forward to a spot and watch the movie. You can’t even watch the movie, in many cases, until you’ve watched ads. You can’t que a DVD for later watching so that you can avoid the ads.

As an educator, this has meant that I’ve been unable to use DVDs in the classroom AT ALL!!! Well, if I were to pirate sections of a DVD and put them on my own DVD without ads and complex titles and menus, then maybe but of course, that would be illegal!!!

What brings up this rant? Well, I just bumped into a story about how the Astronauts on Atlantis were unable to watch some movies they had brought with them because they couldn’t get the DVD’s to work. They did not have the right codex or something. What is a codes you ask? A piece of software that someone is paying for that is designed to disable DVD functionality and make it hard to use the technology.

The Asus/Windows Maneno: Was it a hoax?

The dust-up regarding Asus corp and Windows, recently discussed here, is definitely a (well-enough executed) hoax, acording to JH at Linux in Exile:

I got burned this week; I actually believed the hoax that ASUS and Microsoft teamed up, and that an Asus.co.uk page was linking to a It’s Better With Windows site.

But looking at it again, I’m convinced it’s a hoax. And you should be, too. Here are a few obvious telltales:

See JH’s full explanation here.

Are Japanese Scientists Making Frankenmonkeys?

From the BBC:

Genetically modified primates that glow green and pass the trait on to their offspring could aid the fight against human disease.

They will also be easier to find when they escape.

Though primates that make a glowing protein have been created before, these are the first to keep the change in their bloodlines.

Future modifications could lead to treatments for a range of diseases.

The “transgenic” marmosets, created by a Japanese team, have been described in the journal Nature.

This means the every generation, scientists can change the monkey more and more until they get …. potentially extreme results.

Do the Japanese scientists not watch their own movies????

Wow, what a trip. That is honestly the first time I’ve seen that since it first came out. I’m going to have to rent the DVD….

Diversified Linux Resources

Following on this earlier post, here are links to on line resources that would aid in building, configuring, and using a Linux based computer.

Hardware:


Systems and related information:

Shell Scripting:

Advanced concepts:

Asus PC Eee PC paid off by Microsoft to Screw Linux …

… or so it would seem…. UPDATE: Or, this could be a fake. See comments.

The Asus PC Eee PC was designed specifically to run LInux. The idea is in part to make a very inexpensive globally (more or less) accessable open source system so all the poor children around the world who happen to have a hundred bucks could have a PC just like you do.

Now, Microsoft and Asus have teamed up to produce an ad campaing providing what amounts to a series of lies about the hardware/software combo, claiming that “Windows is Better” on this PC (better than Linux, that is).

Is it Ethical? No doubt. What passes for ethics in our society is often absurd. Is it Really Ethical, like if there were a god would you go to hell for this? No, of course it is not Really Ethical. You would definitely go to hell.

You can go here to read about it, and there you will find the dumb-ass movie they made, and links to the original butt-ugly site they produced.

Ubuntu Server: Why you want one and how to do it.

Why would you want to install Ubuntu as a “server” rather than as a desktop? The simple answer is: If you need to ask, you don’t want to do it. But, there is a more nuanced answer as well: By installing a server, you get to a) have loads of fun installing a server; b) learn things about the system you never thought were even there to learn; c) have your own server, so serve stuff in your very own home, so when The Internet goes down you can continue to pretend like there’s an internet. Just a much, much smaller and less interesting one.

And, if you happen to have anything to serve up in your own home, or if you want to serve a web site of your own, the server setup will make more sense than the desktop setup.

In truth, you can take a desktop installation and convert it over to a server by just installing and setting up some stuff. I myself am not convinced that this option is not even easier than the server-from scratch option. However, server from scratch (as opposed to tweaking a desktop install) will probably be cleaner and meaner, but most importantly, you will understand what you have in front of you better if you do it from scratch.

There are several resources you can use to help make this work. I recently read and very much enjoyed the book Beginning Ubuntu LTS Server Administration: From Novice to Professional (Expert’s Voice in Linux). (That’s a link to Amazon. If you go there and click around you’ll see a number of similar titles. None of the gay or lesbian server editions will be visible to you, of course.)

Here is a web site
that goes through the process on line. Which of these methods of learning (book vs. on line vs. trial and error) is of course a matter of personal preference.

Let’s go back for a moment as to why you might want a server. Your server may be a low-power draw machine with lower-end graphics that you use to access data (multi-media, files, etc.) and/or devices (printers, scanner, etc.) and in turn access via a wireless network elsewhere in your home.

So, physically, a server is different from another computer because it is not a laptop, it stays on, it is el-cheapo in the graphics department, and it has storage for stuff to serve up (all of these are breakable rules, of course).

In terms of software, there are big differences between a desktop and a server. The server has … servers. Like a web server (apache, for instance) and FTP server, and so on. That software can certainly run on your desktop, but the process of setting up a Linux server, such as the typical configuration known as a LAMP server (Linux, Apachae, MySQL databse, PHP), involves instaling, configuring, and turning on all these bits.

Another thing about a server, typically, is that it sits there without you interacting directly with it most of the time. Typically, you are not using your server for other things like day to day text processing, emailing, web surfing, etc. Again, these are all breakable rules. But a server normally is not your main interactive computer. One thing this means is that you can approach your server with a different personal affect than your regular computer. Your server can be a dangerous place, but because it is your server and not your day to day use computer, you can manage this.

Ubuntu by default does not allow a “super user” mode. A server usually does. So, you can sit down at your sever and check your email and stuff, but you can also sit down at your server and make modifications that only a super user should be allowed to do. Using the Ubuntu solution of “sudo this” and “sudo that” is not convenient, and can actually make some things hard to do, and some scripts that are designed to be run by super user will not operate with the sudo-only environment.

So, you want your server to have super user capacities that you can access, and when you sit down at your server you want to act in a responsible manner worthy of any super user. The book I refer to above does give instructions for changing Ubuntu so that there is a super user mode (you use sudo to do that, naturally).

Here is a web site that gives some suggestions for how to set up the hardware for a server, and also, info on installing Suse Linux.

I’d like to suggest two or three other resources that might make your bedtime reading for the next few weeks if you plan on playing server administrator. First you need Linux All-in-One For Dummies.

Then you need eitherThe UNIX Philosophy, in order to get your philosophical approach in line.

Between the above five mentioned texts, pick one from the first paragraph and zero or one from the second paragrqaph. Go to the used bookstore in your neighborhood that sells computer books (here where I am that would be Second Hand Books) and get whatever they have along these lines that is used. You don’t need current references, as these books are talking about *nix at a level where details are not important. The idea is to get down some basics, get some philosophy, and learn what sorts of things are possible by viewing these possibilities form a variety of different angles.

Then, go out and get a fairly current all in one bible type book that gives you the reference source you will need, such asA Practical Guide to Linux Commands, Editors, and Shell Programming (3rd Edition).

Some people don’t like books, and prefer on line resources. You can find all of the above on line in some form or another, and at another time I’ll make some suggestions along those lines . Some people like the book for various reasons. I like having these books as my bedtime reading. No computer, just the book. I know, that’s strange, but it’s how I roll.

An expression, by the way, that I really don’t like that much (“how I roll” … that expression).

Vatican Gets Facebook Page, iPhone Apps

Pope Benedict XVI has entered the world of social networking sites and smartphones with a Vatican portal that includes Facebook and iPhone applications.

The Pope2You Web site was launched Thursday and allows Facebook users to send virtual postcards with photos of Benedict. An application for iPhone and iPod Touch gives surfers video and audio news on his travels and speeches, as well as on Catholic events worldwide.

The new portal is the latest update in the Vatican’s efforts to broaden the pope’s audience… bla bla bla

source

I understand that the first facebook picture the holy father uploaded was a snapshot of him and some of the cardinals tossing back umbrella drinks during their latest trip to the Hard Rock Cafe in Panama City.

Who would win in a fight between Microsoft and J.K. Rowlings?

Both, I hear, are rather litigious at times (man, am I ever going to get sued). So, when Microsoft patents Harry Potter’s Magic Wand, how will that go?

“Newly-disclosed USPTO documents show that Microsoft is seeking patent protection for a ‘Magic Wand,’ a device with various gizmos and sensors that can manipulate and interact with its environment, including video and holographic images, while using biometrics to connect with the user. ‘Even the most pragmatic individual,’ explains Microsoft, ‘would have trouble arguing against the merits or utility of, say, a magic wand that actually worked to control or communicate with objects or components in an associated nearby environment.’

/.

Let’s have a look at cat (Linux, bash)

First, the video, then the discussion:

Sean claims that ‘cat’ is short for ‘concatenate’ … which is what I always thought (I’m sure ‘cat’ is ‘concatinate’ in at least one relatively common computer language other than bash).

If you man cat you do indeed get a statement that says “cat – concatenate files and print on the standard output.”

It has become fashionable over the last few years for shell programmers to eschew cat. It is often the case that using cat is redundant with some other way of doing something which is seen as better for some reason, but that reason is often rather obscure or irrelevant. Like, “you are using six more processing cycles” or whatever … on your 2.3 megahertz dual quad core computer that was otherwise mainly just sitting there handling mouse input.

So, the coolest thing about cat is that you can use it to take over the world. cat is the world’s simplest text editor. Type cat with a redirect to a file, like Sean demonstrated, and then write a C++ program that hacks the World Bank, and you’re there.

cat has a lot of options, such as -n which numbers the output lines, and -b which numbers only the none blank lines.

Personally, I like to use cat as a feeding device for some other part of a script. I use cat to produce output from a file of test data, and then I mess with that output until I get the results I’m looking for, and then I work upstream and replace the cat command with some other code (which is supposed to produce the output that the test data mimicked).

I know, I know. I’m wasting cycles. But I have extra cycles, I promise.

Why OpenSource is Good and ALL other alternatives are Always Bad

Not all proprietary software is actually evil. However, very few people who prefer proprietary software over OpenSource software will admit how evil it can be. So this is like having two societies. In one, by convention and social norms we don’t hit the kids. In the other, we spank the kids now and then, and this is acceptable. In both societies, there is violent abuse of children but it is never accepted.

Then, in the no-spanking society, violent attack on children that annoy us continues to be shunned and illegal, but in the spanking society, spankers defend all violence against children because there really is no place to draw the line.

Yes! I said it! Proprietary software is a form of child abuse!!!

Continue reading Why OpenSource is Good and ALL other alternatives are Always Bad →

Emailing Habits And Diurnal Patterning

i-84b7cba438d712451b55ee58688258ec-E-mailaholic.jpg

Duncan Watts at Yahoo Research in New York City and a few pals studied the time of day at which around 3000 individuals at a European university sent emails over an 83-day period as well as the email habits of over 122,000 e-mailers at a US university over a 2-year period.

They found two distinct types of emailer. They termed the first “day labourers” because they tended to send emails throughout the normal working day between 0900 and 1800 but not at other times. The second group they called “emailaholics” because these people sent emails throughout the waking hours from 0900 to 0100.
source

I tried to have a look at the original paper, but since this story has been slashdotted, I suspect the server on which it resides has turned into a burned out cinder. The methods used to produce this analysis would be very interesting to look at. It looks a little too clean to me!

More on Open Source. Much, much more.

We have been discussing the relative quality of support in OpenSource v. proprietary software, and I am reminded of some other issues that we’ve spoken of before. We had a fight here some time back (in November) over the question of Black Boxes in research software (I won the fight), a topic which has been touched on in the present discussion. The code has to be exposed. (see also this for a specific example)

Another argument we’ve had is how a system like Linux is maintained vs. a system like Windows. Developers argue about this, but the truth is that since Linux and most of what is attached to it is OpenSource, the system can constantly be updated in a way that improves things (usually) going forward instead of simply building up code. (This is the question of a stable Kernel API vs. not.)

With respect to the business model, the difference between the two paradigms is astounding. To put it simply, a proprietary model allows and often encourages decisions that are just plain bad for the user. See for example:

In some ways, in the day to day experience of the end user, it is true that things like the Linux/MS difference, or more broadly the FOSS/Pirate difference is a cultural one. But certain truths are highly manipulated or overlooked.

For instance, Linux is grandma ready. It is a grandma ready as any other system has ever been. One of the reasons people think it is not is because they or someone they know encountered problems with installation. This overlooks another important truth: No arbitrary OS will install flawlessly on an arbitrary box. That has never been true. Of all the OS’s out there, a good distro of Linux will install easily on more boxes than any version of Windows that has ever, ever existed for all time up to now. That is a plain and simple truth that cannot be denied. For details, see this.

Open source is changing your life, even if you don’t know it. The maximum attained quality of the produce for OpenSource is always better when the project exists, in part because the requirements of the proprietary business model will interfere with best practices of development in almost all projects. OpenSource is usually more cost effective than proprietary solutions.

Since its origin, Open Source and Linux has been there to save us all!