Since ApiController was made to work without IIS Hosting, it does not depend upon the HttpContext object. We need System.Net.Http namespace to get the extension method GetQueryNameValuePairs() Request.GetQueryNameValuePairs() To get the param values from the query string, we need another namespace System.Linq URL: http://localhost/Person?query=test Request.GetQueryNameValuePairs().Where(nv => nv.Key == “query”).Select(nv => nv.Value).FirstOrDefault()
Petapoco Page fetch query is very slow, This is due to OrderBy clause. If we forget to append orderBy clause in query then Paged fetch will be slower to map. We need to append OrderBy clause in the query to speed up the pagination functionality. // slow performance code var sql = new Sql(“select * […]
Vagrant box built with virtualbox as provider and ubuntu trusty64 OS. Software Environment: 1. Rails 4.2 2. Ruby 2.2.4 3. rbenv version manager 4. Elixir 1.2.0 5. Phoenix web framework 6. postgres 9.3.10 7. Mysql 14.14 Can download from: https://atlas.hashicorp.com/pulsarcoder/boxes/trusty64-rails-laravel-phoenix Or using vagrant vagrant init pulsarcoder/trusty64-rails-phoenix; vagrant up –provider virtualbox
Change the .gitignore in your source to allow composer.lock to get commited to repo. After that try installing repository again.
Integrate Eclipse with Laravel: Download the following pre-made file that lists the Laravel namespaces: https://gist.github.com/barryvdh/5227822. Create a folder anywhere on your computer to hold this file. For example: D:/Laravel Projects/idehelper.php After you created an Eclipse or NetBeans Laravel project, open project properties and adjust PHP include path to include above created folder.
Navigate to D:\wamp\bin\mysql\mysql5.6.17\data and deleted the following: auto.cnf, .err, .pid, ib_logfile0 and ib_logfile1 Then restart wampserver again. Everything will work great!
We can make use timer.js jquery plugin http://jquerytimer.com/ http://keith-wood.name/countdown.html