« first day (1095 days earlier)      last day (4075 days later) » 

00:00
never understood the difference between POST and PUT... for me you use PUT when there is an update
PUT is when you literally PUT something. Like, you have a blue vase, now you have a leopard rug. Or you have nothing, and now you have disco pants.
And POST creates a new resource
No, POST never creates Sorry I'm stupid
00:02
lol okay
could you give an example with PUT and POST using routes?
I think the main difference between PUT and POST is that PUT is predictable. If you PUT with X as data, you'll have the same result, whether you do that once, or 4 times, or 400 times.
Mondays bring out the worst in everyone
POST may have side-effects, like incrementing or whatever.
PATCH also has the predictability trait, but again, it discusses a subset - you had a blue vase, now you have a pink one.
00:15
I like it better when @Zirak was talking to himself
@Zirak Shmiddty is afk: hometime
Well woop de friggin doo
@Zirak I want to do a PR on the bot, and improve how substitute /get_matching_message works, so that it can work across multiple rooms. One idea is to hold x amount of messages in an array for each room. Do you think this and/or using the memory module would be overkill?
Though keep in mind, I'm still figuring out how it works, which I will do before even trying
00:56
@Shaz That picture is an optical illusion. I keep thinking it's a woman's spread legs.
01:09
@rlemon i found the beehive in one of my worlds. :)
ill be on later, taking a break
s/be/bee
Kit
Kit
02:09
Hiya @Zirak. Caprica's gone missing again, so they sent me to enquire.
Nicely. cracks knuckles
Anyway, they'd really like to play some more hangman. So. Yeah.
02:30
!!hello
@RyanKinal That didn't make much sense. Maybe you meant: help, tell
03:25
!!welcome RyanKinal
@RyanKinal 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.
!!welcome ninjaecho
@ninjaecho 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.
@penis 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.
03:40
!!welcome JonSkeet
@JonSkeet 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.
Nobody's on TS :(
You all should play Realm of the Mad God
user3762851
04:12
1
Q: How to apply fadeIn and fadeOut effect to a select control based on parent and child checkbox selection?

PHPGeekI'm having a select control which should be hidden when the form loads. I'm having a parent checkbox and a group of child checkboxes. What I want to achieve is unless the parent checkbox or at least one(or more than one) of the checkbox from the child checkboxes is checked the Select control shou...

how could I optimally refactor this conditional block? gist.github.com/anonymous/6986422
04:31
@NJInamdar 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.
04:52
@ZackGraber 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.
Is it possible to open / expand the select box (select tag) by clicking on other element (a parent element) using just css/css3?
05:47
@AbhishekHingnikar I want to ask you a question.. (because I think you are good in css).
whose performance is better?
CSS or javascript?
@YoPlait 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.
If I am using :after, child selectors, and some other stuffs in css..
@Mr_Green I want to ask you a question ?
what is better C++ or javascript :P
05:48
javascript, because I know that
I don't know c++
please tell me man
besides the fact they have different cases
well with javascript you will block page rendeirng
and it gets really hard to mantain
and your sc++ should be fine
what the heck did type :-|
@Mr_Green don't worry you selectors should be fine
and :after
is basically injecting an element at the end
which is NOT in the markup
06:04
So, I should prefer CSS always?
I mean the things which can be done using just css must be done using just css
right?
@AbhishekHingnikar
@Mr_Green things which can be done using just css ought to be done using just css
that is what exactly I think
but my colleagues think not to use css to create pseudo elements or child selectors
they prefer javascript
@whitehat101 CSS3 is turing complete
@phenomnomnominal it's not. You can't loop
06:12
and you can't store infinitely much state
@JanDvorak Help me to decide what to use for better designing and also performance
css or javascript?
@NimeshVaghasiya 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.
@Zirak Yes, you told me, but I didn't have time to test
elo all
!! sandbox
06:17
You know, there was this funny idea once upon a time that people were supposed to test out commands and "play" in the sandbox
@CapricaSix ok
@whitehat101 yes
and sorry @Mr_Green i am completely out of my head atm
alright
I am confused because I am good with css
but my colleagues here preferring javascript
which is annoying for me
@Mr_Green do you have a gun ?
no
I have shotgun :P
06:20
Send them that then ^
@Mr_Green in general, CSS has higher performance, while JavaScript is more flexible
flexible in a sense?
Do you mean cross-browser?
it can do more complex tasks
@whitehat101 u sure on that brah ?
JavaScript is a General Purpose scripting language
CSS is for styling but is turning compalient
06:26
Actually, I know when to use JS and when to use CSS but what I am asking is "for complex stylings should I use JS or CSS?"
for example, there are many nested li elements, and I want to point to the second nested li which is 4th in order
Should I go with css or js for this?
I prefer CSS
but not my colleagues :( (they are head members)
then quit ur job and find better one
So, i should prefer CSS then
I will go to strike here
@AbhishekHingnikar sure they have different purposes, but for equivalent tasks I'd expect CSS to be more nimble, if CSS can accomplish the task. Is this not so?
go for css
if it can
06:48
hi all can anyone help me on this :-
0
Q: Waves animation using jquery

Rakesh ShettyI want to show waves animation of loud speaker. There are 3 waves coming from a loudspeaker. I want to show like this :- 1st wave will be shown in 1 sec, 2nd wave will be shown in 2 sec, 3rd wave will be shown in 3 sec, and then all waves will be disappear and it will start again. I have t...

ajax part not working
?
that... indentation is a mess
jsbeautifier to the rescue!
$(document).ajaxStart(function () {
    $("#loader").hide();

    //sync part
    $(this).on(":submit", function () {
        alert("hi");
        $.ajax({

            url: "../Controller/post.php",
            success: function (response) {
                alert(response);

            }
        });

        //sync part end
    });

});  @JanDvorak
1 message moved to bin
protecting people from eye cancer since 2013
06:54
@samitha you never cancel the submit. Thus, the ajax won't have a chance to be sent
@JanDvorak is a genius :D
lol
$(document).ajaxStart(function () {
    $("#loader").hide();

    //sync part
    $(this).on(":submit", function () {
        alert("hi");
        $.ajax({

            url: "../Controller/post.php",
            success: function (response) {
                alert(response);

            }
        });

        //sync part end
       return false; // Thats what he says
    });
});  @samitha
also, I think the event should be submit, not :submit
besides....
alert("hi") will always cancel the event regardless .. hence pls don't use it
console.log is for the cool kids
06:56
@AbhishekHingnikar wat?
hi. any one working n jquery mobile with mvc?
Hopefully not, the less JS on mobiles, the better.
@OctavianDamiean depends. If the page load is slow, javascript can be faster
Our metrics have shown, the less JS (especially JS that will trigger repaints and reflows) the better.
It's not a load time question but an overall performance question.
@JanDvorak that code not working
with no errors
07:01
@samitha you're not handling the error case.
Basically, rtfm.
It's not like those things would be super secret, they're well documented.
@JanDvorak alert cancels all event flow :-/
its abug! i can't believe u never came through it
07:18
Seriously...
0
Q: "Failed: Disk full " whenever downloading anything

dilip yadavI am a linux user.When ever I start downloading anything,it says Failed: Disk Full. Also i saw my File System folder is almost full. How do i overcome from this problem?

Please vote to close this one.
done. three to go
@JanDvorak This might be cruel, no ?
only if taken seriously
@JanDvorak think about the level of stupidity there...
but... given this question, it's very possible
07:21
but, @abhishek put a crown to it :-)
@JanDvorak what ?
Here is your solution open your terminal sudo -i then cd / and then rm -rf *Abhishek Hingnikar 58 secs ago
what's the correct phrase?
@JanDvorak , @dystroy am just trolling xD
There's a protection, I think. But I'm unsure. Can somebody test ? Please ?
@dystroy if dilip yadav doesnt comment back it worked
if he does then fuck :'(
07:23
there is, but I think it's against "wipe the root directory" rather than "wipe the current directory"
anyways, it would be less cruel if I removed the f flag... done
yep. rm -rf / is prevented, but rm -rf * is allowed
Upgrading to 13.10 now. Wish me luck.
@OctavianDamiean may your computer burn :D
even more cruel: cd /; sudo rm -rf *
07:31
@JanDvorak thats exactly what i asked him to do -_-
oh
sorry
sudo - i # sudo mode
cd / #goes to root
rm -rf * / #removes everything from root
xD
he'll get so much free space !
Well, you could always pass --no-preserve-root
1
Q: Realtime audio/video manipulation in Titanium SDK

Abhishek HingnikarI am aware that ti.sdk provides native tools to record and play audio files , but sometimes its extremely unfeasible to record the whole file and then read it using the FileStream [ extremely ugly ] and that is not even supported on Android As far as i know. My current code does the above mentio...

Why are my questions always un-answered ?
@OctavianDamiean too obvious
07:33
Wait, you're trying to prank someone?
ah, right
@twitortat Did you found anyway to use a canvas as stream ? as in process the video and then send it ? [i might be missing something simpl]
I mean don't these spec guys think of the obvious use cases ?
ze u can edit a video on canvas
ze u can't send it though
send the whole friken screen
but can't filter a video and send it saving loads of bandwidth and processing power
he ultimate solution is
Stream the video on all clients [ use canvas there :-| ] what a genius solution!
@AbhishekHingnikar the / at the end of that line is not necessary and may even trigger a message.
@OctavianDamiean urgh i dunno why i typed the / in the message
i never typed it in prank xD
hopefully he didn't try
07:38
I am praying he did try
yes i have became cruel
You know that you should never pull such pranks on new Linux users.
You should never try unknown commands
especially if you aren't told what they do
Yea but ruining the user experience of a new Linux user and possibly making him abandon it is the worst of all.
You're not educating, you're potentially harming the Linux user base.
ok... I should have included the -i flag
rm -rf * will remove everything in the current directory. I assume that's what you want? — Jan Dvorak 7 secs ago
does this count as repentance?
@focus 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.
07:51
Hello i have this javascript for expand collapse a gridview.
<script type="text/javascript">
$("[src*=plus]").live("click", function () {
$(this).closest("tr").after("<tr><td></td><td colspan = '999'>" + $(this).next().html() + "</td></tr>")
$(this).attr("src", "../minus.png");
});
$("[src*=minus]").live("click", function () {
$(this).attr("src", "../plus.png");
$(this).closest("tr").next().remove();
});
</script>
The problem is that generates comma symbols along with old values on every postback. Have you ever heard about this issue?
!!tell focus format
@focus Format your code - hit Ctrl+K before sending and see the faq
live is deprecated. Use on
colspan = '999'? Seriously?
can you help me please, what do you sugest?
the selector itself is slightly fragile
are you sure you want to delete the next row when minus is clicked?
af for whethe commas come from, you should replace HTML concatenation with DOM manipulation
07:58
I have used this solution but doesnt help me
The javascript i am using is the same from the above solution
@Shea memory is long-term memory, what you want to keep between sessions
@Kit Well, I won't be the one hosting the bot soon. And if one of you wants to do it, you can always make your own version (or just run it, it's a bookmarklet)
@JanDvorak How can I modified using DOM manipulation?
@focus stuff like after, append, clone and such
08:06
@JanDvorak Can i post my question and help me with a solution?
show your attempt
@BenjaminGruenbaum Congratulations. Those are hard to get :)
You got yours like a year ago.
@BenjaminGruenbaum Probably not, as I only started playing SO around may 2012. But I don't know where to find the age of the badges.
08:21
> Awarded oct 29 '12 at 3:02
You answer a lot more than me, I only have like ~500 answers and most of them are questions people ping me with or ask in this chat room.
Hum... You were right...
@BenjaminGruenbaum Yes. And I know there is a greater part of shit questions among the one I answer (and when I answer a hard question, I rarely get rep...)
The questions I get pinged with / asked for aren't better than the average question probably :P
There is a fair share of "shit" :P
Yeah, and hard questions yield less rep.
guys, a stupid question again.. :|
Is using "ul > li" is good when there are no further nested li elements?
or should I go strictly with "ul li" ?
It might be faster. But it might also involve more maintenance when you change the HTML. I would use "ul > li" when it's logical that it should not apply to deeper elements. I prefer the rule that is the nearest from the purpose.
08:26
that is what I think.. thanks :)
even I am habituated to use ">"
but my colleagues saying not to use it when there is no need of that to use
I want to explain them
@Mr_Green s/habituated/used/
and if you're making a menu, you need them.
any link? so that I can show them with proof..
@FlorianMargaine yes..
@Mr_Green Where are you from ? "habituated" sounds like the kind of errors a French guy like me would do.
hehe
still learning english..
@Mr_Green try doing this without > jsfiddle.net/qTcMw
08:32
@FlorianMargaine I know that.. I am not offending it..
@Mr_Green you wanted a link to show them proof :)
haha
tell them a stranger on the internet made this for you to give proof
@FlorianMargaine This is elegant. I realize I use js a little too often for my menus.
not that I mean if there are no nested elements
08:32
oh.
well, what happens when they're going to add nested elements?
change all the css?
I know about KISS, but using > doesn't make it any harder to reason about
(quite the opposite, actually)
@dystroy heh
@dystroy I realized a lot when I understood that you could use pseudo selectors on parent elements...
@FlorianMargaine but to be honest, I fact I rarely deploy a menu on hover : it makes the pages harder to port to mobiles
@FlorianMargaine My colleagues are questioning the way I am used to use ">" even when there is no need..
So, I am actually looking for a link
which can describe it as
good coding
just go with what your colleagues are saying
or something else
less hassle
08:35
In fact "a > b" is logically simpler than "a b" which means "a ** b". It just looks simpler because of the syntax, due to history.
and you don't look like an ass
@dystroy true
I mainly do 2 different websites for mobile and desktop though
ergonomically speaking, menu on click is better
(and not on hover)
Touch screens killed this interesting and rich interaction that was the hover. We'll have to wait for the next gen devices, which will detect the point your eyes are pointing...
@FlorianMargaine but I want to make my colleagues realize that using "ul > li" is best practice.. isn't it?
@Mr_Green it's not necessarily
08:39
@Mr_Green it's slightly better, that's all. And not always. I think like Florian that you shouldn't take the risk to look like an ass just for that
@richardaday 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.
yup you are right.. ok
Keep your forces for those cases : stackoverflow.com/questions/19363390/…
Not to interrupt but why is it slightly better? I am just curious. li should always be a child of ul?
I'm in geek nerd mode
a screen is only there to make me look badass
08:42
At first I thought your colleague was incredibly black
for privacy reasons :P
@mikedidthis that, yes
@mikedidthis but otherwise, it's more performant to only look for direct children.
and sometimes, it's just required (in case of nested menus)
@FlorianMargaine ahh ok so ul > li would be be quicker than ul li. As CSS selectors read right to left, is it the same with jQuery, if you know.
@mikedidthis I do. But the CSS engine just has to look for direct parents of li instead of going all the way up in the DOM for each li
@FlorianMargaine got it. So good practice / performance would be to use > if your specifying the parent > child
@mikedidthis most of the times it doesn't matter
honestly, just use it when it makes sense
08:49
will do. More curious then anything else.
@FlorianMargaine fedora ?
@AbhishekHingnikar no, Ubuntu. But who cares, it's awesome wm.
@FlorianMargaine i was just wondering :o
btw nice u remind me of someone
it's my company's pc, everybody got ubuntu
they have an ubuntu repository with some custom packages :)
awesome D:
ps nice headphones
08:53
company's headphones
and they're standard cheap headphones
@Mr_Green ">" makes sure you want the style to be applied to the direct child
and hence if you have nesting (in future) or wanna manage the code its logically better :P
also its a lil bit faster but meh modern browsers are fast enough to parse it with ease
0
Q: Disable / Deregister all JS from all plugins

luckyrajivHow can i disable all js files from plugins and load one single js file which i have combined and compressed ? Is there any way ?

13.10 in 2 days
@FlorianMargaine You'll install it immediately ?
I didn't look for the review
Is it another bag of bugs or not ?
09:01
@AbhishekHingnikar Abhishek Hingnikar has 1354 reputation, earned 0 rep today, asked 13 questions, gave 29 answers. avg. rep/post: 32.23. Badges: 0g 12s 22b
I should start being nice :-) and get some rep
@AbhishekHingnikar well, you should start answering
yeah i have felt some really bad habits of mine
:-(
@AbhishekHingnikar perhaps more time answering questions and less time in chat....
@dystroy didnt see this: "well, you should start answering"
I am disheartened/ Dont want to venture into the questions section. I either get down voted XD Or I don't understand the question. Not just because of lack of experience on my part... also the fact that alot of the questions just dont make sense...
@Cool2beblue yeah i know
i also need to start pushing code to github to dead projects
like wiki-voice which i was really proud to start and go somewhat far but then got a friken job
and now i end up working ~12 hours - ~15 hours
09:13
@Cool2beblue When a question really doesn't make sense, or you think the asker is too stupid to understand the answer, or is a wall of text, or is simply based on a lazy badly structured code, go away, don't lose time.
@dystroy ;) Gotcha
It's good to answer smart hard questions from time to time : you don't get a lot of rep but you get some and, more importantly, you're less disheartened
setInterval(function(){ $("embed").each(function(i,embed){ var src = this.getAttribute("src"); if( src.indexOf("ads") != -1 ){ this.parentElement.removeChild(this) } }); }, 400);
i got pissed of embedded ads :-|
i wonder why my adblock aint working on xat.com
maybe they changed the definition of removeChild
@dystroy ubuntu releases are way smoother since they went on a CI system
13.04 had no bug (that I experienced)
however, I don't use unity, so I only upgrade to get the latest versions of everything else
@dystroy so yeah, I'll probably install it right away
1
Q: Replacing content using AJAX when clicking a link

David LetticeI want to use AJAX to replace the contents of a div. Although the application is fairly complex, I have tried to dumb it down in isolation so that I can get the basic concept working first. For now, I just want to replace a div as per the PHP file... <?php $id = $_GET['id']; if ($id = 1) {...

:(
09:32
anybody tell me how can i create array like arr[1] = ["abc","def","ghi"];arr[2] = ["zzz","yyy","xxx"]; in javascript
Array literals, [...] can have other arrays in them - you can put any value.
So, to put an array inside an array, just nest.
actually i have to create dynamically
one by one
Then exactly like you showed.
in first array then second
yes
but my query is how can i create arr[1]
...exactly like you showed
arr[1] = something
09:36
and how to add another values in that
@Zirak i thing array push can help
like "abc","def".....
I don't really understand your problem. Your code will work
but after that i am also updating that array that is what my biggest pro is..
!!> var arr = []; arr[0] = ["abc","def","ghi"]; arr;
09:37
@Zirak [["abc","def","ghi"]]
tada
then how can i update values?
this adding values are all dynamic
!!tell John mdn Array.push
okay let me try this
`var test = [];
var key = 1;
test[key].push("abc");
test[key].push("cde");
alert(test);`
test[key] needs to be an array
i tried this but giving error Uncaught TypeError: Cannot call method 'push' of undefined
You need to push to something
@FlorianMargaine meh, it's just looking at how underscore is built long enough
@Zirak oh? I thought it was a question about call/apply
this is not working.....
`var test = [];
function add(k){

var key = k;
test[key] = [];
test[key].push("abc");
test[key].push("cde");

}
alert(test);`
please sugest
09:44
You're not calling add?
yes i am calling it onbody load
So what's your definition of "not working"
I am currently working on uniqueness of entry ..there are roles and subroles so these sub-roles must be unique so i am saving sub-roles onfoucusout one by and side by side also checking current value with others ...so what is this functionality is....
do you alert before or after the body onload?
<body onload="add(1);">
where shall i alert here
09:49
YOU SHALL NOT PASS !

« first day (1095 days earlier)      last day (4075 days later) »