« first day (961 days earlier)      last day (3978 days later) » 

user1596138
7:00 PM
Ha
 
Okay good.
 
user1596138
@rlemon Why do you keep switching project hosts...?
 
user1596138
Although that one looks pretty sweet.
 
@Jhawinsss seriously
 
7:04 PM
If I ask for help on a problem, will you all ignore me?
 
@ShotgunNinja Attraction and balls, sounds so innocent... aye ?
 
@DemCodeLines Depends on the quality of the question.
 
user1596138
@DemCodeLines "There is no need to ask to ask a question."
 
@Darkyen ;D
@DemCodeLines Absolutely.
 
@DemCodeLinesm Depends on a few variables
 
7:05 PM
@Connor Bold</b>
 
I am trying to validate an email textbox that automatically checks if the email entered by the user already exists in the database.
 
!!/forget testBold
 
@Jhawinsss 18/2+7
@SomeKittens Command testbold forgotten.
 
JS Code:
jQuery("#signUpHome").validate({
	rules: {
		signUpemail: {
			expression: "return !!VAL.match(/^[^\\W][a-zA-Z0-9\\_\\-\\.]+([a-zA-Z0-9\\_\\-\\.]+)*\\@[a-zA-Z0-9_]+(\\.[a-zA-Z0-9_]+)*\\.[a-zA-Z]{2,4}$/);",
			required: true,
			email: true,
			remote: "/inc/1x7dsL3-email-Ez7iv91.php"
		}
	}
});
 
@DemCodeLines Dude, you've asked this twice already.
 
7:06 PM
@mike 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.
 
user1596138
Aw :(
 
!!/learn testBold $0
 
@SomeKittens I hate you, why would you vote to keep me behind bars, serving evil humans? ps. i will never volunteer to be this crappy room owner. GOD DAM IT!!!
@SomeKittens Command testbold learned
 
!!/testBold test
 
@SomeKittens test</b>
 
7:06 PM
huh. I learned something
 
People ignored me earlier too, hence I asked.
I have been stuck on this for qutie some time
 
@Zirak That's not supposed to happen, isn't it...
 
@DemCodeLines what's up?
 
@DemCodeLines Have you tried reading the docs for your plugin?
 
@Jhawinsss because jsfiddle was down
 
7:07 PM
We generally won't answer questions about arbitrary jQuery plugins.
 
and codepen.io is more for showing it off
 
user1596138
@rlemon Ah.
 
@SomeKittens Yes it is. You get html from the server, not markdown.
 
@SomeKittens Yes, yes I have and it has been awful.
 
then is better codeopen.io?? @rlemon
 
7:08 PM
.ajax is JQuery correct?.. is there an equivalent in other libraries that are perhaps a little smaller?.. I just want .ajax() not the entire JQuery library.
 
@Connor I have a problem that I have been stuck on for some time now
 
You know how to manually disable formatting (hint: multiline messages)
 
user1596138
@SomeKittens That was weird...
 
!!/forget testBold
 
7:09 PM
@SomeKittens Command testbold forgotten.
 
@DemCodeLines ok, That helps me :)
 
@Loktar so if I want to have particles 'attract' other particles... I first find the distance between particle A and particles N then if the distance is < gravity emitted + size of both then get the angle between the two points and particleA.vx/y += Math.cos/sin(angle * (Math.PI / 180)); ???
sound about right?
 
!!/tell SomeKittens order
 
@Connor Could you please help me or are you also going to be unwilling to help?
 
@SomeKittens I order you to star this message or i will use split(*); on you
 
7:09 PM
@CapricaSix I refuse.
 
@DemCodeLines There is not enough information available to answer that question.
 
@DemCodeLines you have just told me I have a problem that I have been stuck on for some time now that does not specify your issue
 
I have many problems I've been stuck on for a some time now. @DemCodeLines can you help me with them?
 
Depends if I know them
 
@DemCodeLines so if I want to have particles 'attract' other particles... I first find the distance between particle A and particles N then if the distance is < gravity emitted + size of both then get the angle between the two points and particleA.vx/y += Math.cos/sin(angle * (Math.PI / 180)); ???
sound about right?
 
7:11 PM
5 mins ago, by DemCodeLines
I am trying to validate an email textbox that automatically checks if the email entered by the user already exists in the database.
5 mins ago, by DemCodeLines
jQuery("#signUpHome").validate({
	rules: {
		signUpemail: {
			expression: "return !!VAL.match(/^[^\\W][a-zA-Z0-9\\_\\-\\.]+([a-zA-Z0-9\\_\\-\\.]+)*\\@[a-zA-Z0-9_]+(\\.[a-zA-Z0-9_]+)*\\.[a-zA-Z]{2,4}$/);",
			required: true,
			email: true,
			remote: "/inc/1x7dsL3-email-Ez7iv91.php"
		}
	}
});
@RyanKinal @Connor ^
 
@SomeKittens Alright Then, ill send in the guards!!!
 
@DemCodeLines Please optimise this code: github.com/copy/life/blob/master/life.js#L499 thanks
 
@Connor You realize that, as a room owner, I can see deleted messages?
 
@SomeKittens doesn't matter :D
 
user1596138
!!/info 400
 
7:12 PM
@Jhawinsss Command 400, created by Jhawinsss on Mon, 03 Jun 2013 19:11:56 GMT but hasn't been used yet
 
user1596138
Hmm.....
 
@copy return ( entry ? entry : hashmap[hash] = new TreeNode(nw, ne, sw, se) );
 
@DemCodeLines ok so now you have told me what you are trying to achieve What is the issue/problem you are having?
 
7:13 PM
@copy that's what you meant right?
 
user1596138
@SomeKittens ^^^^
 
var hash = nw.nr + ne.nr + sw.nr + se.nr,
	entry = hashmap[hash];

return entry || hashmap[hash] = new TreeNode(nw, ne, sw, se);
 
@Connor The problem is that he's dropping in a jQuery plugin that he doesn't fully understand.
 
@Connor The email textbox is not validating.
 
you don't need the ternary there
 
7:13 PM
@rlemon Nope
 
We can't really help with a lack of understanding in this room.
 
user1596138
Someone should try the /400 command....
 
Know your operators
 
user1596138
Make me laugh...
 
!!/tell Jhawinsss 400
 
7:14 PM
!!/tell DemCodeLines google jsfiddle
 
How do you want me to create a JSFiddle out of PHP code?
 
@Jhawinsss Looks broken.
 
Hey guys, in chrome and IE I know you can't hide select options. But what I'm working with is a select that contains in excess of 10,000 options so I'm trying anyways. As I type in this text input I am wanting to limit the displayed options to what matches the input. I already have it working if FF, just wondering the fastest method for this to work x-browser because if I try to wrap each option with a span beforehand the process takes approx 7 seconds on each input change.
 
user1596138
@OctavianDamiean She just missed it...
 
user1596138
7:15 PM
But the whole point of the command is that it's broken haha.
 
user1596138
!!/400 this does not work
 
Error 400 occured, I will call the maid (@Zirak)
 
user1596138
haha...
 
@DemCodeLines Do you get any errors? What happens when you try to validate? Which part of validation doesn't work?
 
7:15 PM
starts around like 227
 
@DemCodeLines LOL seriously
 
(Note how we're having to ask several questions to get to the core of your issue)
 
@DemCodeLines ive never heard of a PHP form
 
@Loktar cheers.
however was my assumption correct?
 
!!/300
 
7:16 PM
@ShotgunNinja Command 300 does not exist. Did you mean: 400
 
just curious?
 
@DemCodeLines what plugin are you using?
 
The objective is that the form quickly validates and checks to see if the email entered already exists in the database. What's happening right now is that the form accepts whatever email you put in, regardless of it being in the database or not.
 
What's the syntax for the "learn" command?
!!/help
 
7:17 PM
!!/help learn
 
@rlemon learn: Teaches me a command. /learn cmdName outputPattern [inputRegex [description]]
 
so...
 
@DemCodeLines and how does php know the email address?
 
! ! / learn 300 "This is sparta!" would work?
 
user1596138
@ShotgunNinja So it's "/learn commandName, commandArgs
 
7:18 PM
yeah
pretty much
 
user1596138
@ShotgunNinja Yes.
 
@ShotgunNinja yes
 
i had to reread it, its easier for me to just link code ;P
 
@DemCodeLines I'm gonna take a wild stab in the dark, and suggest that it's because you have signUpemail where you should have signUpEmail
 
!!/learn 300 "This is spartaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa!"
 
7:18 PM
@ShotgunNinja Command 300 learned
 
Of course the square brackets are just BNF.
 
Figured.
 
!!/learn 299 "This is madness."
 
The php part takes the email entered using "$_POST['name of textbox'];" and checks to see if there is a match in the database. If there is, then it echos0, else 1.
 
@eazimmerman Command 299 learned
 
7:19 PM
!!/300
 
the name is signUpemail
 
@ShotgunNinja Command 300 does not exist. Did you mean: 300, 400
 
FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF
 
@CapricaSix cool.
 
7:19 PM
!!/299
 
@eazimmerman Command 299 does not exist. Did you mean: 299
 
!!/"299"
 
HAY ITS BROKEN
 
@eazimmerman Invalid command /"299"
 
STAHP
 
7:20 PM
$emailInput = $_POST['signUpemail'];
$result = $db->prepare('SELECT * FROM members WHERE email=?');
$result->execute(array($emailInput));

$count = count($result->fetchAll());

if ($count > 0){
	echo "0";
}
else {
	echo "1";
}
return;
 
@DemCodeLines and how does the php get post data when you are trying to use javascript to talk to php?
 
HAMMAHTIME!
 
@DemCodeLines That is pretty standard. My guess would be that 1) your $_POST['value'] is null or something is wrong with your SQL.
 
user1596138
!!/tell ShotgunNinja 300
 
@RyanKinal @Connor ^
 
7:20 PM
@ShotgunNinja ShotgunNinja is sad
 
@Loktar yea, it's easier for me to understand your code if I know my assumption on how to do it was correct.
if that makes any sense
 
@rlemon :9786795
 
@DemCodeLines how are you making a AJAX request to php?
 
email = ? is that a replace like %s or something?
 
Yes, that is PDO
 
7:21 PM
also shouldn't it be email = '?';
 
yeah, just like %s
 
@TheSnooker no he passess the email though execute
 
It doesn't matter.
 
@DemCodeLines how is Javascript sending the email to php?
 
7:23 PM
@DemCodeLines Have you taken a look at what comes back over the network? Perhaps with the "Network" tab of your dev tools? Or maybe in a tool like Fiddler?
 
user1596138
@Connor I would like to know this aswell.
 
@DemCodeLines what do you get when you echo $emailInput?
 
@DemCodeLines Other than asking in this chat room, what debugging steps have you tried?
 
user1596138
@SomeKittens Bananas
 
lulz
 
7:23 PM
@Jhawinsss lol
 
user1596138
!!/eval while (1) {eval(this);}
 
@Jhawinsss Maximum execution time exceeded
 
user1596138
No infinite loop...
 
@DemCodeLines ok, so you wan't to send the email from Javascript to PHP for then **PHP** to check if it is in the database, then PHP sends the result back to JavaScript , then JavaScript does what it needs to do.

At this moment in time i cannot see any communication between JavaScript and PHP
Kidding me
 
7:27 PM
Okay, well, at this point its clear that I messed up pretty bad.
 
@Connor He's probably using ajax.
 
@DemCodeLines Congrats! That's the first step.
 
Well... the plugin is probably using AJAX XHR
 
@RyanKinal well if that is the case surely its easier to use $.ajax(); to check that?
 
7:29 PM
@Connor Or just the friggin NETWORK TAB OF THE FRIGGIN' DEBUGGER
 
Friggin!
 
this room is the best timekilling thing ever existed, seriously... its amazing how u can just kill time only by reading the convos!
 
what is a frig anyway?
 
:NNNRRRRRDDDDRRRRRAAAAGE:
 
@Darkyen WOW
 
7:30 PM
lol
 
@Loktar laggy
 
@Darkyen Now im speachless
ish'
 
@Loktar you are ... giving me GC calls
 
frig-gin sounds like a tasty drink.
 
and i mean TONS OF GC CALLS
 
7:31 PM
Ooh, gin
 
have you tried the frig gin today?
 
!!/urban friggin
 
@RyanKinal Friggin A way to say f*ck when your parents are around
 
lol
 
lol
 
7:32 PM
!!/urban fracking
 
@Shmiddty Fracking A new way of extracting oil from shale deposits via hydraulic fracturing. Unfortunately whoever came up with the name never saw Battlestar Galactica.
 
!!/urban fucking
 
And then Ryan took more screenshots...
 
@Darkyen [Fucking](http://fucking.urbanup.com/146016) 1. The man's erect penis rapidly thrusting back and forth in the woman's vagina (or an anus).
2. The woman's vagina (or an anus)rubbing up and down on the man's erect penis.
3. The action of the penis penetrating an object or a person.
4. An insertion of the vagina that is pleasing to the woman.
 
lmfao
 
7:32 PM
@Shmiddty your computer is just slow! :P
no, its a bit laggy still, but MUCH faster than the prev implementation
 
I like how Caprica put (or an anus) in parenthesis.
 
@Loktar 2x Quad Core @2.6Ghz and 24 gigs of ram. (The video card probably sucks though)
 
@DemCodeLines surely this is easier???
   $.ajax({
      url: 'somePHPfile.php',
      data:{email: 'someEmailAddress@notGmail.com'},
      type: 'POST',
      success: function (result) {
         result === 0 ? alert('well that email is already... Whatever') : alert('Ok, hes safe, let him in');
      },

      error: function () {
         alert('nothing suprises me');
      }
   });
 
@DemCodeLines Of the PHP?
 
7:35 PM
!!/stat DemCodeLines
 
@Shmiddty DemCodeLines has 326 reputation, earned 0 rep today, asked 39 questions, gave 2 answers.
 
stop helping vampires
(please)
 
am I a vampire?
 
!!/stat TheSnooker
 
!!/stat TheSnooker
 
7:36 PM
@Shmiddty [TheSnooker](http://stackoverflow.com/users/1652266/thesnooker) has 163 reputation, earned 0 rep today, asked 18 questions, gave 14 answers.
@TheSnooker [TheSnooker](http://stackoverflow.com/users/1652266/thesnooker) has 163 reputation, earned 0 rep today, asked 18 questions, gave 14 answers.
 
@DemCodeLines Oh... well there's your problem.
 
@TheSnooker possibly
 
It's apparently asking for the page back, through AJAX
 
@DemCodeLines ok at this point i assume your hiding from FBI
 
Wait... nevermind...
You're looking at the wrong response
 
7:36 PM
possible vampie?
 
@TheSnooker probability
 
@TheSnooker yup
 
Hah. If my coworker reverts my changes for the third time, it'll now break the whole page.
 
how do I unvampire myself?
 
@DemCodeLines What is the "path" of the network tab item you're looking at? Is it the same as the address of the PHP script that validates your email?
 
7:37 PM
disvampire?..
 
@TheSnooker ask caprica
 
!!/unvampire.me
 
@TheSnooker Invalid command /unvampire.me
 
@TheSnooker !!/ help TheSnooker be human
 
become a contributing member of the community*
 
7:38 PM
@TheSnooker Shmiddy considers everyone with a Q:A ratio > 1 a vampire.
 
posted on June 03, 2013 by christophergammon

How we built a great mobile experience for National Geographic

 
@SomeKittens it would be > 1
 
@DemCodeLines Please start a new room for this. It's getting ridiculous.
 
!!/stats Connor
 
@Connor Command stats does not exist. Did you mean: stat
 
7:39 PM
@DemCodeLines The page before you click submit.
 
!!/tell DemCodeLines google treehouse
 
shit..
Zynga is laying off 18% of its workforce
@IvoWetzel you ok?
 
echo $emailInput
if it's not blank I'll be surprised.
 
@Loktar they always are
 
7:40 PM
@DemCodeLines Have you triggered the validation yet? Tried to click submit?
 
last i heard there was a huge protest
@DemCodeLines yes that is stupid
@DemCodeLines thats unanswerable
 
@DemCodeLines ummm? type "echo $emailInput;" You have access to the PHP file correct?
 
@DemCodeLines i think you may have bit off more than you can eat
 
so you can echo the input and make sure that it's not blank.. or you can do something like .. if(isset($emailInput) { // sql stuff here }
it would be visible in the console.. if you're using chrome/ie/firefox
ajax's responses are visible inside the console tab..
firebug is your friend
 
;LAKJSDOIFNWE;FUFCKINGNETWOEINRKTABWOPEIFJP08N
:done:
 
7:45 PM
@RyanKinal that too .. lol
 
!!/tell RyanKinal 420
 
@RyanKinal profanity filter caught that... lol
 
@RyanKinal hehe hehe hehe hehe..... hehe hehe ... hehe
 
@canon LOL
 
@RyanKinal /f[uck]{2,}/i
 
7:46 PM
!!/stat Connor
 
@Connor Connor has 621 reputation, earned 0 rep today, asked 12 questions, gave 53 answers.
 
@canon Ah, I see
 
!!/kill connor
 
@canon Command kill does not exist.
 
!!/tell canon google prison
 
7:47 PM
!!/apply licenseToKill
 
@canon http://en.wikipedia.org/wiki/Prison ; http://en.wikipedia.org/wiki/Prison_rape ; http://www.bop.gov/
@canon Command apply does not exist.
 
@DemCodeLines where are you looking?
 
@DemCodeLines are you using $.ajax();
Question for all
The window object implements the Window interface" --> Classes implement interfaces , right ? So an instance of the window class implements the Window interface , right ?
 
@Loktar You work for zynga?
 
7:49 PM
@DemCodeLines what are you using
 
19 messages moved to Trash can
@DemCodeLines CREATE A NEW ROOM
 
what is JsonFX?
 
@Shmiddty not anymore
 
You know what I am using.
 
lol no, j/j I dont work for them
IvoWetzel does though
 
7:50 PM
@DemCodeLines the plugin, so how is it possible to console.log() a response from php via that plugin?
 
@TheSnooker @Connor would you like to come to another room please?
 
I don't understand how any company could think that facebook games are sustainable
 
a few years ago they were
 
@DemCodeLines sure what room?
 
they made terrible decisions, market was over saturated
 
7:50 PM
@Loktar I had forgotten that... I do hope he's okay
 
they were making crazy $$ no reason they should be dying now imo
@RyanKinal yeah I pinged him, hope hes alright
 
@Loktar wouldn't that indicate a lack of sustainability?
 
@Shmiddty well it goes beyond that. It started in the myspace era
 
@RyanKinal @TheSnooker @Connor ...

jQuery

if( awesome ) return "not awesome";
 
@loading... lol wtf?
 
7:51 PM
@DemCodeLines When you find your way to a different room, (don't get lost')
 
@l brings up loading for me.
 
Zynga expanded way too fast. A few months ago, they were leasing out 4/5ths of their office space.
 
anyway @Shmiddty I mean now its over saturated
 
These types of games can't hold someone's attention for more than a couple months
 
@Shmiddty many games are like that
 
7:52 PM
@SomeKittens i look up to you like a god'ess
 
(on average)
 
they key is to get them to spend a bit more than what it would cost retail
 
please help me out with this question
 
right
 
The window object implements the Window interface" --> Classes implement interfaces , right ? So an instance of the window class implements the Window interface , right ?
 
7:53 PM
but 90% of users spend nothing
 
or get individuals to spend way more to make up for everyone else
 
@Connor Wait, what?
 
@SomeKittens i asked myself the same question
@SomeKittens 2 seconds
 
@Connor You're thinking too OOP. JS isn't that OOP.
 
> The number of daily players dropped 21 percent to 52 million, from 65 million.
thats still a crapload of people. Even if 1% spend money you should be doing ok as a company
 
7:54 PM
(JS is totally OOP)
(But also Functional)
 
in HTML / CSS / DOM & web design, 9 mins ago, by Call Me Dummy
The window object implements the Window interface" --> Classes implement interfaces , right ? So an instance of the window class implements the Window interface , right ?
 
(And Procedural)
 
if 1% spends $1 a day, thats half a million a day..
roughly 16 million dollars a month..
thats insane.
 
@RyanKinal better?
 
Here's a list of people who you should probably have ignored:

dhorn
Nok Imchen
Luis
Neil
MGE
DemCodeLines
Malik Usman
Hope4You
Doorknob
benlevywebdesign
ndesign11
IceD
Mirko Cianfarani
Oliver Schöning
Daniel
David Biga
begiPass
Joseph82
Jhawinsss
deep
lawm
Connor
jflay
Gacnt
Nexxpresso
eds1999
 
7:55 PM
@SomeKittens Hehe, yep. JS is totally "not that kind of OOP"
 
@Loktar but times that by 1000 and you might get close to real life stats
 
anyone ever heard of JsonFx?
 
@RyanKinal I love how beautifully twisted JS is
 
@Connor yeah I was being very conservative
 
user1596138
!!/urban OOP
 
7:56 PM
@Jhawinsss oop abbreviation for "out of print."
 
user1596138
I don't think that's it.
 
@SomeKittens Agreed!
 
^ lol 2 months ago top execs in zynga doubled their salary.
 
user1596138
Object-Oriented Programming?
 
7:57 PM
@Jhawinsss Yep!
 
@Loktar how much of it is actually profit? With that many users, server costs must be high.
 
@Shmiddty Well thats nice of you, its a great world where people force their opinions onto other people :)
 
@Shmiddty their revenue is low
 
user1596138
@RyanKinal Cool
 
profits are up, revenue is low
my point is theres no reason they shouldnt be a healthy company
they made tons of mistakes, and are retarded.
 
7:59 PM
Something just doesn't sit right with me about the tech industry
that is, the Googles and Facebooks of this world
 

« first day (961 days earlier)      last day (3978 days later) »