Thread: Wiki FAQ

  1. #61
    Frequently Quite Prolix dwks's Avatar
    Join Date
    Apr 2005
    Location
    Canada
    Posts
    8,057
    It doesn't seem to be configured properly. From here, I get:
    Code:
    Warning: main(includes/SiteConfiguration.php): failed to open stream: No such file or directory in\
    /home/groups/c/cb/cboardwiki/htdocs/mediawiki-1.6.10/includes/DefaultSettings.php on line 31
    
    Fatal error: main(): Failed opening required 'includes/SiteConfiguration.php' (include_path='.:/usr/local/share/pear') in\
    /home/groups/c/cb/cboardwiki/htdocs/mediawiki-1.6.10/includes/DefaultSettings.php on line 31
    [edit] I'm off -- see you Friday. I expect this will be up and running by then, right? [/edit]
    Last edited by dwks; 12-21-2007 at 07:01 PM.
    dwk

    Seek and ye shall find. quaere et invenies.

    "Simplicity does not precede complexity, but follows it." -- Alan Perlis
    "Testing can only prove the presence of bugs, not their absence." -- Edsger Dijkstra
    "The only real mistake is the one from which we learn nothing." -- John Powell


    Other boards: DaniWeb, TPS
    Unofficial Wiki FAQ: cpwiki.sf.net

    My website: http://dwks.theprogrammingsite.com/
    Projects: codeform, xuni, atlantis, nort, etc.

  2. #62
    Woof, woof! zacs7's Avatar
    Join Date
    Mar 2007
    Location
    Australia
    Posts
    3,459
    That's because I was still uploading it

  3. #63
    Woof, woof! zacs7's Avatar
    Join Date
    Mar 2007
    Location
    Australia
    Posts
    3,459
    Well it's done, but I'll wait for the name change before I do anything more. Also should the wiki be collapsed from ./wiki to . ? So it's http://cpwiki.sf.net/void_main for example.

  4. #64
    C++まいる!Cをこわせ!
    Join Date
    Oct 2007
    Location
    Inside my computer
    Posts
    24,654
    Sure, that sounds good.
    Quote Originally Posted by Adak View Post
    io.h certainly IS included in some modern compilers. It is no longer part of the standard for C, but it is nevertheless, included in the very latest Pelles C versions.
    Quote Originally Posted by Salem View Post
    You mean it's included as a crutch to help ancient programmers limp along without them having to relearn too much.

    Outside of your DOS world, your header file is meaningless.

  5. #65
    Registered User
    Join Date
    Jan 2005
    Posts
    7,366
    Did you guys send a PM to webmaster? He might like the idea and want to make it an official addition to the site (I would if I was him and had time). The problem might be that you guys wouldn't be able to administer the wiki, but if he has time to set it up and get it started I think that would be preferred. I don't think that will actually happen but you might want to ask just in case.

    >> Who are we targetting this site for? Is it going to aim at the void-mainers or the more confuzzled variety?

    I think there is a need for a community edited and reviewed FAQ that is based off the questions that are frequently asked on this site. Existing FAQs are quite good (like C++ FAQ Lite), but they don't necessarily cover the questions that are frequently answered here. I think this should be the initial focus of the project (or at least would be my initial focus for making contributions).

    I think such a project would be beneficial to this board, as it would enhance the quality of answers that can be provided quickly.

    Separate from that, tutorials on basic C or C++, as well as tutorials on more specific topics might be nice. The fact that they would (ideally) be edited and reviewed by members of this site is nice. But still I think the target audience should be the people that come to the cboard and ask questions. The strength of this site is the help for beginners, and I think a wiki should target that same crowd.

  6. #66
    Frequently Quite Prolix dwks's Avatar
    Join Date
    Apr 2005
    Location
    Canada
    Posts
    8,057
    Since no one seems to have sent a PM to the webmaster, I just did. (To webmaster, kermi3, and Salem, to be exact.)

    (Yes, I managed to get online a day ahead of schedule.)
    dwk

    Seek and ye shall find. quaere et invenies.

    "Simplicity does not precede complexity, but follows it." -- Alan Perlis
    "Testing can only prove the presence of bugs, not their absence." -- Edsger Dijkstra
    "The only real mistake is the one from which we learn nothing." -- John Powell


    Other boards: DaniWeb, TPS
    Unofficial Wiki FAQ: cpwiki.sf.net

    My website: http://dwks.theprogrammingsite.com/
    Projects: codeform, xuni, atlantis, nort, etc.

  7. #67
    C++まいる!Cをこわせ!
    Join Date
    Oct 2007
    Location
    Inside my computer
    Posts
    24,654
    I was thinking a simple app to catch beginner mistakes too.
    It doesn't need to be a code analyzer - there are professional ones out there, costing a lot of money. But just a small parser to catch simply mistakes such an indentation problem, scanf("%s", ...), void main and so on.
    Quote Originally Posted by Adak View Post
    io.h certainly IS included in some modern compilers. It is no longer part of the standard for C, but it is nevertheless, included in the very latest Pelles C versions.
    Quote Originally Posted by Salem View Post
    You mean it's included as a crutch to help ancient programmers limp along without them having to relearn too much.

    Outside of your DOS world, your header file is meaningless.

  8. #68
    Frequently Quite Prolix dwks's Avatar
    Join Date
    Apr 2005
    Location
    Canada
    Posts
    8,057
    Detecting "bad" indentation would be a lot more difficult than it sounds. Consider that all of these
    Code:
    if(x) {
        code();
    }
    if(x)
    {
        code();
    }
    if (x)
      {
        code();
      }
    if ( x )
        {
        code();
        }
    might make acceptable indentation styles, but mixing them would probably be considered bad practice. So such a program would have to keep track of what indentation style is being used, and make sure the program sticks with it.

    Assuming you had envisioned something that sophisticated. You could just count the spaces at the beginning of a line and make sure the counts are all multiples of some number like 2 or 4.

    Having said that, such a program would be rather interesting -- you could even make it say things like "void main() is non-standard -- you should use int main() instead: <link to faq>" when it detected void main()!

    You could make it into a bot which crawled CBoard, scolding everyone for using void main()! . . . and call it PedanticAutomatedBeginnerBlunderDetector.
    dwk

    Seek and ye shall find. quaere et invenies.

    "Simplicity does not precede complexity, but follows it." -- Alan Perlis
    "Testing can only prove the presence of bugs, not their absence." -- Edsger Dijkstra
    "The only real mistake is the one from which we learn nothing." -- John Powell


    Other boards: DaniWeb, TPS
    Unofficial Wiki FAQ: cpwiki.sf.net

    My website: http://dwks.theprogrammingsite.com/
    Projects: codeform, xuni, atlantis, nort, etc.

  9. #69
    C++まいる!Cをこわせ!
    Join Date
    Oct 2007
    Location
    Inside my computer
    Posts
    24,654
    I'm writing the parser right now. It's not as difficult as it sounds. Functions are a little more difficult, however, due to variable types.
    I'm going to program it to recognize standard types, since I don't want to make it parse and crawl through headers, as well.
    Last edited by Elysia; 12-23-2007 at 02:26 PM.
    Quote Originally Posted by Adak View Post
    io.h certainly IS included in some modern compilers. It is no longer part of the standard for C, but it is nevertheless, included in the very latest Pelles C versions.
    Quote Originally Posted by Salem View Post
    You mean it's included as a crutch to help ancient programmers limp along without them having to relearn too much.

    Outside of your DOS world, your header file is meaningless.

  10. #70
    C++ Witch laserlight's Avatar
    Join Date
    Oct 2003
    Location
    Singapore
    Posts
    28,413
    Having said that, such a program would be rather interesting -- you could even make it say things like "void main() is non-standard -- you should use int main() instead: <link to faq>" when it detected void main()!
    hmm... but this can get tricky with C++ since it is perfectly acceptable for a main function in a namespace or class scope to have a return type of void. Then again, it is also acceptable to use non-standard code if the situation requires it.
    Quote Originally Posted by Bjarne Stroustrup (2000-10-14)
    I get maybe two dozen requests for help with some sort of programming or design problem every day. Most have more sense than to send me hundreds of lines of code. If they do, I ask them to find the smallest example that exhibits the problem and send me that. Mostly, they then find the error themselves. "Finding the smallest program that demonstrates the error" is a powerful debugging tool.
    Look up a C++ Reference and learn How To Ask Questions The Smart Way

  11. #71
    C++まいる!Cをこわせ!
    Join Date
    Oct 2007
    Location
    Inside my computer
    Posts
    24,654
    I'm not looking into making it too advanced, of course, so let's just make it complain at all void main until further notice.
    Of course, since this is a dev community, anyone who want to see the source or join can do so.
    Quote Originally Posted by Adak View Post
    io.h certainly IS included in some modern compilers. It is no longer part of the standard for C, but it is nevertheless, included in the very latest Pelles C versions.
    Quote Originally Posted by Salem View Post
    You mean it's included as a crutch to help ancient programmers limp along without them having to relearn too much.

    Outside of your DOS world, your header file is meaningless.

  12. #72
    C++ Witch laserlight's Avatar
    Join Date
    Oct 2003
    Location
    Singapore
    Posts
    28,413
    Also should the wiki be collapsed from ./wiki to . ? So it's http://cpwiki.sf.net/void_main for example.
    If this is done properly I would suggest that this forum include a wiki bbcode tag. Over at phpbuilder.com forums we have a man bbcode tag that links to php.net (the PHP manual, actually), and this has proven extremely useful.
    Quote Originally Posted by Bjarne Stroustrup (2000-10-14)
    I get maybe two dozen requests for help with some sort of programming or design problem every day. Most have more sense than to send me hundreds of lines of code. If they do, I ask them to find the smallest example that exhibits the problem and send me that. Mostly, they then find the error themselves. "Finding the smallest program that demonstrates the error" is a powerful debugging tool.
    Look up a C++ Reference and learn How To Ask Questions The Smart Way

  13. #73
    Frequently Quite Prolix dwks's Avatar
    Join Date
    Apr 2005
    Location
    Canada
    Posts
    8,057
    I'd like to see the source code. C++, right?

    As a suggestion, why don't you use an already-existing parser? Something like Elsa might be overkill, but you can download Lex+YACC specifications for C++.

    It might not be worth it, especially if you've never used those tools before, but it would probably be less error-prone.
    dwk

    Seek and ye shall find. quaere et invenies.

    "Simplicity does not precede complexity, but follows it." -- Alan Perlis
    "Testing can only prove the presence of bugs, not their absence." -- Edsger Dijkstra
    "The only real mistake is the one from which we learn nothing." -- John Powell


    Other boards: DaniWeb, TPS
    Unofficial Wiki FAQ: cpwiki.sf.net

    My website: http://dwks.theprogrammingsite.com/
    Projects: codeform, xuni, atlantis, nort, etc.

  14. #74
    C++まいる!Cをこわせ!
    Join Date
    Oct 2007
    Location
    Inside my computer
    Posts
    24,654
    I'll zip it up and post it (once I get rid of all compile errors, that is). I was right in the middle of redesigning the interface when finding out it didn't work with the old one.
    I haven't actually used another parser before, but work is proceeding smoothly.
    Since I use Visual Studio 2008 to compile, there may be some problems. I won't actually change any of the project settings and such - I'll keep it so that it compiles on my machine. It shouldn't be hard to change the settings and link to the library properly to use it.

    I'll post UNICODE version.
    Last edited by Elysia; 12-23-2007 at 03:13 PM.
    Quote Originally Posted by Adak View Post
    io.h certainly IS included in some modern compilers. It is no longer part of the standard for C, but it is nevertheless, included in the very latest Pelles C versions.
    Quote Originally Posted by Salem View Post
    You mean it's included as a crutch to help ancient programmers limp along without them having to relearn too much.

    Outside of your DOS world, your header file is meaningless.

  15. #75
    C++まいる!Cをこわせ!
    Join Date
    Oct 2007
    Location
    Inside my computer
    Posts
    24,654
    I believe I have everything ready.
    http://www.eluni.net/temp
    There are two files there, both are for the project.
    In case you don't have/use Visual Studio 2008, I have the runtime (required for the DLL!) here:
    http://www.eluni.net/downloads/VS2008 Runtime

    So what needs to be done to compile? Link against the library using the included .lib.
    Fix up the includes so the library headers are included properly.
    Remember that the library is built with unicode, so unless the project is built with unicode, you'll get linking errors.

    Have fun
    Quote Originally Posted by Adak View Post
    io.h certainly IS included in some modern compilers. It is no longer part of the standard for C, but it is nevertheless, included in the very latest Pelles C versions.
    Quote Originally Posted by Salem View Post
    You mean it's included as a crutch to help ancient programmers limp along without them having to relearn too much.

    Outside of your DOS world, your header file is meaningless.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Wiki FAQ
    By Queatrix in forum A Brief History of Cprogramming.com
    Replies: 6
    Last Post: 03-25-2007, 03:39 AM
  2. Wiki for Tutorials
    By jverkoey in forum A Brief History of Cprogramming.com
    Replies: 7
    Last Post: 08-16-2005, 03:03 PM
  3. FAQ Check/Lock
    By RoD in forum A Brief History of Cprogramming.com
    Replies: 2
    Last Post: 10-15-2002, 11:21 AM