Need Programmer to add DB function to Bootstrap Template

I need functionality added to a bootstrap responsive template. The site needs to remain responsive mobile-friendly. Need DB structure added, admin functionality, and incorporate of DB to the website.

This link has the project requirements:

I'm also in a hurry to get this done. Please PM me with your bid and completion time.


Uncaught TypeError: visitorIDs.push is not a function

I’m trying to build an array of the ID’s of the users in a peoplePicker Field by using push. So far.. I’m not having much luck as I’m getting this error “Uncaught TypeError: visitorIDs.push is not a function”

My code is below. I appreciate any suggestions/pointers:

 // Get information about all users.             var users = peoplePickerVisitors.GetAllUserInfo();             var userInfo = '';             for (var i = 0; i < users.length; i++) {                 var user = users[i];                 for (var userProperty in user) {                     userInfo += userProperty + ':  ' + user[userProperty] + '<br>';                 }             }              var userloginbase = users[0].Key;             var userlogin = userloginbase.split("\");              var context = SP.ClientContext.get_current();             var newUser = context.get_web().ensureUser('xxxxxxx\' + userlogin[1]);             context.load(newUser);             context.executeQueryAsync(function () {                 },                  function (sender, args) {                 });                 // pause for a second to let the async ensure user complete.                 setTimeout(function() {                      getAssignedToUserIdByEmail(users[0].EntityData.Email);                       visitorIDs = ResolvedToUser.Id;                     visitorIDs.push(ResolvedToUser.Id);                  }, 100);          };   

Coefficients in cost function in A-star

I’d like to expand on this question :

Dijkstra’s algorithm uses cost function $ f(n) = g(n)$ whereas A* uses cost function $ f(n) = g(n) + h(n)$ , with $ g(n)$ being the cost of the path from the start node to node $ n$ , and $ h(n)$ is a heuristic function that estimates the cost of the cheapest path from node $ n$ to the goal.

It is clear from the linked question’s answer that A* needs its $ g(n)$ function in the cost function. My question however is the following. Can one use the cost function :

$ f(n) = \alpha g(n) + (1-\alpha)h(n)$

for some alpha $ 0<\alpha<1$ ?

I ask because in some cases I observed it can be much faster to prioritize (through a coefficient) estimated cost over already traversed cost. I am not sure however if this still results in an optimal path?

EDIT : multiplying the heuristic $ h(n)$ by some alpha $ 0<\alpha<1$ is allowed, since this operation still underestimates if $ h(n)$ already did (which is necessary to obtain the resulting optimal path). I am more concerned about the multiplying of $ g(n)$ .

Adding a search function to a lookup column?


  • I have a list and a library.

  • The list has a lookup column that allows you to choose multiple documents from the library.


  • The library has several hundred documents, so it’s very difficult to find the right document(s) to add to the list item.

Is there any way I can implement a search function above the list of documents so the list filters dynamically as I start typing the beginning of the document reference?

I have yet to find a proper solution to this problem and I need to avoid using SharePoint Designer for maintenance reasons if at all possible.

Call a function from a bash script

I have a function in a specific installed program on my Ubuntu machine which is installed in /usr/local/MYPROGRAM/bin/myfn and when I try using myfn in my bash script it gives an error saying that the myfn command is not found but if I call myfn from a normal terminal window it works fine since it’s found in the ~/.bashrc file, so I wonder how I can call myfn from my bash script

Uncaught Error: Call to undefined function mysql_connect() – WordPress installation

Trying to install wordpress without xamp on my local machine. Version info:

WordPress: 5.2.3 PHP: 7.3.9 Apache: 2.4.41  

When accessing this url -http://localhost:8080/wordpress/wp-admin/install.php, I see the following in wordpress logs:

[16-Sep-2019 18:47:34 UTC] PHP Fatal error:  Uncaught Error: Call to  undefined function mysql_connect() in C:\apps\httpd-2.4.41-win64-  VS16\Apache24\htdocs\wordpress\wp-includes\wp-db.php:1643 

I tried the solutions available online but I still see the error.

Solutions I tried so far:

Add the following to my wp-config.php:

define( 'WP_USE_EXT_MYSQL', true); 

Added following to php.ini:

extension_dir = "ext" extension=php_mysqli.dll 

This is my phpinfo:

Server API  Apache 2.0 Handler Virtual Directory Support   enabled Configuration File (php.ini) Path   C:\windows Loaded Configuration File   C:\apps\php-7.3.9\php.ini Scan this dir for additional .ini files (none) Additional .ini files parsed    (none) PHP API 20180731 PHP Extension   20180731 Zend Extension  320180731 Zend Extension Build    API320180731,TS,VC15 PHP Extension Build API20180731,TS,VC15 Debug Build no Thread Safety   enabled Thread API  Windows Threads Zend Signal Handling    disabled Zend Memory Manager enabled Zend Multibyte Support  disabled IPv6 Support    enabled DTrace Support  disabled Registered PHP Streams  php, file, glob, data, http, ftp, zip, compress.zlib, phar Registered Stream Socket Transports tcp, udp Registered Stream Filters   convert.iconv.*, string.rot13, string.toupper, string.tolower, string.strip_tags, convert.*, consumed, dechunk, zlib.*