Syndicate content

page

My JavaScript code does not get the correct widget size, why?

As I am developing a set of pages for a customer, I ran in an intersting problem: my JavaScript function could not properly define the sizes of a box.

That box is heavily tweaked with the CSS assigned to it, as well as all of its neighbors. So I thought that may have something to do with it.

What I hadn't realized so far is that the ready() function of jQuery() is called once the script that includes it is ready (as in loaded) and not once the document as a whole is ready (done loading, i.e. onload event.)

With that knowledge it was easy to understand that I was actually finding myself ...

RJ45 and crossover cable

I got a cross over CAT6 cable and somehow the computers on which I used it do not like it... So I thought maybe it was not a valid crossover cable. Searching on the net I found a page with the following images which gave me the answer. You have to look for the colors of the wires in the RJ45. It's not very easy to see, but it is different enough (assuming you see colors...) that you should be able to tell exactly.

The easiest is simply to look for the "red" (orange) cable. If it is close to the edge in one RJ45 and far from the edge on the other, then you have a crossover ...

Forbidden -- client denied by server configuration

Working on a PHP application setup, I stumble upon a problem. Going to the installation page, I got the dreadful error:

Forbidden

You don't have permission to access <root-path>/admin/install on this server.

Looking at the error logs, the only thing reported was:

client denied by server configuration

The fact is that Apache does not tell you which setting actually forbids the access. I guess that's because once it gets checked by Apache, it is a blend of all the settings and not a tree being followed.

Looking a round, and since I already had that error not too long ...

Apache log says: client denied by server configuration

I work with Apache a lot. It is a really good web server that has many options and features. Unfortunately, maybe it has too many of them!

I ran in a problem where a notification from one server to another would fail with the following error:

[Fri Oct 11 19:43:50 2013] [error] [client 162.226.130.121] client denied by server configuration: <path to file>

Looking at the error, I was first thinking that my script was generating the error. The fact is that my script does not generate error 403. It has a 400 and 500 but not 403.

So looking at the error I thought, maybe that's an ...

Hacking my NVG510 device

Earlz found a way to hack the NVG510 device and wrote a page about it: Rooting The NVG510 from the WebUI

He also offers a page that one can use to allow telnet connections to the NVG510 (by default it is locked up.) From there you can allow ssh and tftp connections too.

Note that this means if you are logged in your NVG510 and you click on a link on a bad server, you could actually allow remote connections from anyone! So that's a dangerous back door, although if you are not logged in the Web interface, then it is fine (assuming you do not then log in without thinking!?)

Just in case ...

mov eax,dword ptr fs:[0000000h]

As I was trying to debug a problem using an STL vector, I looked at the resulting assembly and saw this strange thing:

mov eax,dword ptr fs:[0000000h]

And a little further down, the opposite:

mov dword ptr fs:[0000000h],eax

These statements are from VC++ so the first is "put fs:[0] in eax" and the second is "save eax at fs:[0]".

Curious I looked around and found a page describing what's really hapenning. If you need to know, that's actually initializing the exception structure for this function. The fs:[0] location is where that structure pointer is saved ...

Strange VC error: No files were found to look in. Find was stopped in progress.

Strangest thing happened to me today! I'm working on a project with VC 2005 (yeah! pretty old version for 2012, I know!)

I use the Search in files which usually works great but today I got this strange error:

No files were found to look in. Find was stopped in progress.

And no real reason why it would say that!?

Searched on the Internet and found a page mentioning the problem (here.)

When searching it is possible to stop the process with Ctrl-C or Break or, it seems, Ctrl-Scroll Lock.

In my case my bag was a bit on the keyboard pressing on one or more of those keys! Moving my bag was ...

A Schema for engadget Solid State A/V Switch

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:

http://www.engadget.com/2007/03/13/how-to-make-a-solid-state-a-v-switcher/

The source is a gschem file as created by gEDA Schematic Editor (a free tool you can get on Ubuntu.) Already the free ...

Distributed compilation with Linux C++

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

One computer, multiple users (Multiseat with X11)

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

On newer versions of Ubuntu, it looks like some people worked on graphical interfaces to ...

Syndicate content Syndicate content