« first day (2138 days earlier)      last day (2811 days later) » 

12:00 AM
not sure how true this is anymore, but it always stuck with me stackoverflow.com/a/614255/829835
re arr[i] = x vs arr.push(x)
 
In theory, arr[i] = x could be faster if you initialize the size of the array first. But assembly could also be faster and I am not programming in assembly either.
 
 
2 hours later…
1:56 AM
@KendallFrey #Canada
 
2:09 AM
@rlemon look at those bulging pockets, he's got to have at least a 20-pack of timbits in there
 
lol
 
 
2 hours later…
4:14 AM
spent the night overclocking an "old" pc
grabbed an rx470, made the pc vr ready 3dmark.com/fs/9883434
the sad thing is the computer will just hang out in the corner like all of them until I find a reason to use it lol
 
 
1 hour later…
5:36 AM
Hello I need help with map geocoding
 
@ShannaChambers Welcome to the JavaScript chat! Please review the room 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.
 
user6586783
@ShannaChambers. What kind of help do you want?
 
@SoftwareEngineer171 Welcome to the JavaScript chat! Please review the room 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.
 
ive been at it the whole night and i cant seem to find out how to resolve the issue
-1
Q: Problems fetching address for geocoding

Shanna Chambers<script type="text/javascript"> var geocoder; var map; function initialize() { <?php //Starts while loop so all addresses for the given information will be populated. while($result = mysqli_fetch_array($quer...

I am getting the over query limit i tried to add a delay but it didn't work error is still persistent.
 
user6586783
5:52 AM
I am not sure it is a Javascript problem. It seems to me that you must improve your PHP code.
 
can you help me with that then
can you comment or provide an answer in the post
@SoftwareEngineer171 it is driving me crazy because i have been on it for 12 hours now
 
user6586783
I am not very good at PHP, if you have a Javascript question, I can help you. Your post is related to PHP, so try to ask it here.
 
@ShannaChambers Please don't comment because no one answered you in an hour or two. That just annoy people. Stackoverflow is not a help ticket site. Come back in a day or two and read this: stackoverflow.com/help/no-one-answers
 
ok @sheepy its very sad but please i am tired. Been trying to get it to work for a long while now.
 
6:10 AM
@ShannaChambers "Long while" is pretty subjective. Anyway, your code's chaotic indent and spacing certain does not make it easy to read (I know it prevented me from reading it). If you are exhausted, perhaps you can take a rest and edit the question when you feel better.
 
6:51 AM
Goddamnit google.
Chrome update: [Backspace] button no longer works to navigate back.
Now it's [Alt]+[Backspace].
 
dafuq
 
But no worries, they released an extension to restore default behavior!
WHAT THE FUCK is google thinking? What manager came up with an idea as absurd as that?
 
and [Alt]+[Backspace] does exactly fuckall in my browser
 
The extension is a typical workaround: buggy, doesn't completely restore previous functionality.
@ivarni: you might not be updated yet(?)
 
@Cerbrus I do get the "Use alt to navigate back" message if I try to just use Backspace
 
6:53 AM
Ah, then you're updated
But it doesn't even work?
 
So this is great, I've lost the ability to navigate back with my keyboard seeing as it doesn't work properly with the Alt modifier
could be a locale thing I suppose
 
Google, you dun goofed.
 
Oh it's [Alt] + [LeftArrow] here
As my colleagues just helpfully informed me in the middle of my rant :)
Still not happy with that
 
So, now I need 2 hands to navigate.
 
Cue "that" joke about keyboards and hands
Surely it must be possible to work around this
 
Seems to be in order to protect idiots from navigating away from the page while trying to backspace in an input field and not having focus where they think they have focus
 
Out of all browsers I have installed, only -Opera- doesn't support [Backspace] to navigate. They don't want to be like -Opera-, do they?
 
@Cerbrus Chrome is too big to think they'd fail. Since it is the default on Android, which holds 80+% smartphone market share, they need to do as bad as IE 6 to fall from that high and even then the fall would last decades.
 
What's absurd is that they have developers working on chrome. If anyone loves keyboard shortcuts, it's a developer.
How did this not cause a riot at Google/Chrome HQ? o.O
 
7:14 AM
@Cerbrus Alt+Left? Mouse Gesture extensions? Maybe all their mouses has dedicated forward/backward buttons.
 
user6586783
Chrome developers are not very clever. In Chrome 49, if you type {a:1}),({b:2} to console it generates an object instead of throwing an error.
 
Hm, they probably have pretty nice mouses
 
*moses
 
Or maybe they are trained to speak "Ok, Google, go back." instead of pressing buttons.
 
I do that always
 
7:24 AM
_"Hello Chrome"_
-_"Hello Sir. Voice recognized. Authorization verified."_
_"Chrome, Navigate: Previous"_
-_"Yes sir, Command accepted: Tolerate Virus. Verify."_
_"Chrome, Cancel"
-_"Verified. Virus a̬̬ͤͦc͖̗ͮ͟c̳̘̘̼͓͎̠̋ͣ̽̀̚ę̰̭̞̫̤̲p̜̟͈͇̪̰̀̅̂͐́t̝͎͙͙̖̗ͧ͒̌͐̌ͥͦe͇̼͔̩̬͖͆̉͑dͭ̍̽̃͗̆̃͏"_
Aw, no formatting... Ah well.
 
hello guys
i try to get some data from a server using ajax request
but it returns me data in a strange format
its a variable
how can i parse it ?
 
@gtzinos: With the information you provided us, what do you expect to hear from us?
 
t = {"name":"george." }
wait my friend
here is the data
 
user6586783
@gtzinos So, how do you want to "parse" it?
 
i need to the value of the name
but i can't parse as json
 
7:29 AM
That just looks like a object.
var name = t.name;
 
wait
how can i take the t object ?
 
user6586783
It is passed to your callback function
 
Okay... What exactly does your AJAX request look like?
 
imagine something like this
 
1 message moved to Trash can
@gtzinos Please don't post unformatted code - hit Ctrl+K before sending, use up-arrow to edit messages, and see the faq.
 
7:30 AM
i have the data object
 
var name = data.name;
 
oh okay i will check it thank you my friend
undefined
is strange. i think is a string and i must parse it
 
You may want to read:
2257
Q: How do I return the response from an asynchronous call?

Felix KlingI have a function foo which makes an Ajax request. How can I return the response from foo? I tried to return the value from the success callback as well as assigning the response to a local variable inside the function and return that one, but none of those ways actually return the response. fu...

 
Wait what's the fix for the new backspace doesnt work as a back button kill me chrome update?
 
i can use ajax requests. this is not a valid format
 
user6586783
7:32 AM
@gtzinos Try JSON.stringify(data) and post here what you get
 
i tryied it
but nothing
 
is not a json
ok wait
 
user6586783
@gtzinos What did you exactly get?
 
Restore Chrome's [Backspace] navigation. (They changed it to [Alt]+[LeftArrow]...)
4
@gtzinos: where did you add the var name = data.name; line?
 
7:34 AM
Mkay thanks. I can't believe they've done that
 
It's absurd.
 
After thinking a bit about that, it's not that stupid after all
 
  var temp = JSON.stringify(data);
  alert(temp["registration_install_info_text3"]);
returns undefined
@Cerbrus
 
user6586783
@gtzinos just alert temp and post here what you get
 
@GNi33 It is stupid. They're the only browser next to Opera that doesn't support [Backspace]
@gtzinos You didn't answer my question.
$.ajax( {
    url: "url"
}).done(function(data){
    console.log(data);
    console.log(data.name); // Here's your name.
});
 
user6586783
7:41 AM
@Cerbrus He said it is undefined, didn't he?
 
@SoftwareEngineer171: I'm guessing he's logging it from the wrong location.
Oh..
You told him to JSON.stringify
@SoftwareEngineer171: If you put this in your console: JSON.stringify({a : 1}).a, what do you get?
 
@Cerbrus when statistics show that a lot of back navigations through backspace happen out of mistake and stuff you where writing on one page gets lost because your textarea lost focus for some reason when pressing backspace.... no, the idea is not that stupid. Just because we're used to it, doesn't make it the perfect thing
and people will get used to [Alt] + something too, and it's something you can't "mispress"
 
user6586783
@Cerbrus Stringifying object cannot solve his problem, it can hel us understand how data is configured.
 
@GNi33: Those statistics also indicate that it's an extremely insignificant issue. They're changing a keyboard shortcut that's been in there for over a damn decade, just because some people can't control their fingers.
Now the same function requires two hands.
And the way they implemented it is just absurd.
 
so? a lot of stuff does, and that's a good thing
 
7:46 AM
Yea, let's ignore users that have been using the shortcut. Let's ignore what's been the standard for a decade, and let's not give our users any choice at all in the matter.
 
the backspace key now had two completely different uses based on element focus, that is not smart
 
@Cerbrus The only solution is to include this json as script -
 
Changing features that have been the standard for 10 years just because a minute portion of your userbase sucks at using a keyboard, that is not smart.
@gtzinos No. You're just not providing us with enough information to help you.
 
@Cerbrus Alt+Left is not new and have existed as a back shortcut before Chrome exists. Backspace too. Make that 20 years.
 
user6586783
@gtzinos Stringifying data object cannot solve your problem, but you need to do it in order to let us understand where exactly is your name property in data object
 
7:52 AM
@Sheepy That doesn't excuse removing existing functionality.
 
Exactly!
 
@Cerbrus should there be a setting that lets you change it? probably yes, I'm not sure about it though. I honestly think it's not that big of a deal, I can't remember the last time I used backspace to navigate
 
@GNi33 It use it daily. Regularly. As do my mates at work.
 
Firefox welcomes you.
 
I can see people mispressing and accidentally navigating back because of shitty websites though
 
7:54 AM
In fact, I heard frustration coming from 2 doors away. About this ridiculous change.
That's not a browser problem.
It's a website problem.
 
of course...
 
And I can imagine the Chrome team to quote this...
!!xkcd 1172
 
And I won't be surprised if xkcd makes a comic of the back button's change.
 
Sure, funny xkcd, but this actually breaks what's been default behavior for over a decade, with no way of going back, aside from installing a buggy plugin.
I just can't understand why they didn't just make it optional.
"We are Google, we know what's best for you. Deal with it."
 
7:58 AM
@Cerbrus @SoftwareEngineer171 Its the only solution guys. I talked with the developer :)
 
@gtzinos "It"?
 
@Cerbrus That's why I decided to stick with Firefox. Not because Firefox is necessary better...
 
@Sheepy I'm tempted to go back to FF
But they're both not exactly perfect.
 
FF has the same policy of "we know what's best for you", ftr
 
Chrome is more practical for web development, though
 
8:02 AM
(even deleting settings from about:settings, so you really have no choice left.)
 
backbutton still works in Vivaldi if that's any help for you
 
@FlorianMargaine You're kidding me, right?
 
@FlorianMargaine Yes. But I still have the flag to force-enable right click menu. Without any plugins.
 
@GNi33 Vivaldi?
 
Will anyone help me to bind youtube video upload JS, through dropzone Or jQuery ?
 
8:03 AM
@MrAbi Welcome to the JavaScript chat! Please review the room 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.
 
@Cerbrus no practical example, but a friend was complaining about that a couple of days ago
 
user6586783
@MrAbi What have you done so far?
 
Thanks, and sorry
let me explain
 
@Cerbrus Not exactly a joke. Firefox also changes their UI and API. You can argue they are less arrogant, but users are at their mercy nonetheless.
 
I'm providing a service which user can upload videos on youtube, by using me google app, And I want to make it more reliable, I want to make it with dropzone, User will enter title, description, after submit, video start uploading with Progress Bars
 
8:09 AM
Even Edge is not immune from UI changes. Not long ago I found that it does not auto-fill www. and .com like every other browsers (including IE)
 
@SoftwareEngineer171 Is it possible ?
 
@Sheepy I know of another browser that does that
Steam's ingame browser xD
 
anything wrong with this according to you?
root@debian:~# df
Filesystem                  1K-blocks    Used Available Use% Mounted on
/dev/dm-1                     9480420 9451572         0 100% /
udev                            10240       0     10240   0% /dev
tmpfs                         1622784    9392   1613392   1% /run
tmpfs                         4056956      76   4056880   1% /dev/shm
tmpfs                            5120       4      5116   1% /run/lock
tmpfs                         4056956       0   4056956   0% /sys/fs/cgroup
other than me being logged in as root
 
@Cerbrus Buy another monitor. Then you won't ever use the ingame browser again :)
 
my main user won't load
I apparently have ran out of memory
 
user6586783
8:19 AM
@MrAbi I can help you with technical details about your code, but I am not very experienced in Google API.
 
@towc You have.
Delete some shit from your root partition
 
Hey, how can I test if a url (Cydia://) is valid in js?
 
symlink some stuff to /home if you need to
 
have used 22GB against 1TB of memory, according to the scans
 
But the root partition is full
 
8:20 AM
@BenFortune which is the root partition?
 
how???
 
/ isn't /home
 
11
Q: simplest cross-browser check if protocol handler is registered

jonnyWhen user clicks link with custom protocol (like myapp://superlink) I need either launch an app or allow user to download and run configuration app I am looking for cross-browser way to check if custom protocol is registered I've tried to determine this by checking user agent server-side (for ...

 
You'll have stuff in /etc /usr /var and so on, which have filled the / partition
 
8:22 AM
what can I safely delete?
 
I'd remap some storage from /home to /, but it's a pain in linux
 
@Sheepy That doesn't seem to be doing what I want to achieve, I just want to test if the protocol exists?
 
This would be in a iOS webapp.
 
@Sheepy Not quite enough space on my desk at home
 
8:24 AM
there must be something hidden unseen by the disk analyzer
@BenFortune
 
@towc Might be able to get away with moving some stuff from /var into a /home directory somewhere and symlinking it
Nothing hidden, look at your / usage
 
13GB? Is that all?
I surely must have allocated more
 
@MattCowley Some other answers has code to test protocols. Don't just look at the first one.
 
Yes, in your root partition. /home has the rest
 
@towc Increase size partition to Linux and destroy WIndows!!! Linux forever
 
8:26 AM
@Sheepy First and third do link opening, second doesn't support safari?
 
I tried deleting some stuff and rescanning, it still says 100%
@MirkoCianfarani this is an only deb machine
 
Deleting from where?
 
home wouldn't do anything, right :/
 
Just wanted to chim in again. A lot of us have multiple buttons on our mouses that we bind to certain keys. In this case I had backspace bounded to one of the keys , browsing like that IS WONDERFUL, im not even joking. Browsing felt so smooth :(
 
@MattCowley Tough luck. Safari is the new IE.
 
8:27 AM
Nope, it's not mounted on /
What's in /var
 
2.7GB of logs
now there's only 9.2GB in /
still says 100% full
there's something eating of memory
I'm using a LVM
 
@Sheepy Ok, so I've seen it done by sending the browser to the url scheme, and setting a timeout if it fails, how can I rework that to be a hidden check? Eg makebetterthings.com/javascript/…
 
@towc du -h --max-depth=1?
Or ncdu if you can still install anything ;P
 
@Sheepy Could I test it through a get request? If so how?
 
@MattCowley I trust that the author of the said detection library did much more research than I have. I only know there exists API to check registered protocols so if Safari doesn't support that... Let's just say I've given up other functionalities on iOS too.
 
8:38 AM
@SoftwareEngineer171 Please
 
I'm new to javascript, can someone recommend a good place to start? I know the basics of html and css
 
@Gabrielus Welcome to the JavaScript chat! Please review the room 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.
 
@MattCowley The main problem is protocol handling is not done by javascript. Sometimes even not by browser. So you can see why it is hard.
 
@Gabrielus Google is a good place to start
 
@OliverSalzburg well played
 
8:43 AM
@Gabrielus depends what you want to do with javascript! try codecademy.com/learn/javascript
 
True to its open nature, if you ask 10 js experts on how to learn js, you will get 11 answers.
 
Also, asking questions about JavaScript in this room is risky business. Way too many experts!
 
@Sheepy How does that work? If I out the URL scheme into the URL bar, it opens the app, so surely the browser is handling it? Anyway the get request didn't work....
 
@MattCowley That's because GET is a verb specific to HTTP
 
@MattCowley Forwarding url to OS is quite different from handling an url yourself. In fact once upon a time my Android Chrome would ask me which browser to use for every single page jump because it was forwarding every links to Android, which sees that I have multiple browsers and no defaults.
 
8:56 AM
@Sheepy Well poo. Apple sucks with something's, like giving no support for web apps :(
 
Apple wants you to make native app which they can control.
And before you think Google is good, Google wants you to make web app on which you can sell their ads. Chrome is the most restrictive browser for running offline apps.
 
I think I'm gonna give up for now...
 
Spread the words. Safari is the new IE. :(
 
@Sheepy Didn't they massively promote that with their last I/O app?
 
@OliverSalzburg A web app that can run offline is not the same as an app that lives offline, for example on a usb or as a self-contained html file.
 
9:02 AM
@Sheepy Ah, I see
 
user1118051
9:59 AM
morning guys
 
@MingYu Welcome to the JavaScript chat! Please review the room 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.
 
im having this issue with mongodb. How can I filter out null values when inserting my data into mongo
this is my data
data = [ {Name: 'foo',
age: 10,
skills: 'running'},
{ Name: 'moo',
age: 10,
skills: 'jumping'},
{ Name: 'loo'
age: 10,
skills: 'turning'},
NULL, <<<<<<<<<<<<<<<< null value
]
im using insertMany(data) to insert data into mongo.
i tried using try catch but it just ends my code. i want it to continue processing the rest of the data.
appreciate any help guys.
 
@Ming Why not simply filter the data before inserting it?
 
im streaming the data in real time
i cant filter
streaming from external sources
 
You're streaming unfiltered data from external sources directly into your MongoDB?
Sounds legit
 
10:09 AM
const insertDocuments = function(x,db, coll, callback) {
			const collection = db.collection(coll);
			collection.insertMany(x, (err, result) => {
					assert.equal(err, null); // <<<<<<<<<<<<<<<<<<<<<<< i believe the error is here
					console.log("values successfully inserted into database");
					callback(result);
			});
		}
this my code
it takes x which is
data = [ {Name: 'foo',
age: 10,
skills: 'running'},
{ Name: 'moo',
age: 10,
skills: 'jumping'},
{ Name: 'loo'
age: 10,
skills: 'turning'},
NULL, <<<<<<<<<<<<<<<< null value
]
 
I'm amazed Cap didn't delete any of those.
 
but any ideas how to do a try, or if block there?
@Cerbrus i put code like that all the time.
 
@Ming: Please don't post unformatted code - hit Ctrl+K before sending, use up-arrow to edit messages, and see the faq.
 
its formated
 
const insertDocuments = function(x,db, coll, callback) wtf? Why not simply function insertDocuments(x,db, coll, callback)?
 
10:10 AM
Oh, only the first one wasn't
 
alright @Cerbrus
exports.dbConnect = function(x, D) {
		const MongoClient = require('mongodb').MongoClient
		const assert = require('assert');

		const insertDocuments = function(x,db, coll, callback) {
			const collection = db.collection(coll);
			collection.insertMany(x, (err, result) => {
					assert.equal(err, null); // <<<<<<<<<<<<<<<<<<<<<<< i believe the error is here
					console.log("values successfully inserted into database");
					callback(result);
			});
		}
		const url = 'mongodb://' + D.ip + ':' + D.port + '/' + D.dbName;
@OliverSalzburg
 
@Ming That doesn't answer my question
Is it a style thing?
 
@OliverSalzburg i guess its the same thing.
var fn = function(x) and function fn(x)
 
0
Q: Custom Directive for number only input not working for html inside controller bound div

DeathNoteI was searching for custom directive for number only input for angular js and I got hands on a working directive but it isn't working when I am using it for input box which is inside body or div bound to a controller. HTML <div ng-app="app" ng-controller="xyz"> <p>Demo of AngularJS Numbers O...

 
@DeathNote Welcome to the JavaScript chat! Please review the room 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.
 
10:14 AM
any ideas how to solve it if i have null in my data? @OliverSalzburg
 
@Ming Sorry, I can't help with your actual problem. I can only offer criticism regarding unnamed functions
 
this my stack trace
C:\Users\mingk\coding\projects\actionNightmare\node_modules\mongodb\lib\mongo_client.js:213
          throw err
          ^

TypeError: Cannot read property '_id' of null
    at Collection.insertMany (C:\Users\mingk\coding\projects\actionNightmare\node_modules\mongodb\lib\collection.js:493:
17)
    at insertDocuments (C:\Users\mingk\coding\projects\actionNightmare\actions1.js:7:15)
    at MongoClient.connect (C:\Users\mingk\coding\projects\actionNightmare\actions1.js:18:4)
    at C:\Users\mingk\coding\projects\actionNightmare\node_modules\mongodb\lib\mongo_client.js:210:11
 
And if an assert is your problem, remove it :D
 
but i just want to pass it. because the assert statement is both in my code, but its also in mongo source code. i cant remove that
 
@BadgerCat the form was too cute to not fill, but what card is this about?
 
10:16 AM
mongodb\lib\mongo_client.js:213
 
We made some good progress on compressing advertisments as 150k video, so that they can be uploaded to Google Adwords. Then today someone find out that they don't autoplay on mobiles. Long story short, now I find myself checking out pure javascript video decoders...
 
@AwalGarg just a card that I will make, I don't know yet
 
@BadgerCat related to programming?
 
@Ming I doubt MongoDB has an assert on the error in their source
 
maybe
 
10:24 AM
my stack trace shows mongo_client.js:213
 
@Sheepy Just use animated GIF!
 
@OliverSalzburg
  // No authentication just reconnect
    if(!options.auth) {
      return process.nextTick(function() {
        try {
          callback(err, db);
        } catch (err) {
          if(db) db.close();
          throw err   //<<< line 213
        }
      })
    }
 
@Ming Yeah, that throws the error, that's not an assert
 
yeah. buts it will stop my code right? it wont continue it@OliverSalzburg
is try catch same as try continue in python?
catch suppresses errors and does not stop code. is that correct?
@OliverSalzburg no worries. i finally got it workinggg :)
 
@Ming I don't understand your problem. You're calling assert to make sure err is null. This obviously causes an error when err is not null. You apparently don't want that behavior, so why are you calling assert?
 
10:28 AM
this was the fix
const insertDocuments = function(x,db, coll, callback) {
			const collection = db.collection(coll);
			try {
				collection.insertMany(x, (err, result) => {
						assert.equal(err, null); // <<<<<<<<<<<<<<<<<<<<<<< i believe the error is here
						console.log("values successfully inserted into database");
						callback(result);
				});
			} catch(e) {
				console.log('errrorr.................................')
				// do nothing and continue
			}
		}
 
I am speechless
 
why
 
Because that is idiotic code
 
what else do u suggest? why do u say that
 
Well I already suggested it
 
10:29 AM
but whats wrong with that code
i tried without assert. still got same problem
 
Then what is the error?
 
the issue i guess is that whole code block will not work. not just my particular assert statement. the error is throwed from mongo source code
C:\Users\mingk\coding\projects\actionNightmare\node_modules\mongodb\lib\mongo_client.js:213
          throw err
          ^

TypeError: Cannot read property '_id' of null
u see the origin of the error. its a mongo source lib
i mean try catch aint pretty but dunno if got other choice
 
@OliverSalzburg You can't do much with animated GIF. Last time we try we ended up sending a 2-colour gif to the client. We can do 20+ seconds of smooth video with H.264.
 
@Ming Why not just replace the assert.equal(err, null); with if (err) return callback(err);?
And I'm wondering how your code is still working as expected if you're not calling callback in your catch block
Also, at the very least, check e.message if it's the error you want to ignore and otherwise re-throw the error
 
@OliverSalzburg actually my code is a function of a larger code base. if there is an error, then my main code base will reject the whole code and run the next one.
i just realised that it throw aways my entire data, even if there was just 1 null value but the rest were good.
 
10:41 AM
You could also just put x = x.filter(Boolean) in that code. I don't see where the problem with that is
 
u mean to filter out my data first? its an object literal
is that possible?
 
@Ming Object.values( x ).filter( ... ) // May requires shim
 
@Ming that looks like an array
 
this my format
data = [ {Name: 'foo',
age: 10,
skills: 'running'},
{ Name: 'moo',
age: 10,
skills: 'jumping'},
{ Name: 'loo'
age: 10,
skills: 'turning'},
null,
]
 
That's an array...
 
10:46 AM
^
 
^
 
^
 
0
Q: Custom Directive for number only input not working for html inside controller bound div

DeathNote EDIT The solution isn't working particularly for me. I am pasting my code and I must add that there aren't any errors on my console. Pastebin for HTML CODE, I removed some things to make it short. http://pastebin.com/4sT0dCjM Pastebin for Controller, I removed some things to make it sho...

 
@DeathNote Now read the first answer...
 
Hi guys, any idea why this one is failing ? ("F@5tNFuR!0u5").search('\^[a-zA-Z0-9!@#$%^&* ]$\gm');
 
10:56 AM
@FlyingGambit You're passing a string, not a regex
 
Second, you're testing for the string to have a single letter.
 
@BenFortune I tried that after ("F@5tNFuR!0u5").search(/^[a-zA-Z0-9!@#$%^&* ]$/gm) failed
 
!!> "F@5tNFuR!0u5".search( /^[a-zA-Z0-9!@#$%^&* ]+$/m )
 
I think I got it @MadaraUchiha ("F@5tNFuR!0u5").search(/^[a-zA-Z0-9!@#$%^&* ]+$/gm)
 
10:58 AM
@Sheepy 0
 
Thanks guys
 
@FlyingGambit You don't need the g or m, by the way.
 

« first day (2138 days earlier)      last day (2811 days later) »