How to get Query Params in Web API ASP.Net C# from Request

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()

Continue reading


Vagrant box for rails4 elixir and phoenix using ubuntu trusty64

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

Continue reading


How to include laravel in eclipse or netbeans with ide helper

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.

Continue reading