« first day (832 days earlier)      last day (4341 days later) » 

17:00
In the input text box, they have to enter their first name.
document.forms.foo.onsubmit = function(e) {
  var text;
  if( this.elements.uname.length === (Math.random()*10)|0 )
    text = "Yes";
  else
    text = "No";
  this.parentNode.insertAfter(this, document.createTextNode(text));
  e.preventDefault();
  return false;
};
<form name="foo"><input type="text" name="uname' /></form>
I see.
Let me check how that works, I'd return.
it likely won't but it's something to work with
@AmaanCheval 25.
@FlorianMargaine Nah. You're 29
17:02
@FlorianMargaine I thought you were younger than 29
@SimonSarris I'm 25 ffs
with my beard, people think I'm 30 though.
im 30 bro
17:04
The only way to prove your manliness.
or w/e you call that.
Okay, back to the question.
@FlorianMargaine masculinity
actually, manliness is correct.
Yeah, it is
If the length of their name == the random number, a div will show: "You're awesome!", or else: "No."
I have used Math.random for generating the random integer.
@Novice this is all you get
(function() {
    var form = document.forms.foo,
        input = form.elements.uname,
        label = document.getElementById('output'),
        random_number = Math.random()*10|0; // random number between 0 and 10
    form.addEventListener('submit', function(event) {
        label.textContent = input.value.length === random_number ? 'Yes' : 'No';
        event.preventDefault();
        return false;
    }, false);
}());
HTML structured like so:
<form name="foo">
    <input type="text" name="uname" />
</form>
<span id="output"></span>
Yes, works.
no go read up on why
Nice -- I have to learn a lot.
It works on a console. How about a webpage?
17:11
aaaah!
getElementById?
@Novice do you know of jsfiddle.net ?
its a great place for trying things and sharing results
@SimonSarris I see that.
@SimonSarris don't recommend jsfiddle, it's always dead
go for tinkerbin
@Novice for instance if I wanted to show someone how to make a rectangle in HTML Canvas: jsfiddle.net/UuqDk
@FlorianMargaine but tinkerbin has an ugly logo!
and that matters more than downtime
17:15
@SimonSarris That is a good resource, thanks.
Is there a way to save those as web pages, or is it manual?
well, there's update and fork buttons at the top to save new ones on jsfiddle
yeah tinkerbin isnt bad
but you have to manually pull the JS/CSS/HTML out to make your own page later
I like codepen as well
Nice
17:18
@Loktar I love codepen BUT I constantly clobber my work there!
and then cry for days
what do you mean?
lol
when I want to try something
so I update the pen, then the old pen is overwritten, lost forever
ahhh yeah
and then I want to revert, but cannot
yeah that is pretty annoying
jsfiddle has them beat on that
tbh I do my stuff in jsfiddle then port over to codepen and save :P
17:18
I like jsfiddle's /1, /2, and 'reset to base' command
hahahaha
more likely itll get selected as featured
jsfiddle has a lot of wonky problems sometimes though
because when they look at newest pens if it doesn't catch their eye they wont select it
if codepen had versioning I'd be all over it
yeah.. like the server speed issues
17:19
hello
also being able to download all fiddles would be nice
are there any ways that I can request to delete my account
hey @ratzip
hello @Lo
hello @Loktar
17:20
why would you want to delete it!?
I wanna write "Lake"
Rake in Lisp
are there the ways?
idk actually
93
Q: How can I delete my account?

SauronHow can I delete my Stack Exchange account(s) and what happens to content I've posted when my account gets deleted? Return to FAQ index

some times I feel someone in the SO is not that good
17:21
I dont have that option @FlorianMargaine
I certainly do need some text editor like jsfiddle and codepen. They have a cool interface.
@Loktar > If your account has never voted or posted a question or answer more than once
> However, if your account has voted or posted, go here and fill out the form. You can get to that link via the "contact us" section on the site footer.
ah ok
good. Means no one can login as me and delete my account
it sounds lots of reading to do
what is the easiest way to do it
can anyone help
17:24
can I flag for "help vampire"?
@ratzip just like you didn't bother to test the code of your last question you're asking us to read and write an abstract for you ?
I wish I could.
to test what
@FlorianMargaine rake is already make in ruby :P
@ratzip I just had a look at the last question you asked on SO.
17:25
do you think I just write some code in SO?
without testing and thinking about it if I did not specify "I tested it" on the post?
Hello everyone, a question to you, how can I add something to the id attribute of an input text field?
You mean you want to change the id of the input ?
Like the original id = id="dsmeta" and I want to add the length of it to the dsmeta, such like this: id="dsmeta[1]"
No I want to add something to it. @dystroy check my comment above
That's changing it...
crap, what day is it??
OH THATS RIGHT
17:36
@Loktar venerdi
@Casper myElement.id=myElement.id+'[1]';
But it's most certainly a bad idea...
Ah oke, what is the better chose?
@dystroy I created some repeatable fields with javascript for my metaboxes inside wordpress.
@Loktar You have a great music taste...?
lol
17:39
OMG... I never had seen so bad lip-syncing
my goal is for everyone in the world to hear that song.
So everyone else can feel my pain on Fridays when I get it stuck in my head!
Too bad, it's already wiped from my memory (which was easy : I have near Alzheimer memory capacities and I only listened to a few seconds)
@dystroy Any idea ?
@SimonSarris I know. Hence the name. There's also Jake for JS :P
@Casper Ho dimenticato la tua domanda
TND
TND
17:49
Does anyone here have experience with JISON? I need help :c
My name is Jason
Introduced my GF to reddit - now i'm concerned she will get more Karma than me.
hey dudes!
18:05
@Non-StopTimeTravel Time Travel ok, maybe I will quit SO and preparing application to a college, and you can get better questions — ratzip 4 hours ago
why do people get so defensive about shit on SO
@Loktar ho yeah, old hit
XD
hey guys, do you chill on mirc jquery's channel
i think some people hang out in the #javascript on freenode but thats all I hear of
we had a jQuery chat in here before but it sucked and no one who knew anything about jQuery cared to be in there
considering jQuery is js - I would think most people just hang in the javascript channel.
@Darkyen yo - my google chats on my mobile never want to work. so if I ever abandon you again sorry
I get the messages late and with no notifications
@rlemon i abonded you aswell son
i went to sleep without pinging you here :P
bah - just for that i'm going to randomly downvote people on SO to make myself feel better..
@MikeBoutin "mirc"?
really?
Hi guys, I had create some repeatable fields for inside wordpress, to duplicate an metabox, but it doesn't work alright. I can only add an image in the first row, the duplicate ones can't I do anything...

My code: http://snippi.com/s/uiwjlg2
!!/google different between attr and prop
why everyone .attr
I still have to use .attr at work
old jquery version used :(
18:18
ouch
anyone can help me?
I just know most devs don't actually understand the difference between an attribute and a property
so they just toss out whatever works and roll with it until they get unexpected behavior
@rlemon I always try to use .prop and get an error... then facepalms
lol
stoopd jQuery
18:20
!!/tell copy urban pms
@copy PMS A powerful spell that women are put under about once every month, which gives them the strength of an ox, the stability of a Window's OS, and the scream of a banshee. Basically, man's worst nightmare.
@BadgerGirl so stay away for a week?
!!/tell copy nudge 10080 "You are once again safe bro!"
@copy Nudge registered.
@Zirak are nudges stored in localStorage as well?
No, closer.
18:22
if not they should be.
evening people
afternoon
What's with the unicorn on the rules page?
@FlorianMargaine It's Paul Irsh who said he hanging on these irc channels and learned a lot from there
@CBredlow mascot
18:33
ah, okay
@MikeBoutin stick around in here- you'll learn lots.
Hrm, So i'm now playing around with the idea of trying to get QNX4 on my rasPi
@rlemon I know ^^ that's why you see me more often this time
anyone ever tried something like this?
@MikeBoutin he probably said irc, not mirc
Stupid slow wifi
18:37
Hahaha, you gotta love Stargate Atlantis. Elizabeth Weir to some other guy: "Download the data-stream to an unlinked computer with a firewall."
@FlorianMargaine you connect to irc with mirc, for me it's the same lol
old school sh*t
haha XD
@MikeBoutin you connect to irc with mirc
personally, I'm not even on windows
18:38
linux?
mac?
and even on windows I just use xchat
both
linux at work, mac at home
XChat all the way.
on the same pc?
me i will have mac at work
and windows at home
@OctavianDamiean weechat is fun though.
do you like working on a mac?
18:40
yeah.
What's your favorite ide
Although my work on mac is limited to personal projects
vim
or emacs
and it support well js?
depends on the language I'm using
i love aptana
with his integrated console
and git
18:41
so a requirement for a job I want to apply for says "development in a linux/unix environment", what exactly does that mean? I've used eclipse inside a linux distro, as well as using nano and then compiling, but that's it
I know how to use console and git... w/o ide.
@FlorianMargaine ok, me, i'm a noob
@CBredlow do you know how to use the terminal?
yeah
im in the web from 2 years now
18:42
@CBredlow That's probably what they mean.
you know the commands, grep etc?
first learning php and html integration
okay
now i want to specify myself in js and html5 only
@FlorianMargaine grep?
18:43
@FlorianMargaine just out of curiosity ... when you're using your mac, do you use the mouse to move between windows or keyboard ?
@copy trackpad
@FlorianMargaine what do it do?
@MikeBoutin He just linked you to the manpage, read.
@FlorianMargaine sure css, LESS css and Scss/Sass too
manpage = manual page
18:45
@FlorianMargaine but what this cmd do?
NAME


       grep, egrep, fgrep - print lines matching a pattern
DESCRIPTION


       Grep  searches the named input FILEs (or standard input if no files are
       named, or the file name - is given) for lines containing a match to the
       given PATTERN.  By default, grep prints the matching lines.

       In addition, two variant programs egrep and fgrep are available.	 Egrep
       is the same as grep -E.	Fgrep is the same as grep -F.
You just have to read ...
but why i have to know this?
it,s for linux?
It wasn't meant for you.
18:48
He was talking to CBredlow.
sry guys XD
lol
anyone ever ported the QNX c libraries to linux?
google is failing me in this effort
@rlemon What exactly do you mean? As far as I read about QNX it has been ported to all major architectures.
yes. but they have some dumb ass shit in QNX4 c libraries that does not compile in linux. .h files not part of the lib etc.
@rlemon the best chance you have is to ask on qnx forums or irc channels imo.
Anybody in here have experience with Angular? Or even just opinions on Angular? I have a couple contractors looking to use it.
@ryankinal
yes
its framework to build SPA and also provide support like knockout js
Okay. But is it good? Pros and cons? Care to share opinions?
@Sam No, I'm not Russian, just good at Google.

« first day (832 days earlier)      last day (4341 days later) »