« first day (1640 days earlier)      last day (3310 days later) » 

11:09 AM
-7
Q: i do not know how to program a regular expression

mulder21cI've tried many ways to try to solve the problem, but I do not know... my rule is as follows : allow only numbers ,alphabat, !, @, #, $, % should contain at least 1 lowercase alphabat should contain at least 1 number uppercase, !, @, #, $, % are optional string is between 6 ~ 12 cha...

 
hi ladies
 
THE
@Sheepy changed it to selectall and it worked
@FastSnail troll alert
 
-2
Q: Open tool tip by selecting any row of a table

sujitI just want to know how to open a tool tip ,if I clicks on any row of a table using html and angular JavaScript .

> asking for code
 
@Cerbrus voted to close
 
THE
I have a string like this "g10"

I want to get it's 2nd char, any idea
 
11:15 AM
var str = "g10";
var ch = str.charAt(1) //2nd char
 
@THE Don't use w3schools
4
@FastSnail Don't use w3schools
 
@SecondRikudo why?
 
!!tell FastSnail urban w3schools
 
@FastSnail w3schools a site created by webdevelopers whose only purpose is to misinform other webdevelopers in order to keep their job
 
THE
.
 
11:25 AM
w3schools has lots of misinformation and wrong examples
 
w3fools.com :P?
 
@SecondRikudo@CapricaSix ohh i newer new that .hate them
 
@BenjaminGruenbaum doesn't exist (in its original form) anymore
 
THE
Selecting all rows from a table who have there 2nd td's div's title = "a=1 b =2"
 
THE
11:27 AM
$("#table tr td[1] div")... not sure what next
here;s an example row
oh also I want to clone all these rows and paste them into another table, i think this will work...

http://stackoverflow.com/questions/3504499/how-to-copy-table-row-with-clone-in-jquery-and-create-new-unique-ids-for-the-con
 
yoo! anyone here use soundcloud and mind testing my new app please?? mixmatic.io
 
THE
@PhilHudson sorry, me no like music
 
@THE :'(
 
what you guys use as git client?
I am on windows
 
Currently, Tortoise SVN
(It works with GitHub.)
 
THE
11:31 AM
@RahulDesai same here
 
would that work with git?
 
The GitHub Client started giving me problems lately.
 
I am facing problems too while using source tree
 
With Tortoise SVN, I never had any issues.
 
not github
only git
 
11:33 AM
that I dont know
 
@RahulDesai Except you’re using Subversion ;P
 
@poke I dont care as long as I can pull/push to GitHub ;P
 
;)
 
:/
 
11:35 AM
@Mr_Green GitHub for Windows :-P
 
@Mr_Green command line Git?
 
(Or Visual Studios integrated Git)
 
@RoelvanUden the latest update for GH client has issues, I had to uninstall it
and trash it
 
@RoelvanUden How can I use github's tool to keep my project in git versions?
 
@Mr_Green MSYS2 Git or regular git build for windows
 
11:37 AM
@RahulDesai you joking right? :P
 
@Mr_Green nop
 
@Mr_Green why?
commandline git master race
 
@BartekBanachewicz yeah checking the same now.. thanks
 
@Mr_Green It says some DLL file is missing. Upon reinstall it still gave me that message. So I switched to Tortoise SVN.
 
@BartekBanachewicz never tried and it seems too old
 
11:38 AM
@Mr_Green (both are commandline)
@Mr_Green it what
 
@Mr_Green In Git versions? You can just select branches and tags and whatever you want
 
@RoelvanUden they are not github projects but my companies projects which are not on github.. so I don't think I can use github.
I am not sure how much I am making sense here..
 
@Mr_Green The GH client is just a fancy GUI, it uses Git underneath, and it doesn't have to push to GH at all. You can use your own Git servers etc.
 
ok will try
 
all those fancy gui tools break at some point
and IMHO they encourage less clean workflow
 
11:43 AM
Woot! 2k rep bitches! Only took me three years.
All your edit are belong to us
 
@RoelvanUden And as a bonus it's slow as balls
 
@monners :)
Congrats
 
fucking hell I'm here for almost 4 years
 
@monners lol
 
@ivarni Never noticed.
 
11:43 AM
but I didn't participate for the first year or so
 
@BenjaminGruenbaum 3 years and a bounty to get him the last 25% of the way there :D
 
@SecondRikudo Thanks for your help man. Really appreciate it. I'ma try to keep this momentum going
 
@monners The way from 2k and 3k is relatively short
 
rep is just so easy to get (at least 200 a day). I spent yesterday answering non-promise things since I'm trying to leave the tag to bergi and jfriend (now that bergi knows promises really well and I feel like I can trust him with it)
 
And you can always go for another bounty
 
11:45 AM
@SecondRikudo Well, If I've learnt anything from this it's that there's still an audience for well-written answers
 
Questions get like... 7 upvotes for nada. It's so easy to answer stuff people understand.
 
it's much easier to get rep in anyway
 
I just got tired of trying to find questions I even wanted to answer
so stuck around 5k now, and probably will be for the foreseeable future
 
I got to 1000 and just kinda gave up trying to get quick answers in to questions that were too specific
Plus, you know, I've learnt a lot since then :P
 
11:46 AM
at least after a while rep sort of just starts trinkle in on itself
 
Nowaways I only answer questions I come across as "worthy". I still try and seek them out but sometimes I wonder if my bar is set too high.
 
@monners The secret to rep is answering with a short, sweet and correct answer
Then (ab)using the grace period to improve it gradually
 
@Qantas94Heavy that's what I did yesterday, I just answered the first 8 questions I could and were on topic
 
Most of my answers have 7-8 edits on them, without a trace.
 
In the end it's just a number, but still... It feels good
 
11:47 AM
The fact that my highest upvoted answer by a far margin is an RTFM answer doesn't help motivation either :)
 
The real secret to rep is canonicals.
 
@monners It's not just a number.
The key here, in my opinion, is privileges.
 
You can get more rep over time for 5 canonicals than from 50 regular questions/answers.
 
I want more people with editing and closing and deleting privileges
 
I know how to get rep, just that I don't really feel like wasting my effort on dirty tactics for a number.
 
11:48 AM
I want more people who can help moderating crap
 
Because you'll always get people readily posting crap
 
Crap I see a lot of that lol
 
No one above 20k cares too much about rep but helping with the site is important.
Answering questions is much more important than closing bad ones.
The only problem with bad questions is that they take away time that could be spent on good ones.
 
11:49 AM
I burnt out of the review queues a long time ago, some kind of feedback would be awesome, like "you've helped close X questions", seeing my votes expire is not motivating
 
@ivarni I solved that problem by focusing my attention to Mjolnir.
 
I only do the low quality questions queue. Close queue isn't really important.
 
@SecondRikudo I'm far away from having a Mjolnir
 
Get a gold badge in something, then only review duplicate questions of that tag
99% of votes are guaranteed to land a closure.
 
And if I ever got one it would likely be in Angular tag and I don't like Angular any more so... :)
 
11:50 AM
@ivarni Start working towards another tag then :)
 
@SecondRikudo I might at some point
 
I started with just the PHP tag not that long ago, and I made the resolve to get HTML, CSS and JavaScript
I have all 4 now
 
It takes a while though, 1000 votes isnt it?
 
@ivarni Yup
Canonicals man
Canonicals land you so many votes.
 
figured out how to use github client
it is slow as hell
 
11:51 AM
I'm considering whoring on jQuery to land a Mjolnir there too.
 
@Mr_Green told you :p
 
But for canonicals either you have to make them yourself or find one which doesn't already have 20 answers on them -- that's the hard part really.
 
@ivarni do you prefer any thing else? :)
 
Ok, bed time. Peace
@SecondRikudo Thanks again.
 
@Qantas94Heavy No it's not
Not really, anyway.
 
11:52 AM
@Mr_Green Command line master race here
 
@monners bye :)
 
great
 
@Qantas94Heavy Here's a canonical for you
Write a canonical about promisifying Ajax
I have yet to see a robust XHR function that uses Promises, without jQuery.
 
@Mr_Green How is it slow? o_o
 
not sure.. it is just slow
it is still going on
I don't know what it is doing :/
 
11:55 AM
Canonical idea: Write a canonical question and answer about promisifying XHR for a 500 bounty from me. Ping me for details. (Preference to folks under 10k)
5
 
Or … spend your time doing something actually useful
2
 
THE
select all tr who has a div with title
 
@copy Useful is subjective.
 
Really, that's not so simple given that you'd probably want to handle cancellation, and providing your responses in a way that's going to be useful.
 
@Qantas94Heavy That's why it's a canonical.
 
11:57 AM
Even the current fetch draft has several issues that aren't really resolved.
 
@SecondRikudo I can do that :P
Can't we make it community wiki?
 
@BenjaminGruenbaum Feel free. Although, please let less privileged (pun intended) folks to have a go at it first.
Part of the goal is to add to the high rep users pool
 
Well that would be a good idea, except I don't think community wiki posts count for gold badges(?)
 
Hello is there any way to programmatically click on a link on my page using javascript?
 
@AhmedZiani 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.
 
11:59 AM
@Qantas94Heavy They don't. But @BenjaminGruenbaum already has a golden badge.
@AhmedZiani Why?
 
@SecondRikudo i want use in my code
 
@AhmedZiani Why do you need to simulate clicking a link?
 
So question: Is "canoncial" a concept that exists on SO or is it just culture-speak for a questions that's target for a lot of duplicates?
 
@AhmedZiani: why do you want to use it in your code?
 
It's possible, but it's almost always a bad idea.
!!tell ivarni define canonical
 
12:00 PM
@ivarni: it's nothing official, just a question that's intended as a general dupe
 
@ivarni [canonical](http://en.wiktionary.org/wiki?curid=73631) Present in a canon, religious or otherwise.
The Gospel of Luke is a canonical New Testament book.
 
Eh, wrong definition.
 
So I write a new Gospel and get a golden hammer? Got it :)
 
@ivarni "canonical" is not a word SO invented
 
@SecondRikudo nor for a bad idée
 
12:02 PM
@SecondRikudo anyone doing it and wants to amke a canonical should gist first
 
can you tell me ??
peals
please
 
@AhmedZiani Not before you tell us why you're doing it.
There's almost surely a better way and "not for a bad idea" is not very convincing.
 
Just to increment the visit of my site
 
How is that not a bad idea?
 
@Kippie better then popup
 
12:07 PM
@AhmedZiani Who keeps track of the number of visits to your site?
You basically have two options
You either cheat yourself, or cheat someone else.
If you want to cheat yourself, just change the number of visits server side or something
If you want to cheat someone else, don't cheat someone else.
4
 
What's the point of boosting site views if the views are fake? It's like buying your own product to boost the sales...
 
Besides, "someone else", in this case probably has things in place to detect such abuse anyway
 
@SecondRikudo i don't cheat someone
 
@AhmedZiani In that case, we may have misunderstood.
Please don't.
 
12:12 PM
@BramDriesen This is clearly an XY problem
Please don't feed it.
 
Holy shit @SecondRikudo 0_o I have more rep than you wtf
 
ooooh right
my bad
 
@AhmedZiani I just want to understand, why are you trying to boost your page views that way. What kind of views are you talking about?
Page views in Google Analytics? A counter on your own site? What?
 
@Second Rikudo I want to redirect visitor of the school without popUp
I mean website of my school
 
12:17 PM
@AhmedZiani Okay, you want to redirect... where? To a different page on the same site?
 
@SecondRikudo not on the same site , other site
 
@AhmedZiani That sounds malicious
 
THE
Or … spend your time doing something actually useful

Not many things on this world are so useful
 
Guys, can anyone please explain me why this fiddle works? jsfiddle.net/0Lxh8fvz/1 The condition in while loop is >2 so it should show 2 li's. Am I missing anything here?
 
@Second Rikudo Why malicious ?? i found some think stackoverflow.com/questions/902713/…
 
12:23 PM
any idea why this not working in socket.io 0.9.17

this.io.sockets.in(room_name).emit(event, data);

nothing emitted to client
 
@AhmedZiani please explain what you are trying to accomplish.
 
@AhmedZiani Malicious because I go to visit site A, and end up visiting site B
Imagine if you try to go to google.com but something decides you actually wanted to go to bing.com
Would you not suspect a virus immediately?
 
@Second Rikudo But i can do that with header()
 
@AhmedZiani Sure you can, but that's not the point
Why would you want to redirect the page to a different site under the nose of the user?
What is this new site you're redirecting the user to?
 
@Second Rikudo It's ads of the school
 
12:29 PM
What about an <a></a> tag? when people click on the add it will go to that page
Do you actually have access to page A to edit? so you can change stuff to redirect to page B?
 
@Bram Driesen So what do you think ?
 
THE
$("td[data-column='"+columnNumber+"']")

what if there are 2 data attri
 
@meagar thanks for throwing some light :)
 
@AhmedZiani can you explain yourself a bit more please. Do you have acces to page A to edit stuff? Change code etc...
 
12:39 PM
1
Q: How to trigget error on fs.rename command if file already exists?

ErikI have the following code that moves files from one directory to another: var fs = require('fs'), oldPath = 'firstfile.txt', newPath = 'temp/firstfile.txt'; fs.rename(oldPath, newPath, function (err) { console.log('rename callback ', err); }); Is it possible to trigger error if n...

^ actually somewhat interesting
 
-1
Q: detect target container of drop

RikardI'm doing a drag and drop and when I drop my element I need to know which container received a new element. But when I drop something on a container I get only the draged element as e.target... How can I know which container received my dragged element without adding anything to the HTML? jsFid...

anyone could help me understanding this? ^
 
12:55 PM
@Rikard There is nothing in a mouse event that tells you where you are dragging some element over. Your drag element is completely independent of the drop targets.
 
Why down vote? can you explain to me? — Ramesh Rajendran 3 mins ago
I love how he has 5k
 
@poke I understand the dragged element is child of another element, so e.target will not work... so how to do? check mouse coordinates and compare with container borders?
/me wonders how this is done normally
 
So it's not a single task. it is a multi task. any way i will ask more money from my client from your answer. — Ramesh Rajendran 45 secs ago
lol
 
@m59 I don't :(
 

« first day (1640 days earlier)      last day (3310 days later) »