« first day (1024 days earlier)      last day (3929 days later) » 

12:12 AM
How about running ubuntu from usb stick (3.0) would that be workable ? or much slower then through VM?
 
I know a few people who do that. Don't know if it's significantly slower, doesn't seem to be.
 
What I am wondering is if I get it runing on usb stick. What about if I put that stick in a let's say mackbook. Whould that work?
:) will mac boot from it?
@monners Do you know any people who did that?
 
12:39 AM
he knows everyone
 
not bad
are you on linux Dave?
 
im on a seat
 
:)
 
@Dave I'm on a gym ball
Posture +1
 
12:50 AM
I'm ON THE MOON
 
Lies
 
Negatory
 
!!choose "Moon" "Lies"
 
@monners Moon
 
I hate you Caprica Six
 
12:52 AM
!!choose "san.chez" "poo"
 
@san.chez monners
 
!!Datsik or Monners
 
@Datsik Monners
 
Best 6 out of 10
 
@san.chez san.chez
 
12:53 AM
damn , did I just edit that insead of post new?
edit here is confusing sometimes
dark background - will have to remember that
sorry guys
 
stackoverflow.com/a/18037610/1076743 this guy's comment after i told him his answer was poor
 
I am after few beers
relaxing
@Dave hahah -1
 
should be minus 10 lol
 
sorry can't do that
 
you can tell i was the one to hit minus button :P
 
12:58 AM
where abouts from UK are you?
 
any one able to take a look at my fiddle and offer a solution to how i can change the behaviour of my canvas scrolling: jsfiddle.net/CWqEN/4
Southern
 
far from Southampton?
 
slightly more north and on the west coast
im in Wales
 
nice
never been there
 
if you like rain
 
1:00 AM
haha, I hate rain but here is the same
 
or camping / hiking
 
2 weeks of sun and now time for winter
!!uk or australia
 
@san.chez australia
@san.chez australia
@san.chez australia
 
!!australia or rio de janeiro
 
@san.chez australia
@TabrizAtayi 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.
 
1:07 AM
!!australia or mexico
 
@san.chez That didn't make much sense. Use the help command to learn more.
 
how to refer to another sibling with class, jquery?
 
@san.chez mexico
 
Australia > *
 
!!australia or *
 
1:10 AM
@san.chez australia
 
Told ya
 
!!australia or san.chez
 
@san.chez australia
 
damn
 
@san.chez Wait, I changed my mind! san.chez
 
1:10 AM
lol
 
quick question, how can I listen only events from an element in jquery, ignoring all other bubbling events? like $(element).on('eventX', callback)
 
@mateusmaso what do you need it for?
 
@san.chez there are other children that triggers the 'eventX', but I only want to listen the parent 'eventX'
 
@mateusmaso and those children supposed to be clickable? I mean they have handlers for eventX ?
 
0
Q: Bullet entry Point around Player Object

fassetarI have a player rotating by the mouse and want the bullets line up with the player's gun. Right now they simply come from the point of the player and shoot in the direction of mouse. I just need the bullets to line up with the player's gun as he rotates, rather than at a fixed position. Sorry my ...

 
1:26 AM
@san.chez nvm, got it
 
got what?
 
got milk.
;p
 
1:42 AM
@Dyck 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.
 
0
Q: Changing jQuery Div Hover Area

DyckI have a jquery code that works like so... When you hover over a block, a new div slides up and a red block div fades out, then when you leave the hover area the div then slides back down and the red block div fades back in. Everything works fine, here is the jsFiddle: http://jsfiddle.net/Gsghr/...

 
m59
2:10 AM
@BenjaminGruenbaum I got some code together. Are you around?
 
Someone needs to tell the peeps down at Zurb to comment their fuckin' javascript!
 
m59
@monners I wonder about that sometimes.... I started out writing awful code and not commenting. There was no hope of understand it ever. Then I started writing better code and commenting it like crazy. As I improved from there, I have been commenting less and less because it seems easier and easier just to look at the function names and understand what is happening.
Now I feel like I only comment on a few things here and there that I doubt will be obvious to me later.
 
Same here. Though a public, popular FOSS project should have a bit more commenting.
 
m59
Guess so.
 
I comment general sections and areas that are a little complicated.
I most certainly comment my function settings! Again, thanks for nothing Zurb
I mean, what the fuck does one_up: true mean?
 
m59
2:21 AM
for all I know, I still write awful code.
lolz, that's just bad naming
 
It's the third setting!
No context, no comments, nothin'.
 
m59
hah
 
surprised rlemon aint around still
 
2:53 AM
this code is really pissing me off tonight
 
@praks5432 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.
 
Hey, I'm trying to create a sortable histogram - the underlying data seems to be sorting, but this is not reflected in the actual bars. Full question here - stackoverflow.com/questions/18049496/…
 
im sure some one will answer it on there in time.
 
m59
Is it good to downvote answers that are really just fail?
I'd like to be a good human here, but I'm not sure how that plays out semantically..
 
How being a good human plays out semantically?
 
3:06 AM
well you should say why the downvote
in the comments
 
m59
I did explain, and the dude continued to say more false/stupid stuff.
 
lol "I down-voted because this answer is worthy of being down-voted"
 
Link us, please.
 
m59
1
Q: AngularJS directive - setting order for multiple directive elements (not priority for directives, but priority for the elements)

m59Considering this markup with a directive "foo": <div foo run="3"> <div foo run="1"> <div foo run="2"> What is a good approach for causing "foo" to run in the specified order rather than from top to bottom (3,1,2)? The only thing I can think to do would be tracking what has run and returning fa...

The title says "NOT THIS"
dude answers "Oh yeah, THIS"
ftw
 
Proper down vote material, IMO.
 
3:10 AM
@Jeremy i never managed to get that canvas thing working properly
 
m59
lol someone deleted it
I guess he did.
 
@Dave I saw your question... I'd consider answering if the code wasn't so hard to look at
 
its not that difficult
 
@m59 Man, and I was just writing a nice little comment
 
two if statements lol
 
m59
3:11 AM
heh
 
@Dave It's not difficult to understand, it's difficult to look at...
 
fiddle has a tidy button to fix the layout
 
@Dave Not the organization either... not to mention that the snippet you posted on SO doesn't match the fiddle you linked to... what's your end goal? What are you trying to make?
 
make it not flicker lol
 
@m59 Add the important details from your comment to the post to add more description
@Dave I mean with the whole script
Or up until this point at least.
 
3:14 AM
well its suppose to just scroll around and stop when it hits the boundries but then after that mouse is still relative to the clickXY so it goes negative and won't move if you drag back
when using it with that left it feels too buggy and unnatural to leave it be
 
m59
@Jeremy Are you sure that would be good? I feel like this is a very basic use that angular overlooked. I felt like more specifics would take away from the flexibility of the solution (it should work for all directives)
 
although the flickering is biggest pain in the butt
 
Before I look into it, please fix the contradictions between your post and the fiddle... really could confuse future answerers (...and me)
 
m59
the possible solution I gave would work for any directive, no matter what it does.
 
what contradictions ? i renamed x to clickX and y to clickY
thats it
 
3:16 AM
@m59 What'd be great is just a quick example. I'm not familiar with AngularJS, but something like: "For example, when the page loads, instead of ____ happening before ___, ____ initiates and blah blah blah"
 
@lfender6445 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.
 
@Dave The codes are different... that's awfully confusing regardless of how simple the change may seem
 
m59
@Jeremy "What is a good approach for causing "foo" to run in the specified order rather than from top to bottom (3,1,2)?"
Not sufficient?
 
@m59 Yeah, I don't know... I don't know AngularJS or any terminology, so I wish I could provide you with an example, but I don't know any =/
 
m59
hehe
 
3:18 AM
well im looking now i'm not seeing a difference other than adding 4 letters.
 
m59
Directives basically do this: <div myDirective></div>
myDirective = function(element) {
 element.appendChild(myStuff);
}
 
@Dave You don't need to take my suggestion just like I don't need to help you. It's fine if you don't want to.
 
m59
That's not really it, but you get the idea?
 
I don't, however, see how your question can help others in the future.
 
so if i put clickx back to x its suddenly read-able ? lol
 
3:19 AM
@m59 they append the element?
 
m59
angular scans the dom, picks all of the directives up, then runs what they do, yes.
 
@Dave biting the hand the feeds you... vampire alert
 
m59
If you had 50 of that across the page, it would start at the top and append to all 50
 
well your just talking nonsense. their identical i dont know what question your reading dude.
 
@m59 Oh, okay. Nah, your question makes sense. I'd replace the "(3, 1, 2)" with "(e.g., the third one executes, then the first, then the second)" but I'd say it's clear enough.
@Dave okay. Good luck.
 
m59
3:22 AM
@Dave why all the window.?
 
@m59 it was copy pasta from my script
 
m59
pasta?
 
internet meme
 
m59
oh gotcha
I still don't get it, lol.
 
m59
3:24 AM
Yeah, but why the window?
 
because thats what i have on my main script
during the preloader
 
m59
whyyyyyyyy.
 
easiest way to keep the scope global
 
m59
....
easiest way to fail?
 
No, the question was why
 
3:26 AM
because typing.. window.
 
m59
You WANT to keep everything global?!!
 
is alot less workload.
@m59 only things that need to be
 
m59
lol, only one thing ever needs to be.
 
no most game settings need to global
and map settings
 
@m59 I usually just walk away at this point.
 
3:26 AM
and user settings
 
No, you should adhere DI
Globals are pure evil
 
^^
 
gimi a reason why window. will effect my script negatively?
 
Globals drown puppies in their spare time
 
i await a reasonble answer that will make me want to change my approach
 
m59
3:29 AM
var game = {
  settings: {
    game: {},
    map: {},
    user: {}
};
 
@Dave Science
 
still no real answers then
 
m59
^^
 
thats not an answer just an alternative @m59
 
@m59 I like the response you got.
 
m59
3:30 AM
@Dave So, you don't want to learn js at all. Got it.
 
@Dave Watch some clean code talks and you'll get many.
 
m59
I even wrote the code for him :)
 
@m59 unless you can gimi technical reasons why yours it better
 
m59
Nah, it's cool.
 
then your points fall on deaf ears
 
m59
3:31 AM
I know what I'm talking about. I don't need to defend it. If you wanted to know, you'd ask.
 
im not asking you to defend it
 
@Dave set up the game as a new object with settings then extend that object witht eh prototype method. No need for globals!
 
@Dave Here, a nice little talk for you.
 
im asking you to tell me why seeing as your attacking my method
@monners but why is that -better- in what way?
if its just "cleaner" code its not really a problem that i care for
 
@Dave Watch the damn video
 
3:32 AM
@Dave Keeps your settings out of the global namespace, making your app more developer-friendly and extendable.
 
ill bookmark it but i dont need to pre- optimize atm
 
It's not just "cleaner," but I'm glad you judged a talk series by it's cover. Watch the video
 
m59
pre-optimize. My goodness.
That isn't optimization.
 
well im getting pretty much top fps' in canvas so i dont need to speed it up atm.
 
@Jeremy You can lead a horse to water...
 
m59
3:34 AM
Congrats. You made something awful and it works.
 
im the only developer so i dont need to worry about developer friendly.
 
@Dave Wow, you should totally work for Microsoft.
 
m59
ding ding ding!
the winner!
 
@m59 thats your opinion but as long as the performance is really high then i care less how it was done.
 
@Dave Then write it using assembly
 
m59
3:35 AM
and that's the perfect mark of a poor programmer.
 
@monners can browsers read assembly for websites?
 
m59
@Jeremy that solution looks crazy boss so far.
 
@m59 good job i don't have a job in it then. this is my hobby
 
@Dave Does it matter? You're the only developer. Screw standards, it'll be faster!
 
exactly no one else will ever be working with me on my project so i program it how i find easy to do.
 
3:36 AM
I'll just say this and them I'm forever done: you're building a script based on bad architecture and widely-known poor methods. To be honest, you're not the only developer. You've enlisted the whole SO community to help you, and we're doing our best... If you don't take advice other than a solid solution to your problem, don't ask a question. And, if you won't accept that the the whole SO community acts as the other develops you've enlisted, think about programming for your future self.
 
@Jeremy if window.something throws you to the point you can't work out what im asking then think thats on you really.
you say you got confused because one had x and the other had clickx in the fiddle =/
i merely named it to explain what it was. (the mouse click)
 
Trust me, if you take the time to learn anything (at this point it doesn't seem you will, but if you do), when coming back to modify that horrid script you've made, you'll be lost and rather disgusted.
 
Programming is like golf. You'll never get any better if all you care about are the numbers at the end.
 
@Dave I'm sorry ignorance led you to that conclusion. Anyways, have a nice day. I'm done.
 
i think window.user_settings = {}; for example is pretty straight forward i can access it in any function i need with ease. i dont see the the horrid in that.
 
m59
3:39 AM
I'm getting anxiety issues over this :(
 
i'd be willing to change it only on two conditions: performance boost, or time saving with development
 
le sigh
 
Sorry, I couldn't keep quiet. Are you kidding me? Those are two of the main reasons that you shouldn't be using globals.
 
m59
And Jeremy just gave you a reason. He JUST said that you're bothering everyone with help for your awful code that no one wants to look at.
 
@Jeremy Shhhhhhh
 
3:40 AM
Well, the second one could be opinionated, but definitely the first... anyways, watch the video and I'd be willing to discuss this further
 
@m59 only jeremy has ever said that lol
 
m59
that your code is awful?
 
no that he couldn't read it easily to understand it
 
Where is this code?
 
m59
I don't WANT to understand it.
 
3:42 AM
I'm intrigued
 
i've got the canvas issue fixed now :)
 
@Dave I'm the only one that wasted my time trying to reason with you in the first place... I guess that was a mistake,
 
All of the functions are in the global namespace o.O
 
the only thing ive really read about globals is you could accidently use the same name else where by mistake
 
3:44 AM
Ok, I ain't touchin' that
 
lol.
suit yourself it really isn't going to kill you
 
It might
 
m59
@Dave it's just like what I was telling you with adding a property to an element.
Can and Should are two different things.
 
it was significantly simpler adding a property to the element
 
m59
I knew that was coming.
 
3:47 AM
for example:
 
m59
We're feeding the troll.
Gotta just let it go..
 
i put a setTimeout to a div like this div._timer =
 
m59
I think I'm going to have to mute you, dude.
 
then it only ever stops once the div is removed.
why? cos i have my own ways of coding. get a life dude its not a big deal.
 
m59
Why are you here?
 
3:48 AM
well why are you ?
 
Probably because he wants (and is willing) to learn
 
m59
I'm hear to learn javascript and to help others learn javascript.
 
im here to chat and some times ask for help with the occasional problem i have.
 
m59
Who is going to help you?
 
so far ive always got the help i needed.
and ive been here a long time. :P
 
3:49 AM
Aka vampire
 
m59
That's unfortunate, since you've disgraced everyone that invested their time into you.
 
how exactly? they dont tell me to change how i code. thats my choosing.
 
m59
I find that surprising.
My code is infinitely better than yours and every decent programmer I know in here will probably tell me it's awful and I need to improve.
 
im not making a professional thing with my code.
so i don't really aim to perfect the language just getting it working is sufficient for my needs.
 
m59
I'm not a professional shuffler but I like dancing so I have some sense about it.
 
3:51 AM
all this because 4 lines in a fiddle had window.
jeese
 
m59
No, all of your code is bad.
 
well i didn't ask for your opinion on it.
 
m59
Well, this has been stressful.
 
then shut up already about my coding abilities >.>
i do as best as i can
 
m59
Gosh, that all went over worse than when I talk about my faith in Jesus with people :)
I guess that means I'm better at talking about Jesus than javascript, which I'll take.
 
3:57 AM
you could of instead of just bashing that my code is bad had written an example of the correct way to have done my fiddle so i could see the difference that would of been more constructive than plain attacking me.
 
m59
Now I'm the bad guy. One of the first things I did was show you how to avoid globals. I wrote out exactly what you said.
You attacked that.
 
Oh my godd... So ignorant. 1) We aren't bashing your code, we're trying to make it better. 2) We're not going to write an example for you, we gave you resources. I found you an hour video to watch! 3) You're a complete help vampire
 
m59
I am not attacking you. I'm trying to tell you you need our help, and I'd be glad to give it.
 

« first day (1024 days earlier)      last day (3929 days later) »