I am looking for a new laptop. 14" is a bit hard to fit in the bag sometimes.
While search for a new 12" laptop, I found garlac.eu. Their 14" laptop is exactly the Clevo I have, the 13.3" version I bought to my girlfriend under the brand name Belina in Germany. It's a good laptop. But the one in Garlac comes either with equiped with old AMD version or newer with Intel but equipped with NVIDIA.
Sorry, I DON'T buy AMD. Until someone here or in AMD convinces me that they do a better job with Linux. The second option, NVIDIA is an utter crap. NVIDIA drivers is the biggest piece of s$#% I ever saw, and in my work place, I curse a lot when I need to mess with NVIDIA card on a CAE workstation or some cluster.
But... if you are looking for a good 14.1" laptop and you are in Europe... The Rush 14.1 seems like a good choice.
Wednesday, May 02, 2012
Monday, April 02, 2012
Command Line Posting to Blogger
Oh man, I'm really becoming a geek. I spend so much time staring at VIM that writing a Blog post using the Web interface seems cumbersome to me. I know about Google command line interface and I even wrote my own little script to upload images to Picasa directly from Nautilus (good times are gone, I don't use GNOME anymore).
Anyway, at this point, you have python-markdown2 installed, and the command
Basic setup
So, in this post I will explore how post to Blogspot from the command line in an elegant way. First we need to install Google's CLI tool, let's grab it:wget http://code.google.com/p/googlecl/downloads/detail?name=googlecl_0.9.13-1_all.deb
Now, let's install it:
dpkg -i googlecl_0.9.13-1_all.deb
OK, basically, now you are good to go. The documentation is fairly easy to understand. Except maybe one note. The first time you will run the command you will need to configure your client. The config files are found in:
~/.config/googlecl/config
Well done by googleres who put the stuff where I expected it. Do note, when you run the config you will be asked for the name of your Blog. This is NOT the subdomain, e.g. in my case:
linuxpixies.blogspot.com
Rather to correct answer is the title of the Blog:
Linux Pixies and Stuff
Spaces are digested very well.
Making things Fancy
Until now you can post simple text files, or manually edit HTML (YUCK!). Here comes the fun part. Editing simple text files and automagically converting them to HTML. Enter markdown.Markdown
Markdown is a sweet little thing I discovered using stackexchange.com. The more I use it I want more. This thing is addicting, and even worse, it makes me hate all other Wiki syntax! Especially TkWiki, which we use in my workplace. Markdown has many many converters. I use python-markdown2, so let's install it:pip install markdown2
Now, if you are a pedant, you could make a Debian package, which is actually better than just dumping Python packages. But pip can also remove Python packages, so it's now that bad, after all.Anyway, at this point, you have python-markdown2 installed, and the command
markdown is at your finger tips. You can start writing your post with your favorite editor, be it Nano, EMACS, Ed or VIM, when your done, save it with an appropriate title and md suffix so you know later it's Markdown. Now comes the fun part.
Converting to HTML
/usr/local/bin/markdown2 YourCoolPost.md > Title\ of\ Your\ Cool\ Post.html
Now, you can view it with:
firefox Title\ of\ Your\ Cool\ Post.html
It will be bare naked HTML, without any styling, but you will get a good feeling how your post will look like. When your satisfied, go the next step, publishing.
Publishing your Post
Easy as:google blogger post Title\ of\ Your\ Cool\ Post.html
Done.
Final Remarks
I am writing these final remarks from Google's own web interface to Blogger. I wanted to see how my post looks like in real life. I was amazed to find a plague of break elements. elements in my post. Apparently, Blogger's engine parses the HTML once again when it's submitted. Everywhere I had a line break in VIM using enter, I had inside Blogger a break element. Quite upsetting, but just remember, don't use to many of them inside VIM, and your post should look good.
Labels:
Command Line,
vim
Tuesday, March 20, 2012
Good Bye Latex ? Hello WeasyPrint ...
Latex, is my main way of producing reports and scientific works. Usually these are formed as PDF before being actually printed. Latex is AWESOME. I love writing documents with latex. That said, although I am not a beginner with latex, when I want to deviate from normal good old latex patterns things become a bit rough.
Despite using the Latex language for almost 5 years, I still don't fully understand the syntax of writing packages, although mostly a long enough search will yield some solution which does not require me to hack on my own. Never the less this is a bit tiresome sometimes.
Enter WeasyPrint. This project seems really cool because it allows anyone with basic knowledge of HTML and CSS to produce good looking PDFs. Further more, I can really think of a simple work flow once a template is made:
Write your documents with Markdown, use something like Jekyll to convert your easy to understand Markdown to HTML with some Jinja or CSS and finally convert your pages to good looking PDF's.
I think this is more or less what Sphinx does (except that Sphinx uses RST instead of Markdown). I never really mastered CSS or HTML, but this seems like a good opportunity to start mastering both
Besides, consider this:
MarkDown + Convert to HTML + WeasyPrint = Sphinx from Scratch.
Besides being a very cool educational project, a project like this can allow people with CSS + HTML knowledge to produce some great looking PDF. It also allowed a lot of flexibility if you are good at both.
Never the less, Latex has still one big advantage: Latex is well designed to produce good looking documents even though you are not an expert on typography and page layout. Additionally it is thousands of ready made packages and kind community that can help solving many existing problems. So maybe after all, Latex is not going away so fast!
Despite using the Latex language for almost 5 years, I still don't fully understand the syntax of writing packages, although mostly a long enough search will yield some solution which does not require me to hack on my own. Never the less this is a bit tiresome sometimes.
Enter WeasyPrint. This project seems really cool because it allows anyone with basic knowledge of HTML and CSS to produce good looking PDFs. Further more, I can really think of a simple work flow once a template is made:
Write your documents with Markdown, use something like Jekyll to convert your easy to understand Markdown to HTML with some Jinja or CSS and finally convert your pages to good looking PDF's.
I think this is more or less what Sphinx does (except that Sphinx uses RST instead of Markdown). I never really mastered CSS or HTML, but this seems like a good opportunity to start mastering both
Besides, consider this:
MarkDown + Convert to HTML + WeasyPrint = Sphinx from Scratch.
Besides being a very cool educational project, a project like this can allow people with CSS + HTML knowledge to produce some great looking PDF. It also allowed a lot of flexibility if you are good at both.
Never the less, Latex has still one big advantage: Latex is well designed to produce good looking documents even though you are not an expert on typography and page layout. Additionally it is thousands of ready made packages and kind community that can help solving many existing problems. So maybe after all, Latex is not going away so fast!
Friday, March 16, 2012
The weired Indexing in Perl
I am learning Perl. I am doing it with a lot of a resentment, but I am slowly learning it.
Normal people count from 1. Computer Scientist count from 0. Perl developers count from -1?
WTF?
Normal people count from 1. Computer Scientist count from 0. Perl developers count from -1?
WTF?
oz@server ~ $ test.pl test num of args 0 oz@server ~ $ test.pl test test num of args 1 0 test 1 test oz@server ~ $ test.pl num of args -1 No arguments! oz@server ~ $My Code, just in case I am totally wrong about this here, :
$ cat test.pl
#!/usr/local/bin/perl -w
print "num of args $#ARGV \n";
if ( $#ARGV > 0 ){
for ( my $i = 0 ; $i <= $#ARGV ; ++$i ) {
print "$i\n";
print "$ARGV[$i]\n";
}
}
if ( @ARGV > 0 )
{
print "Number of arguments: " . scalar @ARGV . "\n";
}
else
{
print "No arguments!\n";
}
Labels:
Perl,
Programming,
Sysdamin
Friday, February 24, 2012
VIM Quicky: set tabs and spaces behaviour for different files
Never really bothered me before, because I only used Python and C, so I always replaces tabs with spaces.
However, with more C programming lately, I needed to start working with Makefiles. These require tabs instead of spaces.
So here is how to. In the end of my .vimrc file I put:
Et viola, not so complicated!
However, with more C programming lately, I needed to start working with Makefiles. These require tabs instead of spaces.
So here is how to. In the end of my .vimrc file I put:
" python python pyhton " convert tabs to spaces before writing python files or C files autocmd! bufwritepre *.py,*.c,*.h set expandtab | retab! 4 " convert spaces to tabs when reading python file or C files autocmd! bufreadpost *.py,*.c,*.h set noexpandtab | retab! 4
Et viola, not so complicated!
Labels:
C,
python,
Scientific Programming,
vim
Wednesday, February 22, 2012
Open Hardware - a short list of alternatives
I have been waiting quite a while to write this post. I think it's about time that people who want to write FOSS and support FOSS will also buy hardware from manufacturers that support it. One good way is to buy directly hardware which is designed like that.
So here is a list of stuff I can really recommend or I'd like to buy:
1. Portable Music Player with rockbox:
Sansa Clip+, by itself this little player is not open source or open hardware. However, it is cheap and reliable and runs rockbox. And that is really the best thing about this player. The original firmware comes with pretty limited and dumb interface, it does not support playing OGG or FLAC files, for example. Installing rockbox on this player enables that, further more, rockbox has many cool plugins. A favorite of mine is the simple Stopwatch which allows me to measure times when I jog.
I wish someone in Sandisk would realize how redundant it is to make their own firmware, and they would just adopt rockbox officially. After all, another cool thing about this player is its expansion slot for reading Mini-SD cards.
Rockbox has made me more satisfied with this player, and left me astonished when I saw the user manual, it is maybe the user manual I've seen for an open source project (except maybe the FreeBSD handbook).
2. Router+File Server
I think I am not very wrong, if I say that most people I know has a home wireless network. Good chances that this W-LAN router is running some kind of Linux based OS with a web interface. The advanced users can try and replace this OS with a user friendlier and more capable OS like OpenWRT or DD-WRT.
But what is better than buying a device which is already pre-installed with one? Here is a Linux Friendly router, the Buffalo WZR-HP-G300NH, this is the Wiki page dedicated to this little router, and there is a very good blog documenting that router what you can do with it.
Right now, my Buffalo is running a File server, and of course the W-Lan and I am very happy with this 40 USD embedded computer. I'm so happy with it, that I might get another one, and install full blown Debian on it.
3. Tablets
It's been a while that I am thinking of buying my own tablet or an e-book reader. However, I'm late to join the crowds and I don't want to pay money for computer that I need to break into to get a root password. There for this rules out 99% of the Android tablets and others.
I just ordered 2 spark devices. These little machines are pure Linux (not Linux with Handcuffs.)
But there are other devices which have Linux on them, such the Smartbook or WeTab.
4. Laptops
Well, there are many by now. And it's good, I've compiled a small list of laptops sold with Linux.
If you have suggestions to this list please let me know!
So here is a list of stuff I can really recommend or I'd like to buy:
1. Portable Music Player with rockbox:
Sansa Clip+, by itself this little player is not open source or open hardware. However, it is cheap and reliable and runs rockbox. And that is really the best thing about this player. The original firmware comes with pretty limited and dumb interface, it does not support playing OGG or FLAC files, for example. Installing rockbox on this player enables that, further more, rockbox has many cool plugins. A favorite of mine is the simple Stopwatch which allows me to measure times when I jog.
I wish someone in Sandisk would realize how redundant it is to make their own firmware, and they would just adopt rockbox officially. After all, another cool thing about this player is its expansion slot for reading Mini-SD cards.
Rockbox has made me more satisfied with this player, and left me astonished when I saw the user manual, it is maybe the user manual I've seen for an open source project (except maybe the FreeBSD handbook).
2. Router+File Server
I think I am not very wrong, if I say that most people I know has a home wireless network. Good chances that this W-LAN router is running some kind of Linux based OS with a web interface. The advanced users can try and replace this OS with a user friendlier and more capable OS like OpenWRT or DD-WRT.
But what is better than buying a device which is already pre-installed with one? Here is a Linux Friendly router, the Buffalo WZR-HP-G300NH, this is the Wiki page dedicated to this little router, and there is a very good blog documenting that router what you can do with it.
Right now, my Buffalo is running a File server, and of course the W-Lan and I am very happy with this 40 USD embedded computer. I'm so happy with it, that I might get another one, and install full blown Debian on it.
3. Tablets
It's been a while that I am thinking of buying my own tablet or an e-book reader. However, I'm late to join the crowds and I don't want to pay money for computer that I need to break into to get a root password. There for this rules out 99% of the Android tablets and others.
I just ordered 2 spark devices. These little machines are pure Linux (not Linux with Handcuffs.)
But there are other devices which have Linux on them, such the Smartbook or WeTab.
4. Laptops
Well, there are many by now. And it's good, I've compiled a small list of laptops sold with Linux.
If you have suggestions to this list please let me know!
Wednesday, January 18, 2012
UEFI Secure booting is good for Linux
Microsoft will block non Windows on the ARM platform. Big deal. It is if installing Linux on any other Laptop is easy. Sure you can install Linux on most Laptops today. But does it really work? Do you get the same battery time with Linux as with Windows? Nope. Do your multimedia Keys work? In 90% of the cases only partially. Does your computer suspend or hibernates as in Windows? in about 50% of the cases the answer is no. Does your Graphics Card works the same as under Windows ? NOPE.
So, the situation is like this: OEM A makes a deal with M$ and writes proper drivers to the hardware and SomeUser Joe gets a hardware which works perfect with Windows 7. Later, SomeUser Joe, installs SomeCrack for SomeCoolSoftware which contains a Trojan which he can't get rid of. After some frustration, he decides to quit with this M$ thingi and give Ubuntu a try, because he heard it's cool. He than tries Ubuntu and discovers some things don't work. Here our little story splits.
First possibility, the Linux Sucks possibility. SomeUser Joe, is frustrated, his computer will freeze every time he resumes it from suspend. Or the graphics card is slow, or the Fan always works loudly. Linux Sucks. Period. SomeUser Joe, bites it, and installs Windows 7. His next computer will be Apple.
Second possibility, the Linux has a cool community, SomeUser Joe, heard about it and wants to join. So, he files another bug, which might be taken seriously, or not, in Ubuntu's bugzilla. This bug might find it's way upstream to the Kernel developers and they might solve it, but the patch will only be in the next release of Ubuntu maybe in 6 months from now. Damn speculations. But Linux works at most. So, in 3 years from now SomeUser Joe, might look for a new Laptop, without the Windows Tax, and will save a scrap of 50 bucks, which he will spend 100 times more money in working hours value digging through forums and IRC channels trying to get he's M$ free Laptop to work.
Third Possibility, SomeUser Joe buy his next Laptop with Linux pre-installed. Hell yes! UEFI is a great thing. I wish all M$ devices would never run Linux. It will force Linux fan boys to see that by saving $50 to $100 dollars buying a Laptop from OEM's which sell Windows, they sleep with the Devil. UEFI is a great opportunity to Linux and FOSS, because we have a great OS in our hands and now we have also Free Hardware like the BeagleBoard, PandaBoard, RaspberryPi and even the GTA04.
There are some small companies the sell Linux laptops which have the latest trends in hardware. If there are just 1 Million Linux users and just one third of them will buy a new device this year, that is about 300,000 laptops sold with Linux. I think this is a huge jump in sales for a small company like ZaReason or System76. They would be then more then able to go out on a broad campaign putting Linux on the main stream student Laptop.
So, please, stop whining about UEFI. Just don't buy laptop from OEM like Dell or Lenovo or Acer or Asus. There are ENOUGH alternatives for Preinstalled Linux Laptops. Here is a short list:
If you happen to know of others, please let me know through a comment!
(P.S. Dell don't count! Dell's Ubuntu offering mock Linux users, offering a free OS with lousy hardware which costs more than the Windows installed laptops with cost cheaper for better hardware. Just because of this mockery, I will never recommend any customer of mine or buy myself any product of Dell).
So, the situation is like this: OEM A makes a deal with M$ and writes proper drivers to the hardware and SomeUser Joe gets a hardware which works perfect with Windows 7. Later, SomeUser Joe, installs SomeCrack for SomeCoolSoftware which contains a Trojan which he can't get rid of. After some frustration, he decides to quit with this M$ thingi and give Ubuntu a try, because he heard it's cool. He than tries Ubuntu and discovers some things don't work. Here our little story splits.
First possibility, the Linux Sucks possibility. SomeUser Joe, is frustrated, his computer will freeze every time he resumes it from suspend. Or the graphics card is slow, or the Fan always works loudly. Linux Sucks. Period. SomeUser Joe, bites it, and installs Windows 7. His next computer will be Apple.
Second possibility, the Linux has a cool community, SomeUser Joe, heard about it and wants to join. So, he files another bug, which might be taken seriously, or not, in Ubuntu's bugzilla. This bug might find it's way upstream to the Kernel developers and they might solve it, but the patch will only be in the next release of Ubuntu maybe in 6 months from now. Damn speculations. But Linux works at most. So, in 3 years from now SomeUser Joe, might look for a new Laptop, without the Windows Tax, and will save a scrap of 50 bucks, which he will spend 100 times more money in working hours value digging through forums and IRC channels trying to get he's M$ free Laptop to work.
Third Possibility, SomeUser Joe buy his next Laptop with Linux pre-installed. Hell yes! UEFI is a great thing. I wish all M$ devices would never run Linux. It will force Linux fan boys to see that by saving $50 to $100 dollars buying a Laptop from OEM's which sell Windows, they sleep with the Devil. UEFI is a great opportunity to Linux and FOSS, because we have a great OS in our hands and now we have also Free Hardware like the BeagleBoard, PandaBoard, RaspberryPi and even the GTA04.
There are some small companies the sell Linux laptops which have the latest trends in hardware. If there are just 1 Million Linux users and just one third of them will buy a new device this year, that is about 300,000 laptops sold with Linux. I think this is a huge jump in sales for a small company like ZaReason or System76. They would be then more then able to go out on a broad campaign putting Linux on the main stream student Laptop.
So, please, stop whining about UEFI. Just don't buy laptop from OEM like Dell or Lenovo or Acer or Asus. There are ENOUGH alternatives for Preinstalled Linux Laptops. Here is a short list:
If you happen to know of others, please let me know through a comment!
(P.S. Dell don't count! Dell's Ubuntu offering mock Linux users, offering a free OS with lousy hardware which costs more than the Windows installed laptops with cost cheaper for better hardware. Just because of this mockery, I will never recommend any customer of mine or buy myself any product of Dell).
Labels:
ARM,
Hardware,
Linux desktop,
Windows
Subscribe to:
Posts (Atom)