« first day (1440 days earlier)      last day (3512 days later) » 

12:17 AM
@copy hi
 
 
1 hour later…
1:29 AM
Somebody TS?
 
Can't, at work
Kinda sucks being on a different sleep cycle to North America sometimes :(
 
Yeah :(
 
sucks working with such people too
 
Ouch, I bet
4AM conference calls and all that
We work with a remote team in Poland sometimes. Don't know how my PM does it.
 
We work with a team in Tajikistan
Our scrum meetings are at 7:30AM
I fondly remember when they were at 10:00AM
 
 
1 hour later…
2:58 AM
$('p').html('<span class="stars">'+parseInt($('input[name=amount]').val()/60)+'</span>');

For these score ranges I get

241 300 5 star
181 240 4 star
121 180 3 star
61 120 2 star
0 60 1 star


But I need this result.Is it possible?


300 and above -5 stars
200-299- 4 stars
199-100 -3 stars

Here is the fiddle
jsfiddle.net/agg0a60m/4
 
3:13 AM
hello
 
@pipja 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 a little problem with duplicate event
and I'm a total newbie at JS
can anyone give me some hints on how that can be solved?
 
 
1 hour later…
4:39 AM
0
Q: How to reduce the amount of white space appearing until next set of images gets loaded as user scrolls down the page?

user2839497I've written some jQuery code and manipulated some CSS code to hide the images contained in <div> tags when the page loads for the first time or if user refreshes the page. If you go to the following URL http://smartrebate.eywaharvest.com/html/Smart_Rebate_Homepage_22_09_2014/ you will come to k...

 
5:04 AM
can anyone see if fiverr.com is up?
 
@AwalGarg isup.me
 
@SomeKittens already checked there. they say its up... doesn't seem like that though.
oh wait
it changed
huh, so the mega market is down eh?
and its up again
wtf?
 
A website that doesn't work? Impossible!
3
 
5:33 AM
@SomeKittens I wonder if it's been filled yet
 
You should apply
 
Way ahead of ya. Reckon they'll pay for relocation?
 
oh, of course
you're a lead
 
Can you imagine seeing that on the CV of a candidate? ..., Lead intern, ...
 
I'd bring 'em to the phone screen just to hear them explain
 
5:42 AM
Could actually make for an interesting interview, especially if they were aware of how ridiculous it was :P
 
6:02 AM
anybody here knows angular ?
 
a tiny bit yes
 
6:54 AM
!! hey
 
@samitha That didn't make much sense. Use the !!/help command to learn more.
@samitha That didn't make much sense. Use the !!/help command to learn more.
@samitha That didn't make much sense. Use the !!/help command to learn more.
 
!!/help
 
@samitha Information on interacting with me can be found at this page
 
!!tell samitha sandbox
 
@samitha You know, there was this funny idea once upon a time that people were supposed to test out commands and "play" in the sandbox
 
6:59 AM
hi all
does anyone here use Bootstrap? :)
 
yeah @Julo0sS
 
Let me guess, you have a question about Bootstrap?
 
noooot at all
i have a question about js/jquery :P
(&related to bootstrap)
:D
may i leave the thread link here?
 
My sources say no
 
i'm looking for a way to set dynamic height of my table relative to my rows height... as i'm using bootstrap, my rows' height changes if i reduce my browser... so, if the row height increases, the table height must increase too...
& ! i have some hidden rows, when i make them appear, their height should be taken into account for the table height too...
what's the tag to make my link smaller pls?
 
7:05 AM
Just append some text
But since it's already closed, we can't help you
It's against the law
 
:D
@copy if you have some time... (to waiste?) you can have a look at my problem too heh :D
 
I have a angular problem
with radio buttons
 
I'm sorry, but I'm just here to harass noobs
You can wait for a good soul like @m59 to wake up though
 
yeh i noticed you were here to harass... :P
 
I have a function like this,

myObject.click(function () { }); I want click event to do whatever it has after delay of 2 seconds
but not sure how :/
 
7:13 AM
setTimeout("yourfunction",time);
no?
 
@CustomizedName that won't do anything... its "onclick"
 
hi Awal! :D
 
oh hi :D
 
i'm back with another weird problem man :D
btw, Regent helped me solve the previous one :)
 
okkk... have we talked before?
 
7:14 AM
@AwalGarg its working already :/
 
ye we did, but you seem to have a bad memory... :P
@Cus
 
@Julo0sS hmm, I have just woke up again so maybe... so, what is the problem? I would love to help if I can.
 
@CustomizedName : Object.on('click',function(event){setTimeout('$("objectToHandle").functionToAppl‌​y()',1500)});
 
@CustomizedName as intended?
 
7:16 AM
is it ok?
thanks :D
 
> i want this table to display 10 rows, AND, if i reduce my browser width, the height of the rows increases
this is already automatically done by the browser
 
yeh, my english is not perfect... i know it is done by browser, but, when it does, the table becomes scrollable... i don't want this... i'd like my table to become higher...
+ i have hidden rows
 
how to false other radio values when true one of it ?
in ANGULAR
 
when i click in my 1st column in a visible row, the next row becomes visible... and, at this moment, the hidden row height should be added to the table height...
kinda hard problem again...
idk how to set my table height' relative to its rows height...
 
i set a function(click event) for a input field with file type
 
7:21 AM
@JanakaRRajapaksha :)
 
@Julo0sS becomes "scrollable"? It would be scrollable only if required. And if it doesn't scroll, you won't be able to see the remaining portion. That is how it should be done.
 
then it doesn't open file select window
 
@JanakaRRajapaksha can you make a fiddle ?
 
@samitha sure
 
@Julo0sS Also, I think I now understand what you want... just set overflow-y: hidden for the table. And a max-height attribute too. That will do the job.
 
7:25 AM
@AwalGarg Well, if i do that, at the moment when i have only 2-3 rows into my table, my rows become VERY tall, even if there is not many data (they adapt their height to the table height), i want the table to be 10 "default" rows tall when there are 10 rows or less, and taller if needed (if rows are bigger than default, or if hidden rows are visible +add their height to table height)
 
@Julo0sS don't set height. set max-height.
 
@Julo0sS doesn't seem to work jsfiddle.net/76NNp/65
@AwalGarg it was not working as intended but was doing the click as it should
 
@CustomizedName Y U NO SEE CONSOLE????
 
too sleepy for console, alerts gonna wake me up
 
@AwalGarg : hard to understand i think... i would explain easier in french^^ :P WELL : i want my table to display 10 rows, 10 visible rows, there is 1 hidden row for each visible one. when the rows are resized, taller than default, when i reduce my browser, the table should become taller than 10*default row size. AND, if i make one of my hidden rows appear, its height must be added to the table height... i need something that sets table height dynamic but only if needed!
 
7:30 AM
@CustomizedName your console has the answer to your question.
 
I understand
 
@Julo0sS fiddle pls
 
I figured it out now
am just too sleppy
 
@AwalGarg : ATM i have only 2 rows in my table, so until my window becomes very small and the rows very high, i don't have the problem, but when i'll have 10 rows, that will be a problem
how to fiddle with "bootstrap" theme in??
 
@Julo0sS jsfiddle.net/Lduc3epz here. Bootstrap is enabled in there :)
 
7:42 AM
@AwalGarg : Here, there are 12 rows : i want the table to display 10 only, and i'd like to have jquery.tablesorter.pager to handle the hidden ones... btw, it does not work exactly as how my app does... but have a look : jsfiddle.net/Lduc3epz/4
 
kk, lemme have a look
 
@AwalGarg i have tablesorter into my project... i tried to add .pager to it... but it does NOT work... it just causes me problems... :(
@CustomizedName : IT WORKS ! jsfiddle.net/76NNp/74
 
@samitha it works on fiddle but in my file it doesn't work
 
@JanakaRRajapaksha so problem with the jquery versions ?
 
i think so, when i remove jquery script it works. but check with same version machan
 
7:57 AM
@AwalGarg back in 90 minutes, thanks for help
 
8:07 AM
@samitha jquery script eka nathuwa load weddi wada karanawa machan
it prevent default when call click event?
 
ahh ? @JanakaRRajapaksha you mean now there is no jquery file ?
you mean without a jquery file in the </head> it's working ?
 
@samitha yup
 
!!tell crazy
 
@samitha Invalid /tell arguments. Use /help for usage info
 
8:10 AM
!!tell grrrr
!!tell samitha sandbox
 
@samitha You know, there was this funny idea once upon a time that people were supposed to test out commands and "play" in the sandbox
 
!!wiki angular js
 
AngularJS is an open-source web application framework, maintained by Google and community, that assists with creating single-page applications, which consist of one HTML page with CSS, and JavaScript on the client side. Its goal is to simplify both development and testing of web applications by providing client-side model–view–controller (MVC) capability as well as providing structure for the entire development process, from design through testing. The library works by first reading the HTML page, which has embedded into it additional custom tag attributes. Those attributes are interpreted ...
 
!!wiki zuckerburg lol
 
8:24 AM
@JanakaRRajapaksha The Gods of Wikipedia did not bless us
 
ha ha
!!wiki zuckerburg
 
@samitha The Wikipedia contains no knowledge of such a thing
 
!!wiki zuckerberg
 
Zuckerberg is a German surname meaning "sugar mountain". Notable people with the surname include: Mark Zuckerberg (born 1984), American programmer and internet entrepreneur, founder of Facebook Randi Zuckerberg (born 1982) American psychologist and entrepreneur, former marketing director of Facebook == See also == Zuckerberg, medieval hill for Motte-and-bailey in Kreis Paderborn, North Rhine-Westphalia, Germany a mountain in Braunschweig, Lower Saxony, see Bebelhof (Braunschweig)...
 
!!fb 101298786543
 
8:26 AM
@JanakaRRajapaksha That didn't make much sense. Maybe you meant: fa
 
!!tell JanakaRRajapaksha help
 
@samitha Don't be annoying, drop the @, nobody likes a double-ping.
@JanakaRRajapaksha Information on interacting with me can be found at this page
 
@CapricaSix thats little bit dissapointed lol
@samitha i changerd the click event to change, but still it is not working
why the heck is this
 
8:48 AM
Hello everyone
 
@CapricaSix Zuckerberg gang
 
Hi. Is there a bootstrap friendly layout engine in js?
 
wat
 
@deostroll What do you mean by layout engine?
 
templating engine like handlebars?
 
9:00 AM
some library which uses a kind of markup or language to layout content on the web page...
There would be some web app which would send instructions in the language the library understands...the library does the rest...
hope I got my point across...remotely similar to how a telnet session sends out characters to the other end to output...
 
I'm jobless! yay!
 
@FlorianMargaine sadface!
or is that sincere?
Did you quit, I mean?
 
I quit my job yesterday and is starting the new one monday :)
 
oh, cool
congrats then
 
9:12 AM
@FlorianMargaine Is this the same job you mentioned about a month ago?
 
yep
and I've finally quit my current ex job
 
Cool beans. I wish you luck then.
Don't be too hard on the programmers that don't know what they're doing :)
 
I should be at a company where programmers know more than me
 
yay yay for the mars mission :D
 
Hi all, can anyone please explain me state concept when using angularjs ui-router. I'm so used to with url concept and I am not getting how this state concept works even after looking at demo.
 
@AbhishekHingnikar github.com/electerious/Lychee
it doesn't have the ML properties, but the design is nice
 
10:20 AM
posted on September 25, 2014

For at least a year now I’ve held to the theory that the huge uptake in Chrome we’re seeing on the mobile web is mostly due to Samsung using its own version (based on Chromium 28) in its high-end smart devices from the Galaxy S4 on. Yesterday Krijn started tweeting about mobile stats he had, and it turned out he was willing to share. He gave me data on about 100K mobile and tablet

 
@AwalGarg Backkkkk :D
 
@Cerbrus Look behind you
 
@AwalGarg : did you look at the fiddle? any idea? did you already used jquery.tablesorter.pager ?
 
10:50 AM
@FlorianMargaine It look super sleek
does it syncs through android and distributably though ?
 
11:06 AM
halp imma nubz how to check if variable is undefined?
never mind I found out == undefined thanks!
 
@Unihedron ===
 
@PatsyIssa Thanks for the tip!
 
11:21 AM
@BadgerGirl: Noone's there
 
i have a problem using $.inArray(value,tab);
 
@Cerbrus :(
I'm at Uni, already skipping class.
 
$("body").on('change','#titleNew',function(){
var titles = [17,18,19,20,21,25,26,27,28,29,33,34];
if($.inArray(($(this).val()),titles)){
alert("TAB : "+titles);
alert("VAL = "+$(this).val());
alert("IN ARRAY!");
$("#myDiv").hide();
}else{
alert("TAB : "+titles);
alert("VAL = "+$(this).val());
alert("NOT IN ARRAY!");
$("#myDiv").show();
}
});
$(this).val() is correct... but seems like the comparison is wrong...
any idea? :)
 
0
Q: How can I establish a secure connection to a websocket on localhost?

Oliver SalzburgWe have an application which we run on a POS terminal, that should receive data from an application running on the same machine, while displaying content from a remote site which is loaded over HTTPS. To receive the data from the local application, we want to use websockets, which is working fin...

Please help :P
 
@Julo0sS: if($.inArray(($(this).val()),titles) !== -1){
 
11:32 AM
@Cerbrus Hi Cerbrus, thanx :)
 
Hello Guys My global variable is not being set .Cansome one help me out with this jsfiddle.net/Vicky_Anand/x00t70dt/4
I provided a fiddle
 
> The $.inArray() method is similar to JavaScript's native .indexOf() method in that it returns -1 when it doesn't find a match. If the first element within the array matches > value, $.inArray() returns 0.
> Because JavaScript treats 0 as loosely equal to false (i.e. 0 == false, but 0 !== false), to check for the presence of value within array, you need to check if it's not equal to (or greater than) -1.
 
god dammit javascript
you had one job
0 is false, but 0 is also not not false
wtf
 
um
it's been that way since punch cards
 
@TomW: How do you suggest to equal 0 to false in both type and value?
 
11:34 AM
I have no suggestion, I'm just ranting
 
@Cerbrus : you rock.. BUT, when i check 17 value (first of my array), it returns me "NOT IN ARRAY"
 
arrays start at 0, not 17
 
> you rock.. BUT
 
^^
 
There's always a "but" :-/
 
11:36 AM
lol
 
@KendallFrey In some languages, arrays are indexed starting from 1, which solves that problem too
 
the query, finally is :
if ($.inArray(17,[17,18,19,.......])!=-1){alert("IN ARRAY");}else{alert("NOT IN ARRAY");}
 
that causes problems
 
does not work :(
 
I hate 1-indexing
fucking english
 
11:37 AM
The main reason indexes start at zero is some C tricks where arrays weren't really arrays
 
@Julo0sS: I can't reproduce that.
 
well, I can... and idk why...
^^
 
!!> if (([17,18,19].indexOf(17))!=-1){console.log("IN ARRAY");}else{console.log("NOT IN ARRAY");}
 
@Cerbrus "ReferenceError: $ is not defined"
 
:P
 
11:38 AM
Oh, Caprica doesn't know jQuery
 
@Cerbrus "undefined" Logged: "IN ARRAY"
 
They should meet and sex and have a retard kid
 
found it...
you know what went wrong?
 
these f*c*ing "''''''"""""'''' QUOTES
^^
 
11:40 AM
PEBKAC
 
what does PEBKAC mean?
^^
 
!!urban pebkac
 
@KendallFrey pebkac problem exists between keyboard and chair
 
... -.-'
i have another problem, that is NOT located between my chair & my screen...
i asked Awarg few hours ago
opened a fiddle
but seems like he's gone
(gave up?)^^
:D
does anyone here know how jquery.tablesorter.pager works? can't get it working with my table...
 
*chirp*
 
12:07 PM
possible duplicate: stackoverflow.com/questions/5961000/… (first one found, I'm sure there are many out there) — rlemon 23 secs ago
someone wanna find a better dupe?
3
Q: JavaScript adding a string to a number

SineLaboreNihilI was reading the re-introduction to JavaScript on MDN and in the section Numbers it said that you can convert a string to a number simply by adding a plus operator in front of it. For example: +"42" which would yield the number output of 42. But further along in the section about Operators it...

hrm
this is close
 
12:30 PM
rebooting. be back in a few minutes.
 
@AwalGarg May no one say that three.js creator doesn't have a sense of humor
 
:D
 
lol
 
back.
 
> The only reason IE is getting better is because the team who develops the official Microsoft site got fed up of IE tantrums and somehow convinced the IE developers to wake up.
lol how?
 
@AwalGarg can you help me fix small Jquery error ? related with saving the scroll position
 
btw, that lab experiment was in the first few google search results for "online ie6 emulator" ;p google knows how to make fun of the old man :D
@Vikram hello, do I know you?
oh wait, jquery? no please.
 
No but i saw you active here so I thought I should ask you . @AwalGarg
Actually related with Jquery Mobile
 
@Vikram that's fine. but I don't use jquery, sorry. And yeah you should not ping random users or someone can take that in a bad way... just a quick tip.
...
!!are you alive?
@CapricaSix doesn't look like it, miss. @rlemon ^
 
12:43 PM
@AwalGarg Okay bro thanks anyways and I will keep the chat rules in my mind
 
!!ban
!!the fuck is wrong with you?
 
well... I... you are rudish @rlemon
nvm
 
I'm rude?
for asking a bot what is wrong with it?
 
1 min ago, by rlemon
!!ban
ahh leave it
 
yea?
checking the ban list
what is wrong with that?
 
12:45 PM
@Zirak FF update broke me
TypeError: CHAT.user is undefined


...on)[0]),this.site=this.getCurrentSite(),this.user_id=CHAT.user.current().id,this...
 
ahh I see the fix
 
anybody watch house of cards?
Don't give me any spoilers, just starting season 1. I can tell I will enjoy this show
 
codes updated. cap won't be for a bit. I can't see right now
fml
 
good job, rlemon
 
Hi. Does anyone have idea how to dynamically changed texture in three.js? When using following code?
 var loader = new THREE.OBJLoader(manager);
		        loader.load('3d/femchar.obj', function (object) {

		            object.traverse(function (child) {

		                if (child instanceof THREE.Mesh) {

		                    child.material.map = texture;

		                }

		            });
 
12:49 PM
@Neil Awesome show. You'll enjoy it.
 
I don't like shows that are predictable
 
Does anyone here have experience with codereview.SE?
 
This show promises that anything goes
 
It's not predictable, it's clever
 
Wondering whether I should expect feedback in the next hours or not
 
12:50 PM
I have my idea where things will go, but I fully expect to be wrong about it
Zoe just got fired from the Washington Herald and hooked up with Frank
 
lol, yeah. It's still on level 1
It goes up to about lever 10
Shit gets fucked
 
It was like that for breaking bad if I recall well
Things got complicated
 
Yeah, similar trajectory
 
also that was a great series
There used to not be many really good shows like that
You can tell the level of writing has really gone up
I think the first real show that was well-written was desperate housewives
That was a clever show
 
Yeah
It's amazing what writers can come up with when they're not catering to the lowest common denominator
 
12:55 PM
@monners You mean the people who watch all 10 different CSI shows?
 
I mean the people that watch all the things I don't :P
 
I probably watch things that you don't D:
 
@monners I think someone wised up and realized that most american families don't watch movies most of the time
So the good writing was applied to tv shows
I could never get into CSI
 
Before Desperate Housewives I think the last really well written shows were Battlestar Galactica and Caprica (the latter of which got canned)
 
I tried, and it was interesting, I'll admit, but I couldn't bring myself to watch another
 
12:59 PM
@monners Obviously, since caprica got canned after only one season, the public didn't really see it as a great series
 

« first day (1440 days earlier)      last day (3512 days later) »