|
Natural languages often are ambiguous. 'Twas not in your case I just got confused by the first "to" after the verb restricted.
My favorite in ambiguity: "He saw that gasoline can explode."
Cheers!
|
|
|
|
|
Time flies like an arrow, fruit flies like a banana!
The best things in life are not things.
|
|
|
|
|
Richard MacCutchan wrote: Time flies like an arrow, fruit flies like a banana!
I have to remember that one!
|
|
|
|
|
When the stars image is shown on a background other than white (like for an accepted answer), you can still see the white background on the stars image. Shouldn't the background be transparent?
".45 ACP - because shooting twice is just silly" - JSOP, 2010 ----- You can never have too much ammo - unless you're swimming, or on fire. - JSOP, 2010 ----- "Why don't you tie a kerosene-soaked rag around your ankles so the ants won't climb up and eat your candy ass." - Dale Earnhardt, 1997
|
|
|
|
|
The stars are done with 2 layers. The first is a solid block of colour, the second is a solid mask with star shapes cut out. The solid block of colour is rectangular and it's width is based on the rating. The area of the top mask outside the stars blocks off all this backing colour and just allows the colour to come through the transparent cutouts for the stars.
A way to get the background to fill the area around the stars is to have two images of stars, one filled, one empty, and show part of the filled image on the left, part of the empty on the right, with both images being transparent outside the stars, thus letting the background through.
cheers,
Chris Maunder
The Code Project | Co-founder
Microsoft C++ MVP
|
|
|
|
|
There is another alternative, potentially less complex. It is based on having a few stars with different fill percentage (say 0%, 25%, 50%, 75%, 100%), and pick five from them. The result shown would even be closer to the truth for intermediate values, as stars don't have a constant height, they would be rectangles if they had.
float actualScore=3.57f;
int score=(int)(4*actualScore+0.5f);
for (int position=1; position<=5; position++) {
int fill=score;
if (fill>4) fill=4;
if (fill<0) fill=0;
outputStar0To4(fill);
score-=4;
}
Luc Pattyn [My Articles] Nil Volentibus Arduum
The quality and detail of your question reflects on the effectiveness of the help you are likely to get. Please use <PRE> tags for code snippets, they improve readability. CP Vanity has been updated to V2.3
|
|
|
|
|
I've made a change (releasing today) that makes them transparent.
However, having the white background actually looks better on the green header.
cheers,
Chris Maunder
The Code Project | Co-founder
Microsoft C++ MVP
|
|
|
|
|
Chris Maunder wrote: However, having the white background actually looks better on the green header.
You could put an appropriate colored border around the image and leave the background white.
I only reported it because I thought it was a mistake.
".45 ACP - because shooting twice is just silly" - JSOP, 2010 ----- You can never have too much ammo - unless you're swimming, or on fire. - JSOP, 2010 ----- "Why don't you tie a kerosene-soaked rag around your ankles so the ants won't climb up and eat your candy ass." - Dale Earnhardt, 1997
|
|
|
|
|
It just struck me that you guys might have office pools going each time the site is updated to bet on which of the users is most likely to notice a problem first. Is this the case?
".45 ACP - because shooting twice is just silly" - JSOP, 2010 ----- You can never have too much ammo - unless you're swimming, or on fire. - JSOP, 2010 ----- "Why don't you tie a kerosene-soaked rag around your ankles so the ants won't climb up and eat your candy ass." - Dale Earnhardt, 1997
|
|
|
|
|
Something along those lines.
I also wouldn't say the word "baiting" creeps into our conversations. That would be cruel, right?
cheers,
Chris Maunder
The Code Project | Co-founder
Microsoft C++ MVP
|
|
|
|
|
I had a professor in college who intentionally put errors in online surveys just to bait me into reporting the errors. And he intentionally swapped the first letters of my first and last name. He and another student were in on the gag and I didn't find out about it until years later.
|
|
|
|
|
I switched my CP layout to "fluid", and the answer content seems to ignore the wider screen. The border gets wider and the the rating/links move to the right edges as expected, but the answer content itself appears to be stuck at the "fixed" width. The questions are not exhibiting this trait.
".45 ACP - because shooting twice is just silly" - JSOP, 2010 ----- You can never have too much ammo - unless you're swimming, or on fire. - JSOP, 2010 ----- "Why don't you tie a kerosene-soaked rag around your ankles so the ants won't climb up and eat your candy ass." - Dale Earnhardt, 1997
|
|
|
|
|
John Simmons / outlaw programmer wrote: I switched my CP layout to "fluid", and the answer content seems to ignore the wider screen.
You have to upgrade your BIOS for this to take effect.
|
|
|
|
|
....and then enable the GPU hardware acceleration and turn the flux capacitor all the way up to 11.
|
|
|
|
|
Have you tried either of Hans or David's suggestions? Have you tried rebooting your machine?
Most importantly, are you still using that abomination of a browser you keep using just to make my life hell?
I've tested in IE7,8 and the others and can't replicate the issue.
cheers,
Chris Maunder
The Code Project | Co-founder
Microsoft C++ MVP
|
|
|
|
|
Chris Maunder wrote: are you still using that abomination of a browser you keep using just to make my life hell?
Which abomination are you talking about?
Chris Maunder wrote: I've tested in IE7,8 and the others and can't replicate the issue.
At work, I have to use IE8. At home, I'm using FF4. In both instances, an answer's content that could be wider by virtue of the browser maximized on a 22-inch monitor, is not as wide as it can be. It (the text) wraps a lot sooner than it needs to.
When I changed from "fixed" to "fluid" layout, the page does take up all the available real estate in the window (no gray side panels), but the *answer* content wraps prematurely.
(I'm pretty sure the BIOS update thing was a joke.)
".45 ACP - because shooting twice is just silly" - JSOP, 2010 ----- You can never have too much ammo - unless you're swimming, or on fire. - JSOP, 2010 ----- "Why don't you tie a kerosene-soaked rag around your ankles so the ants won't climb up and eat your candy ass." - Dale Earnhardt, 1997
|
|
|
|
|
Should be good now.
cheers,
Chris Maunder
The Code Project | Co-founder
Microsoft C++ MVP
|
|
|
|
|
I updated my coding blog recently, including a CodeProject entry! with the CodeProject rel tag
http://galador.net/codeblog/post/2011/05/31/The-Content-Stream-sample.aspx[^]
If you look at the source (it's with a style of dysplay: none) it's there!
If I look at the latest date my blog has been polled, it's today.
Yet my blog is not there!
What's going on!?!
A train station is where the train stops. A bus station is where the bus stops. On my desk, I have a work station....
_________________________________________________________
My programs never have bugs, they just develop random features.
|
|
|
|
|
We haven't forgotten you. We just haven't had a chance to track down the problem.
Sorry
cheers,
Chris Maunder
The Code Project | Co-founder
Microsoft C++ MVP
|
|
|
|
|
Ho, good to know!
I was just so sad...
A train station is where the train stops. A bus station is where the bus stops. On my desk, I have a work station....
_________________________________________________________
My programs never have bugs, they just develop random features.
|
|
|
|
|
I wish you guys would just turn off the rep points for downloads so that the reduction in points later on (when you adjust it) doesn't hurt so bad.
".45 ACP - because shooting twice is just silly" - JSOP, 2010 ----- You can never have too much ammo - unless you're swimming, or on fire. - JSOP, 2010 ----- "Why don't you tie a kerosene-soaked rag around your ankles so the ants won't climb up and eat your candy ass." - Dale Earnhardt, 1997
|
|
|
|
|
You could temporarily remove your download hyperlinks...
OTOH, if historical download rewarding and the imminent point reduction were to occur simultaneously, we might not even notice much.
Luc Pattyn [My Articles] Nil Volentibus Arduum
The quality and detail of your question reflects on the effectiveness of the help you are likely to get. Please use <PRE> tags for code snippets, they improve readability. CP Vanity has been updated to V2.3
|
|
|
|
|
That might be true, but still - the longer we go without the adjustment, the more noticeable it will be (for most of us normal folks that don't have 100 or more articles).
".45 ACP - because shooting twice is just silly" - JSOP, 2010 ----- You can never have too much ammo - unless you're swimming, or on fire. - JSOP, 2010 ----- "Why don't you tie a kerosene-soaked rag around your ankles so the ants won't climb up and eat your candy ass." - Dale Earnhardt, 1997
|
|
|
|
|
Would you like some cheese with that whine?
|
|
|
|
|
Don't eat cheese (unless it's on Pizza).
".45 ACP - because shooting twice is just silly" - JSOP, 2010 ----- You can never have too much ammo - unless you're swimming, or on fire. - JSOP, 2010 ----- "Why don't you tie a kerosene-soaked rag around your ankles so the ants won't climb up and eat your candy ass." - Dale Earnhardt, 1997
|
|
|
|