Syndicate content
  • Introduction

    I just faught for a few hours trying to get the WNetAddConnection2() to work in my program and found out two things that I did not see explained anywhere in the documentation...

    Folder that Works

    I'm not too sure whether that's a new thing at the company I worked in to implement this function or whether that's every time, although I've seen other posts on the Internet with the same sort of path so I would imagine that this is a "normal" Microsoft network feature.

    The fact is that to connect you have to use the name of the server followed by some ...

  • I got a new word press website a couple days ago and got it installed in the last few days. There were 3 images missing so I started working on getting them in. When I got the first image, I went to Wordpress and I got an error... with no detailed explaination (maybe there is a log, but I don't know Wordpress that well to tell.)

    The error message was just: IO Error

    I was pretty sure that the problem was just that the folder where Wordpress tries to upload the new content was write protected from the Apache user. Under Ubuntu and Debian, the default name for that user is www-data and

  • Today I noticed that I had quite a few 404 errors on one of my websites. That one uses Wordpress that I got from someone else. Because I wanted to include a blog, I had to change the login name and Wordpress does not allow you to do that by default.

    So to change the login and password, I directly edited the database makeing user 1 me, essentially.

    I replaced the user_login and user_nicename with my own name. This worked just fine. At least at first it looked like everything was working right. Then I noticed that the author link had my name in it. The one with the space. Something like ...

  • The other day, I setup a small script to send file on an FTP. That was a long time since I had done anything like that and was not really thrilled, but I'm working for a client.

    The FTP worked pretty well. The upload was going for a while. According to wput, if the connection is lost, it automatically retries and continues the transfer. It got stuck 3 times on me. For hours. No retry. Zilch.

    Now, I updated my files on my end and then started the transfer again. Had to wait forever, although that is not the direct fault of wput, when it gets stuck mid-way, it's bad.

  • Setup

    When writing a CRON job script that you want to install under /etc/cron.*/job-name you must remember to apply the following steps:

    1. Write the script and test it as root

    2. Make sure to give it execution permission, usually 755

    3. The ownership is expected to be root:root

    4. The filename cannot include a period or the file it completely ignored

    5. The script MUST start with #!/bin/sh or an equivalent (i.e. #!/bin/bash works too.)

    6. Use full paths for most everything1

    • 1. Remember that the cron environment is minimal, you generally will have PATH defined and not much

  • In cmake, you have a cool feature which allows you to create a file.

    First you use a WRITE, then you use the APPEND to add more lines to the file.

    That file may be a shell script, though. In that case, you run in a problem whenever you want to write a variable which uses the curly brackets (as in ${TEST}), because cmake sees those as its own variables.

    There is an example of script that we use in our Snap! development.

    file( WRITE  ${lint_script} "#!${BASH}\n"                                                            )
    file( APPEND ${lint_script} "if test \${3##*.} = ...
  • Today I wanted to check out a set of floating value in my Visual C++ development environment.

    You can use the OutputDebugString() to print a debug string in the VC++ output window when running a software. This is quite handy, but when working in C++, string handling can be tedious. I need to create a message and wrote something similar to this:

    wchar_t msg[128];
    swprintf(msg, "Float: %f\n", my_float);
    ...

    [toc hidden:1]
  • I got a bad one today with Debian which took me an extra hour (at least) to find out.

    It can happen to you and that's why I'm writing this page:

    X11 starts and quits right away without any error — I had some errors about the system not being able to load some modules, I removed them by fixing my XFree86 configuration file. Really, there was no errors.

    Ha! But there was ONE error. 

  • Today I finally resolved a problem I had for a while on one of my computers.

    When logging in using the normal lightdm X11 login screen, directly on the computer, I would get an error and absolutely no menu, no icons, no keyboard functionality, no unity, no nautilus... The only thing I had working was the background which gave me access to the settings, but nothing else. More or less, nothing useful.

    I just had an idea and then I found a comment form a user on a forum who said that he just deleted his .config and .compiz directories and rebooted. After that it worked for him. It worked for me ...

  • Note: This bug is fixed in Ubuntu 16.04

    Working on a website I have to convert invoices to PDF so end users have the ability to print and share the invoices from the website.

    In order to do that, I generate an HTML page with the invoice which also gets displayed in the website, and then convert that HTML to PDF with xhtml2pdf. I use that tool instead of whtmltopdf because it does not require X11 to work. The other tool is said to require Qt and X11 and we do not want those things on our backend servers.

    So... I upgraded to 14.04 and the tool stopped working with an ugly error:

     ...
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.