Syndicate content

Pages with category Development

  • 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]
  • I had a little project which requirements was an Adobe Flash animation that calls a JavaScript function to close a browser window.

    With the newest version of Internet Explorer, it will first ask you whether you want to let the script close your window... that's a problem when you'd like that process to be smooth (i.e. without user interaction.)

  • I created a form in MS-Access and noticed, after a little while, that a ComboBox would not render properly.

    The problem is pretty simple, I marked the combo box as having a Normal Back Style. When I first open the window or when I click in that ComboBox, it works and renders the specified Back Color. That's great, but that's not exactly the solution, is it?

    The box has a Fore Color of Black (that's the color of the text). That Fore Color is used because the background is expected to be either gray or green. Either way, black shows pretty well.

  • cl.exe has a special option to be told that the input file is a C (/Tc) or a C++ (/Tp) file. This is necessary if you want to use an extension other than the default .c, .cxx and .cpp. For instance, many people use .cc or .c++ for C++ files. Just add the /Tp command line option and your file will be accepted as a C++ file no matter what the extension is.

    Also, in your environment, you can change the editor and Open/Close feature to recognize these files. The Microsoft page available here:

  • Today I started having some problems with my tables.

    I had a default value set to Now() and it would tell me that it was invalid. I removed it and the save worked.

    What would really be the problem though?

    The thing is the compiler is used against ALL your Visual Basic modules and if any one of them fails to compile, then you get the error. I had one error in one module. Definitions of external (DLL) functions such as GetUserName() and GetComputerName() must all appear before any function declation. I had the GetUserName() declaration such as:

    Private Declare Function GetUserName Lib ...
  • Try to recompile Qt with Pavel's instructrions...

    I did not encounter much problems, although the examples failed. It looks like jom would be the problem as some people reported not having problems following the same steps, but using nmake instead of jom.

    The instructions go like this: [Update: the links below all stopped working.]

    1. Visual C++ 2010 contains all necessary SDKs for Qt compilation. However if you plan to use Qt with Phonon you need to install additional software from Qt for Windows Requirements list.
       
    2. Download and extract Qt 4.7.4 Sources. (Or Qt ...
  • Today, as I was trying to run a 64 bit application in Release mode under Windows 7, I got a crash about a NULL pointer. There is the debuggee (<- well known Microsoft spelling of Debugger) error window:

    Unhandled exception in ... Access violation reading location 0x0000...

    Unhandled exception at 0x52740ccf in guikeyboard_test_developer.exe:
    0xC0000005: Access violation reading location 0x0000000000000000.

    So... according to this error, the software access a NULL pointer. It took me some time, but the problem was not a NULL pointer, it was an unaligned memory access. In other words, it is trying to write a a pointer that is not 16 bytes aligned, which is ...

  • I have had a BIG problem with compiling zlib. Now I have my own normal configure.ac file, but the most important part of that compile was for me to find out how on Earth can you generate the dynamic library (.dll and .dll.a files) instead of the static library (.a only file)?!

  • On my sites, I'm using boost to allow much faster access time (close to instantaneous in comparison to hitting Drupal and all the database accesses...)

    The result is great! But it generates some problems when you test a page. It does not get refreshed... Easy, you can clear the cache. Not advisable when your cache is around 10,000 files. A better way, is to go to that page and click on "Flush Page" (available in one of the blocks offered by boost.)

  • Today I started testing a lot of my JavaScript / jQuery code from a website I am building for a customer. I got an error, at some point, saying:

    SCRIPT5007: Unable to get property 'replace' of undefined or null reference

    The error was in link with the 'replace' function being referenced on an innerHTML of an element. More specifically, one of those XML element (probably the top most one.)

    The fact is that Internet Explorer does not support innerHTML in an XML document. Not to be too surprised about that, XML is not HTML so there is really no reason why innerHTML should be ...

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.

  • VACUUM

    The VACUUM instruction is used by PostgreSQL to query the server in cleaning up the corresponding database cluster. The work done is simply to remove the unused rows and clearly mark them are available. The VACUUM FULL command will go the extra distance of pushing the data so as to make the tables as small as possible. The command can be run on a per table basis.

  • associate
  • console
  • layout
  • robot