Archive for the ‘unix/windows’ Category

I don’t think so, Microsoft!

Monday, December 16th, 2013

Upgrading to Windows 8.1 is “free”… all you have to do is give Microsoft your email address.
Wait, what? That doesn’t sound free at all!

Indeed. Actually, it is possible to install Windows 8 / Win 8.1 without a Microsoft account, but it’s unbelievable hidden. In other words: please send us your email address, and also please the password you’re using on your home machine.

I don’t think so, Microsoft.

In a nutshell:

  1. Follow the install (express or custom apparently doesn’t matter), until the point where it asks you to sign in with your microsoft account.

    Notice how it says “next time you log into this device, you’ll use your Microsoft account”? Yeah… NUH-UH!
  2. At the bottom, it says “Don’t have an account yet? Create an account”. Click that.
  3. On the new page, ignore everything except for the message at the bottom “Log in with my existing account”.

Yeah, you’re not getting any of my personal details, and you’re NOT getting any of my passwords. :P!

PS1: I got Microsoft on the laptop to lose some weight! Currently I have 73.9 GB free (vast improvement over the 52 GB free I saw earlier today).
Tricks I used:

  • Tweak hybernate file size to 50%: powercfg -hibernate -size 50
  • Reduce pagefile size to 2 GB (seriously, it was 10 GB… that’s not why I upgraded the amount of RAM in there). Quick guide: Windows Explorer > Right click on “my computer” > Choose “advanced system settings” on the left > Choose “performance settings” > Go to tab “Advanced”.
  • Deleted a truckload of installed apps and some pre-installed software, see e.g. here and more tips here.
  • Ran “disk cleanup”, which gets rid of all sorts of temporary files. At one point (aborted upgrade to Win8.1) there was about 6 GB of that slushing around my system. Which is about 6% of the hard disk… pffffft!
  • Installing Win 8.1 seems to have had a good effect too: the disk size changed from 96.6 GB to 101.2 GB. Yep, can’t explain that one, but don’t mind.

PS2: Laptop is almost ready for repartitioning and installing Ubuntu. Finally.

New laptop (MS, wherefore art thou so fat?)

Sunday, October 27th, 2013

I bought a new laptop (cool thingy, it’s a Toshiba Z930 with mem upgraded to 10 Gb, ghi ghi). The specs are really cool: it’s the lightest ultrabook out there (at the time of writing), and while it doesn’t have 1080p resolution, it does do 1366 x 768. Moreover, it’s the only ultrabook which also offers VGA and Ethernet ports. Yeah, these might become obsolete, but I’m an academic, and given the expected upgrade cycle in most universities (“if it ain’t broke, don’t replace it” sums it up nicely), I need that stuff.

I haven’t had time to play with it, I hardly had time to start it up myself. I read that Win 8.1 came out, so I figured to start it up and try to get that on my system – yes, I’ll go for dual boot with Ubuntu (or something else like Mint). Now I have a really cool SSD drive in there – which is not that big. More specifically, it’s 128 GB. Currently, the unusued windows partition is leaving me with 50 GB usable space of that. I started doing windows update, which kept repeating and repeating, every time ending with a reboot and more updates to install. The first update required me to download over 1 Gb of updates. And that was nowhere near the end of it. I was down to 50 GB out of 128 GB (unformatted) before I started this, and your updates are eating away gigabytes of that???

Seriously, Microsoft, go jogging. You’re becoming too fat to sit on my disk.

Skype on Ubuntu 12.04-64 bit

Wednesday, March 20th, 2013

here’s what did work for me.
(sorry for the short post, in a hurry!)

Unity crashes on Alt-Tab (Ubuntu 11.10)

Thursday, February 21st, 2013

So, there’s a bug, where Unity (Ubuntu’s window manager) crashes on Alt-Tab. It’s been fixed for a year now in the newer Ubuntu’s, but those of us running the old stuff… we’re stuck.

Unless, of course, we follow the advice in one of the comments:

  • Install “compizconfig-settings-manager”
  • run “ccsm”
  • go to “Ubuntu Unity Plugin” -> Switcher
  • disable all key bindings.
  • Go back to the main screen and enable “Static Application Switcher”.
    (If you do it the other way around, you will get segfaults.)

It gives you a more limited switcher (only to windows on current desktop). On the other hand, this one switches to windows instead of applications — so no more annoyance trying to switch to the right window of an application that you’re running 10 times (such as a terminal window).

SokoBan 2012 released!

Friday, January 4th, 2013

Arnout de Mooij and I are proud to announce the first official release of SokoBan 2012! This is a classic version of the game Sokoban, completely programmed by Arnout and myself. We started programming this around the time we both just had access to pentiums. Or perhaps even slightly before. Well, it took so long this game can go straight into nostalgia haven!
Sokoban menu

Quick install

  1. download and unzip soko2012.zip
    Android users: you’ll need an unzip utility.
  2. install DosBox 0.74 or higher
  3. For Windows only, here’s how to create a shortcut (see also the below picture):
    • Go to the Desktop.
    • Select the DosBox icon.
    • Press Ctrl+C and then Ctrl+V to copy the shortcut.
    • Right-click, select “Properties”
    • At the end of the field “Target“, add the full path of soko2012.exe.
      E.g., if “Target” was "C:\Program Files\DOSBox-0.74\DOSBox.exe" -userconf, and the files were extracted to C:\Users\hugo.jonker\Downloads\sokoban\, then “Target” should become "C:\Program Files\DOSBox-0.74\DOSBox.exe" -userconf C:\Users\hugo.jonker\Downloads\sokoban\soko2012.exe.
    • Change the field “Start in:” to point to the folder where you extracted the zipfile.
      E.g., continuing the previous example, “Start in:” would now become C:\Users\hugo.jonker\Downloads\sokoban\.
    • Change to the Tab “General” and rename the icon to SokoBox.

Shortcut icon properties

To play:

  • Unix: run startsoko.sh from the command line.
  • Windows: Double-click the SokoBox icon.
    Potentially the game runs slow, press Ctrl+F12 a few times to speed up DosBox.
  • Android: Run DosBox and enter the following commands:
    • cd Downloads\sokoban
    • soko2012.

Screenshots

Sokoban's level selector Sokoban's image sets
Sokoban lvl 6 in play playing lvl 5

Features

  • 48 completely original fields
  • 22 completely original, totally not-ripped graphical sets, including:
    • a fastfood-themed set
    • a halloween-themed one
    • a crisis-themed one (bring your money to the bank)
    • a Sinterklaas-themed one
    • a christmas-themed one (notice that Sinterklaas != Santa)
    • a few inspired by videogames of the 8-bit era
    • and more!
  • a stand-alone level editor
  • a stand-alone graphics editor (heavily updated in 2012!)
  • Keeping tracks of 2 types of highscores:
    1. the best efforts (least moves, then quickest) for the first 10 levels
    2. the 10 players who got the farthest completing all levels
  • A player-state saving system, so that you could continue to improve your score for the 2nd type of highscore
  • Level selector with thumbnails of the levels
  • a demo mode (don’t touch any key for a while in the beginning, and the game will play one of the first 20 levels).
    Pointless? FUN! :)
  • Opening and ending scrolling titles
  • Insanely trivial-to-break encryption scheme for said titles :)
  • And, lest we forget: CHEATS! Including a complete internal level editor. I kid you not.

System requirements

Yeah, that’s sort of it. This game was in development for a while, and unlike Duke Nukem Forever, we never deviated from the original specs. Sure, we need some memory (640K is enough :),  CPU (press Ctrl+F12 to speed up, Ctrl+F11 to slow down — these are dosbox controls, not ours), and some graphical requirements (stock VGA modes). Really, your smartphone can handle these. With two fingers in its nose.  :)

Development history

Question: what does this version of Sokoban have in common with such pretentious names as Guns n’ Roses’ Chinese Democracy, or the game Duke Nukem Forever?
Answer:

  • Chinese democracy: in development 1998-2008
  • Duke Nukem Forever: in development 1997-2010
  • Sokoban by us: in development 1994-2012

Message to take home: all good things deliver. Alternatively: not everyone can maintain their development quality as long as Arnout and I can :)

Thanks

Big thanks due to everyone who helped and inspired us. You’re probably named in the titles already!

Questions/comments

If you have any questions or comments, don’t hesitate to contact me!
If you’re reading this blog, you ought to know how :)

Gnome tidbits

Wednesday, April 25th, 2012

Gnome logoJust came across 2 tidbits. One wasn’t enough to post, but two… I had to ;-)

1. Remove annoying “hover over me” scrollbars

(From WebUpd8.)

In the newer versions, Gnome did away with the scrollbar. There is this scroll-hint which, if you hover over it, changes into something with buttons. Which you cannot click, because the exact center of the two buttons (up/down or left/right, depending on vertical/horizontal scrolling) is projected below your mouse.
It is annoying. It confuses me every single time. But, the good news: it is not necessary.

  • Fix 1: sudo echo "export LIBOVERLAY_SCROLLBAR=0" > /etc/X11/Xsession.d/80overlayscrollbars
  • Fix 2:
    1. apt-cache search 'liboverlay-scrollbar', and remember these packages (e.g. as $PKG-TO-DELETE),
    2. sudo apt-get remove overlay-scrollbar $PKG-TO-DELETE.

The search gets around the problem of slightly different package names (version number changed) between Ubuntu 11.04/11.10/12.04.
On a related note: stop putting your version number in the package name!

Split Nautilus window in two for easy moving

(From a Slashdot comment)

Either fix ought to work. The first leaves the packages and modifies behaviour, while the second nukes the functionality. Haven’t tried either yet, curious though.

Ever need to move a file from one place to another?
Open Nautilus (i.e., “Places”). In the window, press F3.
Ta – (explitive deleted) – daaaa!

Wish I had known that sooner.

Scrollbar shrinking

Monday, October 17th, 2011

Ubuntu logoSince I am using a tiny tiny computer, I like tiny tiny scrollbars.
To do this:

  1. sudo apt-get install gnome-color-chooser
  2. launch: System->Preferences->GNOME Color Chooser
  3. Under Tab: Specific, you can change the scroll bar width. Then Click Apply.

Ubuntu music player Banshee won’t stop.

Saturday, October 1st, 2011

Ubuntu logoThis thread and this bug are amazing. Apparently, “they” decided that when music is playing, and you close the player, the window will go away, but the music will continue. WTF?! Why the *BLEEP* did you think I was closing that window? Because I couldn’t find the damned minimize button???

Seriously, this “innovation” allows your computer to play music without any GUI. Nice huh? You clicked to start, but if you want to stop: open a terminal and issue a command (either banshee –stop or just kill the bastard).

I know the difference between a friggin’ minimize button and a close button. I want to quit the application, not the GUI. Stop treating me like a baby and stop thinking you know what’s best for me.

Edit: worst thing: you set it to play one song, quit the GUI, and it plays one song. And then the process sits there, wasting mem/cpu cycles. *ANNOYANCE*

Edit2: Okay, I’ll just give up on all these new-fangled media players. I never got the fad, I was curious, but with annoyances piling on annoyances… Let me just compile/install the old XMMS myself. Sure, nowadays it doesn’t play nice with the sound system. But it also quits when I tell it to — apparently an uncommon feature nowadays.

Ubuntu remembering the PIN code for broadband connection?

Friday, September 30th, 2011

Ubuntu logoIn old versions, Ubuntu asked for the PIN code of my broadband 3G connection once, and then remembered it from then onwards. With the shiny new PC with shiny new Ubuntu, I’m greeted by this pop-up every time I log on.

Enough, I say. I just clicked on the connection, chose “Edit Connections”, edited the broadband connection and entered the PIN code (as well as setting the “available to all users” and “connect on login”-alike options, because at home, I want those anyway).

Didn’t test yet if Ubuntu will now remember, but have hopes. Too lazy to reboot though ;-)

Edit: This Ubuntu bug seems relevant… and dashing my hopes of not having to type in the PIN any more.

FireFox, wherefore art thou obstinate? (add http:// back)

Friday, September 30th, 2011

Firefox logoFireFox now automagically gives you its latest and greatest… whether you want to or not. Perhaps ok, perhaps not. But: some things change. Things I do care about. I don’t like someone assuming I’m okay with them in this fashion.
Anyway, rant over.

The new Firefox (shiny new version 7, at least new right now) removes the standard url prefix “http://”. I like that prefix. So, let’s add it back!
From somewhere on the web:

To restore the “http” prefix:

  1. Type “about:config” in the location bar and press Enter.
  2. Toggle the “browser.urlbar.trimURLs” preference to change its value to “false”


And Firefox behaves again.