3 years ago by jsRant

Sample: myArray = [1, 2, 4, 10, 20,100] How to find second largest value without sorting the array or latering its contents? . . .

javascriptarraysecond-largest
  • 1
  • 0
  • 9135
3 years ago by jsRant

I have var arr = [     {        name: 'a',        value: 1    },    {  &nb . . .

javascriptarrayobjectsfor-of
  • 1
  • 0
  • 626
3 years ago by Fischer

I am using Socialite2.0 with Laravel5.3 Facebook and Google authentication are working well. With twitter, it fails because twitter is not sending back email id. The createOrGetUser() method is . . .

socialitetwitterlaravelauthenticationoauth1
  • 1
  • 0
  • 1449
3 years ago by Mark

I'm using Visual Studio 2015 Community edition to create a Windows IoT background application on VB.NET. When I try to debug with watch on certain variables, i see the message "To inspect the native . . .

windows-iotvs-2015vbnet
  • 1
  • 0
  • 4840
3 years ago by jsRant

I know we can use Math.min to do this .apply() on Math function makes it accept unlimited arguments Array.min = function( array ){ return Math.min.apply( Math, array ); }; How to do this with . . .

javascriptarray
  • 2
  • 1
  • 611
3 years ago by jsRant

When should I use eval() in Javascript ? What are the pros and cons of using eval() ? . . .

javascript
  • 1
  • 0
  • 468
3 years ago by jsRant

Some of the codebase that I am working on has scripts starting with ; and ending with (); What is the purpose of this? . . .

javascript
  • 0
  • 0
  • 492
3 years ago by jsRant

Some of the javascript codebase that I am working on has  "use strict"; What is the use of this? . . .

javascriptuse-strict
  • 2
  • 0
  • 793
3 years ago by josh

Hi, I have multiple tinyMCE instances like  <script src="//cdn.tinymce.com/4/tinymce.min.js"></script> <script type="text/javascript"> tinymce.init({ selector: '#my . . .

tinymcejavascriptmultiple-instancesplugins
  • 1
  • 0
  • 815
3 years ago by Binoy

I have a html table like below No Item Name Quantity Price 1 Abcd 12 10 2 decf 5 15 3 xyz 20 10 . . .

cssauto-numbercss3
  • 2
  • 0
  • 1226
3 years ago by Binoy

I have a xml sitemap file which contains all site urls like this   urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLoc . . .

xmlhtmlsitemap
  • 0
  • 0
  • 983
3 years ago by dig_abacus

Given an integer value x, how to search a linked list and delete all nodes with data value greater than x? How to optimally do this in Javascript?Update on 2016-11-17I am implementing the list in jav . . .

javascriptlinked-listsearchremove
  • 7
  • 0
  • 819
3 years ago by josh

There is an array of objects with a string attribute called name and a number attribute called age.  arr = [ {name: "abba", age: 23}, {name: "lovely", age: 23}, {name: "vincent", age: 5}, {name: . . .

sortingjavascriptjson
  • 3
  • 0
  • 554
3 years ago by Binoy

I am getting this error on my VB.net program Conversion from type 'DBNull' to type 'String' is not valid The error occurs at the below line strResult= dtGrid.Rows(i).Item("RESULT") dtGrid is a dat . . .

vbnetvs2010visual-basic
  • 1
  • 0
  • 1221
3 years ago by Binoy

I have an excel workbook that is encrypted by someone else with Information rights management (IRM). Is it possible to remove the encryption from this file? If i click on File -> Info ->Protect . . .

excel-2013irm
  • 0
  • 0
  • 1543