You are viewing [info]browny_amiga's journal

Previous 10

Mar. 28th, 2012

I do hate the VI editor

Yes, dislike is a word that is not strong enough.

There is not a piece of software on the planet that has been more pain to use to me than the fabled VI editor. Fabled, because at this point it is as fabled as a shining knights armor sitting in some museum. Fabled as in ancient, incredibly old fashioned and not to be used anymore. Don’t get me wrong: I don’t want to stop people from using VI. If you love it and spent your 40 hours of training how to use it, go knock yourself out. I know, you will be faster in text editing than anybody else. You will be happy on any old Unix (that is so old or dated, it starts to smell ;-)

But please please please don’t think that other people should be indoctrinated or convinced to use VI.

I myself have chucked Linux into the corner in 2001 when confronted with this P.O.S. software. And of course, some not so bright person in a forum could not relate to being in the 21st century and other people that do not want to do serious and time consuming training to use something as trivial as an text editor. He recommended me to use VI to edit a text file in Linux, at which point I was astonished, flabbergasted and then well, angry at the idiocy of VI, where you even need to read a manual to be able to exit the damn thing.

Imagine going to a building and entering and then walking around and suddenly getting lost. The doors are all unmarked, nobody helps you and then you realize that you are in some strange building that was built before labels and directories or even maps were invented. And you should have (of course!, *dripping sarcasm*) studied the manual for that building before entering. Now you are trapped and all you hear from other people is RTFM!

Strange? I think so.

In my book, ANY application, no matter what it does must at the very least show you the way out, so that you can use that in case you decide that you do not want to use it. And every software does it, just VI does not.

And how do you get out of VI?

Well, first you exit edit mode with ESC (yep, you’re actually not always in edit mode, so you even have to know how to make your keystrokes register when you type text ;-)

then you use the combination :q! for quit and really do it.

:wq! is for writing the file first. Guess how much time you save just having to type these few commands (*dripping sarcasm*) and well, guess how long it will take you to memorize them properly ;-)?

So in my case I had to terminate the editor from outside, I sent it a sigterm or sigkill, which is the worst defeat that can happen: I had to actually “call security” (in an OS sense) and remove the damn thing (akin to a contractor that refuses to leave after a job is done, citing that you do not know the magic password that he requires).

Now why am I so angry at VI? Well, because there are tons and tons of better editors out there. Take emacs for example. No, I am not somebody that loves emacs. I am not part of that flame war. Why do I prefer emacs to VI? Well, it got this crazy new invention (I think that was invented in 1984) called MENUS *dripping sarcasm once again*, where you can actually know what options there are, intuitively. without reading some blasted manual beforehand. Exiting that program is so easy, saving is easy, loading is easy and there is even a built in help.

Nano as an editor is also OK, as you see what you can do below in a line and well, it also talks with you, telling you high tech shit like “do you want to save this? If not, you will lose it”

I estimate that VI is responsible for more people chucking Linux into the corner after wanting to try it than any other thing. I remember using Windows and realizing that DOS was over, gone, bye bye, that the future was GUIs. When using Linux the first time, I wondered if the thing was not outdated. All that focus on the CLI seemed a little weird. It seemed to me that there were some geeks that were just having a private party, loving the little world they had created for themselves, requiring in depth skills for doing trivial things that other non trained people seemed to do with a few clicks on Windows. But in their world, people had to conform to their rule: “RTFM! Intuition does not work, nope you cannot just use that and figure it out as you go!” they seemed to say. And when meeting VI, I have had it. That thing was ugly as hell and old as well, before the beginning of time.

Only later I recognized how great the CLI is in Linux and that it can do things that you just can’t do on Windows, because DOS is really over: it is a cheap, copy-cat P.O.S. copy of Bash or any Linux shell.

BUT: I had to get around VI. Every time I used it again, it drove me nuts. And then I had to do my RedHat Certified Engineer certification. And when asking if I could use any editor to edit conf files, the teacher (a former Unix pro) said “sure, you can use anything you like, but you will find that only VI is installed all the time on all systems”

So he told me in no uncertain terms “yes, use any editor you like, BUT NOT IN MY DAMN CLASS YOU WON’T!”

The “vi is installed everywhere, others are not” excuse has been used now for 30 years and it is getting old. On systems with gigabytes of ram, terabytes of hard disk space a CLI text editor, even something as large as emacs is tiny and the problems a tool causes and man hours it wastes by not being available is much worse then the few megabytes it “wastes” by being ready and installed.

This insistence and the old fashioned (dinosaur-like) thinking is very prevalent on Unix systems and “Unix experts”, even nowadays. And it is the main cause for Unix to be supplanted by Linux for decades now. When you compare for example top (ancient) and htop (new and improved) you can see this difference very much: top has not changed for decades, while htop has a lot of great new ideas and does whatever top ever did: use of colors, using bars instead of numbers, use of cursor keys to navigate around.

Oh, and on a side note: I have to always laugh at that, but did you know that some VI version don’t even support cursor keys? It is shocking, but true. And I chuckle, thinking back at probably somewhere in the 70’ies when cursor keys were the total new thing, high tech and had a WOW! factor to them, and only the fancy-shmancy keyboards had them.

So if you want to use VI, please do. But please don’t instigate that newbies do and don’t pretend it is all easy. It is not.

And did I learn how to use VI then? Well, faced with a teacher that basically told me in no uncertain terms that he would make me fail the test if I did not play by his terms and rules, I learned the basic VI commands. But then stopped and fought it. And still don’t know how to use vi properly and well, am proud of that and all the time I saved.

Nano and emacs are always installed in seconds, especially since all modern Linuxes support directly installing from internet with one command.

I love efficiency and making things more efficient. And the command line has some things that no GUI can best. The power to script everything or automate everything.

But sometimes I am wary and take a hard long look at things: and if some schmo can do things faster in a GUI, that take me longer in the command line, then I am doing something wrong, am I to use the CLI in the first place!

Mar. 7th, 2012

Ideal Linux Terminal Server ahoi, bye bye VNC, no more sucky forwarding of X11


The ideal Linux terminal server has finally come true.

It is called X2Go and I have been using it over 1.5 years now, very successfully.

No more ugly as hell VNC sessions, no more fiddling around with NXFree or FreeNX and living with stupid and annoying restrictions that you can only have 2 concurrent sessions.

X2Go should come with every Linux out there. No more silly X forwarding, no more fiddling around with insecure VNC (VNC actually shows what a user is doing remote on the local screen (if one is attached).

So what is X2Go?

X2Go is what we always wanted in X forwarding and NXserver. It allows you to remotely open a session on a Linux server, like you would be logged on locally. You can then log out again or just suspend it. When you log in again, the session will resume and everything will be as it was when you left it.

This enables you to run programs on your server and get the screen over to your local client, be it Windows, Mac or Linux.

If you don’t have that much ram or CPU power on your local machine, you can use the one you got on the server. It is a little like logging into a mainframe.

So what are the advantages of X2Go? Over other systems?

1. No limitations on how many users can log in (the free version of NXserver has a 2 user limit, Windows RDP has a 2 user limit and how annoying that has been over the last years. Who is crazy enough to shell out the money for a “full” Windows Terminal server to remove this restriction if you can do it on Linux for free?)

2. X2Go adapts to your link: it compresses the screen so that no matter how slow your link is, you can still work. Normal X forwarding is butt-ass slow and does not compress anything.

VNC is known for being really really slow and not allowing high resolutions.

3. Works over SSH and using the same authentication. You can use your existing users and log in with them. You can also use SSH keys. Thanks to the SSH nature of the link, you can even log into your server at home, over the internet and be totally secure.

4. Works pretty stable and supports all kinds of fun things: you can forward printing and audio to your local (client) workstation. You can share your local drive, so you can transfer files over.   

Do I sound excited? Well, I am. I have been looking for this for ages and hope that some of you guys can benefit from this. X2Go seems not to be that known yet. Many people are still fiddling around with VNC or worse, forwarding X11 connections over SSH. (*shudder*)

I spent ages trying to make FreeNX work and it just never did cleanly and reliably. Sometimes it worked, then again the resuming did not work anymore. I gave up, the project also seems pretty dead at this point.

X2Go is actively developed and last time I heard, it will find its way into the Debian and Ubuntu repository.

So why would you want to use a “terminal server”, where you run programs centrally on a server instead of your local (client) system that you are sitting at?

Well, your local workstation might be too weak, have too little ram. Also, if you are using a browser or files, they will be sitting on your laptop and syncing stuff from desktops, 4 laptops, netbooks etc.. is such a P.I.T.A.

If you log into the central server, everything is there. If you open a open office document, and edit it and need to leave or your laptop is running out of battery, you just close the session (suspend is default when closing the window) and when you log back in, open office is still open and ready for you. I just need to backup my central server, not all my 4 laptops and machines that I use.

Also, the experience is always the same, I can use the same programs and it looks exactly the same, no matter where I am, if I am using this on Windows 7, Mac OS, Linux or whatever.

And when you throw in a thin client environment (that X2GO support), THEN it gets really cool:

I have an old IBM X21 Thinkpad laptop. 900 Mhz CPU and 256 MB ram.

That was state of the art in 2001, but now, with that little ram, you can hardly run anything on it anymore.

So I could start up the laptop with the old Ubuntu distribution I have running on it still and then start the X2Go client on it and hook into my quad core 4X 2.6 GHz 8 GB ram X2Go terminal server. But why start up an OS that I will not use anyway, just to run the X2Go client?

So I ripped out the Hard disk out of the laptop and made it boot over PXE. So it gets an IP over DHCP, asks for the PXE boot image, boots into a basic OS session over NFS into the server that is just there to show the X2Go Login screen, where I can select an user and soon see the session full screen on my formerly useless laptop.

And when you are finished? You just shut down the Laptop. Or even yank out the power chord, nothing that you see is really on this Laptop, it is all via the network.

There are some interesting ideas:

http://www.youtube.com/watch?v=WxEsngE6qjc

In this example, they use a server to run Skype and then interface with it with X2Go and audio forwarding to use Skype on it, in order to use Skype on a smart phone that does not natively support it. This could be done of course with any other tool too.

I would probably use Pidgin in this way, as most smart phones have these awful non-standardized and closed proprietary IM clients on them.

I use X2Go every day and have removed the monitor off my 2 servers and use X2Go every time I interface with them.

I don’t use Putty anymore on Windows, I enjoy having a fully fledged Linux environment, a copy buffer that has a history, copy past by just marking something (middle mouse button), something that Windows still does not have and using a real bash shell.

Putty and DOS windows in Windows STILL sometimes cannot be resized horizontally and I am sick and tired of this (you actually have to activate that resize feature in the terminal, WHAT A JOKE!)

X2Go enables me to have the same environment and the same look and feel on any system, no matter where I connect from to it. And thanks to SSH forwarding, I can even reach any server in the internal LAN.

Go check it out, it is one of the better cooler projects out there, stuff that actually works:

http://www.x2go.org/

And a final question: Why did this have to take so long? We always knew that Linux/Unix had a much better infrastructure for redirection of the screen over the network, yet in Windows you could use Remote desktop (RDP), while in Linux you could not or it was fiddly and complicated to set up (VNC). Well, yet you will need a VPN to be able to use RDP on Windows and again, the stupid 2 user limitation.

And Windows Terminal server must suck so hard and be so overpriced for it, because otherwise Citrix could have never taken away that crown from Microsoft. After all, Citrix is also very very expensive when you think about how much one desktop license costs you.

TCO must be a total dream when you set this up with Linux and use old obsolete PCs or laptops that you can basically for free, set them up to boot from PXE and then use a 10 Gbit LAN and some beefy server with a lot of cores and run tons and tons of users on it with no license costs whatsoever. This solution is also very clean, as you can see who is running which processes on the server, you see them logged with their username. And an admin could even terminate processes that are hogging too much CPU power or renice them.

Nov. 18th, 2011

The hunt for unbiased product reviews

Thanks for Yelp! 
I love Yelp, I really do. It is such a useful tool to find businesses that care about their customers and treat them well. 
I wish there was a thing like this for products. 
In a time where 
1. products are all made in China
2. Seem to be made for your low IQ consumer that is easily misled by some fancy marketing
3. Companies probably combat the truth about their product, shutting down blogs and such (law-sueing them into the floor)
in a time like this, it is really hard to come by an unbiased (i.e. true) reviews of products.
It is hillarious and always makes me laugh when I dig through the web to find a product review, for example for the super print pixel blaster 200L
and find stuff like:
print-pixel-blaster-200L.reviews
I always have to laugh at such idiotic and stupid attempts by web mechanism (and the the people that build them) to seem to think that I have a residential speed limit IQ level and that they can bamboosle me into believing any kind of bullshit.
It is very much like you walk through a market in any country in the world and talk to a travel companion that you would like to check out if you can buy a Nick-on 545X SLR, large Chip edition with Full HD capture and then when you keep walking, suddenly, you see a shop that displays, in large letters just that. Like the shop owner had overhead your conversation, following you covertly and then, racing back to his shop, he changed the display to make sure he offered exatly what you wanted. 
Any smart person would immediately approach this shop and shop owner and ask them in most urgent tongue to disclose the price and availability of this thought reading device that the owner obviously must possess and use ;-)
So far I have only found Amazon.com to have the most accurate reviews. You can usually tell if you stumble over other reviews how ready they are to also mention shortcommings and bad aspects of the device. If it is all wonderful and perfect, it is too good to be true and fake.
Mistrust any reviewer that has a constant smile plastered on his face.
In Amazon.com before I buy something, I make sure that most reviews are positive, but then I go ahead and also read the abysmal bad ones and sometimes these people are the forever unhappy frustrated annoyed kind, that were just not smart enough to use the product or did not realize that, yes, a flame can burn you or that a certain product needs skill being used and that not all things in life are as intuitive and “no learning involved” as the ads and commercials want to make them believe. 
I prefer to know 
“this product sucks at this and that aspect.” or 
“it does not do xzy” 
It might still be ok, because I might not need it to do xzy in the first place or I might be forgiving for that price. BUT I want to know beforehand, not after.
And fun enough, often it points out some facts that the aggressive marketing outright lied about to boost sales. 
Digital Zooms for example are something so incredible pointless to mention, so while the device might be doing 30x digital zoom, it still will only do optical 3x, which is what you actually want to know.
Digital Zoom is something you do with Photoshop or Gimp ;-)
another example: I found out, through a negative review, right when I was ready to buy a centrifugal juicer, that “it leaves the pulp way too wet, churns air into the juice (oxidation) and heats it up (destroys vitamins). I recommend buying a masticating juicer”
And my mouse hovered over the “buy now” button and moved away again. Masticating? Never heard about that. And after research I found that yes, centrifugal ones are not really that efficient and they do introduce a lot of air into the juice which makes sure your juice turns brown and unnutritional in no time flat.
So where can you find true reviews about a product? 
Definitely not on the manufacturers homepage, unless they are done by users and not censored.
I remember being astonished the first time I saw a book on Amazon that 20 people gave 1 star and wrote destroying reviews about. How come Amazon allows this, I wondered. Was I wrong with my cynical attitude towards big corporations? Which seller would talk bad about his own product (even if it is the truth)?
Well, seems like this is what Web 2.0 is all about. 
And it helps us all to really dig through the marketing BS and find the real truth about products.

Nov. 8th, 2011

Innovative and Extraordinary Games

I love innovative and extraordinary games.
Stuff that is unusual and new and different, not the same old same old. It might be that at my age, most people have stopped gaming some time ago and that I have seen pretty much all games that every existed. I started gaming when I was 10 and back then, in the 80ies, gaming was brand new, there were very few games.

So maybe I got tired of all the copies of copies of copies. Or it might also be that the innovator in me, the inventor wants to see something new.

So I notice when a game does cutting edge new stuff, and I also do, when they fail and even take a step back.

Physical engines for example are a thing like this: no game in the last year has even scratched on the potential that pioneers like Red Faction and Half Life 2 set up. You can still see a brand new game, A list, that has a paper poster on the wall, or an office chair and you use a grenade on it, and all it does is leave a smudge or in the case of the chair, the chair gets catapulted out of the office. But does it break? Does any chair stand up to a RPG or grenade? Not really, not close up.
Would the cubicle wall still be standing? Not likely.
So in this, I am always disappointed about the gross lack of realism.

So Red Faction Guerilla caught my eye and attention, as it is such a cool game in that respect, it does what no other game did before: total destroyable environment. It does not, like Red Faction 1 + 2 allow terrain modification, tunneling with your rocket launcher, but all buildings, walls, towers and such can be smashed and destroyed and if you feel like, you can take a tank and just walz through a building and leave a, well, tank shaped hole that you can see through.

Using explosive charges, you can also detonate them in specific points, to weaken the structure and then watch how the building groans, imagine a building that is just hanging on 2 walls instead of 4 and then see it collapse all together.

And often, some frustration from work or with traffic can be alleviated in the evening, taking out your mining hammer and “communicating directly” with a building and smashing it to pieces with hefty and satisfying swings.

Talking about innovation, I have especially noticed Supreme Commander 1 and Forged Alliance in the RTS category. If you see this game, you will figure out that Read Time Strategy is actually the right term to be used for this game, but not for all others. All Command and Conquer games for example are reduced to being RTT, Real Time Tactical games, as they never rise above a few units to be commanded and have this annoying and silly unit cap. Unit caps in Supreme Commander can be set to 250 500 1000 1500 and so on and it only used to be nice on the CPU, as it takes lots and lots of juice to simulate on such a large scale.

One thing that you notice in Surpeme Commander is also that you can zoom out... well, ALL THE WAY OUT. Not just go a little closer or further away, but not ever really getting an useful overview. Zooming becomes a joke in most other RTSes once you get used to what SupCom does. It even uses your second monitor to show the map in its entirety.

But I will go into the details of Supreme Commander and Forged Alliance in another blog.

Dec. 30th, 2010

Conquering the non-digital world with digital

Hi

Long time no write. Well, I am back with some exciting stuff:

Ever wanted to build a robot? Or manage your house? Control your heating/cooling system?

On the cheap, without spending much money? But with lots and lots of power and having virtually unlimited possibilities? Well, enter Phidgets.

Phidgets is a Canadian company that sells input output board that can be hooked up to any computer via USB (go to hell, old serial port and stay there!!!!! I hate you ;-) you are ugly, slow and outdated, you don’t belong in the 21st century)
And while it is not the cheapest of possibilities, it is certainly the easiest. One of the boards will cost you about 70 bucks and to that, you can hook up a myriad of sensors and actuators. A temperature sensor will for example cost you around 12 bucks. You can also connect relays or digital inputs (for switches and such), sonars, IR sensors, stepper motors and what we get from all this: put it all together to make a robot.

Imagine this, fresh from the Brownyworld development labs, and patent free too:

take some wheels, put that on a platform, hook them up to some motors, put a car battery in the middle, put some sonar sensors all around, up higher you put a netbook and hook everything together with one of these phidgets boards. And programm in python, easy on the brain and still powerful.
Or any other language you can dream of, it is all supported.

Now you got a robot which will cost you less and be assembled in less time that any other project that I can think off. The netbook will allow you to do really really powerful stuff and run it on Python too (try that on a integrated board). If you still don’t see the point in Python, do research the issue a little, Python is different. If you ever programmed and found that you are “just not the programmer type”, you might get happy with Python. I thought like that and was surprised how clear and easy Python is to learn and use. I tried Java (total mess of legacy stuff, my opinion), bash (very cool, but lacks power and you cannot do object oriented stuff, which is the hallmark of good code for me), visual basic (well, if you are content on writing code that only runs on Windows, so be it. I am not! and same story as Java: old and MESSSSY, lots of legacy garbage that bloats it up), C? Well C is beyond me. Too hard and too low level. I know it is lightning fast and that is why it is used and unsurpassed by others. But I will never be a programmer in C, I have written stuff that actually works in Python, with a wonderful user interface, portable (runs on mac, windows and linux)

So you take that Netbook screen and you can display stuff on it, no need to put in a special LCD display and pay for it extra and configure it.
You could display a face on the screen, so the robot has a personality. Lets say the lower the battery gets, the worst its emotional state gets and it will want to recharge. And it gets grumpy. But when it is recharging, it is smiling. It hates mornings (like me) and loves evenings.

This is an idea I got from the assumption that all emotions are caused or pertain to the body: hunger (I am running out of energy, need to get some more), love (need to create offspring or unite with other body), fear (I might get damaged or killed, fear of seizing to exist), aggression (instead of running away, I could fight for my survival), happiness ( I perform a useful function, therefore I am happy, I am useful to my master / peers, which will lead to upgrades and petting on the head (hmm, gotta have a sensor for that installed on top)
All these pertain to humans too.

So, this is shaky theory, but nevertheless inspiring and thought provoking.

I got this whole idea one day when I had this vision of how nice it would be to have a vacuum cleaner ( a normal big one) that has a robot built in (not the expensive small ones that have a tiny accumulator and no sucking power) and that it would vacuum and when it is happy, it would whistle while doing it. (I would love to have a whistling robot in any case)

Which brings us to a thing that is going to arrive: robot pets... self learning and personality developing. Which will be a lot of fun and introduce us to cybernetics very nicely and maybe to some start of AI. People that love real pets are going to hate it (calling it sick and unnatural), but the company that does it will become stinking rich by selling to the other group.

So, go check out their website

http://www.phidgets.com

This would probably not be so noteworthy, but they do play very nice with Linux (unlike many other companies) and it is so easy to assemble if you have not much clue about electronics and have not touched a soldering iron in years and don’t intend to (I build my stuff in code, not hardware)

That is why I advocate using a software firewall and am a total fan of software RAID and can tell you lots of advantages over hardware RAID:

So I’ll keep you posted for more stuff.

Aug. 16th, 2010

first podcast

This is my first podcast. It is a new format that I am exploring, since text can be dead. ;-)

Audio is mostly exciting.

It is about why Chinese Children beat other western children in math pretty much all the time and why thinking in Esperanto would also do that, which is the fastest way for us westerners to become lightning fast in math.

It refers a lot to Outliers, by Malcom Gladwell.

get it here:

webshare.s3.amazonaws.com/podcasts/podcast1.mp3

Jun. 12th, 2010

even more joy in Python

Hi again

Long time no post. Well, in the meanwhile, I really really started to love Python. I switched over from TkInter to WxWidgets, or better WxPython and after the initial learning curve (wxwidgets is OOOLLDD, there is tons of compatibility code in there that makes it complicated to understand), I am doing fine and loving to be able to write GUI frontends for all my programs. A button there, a slider here, very nice indeed.

Python is especially nice, because I am really no programmer. Doing C is way too rich for my blood, to deep down. But knowing that, having tried Java, VisualBasic, I am amazed how much I can do in Python and all in object oriented code.

It also helps that every Linux comes with python preinstalled and that it is kind of native on it. On Windows, the story is a little different, you need to install it on every system you use and it still feels like kind of a foreign element on it (I guess proprietary and opensource don't mix well)

Anyway, I am having lots of fun with it and so far I started some projects that so far are only for me, since the code is all alpha.

Among them are:

a wake up lamp, that slowly dimms up a light in your sleeping room (over 30 minutes or an hour) to wake you up like a sunrise.
I use X10 for that, to control the lamps, and thought of using a Netbook as the alarm clock sitting on the bedside table.

A sprinkler control, managed by my central Debian Linux server (cronjobs), it also works with X10 and opens and closes the valves.
You might do that in bash, but since I have discovered python, I shyed away from bash, as it just looks so much like spaghetti code and is unsuitable especially for larger projects.

Frostybaby, my snowmans dream learning program (Schneemannstraum), which has now grown to include weighting:
It measures how fast you play chords or finish tasks and then evaluates, which ones were slowest and repeats them accordingly (throwing out the ones that you were fastest)

Thats it for now, I am thinking about doing blogs via mp3, as it is much easier to record them than type so much. We'll see, if Livejournal offers it.

Nov. 27th, 2008

The Joy of Python Programming

I am just now starting to learn Python and so far it has been great fun.

The main motivation to start for me has been to give back something to the community.

To help with something that Linux ails currently: to write a GUI for some tool that now works swell in the commandline. I am a lazy fellow, I don't like to work extra if I don't have to and some tasks can be performed much faster with a GUI than with the CLI.

I totally like the combination of a GUI frontend that uses a CLI command at the backend and stays totally transparent through it, while offering some automation and visual and abstraction eye candy.

So far, I am really excited about Python, for these reasons:

It is a high level language that is at the same time still pretty fast.

It is platform neutral, so code once and run everywhere.

It is vendor independent.

 

Python has all the features that made Visual Basic once so fashionable and popular. Now, Python has all advantages of VisualBasic, while having none of its drawbacks (that being: Visualbasic only runs on Windows, being proprietary).

Furthermore, it has not been endlessly extended like VB has been and this enables you to write some really elegant code.

It is object oriented, as they say, “everything is a object in python”.

What will throw you a nasty “type mismatch” error in other languages, Python handles very cool:

when printing a image object, you get

 

<Tkinter.PhotoImage instance at 0x00B4A170>

I have started a program called Frostybaby that tutors me in the snowmans dream method of Piano learning (see other blog posts) and scripting it in BASH has reached limits. I took it as a great opportunity to start learn Python and so far it is surprisingly easy.

The Tkinter GUI kit is a little nasty (it especially looks like puked on Linux ;-), but it is a place to start.

The program will surely be GPL code.

And best of all: In the Debian repositories, there must be at least half a million extensions and tie-ins for Python, where you can access everything from music players to database systems to Asterisk Phone servers. Very interesting and powerful, like having a remote control that will give you power to remote control EVERYTHING around you ;-).

 

Windows much needed weight-loss possible with Windows 7?

Windows much needed weight-loss possible with Windows 7?


As you might have heard, with Vista Windows has become too fat. It does not run on anything but very fast machines. Netbooks? Forget it, the 400 pound gorilla of an OS sits on it and drops through the floor, taking astonished bystanders with it ;-)


So, this is announced with Windows 7. But is it possible at all?


I just had a very tasty read of this:


http://linux-watch.com/news/NS7955116339.html


And the author raises some good points:


I've been nonplussed the last few weeks as ordinarily sane compu-journalists opine that Windows 7 will somehow kill Linux on netbooks. This weekend, I had a chance to actually see XP running on an EEE 900, and I can tell you, Linux has nothing to fear from Redmond.


During my 13-year career as a compu-journalist, I have seen the pattern over and over. Microsoft pre-announces a product years before it will ship. Then, people who have built careers supporting Microsoft's products -- whether IT staff or journalists -- slavishly salivate, as if on cue. Purchase decisions are deferred, per recommendations of the trade press.


Harharhar! Yeah, that is EXACTLY how it is done. Amazing, I have never heard anybody put it so concise!

Next, the product is delayed. Purchase decisions are further deferred. Nothing can sway the devotion of the true Microsoft believers. And they think Linux "fanboys" are partisan!


Yeah, I guess nothing can sway real conviction. Or shall I say: habit? Habit surely applies to both Linux and Windows fanboys.

But to the defense of Linux advocates I can say this: they at least know what they are talking about. They started off knowing nothing but Windows and then switched over to Linux, now knowing both. Typical Windows fanboys will not touch any other OS with a 20 foot pole. Yeah, right, they have installed Linux one time or another and laughing about KDE or Gnome interface, comparing it to a world where everything should look and work like Windows (and decided that it does not measure up). But they don't get Linux, barely scratched the surface and know nothing about the power hidden under the hood.


Today, it turns out, XP is hardly usable on netbooks. What makes people think the next version of Windows will actually get better? Microsoft has never in its history delivered an OS upgrade that did not require SUBSTANTIALLY more resources than its predecessor. Is that really going to change? Really?


Good point there. This has never happened. And in my judgment, it won't. Microsoft just does not know how. Windows is a monolith, everything connects to everything else, everything must be compatible back to the last 8 years. All that legacy code is inside and it makes it fat and slow.


 

If it were true that “Vista was redesigned from ground up” as I hear the Microsoft marketing fanfare and its loudspeakers (people echoing it), how come Vista is SO HUGE? There is virtually nothing in it and yet it is larger than a fully configured Ubuntu install, with OpenOffice (around 600 megs), Gimp Graphic Suite, several high class editors,  Firefox (and 3 other browsers) and tons of other programs that Vista has not installed by default.

 


Nothing short of a total redesign of Windows will remedy this weight problem.

 

Now a total redesign (like Apple did wisely with OS X) takes:

  1. a lot of time
  2. causes much and/or total incompatibility (can you say "rewrtite all software"?)

 

Now MS acts like Windows 7 is ready, which surely negates 1. If they truly slimmed it down, it will cause 2, even more so because current programs are not written to accept anything than the fat GUI laced Windows experience.


We are seeing this in the Windows 2008 server edition, in which someone at MS had the glorious idea of reducing it to the command line (I want to hear Windows admins swear at that. Heck, that is the main reason they won't touch Linux: forced to use the CLI. Talk about alienating your customer base)


Fearing a virus or other problem, we took the machine in to a local shop specializing in fixing Windows OS installations.

...


Ouch, THAT is an issue that stings home: Ever realized how much power a antivirus software saps? Ever thought about how that will slow down a normal netbook into the glacial growth-speed of a tree?

 


....

XP is just not optimized for low-resource machines, it seems.


 

Heck no, it isn't. It is not even modular, so you cannot just remove components to speed it up. And Windows 7 will be? How long did they work on it that betas are already available now? My verdict: It is a cook up of Vista, not at all different (maybe some changes to the skin).

 

 

And I have written this blog some time ago, and am posting it now, like 15 days later. And look at that, somebody has already half confirmed my assumption:

 

http://blogs.computerworld.com/the_big_windows_7_lie

 


So, in the brave new world of netbooks, the software is not really baked yet, neither on the community-supported Linux side nor on the pre-installed Windows side.


 

That much is sure. Even Linux is not really 100% ready. It is just too new. But the eeePC does work and it is simple to use.

 


If you buy a netbook preinstalled with Linpus or Xandros or another distro actually tuned for use on a netbook, chances are the experience will be very good.


Linux has a long history of working better on lower-powered machines.


And there is no arguing about that, no matter how hard you try. It is a fact.


That is because at every level of the stack, from kernel and C library to productivity application layer, there are low-footprint alternatives that enable expert users and Linux system integrators to tune Linux for their needs.


Yes, and that is foremost why companies use Linux for it, since Microsoft is doing the same mistake that Apple did when they lost the OS market to Microsoft in the 80'ies and 90'ies: They sit on their technology, nobody can do anything to it without their permission.

 

And since MS has a million sausages frying in the fire, it takes too long for anything usable to crystallize. The OEMs sidestep MS and Linux gives them the power to innovate and they use it.


 

Remember that there were no clones of Macs? (except that little experiment) That Apple insisted that they build them all? Well, the PC compatible market took off much stronger because it allowed clones and competition became fierce. Microsoft should open Windows, give out the source code, open source it. Only like that they will be able compete with Linux on the mobile market.

 


Given that flexibility, and netbook-specific builds from Debian, Ubuntu, Puppy, and others, I'm guessing that community Linux will get fixed for netbooks long before Windows does.

Yes, exactly! What is Windows CE and mobile known for? For its slowness.

 

What was the comment of a first time user of Android? „It is faster than than Windows Mobile!“

 

Microsoft will not get this problem solved. They will have to change Windows so much to run on these little machines that it will not be Windows anymore. Linux on i386 (Intel Atom) is still Linux and code can be recompiled very easily. The only thing that has to be considered is the GUI that needs to be small-screen ready.


Not that Microsoft professionals are likely to take notice.


 

Well, no, they won't. For them there is just no alternative. They will stick with Windows no matter what. I guess it is like with us Linux professionals, on that we know what we are talking about (knowing both systems in deep) and that we have our destiny in our own hands and not in some megalomaniac Company that does not care the least about a user.

 

 


Nov. 7th, 2008

Windows Security Joke of the day

The best jokes are always the ones that life writes, that are partly true and make you laugh because it is just too ridiculous.

 

Microsoft is in my favorite personal joke producer. Yes, and the people that consider Windows to be secure.

I wonder what definition of secure they have. Not mine, that is for sure.

 

One of the delicious jokes about security vulnerabilities in Windows are, that every time you can exploit anything, bang, you are admin.

When comparing with Linux, the joke becomes even funnier:

Yes, there are more vulnerabilities in Linux than in Windows. And yes, they are much less severe. The often amount to nothing at all.

 

Let's take a example:

Editor xzy has a vulnerability, that if you could get a user to run some supplied code and do that and that, then THEN you can take up his privileges and maybe, maybe from there become root some day.

So translated into a visual example:

In this fortress that is the OS, if you can trick the guard to open the window while you distract him hacking the bell, which rings incessantly, you could open his door and get into the guard house, from where you just have to get through the corridors of the entry-buildings, not getting caught, not seen in the video cameras and THEN, open the door to the main building, which is barred and locked.

Well, the joke? In Windows, do the trick with the bell and bingo, the main door, the huge main entrance opens up in front of you and you are IT!

And the Windows security log will be... as always... EMPTY!

 

Hihihihihi!

 

Want to join me laugh really hard? Well, it has been like this for years and years.

Let's see the real life example, brand new and fresh:

 

http://www.us-cert.gov/cas/techalerts/TA08-297A.html

 

Systems Affected

  • Microsoft Windows 2000

  • Microsoft Windows XP

  • Microsoft Windows Server 2003

  • Microsoft Windows Vista

  • Microsoft Windows Server 2008

Hmm, ok, meaning EVERYTHING in the Windows world ;-)

Can somebody say monoculture?

 

Overview

A vulnerability in the way the Microsoft Windows server service handles RPC requests could allow an unauthenticated, remote attacker to execute arbitrary code with SYSTEM privileges.

Oh? SYSTEM privileges? How so?

II. Impact

A remote, unauthenticated attacker could execute arbitrary code or cause a vulnerable system to crash. Since the Server service runs with SYSTEM privileges, an attacker could take complete control of a vulnerable system.

Impact? Totaled! Deep impact, a OS killer!0

Hahahahaha!! So the service runs with SYSTEM privileges!! Hihihihihihi! Precious, just precious!!! Translation: The security guard that patrols the outside of Fort Knox has the master key to the vault dangling from his keyring. Get that guy and you got the whole complex !

Sorry my outburst, but I am burdened with security-training, holding the certificate as CISSP and people that know me remember my lectures about ARCHITECTURE of Operating Systems and why Windows is insecure by design by the way it was built. (a humble hut that was retrofitted with steel doors, but... still a hut with straw walls ;-)

Have you ever heard about the concept of least privilege? Well, Linux and Unix systems abide by it and especially their services that run on it. An Apache server has as little privileges as possible. Exactly because an attacker might take it over in the worst case.

Now in Windows, writing the year 2008, how the heck a service is still allowed to still run with SYSTEM privileges beats me. It is just unconceivable.

 

The cause? Compatibility. And that is standing on bad architecture.

Hahahahahaha!

Great joke people. I am just writing this down here, so next time some Wintard is uttering the line „it is just not true... All OSes are equally insecure, even Linux... blablabla... Windows has improved so much, Vista is a complete redesign... blablabla... now Windows also runs services as separate users....“

ROFL!!

I love how the above exploit has just annulled wonderfully transparent all the uninformed blabla. Please, people, if you need to say such things, do realize that you are spreading Microsoft Marketing, but not facts, nothing that you can call engineering and information technology. Just Marketing!

Accusing me of being smug? Of not being part of the solution? Well, here is my recommendation to Microsoft: A complete tear down and rebuild of Windows is the only thing that will help.

This time with proper architectural planing!

 

Previous 10