The Linux Page

Pages with category Development

  • When creating objects (commonly called JavaScript classes) in your JavaScript code, you want to use the prototype. This is the only clean way of doing it. In JavaScript, you can create objects on the fly, but those are not considered safe.

    Quick and Dirty

    The quick way is to create an object directly. This works, but it has potential problems with used against a powerful optimized such as the Google Closure Compiler.

    All the Quick and Dirty examples can make use of this in their myFunc examples. However, the closure compiler will warning about all of them because it doesn't know for ...

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

Syndicate content

SMS From Me Logo

SMS From Me

To automatically start one on one conversations with your online leads.

     

   

Terms of Site Index

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