|
Chris Maunder wrote: Now - who will be the first to complain about the lounge link?
Me!?
|
|
|
|
|
Nothing really huge, more of just a recognition that voting for a question or answer is different than voting for an article.
Voting is incredibly important in helping filter the good and the bad, but useless if no one votes. Voting can be, however, detrimental to the motivation of authors if downvoting can take place without accountability.
My feeling on this is that articles, technical blogs and Tips are permanent references and their vote has weight. Questions are ephemeral and nowhere near the amount of effort has gone into posting a question as would go into, say, posting a tip - let alone an article.
In light of this I've removed the features for questions and answers that requires a comment to be provided on a downvote. With the introduction of the comment requirement the number of votes fell dramatically, and the votes that did occur were not always useful. By removing the barrier to voting, Quick Answers now falls into line with the discussion forums with voting now easier and more likely to be cast.
We'll see. Maybe this is a Very Bad Thing. Maybe we put comments back on answers, but not questions. Maybe we change the voting to simply be yay/nay.
cheers,
Chris Maunder
The Code Project | Co-founder
Microsoft C++ MVP
|
|
|
|
|
Seems a reasonable argument.
------------------------------------
I will never again mention that I was the poster of the One Millionth Lounge Post, nor that it was complete drivel. Dalek Dave
CCC League Table Link
CCC Link[ ^]
|
|
|
|
|
Dear Chris,
It is good thing to keep Voting for the answer , also there should be some way where the question poster once he gets the answer he should vote appropriately , not only take use og the forum answer, I want to add some more points to the quick answer section, most of the people are posting thier comments as answers this not correct as posting comment will get one point and posting answer 10 points
Regards
Rajesh
|
|
|
|
|
We have a new article layout!
After an absolute marathon 3 weeks I'm happy to let our new baby free into the world. A cleaner layout, less clutter, no more left-hand side bar, and a rationalised top-menu.
While doing this we also added a few more things:
- inline posting of answers in the Quick Answers section
- Next / previous buttons on Quick Answer pages to allow you to whiz through them faster.
- Source code browsing
- A flyout sitemap of Chapters and sections (see the sign post at the top left of articles)
- A slightly (and I mean, slightly) improved iPhone experience.
- A few niceties for non-IE users, and a couple more on top of that for Opera and Chrome users.
- 'Learning Zones' - areas where we will bring together content on a given topic for new (and advanced) members
- You can add your Twitter name to your account to give a little exposure to your twitter feed.
There are definitely a few little surprises around. I had to be brutal in removing unnecessary stuff and even now I still want to remove 50% more.
There will be a period of weirdness where the site is half-in, half-out of the new design, but I wanted to at least push forward with the article design since that brings the biggest benefit to the majority of our readers who simply come here for a 5 second quick fix.
Enjoy, and as always, bugs and suggestions in the Bugs and Suggestions[^] forum.
cheers,
Chris Maunder
The Code Project | Co-founder
Microsoft C++ MVP
|
|
|
|
|
One of the obvious ways to make something faster is to give it less to do (excepting, of course, that well known adage that if you want something done, give the task to a busy person). Caching is the prime method of speeding up a website and takes many forms: SQL server caches results, your data layer may cache results, your business objects may be cached, ASP.NET has a cache object, Appliction and Context objects, the session object, disk caching, your user controls and pages have output caching, there is server side caching within IIS, partial page caching, and client side caching within your browser itself.
Just to name a few.
Unfortunately your web.config file doesn't have an entry <caching level="11" for="everythingIncludingTheKitchenSink" />
Setting up caching requires attention to detail and an understanding of where the load is best relieved, what type of data synchronisation issues you may have (working in a webfarm?), what member you have, the length of time you wish to cache and your caching resources (memory).
For the last couple of weeks we've been focusing on the client side trying to understand what is causing the page to download slowly, and what we can do to speed up rendering. To this end the obvious fixes were to ensure IIS caching was enabled, and not just enabled, but enabled correctly.
IIS caching requires you to explicitly tell IIS that you want caching. Because, you know, you might enjoy having your readers download those images every...single...time. So you turn it on - ensuring you enable it for both static and dynamic content - and you find it works for your IIS6 servers but not your IIS7 servers (yes, we mix and match. We're crazy like that).
The trick is removing the eTag. Do a search and you will find the trick is actually setting the eTag changenumber to 0, which requires downloading the IIS Metabase editor, cranking it up, adding an arcane key and crossing your fingers. This then ensures that the eTag, a value that should be the same for a given version of a file on all servers, is the same. Change the file, the eTag changes, and the file is re-downloaded by the client and cached until it next changes.
However, the eTags between IIS6 and IIS7 differ so the only way to get around this is remove the eTags. An eTag is just an HTTP header so in IIS6 you just manually ask IIS6 to add a new header to the output stream called "eTag" with the value "". Voila, no eTags.
Except that this doesn't work for IIS7. People say it does, but it doesn't. You'll need to write a HttpModule to strip the output of the eTag manually.
So...
You now have caching working. You've enabled it, set the expiry as a date in the far, far future, removed eTags if required, ensures static and dynamic are cached, and all is good. Speed skyrockets. Well, perceived speed.
However, you still have many readers who come once, and once only. Caching is no use for them. So the next step is compression.
Compressing your downloads (zips, images, HTML content itself) is again set by IIS but it's, yet again, a PITA in IIS6. I'm not going to go through the details - just do a search for "IIS compression metabase.xml" and you'll find the instructions for enabling compression properly on your servers.
And again you now have compression. You're sending small packages downstream, sending them less often, saving bandwidth, saving processor time, and everyone wins.
Just make sure you make copious notes of what you did, because when it comes time to adding a new server or repairing a failed server, you really don't want to go hunting around for all this stuff again.
Now where is that web.config setting we all need...cheers,
Chris Maunder
The Code Project | Co-founder
Microsoft C++ MVP
|
|
|
|
|
1. The trees start turning in Quebec mid-August. This, to me, is totally unacceptable until a mate pointed out that we could have our first snow within 8 weeks. It's currently so hot outside the tarmac is sticky.
2. Raccoon poo can burn wood
3. I have a dray of squirrels going ballistic in our trees and a gaze of raccoons treating our roof like a trampoline that opens at 5am. Gaze and Dray - your words of the day.
cheers,
Chris Maunder
The Code Project Co-founder
Microsoft C++ MVP
|
|
|
|
|
Hello, I am a Chinese, a C # programmer, you are in Canada, learned?
|
|
|
|
|
Or colorization if you live in certain countries.
A small thing but it does solve two problems:
1. The code looks better.
2. Smilies are no longer injected into PRE blocks.
The programming forums are due for a serious upgrade so while this change won't mean much in the short term it does make life slightly, slightly nicer in the interim.
cheers,
Chris Maunder
The Code Project Co-founder
Microsoft C++ MVP
|
|
|
|
|
|
I'm on it - just haven't had a chance to upload. We just had massive electrical storms come through Toronto which killed my chance to do an upload tonight
cheers,
Chris Maunder
The Code Project Co-founder
Microsoft C++ MVP
|
|
|
|
|
A lot of my time over the past few weeks has been spent weeding out spammers. Spammers in the forums, spammers in the articles and spammers in the member pages.
The latest (well, latest that I've noticed on CodeProject) trend is to go to a site that allows a member to have a profile page, create a page that contains whatever loathsome spam-ridden message you want to pass on, and then send a spam email with links to that profile page. Actually, links to about 20 profile pages spread across different sites.
This is a sneaky way to try and get around email spam filters. I'm assuming the theory is along the lines of: The links in the email aren't to banned sites so they get through email filters (even though "viagra" is the main topic of the email). Spammees get the email, think to themselves "That's exactly what I need in my life!" click the link, go to CodeProject, see the profile, click another (fatal) link and get their machine infected with zombieware and leave unsatisfied.
At least that's as close as I can guess.
The upshot is that I spent probably 2hrs a day analysing the results of the filters, with each new IP or keyword or pattern unearthing a new motherlode of fake accounts for me to shovel through.
We're getting there, and while I appreciate (but am equally horrified) at the large spikes in page views we get each time one of these mis-directed spams go out, it is getting a little old.
cheers,
Chris Maunder
The Code Project Co-founder
Microsoft C++ MVP
|
|
|
|
|
We were thinking about the following:
You’re in Visual Studio 2008 working on a nasty block of code. Remembering that one of your Code Project cohorts recently posted an elegant solution for a similar problem you highlight some code and hit search. Up pops the exact article in The Code Project Add-In window. No time wasted. No pulled hair and exasperating searches. Valuable information is just one click away.
So we wrote it. The Code Project Add-In for Visual Studio 2008[^] does this, and will do a whole lot more once we're through.
We wrote this add-in so our members would have quick access to our 23,000+ articles in addition to MSDN and Live Search. No more toggling back and forth between your work and web searches. We hope this will make your work easier. It’s free and it's available now. Does it get any better than that? Download here[^]
cheers,
Chris Maunder
The Code Project Co-founder
Microsoft C++ MVP
|
|
|
|
|
Hi chris
I am a student and I have to do a project about jenetic algorithm I would be so grateful if you could help me. it is about the implementing the genetic algorithm which was used in an article in C language. the name of article is:
solving uncapicitated hub location using genetic algorithm. I would be so grateful if I had your email inorder to sent it to u
Thanks in advance.
abbbas
|
|
|
|
|
hai sir
can i use in contentplaceholder in child page
|
|
|
|
|
Urgent Enquiries About Share Point Work Flow.
Naposon Group LMT.
30b Martin Street Lagos
Nigeria .
Tel +234 8025066097
Fax +234 0198993
Hello Chris,
You are receiving this mail from Naposon Group we are newly appointed government Share Point designer which gives us an eager over our rivals here, But the truth is that we have not been able to complete most of the project that is given to us and this is really giving us BIG concern.
We would like to partner with your company so you can assist us sort most of the difficult part of it, We are ready to abide by your laws and we wish this will showcase your companies power in my country,
Hoping receive an urgent response this email so as to enable us put a hold to most of the work we have at the moment.
Thank You.
Mr Uche Howard
Ceo.
|
|
|
|
|
Tonight I closed The Soapbox.
I started the Code Project with David nearly 10 years ago. My goal was to provide a place where software developers could come together and share free source code. Our site grew quickly and attracted an amazing group of developers who were instrumental in providing content for others. Fundamental to the atmosphere we created on The Code Project was the rule that members treat other members with respect.
We opened the lounge soon after we started the site and, boys being boys (at least mostly at that time) things sometimes got a little rowdy. We then opened the Soapbox so that members would have a place to extend discussions on software development to areas not suitable for a PG audience. Language would sometimes get a little blue, discussions on why C++ was better than VB would get personal, and comments on MSDNs latest anchorwoman would, well, go where they would go. It was still all in good fun and (reasonable) good taste for a long time but then it started going downhill.
The Soapbox today is simply a place for a core group of members to discuss US politics, Global warming, religious sterotypes and to launch personal attacks. Often in the same message. The soapbox is no longer a place I can send errant messages, but instead has become a place where errant messages are encourage and condoned and a place that has absolutely nothing to do with what I orginally imagined our site to be.
There are so, so many other sites on the Internet where these topics, flame wars and personal vendettas can be indulged but our site is not one of them. So as of this evening I have closed the soapbox.
I'm sorry to those who genuinely enjoyed the hurly burly of it all but with the realisation that the forum does nothing other than fuel the very behaviour we don't want to see on our site it no longer makes any sense to keep it.
|
|
|
|
|
Thanks Chris that's a good move, but are you sure you electrified all the fences in Lounge?
As a serious reply, I had a little thought. When so many online business minds are struggling so much to attract people to their sites, you got them so easily in the soapbox. Well I'd say SB should never be a part of CP for sure, but you could have moved them out of CP's sight and kept it alive & running somewhere. A simple redirect would do. It might have been worth few Clicks!. Or you might have sold off the entire mob to some online forum-setup craze heads.
For example :
www.CPSOAPBOX.com
-C'mmon let's fight it out here
I know I suck at business ideas, but just my 2 cents
OK,. what country just started work for the day ? The ASP.NET forum is flooded with retarded questions. -Christian Graus
Best wishes to Rexx[^]
|
|
|
|
|
I've asked for the SB to be deleted myself, in the past. Oddly enough, I have my doubts now... but I just hope said troublemakers don't come over to the Lounge or the other forums.
I'm curious, Chris, what was happening last night? Did someone write a bot to tag other people's messages as abuse?
|
|
|
|
|
Vikram A Punathambekar wrote: Did someone write a bot to tag other people's messages as abuse?
Someone just had way too much spare time.
It isn't the voting or the deleting of messages I care about in the least - if the Soapbox crowd wishes to play with the system like that then it's their choice. It was purely a content and purpose issue.
cheers,
Chris Maunder
CodeProject.com : C++ MVP
|
|
|
|
|
Chris Maunder wrote: Someone just had way too much spare time.
Chris, some of those messages were being deleted where the majority of votes were 5's, and only 2 - 4 votes had been cast. My first thought was sock puppet, but that would still have required in an excess of a half-dozen votes, wouldn't it?
Jon
Smith & Wesson: The original point and click interface
Algoraphobia: An exaggerated fear of the outside world rooted in the belief that one might spontaneously combust due to global warming.
|
|
|
|
|
Yep - it does look like 'mark as abuse' messages were being cast without a corresponding score vote being added as well. Not exactly a security issue (as far as I can tell) but more a cosmetic issue since it does look weird having a 5/5 message marked as Abuse.
I'm still digging to see where the missing votes are going.
cheers,
Chris Maunder
CodeProject.com : C++ MVP
|
|
|
|
|
I just took a look at the Lounge Thread "The Soapbox and Option." Ilion has returned (he is usually missing in the afternoon and early evening) and messages are being deleted in there, without any votes in many cases, left and right. Yesterday, while he was not posting, there were no deletions, but when he resumed so did they. I don't know whether that's meaningful or not. But as I've said elsewhere, I believe that he has decided to take this site down. This is a vendetta aimed at you.
Jon
Smith & Wesson: The original point and click interface
Algoraphobia: An exaggerated fear of the outside world rooted in the belief that one might spontaneously combust due to global warming.
|
|
|
|
|
Yep, I see it.
cheers,
Chris Maunder
CodeProject.com : C++ MVP
|
|
|
|
|
Had the site been closed last Friday, this explanation would have sufficed. However, the problem that occurred on Saturday must have had some impact on your decision. That much of a coincidence doesn't seem to have too much of a probability. Had there not been a security leak, I suspect the SB would be open for business right now.
This is your site, and you have done nothing here that I have not done on (to?) a site I webmaster so I cannot presume to suggest that I know what your site should offer its regs and what it shouldn't. I will miss it and I assure you, that rough behavior or not, compared to many forums out there, SB was a pussycat.
Jon
Smith & Wesson: The original point and click interface
Algoraphobia: An exaggerated fear of the outside world rooted in the belief that one might spontaneously combust due to global warming.
|
|
|
|
|