juni 2013
M D W D V Z Z
« jan    
 12
3456789
10111213141516
17181920212223
24252627282930

Taal

Categorieën

Meta

Websnack: dijit.form.Select of dijit.form.ComboBox

By Bart | september 16, 2011

Als je een dijit.form.Select gebruikt met heel veel items, dan wordt deze traag, en rendert ie niet goed (de lijst heeft geen scrollbar). Gebruik je een dijit.form.ComboBox dan is dat probleem opgelost. dijit.form.ComboBox heeft niet per se itemstore nodig, een HTML <select> list werkt goed. dojoType=’dijit.form.ComboBox’ erbij en klaar.

Opmerking: dit werkt niet als je een ‘value’ in je <option>s hebt staan; de ComboBox pakt altijd het label.

Topics: Geekstuff, Snack | Geen reacties »

Geheugengebruik in Linux met het ‘free’ commando

By Bart | augustus 31, 2011

Na wat geheugenproblemen op een server ben ik het eens goed gaan uitzoeken: wat betekenen de getallen in het free command in Linux/Unix eigenlijk? En ik vond het antwoord in een forum:

bf@tbwb-dt-bf:~> free -m
             total       used       free     shared    buffers     cached
Mem:          3978       3848        130          0         28       1985
-/+ buffers/cache:       1834       2144
Swap:         2055          0       2055

Wat betekenen al die getallen nu eigenlijk? Wel, de eerste rij is je fysieke RAM. Wat er dus feitelijk aan geheugenchippies in je computer zit. En daarvan wordt gemeld wat er nu eigenlijk precies in gebruik is. Dus, zowel door applicaties, buffers, kernel, caches, etc. (In dit geval in megabytes, vanwege de -m optie bij free.)

Maar, zoals we allemaal wel weten, cachet de Linux kernel dat het een lieve lust is. Alles wat ie leest en ontvangt zet ie meteen in het geheugen. Er is immers meer dan zat meestal. Dat zijn die ‘buffers’ en ‘cached’ getallen. Die zijn dus wel degelijk in gebruik in geheugen, maar als een applicatie RAM nodig heeft, zal de kernel die buffers vrijgeven. En het gevolg daarvan, staat in het regeltje eronder. Onderstaand schema toont dat:

bf@tbwb-dt-bf:~> free -m
             total       used       free     shared    buffers     cached
Mem:             T          U          F          S          B          C
-/+ buffers/cache:      U-B-C      F+B+C
Swap:           TS         US         FS

De getallen in de tweede rij zijn dus de gebruikte en vrije RAM voor applicaties. ‘used’ minus ‘buffers’ minus ‘cached” is in gebruik door applicaties; ‘free’ plus ‘buffers’ plus ‘cached’ is beschikbaar voor nieuwe. En als dat op is, dan komt de OOM-killer in actie. Maar daar zullen we het nu maar niet over hebben.

Topics: Opinie | Geen reacties »

qTranslate: BBB nu ook multitalig

By Bart | augustus 3, 2011

Dankzij qTranslate is Bart Blogt Beter nu multitalig. Uitgezocht om onze TBWB website twee (of meer) talig te maken, eerst even uitgeprobeerd hier. En het werkt verbazend goed. Zoals je ziet is er nu een taalkeuze bijgekomen. En deze post is de eerste die volledig twee talig (Nederlands en Engels) wordt aangeboden.

Topics: Opinie | 1 Reactie »

Een glas wijn …

By Bart | mei 15, 2011

Een glas wijn. De enige stille getuige van de gebeurtenissen deze avond. De scheur als litteken van het gevecht dat zich nog steeds afspeelt. En het begon zo mooi, een mooie fles, lekker eten. De twee zouden vanavond de boel wel eventjes rechtzetten. Er was zoveel gebeurd de laatste jaren dat ze steeds verder uiteen dreef. Stomme misverstanden en elkaar ronduit belazeren waren geculmineerd in een status quo waarbij ze elkaar geen stom woord, nog geen blik waardig gunden.

Maar het bleven toch broers. En het feit dat ze samen in het kleine appartement woonden, maakte één en ander er niet eenvoudiger op. Op een bepaald moment was het genoeg. Als tweeling kwamen ze tegelijk op hetzelfde idee. Gewoon aan tafel. Goede wijn, lekker eten. En een stevig gesprek. Het was nooit de bedoeling geweest immers om elkaar zo dwars te zitten.

Het eerste uur was gevuld met zwijgend eten. Door hun aandoening sloeg de alcohol harder toe dan bij anderen en langzaam kwamen de tongen los. Eerst verwijten, dan excuses. Oplossingen werden afgewogen en afgewezen. Beschuldigingen ontkend. Tegen twaalven was er nog steeds hetzelfde status quo. Alleen spraken ze nu met elkaar.

Het was de oudere die het eerst sloeg. Vol op de neus. Als het met woorden niet lukte, dan maar met daden. Hij voelde de klap in zijn eigen nek doortrillen. De jongere was slechts enkele seconden jonger, maar wezenlijk sterker. Zijn klap was nog gerichter. En effectiever. De oudere verloor het bewustzijn en met zijn val nam hij de jongere mee.

Daar lag hij. De oudere lag op hem en bewoog niet meer. Het enige wat hij kon, was wachten. Op hulp, op ontwaken, op de dood. Hij staarde naar het laatste glas en een traan verscheen in zijn linkeroog. Dat het zo moest eindigen. Dat zevenenveertig jaar met je broer samenleven eindigde met pijn en een bebloede neus. Stil huilde hij en hoopte op beterschap. Daarna werd het ook hem zwart voor de ogen.

Topics: Verhalen | Geen reacties »

Carnaval!

By Bart | maart 7, 2011

(Nog eens, omdat ie zo leuk is.)

Een dronken non zoent een clown,
Twee konijnen doen de vogeltjesdans,
Batman eet een broodje bal,
De giraffe krijgt zijn laatste kans.

In het gras ligt een fluitketel,
Verderop zijn eigenaar,
Vrijend met een roze kwal,
Alaaf, het is weer carnaval!

Topics: Gelul in de ruimte | Geen reacties »

LibreOffice 3.3 on SuSE Linux Enterprise Desktop

By Bart | februari 2, 2011

I got LibreOffice working on SuSE Linux Enterprise Desktop. There is no repository available, so you will have to do with the community installer. Download, unpack and install all the RPMs. When you use the provided instructions, it didn’t work for me, and I got the following error: “iso resource could not be loaded by SfxApplication”. Not much help about it on Google, so I struggled a little harder, trying to reinstall LibreOffice. During that, it seemed like rpm didn’t correctly install all RPMs. Some were not installed but installed, others I couldn’t delete because they were already installed (yes, this sounds weird, it felt that way when I tried to reinstall the program). So, to wrap up, I used a little shell scripting to make sure it worked (run in the RPMS/ dir of the unpacked file):

for RPM in `ls *.rpm`; do sudo rpm -Uvh $RPM; done

This installed all the necessary extra packages and LibreOffice is now running on my machine.

Topics: Geekstuff | 1 Reactie »

Discussions are open

By Bart | januari 23, 2011

I opened the discussions for non-registered users. I used the Anti-Captcha plugin to protect to spam. See if it works …

Topics: Geekstuff, Lief dagboek | Geen reacties »

Why I think the iDevices are revolutionary

By Bart | januari 1, 2011

Last week, I bought an iPad. On a whim. I think many people do that. I was playing with the device a little in the local electronics store and I liked it. But, being a Linux geek, I cannot be caught with such a sexy, bigcorp, trendy device. Until I realised I just liked the thing and had the resources to get one. I went to the store to buy one. I shopped around a little first, but apparently, everybody sells them for exactly the same price. According to the shop clerk, it wasn’t forced by Apple, it just happened (I think, a huge chance for business; sell the devices for less). After playing with the device, I realised this could well be another revolution in the way we use computers.

In the beginning of the popular computing days, we didn’t really have an operating system that did much for us. There was DOS, that was doing just that: operating disks. There was not much more in it. It started the first paradigm in modern popular computer interfaces. There was a command line, and you used the keyboard to type in the name of the program you wanted to run. And that program started and had the entire machine to itself. This evolved into programs that used a menu to fire up your most used or popular programs. Which brought the dawn of the first revolution; the change of the command-line paradigm.

The command-line paradigm changed into the windows-paradigm. We got used to a start menu where we can start our programs, a little à la the menu-driven program starters. There was an underlying filesystem model with directories and files, where we could store our data. The main change is that we work ‘inside’ our operating system now. There are centralised drivers, as opposed to the command-line paradigm, where each program had its own drivers. All in all, the windows-paradigm is better than the command-line paradigm for human beings. The interface moved a little towards the real world using interesting metaphors, such as the desktop, folders, a trash can, etcetera. The windows-paradigm works pretty well. Currently, it is the only used paradigm in human computer interaction, for popular computer systems.

Until a few years ago, that is. Smartphones are starting to dominate the computer field. They started out as gadgets that nobody needed and grew into a device you have to have to survive in the current society. Because of the limited screen size and resources, developers for the smartphones had to re-engineer the human machine interface. And that was the beginning of the second revolution of human computer interaction paradigms.

The windows-paradigm is moving towards the app-paradigm. And this revolution is driven by Apple’s iDevices. They are the most popular app-based devices, looking at the huge amount of apps in the Apple Store. In the app-paradigm, there is no start menu. There are no folders and files. No trash can. You don’t even have a keyboard or mouse any more. By using a multi-touch screen you can start your favourite app (how many do you have anyway), you slide and swivel through your photos and videos and the on-screen keyboard is amazingly usable. And guess what? Other operating system makers are moving towards the same paradigm. Android, Windows 7 Phone, Ubuntu Netbook Remix all have the same way of interacting with the user, so apparently, this is the New Way.

Of course, new technology never replaces old technology. There are still COBOL programmers and the command line and windows paradigms will never be replaced by the app-paradigm. They will have their place in the computing world. In fact, I am typing this blog post on a computer with the windows-paradigm. And I use the command line still a lot. It is like we got a new tool in our box to better interact with machines. We will make less mistakes and have more fun, as we can choose the right tool for the job.

Topics: Geekstuff, Opinie | Geen reacties »

nu.nl: “Uitkering kunstenaars afgeschaft per 2012″

By Bart | december 17, 2010

Dit begon als een reactie op nujij. Maar het werd zo’n epistel, dat ik het toch maar eventjes blog.

Ik ben zelf geen kunstenaar (hoewel programmeren soms meer kunst dan kunde is), maar heb wel kunstemakende vrienden. En met hen heb ik geregeld discussie over de zin en onzin van subsidies en vooral ook over ondernemerschap van de kunstenaar.

Ik ben vooralsnog van mening dat een kunstenaar (als hij van zijn kunst wil leven), ook ondernemer móet zijn. Immers, hij wil zijn kunst gebruiken om daarmee in het economisch verkeer mee te doen (geld verdienen om te leven). En ondernemen betekent risico’s nemen en leveren wat mensen willen hebben.

Aan de andere kant willen vele kunstenaars kunst maken die niet direct economisch zinvol is (kritiek op de maatschappij, eigen uiting van emotie, etc). Moet deze kunst in eigen beheer gemaakt worden? Of mag/moet de maatschappij daar aan meedragen? Dat is de vraag waar het om gaat. Zelf vind ik dat de maatschappij daar niet direct aan mee hoeft te dragen. Al is het maar omdat de maatschappij (lees: de kunstkopende overheid) geen ruk verstand heeft van kunst. Getuige vele lelijke, domme kunstwerken in stadscentra. waar niemand iets van vind.

En om maar een parallel te trekken met mijn vakgebied (waar ik wezenlijk meer verstand van heb). Er zijn massa’s programmeurs die een “day job” hebben als systeembeheerder, helpdeskmedewerker of programmeur van zaken waar ze niet achter staan en die in de avond- en weekenduren open source, veelal gratis, software maken. In deze projecten, die af zijn als ze af zijn, leggen ze hun ziel en zaligheid en maken precies wat zíj zelf willen hebben en maken.

Deze trend is zich al deels aan het doorzetten naar muzikanten en filmmakers. Kan het ook voor andere kunst?

Topics: Geekstuff, Opinie | Geen reacties »

Forrest Track Tracker 1.0

By Bart | december 6, 2010

After some playing around with my Nokia N900, I decided to make my own GPS tracker. Mainly to use it for running, because I couldn’t find a good one in repositories. (Come to think of it, I never checked the Ovi Store…) And here it is! First release, but I have the feeling it is mature enough to get a 1.0 version number. Installing it is easy, just copy the files to a folder on your N900 and use the X Terminal to start it (forrest.py). You will need PySide and QtMobility installed. See http://www.pyside.org/ for installation instructions.

Features:

There is no official project page yet, just the download here. I’ll have to package it eventually.

So, here it is: forrest-1.0.tar.gz

Topics: Geekstuff | Geen reacties »


« Voorgaande Artikelen Volgende Artikelen »