Firebase Chat change reference with javascript

I am trying out how to incorporate firebase with angular in such a way that the user is able to change the "Channel" of the chat via selecting from a dropdownlist. This is the code that I have at the moment: Note: The channel attribute is defined ...
more »

2017-11-11 18:11 (0) Answers

Instagram.com/username/media no longer working

I created a small web app a few months ago that would create stylized instagram galleries for public profiles by accessing the JSON from instagram.com/username/media (not via the API). I went to my personal website today and realized that the gallery...
more »

2017-11-11 17:11 (1) Answers

Regx for Domain with 'www' or without 'www'

I want to search domain name from given string. Lorem www.example.in ipsum #web-developer dolor sit amet, consectetur adipiscing elit. Donec suraj@mishra.com consequat sem eros, et volutpat google.com lacus dignissim ac. Pellentesque ac nisl et e...
more »

2017-11-11 12:11 (1) Answers

Regular Expression - Avoid a string in expression

I am trying to create a regex that should match following cases. if exact match of words 'first, second, third' then match should fail - but if there are any characters around it, then the string should be matched. Also I need to avoid certain set o...
more »

2017-11-11 11:11 (1) Answers

Object.keys, slice and splice

So I am still learning arrays and objects, and I'm a little bit stuck. I made an example of array of objects: var something = {candy:[{name:"snickers", price:2}, {name:"bounty", price:3}, {name:"mars", pr...
more »

2017-11-11 01:11 (1) Answers

JS array remove side by side duplicate strings

I have array, for example: var arr = ['ab', 'cd', 'cd', 'ef', 'cd']; Now I want to remove duplicates which is side by side, in this example it's at index 1 & 2 (cd). result must be: var arr = ['ab', 'cd', 'ef', 'cd']; I tried this code but...
more »

2017-11-10 14:11 (6) Answers

PHP validator getting 0 from AJAX

Essentially, I'm trying to send an email to a PHP script to check for availability using ajax and an onKeyUp event in HTML. So far I've tried about everything I can think of doing for the past several hours trying to troubleshoot this issue to no av...
more »

2017-11-10 14:11 (1) Answers

Process large json array in node.js

I use axios to get data from API then consume data in my node.js app. The data are array of 300 objects like this one: { 'location': 'us', 'date': '156565665', 'month': '5.1', 'day': '6', 'type': 'default', 'count': '7', 'title': 'good...
more »

2017-11-10 14:11 (1) Answers

Behaviour of last elements in grid

I have got a bootstrap grid with dynamically generated images. If the last element is alone in the row it should be centered. And if there are two elements in row, the second element should float right. This is what I want: Two elements in row: A...
more »

2017-11-10 11:11 (4) Answers

Materialize autocomplete ajax

I'm using the materialize autocomplete plugin to create multiple tags input with autocomplete. Plugin works fine, yet only with data passed as an array defined in advance. If data is passed from ajax call, plugin does not show dropdown with options a...
more »

2017-11-10 08:11 (1) Answers

Disable submit button between two time period

I need to disable submit button from 10.25 am to 11.25 am. This is the submit button below: <input type="submit" id="submit" name="submit"> I am using this script. but it is not working.I am unable to find out where the problem is: <scri...
more »

2017-11-10 06:11 (4) Answers