- Feature Articles
- CodeSOD
- Error'd
- Forums
-
Other Articles
- Random Article
- Other Series
- Alex's Soapbox
- Announcements
- Best of…
- Best of Email
- Best of the Sidebar
- Bring Your Own Code
- Coded Smorgasbord
- Mandatory Fun Day
- Off Topic
- Representative Line
- News Roundup
- Editor's Soapbox
- Software on the Rocks
- Souvenir Potpourri
- Sponsor Post
- Tales from the Interview
- The Daily WTF: Live
- Virtudyne
Admin
Someone had a brainfart.
Who would think that
str_replace(" ", '', $str)
wouldn't have already removed all spaces including consecutive ones and those between > and <?Also, what's up with
str_replace("\rn", '', $str);
. ACR
followed by an ASCIIn
?Admin
DiscoTagging. Let's do it.
Filed under: WE NEED A NEW TAG CLOUD! TO ATTACK!
Admin
TRWTF is
<font>
. What year is it, 1995?Filed under: At least it’s not uppercase
Admin
±20 years..... yes, yes it is.
Admin
On the radar:
http://what.thedailywtf.com/t/poll-discourse-tagging-plugin/7001?u=boomzilla
Not ready for prime time.
Admin
And forgive my ignorance of how this stuff works, but what happens when you print this tag cloud? Will the browser really print the largest size text here as 21 pixels high (that is, 21/1200 inch on a 1200 dpi printer, which isn't very large at all)?
Admin
Must be, my monitor can only support 216 colours.
Admin
http://jsfiddle.net/34d8y0oa/embedded/result/ yup Lucy in the sky with diamonds comes to my mind (discourse breaks the colors)
Admin
The size of a "pixel" in the CSS sense of the word is "whatever would appear to be the same size as a 96dpi pixel at arm's length".
Yes: in CSS, a pixel is an angle: about 77 arcseconds.
Admin
At 100 yards, a pixel would be a bit larger than a square inch then.
Filed Under: Information nobody asked for
Admin
Nope, not at all. It should be about the same size in print as it is on the screen. Pixels are defined as a visual angle (96dpi at a distance of 28 inches), so the number of device pixels per reference pixel unit is dependent on both device pixel density and the expected normal viewing distance.
http://www.w3.org/TR/CSS21/syndata.html#length-units
Admin
How far away would a pixel the size of the Earth be?
Admin
I don't even know how to go about figuring that out. [image] Erm, okay?
Admin
A Fermi estimate is fine
Admin
You are clearly missing the bigger problem here: The Tags
AreFullyColored. Thats exactly the kind of Clown vomit that is not allowed on such cars that run on rainbows likeDiscourse.Filed Under: Why would a tag be used more than 33 times? Nobody makes topics that are over 1000 posts long, either
Admin
Admin
45 million miles. I fermied this one right out of my butt.
Admin
I forgive your ignorance, since I myself was ignorant until I asked the Great Prophet [s]Zarquon[/s] Google. Apparently "px" no longer means "pixel", but rather "... is defined to be small but visible, and such that a horizontal 1px wide line can be displayed with sharp edges (no anti-aliasing)." (http://www.w3.org/Style/Examples/007/units.en.html) So on a standard res monitor it might be a single monitor pixel, on a super-high-res monitor it might be a block of four, and on a 1200dpi printer it might be around 12x12 dots (1/100 inch).
Ah, lovely CSS. For people who miss the days of C's nebulous 'int' size specifications.
Admin
Just give me the subtended solid angle in steradians of an H character as a function of size and I'll be good to go
Admin
7
Admin
Admin
Yep, by similar triangles:
[image]Admin
That's quite the arm you have there.
Admin
holy shit. Mine only supports 3.
Admin
I broke it while trying to make it easier for our imperial friends :(
[image]Filed under: Yes, I know how to make it work, I thought this would be funny. Google disagrees
Admin
My guess would be a typo by either the original submitter or by the editor which deleted a backslash, since
str_replace("\r\n", '', $str);
would make a modicum more sense.Admin
Admin
Feature request: bookmarklet to tag cloud front page articles.
Filed under: PHP is still TRWTF
Admin
hmm....... text parsing of..... ooooooh. i could make a bot to do that...... :-D
Admin
Let's see....the Amazon is a couple of thousands of miles long....
Admin
...and let's assume that at first, you pick the door with a goat...
Admin
All you lucky donkeys with fancy schmancy monitors. My monitor supports One color, gratuitously named "Augh." For whatever reason, a recent upgrade overflowed a spInt and caused the underlying buffer under to run, which nearly terminated the single-turn that was operating our life. It was fixed by the executor by replacing it with nothing, which, although the monitor works in the literal sense, doesn't really suffice for real usage in testing...
Admin
:popcorn:
Admin
You should switch doors when given the chance.
Admin
But what if the goat is lying?
Admin
Or what if the goat is actually a RAM?
Admin
You're right, that's ridiculous.
Let's assume we pick the door with a battering ram…
Admin
One goat always lies, one always tells the truth.
Admin
I don't think that counts as "picking".
Admin
That won't fit in the lock.
You fail to pick the lock and the lock jams.
Admin
Each one says the other is lying. Valid.
One says the other is lying. One says the other is telling the truth. OMGWTFBBQ.
Admin
mmmmmm lock jams.
[image]Admin
The door is broken. It's playing music for failing to pick the lock, instead of playing music when correctly opened.
Your dungeon has failed. Traveling adventurers lose interest, which means you no longer gain loot from the adventurers that die. Your dungeon stash grows stale, and your revenue dries up.
Would you like to play again?
Admin
wait? i lost THE GAME?
Admin
I'm sorry, I was unable to understand your response.
Correct answers are: Yes, No, and Dennis.
Admin
I never mentioned anything about locks.
Admin
Try as you might, the record lock throws you an exception to catch. Maybe you should have added better handling to that RAM.
Directions are: Don't, Panic, and Rewrite resume padding.
Admin
On error ram next
Admin
And on success ram previous?
Admin
You choose a "english based language" in order to reduce training costs for your barely programmers. A new hire shows that you can have conditions at the end of your loop for loops that guarantee at least one execution, but you somehow lost interest at "loop".
You're job is to somehow make it through this code review, making side comments, to conceal the fact that your Information Technology degree didn't prepare you for this.
Luckily you're friends with the boss' daughter, and she has a way of making you look good.
Directions are:
Exit review, Put on sunglasses and manage a nap without snoring, Make another senseless comment