« first day (1171 days earlier)      last day (3792 days later) » 

user1125394
12:09 AM
@Kallewallex can it hold in a jsfiddle?
 
@BenjaminGruenbaum I just had to download the git application
 
user1125394
on windows?
 
I keep putting off learning how to use git from the command line
It's always next on my list of things to learn
It really shouldn't be...
 
git CLI is not hard for basic usage
 
user1125394
12:14 AM
@Shmiddty yep it's doing good, you have ssh-keygen shipped etc...
 
ugh
just finished some refactoring
thanks god it's over
now I can get to the interesting bits
 
Ugh, I hate the default scrollbars in FF and IE
How have we as a species not yet come to terms with the fact that the Apple scrollbar design pattern is superior in almost every single way?
 
user1125394
they patented it probly
 
I'm baaaaack!
@AbhishekHingnikar Whaaaaat?!?
@Jhawins Thanks, I'm stealing that.
 
@SomeKittens Jhawins is afk: VACATION!!
 
12:26 AM
@SomeGuy Thanks so much!
 
12:49 AM
@SomeKittens how was sex?
 
@SomeKittens Yes, how was sex?
 
@SomeKittens Just wondering, how was sex?
 
Why the past tense?
I could be having it right now!
 
Eww
 
I have no problem with sex on the computer, so long as you don't fall off.
 
12:54 AM
Sex on a computer sounds painful, there are a lot of sharp edges.
 
How will be sex?
 
@phenomnomnominal Schrodinger's sex!
 
Both will be and won't be good?
 
You won't find out until you stick it in! Just make sure you have the right box, otherwise it (might) get all scratched up.
"Hey baby, my penis is stuck in a quantum superposition, want to detangle it?"
6
 
@SomeKittens Either way it'll involve pussy
 
1:00 AM
where did they put the chrome dev tools settings where you can change window size?
 
@Dave does it look like we have time for your questions right now?
 
yeah cos chrome dev tools without being able to change user agent is plain stupid
time simply cannot tick forward without it
 
@Loktar get bf4 for ps4
Also. Everyone else with ps4
 
@rlemon How is the PS4? They sold out over here. couldn't get one in time :(
 
Fun
 
1:12 AM
And nah, getting' BF4 for PC
Keyboard and mouse baby!
 
still fun
 
user457812
I thought I'd heard somewhere that the PS4 had mouse/keyboard support for games, but that might be optional for games
 
1:25 AM
@nil I hope it does. that'd be sweet
 
user457812
I don't know for sure that it does, unfortunately.
 
user457812
I do know that Dust 514 on the PS3 supported mouse/keyboard, but it was really bad support
 
user457812
Like really weird differences between vertical/horizontal mouse speed and the UI was of course unusable via a keyboard, but I guess they only expected you to use it while shooting people.
 
1:52 AM
Hello Everybody.
 
Hi Asme
 
woow, great it work,
 
Unbelievable, right?
 
chat in stack? yes that's great
heuu, I don't if it's the right place to ask but....
how this work?
 
I think it's JavaScript
 
1:57 AM
that's crazy fast
 
what's JavaScript
 
It's like Java
 
WHY ARE MY HANDS MISSING
oh, there they are.
 
much verbose
 
Java?
 
1:57 AM
such chat
 
yeah
 
wow
 
heuu a question guy: what if I need a live chat help? what to do in such case?
 
@AsmeJust Shoot yourself in the foot
Also, work on your English as well as your question/answer ratio and probably get a proper avatar.
 
For instance, a kitten
 
2:00 AM
@SomeKittens sorry, I speack french, my english ain't that good... I am doing the best I can,,,
 
@AsmeJust you have exceeded your 5 question limit. To ask more questions, please insert $100 into your internets
 
@Shmiddty lol, that's the way it work?
 
@AsmeJust In that case, work on being more specific in your requests
 
s/internets/CD rom drive
 
@AsmeJust unhandled exception: question asked with no questions remaining
 
user457812
2:02 AM
Give me $5 and I will give you tons of answers.
 
hmmmm...
request for another free question guys...
 
user457812
Free answer: fire.
 
well, sometimes, I just don't want post some questions on stack, and need more a live help than a simple answer... so what to do in such case?
 
Just ask, but don't expect an answer in any case
 
ah ok
thanks,
 
2:09 AM
But don't ask us to do debugging work for you
 
!!welcome AsmeJust
 
@AsmeJust 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.
 
lol I promise...
@SomeKittens thanks
 
That should have sent when you joined were it not for entirely political issues
 
@CapricaSix ha ok thanks
@CapricaSix ouf... to much to read... i'll be polite though...
 
2:15 AM
Has anybody here ever worked with event streams?
 
@AaditMShah what like Blizzcon?
 
@Shmiddty Like bacon.js
0
A: Move Box with the mouse cursor

Aadit M ShahI like to use event streams to solve problems like these. What is an event stream? It is a stream of events. So let's create our own EventStream constructor: function EventStream() { var listeners = this.listeners = []; return [this, function (event) { return listeners.map(funct...

 
m59
2:59 AM
accepted answer
0
Q: Is there an un-adjacent selector in CSS?

pappyI'm building a website where I want to hover on certain images and have them display other divs. I found this JSfiddle which worked well. http://jsfiddle.net/ZSZQK/ <div id="image"><img src="image.png"/></div> <div id="hover">Test message</div> #hover { display: none; } #image:hover + #h...

css question with css tags and jQuery gets accepted answer.
lolz
 
3:14 AM
@m59 Many question tags may as well just read howdoimakemythingyworkplz
 
@SomeKittens I want to improve our friendship, accept my facebook request :(
 
..I didn't get one from you
 
@rlemon I have it for the PC :P
 
unless you're Clayton Stupienski
 
I cant play FPS's on consoles @rlemon
 
3:17 AM
anyone here do flash game development?
Loktar?
 
@JABFreeware I have played many flash games, does that count?
 
Odd, I did have a request from you but it didn't pop up.
plane's prepping for landing, byebye for now
 
@copy So have I. Looking for someone who understands how flash games work and point me in the right direction
I'm thinking google...
 
Google search can sometimes bring up useful information, I think
 
@SomeKittens Byebye :)
 
3:22 AM
@copy helpful little byter isnt it? :P
 
Flash... why not use canvas?
 
@monners not developing games
its a secret project, but its a hack to flash games
ish
my question would be this: For example, could debugging via chrome reveal the value of a variable? Lets say...health meter?
or any browser for that matter
 
3:38 AM
Doubt it. Doesn't flash run in its own little protected environment?
 
@monners thought so :(
in memory though... hmmm Have to take a look at these flash game cheater tools ;)
 
3:52 AM
Why are you trying to hack flash games anyway?
 
pastebin.com/QaFSY7jZ anyone know my problem?
 
Well you spelt enemies wrong
 
but atleast it is consistent within my project.
that is one word i have troubles spelling
 
Holy crap, do you really have a FIVE Dimensional array?
 
well, that is level data.
first dimension is whether i want units or the map data, map data is a 2d array of arrays of tiles and rotations
for units i have to get which "team" of units, whethe ri want units, buildings, or other (resources) and units is an array of stats that change.
 
4:03 AM
@theHeretic Wouldn't it be better to contain all of that info as properties of a unit object?
 
what does that mean?
is that basically so i can set up a thign so i can say .x=.x+1?
 
More like unit.team = 'blue'; unit.xPos = 38; unit.yPos = 20; etc etc
 
well, this way it is easier to add more stuff, I just have to write an array. put the syntax for the array in a comment for memory.
 
I don't follow.
 
If I want to change starting units by adding one for one team I just have to write [index(as the perminant stats are stored in a different array), x, y, rotation, hp, targetx, targety, seleceted on start?] instead of unit.index=""; unit.x=""; unit.y=""...
and I don't have to have a bunch of variable declared before the array to put them into the array, so i can seprate my images mentally.
is using objects faster than using arrays?
 
4:09 AM
@theHeretic that's a good question.
 
It's likely very similiar, but depends on what operations you need to do
 
3
Q: Array vs. Object efficiency in JavaScript

Moshe ShahamI have a model with possibly thousands of objects. I was wondering what would be the most efficient way of storing them and retrieving a single object once I have it's id. The id's are long numbers. So these are the 2 options I was thinking about. in option one it's a simple array with an increm...

 
I'm using document.write to add text to my page but is there a document.unwrite to remove text
 
Use the DOM
 
^^^
 
4:10 AM
document.write is only good in very specific cases
 
@copy like every W3Schools JS example
 
document.write is only useful if you are writing an loop to give you some repetetive code in my small experiences.
is DOM .innerHTML="string";?
 
@copy What should I use then, I am making a text game
 
document.getElementById("something").textContent = "...";
 
if you have all the areas for text on the screa nfrom teh beginner using html like <p> </p> and <div> </div> do things like <div id="changethis"> </div> and do document.getElementById("changethis").innerHTML="texttobeechangedto";
that was terrible spelling
 
4:14 AM
@copy Thanks that works very well
 
also the thing you linked said you can do object[index]=""; i'm assuming you can just use named object indexes in objects?
 
@theHeretic key value pairs, yes
var myObj = { name: 'bob', occupation: 'pig farmer' }
 
hmm... guess it could work, but arrays work also because i commented what indexes are for what.
 
then you can access the values via their property names, for example...
console.log(myObj.name); // logs 'bob'
Rather than having one massive multidimensional array where you need to know the relative location of every value you're trying to access
 
it will be more confusing for people to hack though.
atleast until they find my comment that states the order of unit stats and where the array is stored.
(which is in it's own .js)
 
4:22 AM
@theHeretic Code obfuscation is not a legitimate approach to client side security
 
Twas only a joke. actually not worried to much, because javascript. I need to be able to debug it.
another problem i'm having relating to how .slice() works, it works fine in my simple tests but here when I change units it changes the values in data.js pastebin.com/PrgVs4nM
 
Hold up, is this pseudo code or what you're actually trying to run?
 
no, this is javascript. i just copied the parts causing problems and deleted and commented stuff not relative to the problem that woudl take up to much space.
 
@theHeretic Well there's stuff in there that isn't commented that aught to be
also, stop defining your arrays with new, use [] instead
 
oh, ok. actually haven't seen that syntax before.
search and replaced them all
also i'm not trying to run the stuff in caps lock, that is a comment that i didn't comment because silly me.
from my data.js also isn't code either.
 
5:02 AM
 
wait, what?
 
Of course odd numbers are prime
Conjecture: All odd numbers are prime.
        Mathematician's Proof:
                3 is prime.  5 is prime.  7 is prime.  By induction, all
                odd numbers are prime.
        Physicist's Proof:
                3 is prime.  5 is prime.  7 is prime.  9 is experimental
                error.  11 is prime.  13 is prime ...
        Engineer's Proof:
                3 is prime.  5 is prime.  7 is prime.  9 is prime.
                11 is prime.  13 is prime ...
        Computer Scientists's Proof:
 
5:18 AM
what is goldbach?
 
Ein Bach in dem Gold fließt
 
why are the weak ones true and the strong ones false? am I missing the point?
 
Ja
 
Do jsfiddles ever expire?
 
Nein
 
5:21 AM
That must be one massive database
 
Naja, wird auch nicht mehr als Pastebin sein
 
something, something also not something something Pastebin be?
 
Exakt
 
@copy I only speak 55% of one language.
 
6:21 AM
Massive disaster of push -f
Btw, can you look for business partners for a very innovative porn site on YCombinator?
(or get funds)
 
wat
Short answer: No. Long answer: NOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOO‌​OOOOOOOOO
 
6:43 AM
They just went full r-tard
Gosh, what a name for a air-guitarist, Peter "Stiff" Dicken..
 
7:11 AM
h
hi
i have one question can anybody help me
 
!!welcome 404
 
@404 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 have somthing like this
edit2=queryString.indexOf("</legend>");
now i want to add <span> tag after this
how to add ? i don't know much about javascript
 
don't try to parse HTML. Search the DOM. document.querySelectorAll, element.appendChild and stuff.
 
here i am generating form dynamically
 
7:16 AM
document.createElement
someElement.appendChild
 
how to insert it exactly after </legend> index
in edit2 i am getting index value...
 
are you using jQuery?
 
nop javascript
this my full code
var queryString = document.getElementById("render").value;
edit1= queryString.lastIndexOf("<legend>");
edit2=queryString.indexOf("</legend>");

fom=queryString.substring(edit1,edit2);
finalfom=fom.replace("<legend>", "");
finalfom=finalfom.replace(" ", "-");
here in queryString i am getting dynamic form and then i am replacing <legend> tag
with my format
 
//convert HTML to DOM
var div = document.createElement("div");
div.innerHTML = queryString;
//find legend
var legend = div.getElementsByTagName("legend")[0]
//create replacement
//...
//swap them out
legend.parentElement.insertBefore(legend, replacement)
legend.parentElement.removeChild(legend)
//...
//later on, when you need HTML again
var html = div.innerHTML
but really, don't try to search within HTML
 
let me try
i am trying like this but it's not working
var queryString = document.getElementById("render").value;
edit1= queryString.lastIndexOf("<legend>");
edit2=queryString.indexOf("</legend>");

fom=queryString.substring(edit1,edit2);
finalfom=fom.replace("<legend>", "");
finalfom=finalfom.replace(" ", "-");
$('legend').after("<span>hi this span tag</span>");
 
7:35 AM
what's that $ thing you're using?
 
i am trying to use jquery there
i am tring append <span> using jquery for simple solution
 
$(selector) searches within the document. the legend is not within the document.
 
it's not even in the finalfom variable as HTML once you do your string manipulation.
var query = $("<div>")
query.html(queryString)
query.find(...)
 
can i solve it by using jquery? bcz i don't have permision to change the above code
 
7:41 AM
what part you can't change? Also, why?
 
this part
var queryString = document.getElementById("render").value;
edit1= queryString.lastIndexOf("<legend>");
edit2=queryString.indexOf("</legend>");

fom=queryString.substring(edit1,edit2);
finalfom=fom.replace("<legend>", "");
finalfom=finalfom.replace(" ", "-");
 
finalfom is useless. If you can't kill it, ignore it.
 
there are some other dependencies is there
 
namely, if queryString contains multiple <legend>s, its content will be incorrect the empty string.
 
querystring will contains only one legend
i mean every form have only legend tag that's way i am targeting it
 
7:46 AM
you better drop this and use jQuery.
 
and fix the dependencies
 
i think that only i have to do
by the way thanks buddy for helping
 
(worst case: you convert back to HTML eventually anyways)
 
Sup @JanDvorak Nice headdress
Who'd you have to sacrifice to get that adornment?
 
7:48 AM
@monners thanks. Nice tent.
@monners "participate in closing or deleting a post"
 
@JanDvorak It's the pleats... they're very... complimentary
So are these hats here to stay or just a seasonal thing?
 
@JanDvorak Reads: How do I build a Boeing 747? I've folded paper into shapes before.
 
@monners also, it's gathering spam
 
This is the dumbest competition I've ever come across
The guy is called "Wild think 37" but title of the video calls him "Wild thing 37"
and the name itself is quite dumb too
 
7:54 AM
 
@EnglishMaster I've seen worse
 
That guy ain't bad!
Wish I could play the air guitar...
All I can play is this lousy Les Paul
!!afk steak
 
@monners Apricots are people too!
 
I had to stop watching that dumb guy playing air guitar because I don't want to laugh out loud in a cafe full of people
 
@monners I mean, I've seen worse competitions
 
8:42 AM
review-pls. Is this bad indentation style?
      if($(record.removedNodes)
           .find(updater.target).andSelf()
           .is(updater.target)
      ) updater.stop();
      else if($(record.addedNodes)
           .find(updater.target).andSelf()
           .is(updater.target)
      ) updater.start();
 
9:00 AM
Can't you just $(updater.target)
 
What if updater.target is a child of some added or removed node?
 
how about
switch($(updater.target).andSelf().is(updater.target).parent()){
  case $(record.removedNodes):
    break;
  case $(record.addedNodes):
}
haha that's pretty smart ^_^
 
definitely doesn't work
 
ya i know
 
user1125394
no, i
t's not.
 
9:10 AM
find(updater.target).andSelf() this part is redundant
 
@EnglishMaster it's not. find never finds self.
 
nvm
ya
 
currently using:
  if(
    $(record.removedNodes).find(updater.target).addBack(updater.target).length
  ) updater.stop();
  else if(
    $(record.addedNodes).find(updater.target).addBack(updater.target).length
  ) updater.start();
 
user1125394
I like the way updater.stop() is hidden
 
Sweet
 
9:14 AM
@ctrl what?
 
But someone in ur group will be like
"Ok, I'm back from break. As usual, I'm going to press auto-format hotkey before I code"
and mass up all ur indentation art-works
and just press ctrl + s
and push -f into git
 
@EnglishMaster I'm my own sole teammate for this project
 
Awesome
 
now for the difficult part: implement Updater#update
 
user1125394
if($(record.removedNodes).find(updater.target).addBack(updater.target).length)        updater.stop();
else if ($(record.addedNodes).find(updater.target).addBack(updater.target).length)    updater.start();
 
9:21 AM
I wouldn't do that unless I'm coding for JS1K or something
 
if you're coding for JS1K, drop indentation altogether (and use one-char properties and variables)
actually, I've just decided to just forget updaters for deleted nodes as I'm not going to see them again. There's no more else.
You know what? I'll just check for their deletion on their next update.
 
Ok, I think I pissed off a girl again. She said she is getting ready for an exam and I cracked a joke saying "Is the exam harder than driver's license exam?".
Now I look like an arrogant assxxle
 
9:37 AM
OK... I can take SO using tables in design. I'm not happy they're nesting them like matrioshka dolls but oh well. But td.gutter??? Aw c'mon...
 
10:04 AM
!! Object.create(Array.prototype); or []
 
@JanDvorak []
 
!! var a = Object.create(Array.prototype);
 
@EnglishMaster That didn't make much sense. Use the !!/help command to learn more.
 
> //todo: this is ugly as a sin. Use the API instead?
(and I'm the sinner, and I'm going to repent soon)
 
Is there a way to call a function with the parameters from <input>
 
10:19 AM
Sorry?
 
@qwertie yes; assuming "parameters from <input>" is a consistent term.
 
they are radio objects
 
@qwertie do you mean the selected radio button value? That's definitely possible.
// at this point I'm seriously wondering if descriptive variable names are the way to go
if(!updateTasksByQuestionId[questionId]) updateTasksByQuestionId = new UpdateTaskList()
 
@JanDvorak I have 2 radio buttons and I want something like if(button-pressed == "yes")
 
morning! small question: can I use the word options as a property of a object? like var myObj = {}; myObj.options = {};
 
10:24 AM
@qwertie button-pressed is an invalid variable name; and you probably mean its value. Otherwise, looks reasonable.
 
@JanDvorak I know but I dont know what I would use
 
my editor (dreamweaver) colours the word automatticaly and I wonder if its reserved or something...
 
@qwertie variable names cannot contain hyphens; buttonPressed should do. If it's a reaction to a change event, this should be the button, so if(this.value === "yes")
!!> ({options: "none"})
 
@JanDvorak "none"
 
This seems to be what I was looking for "var x = document.getElementById("myRadio").value;"
 
10:27 AM
@JanDvorak {"options":"none"}
 
@qwertie how do you know if #myRadio is selected?
if(document.getElementById("myYesRadio").checked) ...
 
@qwertie the value is always the same no matter if the radio's checked; also, w3schools is a terrible resource.
 
/me Quits Drinking / Smoking and Meat
 
@JanDvorak I dident see that, so what would do that except not always print "red"
 
10:33 AM
@qwertie you could look for a radio button by name and being checked (document.querySelector("[name='myRadio'][checked='checked']") might work), but it might be better to check if a particular button is checked: document.getElementById("myYesRadio").checked
 
@AbhishekHingnikar Do you drink / smoke / eat meat
at the same time?
 
@EnglishMaster I used to drink and smoke and eat meat
now i will not do any.
 
the particular form should have a better method for retrieving the checked radio, however.
 
@JanDvorak are u kidding me balls ?
 
@AbhishekHingnikar why do you think so?
 
10:37 AM
oooook
I'm now trying to set up autotools
wish me luck
 
Best of luck.
 
@JanDvorak THats so horrid method !
@FlorianMargaine may your auto tools work like santa !
 
@AbhishekHingnikar Can you offer a better one? I didn't look for it
 
I never tried using radio buttons..
But seriously that killst he whole point of using the name :-(
why not document.name_or_radio.value ? = value of selected radio.
like select options
 
@rlemon Ooh, wow, that looks interesting! I'll try to watch it while I eat or something
 
10:45 AM
@AbhishekHingnikar IIRTSC, form[...] ignores checkedness
IIRTSC = If I Read The Spec Correctly
13
A: How to get value of selected radio button?

Parthik GosarThis works in IE8 and above and all other browsers. document.querySelector('input[name="rate"]:checked').value;

@qwertie ^
 
@JanDvorak thanks
 
@qwertie as I said, however, you should check the checkedness of a particular radio instead
!!afk > go west && buy 1 food ration && consume 1 food ration && go east
 
@JanDvorak Can you pick up some milk on your way back?
 
Yes, honey
 
I, Monners the Great, have returned.
 
10:59 AM
@monners You taste just like raisin.
 
That's what she said
 

« first day (1171 days earlier)      last day (3792 days later) »