Category: operating system
After the last Apple keynote, the news on Mac Book Pro, and the exorbitant price, I took part of this Sunday to look back to Linux as a Desktop. Although I work usually on a 2011 Mac, that runs perfectly (just some bumps), I have a Lenovo laptop. So, I decided to install the Linux distribution I have been using lately for my servers: debian.
First I downloaded the netinstall image. It complained of missing drivers for wi-fi and ethernet. Then, I downloaded the non-free netinstall image. Same behavior.
Well, decided to keep it, and use a USB stick to install the missing packages. After going from/to my mac to download missing packages and dependencies, I got something. The card is detected, the correct (at least it seems) module is loaded, ifconfig shows the device, but ifup fails to bring it up.
After googling and fighting with wpa (first I was thinking this was the problem), I found out that Linux was just deciding that it couldn’t load the interface, and mentioned something about rfkill, that I am not sure what it is.
Googled a little more and found articles saying that my Lenovo has some other wireless card than the one listed by lspci. Strange.
In any case, the day is almost over, and I need to get back to my job. My conclusion so far is a quote from an old teacher, now a friend: Linux is still a Cowboys operating system.
Not sure about all Linux distributions, but debian for sure.
Usually I do not play much on my Android phone. But when waiting for someone or something, to have a good puzzle is worth it.
Slitherlink, as you can look up in the Internet, is not an idea of this app author. It is a known puzzle, and if you look up in Google Play, you will notice a few implementations.
I can’t say that this one is the best, as I did not test any other. But it installed correctly, runs smoothly, and seems to have some good diversity of modes and difficulty levels. Therefore, I am quite happy with it, happy enough to consider buying the ad-free version, with extra levels. Truth be said, the free version includes a good mount of levels, and ads are not intrusive. So, kudos for that.
About the game, it is up to you to read about it and test it. It can be seen as some sort of minesweeper, with some reasoning mechanisms also used in sudoku.
Paper is probably the best, as you can write freely, draw, scratch, rip, and other physical activities that are quite fun. But, unless you get a small notebook, it gets hard to be with you all the time. You could also scratch on a smart phone device, like Samsung S Note app. But when I am working in my laptop, I do not like to have to take the phone to add or remove entries. So, next natural step is to use a tool that syncs tasks between devices.
Wunderlist is cool. Cool enough for me to use it for some time. It has the fun fact that it keeps finished tasks scratched, just like you might do in paper. Nevertheless, the app is (or was, when I tried it) quite limited. You could have different todo lists, but it was hard to see them all at once. You could add some manual tags to tasks (I did that for some time), but it got boring. And it wasn’t easy to sort tasks. You needed to, somehow, change its date.
I tried for some time Evernote for that. It allows to add tick boxes to your notes. But again, not easy to see all tasks in one screen, unless you add them all in the same sheet. And if you do, it gets complicated to manage the order, and the categories, with lots of cut, copy and paste.
So, recently I am using Any.DO. It is also available for Mac, Web, and Android, so easy to sync around. And it has three main ways to see your tickets: per category, per time, or per importance. And in each of these three views, you can sort easily your tasks just by moving them around. I am very satisfied (for now, at least) with it. But I still wonder how much more fun and efficient it might get with the paid version. But a monthly (or yearly) subscription is not exactly what I want right now. Nevertheless, if I could buy the app (and not a service) I might be buying it soon.
Mostly sure you recognize this screen from Windows 8.1. This is the default picture, at least for some Windows 8.1 installations, used in the lock screen. A lot of users do not change it, as it is used in a few circumstances. Nevertheless, I changed it. And it made me shiver on Windows 8.1 implementation details. Although it is really fast booting, when compared with other Windows versions, I still see things I would prefer not to. Namely, before the picture I chose for the lock screen be shown, the screen flickers and I see.. yes, the default picture shown above. This means that the operating system is loading this image from disk, even when it is not needed. Couldn’t the system load the user defined picture and, only if it does not find it, load the default picture? Wouldn’t that be faster?
Also, Windows 8.1 is out, a lot of fixes, and the “dots animation” on the busy screens are not yet fixed? Any of my students would make that animation correctly. Yeah, look to it with caution, and you’ll see what I mean.
I am no expert, so I am sorry if I say anything wrong. Please correct me, in that case. But I had some experiments installing Windows 8.1 from DVD into a recent Lenovo laptop, and had some issues with hard disk drive and the format it was into.
Well, it seems that recent laptops (and probably also workstations) use a new kind of format to store the partition table of the disks. It is, somehow, related to EFI. So, if you have a disk drive in EFI mode, you will be able to create more than 4 primary partitions (no need for creating an extended one, and then create others inside).
If you try to install Windows 8.1, 32 bits, it will expect a disk to be in MBR (master boot record) mode. If your disk is in EFI mode, your best solution is to delete all partitions (be careful, you will lose data) and create new ones. Probably you will need to delete them all, use the next button and let Windows use the entire disk, or if you want a specific partition schema, cancel the installation, reboot, and with luck you will be able to create a typical MBR partition table.
The other way around, if you try to install Windows 8.1, 64 bits, it will expect a disk to be in EFI mode, and if it is in MBR mode you will need to… you guess it… delete all partitions, and go next.
You might also find gParted to be helpful in this process.
Another interesting information: Windows 8.1 32 bits does not detect a Full HD display. With the 64 bits display, installation procedure was all in Full HD. Also, the 64 bits was able to pull drivers automatically (namely for wireless). The 32 bits didn’t.
I am not sure if you remember the Tamagotchi at all. It was a small device, kind of “Chinese electronics” (sorry, I know most electronics are made in China anyway, so not sure why the ones that does not have a non-Chinese mark are mostly so creepy), where the child needed to take care of a pet.
Probably there were other games with similar behavior, but this is the first game that I remember that needed constant attention, as it worked in real time. From time to time, the device will ring and flash, asking the player to do something, like feeding the pet, or playing with it.
From Tamagotchi we got to different other games with real time behavior. Probably the most common is the FarmVille, the game from Zynga. You all know the game, so probably I do not need to talk about it. But the player is a farmer, and needs to take care of animals. Events occur from time to time, if the player is playing, or not. So, it cannot be compared with other games like the old Sim City. There, things happen from time to time, as well. But the player can change the speed of the time, or just exit or pause the game, getting to the last position next time it plays.
Well, the kind of FarmVille games continues. There is another one, very similar, for Android, Hay Day. Probably there are much more. But I just happen to have installed that Hay Day some time ago, as I really liked the chicken on its icon.
Well, recently I just downloaded SimCity Build It for Android, from Electronic Arts. You know, I am, or I was, a SimCity fan. So, why not to get a SimCity version and play it? Who knows, even buy it?
But I got frustrated. Why? Because SimCity Build It is Hay Day (or FarmVille) in disguise. The mechanics are exactly the ones from Hay Day. Even the market! But if Hay Day is prepared with some caution (for example, to make a strawberry cake, you need flour, sugar and strawberries), in SimCity Build It, to build a house, you might need some iron, plastic or some wood. But you might also need some seeds, or a couple of hammers or even a measure tape. Yes, you might need seems to build a building. Yeah, that makes sense (not).
And, again, this is a “real time” game. You can’t pause it, you can’t exit it, you can’t speed forward for some time. You do not control or play the game. The game plays you.
This also leads to the discussion on the old “Pay to play”, or the new “Pay to win”. I confess I prefer the first. You might even release a free shareware version (lets say, 5 free levels). Just make that clear in the download page. Then ask for some amount of money to buy the full game. But this might be a good discussion for any other future post.
For now, iOS7 main difference from previous versions, is that its maps icon does not ask the driver to jump out a bridge. Finally!
The episode was stored on a SD card. It is not a fast SD card (class 4), but should suffice. The file was encoded with Matroska (MKV) in 720p. So far, so good.
Asked a friend about what player he would recommend. he said there were two, but just reminded of one name: MX Player.
Nevertheless, I didn’t like to notice that MX Player free version has advertisement, and therefore decided to try VLC. I use it on my Mac, and I like it (and its icon), so, why not test?
VLC installed cleanly, but when playing, it wasn’t able to render a single frame. From 5 to 5 seconds it changed the frame, but full of noise and encoding blocks. Gah, #fail.
Then, if VLC doesn’t work, let’s hear my friend suggestion, and try MX Player. Installed the free version, and then, needed to install the codecs package. Didn’t like much this approach… it could download the codecs itself, why to hide them in an app. Nevertheless, it installed with more or less effort. When playing, it was able to render the image perfectly, with acceptable number of frame per seconds (don’t ask how many, I don’t know, but enough to watch smoothly the video). The problem was that I could just watch the video, as there was no sound at all. No, it wasn’t a volume problem. Neither an option. As far as I could get after googling a little, there are more people complaining that MX Player doesn’t play sound when watching a Matroska file. Weird. #fail.
In one of those googling, somebody said he converted the Matroska file to MP4 with Handbrake. That is too much trouble for someone like me. But somebody else said that BSPlayer had a free version for Android that worked. Righto! Downloaded it, it installed cleanly and played the video at first. #win.
Today I waste all my afternoon trying to solve a problem with Perl versions and DotCloud. I say I wasted the afternoon because I could not solve the issue during the afternoon, only in the beginning of the night.
Enough complain, and let me explain what was going on. Yes, this post is a little as a complain to the DotCloud tech guys, but also as a guide to someone that stumble in a similar situation.
I had a service running with Dancer. It worked, it connected perfectly to the database. Next step was to set up a cron job to fetch some data from the Web. I added its dependencies in the Makefile.PL file for the website, and hoped that the deploy system would install them. But the cron job continued failing. I tried to force its installation, but the deploy system said it was up to date. Something wrong was going on. I forced a little more the installation, adding the URL to the module tarball. This way the deploy system could not guess its version, and therefore, would install the module anyway. It worked, but the deploy system continued complaining about other and other module.
It got stranger when the cron job complained about the lack of the DBI module. Hey, how can it be, if the website is running and using it? Well, DBI is based on C code, so probably I am missing to include a sub-folder of the local module installation. And then, it got clearer: the cron job complained that the version of DBI.so could not be loaded into Perl because of unresolved symbols. Aha! Then, there are two Perl versions.
And indeed, the web application was running Perl 5.14.x (I requested it on my DotCloud configuration file) and the Perl used by the cron job was Perl 5.10.x. Basically, DotCloud folks keep the system Perl, and install custom Perl versions under /opt/perl5, and creates some symlinks there, so that /opt/perl5/perls/current points to the Perl version requested.
So, the solution is to make the cron job use the correct Perl version. In my case I set the full path, but you could change the PATH environment variable in your .bashrc-like file.
This wasn’t that hard, but it was quite time consuming, because deploys take some time. Probably I could get faster if I remembered to test Perl versions right ahead, but I forgot to.
I suggest DotCloud guys to do one of two things: or document this in the same doc where it is explained how to request a specific Perl version, or fix the damn environment so that cron jobs and other code uses the same Perl version as the one requested by the system.