Syndicate content

Page list for Linux

  • Using BIND as a Master and a Slave simultaneously

    I got BIND on two servers (the named service). Each server is at the same time a master and a slave depending on the domain name. For instance, I host http://www.alexishouses.com on my server and http://www.m2osw.com on my company's server.

    Up to here, easy.

    The slaves are expected to update themselves whenever the master emits a change in a zone.

    Somehow, one of my domain names would not work at all on the slave (company's server). I searched and searched and I just couldn't find out why it was not working. Finally, I tried to search the

  • As I just upgraded my 14.04 installation to 16.04, it booted right up to lightdm.

    I had it properly setup to boot in a console before, but somehow it changed the behavior on me.

    This is because the computer is now using systemd to boot.

    I already had the GRUB variables setup as expected:

    GRUB_CMDLINE_LINUX_DEFAULT="text"
    GRUB_CMDLINE_LINUX="text"
    GRUB_TERMINAL=console

    But this is not enough if you want to start in the console when running systemd (which is running since 15.04).

    systemd has a list of variables you can tweak using the systemctl command. To boot in ...

  • I've been working on a TCP/IP server/client with Qt and got a problem which I present in the attached package.

    The example called tcp-bug. Start it with:

    tcp-bug -s

    in one console and then start the same command without the -s in another console:

    tcp-bug

    The client (this second tcp-bug without the -s) saves the file sent by the server in /tmp/out.html and it has to be exactly the same as the example.html file in the project. If not, then the transfer failed.

    Most often, the transfer works so I wrote a script called many-hits.sh to run the client many times and test the result. ...

  • I have a table with a few columns, two of which are integers, one of which can be NULL in which case the other integer is to be used in my query.

    CREATE TABLE my_table (col1 INTEGER NOT NULL, col2 INTEGER);

    If `col2` is NULL, then use `col1`. As is, there is how my query looks like:

    SELECT MIN(IF(col2, col2, col1)) AS smallest FROM my_table LIMIT 1;

    In other words, I need to get the row with the smallest integer, but if one column is NULL, I want to use the other column value.

    On a very small sample, the query is still very fast, but the real version is not unlikely to have thousands ...

  • I found a different way which is to use the:
    Local Network or Host-only Network on your Virtual Machine

    Today I did my first full install of Snap on a VM in my Ubuntu development system that runs VirtualBox.

    This took me about 1h between getting all the files ready from our own APT repository, and then finding out all the setups needed (we have a few working installations, but we added all the necessary magic with time and did not clearly document all the steps yet... argh! so much to do!)

    At some point, I wanted to setup the "domains" and "websites" tables on the VM. ...

  • Today I wasted another hour or so in trying to get samba to work for one of my Windows computer so I could connect to one of my Linux computer. I knew that the installation was correct since I could log in with another computer/user that had worked for a long time. So... why would this one fail?

    Two things, for of all, I could see NOTHING happening in the logs. Really wondering why the default is to log close to nothing with such a non-secure piece of software, but that's a different question. I added the following to actually get about enough logs to understand what was happening:

    log ...
  • My Story

    I have had this problem for a while now.

    On my server, I run X11 whenever I work with it. Otherwise, I quit X11 since it otherwises uses a lot of resources. This gives my users a much better experience (i.e. better browsing and a lot of it happen at night for me because I live in California and I have loads of hits from France, Algeria, Tunisia, Marocco, etc.)

    So... my wife and I both have a Unix account and we both start our own version of X11.

    Hers rarely get stuck, mine seems to get stuck once a week or once a month.

    Often, it is because after she quits I have to wait for

  • Today I ran in a little bit of a problem with an new Cassandra node installation.

    After the node was created, I ran nodetool and got this:

     $ bin/nodetool status
    Datacenter: dc1
    ===============
    Status=Up/Down
    |/ State=Normal/Leaving/Joining/Moving
    --  Address    Load       Tokens       Owns (effective)  Host ID   Rack
    UN  127.0.0.1  219.83 KiB 256          0.0%              73bd8721  rack1

    It took me a little while to find out that the problem was the IP address. Although it clearly says 127.0.0.1 here, the cassandra.yaml configuration file had localhost.

    I edited the ...

  • Once in a while I check how the compilers are behaving in such and such situations to make sure that when I wrote code it gets properly optimized. Today I was surprised as I tried to put a break point of a variable and it looked like the compiler wasn't using it. Indeed, the optimizer 100% removed the variable from the final code. Quite interesting since trying to reverse engineer this assembly language would probably end up using a goto statement... (ouch!)

    The code goes more or less like this:

    [toc hidden:1]
  • 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 ...
Syndicate content

Diverse Realty

Diverse Realty Team

Want a New Home?
Want to Sell Your House?

Call Alex at
+1 (916)
220 6482

Alexis Wilke, Realtor
Salesperson
Lic. # 02024063

Cory Marcus, Broker
Lic. # 01079165

     

Terms of Site Index

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

  • MS-Access
  • label
  • proxy

    In networking, a proxy is an intermediate network connection used to hide a user or computer. Most large companies use multiple proxies to hide all of their different intranets. Technically, when using a proxy you actually send all your network data to that other computer and that computer is in charge of sending that data outside your organization. Very large companies generally have multiple levels of proxies.

  • stack
  • system