The Linux Page
  • Often, when one writes a game, one wants a specific resolution to make sure that the game works as expected. Zoomed out textures may not look as nice and the speed could be affected too (drawing 1280x1024 pixels instead of 640x480 is more than 4x higher and all video boards won't be as fast as required in this case). Under MS-Windows you can ask the system to change resolution (size & depth) with a call to ChangeDisplaySettings().

  • That took me forever because I could not find the place where my Unity icons where to edit them in order to add the necessary LC_TIME definition. This being said, it's relatively easy except that you have no real control over the exact formt, only the locale.

    So...

    I created a file named starter under my thunderbird folder, if you don't have such (because you're using the stock version of thunderbird) then you may want to create a bin folder as in:

    mkdir ~/bin

    The starter file is just a text file with a shell script like this:

    #!/bin/sh
    LC_TIME=en_DK.utf8
    export ...
  • I have a customer that uses Wordpress with the U-Design theme. It's pretty cool, but it does not give you the possibility to change the RSS feed shown at the top-right corner and in 2017 the RSS feeds are kind of dead (so not useful to be shown prominently, really.)

    My customer also has an ebay account so he put his ebay link in that RSS, which you can do, but without changing the image, it just looked all wrong. (i.e. no one would click on that link, trust me!)

    So... I create a quick button, "FIND US ON ebay", and replaced that corner from that RSS peeling thing to an ebay ...

  • Problem

    I had a problem with my CuteMenu1 module and tried many times to fix it but just could not find the problem with Internet Explorer.

    The fact is that I created dropdowns that are supposed to be full width, but that did not work, somehow.

    I wanted each item to have a pre-defined height. So in the style for my DIV I wrote this:

    [toc hidden:1]
    • 1. This is a Drupal module. You happen to have Drupal? Download CuteMenu now then!
  • You can check that all the packages currently installed on a Debian system (i.e. Debian, Ubuntu, etc.) with many different tools.

    Root Kits

    I run rkhunter to verify for root kits.

    Some hackers replace a well known command such as ls or cat with a version that takes over your computer by becoming root without your consent and then hacking your system in all sorts of ways. In most cases, just the feat of installing such a tool requires the hacker to already have root access, so it generally doesn't happen, but better safe than sorry!

    File Changes

    I use tripwire to verify that ...

  • Today I wanted to check whether a table existed in a MS-Access database from a macro define in a MS-Access module.

    The test opens the specified database (databaseName) and from that object checks wether a table definition exists (name). I wonder whether there would be a better way to go through the list of items and just know whether an item with that name exists or not instead of generating an error (because the underlaying system will anyway search that list of items for the name, although it may be faster this way in visual basic.)

    There is the function I wrote (sample usage: if ...

  • MS-Access has forms, but no real means to know whether a form exists. It looks like you could go through the list of forms (Forms.item(i)) but I'm not too sure that would work in all circumstances.

    Instead, I used code I found on another site which runs a system command to determine whether a form is currently attached to a window (has a state other than zero.)

    The code looks like this:

    IsLoaded = False
    If SysCmd(acSysCmdGetObjectState, acForm, strFormName) <> 0 Then
        If Forms(strFormName).CurrentView <> 0 Then
            IsLoaded = True
        End If
    End If

    The first ...

  • When I downloaded FileZilla, somehow I also got Chromium and some TV something downloaded and installed under Win10. I removed the TV crap, really no need, but I was thinking to keep Chromium since I need to test my websites with it once in a while. Cool, but that stupid software installed itself to auto-start!!!

    I don't think I had the option to NOT have such a feature turned on.

    So... I had to search for it because apparently no one knows how to handle Auto-Start features under newer versions of MS-Windows. It is actually... take a deep breath... in the Task Manager. (At least in ...

  • When creating objects (commonly called JavaScript classes) in your JavaScript code, you want to use the prototype. This is the only clean way of doing it. In JavaScript, you can create objects on the fly, but those are not considered safe.

    Quick and Dirty

    The quick way is to create an object directly. This works, but it has potential problems with used against a powerful optimized such as the Google Closure Compiler.

    All the Quick and Dirty examples can make use of this in their myFunc examples. However, the closure compiler will warning about all of them because it doesn't know for ...

  • Today I finally solved a problem that was bothering me for a while. A Drupal site I installed for a friend of mine would not accept the Clean URL set. This is when the URL does not need to include the rather ugly ?q=<path>.

    The more I was looking into it and the more it looked like the problem was coming from the Apache installation.

    [toc hidden:1]
Syndicate content

SMS From Me Logo

SMS From Me

To automatically start one on one conversations with your online leads.

     

   

Terms of Site Index

Find the page/content you are looking for with our index.