The Linux Page

Pages with category Development

  • I have been writing C/C++ code for... well... over 10 years.

    I'm always surprised when I use another language and some basic rules are completely different.

  • I always wondered why we couldn't just use dpkg to verify that the installed packages have not be tempered with. I know that the feature is hardly safe if the md5's are saved on the same computer, even the same hard drive...

    Still, once in a while it's just a manual error that requires me to check that I did do something wrong on my computer.

    Under Red Hat the rpm packager offers the -V option: Verify.

    Under Debian and thus Ubuntu and other derivatives, the debsums tool has to be installed and used for that purpose.

      sudo apt-get install debsums
      debsums -s <package ...
  • When running a process under MS-Windows, it is at times rather difficult to find a problem caused by some slowness in your code, especially when it is not expected to be slow.and you do not get any kind of feedback from your software outside of the slowness itself.

    When that happens a good way to find the problem is to use a profiler. Under MS-Windows, you have quite a few choices, but in most cases I've seen rather complicated solutions. Today I was told to check in Very Sleepy which I downloaded very quickly, installed very quickly, and ran very quickly., Also it did not give me the ...

  • If you have your own Drupal site, you may have noticed a set of tabs appearing at the top. The View and the Track tab often appear on your site even for anonymous users. This is really annoying!

    Here I show you what I see when I go to one of my pages. The View, Edit and Track tabs.

  • Download a free copy of your C++ development environment! (Visual C++ v8.0)

    Yes! Microsoft is doing the same thing as Linux: they offer their IDE for free with their fully compliant C/C++ compiler (as well as other bits if you are interested, I only want C++ on my end!)

    At this time, the link is like this: ... (does not work anymore...)

    It may require a bit of digging to get older versions but they should remain available. (but who wants the old stuff anyway?!)

    I don't have links anymore and the one I had before doesn't work... it make still be available, but you'll have o

  • Yesterday I installed VTune on a system at one of the companies I'm working with. It worked like a charm and I could run a few analysis and see problem areas in the system.

    Later I worked on another C++ project in Linux, this morning I woke up on MS-Access, and did a little Drupal after that (PHP). I came back on Visual Studio C++ and... the VTune button is disabled! Not available at all somehow and no error message or anything!?

    Turns out, like yesterday I had to start the VTune version of Visual Studio! Without that special version, it simply doesn't work, but it still appears and ...

  • An RSS feed is very common on all new websites. It has been around for years now. As of today you could listen to thousands of RSS feeds and be totally swamped by all the news...

    But what is an RSS feed?

    The way users know about RSS feed is in the form of a URL. The URL points to a file on a website that includes data. That data file uses the specific RSS or RDF format, which uses XML as the base format.

    So it is in fact very easy to generate an RSS feed. All you have to do is write an XML file with the proper tags and attri as defined on the W3C and AtomEnabled ...

  • Look at the SHGetSpecialFolderPath()1 function! You can actually use names such as "My Documents" and transform them a valid path as you would expect (i.e. C:\Settings & Stuff\username\My Docs\...).

    And yes! If you have no clue about that function, that's not going to be easy to find it...

    Note that there has been talks about creating such functions under Linux. There are some but so far I have not seen too many people using

    • 1. The SH stands for Shell. The explorer windows are considered shells under MS-Windows. Nothing to do with a real good Unix shell, of course.
  • I use gVim all the time, I like that editor very much (emacs is just way too much, if you ask me.)

    But once in a while I install a new server and by default they generally turn off the modeline feature. This is because there are potential security risks in link with that feature (i.e. vim starts running whatever script is defined in the text files that you edit...)

    Anyway, I most often forget about the command to enable my:

    vim: <setup>

    (I most often define the tab stops, corresponding shift width and eventually the syntax of a file.)

    Only, on those new servers, that doesn't ...

  • I had a problem for the last 2 days and had a hard time to determine what it was...

    Now I know how to resolve such a problem, so I wanted to share my finding! It's very simple, but writing about it here may help me later to save time...

    So... I wrote a C++ class for a DLL, this means I want it's public functions to be exported:

    class MY_CLASS_API myClass {
    public:
        ... // declarations and functions
    };
    

    Up to here, nothing strange.

    The MY_CLASS_API is a macro defined in some random header file:

    #if defined(MSWINDOWS)
    #  if MY_CLASS_EXPORTS
    #    define MY_CLASS_API
    
    
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.