A site for solving at least some of your technical problems...
A site for solving at least some of your technical problems...
As I was porting wpkg to Windows so it would compile under Microsoft IDE version 10, I ran in a problem with variables named min and max. Windows wanted to see them as the min(a,b) and max(a,b) macros.
That started happening when I included Windows.h which I needed for handling files (CreateFileA, CloseHandle, etc.).
Since these are macros, i.e. defined with #define ..., they take priority over anything in your C++ code (since that's handled with your preprocessor.)
One way to get rid of them is to undefine those macros after the #include, something like this:
#include ...
Today I tried to run WinXP on my newly upgraded Linux Ubuntu 12.04. It did not work... that's because the aqemu graphical interface tries to run qemu which was replaced with specially named emulators: qemu-i386, qemu-system-x86_64, etc. (try ls /usr/bin/qemu* to see a complete list on your system.)
So... I got the command line from the aqemu graphical interface, did a copy / paste and replaced the name with qemu-system-i386 and got the emulator started as expected. That worked fine, but then the window remained small (640x480) which I wouldn't care much if I weren't really using ...
You may also be interested by my new page:
I love Linux and use Ubuntu, but all of a sudden you don't have support for Gnome. Instead they now force you to use Unity. It's probably a good idea to go with the flow because trying to maintain Gnome is probably a hell of a lot of work so...
Losing your settings all the time? Check out When I lose gnome settings...
I have to have a few things in my window system:
1) Menus MUST be attached to the window I'm using. I don't like the Macintosh way. Sorry. To remove ...
Okay! That one took me too long!?
I was searching for "Waiting up to 60 more seconds for network configuration..." and just couldn't find where the heck that was hidden. It's in /etc/default/failsafe.conf and if you look at that file you'll see a few sleep in there.
I'm not too sure what that's really used for, but having to wait 2 minutes for the server to boot seems dramatic when before it used to start immediately and worked just fine.
So, edit the file, scroll down and remove the sleeps... I do not recommand you do that ...
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 ...
I am working on an A/V switch with the kids and was annoyed by the fact that the page talking about how to do that did not include anything like a schema (it has some bus drawing... who cares?!) This being said, the concept is perfect and works just fine. It's just hard for me to see that when the person just says connect this here and that there and voilà!
Original A/V switch information:
https://www.engadget.com/2007-03-13-how-to-make-a-solid-state-a-v-switcher.html
The source is a gschem file as created by gEDA Schematic Editor (a free tool you can get on Ubuntu.) Already the free ...
Today I was requested by my wife to make her Nook work on our wireless network (she usually can use our neighbors but the connection drops all the time.)
The Nook makes use of DHCP only. So on my static IP address only network, it's kinda not going to work as is! (I must have static IP addresses for security so I can setup a strong firewall.)
So I had to go through a few hoops as follow to get everything to work. Interestingly enough I have not found another website that was talking about such things and their solutions on Linux.
Oh! Wait! Nookers are probably not Linux ...
I really want to try that feature! I have been using Incredibuild on MS-Windows and it can make a software compile 5 to 6 times faster. (i.e a software normally compiling in 1h compiles in 10 minutes!)
Under Linux some people worked on the C compiler front end to move the process to other machines as required. This is called distcc (i.e instead of using cc to compile, now you use distcc). This front end has a list of all the C compiler machines and uses them whenever possible.)
From what I can see on the front page, the setup should be a breeze (yeah... I know) and it does not even require ...
I have been wondering about setting up one of my computers for 2 or 3 users with 3 mice, 3 keyboards and 3 monitors.
This apparently may require 3 video boards with Ubuntu. That could be a problem with AGP, but PCI Express may work fine with that. Only problem, in most cases boards only have 2 slots these days...
Anyway, if I ever try to do that, I'll put the info here on how I got it to work... for now, you'll want to look at this page on Ubuntu:
https://help.ubuntu.com/community/MultiseatX
As I was working on a table extracted from a PDF file, I wanted to load that table in Excel. By default it would put all the fields in column A. Not good. So I put that in a text file, added a pipe at the end of each time and then join lines really quick (with vim, it's J to join lines.)
Now I had a nice .csv file, with fields separated by a pipe (|) character.
123|Something|More info|This "worked" before?!
Now, time to load that file in Excel. I tried that and it gave me everything cut in "strange" places but especially, no way to select the column separator. Why ...
Recent Posts on The Linux Page: