« first day (948 days earlier)      last day (4003 days later) » 

10:06 PM
LOL, I criticize a poor question and by the time I'm done, I see two other people have also added a similar comment. Poor poster, it looks like we all ganged up on him.
 
lol
@xcx I'm asking how I can make an iframe secure
 
user1125394
@BenjaminGruenbaum k, I'd just more focus on the it then
 
> tl;dr Can I execute external scripts on an iframe safely?
> ###Is there any way to create an iframe that can not access data on the parent scope?
I don't know how I can put more emphesis on it
 
0
Q: animating roulette ball

user31005I'm trying to achieve something like netent's roulette (which is a great product in my opinion). It's going to be implemented in html5. I wonder which path should I take to have such a great animation for spinning ball. My problem is that the random number is generated on the server, thus using...

 
@rlemon that kind of looks what you were doing the other day stackoverflow.com/questions/16680369/…
 
10:24 PM
> There are two ways of constructing a software design: One way is to make it so simple that there are obviously no deficiencies and the other way is to make it so complicated that there are no obvious deficiencies. [C.A.R. Hoare]
 
user1125394
spaguetti's sofware are the best
 
bananas
 
@Shmiddty why?
 
my working environment is just getting ever-more frustrating
the spaghetti code I received the other day is proving difficult
backing out his hard-coded values means nothing is working...
which means nothing was ever working
and his object structures are so... awful.
 
10:41 PM
@Shmiddty I know that feeling, I was in that position way too many times.
 
if (typeof (this) == 'function') { this.call(); } /*THIS WORKS*/
OMG GUYS IT WORKS
 
Consider it a learning experience. Working with horrible code can be beneficial
 
I DON'T KNOW WHY BUT IT WORKS
 
user1125394
this()
 
@BenjaminGruenbaum I've worked with bad code my entire career. >.<
 
10:42 PM
@Shmiddty the usage of typeof as a function is the icing :)
 
same code found a few lines down. obviously copy/pasted
and again
 
@Shmiddty from experience, the last thing you want to do right now is show how unsatisfied you are from that code to other people at work. What has helped from my experience though, is trying to improve the work methodology at your workplace.
 
@BenjaminGruenbaum Nah, I have some tact.
 
Make testing mandatory, enforce code review before commits
 
There's not point in bitching to coworkers
 
10:44 PM
Of course there is point :) It's their fucking fault you have to work with bad code.
 
@BenjaminGruenbaum Yeah, tried that. Doesn't always work.
 
They should be blamed, and probably fired for doing things like that.
However, saying that to people never helps :)
 
The sad thing is I like the guy
 
user1596138
@Shmiddty Hahahaha
 
They're always the likable type :) Just went to study coding because it's a well paying job, loves having fun and stuff
 
user1596138
10:47 PM
Damn @BenjaminGruenbaum must be happy today. Look at all the smiles.
 
@JosiahSouth I think of all the fun times I've had with horrible code
 
Why does chrome have a zygote?
 
user1596138
The only horrible code I have to work with is..... Mine.
 
@Zirak Huh?
 
How many programers dose it take to change a light bulb?
None – It’s a hardare problem
 
user1596138
10:48 PM
Wish I had a team. Or someone higher up that could help point me in the right direction at times.
 
@JosiahSouth Didn't you just bitch yesterday about how horrible the code you got is?
@Xarcell Did you invent that original joke?
 
no.
 
@Xarcell are you sure?
 
user1596138
@BenjaminGruenbaum Well I'm never given any new horrible code. They fired that chick before they hired me. It's still just carried over.
 
yes, why?
 
10:49 PM
@Xarcell No reason, it's really funny, and original and stuff
 
 
When I get bored, I collect programming jokes
 
4th process
 
@Xarcell hahaha
 
user1596138
I'm never given any code at all now.
 
10:49 PM
I'm also collecting funny comments in code.
 
user1596138
!!/google Zygote
 
@JosiahSouth console.log("I'm giving you code");
 
@Zirak which chrome are you working with?
 
A zygote is a fertilized egg
Google Chrome 25, Linux
 
user1596138
10:50 PM
@SomeKittens Sweet. First time ever.
 
@Zirak Are you watching goat porn again?
Seriously you have to stop it
When you do, the goat porn website doesn't have enough bandwidth
And I'm stuck on buffering for hours... do you know how frustrating it is to watch porn buffer?
 
user1596138
I was having sex the other day, banging away, when suddenly I stopped mid-thrust and stood really still.

She said
"What are you doing?"

I replied
"Something I learnt from online porn. It's called 'buffering'."
 
“Knock, knock.”
“Who’s there?”
very long pause….
“Java.”
 
@Xarcell HAHAHA, because Java is slow and the year is 1999 ^_^
 
10:52 PM
Programming is 10% science, 20% ingenuity, and 70% getting the ingenuity to work with the science.
There are three kinds of lies: White Lies, damned lies, and benchmarks.
 
It's interesting how programming it treated differently than other sciences and arts. All of these meta-programming quotes, like the one above, are true for other forms of science, art or both.
That's part of the curse of being functional art and instant science.
 
“I just saw my life flash before my eyes and all I could see was a close tag…”
 
['S', 'o', '\n', '$', 'D', 's', 'Z', 'd', '#', '>', 'T', 'f', 'r', 'u', '!', '*', ',', '.', '/', '1']
['c', '_', '\r', 'p', '!', 'A', 'z', "'", '>', 'k', 'G', '0', 'H', 'O', 'R', '}', '%', '`', 'a', 'i']
['X', ':', 'U', '"', '-', '1', '3', '#', 'e', 'z', '2', '4', '=', '@', 'H', 'Q', 'Y', ']', '}', 'B']
['m', '&', 'j', '\n', 'g', ' ', '@', 'f', ':', 'I', 'T', 'i', 'M', '[', 'l', 'n', '%', 'B', 'a', 'h']
['1', 'V', 'W', ';', 'Z', 'S', 'U', '$', ',', '?', 'D', 'j', '(', '-', '4', 'a', 'c', '8', '=', '\\']
 
I have dreams I'm trying to code 2-3 nights a week. Like I can't ever get it to work right...
 
There was that quote...by Charles Strauss(?), about programmers seemingly not doing anything while actually working. That describes any thinker, in any department.
 
10:56 PM
lol
true...
here's one of my favorites: Debugging: Removing the needles from the haystack.
 
May 10 at 23:58, by SO ChatBot
Mostly, when you see programmers, they aren’t doing anything. One of the attractive things about programmers is that you cannot tell whether or not they are working simply by looking at them. Very often they’re sitting there seemingly drinking coffee and gossiping, or just staring into space. What the programmer is trying to do is get a handle on all the individual and unrelated ideas that are scampering around in his head. [Charles M. Strauss]
s/programmer/thinker/ and it'd be correct
 
From the Random Shack Data Processing Dictionary:

Endless Loop: n., see Loop, Endless.
Loop, Endless: n., see Endless Loop.
 
@copy scumwield!
taking off early today. xoxox <3
 
I'll write that if I can't find anything (it's a homework)
 
Why computers are like men:

In order to get their attention, you have to turn them on.
They have a lot of data, but are still clueless.
They are supposed to help you solve problems, but half the time they are the problem.
As soon as you commit to one, you realize that if you had waited a little longer, you could have had a better model.
Why computers are like women:

No one but the Creator understands their internal logic.
The native language they use to communicate with other computers is incomprehensible to everyone else.
 
11:05 PM
They fixed em :/
 
user1125394
<p>First name: <strong data-bind="text: firstName"></strong></p>
<p>Last name: <strong data-bind="text: lastName"></strong></p>

<p>First name: <input data-bind="value: firstName" /></p>
<p>Last name: <input data-bind="value: lastName" /></p>

<p>Full name: <strong data-bind="text: fullName"></strong></p>
 
user1125394
in this knockout html it's not obvious that the <strong> are passive and the input are active (generating events)..
 
Why isn't this in a foreach?
create a fiddle if you have issues
 
user1125394
that's just knowckout tuto but I see one are text , the other value
 
user1596138
I keep seeing the term Knockout but I don't know what it means :/
 
11:08 PM
In my country WWW.Google.com and many of other website was filtered.So i can not search correctly.
I want to now how i can remove Backimageurl Item in Asp with Javascript function.
I set this item in my Usercontrol:

PnlRelatedLinks.BackImageUrl

And i want to remove it with this function:

$('#<%=pnlRelatedLinks.BackImageUrl %>')

Can i do it?
 
@amink Ah, we've had someone from Iran here before :) Cool guy
 
user1596138
@amink Google is filtered?! Where are you from?
 
@amink Wanna know how to get past the filters :)?
 
user1125394
try to proxy
 
i from Iran
 
user1596138
11:10 PM
Wanna go to jail? :)
 
Here's the guy btw, he was pretty nice
 
user1596138
Lol
 
user1596138
I know nothing about it. I'll sit back and watch.
 
@amink are you here?
 
Sorry ,yes
No,jest search engine
just*
 
11:12 PM
@amink can we talk somewhere less public? I want to tell you how to get by the filter, I don't want to share this information over this public room so it won't get shut down
 
google was filtered and yahoo is very slow
 
@amink jh7959@auoie.com
This is a 10 minute email I have, can you send me an email with some form of contact information there?
Freedom of information is a basic right every person should have.
 
user1596138
@BenjaminGruenbaum I agree. I don't know what it's like over there. But I'm glad someone is willing and able to help.
 
user1596138
But for all Iranian men's sake, I hope porn isn't filtered.
 
@amink ok? Can you send me an email there?
 
11:15 PM
@benjamin : amink_aut@yahoo.com is my email
 
@CrawfordComeaux Welcome to the JavaScript chat! Please review the room pseudo-rules. Please don't ask if you can ask or if anyone's around; just ask your question, and if anyone's free and interested they'll help.
 
I'm writing something to monitor me throughout the day and I want it to be following different logic depending on the time of day. Some logic only needs to fire at a single specific time, some needs to execute every minute between two times, and some of it needs to be recurring from a starting point. Is there a library to streamline this or will I just have to write a lot of ifs & cron the script every minute?
 
@amink you've got mail , if this doesn't help you, shoot me an email back. If you feel like your safety might be in danger or that someone else might be reading the emails, we can move to a more secure form of communication.
@CrawfordComeaux You say cron, what language are you referring to ?
 
user1125394
cron linux daemon maybe
 
11:20 PM
What do you mean yep
What programming language is your "logic" in?
 
I was just going write a script and throw it into Node.js
 
If you've got cron, why not use that and have it supply the parameters you need?
 
@CrawfordComeaux Thank you, you should have started with node.js .
 
@BenjaminGruenbaum hehe...sorry about that
 
@CrawfordComeaux There's a good nodejs library for that, lemme dig it up
 
11:22 PM
@Zirak Wasn't aware cron was able to do that...time to hit the man pages!
 
So thanks,I wait to load it,
 
You can invoke the script and pass it command-line arguments, that's what I meant
 
You can do that github.com/ncb000gt/node-cron but there's a better solution, lemme find it
There it is, Kue
This is the better solution ^
It might be overkill in your situation though
 
Thanks! Knew about node-cron, but I think kue could be what I'm looking for
 
Good luck :)
 
11:27 PM
That's ok...my ADHD apparently requires overkill. Plus, I'd like to expand on it later as something I can offer to others.
 
LMFAO, some people are retarded 18 up-votes on that sort of question -_-
 
Excuse me
 
Now to figure out how to get this thing to play nice with python
 
document.getElementsByTagName('SPAN')[0]
[0]
this number that is?
 
@MirkoCianfarani document.getElementsByTagName returns a NodeList
 
11:31 PM
If I write ocument.getElementsByTagName('SPAN')[1] that changes
this I know...
 
@MirkoCianfarani that's sort of like an array, if you don't know what an array is, think about it as a list of consecutive elements
@MirkoCianfarani A lot of times in programming in particular, and in JavaScript when selecting stuff from the DOM we want to access lists of stuff
Like the list of span tags here
 
or this write on the second tag span?
sure..
ok
 
Now, we get a list of, let's say 10 span elements, and we want the first, or 6th, how would I do that?
That's why arrays (and lists!) have indexers
 
arr[0] is indexer notation for the first item in the array arr, this is because JavaScript arrays are something called 'zero based'
 
11:32 PM
thx for lesson or suggestion
 
(that is, elements start at 0)
If you want to get the 5th item, you'd do arr[4]
In your case, if you want the 14th span for example, you would do document.getElementsByTagName('SPAN')[13]
 
then I write document.getElementsByTagName('SPAN')[6] that change for 5's span
ok
 
Yeah, exactly!
@MirkoCianfarani Now, what if you want the 20th span, what would you write?
 
uao this is a novelty for me
I write document.getElementsByTagName('SPAN')[19]
 
Exactly.
 
11:34 PM
this room is useful
for all
 
Arrays are what you use for holding sequential data in programming. JavaScript arrays let you do all sorts of cool stuff.
NodeList (which is what document.getElementsByTagName returns) are not arrays, but are very similar
One very idiomatic construct in programming is the for loop, which you typically use to iterate through an array
 
because there is a novelty every day and there are foolishness. (enjoyment how mustache for example)
 
var spans = document.getElementsByTagName('SPAN');
var len = spans.length;

for(var i=0;i<len;i++){
   alert(spans[i].textContent);
}
 
ueueueu thx thx
 
user1125394
best code is without for and if
 
11:36 PM
This code would choose all span tags, and print all the span elements.
 
user1125394
nah without if it's hard in procedural
 
@xcx nope. "clever" code isn't good code.
@MirkoCianfarani I'm assuming JavaScript is your first programming language. John Resig, the creator of the (in)famous jQuery library, did a bunch of videos on learning programming in general with JavaScript.
 
nope is no? @BenjaminGruenbaum
 
@MirkoCianfarani Yes, nope is no
 
11:39 PM
nope is the word from UK or USA?
 
@MirkoCianfarani I honestly have no idea :)
 
user1125394
@MirkoCianfarani use google sometimes
 
eheh forget it
 
Anyway, I think you should go take the course on Khan Academy khanacademy.org/cs/tutorials/programming-basics
 
eeheheh I'm lazy @xcx
 
11:41 PM
@MirkoCianfarani That's a good question
I think it originated in the US
Definitely US
If you want the etymology: word-detective.com/2009/09/nope
 
I see the documentary and this useful...
There is a similar how w3shools @BenjaminGruenbaum
 
@MirkoCianfarani w3fools.com
You should look into MDN
 
Eheheh This article I thinked that is a false report @BenjaminGruenbaum
@Zirak Look on the first result google.it/…
@Zirak thx for you suggest
 
The fact there's a nope.co.uk doesn't mean the word was invented there
 
11:48 PM
I brought you a reference from 1880 using the word "nope", in a book written by a US citizen. If you can find an older one, then it's settled
 
eheheheh
there are more site
 
nope.org is actually pretty good
 
exactly
 
We're having fascinating conversations here right now ^_^
Let's talk about the origin of the world clusterfuck
Ah America
 
11:51 PM
My money is on a 4chan-like site
 
(sorry, I'll be offline for ~half an hour. my handler is an idiot.)
 
Anyone who was in the KnockousJS talk today, tell me what's wrong here stackoverflow.com/questions/16681352/…
 
As a high rep, long time user, I expect you to verify this sort of thing in an isolated environment before posting a question. This works perfectly jsfiddle.net/YWhkZBenjamin Gruenbaum 20 secs ago
Why would people upvote this :/
 
11:57 PM
@BenjaminGruenbaum jQuery
 
"#" + idName
 

« first day (948 days earlier)      last day (4003 days later) »