This site makes extensive use of JavaScript.
Please enable JavaScript in your browser.
Live
PTR
10.2.7
PTR
10.2.6
Beta
Serious posts are absent in the presence of an observer
Post Reply
Return to board index
Post by
Wikipedia
http://www.youtube.com/watch?v=VU4wDMYbIps
Post by
HighFive
I have a question for y' all (is that the proper spelling of the contraction of the "you all" phrase? \(is "you all" actually a phrase in this context?)\\(there should be varying degrees of text size here. agree/disagree?)\).
How many sides does a cube have? And why?
Post by
pelf
It has 6 faces
:)
. Not your question, though.
Post by
HighFive
Why?
Post by
Wikipedia
Sides, faces, why?
Confussed cat over here.
Definition of a square is 4 equal length sides, where's the facing sides are parallel to each other. Then add another dimension, so we leave 2D and go for 3D, giving each side a parallel one and we're up to 6 sides/faces. Is that k?
Post by
TheReal
I have a question for y' all (is that the proper spelling of the contraction of the "you all" phrase? \(is "you all" actually a phrase in this context?)\\(there should be varying degrees of text size here. agree/disagree?)\).
How many sides does a cube have? And why?
I wonder if playing around with \ tags will do the trick.
Meh, not exactly.
Post by
HighFive
It used to make them smaller, but then they changed it.
Post by
pelf
The difference is a face is a 2D thing and "side" could either semantically mean the same thing as "face" or it could mean the thing it means in 2D itself, which is a 1D construct with only length.
If you go with "face" and you consider the cube to be a solid, then it's 6 faces.
If you go with "side", then each square contributes 4 sides, but each square overlaps another square's edge adjacent. There are 4 sides forming a face which is parallel to another face at the distance of the length of its sides. Connecting both are 4 sides touching each at the intersection of each of their own sides. 4 + 4 + 4 = 12 sides.
/shrug
What did you want to hear?
:)
Post by
HighFive
Eh, I don't care much about terminology (except in the sense of "Oh wow, there's actually a term for this thing. Neat!"). I meant faces.
I remembered reading a blog post about this used as a programming job interview question. Fortunately the point being made wasn't that surprisingly many people don't know the answer, but that creative and fun answers can be received. Someone answered 35 and when asked why, he said that in his world cubes have 35 faces.
(I was hoping to receive less literal answers from you guys :P)
Anyway, completely unrelated programming woes:
Does anyone know javascript? I am trying to set up a bookmarklet to open a new tab, after receiving the URL from a dynamically loaded script. I am having trouble with the second part - receiving the URL.
Here is the original bookmarklet, courtesy of Google Reader:
javascript:var b=document.body;var GR________bookmarklet_domain='ht
tp://ww
w.google.com';if(b&&!document.xmlVersion){void(z=document.createElement('script'));void(z.src='h
ttp://ww
w.google.com/reader/ui/subscribe-bookmarklet.js');void(b.appendChild(z));}else{location='h
ttp://w
ww.google.com/reader/view/feed/'+encodeURIComponent(location.href)}You may or may not know that attempting to calling window.open in the
dynamically loaded script
will result in the new tab getting blocked by Chrome's pop-up blocker. Calling it from the bookmarklet however is completely fine, since it fires an onclick event. (at least I think that is the reason, I know jack @#$% about javascript)
I tried setting up global variables, but it didn't work out mainly due to the fact that I am an idiot. Can anyone help me?
Post by
TheReal
I hate anything associated with the word "java." Even Seattle will someday suffer my wrath.
Post by
HighFive
That is irrational, and I hate you for it, which is irrational.
Post by
TheReal
I heard Fins are better than Swedes. Any truth to it?
Post by
248766
This post was from a user who has deleted their account.
Post by
pelf
Okay so, that script does what? And you want to add what, where?
Post by
HighFive
Oh, I must've been asleep when I wrote that. Asleep me isn't aware that people cannot read my mind.
Google Reader is what I use to subscribe to various RSS feeds. That script rummages through any opened page for such a feed and opens up a page that lets you subscribe to it. I would rather it open that page in a new tab, rather than the currently open one. The problem is due to the fact that it is loading
an external script
(which I imagine is too long to be a bookmarklet) in which all the important stuff is.
I tried modifying it and opening a new window from there but it got blocked by Chrome as a pop-up.
Furthermore, it was opening a new window rather than a tab.
I'm thinking a simple solution would be communicating the produced URL to the main script, but my googling endeavors have proven futile.
edittendum: (it's an edited in addendum) I don't know much about Fins, but I am currently in love with all Swedes because Dreamhack.
Post by
kamii
I heard Fins are better than Swedes. Any truth to it?
6-1 LOLOL
if you're Swedish and Finnish, you're better than both. :o)) any truth to it? (actually it doesn't make any sense)
That's true in Finland to some extent, Finns that speak Swedish as their mother tongue are often called "bättre folk" (mainly due to history, but it's still quite a common conception that they are always from rich families etc)
Post by
Coldkil
"bättre folk"
This awakens in me ancestral feelings. WTlearn swedish and finnish.
Post by
pelf
Hmm, well, browsers have (at least Firefox has) settings that you can configure to tell it what to do with new windows. Have you tried applying your fix and then setting Chrome to open links that are trying to open in a new window in a new tab? It might let that happen; but, probably not. Easy fix suggestion first
:)
.
Post by
HighFive
Unfortunately it seems there is no such option in Chrome.
Post by
pelf
Hmm. Well, I'm not sure how to formulate a link from a script injected from another domain that will open a new tab...
Post Reply
You are not logged in. Please
log in
to post a reply or
register
if you don't already have an account.