« first day (1096 days earlier)      last day (3844 days later) » 

3:00 PM
and it's just that file
 
There is no backup folder for Sublime Text
 
@erikroyall urm...
I disagree
@Connor ahh ok. Its the only time I experienced a file emptying itself, is when I have deleted cache, so the temp file is no longer there.
 
Oh! I thought I manually created it when reinstalling.
It's at C:\Users\{Name}\AppData\Roaming\Sublime Text 2\Backup
 
Yes sir.
 
Sir?
 
user1596138
3:03 PM
Someone edited one of my answers and changed depreciated to deprecated. Clever, but it wasn't the right context. He made my sentence wrong.
 
hahaha
 
I'm just 14. Don't call me sir.
 
i don't have one
 
3:05 PM
@SomeGuy how much do I have to pay you to call yourself 'rob' and do my support calls for me
 
@erikroyall Urm ok. Technically your a Master iirc.
 
> Do not use mysql functions as they are deprecated.
is that the sentence you are referring to?
 
user1596138
Wait, ok he didn't mess it up, but he changed it's meaning.
 
depreciated doesn't make sense in that context
 
user1596138
I was talking about how they really are depreciated which is different from deprecated.
 
user1596138
3:06 PM
@Shmiddty mysql functions are depreciated. Now we use mysqli
 
!!tell jhawins define depreciated
 
@jhawins depreciated simple past tense and past participle of depreciate; reduced in value over time.
 
@mikedidthis Well, technically, I'm an intermediate.
 
!!tell jhawins define deprecate
 
@jhawins deprecated simple past tense and past participle of deprecate
 
3:07 PM
-_-
I really hate dictionaries sometimes.
 
no
 
@jhawins deprecat third-person singular present active indicative of
@jhawins deprecate To belittle or express disapproval of.
 
Master is what you call children
 
user1596138
Wait.
 
it is the title
 
3:08 PM
That is what I am saying
He is 14?
 
user1596138
I read them wrong.
 
user1596138
Oops..
 
yea
 
user1596138
Or maybe I've always thought that the word for deprecate was depreciate. I'm not sure.. Now I'm confused.
 
@mikedidthis but I don't think all languages / countries respect it
 
user1596138
3:09 PM
It's too early.
 
@rlemon yeah it seems like an English thing, typical.
 
controlText.innerHTML = '<?php require '+'INC/map-search.php'+'; ?>';
do you see a problem in that ?
 
innerHTML
 
user1596138
Yes.
 
also what do you expect '<?php require '+'INC/map-search.php'+'; ?>'; to do ?
 
user1596138
3:11 PM
Haha that's what I'm saying.
 
deprecate comes from the latin *deprecari* which means "pray against".
depreciate is from the latin *depreciare* which means "reduce in value"
 
include my php search php file
 
interesting lesson today
remember to eat your vegetables kids! they're FUNdimental!
 
user1596138
@Delarn Syntax.
 
3:12 PM
Really? :D
 
.innerHTML = "<?php echo file_get_contents('url'); ?>";
 
user1596138
Plus that, even more so.
 
ok I do that in all my other files and it does it
 
that line is horrible in so many ways.
the escaping is just a cluster fuck
 
ahhh feck you chat
 
3:14 PM
Suggestions for a BDD JS Framework to write specs for a girlfriend?
 
and you should be getting the file contents
 
ok
 
P.S. No matter what, all of the tests shouldn't be passed
 
Write specs for a girlfriend? What..
 
Specs for a girlfriend:
  * Boobs: check.
  * Brains: check.
  * Butt: check.
 
3:15 PM
gf.js
var girlfriend = function() {
  return 'no';
};
 
...Bahaha..
No.
 
best emulator known to mankind
 
describe("my gf", function () {
it..
});
 
describe("my gf", function () {
  return undefined;
});
 
I want she instead of it in Jasmine.
 
3:16 PM
you forget * Vagina: Check.
 
@Delarn he prefers the butt
 
yeah but man can have brain boobs and butt
 
I've got a Multipass. It's all good.
 
I honestly don't know if this is a serious question.
 
@RUJordan you know what a serious question is?
WHY DOESNT MY PHP DO WHAT I WANT IT TO DO?!
 
3:18 PM
@rlemon I'm gonna guess "Your code is bad"
 
!!unimpressedlemon
 
@rlemon 【ಠ_ಠ】
 
;-)
 
O_O
NOOOOoooooooooooooo
my unicode!
 
user1596138
Weird..
 
3:19 PM
Oh noez!
 
@OctavianDamiean when you sanitized the json you fucked up my unicode commands
:(
 
@rlemon .. is your computer on and or plugged in..?
 
@RUJordan no
but I can try that
 
@rlemon did not work either
 
addEventListener("AGirlProposesErik", function (e) {
  if (e.distance < 5) {
    alert("I don't wanna marry n pls get off me");
  } else {
    alert("I don't wanna marry");
  }
});
 
3:20 PM
function SearchControl(controlDiv, map) {

// Set CSS styles for the DIV containing the control
// Setting padding to 5 px will offset the control
// from the edge of the map
controlDiv.style.padding = '5px';

// Set CSS for the control border
var controlUI = document.createElement('div');
controlUI.style.backgroundColor = 'white';
controlUI.style.borderStyle = 'solid';
controlUI.style.borderWidth = '2px';
controlUI.style.width = '100px';
controlUI.style.height = '150px';
controlUI.style.cursor = 'pointer';
 
@rlemon kewl, if that doesnt work, burn everything.
 
who here has written bot listener commands?
I suppose I can just look at the stop code
 
PHP has depreciated in value since its inception, why has it yet to be deprecated?
 
@Shmiddty same reason people use mySQL
too many investments in the technology
 
@eazimmerman they don't know any better?
 
3:22 PM
function apply_styles(element, styleObject) {
  for( var style in styleObject ) {
    if( styleObject.hasOwnProperty(style) && element.style[style] ) {
      element.style[style] = styleObject[style];
    }
  }
}
@Delarn reduce your code :P
write a helper to apply styles
 
I'm not there yet
 
Make @erikroyall 's psuedo gf help apply the stylez
 
tee hee I mixed Camel and underscore and no one bitched
 
helper to write style ?
 
user1596138
@Delarn What's the problem?
 
3:24 PM
@MackieeE makes sense, he hasn't contributed anything.
 
Anybody great with algorithms ?
 
@Jhawins the innerHTML won't show in my control box on my map.
 
user1596138
 
user1596138
That's like 25 minutes from here...
 
@rlemon you'll have to explain how to make that function works. I'm still quite new into JS
 
3:26 PM
@AbhishekHingnikar uhh.. prolly.
 
@rlemon got skype?
 
I think I need to be working on gf.js - A gf spec writing library
 
@Jhawins OMG KENDALLVILLE?
 
user1596138
@KendallFrey Yes
 
@Delarn yes I do
 
user1596138
3:27 PM
Kind of like Kendall..
 
I also have a full time job, where I am currently at. :P
 
@AbhishekHingnikar That's, um... kind of a generic question.
 
That's awesome.
Someday, I'm moving to Kendall, Florida.
 
I love the fact that my boss is impressed with the "amount of research" I do on S/O.
 
@rlemon I work at home... I would like you to explain me that function if you have time.
 
3:29 PM
holy fuck those youtube comments make me sad for americans
"that is insulting to hitler"
are you off your god damn rockers?!
@Delarn I do not
 
@rlemon ok I've saved it in a document. I'll ask you later when you have time. Tonight maybe
 
maybe
 
user1596138
I'm just showing the video... I haven't even looked at the comments haha
 
wow
 
3:33 PM
@KendallFrey Obanana
 
@JoeMarie 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.
 
@KendallFrey the fine print. hah.
 
@AbhishekHingnikar what kind?
 
@AbhishekHingnikar I'm better with alcorhythms
 
3:35 PM
i have a bunch of images
they are all sqaures i have to show a beautiful grid out of them.
i am going to most probably use the browsers packing algorithm
 
@Shmiddty You can do better
 
algoreisms?
"I invented the internet!"
 
I'm still not able to have this line working : controlText.innerHTML = "<b>Search</b><br/><?php echo file_get_contents('INC/map-search.php'); ?>";
 
@AbhishekHingnikar Darn, I was hoping for search algorithms or something.
 
Is there any way to enter " debug mode" on google chrome when a certain variable change its value ? ( I know which variable. I just want to pause when its value change).... is it possible using google chrome developer toolbar ?
 
3:48 PM
Man, the x-editable docs could use more docs.. I had to scourge every word to figure out that the data-value attribute was how you have "pre-selected" values.
scour not scourge..
 
!!afk smoke
 
@Shmiddty Stay safe.
 
@rlemon that might have been due to exports because all I sanitized is getting rid of the non JSON parts and then converting the line-endings to Unix style.
 
3:50 PM
Ugg.. I could use a smoke too.
 
@rlemon I did.
Well, more like extending the stop listener.
 
@RoyiNamir right click, inspect element console. don't forget to add console.log(var) to see what is changing.
 
@OctavianDamiean when ever anyone says 'b4' you need to make the bot post this:
but maybe not oneboxed.
 
lol
 
3:53 PM
Auto post. Everytime.
 
Mhmm.
You really want to have that in as a global listener? Let me check how often we get those b4s.
 
textglish is not suitable here.
 
28 messages found, half of them being from hex dumps.
 
Yea.
We're have to make sure not to post it in case someone posts a hex dump or something like that.
 
@rlemon is there a way in js to load the php file in a variable to then put it in innerHTML ?
 
3:56 PM
@Delarn wait what?
 
lol trying to make that happen : controlText.innerHTML = "<?php echo file_get_contents('INC/map-search.php'); ?>";
and it is not working
 
async:false halts the browser, and all JavaScript, until the AJAX call is done. How do i prevent this ?
 
dont set async to false.
 
@Delarn Why would you want to do that? PHP wouldn't be notified of that. PHP gets notified the first time you make a request to it, it constructs your page and then sends to as a response.
 
i can't even use the mouse pointer
@phenomnomnominal
 
4:00 PM
@Delarn You can have your PHP script to return HTML snippets on certain requests to it and then put that response into a HTML element on a successful response.
 
I want to include a search form inside my google maps api inside a div
the div is created in js and applied in js in an overlay of the map
I know that js can do the same thing as ajax and I don't want to use jquery
 
@samitha don't use async: false
 
anyone needs some nightmare material?
 
Well there goes my heterosexuality.
 
4:03 PM
@Delarn First of all, jQuery is just JavaScript, AJAX is just a hyped term that's actually just used in the context of a simple HTTP request.
 
yeah but using jQuery is for the weaks ... ;P
 
that's just stupid.
 
<3 jQuery.
 
Real men don't use hammers, just their bare hands.
 
The only place I use jQuery is in twitter bootstrap
Real man use hammers, they don't use pneumatic hammers
 
4:06 PM
Not-stupid men use the right tool for the job.
 
^
If jQuery is the right tool for the job, by all means just use it.
 
@OctavianDamiean ask @rlemon on that ;)
 
@rlemon is a little girl
 
DOM traversal is so much easier in jQuery. I hated traversing nodes in raw js.
 
so back to my problem. Any one have a hint of a solution. I'm even thinking about using what ever tool I need.
 
4:10 PM
I'm not sure which bit you are struggling with, it all seems straightforward
 
it doesn't load the file into the search overlay
 
I've even explained how.
Because PHP wouldn't know that it needs to reparse your file, it doesn't work like that.
 
ok so what do I do to have that file in?
 
@RUJordan uh? like, example?
 
I'm a fan of .closest
 
4:15 PM
@OctavianDamiean should I open the file like I would with a json and insert it with a variable into my overlay?
 
@phenomnomnominal I agree. Hence github.com/Ralt/closest :P
which reminds me of this other code I'm quite proud of github.com/Ralt/delegation/blob/master/lib/delegation.js
 
@Delarn There are two possibilities. You change your PHP part in such a way that the snippet is already inserted into the DOM when you make the first request to your script.
 
Florian, well, isn't it easier to find the Xth td element of a table using jquery versus a node loop?
 
What's qsa?
 
4:18 PM
Then you'd have it in there, you could simply select it with JS and insert it into the right location. Drawback, ugly.
 
@RUJordan querySelectorAll
 
second option?
 
I'll have to look that one up
 
!!tell RUJordan mdn querySelectorAll
 
4:19 PM
The other way would be to have your PHP script handle certain requests in such a way that it returns the HTML snippet as an HTML string, then the JS part that requests it would just take the response and insert it into the proper location right away. Drawback, additional HTTP request.
Why do you need to insert that after the page has been loaded in the first place?
 
@FlorianMargaine I doubt you need TCO since tree depths are usually very shallow like 20 in worst case probably
what you need is null checks so one doesn't have to try-catch when calling the function
 
@Esailija still better than no TCO
 
@rlemon What timings do you want me to do the support calls? And do I have to actually help anyone who calls?
 
@Esailija it was a 2-minutes thing, I don't care much about it
 
:P
 
4:21 PM
what I love though
is this
 
@SomeGuy let me guess, he has hired you so that his company looks like a big player that needs to outsource their telephone support to India.
 
@FlorianMargaine lol how did he even find that repo :D
 
@Esailija I think he looked at last new npm modules back then
 
i c
 
@OctavianDamiean I am loading it in the initialization of the map
 
4:25 PM
and Array.prototype.find is in chrome 30 btw now :P
not sure in which ff version though bugzilla.mozilla.org/show_bug.cgi?id=885553
 
@Delarn Oh, right Google Maps, I forgot, yea.
Anyway, those are your options.
 
@FlorianMargaine I think it's behind flag, at least on 32 [].find is undefined
 
@OctavianDamiean yup google maps
 
Is there a way to "ignore a class" in CSS if the element contains more than 1? For example: if the class is "valid error", is there a way I can ignore "error" since "valid" is there?
 
4:28 PM
@Esailija works in my chrome 30
Array.prototype.find
function find() { [native code] }
I run harmony
@RUJordan no. What you can do is override .error with .valid.error
 
@FlorianMargaine where's the setting to enable experimental features?
 
@Shmiddty Were you bitten!? Strip! Prove you weren't bitten.
 
@Shmiddty chrome://flags
 
So if I override using .valid.error any span element class "valid" will NOT trigger any .error styles?
 
4:31 PM
yeah
 
be back later
 
I'm trying to avoid this by removing the class with js, but it's not working yet.
 
C'mon someone close the worst question on SO ^
 
need something called food
 
@Connor hopefully for you, you can't see the deleted answer on this question
 
4:32 PM
@FlorianMargaine lol, screenshot please
 
@FlorianMargaine I had to do kind of the opposite of what you said. "If class is valid, do not trigger error." So by using: span.error:not(.valid):before { instead of span.valid:not(.error) (But that was my mistake on the asking part).
And if I add backticks will that give it the code font?
Not quite sure how to do that in here yet.
 
Array.prototype.find = function(predicate, thisArg){
    this.forEach(function(item, index, array){
        if(predicate.call(thisArg, item, index, array) === true){
            return item;
        }
    }, this);
    return undefined;
};
 
Okay css float + css column
is friken amazing if u havent tried it out .. do try it
it friken makes an image cut in half and wrap in the next column without adding more elements [ and i have no clue how it does it but its friken awesome ]
 
@AbhishekHingnikar can you show us?
 
@AbhishekHingnikar JSFiddle, please
 
4:40 PM
I am just curious btw.
 
@mikedidthis yeap wait bitches
 
I'm not waiting coz I'm not a bitch
 
.. O.o
You've caught my attention, bitch.
 
It frikenly friken awesome so awesome day my JSFiddle URL became jsf.net/frikenawesome and friken private
 
@erikroyall tough shit
 
4:44 PM
@erikroyall You annoy me
 
Hmmm... That's interesting
@AbhishekHingnikar You mean column-count kinda columns, right?
 
@erikroyall , @mikedidthis ^ resize the codepen iframe
up and down :3
to see the amazingness
 
@SomeGuy 8am->5pm EST and you would have a list of instructions you have to walk these guys through to setup some port fowarding and doing some small device setup
 
that thing only works in webkit though
but its friken amazing !
 
but they are all hick farmers who don't know a computer from a toaster
I have been asked how to copy-paste something :/
brb smoke
 
4:47 PM
Isn't a toaster technically a computer or do toasters not calculate time toasting?
 
@rlemon "I copied it, then moved the mouse to another computer, but it wouldn't let me paste. It's broken."
 
Toasters need bluetooth so I know when my toast is done on my twitter feed.
 
Oh my fried chicken! That's awesome!
 
;-) indeed
 
@AbhishekHingnikar Mhmm, that's indeed interesting.
 
4:48 PM
*friken awesome
 
Its the expected behaviour if u combine the behavior of float with the behavior of column
 
I can't lie I am disappointed, but I read it wrong.
 
though i think they might remove it !
 
Show it to Chris.
 
@mikedidthis try it with one element
 
4:49 PM
My head hurts :-/
 
@erikroyall doing that only
 
This is Chrome only right?
 
y u moz prefix then?
 
@Nasruddin 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.
 
4:50 PM
Sorry I miss understand, I thought you had solved the more than one column span thing
 
Whats the style that will align an image with the words next to it? So that the words are centered to the image, not they all start on the same field plane.
 
Change overflow: hidden to overflow: auto for a more pleasant experience.
 
I tried adding a margin-top but that failed.
 
#ProTip
 
y u no lorempizza
Why do I even bother.
 
4:51 PM
I regret that #ProTip
 
HashtagRegret.
 
@rlemon That's the first thing I wondered when I saw the code, actually
 
@OctavianDamiean , @erikroyall , @RyanKinal codepen.io/darkyen/pen/IpmGK
tweet :D
 
in HTML / CSS / DOM / webdesign, 2 days ago, by mikedidthis
@Ravi http://jsfiddle.net/QPvhB/
 
and ... i moz prefix since if this is expected mozilla might add support for this in future :P
 
4:53 PM
That's pretty cool
 
@rlemon we have a new Terraria buddy. :)
 
@AbhishekHingnikar codepen.io/rlemon/pen/HBkon FTFY
@OctavianDamiean Kendall?
@mikedidthis thats my boy!
hahahahaha
 
@rlemon him too (maybe if he likes it) but @GNi33 just told me that Terraria looks interesting, he's playing it right now.
 
I just got head hunted with the title "front end javascript ninja rockstar needed"
yea no thanks
 
Dammit @rlemon I have 5 minutes to lunch and you go and tease me with pizza and peppers.. H8 u.
 
4:56 PM
@rlemon Canada based job?
 
nice
 
@rlemon lol, yeah
 
nope :P
 
@AbhishekHingnikar isn't this more of a quirk? I mean position: fixed shouldn't wrap images?
 
even better @OctavianDamiean Copenhagen
 
4:56 PM
@AbhishekHingnikar What's your twitter handle?
 
@erikroyall darkyen00
@mikedidthis it works on position:absolute aswell
i didn't want it to scroll
the actual quirk is the overflow:hidden
 
@mikedidthis he likes to abuse a lot of things, among others also CSS.
 
It even works with overflow:auto in Opera Next 17 ()mine
 
had to re-open the email to get the spelling on copenhagen
 
@rlemon Oh, I see.
 
4:58 PM
@mikedidthis so well this is howi t works
the images are inline
and hence they should be treated as text
 
@AbhishekHingnikar ahh ok, I totally misunderstood the context
 
@rlemon I was hoping for Graz. :D
 
i guess what webkit is doing is rendering and then creating columns [cutting :P ]
which is rather logical :P
 
@OctavianDamiean I want to do geocodezip.com/v3_MW_example_categories.html but in a div on the map.
 
annnd... if its doing so and the column height is fixed
the image will be cut and the other part will appear on the top
which is pretty fucking amazing
 
4:59 PM
@Delarn eh, which part of that?
 
Oh, bangalore! Kinda like 400km away from me
 
@erikroyall wut ? where aer u ?
 
@user2318483 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.
 
@OctavianDamiean The category search
 
Hyderabad
 

« first day (1096 days earlier)      last day (3844 days later) »