Tuesday, October 25, 2011

Tablet history reflecting early personal computer history

The situation with tablets that I currently observe somehow resembles the personal computer history throughout 1980's and early 1990's, when there were many often mutually incompatible solutions, of which only a few really survived into the current era (I know the word 'survive' can be inaccurate and maybe even corny). Here what I had in mind were the IBM PC & compatibles, the Apple and Mac series, Power-based computers with OS/2, Amigas, Ataris, BeOS and a few others, even Next. Each tried with their own ecosystem and I see the same happening with iOS, Android, WinMo, WebOS, and MeeGo (other ecosystem names for tablets escape me right now).

The 1980's species that did not survive or only got a niche footing, were Amigas and Ataris, and OS/2 to some extent, as these computer ecosystems either failed to have enough popular application software to garner widespread appreciation and acceptance going forward or their development was stopped. NeXT was downright expensive, but it became the first-ever web server (working at CERN must have its perks :-).

I have been trying draw the same parallels with today's tablet platforms, whereby:
  • From the developer standpoint, the iOS is a bit like OS/2, as software development APIs for OS/2 were not free of charge, if memory serves me right (this was SOP for some other manufacturers' developer kits, too. Most ironically, OS/2 outlived Windows 9x in terms of available free software), and so iOS also has restrictions on developing for it;
  • Android, therefore, offers more latitude, like Windows did at the time, and is just as well plagued by viruses.

    Furthermore, Android, being half-open, sees itself right now in waters similar to BSDi.
  • WebOS... The most similarities with an older system that strike me wrt WebOS are with Atari ST, because Atari released their ST series computers to much acclaim and then suddenly stopped developing them.

Saturday, October 15, 2011

Vanemad Skype versioonid

Üldiselt on nii, et Skype puhul tuleks pigem kasutada kõige uuemat versiooni ning ka suhteliselt head riistvara, sest Skype'i kõige uuema versiooni puhul on parandatud ka kõik turvavead.

Vanemate Skype (ja teiste tarkvara-) versioonide kasutamise põhiargument on näiteks see, kui arvuti ei ole piisavalt võimas ning selle näitajad jäävad alla Skype'i kõige uuema ja/või põhiversiooni (X.x) miinimumnõuetele.

Siin on inglise keeles täiendavalt kirjas, et mis põhjustel ja tingimustel oleks vanema Skype versiooni kasutamine põhjendatud. Samuti on kirjas ka, kuidas see vanem versioon endale peale tirida.

Muidu on nii, et Skype enda saidi kaudu vanemaid suurversioone kui 4 enam kätte ei saa (veebilehekülgede kaudu vist enam mõnda aega juba).

Väga tähtis: Uutelt Skype versioonidelt üleminek vanadele võib väga tõenäoliselt põhjustada kontaktide kadumise, mistõttu on kõik selline tegevus ainult oma riisikol. Kontaktide kadumine toimub näiteks järgmistes stsenaariumites:
• Kui arvutis on olnud näiteks mistahes modernne Skype versioon (5.x), kasutaja võtab selle maha ja paneb asemele väga vana Skype'i suurversiooni (2.5.0.154).
• Tagasiminek Skype 3.0 peale versioonilt 4.1. Arendajad teatavad, et tagasiminek uusimatelt versioonidelt 3.0 peale ei ole toetatud.
• Tagasiminek Skype 3.8 peale uuemalt Skype versioonilt kui 4.x (see on siis 5.x) kustutab reeglina kontaktinimistu ära...

Alati enne tagasiminekut tuleb teha kõikidest oma kontaktidest varukoopia: programmimenüü
Kontaktid > Veel > Salvesta kontaktid faili...
Samast alammenüüst saab kontakti failist ka taastada.

Ja üldse, kui on vaja kasutada vähem ressursinõudlikut otsesuhtlusprogrammi, siis on olemas Pidgin IM ja Miranda IM (viimane mõeldud eriti vanadele arvutitele :).

Skype 2.5.0.154
Üks sisselogimiskogemus näitas, et 2.5.0.154 versiooniga enam sisse logida ei saa, teine kogemus (vt. allpool) näitas, et saab. Seega mis täpselt selle Skype versiooniga serverite poolt enam toetatud pole, ei ole selge.
T., 24.02.2012.
Selleks päevaks selgus, et antud versiooniga on siiski võimalik sisse logida. Operatsioonisüsteemiks oli siis sel korral Windows XP, nii et selline kombinatsioon töötab. Küll ei ole teada, kas antud Skype'i versiooniga on näiteks vanemas opsüsteemis (eriti just Windows 9x/Me) võimalik sisse logida või mitte.

Tähtis hoiatus: Kui arvutis on olnud juba uuem Skype'i versioon, siis sellelt antud arvutis vanemale versioonile (ntx. 2.5.0.154) üleminek võib kontaktide nimekirja ära kustutada, seega sellist käiku ei soovita üldse. Kui installida vanem Skype'i versioon, võib nii juhtuda küll.

Kui arvutis/opsüsteemis varem Skype'i ei ole olnud, siis on vist ehk teine asi. Mingeid garantiisid ma muidugi ei anna.


Seesinases on esile toodud mõnede suurversioonide vaid kõige uuemad variandid. Igasuguse vana tarkvaraga tuleb arvestada, et seda edasi rohkem ei arendata ning see tähendab, et sellel võivad olla lappimata turvavead.

Windows 98/Me jaoks on järgmine variant Skype 3.8.0.188, mille saab oldversion.com saidilt (versioonide nimekiri on pikk, seega tuleb õige versiooni valikul olla tähelepanelik). Nagu ikka, kehtib hoiatus, et alla võib tirida omal riisikol, kuigi oldversion.com paistab ise suhteliselt usaldusväärne. Kas selle versiooniga on veel võimalik sisse logida, ei ole teada.

Windows 98/Me pole Skype 3.x versioonide puhul ametlikult toetatud, kuigi need versioonid nende opsüsteemide peal on veel käitatavad.

Minimaalsed süsteeminõuded (vähemalt kõike järgmist):
  • 800 MHz keskprotsessor;
  • 128Mb RAM mälu
  • 600 Mb vaba kõvakettamälu
• Audio- ja videokõnede jaoks on tarvilik vähemalt 1GHz keskprotsessor, 256 Mb RAM mälu ja veebikaamera (kui videokõnesid pole vaja, siis viimane pole kohustuslik).[allikas]

Täiendav info Skype'i Win98SE/ME-s kasutamisel on siin.


Windows 2000
Suurversiooni järgmine variant, mis töötab vähemalt Windows 2000-s või uuemas, on Skype 4.2.0.187. Tõmmata saab antud versiooni sellelt aadressilt:

download.skype.com/msi/SkypeSetup_4.2.0.187.msi
2011.a. novembrist aadress ei tööta, nii et järgmine peatuspaik on oldversion.com

Skype'i MSI installeritega on lood sellised, et erinevalt SkypeSetup.exe-st ta nii automaatne pole ja seega tuleb kõigepealt vana Skype'i versioon Windowsis Add/Remove Programs appleti kaudu nö. käsitsi maha installida.

Süsteeminõuded arvutile Skype 4.2 jaoks (allikas):
  • Windows 2000 puhul vaja videokõnede jaoks tõmmata ja installida DirectX 9.0 lisakomponent
  • Vähemalt 1 GHz keskprotsessor;
  • vähemalt 256 megabaiti RAM-mälu;
  • Kõige muu juures soovitan vähemalt 600 megabaiti vaba kõvakettaruumi (gigabait oleks parem).
  • Kõrgekvaliteetsete videokõnede jaoks on tarvis vähemalt kahetuumalist keskprotsessorit, 512 Mb või rohkem RAM-mälu ning eraldi videokaarti (mis pole integreeritud videoadapter).
Muu Skype 4.2 abiinfo on Skype'i kodulehel saadaval siin.


Skype 5.5
See põhiversioon toetab Windows xp-d või uuemat.

Vanemate suurversioonide seadistustes tuleb välja lülitada automaatne uuendamine, mis on sellistes ka võimalik. Skype 5/5.5 jne versioonides automaatset uuendamist välja lülitada ei saa :/.

Wednesday, September 14, 2011

Lynx: Associating filetypes with a program in Windows

After a few hours of trying and failing in lynx.cfg and searching the Internet, I found a reasonably good collection of ideas (kudos to Kenneth Kwok), which served me with inspiration for a working solution.

• The version of Lynx is 2.8.7rel1, unfortunately it doesn't support SSL (gonna work on getting Lynx with that some day...).
N., 15.09.2011. update: A fully functional and SSL-enabled, albeit an older, 2.8.5rel1, version of the browser is available at Claudio Santambrogio's (csant) website (beware that export and other restrictions may still apply to the downloader's country).

As I needed an SSL-based browser, then out of curiosity I started comparing both Lynx browsers' config files and to my great delight found that csant's external app configuration was more elegant than my previous discovery. Jump to a description of how to implement the better solution.

And yes, the options inspired by Kenneth Kwok are still valid, but there are now less scenarios to use them.
• The operating system is Windows xp SP3, other Windows operating systems may also apply, but exact instructions on how to change environment variables were gleaned from this version of Windows.

Unlike in the linked article, it turned out that I didn't need to use a .mailcap file to associate a helper app.

The interesting part is that Windows Lynx (still) requires batch files to send requests for an external application and a path to them must be set as a global or user environment variable.
  • Create a folder that will hold batch files. I created one in
    C:\Program Files\Lynx\Batches
  • Create an environment variable pointing to that path:

    In My Computer/System Properties > go to Advanced tab > click "Environment Variables" button > in the relevant window's "System variables" section > scroll down to Path, select it, click the Edit button;

    In the path editing window, the Path string is long, but you can add a semicolon to the end of the string (if it's missing), then right after the semicolon add

    C:\Program Files\Lynx\Batches

    and that's it. (No additional semicolon required.)

    Click OK to close the window, click OK in Environment Variables window — This will save and update the path in Windows xp (maybe 2000, too) or newer; click OK for System Properties window.

    You won't need to restart unless it's a Windows 9x OS, for which you'd need to edit autoexec.bat, enter a short-form path à la C:\PROGRA~1\Lynx\Batches and restart the system for changes to take effect.
  • Now, in the C:\Program Files\Lynx\Batches folder itself, assuming you only want an image viewer program to be associated, create paint.bat, edit it as follows:
    @ECHO OFF
    C:\WINDOWS\SYSTEM32\Mspaint.exe %1
    ^ In addition, you may wish to add %2 %3 %n — if you know that there may be more arguments passed from Lynx, but there's usually one.
    Save the batch file.
  • In lynx.cfg (opened either via WordPad or Notepad2 or something that supports both CR & LF newlines), go to a certain place in the file by searching for the image/png pattern. There, you will see which MIME types you must activate for each filetype suffix.

    I uncommented (deleted a hash # from the start of the line) all that were web images, such as those concerning .png, .gif, .jpg and .jpeg.
  • Then in lynx.cfg, go to part of the file using the VIEWER: search pattern. There, you will see a list of program commands associated with a particular MIME-type (they are short by default, because they're typically UNIX-specific).
    N., 15.09.2011.:
    Uncomment, or rather, copy, paste, and uncomment those for image formats, and modify the commands to look like this:
    VIEWER:image/gif:start mspaint %s
    VIEWER:image/png:start mspaint %s
    VIEWER:image/jpeg:start mspaint %s
    VIEWER:image/tiff:start gimp-2.6.exe %s #special case
    • The superb catch ^ is where one must use the start command to invoke a program that's located in the Windows Path environment variable.
    • mspaint is the command-line name of the Windows Paint program, which is located in C:\WINDOWS\SYSTEM32 and that address is typically set as one of the locations in the Path environment variable.
    • gimp-2.6.exe is a different case, where I separately had to include C:\Program Files\GIMP-2.0\bin in the Path environment variable to make it launch, as for some reason it was impossible to use the full program path in the Lynx config file.
    Uncomment, or rather, copy, paste, and uncomment those for image formats, and modify the commands to look like this:
    VIEWER:image/gif:paint.bat %s&:NON_XWINDOWS
    VIEWER:image/png:paint.bat %s&:NON_XWINDOWS
    VIEWER:image/tiff:gimp.bat %s&:NON_XWINDOWS
    VIEWER:image/jpeg:paint.bat %s&:NON_XWINDOWS
    • Up here ^, add paint.bat right after a colon that follows the mimetype;
    • %s is the wildcard for the filename to be entered;
    • The ampersand & is there to leave the program in the background. It can be there in Windows, but it's useful in Unix-like systems.
    • :NON_XWINDOWS [sic] basically specifies that the targetted application is not an X Window System program and this option can be there, too. In Windows it may mean that the batch program is not exactly a graphical program either.
  • Save the configuration file and I think you should be done.
    Launch Lynx, go to a page with an image file, then on it, press Enter/Return or the left key to activate.
Similar steps can be made for other filetypes and MIME-types (which can be added, btw, since the list in lynx.cfg is non-exhaustive) and you can add programs different than Paint for other filetypes. Above, I have setup a batch file to run The GIMP for the TIFF filetype.

Saturday, September 10, 2011

Absolute positioning of content in a containing block

A less formal alternative title would be "Placing content from the middle of a box into a sidebar to the edge of a containing block"

Context

The problem first occurred when I tried to create a user style for a login page to accomodate small screens (Yes, there are people who use small screens).

The main problem was that I could not change the structure of the not-so-well designed page, so I had to resort to some unorthodox uses of formatting in CSS. Later it turned out ot have some interesting uses in a sister blog.

The basic [formatting] concept behind this is taking content out of normal flow, placing it as a sidebar into the top right edge of the container block, and then making sure that other content (mostly visible text) will then flow around the sidebar box.

While it may sound simple just like that, then implementing a working solution for the first time proved more difficult. The solution that I found out does work, but still contains some caveats. More about it later and below.

In-depth

What does not work

First off, just floating the box to the right is pointless, because the box is positioned according to normal flow and is floated where it's structurally positioned in the page (or text). It is then adjacent to that content which only follows the box in the page structure.

Adding a negative top margin is just as impractical, because it will never be accurate relative to the sidebar's position, as the position of the sidebar still depends on how much space is taken up by preceding objects or text, since relative renderings are always different, depending on fonts, rendering engines and zoom levels.

If you're modifying your own content, then putting the box before the content that initially preceded it defeats the purpose of normal text flow (as seen in Lynx).

The solution

Mostly assuming that the containing block and inner blocks are <DIV> elements, which I so dislike, because they are severely overused.

The points are here in a hierarchically continuous order, so as to present the logic and reasons behind it.
  • The containing block,
    which is to enclose the sidebar and content that should surround it:
    Set its position to relative — This will keep absolutely positioned blocks inside the containing block; otherwise all absolutely positioned blocks will be taken out of all flow and will be (absolutely) positioned relative either to any preceding relatively positioned block in the page hierarchy, or the viewport, which is the topmost block.
  • The sidebar's position must be set to absolute, with most important parametres set like this:

    <DIV STYLE="position:absolute; top:0px; right:0px; width:234px">Textual content<DIV>
    ^ top:0px and right:0px will place the sidebar box to the top right (to right of main content), where position is calculated from the containing block's top and right edges; width:234px — Here you can specify your own width for the absolutely positioned box.
  • And finally, the tricky part — How to make sure that content or text surrounding the sidebar will show next to the sidebar without all of parts of it staying hidden under the sidebar?

    Well, my solution was to place the that content (which precedes the sidebar and is innards) into a relatively positioned DIV& box, with its right margin approximately the amount of the sidebar's width. This ensures that text or content inside that DIV won't stay under the sidebar.

    If the sidebar is long enough to encompass much of the content that follows, then that content should also be encased in a DIV with similar parametres: relative positioning and same margins.

    Caveats:
    • If much of the content left of the sidebar is text, then its flow is limited to the squares of DIV boxes (there must be at least two of them). Normally flowing text could then start well after the sidebar and DIV boxes end.

      Mitigating effects
      One way to mitigate this without creating separate DIVs and their left (or right) margins is to create a ghost DIV with same size properties as the sidebar floated right just under the absolutely positioned sidebar. This has better chances of taking effect if the sidebar's height and width are fixed and that the content is controlled server-side.

      Yes, the "ghost" DIV can contain about the same text, if there's a desire for that ghost DIV to follow the size of the primary DIV (think differences in fonts and zoom levels), but this then may defeat the purpose of having that text in the ghost sidebar, because it would be duplicating. Oh well, solutions can be made both with JavaScript and CSS to make sure this text doesn't appear twice in a text-only or very plain browser (think Lynx).

      Otherwise I was thinking of :before and :after pseudoelements, or of a way to insert a client-side Greasemonkey script.

      This is now the point where one can play around with various options.
    • I found another problem when editing text here in Blogger, where the sidebar height was greater than text next to it, so the sidebar, given that it was absolutely positioned, overlapped past the post tools area. In that sense it's a good thing to try out the size of the sidebar in the DOM Inspector, which allows client-side visual editing of webpage elements under inspection.

      One way to mitigate this would be wrapping all of the affected content, including some preceding the sidebar (where it visually starts) in a DIV and specifying a height greater than the height of the sidebar. The height of the DIV should then allow for some hypothetical differences in size.

This out-of-order sidebar solution works in Firefox 1.0 (Mozilla 1.7.xx, preferably SeaMonkey 1.1.19 or K-Meleon 1.5.4) and newer. It does not work in Internet Explorer 7 (or older), so a workaround must be in place, if there's a large IE-based audience in mind. It should probably work in Internet Explorer 8 or newer.

Saturday, September 3, 2011

Microsoft Security Essentials teeb arvuti aeglaseks?

Kommentaar PM/Tarbija24 artiklile ja selle kommentaaridele

Microsoft Security Essentials[:w:en] programmiga on see jama, et see uuendab väga mahukat moodi ja uuendamise ajal võtab liialt palju arvutiressurssi.

Teine jama on see, et kui arvuti töötab, kuid kui seda ei kasutata, siis hakkab MSE skannima — kujuta ette näiteks ETV-d veebist vaadates ja arvutit otseselt samal ajal mitte kasutades, kui pilt ka väärikal arvutil hakkima ja arvuti aeglaseks läheb.

Lahendus (ingliskeelses Windows XP-s) on järgmine:
Start > Programs > Accessories > System Tools > Scheduled Tasks — seal lülitasin mina välja MPIdleTask eseme.

Soovitan seda teha kogenud kasutajatel näiteks juhtudel, kui nad on sunnitud MSE-ga olema, kuid programmi sellist käitumist ei salli.

K., 15.02.2012. täiendus:
Microsoft Security Essentials programmi uuendamine toimub automaatselt ja sedasi poolenisti eraldi Windows Update teenusest. (Tingimus on, et Windows Update automaatsed uuendused on sisse lülitatud.)

Uuenduste kontrollimine ja automaatne uuendamine toimub iga kord kui Windowsisse sisse logida, sh. peale arvuti sisse lülitamist, peale arvuti "talveunest" sisse lülitamist, peale arvuti unerežiimist sisse lülitamist.

Absoluutselt iga kord. Uuenduste kontroll ja uuendamine võtab endale kogu arvuti tähelepanu ja midagi produktiivset sellel ajal teha ei saa.

Võimalik, et toode oligi mõeldud kodukasutajatele lisaks ka väikeettevõtetes kuni kümnele arvutile (aga ainult seda tüüpi organisatsioonides), seega näiteks väikeettevõtte tööarvutites ei peaks selline uuendamistuhin väga problemaatiline olema, sest väikeettevõtted on tavaliselt väga kitsaste eelarvevõimalustega ja sellises olukorras jääb MSE ainsaks legaalseks tasuta valikuks residentse skanneriga antiviiruste seas.

Tavalisele kodukasutajale, kes arvutit äriks ei kasuta, on olemas ka teistsuguseid variante, nii et MSE-d väga soovitada ei oska.

Saturday, July 30, 2011

ClamWin Antivirus Glue for Firefox

If anyone is still using Firefox 1.5–2.0 and ClamWin, too, then they'd be interested in the subject extension. Unfortunately, this addon has been delisted from addons.mozilla.org and very hard to find from FTP sites (which I tend to trust more).

So I found what turns out to be only one source:
• http://pub.vse.cz/pub/Mozilla/addons/771
• http://cache.vse.cz/pub/Mozilla/addons/771
The license for the extension is MPL 1.1/GPL 2.0/LGPL 2.1.

Caveat

Version 0.2.4 officially works in Firefox 1.5, but here are instructions in a 18.01.2007 comment to a blog post on similar matters. (The original text was here.)
Instructions in my own words: Download the XPI file (the lowermost is the newest version; if you are not sure, then check the statusbar when mousing over the 0.2.4 file link), extract it into a folder, open install.rdf with an editor that supports CR & LF linebraks (NotePad2 is ok); there, edit the em:maxVersion parameter value from 1.4-something to 2.0.0, compress the decompressed files, then rename the file's .zip (I assume) extension to .xpi, then move the file into an open Firefox window to install. When recompressing, make sure that you're only compressing the selected files and folders within the extracted folder and not the folder itself.

Modern stuff

For people using newer browsers, see the Fireclam extension for both Mozilla Firefox 3 and newer, and SeaMonkey 2 and newer.

Saturday, July 16, 2011

DOM Inspector XPI for older Firefox/IceWeasel browsers

Knoppix is the kind of distro that by default does not include the DOM Inspector, it's only on a CD, and I think I had even spent a month searching for a way to install it from a .deb file to a version of firefox in Knoppix. All in vain, even if I had the supposedly right package, because it would still prove incompatible and thus unusable (would crasshh).

Then, by chance, I found the right way to install the DOM Inspector XPI separately for Linux in those distros, where a package might be missing (such as a relevant .deb package in Knoppix 4.0.2, because it's a snapshot from Debian's testing branch of the time) or not included at all... — By downloading a specific DOM Inspector XPI from the old mozilla.org FTP site, which is archived at mozilla.org's own ftp site:

ftp://ftp.mozilla.org/pub/mozilla.org/firefox/releases/1.0.6/linux-i686/xpi

Caveat in Knoppix and other Live CD-s: You can only install it as superuser, it won't install into the user directory and thus it won't save, but rest assured, you can install it again every time you need it, although it may be tedious for daily use, if that might be the case for some users.

Here's what you have to follow, if you're stuck using a LiveCD, a version of Firefox without DOM Inspector built-in, no package repository to rely on and no package to be found for your particular distro (Knoppix):
  1. Find out what your version of Firefox is in your Live CD (launch Firefox; Help>About). For some Knoppix Live CD's I sometimes use, mine is 1.0.6 for Knoppix 4.0.2 and something else in newer versions of Knoppix. Keep in mind that newer versions of Knoppix include Debian IceWeasel (Knoppix is based on Debian), which is a source-compatible rebranded copy of Firefox.
  2. Exit Firefox, relaunch it as superuser, best with sudo firefox
  3. Go to
    ftp://ftp.mozilla.org/pub/mozilla.org/firefox/releases/
  4. From there, choose the version of Firefox/IceWeasel/GNU IceCat you are stuck using (if using a browser click the relevant version folder link);
  5. Once there, browse to a folder called linux or linux-i686 and there browse to the xpi folder. Note down the address in a separate editor.
  6. (Make sure that ftp.mozilla.org is the allowed domain to install XPI's)
  7. Click on adt.xpi (the XPI for DOM Inspector), which should be at the very top of the directory listing, go through the extension installation procedure. If after installation you don't see the extension listed, don't worry. Restart Firefox again as superuser, via sudo (you should now know how to use it). Verify that DOM Inspector is installed by checking the Tools menu. Exit the sudo'd Firefox.
  8. Start user-mode Firefox and you should see the DOM Inspector appear there.
  9. To maintain that you still have the XPI for future use, save it to local storage (a memory stick, for example) by downloading it in a normal-user firefox session from the same FTP address.
Now, I haven't been able to find out an XPI of the DOM inspector for older versions of Firefox that would actually work as an extension installed into the user profile, so until then, it's more of a case for frequent users of DOM Inspector in older Firefox browsers on a Live-CD of reinstalling the XPI after every restart.

Settings for DOM Inspector can be changed through about:config, then search using the inspector string.