Thread: Wiki FAQ

  1. #166
    (?<!re)tired Mario F.'s Avatar
    Join Date
    May 2006
    Location
    Ireland
    Posts
    8,446
    I can't find the time to put up some more content into the boost articles. Will have to wait. And yeah, SF.net is becoming... an annoying place to be.
    Originally Posted by brewbuck:
    Reimplementing a large system in another language to get a 25% performance boost is nonsense. It would be cheaper to just get a computer which is 25% faster.

  2. #167
    Software Developer jverkoey's Avatar
    Join Date
    Feb 2003
    Location
    New York
    Posts
    1,905
    Seems you guys are still working on this thing, cool. I had mentioned a while back that I was developing a similar concept, and I actually have it online now with some solid customizations to MediaWiki.

    http://opentutorials.thejefffiles.com/Main_Page

    The site has been modded to support LaTeX and syntax highlighting in a variety of languages.

  3. #168
    (?<!re)tired Mario F.'s Avatar
    Join Date
    May 2006
    Location
    Ireland
    Posts
    8,446
    Very nice, jv.
    Originally Posted by brewbuck:
    Reimplementing a large system in another language to get a 25% performance boost is nonsense. It would be cheaper to just get a computer which is 25% faster.

  4. #169
    Frequently Quite Prolix dwks's Avatar
    Join Date
    Apr 2005
    Location
    Canada
    Posts
    8,057
    GeSHi, eh? How is it? Was it difficult to install?
    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.

  5. #170
    Software Developer jverkoey's Avatar
    Join Date
    Feb 2003
    Location
    New York
    Posts
    1,905
    Quote Originally Posted by dwks View Post
    GeSHi, eh? How is it? Was it difficult to install?
    It's great; fully functional and easy to install and customize. It supports most well-known languages.

  6. #171
    Frequently Quite Prolix dwks's Avatar
    Join Date
    Apr 2005
    Location
    Canada
    Posts
    8,057
    Yes, I know about the supported languages. I was considering installing it for cpwiki. http://cpwiki.sourceforge.net/User_talkwks [edit] Neat, a grin in a link. [/edit]

    Which brings me to cpwiki.theprogrammingsite.com. I'm sorry that I haven't finished setting that up yet. Sourceforge is not going to work out. It's far too slow and keeps timing out and so on. I'll see what I can do. The trouble is that I'm not sure if I'll be able to transfer the database. I'm using the latest version of MediaWiki, since my server has PHP 5.

    Not to mention that I don't appear to have write access from phpmyadmin, so I don't know how I'd overwrite the database anyway.

    I think we'd just have to copy and paste the contents of the pages to the new location, if we wanted to move cpwiki to theprogrammingsite. Losing all of the history and such in the process . . . .

    Anyway, here is my installation of mediawiki (at the moment -- I'd move it, of course), in case you want to test it for speed or whatever. http://theprogrammingsite.com/cpwiki...php5?Main_Page

    If there are no other offers for hosting, and everyone's okay with typing an absurdly long name like "theprogrammingsite", and no one minds losing the history from the previous page as changes are copy-pasted into the new site, maybe we can use that for cpwiki instead of sourceforge.

    BTW, at theprogrammingsite, MySQL databases can be up to 100MB, there are over 9 GB of free space at the moment, and monthly bandwidth is 300 GB! If the speed and reliability is okay, it would make a good place for cpwiki.
    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. #172
    C++まいる!Cをこわせ!
    Join Date
    Oct 2007
    Location
    Inside my computer
    Posts
    24,654
    I just had a go at A pointer on pointers article.
    It's probably full of errors and such. Criticism needed and probably some editors, as well...
    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. #173
    (?<!re)tired Mario F.'s Avatar
    Join Date
    May 2006
    Location
    Ireland
    Posts
    8,446
    I have webspace I can donate for this, dwks.
    it could go into cpwiki.quiettech.co.uk if that would be ok... or I could open the purse a little and buy a new domain (co.uk only)...

    I also have recently bought a 3 year account to a Linux dedicated server at 1&1 that would make a better option since I could provide you with a control panel and all with full database access. Not to mention ability to include the top level domains. However I currently have it down until I have time to set up the Virtuozzo panel which will only happen when I move quiettech.co.uk there.

    So... if you are interested we can move to email. PM if that is the case.
    Originally Posted by brewbuck:
    Reimplementing a large system in another language to get a 25% performance boost is nonsense. It would be cheaper to just get a computer which is 25% faster.

  9. #174
    C++まいる!Cをこわせ!
    Join Date
    Oct 2007
    Location
    Inside my computer
    Posts
    24,654
    If anyone keeps an eye on the wiki, a slew of new articles has appeared recently:
    Implicit main
    Buffer overrun was updated
    Performance and optimization
    Undefined behavior
    And
    Virtual Memory has been updated
    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. #175
    (?<!re)tired Mario F.'s Avatar
    Join Date
    May 2006
    Location
    Ireland
    Posts
    8,446
    Thanks Elysia. But I would suggest not adding/editing anything for a little while. The server is going to be moved soon hopefully. We are just trying to create the conditions to have a smooth migration from wikimedia 1.6 all the way to 1.12 without losing any of the history data.
    Originally Posted by brewbuck:
    Reimplementing a large system in another language to get a 25% performance boost is nonsense. It would be cheaper to just get a computer which is 25% faster.

  11. #176
    C++まいる!Cをこわせ!
    Join Date
    Oct 2007
    Location
    Inside my computer
    Posts
    24,654
    Yes, hopefully it will go smooth
    Also, mats contributed with two of them and also helped redesign the virtual memory page, so now it's verified!
    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. #177
    Frequently Quite Prolix dwks's Avatar
    Join Date
    Apr 2005
    Location
    Canada
    Posts
    8,057
    Once we figure out how to convert the Wiki databases (we're working on it, really -- okay, Mario F. is), we'll probably grab a very recent backup. Then we'll set up the new wiki, and I'll change cpwiki.sf.net to redirect to the new wiki, just so that no one posts on the old one by mistake.

    Until then, post articles freely.
    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.

  13. #178
    C++まいる!Cをこわせ!
    Join Date
    Oct 2007
    Location
    Inside my computer
    Posts
    24,654
    Another one:
    http://cpwiki.sourceforge.net/Common...kes_and_errors
    I'm sure there's lots to add there. Feel free.

    But how's the move coming?
    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.

  14. #179
    Lurking whiteflags's Avatar
    Join Date
    Apr 2006
    Location
    United States
    Posts
    9,613
    Quote Originally Posted by Elysia View Post
    Another one:
    http://cpwiki.sourceforge.net/Common...kes_and_errors
    I'm sure there's lots to add there. Feel free.

    But how's the move coming?
    There are two sections to the article at the time of this post:

    Pointers (again): This time Elysia's restated that stray pointers should not be dereferenced and provided at least one entirely wrong and narrow minded (pointers == dynamic memory mentality) example of how to fix it. And const correctness as it relates to char*. Const correctness is an article I linked to that needs writing.

    I request, Elysia, that you avoid creating articles that overlap one another for the time being, for two important reasons. The encyclopedia is not at all complete and we can argue about what articles can be coupled together as "common mistakes" and where to refer readers to at a later date. By the incompleteness statement I mean that there are a lot of topics still out there - inheritance is another big place where people screw up a lot, is it "common"? Does anybody want to teach OOP? We're hardly ready to start this sort of spit-shining.

    And secondly, some of the articles you've referenced don't seem to apply best to the mistakes in question. Why does const correctness relate to your article on vertual memory? Why not write the const correctness article instead?
    Last edited by whiteflags; 04-24-2008 at 02:20 PM.

  15. #180
    verbose cat
    Join Date
    Jun 2003
    Posts
    209
    Quote Originally Posted by Elysia View Post
    The "Right Way" for C appears to pass a garbage value to malloc for how much to allocate:

    Quote Originally Posted by cpwiki
    Right way (C):

    int* myvar = malloc(*myvar);
    *myvar = 5;
    free(myvar);
    If this isn't an error, can someone explain why the value of some random memory location is given to malloc() here?
    abachler: "A great programmer never stops optimizing a piece of code until it consists of nothing but preprocessor directives and comments "

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