« first day (972 days earlier)      last day (3973 days later) » 

2:00 PM
@Anonymous 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.
 
@MadaraUchiha wouldn't $0 be the first match?
@Zirak you like regex.. where are you
 
@rlemon Dunno, wouldn't $0 match the whole string?
In PHP $1 matches the first brackets
 
Dunno. :P
 
$1 is the first group, and $& is the whole match
 
Just making sure JavaScript behaves the same
 
2:01 PM
what is your sample input.
we can test it
 
A comment on Stack Overflow with links to questions.
 
user652649
i guess $0 doesn't exist in javascript @MadaraUchiha
 
I'm referring to the script that changes links to questions to full [title](link) format
 
user652649
and $1 is the first brackets content
 
(which I recommend you guys to install if you haven't already, it's awesome)
 
30
Q: SE Comment Link Helper

Tim Stone About This userscript automatically converts raw Stack Exchange question URLs into the form [title](link) before submitting comments by grabbing their titles from the API. This is similar to conversion done natively on posts, and is in response to this Meta request. The script also tries to ...

There's the full source if someone wants it
 
user652649
"abc".replace(/a(b)(c)/g, "$0 x $1 x $2") prints $0 x b x c @MadaraUchiha
 
So basically, it does match (^|\s), which now puzzles me as to why would someone replace by that...
Maybe to remove any http:// stuff they have?
 
yes $0 does not exist.
 
@Anonymous really?
 
2:07 PM
!!> "8472693271657769".match(/(\d){2}/g).map(String.fromCharCode).join('')
 
@rlemon "T\u0000\u0000H\u0001\u0000E\u0002\u0000 \u0003\u0000G\u0004\u0000A\u0005\u0000M\u0006\u0000E\u0007\u0000"
 
screw you bot
 
What in the hell is (^|\s) supposed to match?
I really can't make any sense of it.
 
@OctavianDamiean Beginning of the string, or a space
^ = beginning of the string, | = or, \s = space or newline.
 
Well, yea but how does that make any sense?
 
2:08 PM
@OctavianDamiean Letter or "end of string" if I'm not mistaken
 
That's what I'm asking :D
 
@canon you want just 0-9a-Z?
 
@rlemon mhmm
 
@MadaraUchiha I'm seriously puzzled. :P
It just doesn't make sense. heh
Especially the part about capturing that match, whatever it is.
Why would you want to capture that?
 
they change direction randomly or when facing wall or when on path with u :P
 
2:15 PM
@canon can't remember how I did it now :/
var n=Array(58).join(",").split("").concat(0,2,3,4,5).map(function(e,i){return String.fromCharCode(i+48); }); // 57-63, 87-93 need to be removed.
something like this
 
@Darkyen That's... pretty awesome.
Challenging :-)
Legitimately, instead of arbitrarily.
Well, I guess "as well as"
 
@Darkyen make them not 'run' but 'jump' into position - then make them fade black to red.. on full red they jump
as score increases, the jump delay is shortened
 
Ooh! Maybe that kind of food "unlocks" after a certain score?
 
Hi All
 
Or maybe it's random which kind you get?
And they're worth different scores!
 
2:18 PM
well are we trying to make a snake game ... ? lol
might aswell add node.js and possibility for snakes :$ I mean ryan's snake battling against mine for survival :D
 
javascript isn't loading an external file-
<script src="some/path/mine/hi/js/jquery.min.js"></script>
isn't working........
but when i give googleapis jquery URL its working
 
that'd gotta be good :$
 
i want to load from my local comp
 
Then you're doing it wrong
 
someone should make snake but in the pacman level
 
2:19 PM
Try adding a / at the beginning
 
watz dat mistake? @RyanKinal
 
@RyanKinal ./ not /
 
yes, i added it-
 
@udaysagar I dunno. Where does your page live? Where is your script?
 
/ will become root right ?
 
2:20 PM
@Darkyen Yep. But maybe that's the issue.
 
<script src="/some/path/mine/hi/js/jquery.min.js"></script>
its actually the above one-
 
@RyanKinal dude :$
 
Also, his current path will go from ./ anyway
 
will u play a node.js based snake ever ? lol
lets make one... tonight... properly :D lol
 
@Darkyen add socket.io and make it multiplayer!
 
2:21 PM
why is that not working
 
1) I'm going to a concert with a pretty girl tonight
2) I have a SlickText API to create by tomorrow afternoon
 
just absolute path it
 
@RyanKinal so wont lol
 
@udaysagar NEED MORE INFORMATION
 
http://yourserver.com/resources/jQuery.js
 
2:21 PM
have fun with the pretty girl
slicktext can wait ;-)
 
I think my business partners will murder me if I don't get this API done
 
srsly... just don't make it a relative path
done and done
 
xD
@RyanKinal is the girl relative ? no
then your partners wont mind , especially if ur party ends with a breakfast ...
 
lol
 
;D lolol
 
2:23 PM
Ryan: Do you like strawberries or blueberries better?
Pretty Girl: Strawberries, why?
Ryan: Just wanted to know what type of pancakes to make you in the morning.
 
rofl
 
@canon yea I can't remember how the fuck I did it... i'm opening it up as a challenge.
 
@rlemon lol
 
2:26 PM
@RyanKinal what more do you want?
 
Hey all
how are yall doing?
 
Challenge: var n = [0-9a-zA-Z] produce an array of 0-9a-zA-Z values shorter than writing them out "...".split("");
 
6 mins ago, by Ryan Kinal
@udaysagar I dunno. Where does your page live? Where is your script?
 
how to do tags?
 
2:27 PM
you install my userscript
 
14
Q: Chat Easy Input Tools - Provides keyboard shortcuts for common text formatting commands

rlemon About Provides keyboard shortcuts for common text formatting commands, reducing the dependency on mouse usage. Current version does not have a configurable set of hotkeys but later versions will. How to use. All of the following commands are run if the user has focus in the chat input area. ...

 
and then what
 
instructions are on the page
 
2:28 PM
How to troll with CSS: cursor: progress
2
 
lol
that is GENIUS!
 
I just gave this-
<script src="/var/www/SimpleForm/public/js/jquery.min.js"></script>
<script type="text/javascript">
$(document).ready(function() {
alert('hey');

});
</script>
and I am sure that the above file exists....
i can open it
 
@udaysagar rlemon said use http://yoursite.com/assets/jQuery.js why wont you?
 
but, i just want to know why this absolute path doesnt work..
 
@udaysagar whats the file called that this code is in?
like index.html / index.php?
 
2:31 PM
its jquery.min.js
sorry,
its signup.phtml
 
@Leighton 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.
 
even bettar
*{
  cursor:progress;
  display:none;
}
 
@udaysagar ok and what's the link to signup.html
 
Anyone here good with jsV iews? I have a certain problem I am crossing with it.
 
@Leighton ask the question and find out :)
 
2:33 PM
i work on zend framework
so, i deal with phtml files
 
I need to validate the data the user inputs, and either ok it, to update the data-link for the view, or stop the data-link view from updating it. Can't seem to figure out how.
 
its PHTML
 
@udaysagar whatever.... whats the link
 
lol
 
phtml ?
poop html ?
 
2:34 PM
@Leighton what are you using?
 
actually, signup is the action
i call form zend framework
and this phtml file runs
did you get me? @Connor
 
@udaysagar get the webpage up in your browser, whats the link
 
I am using ketchup for validation at moment. No helpers for it.
 
uday if you are trying to make a login work on local without a server it will never work
 
sorry, its localhost
 
2:35 PM
@Leighton what are you validating?
 
why @Darkyen
 
when I try to catch it in "propertyChange" event triggered after they leave the text box, I can't stop the views from updating.
 
0
Q: Packing images into a spritesheet

nateI would like to reduce the size of the spritesheet I am loading by only loading the specific sprites I need. Is there a way to crop and splice images at runtime using javascript? Creating separate spritesheets for each level is not ideal, as that would mean lots of repeated sprites.

 
@udaysagar what is the link ............!
 
Oh, just our own regexp's for each field.
 
2:36 PM
sorry, @Connor i dont understand what you mean by link? URL?
 
@BenjaminGruenbaum now if you can make the tab icon the loading icon it would be even better. lemonmeme.com/demos/awesome.html
 
@udaysagar yes
 
its localhost
 
I need to interrupt right between when jsViews updates all links. I do not want to have to write any code into jsViews. Is this possible at the moment?
 
d=document;s = d.createElement("style");s.textContent = "*{cursor:progress}";d.body.appendChild(s)
Someone golf this
 
2:37 PM
do you want the ip address link or what?
@Connor
 
@udaysagar so why don't you try <script src="/public/js/jquery.min.js"></script>
 
@rlemon LOL, pretty funny
 
@BenjaminGruenbaum dunno if you can make it smaller.
thats pretty much what I do for Killit
javascript:function C(a){var b=a.target;"IMG"===b.nodeName&&(b.src="http://i.imgur.com/AM3Ae.png");B();a.preventDefault();a.stopPropagation();return!1}function A(){d.body.insertBefore(s,d.body.firstChild);d.addEventListener("click",C,!1)}function B(){d.body.removeChild(s);d.removeEventListener("click",C,!1)}var d=document,s=d.createElement("style");s.textContent="body * { cursor: crosshair; }";A();;
 
coz, its not working
my absolute path is /var/www.......
i dont have /public.........
 
so why is public in your URL THEN!
 
2:38 PM
So man of steel wasn't bad
 
@udaysagar when the browser is open, what do you have to put in the address bar to physically see the jQuery source file?
whatever that is: that is the value you fucking use man
this is not rocket science.
 
@rlemon thanks
 
@Shmiddty Good to hear. I might actually go watch it now
 
GF is currently watching this on netflix: imdb.com/title/tt1612774
 
i also used fucking file:///var/..... in src=""
but am not getting..
@rlemon
 
2:41 PM
@udaysagar find a new hobby man.
 
Why not just set a style on document.body and set the cursor with css?
 
where is the absolute path for jQuery
and what is the absolute path for the html file
/var/www/html/index.html
/var/www/html/js/jquery.js ???
 
@rlemon got some antidepressants here if you need some
 
if you are on webserver.com/foo/bar.html and you request /js/jquery.js it will look in webserver.com/js/jquery.js if you ask for js/jquery.js it will look in webserver.com/foo/js/jquery.js
 
2:43 PM
@udaysagar Give us the absolute path, and the path from which you are trying to access it
 
if you are confused about relative links... don't use them
 
@Neal What's not a real question about it?
If anything, it's a duplicate
 
there will always be a public link to the resource
and if there is not: there will never be a relative path to get to it
 
@BenjaminGruenbaum never showed what he tried. Just "I want to do this"
 
@Papasmile 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.
 
2:45 PM
@Neal He took all the effort to make these drawings with dimensions. The solution is a single CSS rule. If anything it's a duplicate.
 
I drank about two liters of soda at the movie, because merika. My bladder hates me
 
Have you tried anything yet? sometimes it's more helpful if we can see your current thought process on how you think this should be solved, then we can steer you back on track, or show you the small mistakes. — rlemon 15 secs ago
 
@BenjaminGruenbaum I can make things in paint all day and night... it does not mean I actually tried to code and look up how to do something.
 
Comment > Close vote without reason.
maybe he has code and is ashamed to show it because of how bad he thinks it is
 
@rlemon you might want to jump in here... stackoverflow.com/q/17105968/561731 but i think its already beating a dead horse...
 
2:46 PM
you don't ask any questions...
 
@rlemon @Neal If the user isn't here for the first time and has attempted to answer some questions himself. I don't close for effort.
 
@BenjaminGruenbaum that was Comment (greater than) Close vote without reason
I agree with you
 
@eazimmerman i have used /var/www/SimpleForm/public/js/jquery.min.js and this itself is the absolute path
 
I wasn't saying you aren't. I even upvoted your comment there. I just pinged you since you were related to the conversation.
 
anyhow, i ll look at it 2mrw....
 
2:48 PM
/SimpleForm/public/js/jquery.min.js ?
 
Hmmm i put the wrong link before @rlemon this is the dead horse: stackoverflow.com/questions/17110665/html-css-play-gif-avanced
 
well that is a different story all together.
questions like that get closed naturally as well. no need to push the cv
 
CONGULATION : all I thanks you all for decreasing my reputation... YOU ARE SO COOL :D the small 85 I get is now 67.. in less that 5 minute. So cool I love you all. Kill me ? kill me ? make it down to 10 or maybe 5, even 2 until 0.. You are so egocentric, Im trying to Up in my life, learn new thing chat with people about programming, Now thanks to your help I ll be not able to join the Stackoverflow's chat to talk with people about programming, you are so friendly I love you. Impossible to up in the society with people like you #TrueStory — user2372006 48 secs ago
wth...
 
can you clean this up please?
I flagged a single comment, hopefully that will draw mod attention
 
2:53 PM
how much rep do you need to use chat
 
@Connor 20 i believe
 
@user2372006 also, you can join the chat with 20+ rep. chat.stackoverflow.com/rooms/17/javascript want to pop in here and we can discuss the issues with your question and how you can easily turn this around to earn rep + get your answer. — rlemon 18 secs ago
if he comes in here be nice, and explain to him the issues with his question and that if he just tried anything before coming here or done a little research he wouldn't have had such a shit show
 
^ don't delete this
Neal stop fucking jumping the gun on deletes
 
And why is that?
 
2:55 PM
give the OP the chance to correct the question
 
I am not jumping any guns I waited, then i saw all the inane comments...
inane (not insane)
 
> closed as not a real question by Lazarus, Kyle Sevenoaks, Adrift, Andrew, Neal 15 mins ago
 
hi guys ! why this didnt want to work for me ? jsfiddle.net/3PETK/1
 
you sure waited a long time
 
@rlemon The question was up for 15 minutes before it was closed.
 
2:55 PM
mods will clean up the comment, let him fix his question
 
Then he has had 15 minutes to improve it
 
if he doesn't fix it then close it
 
the first works good when click on forget password , but when i click again on login here to back again it wont work
 
@rlemon you can't flag for deletion :P
 
@rlemon thanks you and decrease all of my post :) Im love it, If I had formuled it differently You would help me ? so it's about words ? nice so nice... and you tell that im a child ? ok. But Seriously look your reasoning.. it's like you are a rich and you shit on poor people.. just because I miss "I have a problem" and a question in my post. — user2372006 17 secs ago
WTF
 
2:57 PM
@BenjaminGruenbaum flagged the comment
not the post
 
lol. I did too
That entire conversation is not constructive at all.
Some mod should really clean it
 
and I even tried to turn it around
and I didn't down vote him
 
cool, gordon is on
 
@rlemon yea... he did not take that opportunity...
 
w/e, he thinks we're all attacking him now because he was attacked in comments.
I agree with the latest meta post - SO got really circlejerkish
 
2:59 PM
how to make the button login here will back the login form with the first values ? jsfiddle.net/3PETK/1
 
@echo_Samir if we ignored you 3 minutes ago please don't spam
 
@rlemon link?
 
at least space it out.. I can see the same link on the page twice with the same content.
 

« first day (972 days earlier)      last day (3973 days later) »