« first day (1011 days earlier)      last day (3920 days later) » 

4:00 PM
@SimonSarris yeah I think well buy one this month honestly
 
@Loktar here is what i have now
$ul.append($('<li>').append($('<a>', { href: url })).append($('<img>', { src: url })));
 
we have 6 kittens right now
 
@JafarKofahi Well, I don't know a lot about ASP.NET controls, but it sounds like a very vague question, and one that (like most things in Javascript) could have very many different answers.
 
@EliteGamer do you have a fiddle?
 
no, because the string is comming through ajax
 
and the same-orgin thing blocks it
 
@ShotgunNinja ok let me clairfy a bit. I have a user control that have many JS functions. when I place multiple controls in one page, the JS would only affect the last control
 
@Toam 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.
 
@Loktar mine is the reference by Commodore
 
4:02 PM
Oh I was linking to where the books are Im looking at
I have the actual commodore reference guides
its how I learned programming
 
I have the original in a chest so it doesnt get messed up. lol its my holy grail
 
@Loktar the syntax is correct
 
@ShotgunNinja I also have global variables in the JS, but their scope should be a single control. But the way I have it now they would be used by all controls
 
@EliteGamer I could help more if there was a fiddle
 
4:03 PM
it is just not adding it to the <a> tag, it just ads it after the <a> tag
 
overall it looks like your appending everything to the LI
 
really
 
look at your parens, you need to append the image to the a
 
i am trying to appen something to a li, and append somethign to the a
 
I think I figured out a way to solve my first problem but I am still struggling with the second one
 
4:04 PM
@Loktar i thought i was doign that
appending it to the <a>
 
$ul.append($('<li>').append($('<a>', { href: url }) // YOU NEED TO APPEND THE img HERE )//////////// Not here//.append($('<img>', { src: url })));
 
@ShotgunNinja thats why I was wondering if there are any tutorials that would explain how to create such controls. But from your previous comment it seems its highly unlikely that I would find such a thing :(
 
try that
thats what I meant by the parens
 
oh
ok, thanks
that did it
 
awesome
np
 
4:11 PM
:)
 
Someone understands what he means? stackoverflow.com/questions/17814945/…
 
@Datsik player.
 
@Esailija his page has one iframe but other elements or stuff, he only wants to disable the interaction when the user click on the iframe
 
no his page is the iframe, embedded on some one else's page
 
I think if u change ur CSS to a class and assign it to the iframe it would do the trick
maybe :)
 
4:14 PM
well you cannot restore the interaction after disabling it
because no events will be registered
 
@Esailija hmmmm... thats what I understood from his comment.. disable an inner container while the main container still interactive but I think he needs to clarify his question more
 
all I see is "I want it to be interactable from iframe but the browser must not responed when interacting from iframe" it makes no sense xD
 
yea it doesnt
maybe what he meant is that if the user is dragging something across the page..then when his finger hover over this iframe the operation should stop or something like that
wow .. its like solving a puzzle
 
How do you include a forward-slash character in a regular expression?
 
guys ..if you have a user control with JS, you need to have global variables in the JS but the scope of those variables should be the CONTROL INSTANCE. So that when u reference this user control multiple times in a page..they dont overwrite each other
how would you do that?
 
user1596138
4:31 PM
Why don't I ever see anyone using switch statements in JS?
 
Nvm, looks like you use //
 
user1596138
Aside from the obvious "if/else/elseif are better."
 
@JafarKofahi Answer: You don't use variables, you use functions
The function can have its own private variables which it can update to ensure these things don't happen
 
@Jhawinsss I think that the main reason people don't like the switch statements is because you must include a break keyword at the end of each case statement.
 
user1596138
@Michael I could agree with that.
 
4:32 PM
They are very easy to forget and if they are missing, it seriously messes with your application logic.
 
wow, postgres really doesn't like uppercase letters, does it?
 
@Neil I am using a 3rd party dojo API, and the reason I have them as globals is because I am using them in multiple event handlers.
 
@Jhawinsss I can't think of any other reason, other than that, quite honestly.
All other reasons boil down to personal taste.
 
@JafarKofahi Nothing wrong with globals if you must use them
 
@Neil yea but the scope problem is something I am not able to overcome..any ideas?
 
4:34 PM
What I meant was a global function with private members
 
user1596138
Sounds reasonable to me. I don't like them any better, but there have been times where I just felt that a switch would be better.
 
@Jhawinsss I have often felt the same way. In those situations, I will use switch statements.
If you can construct your code such that the body of each case contains a return statement, that removes the risk of forgetting the break.
 
@Loktar @Amaan you should look at my games (Amaan, assume Loke owns everything you do) and see what games we can co-op together .
I really wanna get some co-op going tonight
 
Order in the court!
All 4 of us should get on Terarria or something
or minecraft :>
I promise I won't build penis' the whole time
 
Terriara would be cool
 
4:46 PM
Minecraft
 
Ive had my fill of MC/Terreria
 
Lets do 4 player co-op on alien swarm
 
i play tf2 or random new games mostly
 
alienswarm.com f2p top down
watch taht video, we'll tear shit up
 
wish they would have released new levels for alien swarm
 
4:48 PM
hi, I'm trying to create popovers with bootstrap, and I'm kinda stuck here: $('.popovers').popover({html: 1, content: tmpl('template-report', {title: $(this).attr('title')} )});
I'm trying to compile a template inside the new popover and at the same time assigning a rel attribute from the clicked element, but it's undefined. any idea how I could do this? <a href="#" data-toggle="popover" data-placement="top" title="ffffffuuuuuuuuuu" data-original-title="Edit:" class="popovers">ffffffuuuuuuuuuu</a>
 
idk dudes im mostly a gaming loner
besides my core group of gaming friends
 
don't be a homo
 
im pretty finicky on the games I play, because gaming is my relaxor
I dont like playing games I normally wouldnt have
 
user1596138
Been giving this guy from GoDaddy hell for a few hours now...
 
I stress out when I game, because I'm way too competitive..
 
4:50 PM
so do i
but it has to be a game I want to play regardless
Im considering playing age of pirates 2 tonight. Just a random ass game I feel like playing lol
installed it again last night
 
user1596138
They won't allow us to use any kind of actual stat program (has to be a server-side method, so GA and such are out) and they won't allow us to use any kind of Apache modules or really any non-standard configurations of any kind.
 
how cant you use google analytics?
 
'morning
@Loktar Yeah, that was a surprisingly fun game.
 
user1596138
Because my boss has his head up his ass is a really nice guy.
 
@SomeKittens wow someone whos played it!
I love all of them, from Sea Dogs all the way up
my fav though was Pirates of the Caribbean (seadogs II)
 
4:53 PM
@Jhawinsss and also seems to be live-editing your TCP stream
 
user1596138
He wants webalizer.
 
user1596138
@SomeKittens ;)
 
!!xkcd 341
 
in PHP, 4 mins ago, by rdlowrey
@Baba Up and running at http://174.107.156.0:1337/
 
4:55 PM
@Jhawinsss How did the interview go?
 
user1596138
@Zirak Well.......
 
user1596138
I thought I was stood up. So I was pretty pissed. But it turns out we had a mis-communication and the interview is today at 5.
 
user1596138
What happened was they asked what times I was available Monday and Tuesday, I told them and they said "2PM works for us, see you then."
So no one actually said the day at all.
 
That's not too bad, you'll have the chance to see if the webcam is fine.
But yeah, it's annoying. Did you go on a bitchstorm or find out in a nice way?
 
user1596138
Ah, that's the good part. I've got everything sitting there ready because I thought it was yesterday.
 
user1596138
4:58 PM
@Zirak Yes it is. Well, I was pretty livid, but @SomeKittens and... Shit, I forgot already. But they coached me into sending them a polite email about it. So I did and they apologized.
 
user1596138
I just said something along the lines of
"Looks like we missed each other.
If you would like to reschedule please let me know what time/day you are available.


Thanks,
Josiah South
 
That's good
 
this is going to sound crazy but does anyone else think HTML would be that much better if it didn't have closing tags? like you just close with the opening tag, for example <html><body><body><html>
?
 
Well, not optimal, but could've been much worse
 
user1596138
But now that it's happened and I realized how it doesn't actually matter that much and I'm not so stressed.
 
user1596138
5:01 PM
If they don't think I'm a goof for mixing up the days I think I'll do good today.
Either way, if I don't get the job or anything it's good practice for the next opportunity.
 
!!xkcd new
 
@beta0x64 what?
 
@Jhawinsss Ah, yep. Remember the time difference.
 
@Neal this is fun :-)
 
5:01 PM
and no, it wouldn't be better at all
a whole lot more confusing
 
GNi33, I feel like HTML would be just as effective without the /'s, like quotes.
 
that would be horrible
 
@beta0x64 <div>cool <div>story</div> bro</div>
Especially when html allows you to omit closing tags
 
totally unreadable on larger structures
 
yeah, child elements with the same type as their parent would be tough
 
5:03 PM
nesting just wouldn't be possible
well I guess it would.
 
aahh yes...
<article>
...
<article>
<article>
...
<article>
 
^
 
user1596138
@SomeKittens what? I'm mobile, so I can't tell what that was a reply to.
 
<ul><li>this is okay<li><li>it's as if I just need to check for an even number of tags<li><ul>
 
The thing is, strings aren't very long.
 
user1596138
5:04 PM
It's at 2pm for you, so 5 for me. It's 10am ish over there right?
 
@beta0x64 nesting.
 
@Jhawinsss about timing the interview. Don't forget time zones.
 
And even in the rare cases they are, they're very umambiguous
 
10:04
 
11:04
!!weather Denver
 
5:04 PM
@Shmiddty Denver: 85.838F (29.91C, 303.06K), few clouds
 
!!weather Pittsburgh
 
user1596138
Ah. Exactly. 1:04 here.
 
@beta0x64 Pittsburgh: 77.972F (25.54C, 298.69K), broken clouds
 
supposed to get to 93 today. It was 101 yesterday.
 
even our clouds are broken
 
user1596138
5:05 PM
I'm hoping that maybe they'll notice that I thought I was stood up, yet still stayed polite with them. Even though that's not what I felt like doing.
 
Or maybe they didn't think too much about it?
 
in PHP, 6 secs ago, by Neal
@tereško Y U NOT LIKE BOOTSTRAP?
 
!!weather Nashua
 
user1596138
@zir that's the other thing I'd hope for. That they don't see me misunderstanding as me having bad communication skills. But I know I'm overthinking everything.
 
hey guys any idea why this doesnt work in IE 10 jsfiddle.net/magkia/fwZXx/22
 
5:09 PM
@Jhawinsss Perfectly natural. I wouldn't worry about it.
@Athanatos Probably IE 10.
 
user1596138
I imagine there are pre-conceived notions about me already when I look for a job in an area like this though. Because I'm obviously a farm boy from a small town.
 
You'd be surprised
 
user1596138
There isn't a specific language I'd be using. That they've said anyway. So I don't know what kind of questions to expect also. But in my mind ignorance isn't a bad thing as long as I'm willing to learn. So hopefully I know the answers, but if not, hopefully they understand.
 
@Jhawinsss wh, what?
 
user1596138
Moving to SF for a job like this has always been my dream, so I'll have the smiling part down for sure ;).
 
user1596138
5:12 PM
Plus I'm in the best (sober) mood I've been in all year today because I just dropped the motorcycle off and will have it back in a week.
 
@Athanatos Use console.log instead of alert.
 
Ill add datgui later
Going to do a vs that has the light update as well
 
@Loktar cool beans
 
such a simple little demo
but looks kind of neat
 
maybe add a little curvature
 
user1596138
5:14 PM
@SimonSarris I've noticed a lot of stereotyping when I end up in the big city. Just wonder if it's the same way in SF.
 
@Shmiddty thanks , still doesn't work in IE
 
@Athanatos Oddly enough, I'm getting a $ is not defined
I'm thinking it's because you're using jQuery 1.10
 
wasn't there a meta thread about fun being acceptable?
 
hmm let me try to change it
 
user1596138
Anyway, enough of this. I'll just have to wait till 5 and see how it goes.
 
5:15 PM
@Athanatos Also, why the hell are you using jQuery 1.1?
 
@Loktar it's cool... lacks something.... can't quite put my finger on it
 
@RyanKinal oopss that was the issue , it was an accident , thanks :)
 
:-)
 
lol
 
5:18 PM
ohhhh..... actually.. make a death star (or grab a img) and have it shoot the planets. then you can make them explode!
explosions > non-explosions
 
@Loktar change the light angle to .8
 
updated and added curvature
 
@user889349 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.
 
Is there something that I am not seeing here?
 
full screen looks cooler
Ill make the light source move later
 
5:25 PM
@Loktar maybe do some sparse dots around the perimeter of the dark side.
 
test failed..
:)
 
While this is an awesome page of images, I'd like to see some actual photos <.<
 
user1596138
Holy shit that was cool.
 
user1596138
 
0
Q: Why is my bounce rate nearly 100% in Safari AND Firefox?

JamesOur website (LiveSportsTickets.com) has a bounce rate of nearly 100% in both Firefox and Safari, and around ~40% in all other browsers. The bounces span all versions of each browser and both operating systems. I cannot recreate any error in either browser on any of my computers, and I'm not getti...

 
5:36 PM
@Loktar instant pick
bastard
now I have to make my wood less wood like
more (other thing) like
 
@Feeds Uhhhhh... I don't think this guy gets what "bounce rate" really is...
He asks, "What would be causing my bounce rate to be nearly 100% on Firefox and Safari for this one page?"
 
Guys :') the app is coming along good :D
i want to create a landing page
 
@Darkyen Which app was it again?
 
@ShotgunNinja ... the timeline i showed its anonymous
will be up for alpha by end of week if i dont give up on life
in my landing page i want to use 3 devices to show the variety of things our app can do being responsive
my idea is to use a macbook pro
a Nexus 4
and Surface ;-)
but i am wondering can i use these things ?
 
holy good lord.... tinker.io/6e32d/2 it is closer
 
5:40 PM
if so where can i get high resolution photos for them
 
@rlemon What effect are you aiming for?
 
top down terrain
 
@rlemon Not using Perlin noise?
 
@rlemon use 3d perlin noise
where ur 3rd dimension is time ;D
so u can animate
or 2d if u just wanna render it once :->
perlin_noise_terrain[t][x][y] = 0.8;
u see ;D
 
@rlemon Read graphics.tudelft.nl/~ruben/RMSmelik3AMIGAS09.pdf, specifically Section 2.
 
5:49 PM
anybody knows where do i get them ?
 
Where do you get what?
 
@rlemon you can also use
 
Oh right nevermind
 
Diamond Square
 
Someone want to tell me how bad my code is please?
https://github.com/powerc9000/todo
 
5:52 PM
Does anybody knows where can i aqquire the permission to use the macbook,nexus and surface models for a design on a webpage ? If any needed even if not where to find these i am clueless on how to even google ?
 
@Darkyen you want artwork, like PSDs?
 
yea it's not about doing it right. I know diamond square will do it. It's about trying to find an alternative to that approach
 
can i use it ?
@rlemon you can use perlin diamond square ;-)
Perlin is basically making a random function
 
i had an idea, I want to exhaust all possibilities of it working out for me.
 
iteratively
 
5:54 PM
@Darkyen dude, you are not listening
I KNOW I can do it that way
 
sorry i typed before u said :P
 
I don't know if my half assed idea would work
so i'm trying to make it work :P
 
I cant understand what your idea is to be honest :-(
besides using sine and cosine might help as they make drastic changes look timely ;-)
instead of k * Math.random();
 
generate one array of points using midpoint displacement -> clone the array for each 'row' and make small amount of changes to each point
 
t = random() + t ;
k * Sin( t ); // will only work iteratively but will damn sure look sexy :->
 
5:55 PM
then hopefully the lines drawn out looks like noise.
or terrain
 
why dont u run ur algorithm on the top of itself ?
a few times with reducing chaos ?
 
did that
doesn't account for vertical changes only horizontal.
 
@powerc9000 you've got inline html text, so pretty bad.
 

« first day (1011 days earlier)      last day (3920 days later) »