« first day (1496 days earlier)      last day (3446 days later) » 

12:00 PM
 
(Hint, it's in the lesson "any Digit" and the lesson "One or more repetitions"
 
should i change the green ?
 
@darkyen00 how much is that in money?
 
@BenjaminGruenbaum dirt cheap
/50
 
8$ isn't really "dirt cheap"
 
12:01 PM
erm the dish prices will come down to like
$1 - $5
 
You can get a Pizza for 5$ here at cheap places and "here" is a pretty expensive place.
 
this is random data :D
 
depends. 8$ for a car is dirt cheap
 
Also: dirt is dirt cheap
 
12:02 PM
@darkyen00 1366x768 at 60.00 HZ
 
anyone please?
 
8$ for a bag of dirt isn't cheap
 
Depends on the dirt, tbh
 
@AwalGarg use the link i shared and tell me if it looks good
on your screen.
 
@darkyen00 nice
looks pretty good
 
12:03 PM
if it's full of uranium, it might be worth it
 
@darkyen00 Why no bottom spacing? It all feels so jammed up when you scroll down
 
WIP
 
You would also probably die from radiation poisoning.
 
a footer is missing
 
room topic changed to JavaScript & Mattress buying: Read this: rules.javascriptroom.com. Before asking inform yourself on the XY problem goo.gl/taIqf | Angular is on topic here stop asking. Don't ask to ask just ask. [ecmascript] [es6] [javascript]
 
12:04 PM
Btw, @darkyen00. Is this just for design, or is the 'concept' of selling dishes something you're actually willing to pursue?
 
@Kippie guess!
 
Also, the dashed borders around some of the images infuriate me.
 
@darkyen00 did you get rid of that initial debug thing which took a lot of time to load?
 
how do I detect a string like "123a %" using regex?
 
exactly like that
 
12:05 PM
/123a %/
ezpz
 
I even tried insertBefore..still I am getting <h1> below the list O.o
 
@Kippie my new task at new workplace
where we are selling things.
 
no, it could be any number followed by letters and space and special characters
 
@SweetWisherツ shh...
 
@BenjaminGruenbaum so I have to check wether the string ends with "|" or not. If not, I need to take the whole string
 
12:07 PM
@JanDvorak why
 
!!>"123a %".match(/[0-9]+[a-z]+\s%/)
 
@AwalGarg ["123a %"]
 
@RahulDesai /\d+[a-z]+ ./
 
@RahulDesai ^ pretty simple
could be improved though
 
I see.
 
12:07 PM
Why \s? Are we expecting something else besides a regular space character?
 
@BeNdErR read it, and practice
 
you may?
 
@Kippie never underestimate the user
 
or rather, always overestimate the user.
 
12:11 PM
or rather
 
Morning!
 
sucks
 
12:12 PM
 
@AwalGarg ??
 
@SweetWisherツ ???
 
@AwalGarg what is this ?
 
@SweetWisherツ what is?
 
@AwalGarg :(
 
12:13 PM
looks like a question mark to me
 
hahahahha
nailed it.
 
see the link to which I replied
 
Error 522 : Connection timed out
meaning something horrible happened
between your connection and the server
simple fix : refresh
hard fix : get a better net
best fix : move to murica
 
it is a null character
the first ascii character
 
best -> shut down the system :P
@AwalGarg ohhh
 
12:15 PM
@SweetWisherツ nope
 
getting a better job will fix, it.
 
Could use some sanity: use text input as textarea
 
@Bangalore i worked for a startup we had 160mbps total bandwidtth with insane low latency
anyways tata
 
12:17 PM
tata
 
hey :)
 
lolzzz
JavaScript & Mattress buying hihahahhaha
 
There was an advertising claim that mattresses double in weight after N years because of dust mites, etc.
where N ~ 8
 
gimme protip for buying mattress ples
 
i'm trying this, and does not work... any idea?

    var myDiv = document.createElement("div");
    myDiv.innerHTML("<svg width="300" height="300"><g id="test"><line></line></g></svg>");
    var mySvg = myDiv.getElementsByTagName("svg");
    var myLayer = mySvg.getElementsByTagName("g");

returns "getElementsByTagName" not a function...
 
12:19 PM
Hey @Unihedron :)
again here with jQ issue :/
 
hiya :D
 
Regex related problem: I am working on a tool that tags alphanumeric words with the option selected from right click context menu. I am having issues when group of words are selected with some special characters: jsfiddle.net/rdesai/vzynhtak/14 Try tagging "123b @#$@#$" or "@#$@#$ a"
 
@Julo0sS since when is innerHTML a function?
 
No mattress guide for me then ?
 
12:21 PM
I thought JavaScript was answer to everything :/
 
@Julo0sS Also note, it returns elements, not element
 
@KendallFrey Since jQuery made anything a function.
 
your mom is a function
 
@KendallFrey My mom is an immortal goddess.
Your mom is a class.
 
@KendallFrey ye i noticed, here issue starts on myDiv.getElementsByTagName(""), not on mySvg.getElementsByTagName("") so not related... but thx :)
 
12:23 PM
x->[sin(x),cos(x)]*Infinity
your mom is an infinite circle
 
Since we are talking about MOMS !! can anyone ask there mum for mattress advise
:)
 
@Julo0sS umm, that line doesn't exist
 
@CustomizedName your mom's a mattress
Men keep sleeping on her.
 
ba dum tsss
 
(Am I doing this internet tough-guy thing right, guys?)
 
12:27 PM
@Julo0sS one, innerHTML is not a function, two, that is not a valid string
@SecondRikudo inb4 insert method is public joke ;p
 
@AwalGarg solved :P
 
@Julo0sS :P
 
hey guys can someone help me?
 
@GregoryCh 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.
 
maybe
 
12:35 PM
is it possible that code to be modified for jquery 1.4.3?

http://jsfiddle.net/bz694y19/1/
 
@GregoryCh why?
 
it works as it is.. but it affects badly another module
 
ditch the module?
 
which uses jquery 1.4.3
 
You could play with $.noConflict
 
12:38 PM
how it works?
 
...2 jquery libraries?
 
yeah... better ditch the module
 
that's why I ask for modyfying
 
if the code is not too large and is not too much dependable on jquery, then maybe ditch jQuery altogether. but I think this is probably not what you want...
 
DOn't
 
12:41 PM
code is in different files
 
!!afk
 
this is the issue ->

http://stackoverflow.com/questions/27038548/if-a-div-missing-then-hide-an-other-div
 
12:56 PM
ok it solved
 
1:12 PM
what do you think about that :
function hasClass(ele,cls) {
    return ele.className.match(new RegExp('(\\s|^)'+cls+'(\\s|$)'));
}

function addClass(ele,cls) {
    if (!this.hasClass(ele,cls)) ele.className += " "+cls;
}

function removeClass(ele,cls) {
    if (hasClass(ele,cls)) {
        var reg = new RegExp('(\\s|^)'+cls+'(\\s|$)');
        ele.className=ele.className.replace(reg,' ');
    }
}
 
not bad
 
after add/remove classes, unnecessary spaces no?
 
true...
meh
 
no consequences...
 
IE can suck it
 
1:14 PM
^^
that's the point
 
cache all the things!
 
@JanDvorak ele.className.match is not a function... ! oO
 
what's ele.className?
 
a html element
 
it shouldn't be
 
1:20 PM
"ele" is html element
 
document?
 
var eles = containerdiv.getElementsByTagName("label");
for(var i =0;i<eles.length;i++){
    if(hasClass(eles[i],'myClass')){
        console.log("found class");
    }
}
@JanDvorak no idea? i'm doing something wrong?
 
does the element have any class?
 
yes, it always has one class
but
it's something like "myClass" (with no spaces)
but this should not be a problem there
 
Maybe it's a host object instead of a string? Try /.../.exec
 
1:32 PM
console.log(eles[i]) gives this :
<path class="path" d="m700,200 l-100,0 l0,100 q100 0,100 -100 z" stroke="red" fill-opacity="0.1" fill="yellow" stroke-width="1" y="200" x="700">
 
@Julo0sS shouldn't they be labels???
 
@towc labels was for the example :)
i didnt copy/paste the code
 
ok... just make a fiddle somewhere
 
@AwalGarg 178.62.199.87:8000
 
@darkyen00 AwalGarg is afk.
 
1:33 PM
muuuuuuuuuuuuuch faster ?
 
ok i will, but before, can anyone tell me why i don't have the "closing tag" of my "path element" when i retrieve it with .getElementsByTagName?
 
It's a debugger feature
 
ok
@towc @JanDvorak here it is : jsfiddle.net/97f8gcL7/1
 
className: SVGAnimatedString {...}
 
@JanDvorak ?
 
1:46 PM
Interesting...
Just coerce to string before regexing
 
@JanDvorak "coerce"?^^
 
transform
 
!!tell julo define coerce
 
sorry and I'm not even at work to fix her
 
@julo coerce To restrain by force, especially by law or authority; to repress; to curb.
 
1:48 PM
will be in a few hours
ohhhh, just slow.
ok then. nvm.
 
@rlemon just wake up man
 
@JanDvorak eles[i].getAttribute("class") gives the correct value i'm looking for...
 
That's ugly
 
@JanDvorak lol i know x)
 
hey can anyone help me with one of my jasmine test case
0
Q: jasmine test case for Restangular within a function

Alex ManHow to write jasmine test for Rectangular for a scenario like as shown below script $scope.addEmployees = function(employeesCopy) { var emplyeeList = {employees : employeesCopy, department : getDepartment()}; Restangular.all('getEmployees').post(emplyeeList).then(function(employees) ...

 
2:01 PM
@JanDvorak you mean something like .outerHTML?
 
@NishantMendiratta 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.
 
@JanDvorak return (paths[n].getAttribute("class").match(new RegExp('(\\s|^)'+cls+('(\\s|$)')))) ... any better idea?
 
Yes. Just coerce el.className to string ;-)
 
xD
@JanDvorak when i'll understand what you mean maybe i'll be able to do that... ;P
 
2:13 PM
!!tell julo google javascript coerce to string
 
I am to buy a matress. is there much difference in comfort between a 590 and 640 springer?
Has any one ever used GeoLocation tools? Do you know why between the tools the results are so very very varied?
 
Perhaps because they use different resources?
 
Well, I guessed that much, but can I assume there is no accurate way? I mean, I know IP's change, companies change buildings, buildings get built/taken down etc but, I chose an IP at random 92.54.178.133 and this is some where in the UK, or Scotland and is 3 companies (not including the names of the ISP)
 
There is no link between IP and location, except that different IP sets are allocated to different groups. The only way to correlate a single IP with a single location is a database, and those are usually not too accurate, and rarely identical
 
2:25 PM
hmmmmm I see
So how do Lead Forensics do it then?
 
Does one of the companies happen to be MDNX IP Engineering?
 
I think that's the ISP
 
One option would be to take the last routing step with known location
 
@Jan, what do you mean? What is the last routing step?
 
as in tracert
 
2:28 PM
I know what tracert is! It's the tool that lets you hack Google!
 
I have used that before
normally to find out why a non dedicated VPN failed ha ha
interesting IDEA
idea
 
@JanDvorak ok, then i can't use addClass/removeClass with this kind of object... (String "coerce" ;) seems faulty with +=...)
 
I really like codecademy
 
why?
 
@JanDvorak jsfiddle.net/97f8gcL7/17 (with or without "this" does not change anything...)
 
2:34 PM
Its a great learning place. Started learning javascript since yesterday and well, the good thing is I learned the basics such as variables, comparisons, booleans, for loops, functions
 
Why did you come to tell us?
 
I actually came for something else, but thought id mention it just in case there is a novice like me
So I came for a simple question.
If I wanted to only find an exact match for the name "Daniel", how would I do that with the existing code? jsfiddle.net/xr2brm59
 
user2620028
Anyone know what happened to Hawins username? lol
 
@Demorus var hasMatch = text.indexOf('Daniel') !== -1, because, lazy.
 
@HatterisMad ?
 
user2620028
2:40 PM
His name is now someDoge lol
 
user2620028
Jhawins' username is now someDoge
 
He's turning into Abhishek darkyen
 
so how does one go about buying a nice mattress?
 
user2620028
i saw it this morning and started laughing my ass off because i thought someone did it to him
 
2:45 PM
@RoelvanUden like this? jsfiddle.net/xr2brm59/1
 
@HatterisMad Lol
 
user2620028
@Sippy i know right sebastian
 
@HatterisMad Sipbastian*
 
I need something to do....
maybe learn some more c++?
maybe watch a movie?
maybe kill someone's family and their dog?
maybe start a revolution?
 
@towc maybe contribute to some open source project :P
 
2:56 PM
@RoelvanUden as?
 
Roel van, it does not work
 
I dont know what you find interesting, but there's tons of stuff you can do xD
 
probably no serious open source project needs my help
 
@RoelvanUden if you go here and add your code you will see it wont find only the name "Daniel" but will also capure other words that start with D
here the full code. You can paste it in the upper link to see jsfiddle.net/xr2brm59/1
 
@Demorus If you wanted to get all instances of daniel?
 
2:59 PM
That is what it says: Think about how you might fine-tune this program to make sure it only finds exact matches for your name.
so only Daniel instances
ignoring Denis, daniela, Danieleto or whatever :D
 

« first day (1496 days earlier)      last day (3446 days later) »