No Application Encryption Key Has Been Specified
I'm trying to use the Artisan command like this: ``` php artisan serve ``` It displays: > Laravel development server started: [http://127.0.0.1:8000](http://127.0.0.1:8000) However, it won't automati...
- Modified
- 29 Dec at 00:44
What's the difference between map() and flatMap() methods in Java 8?
In Java 8, what's the difference between [Stream.map()](http://docs.oracle.com/javase/8/docs/api/java/util/stream/Stream.html#map-java.util.function.Function-) and [Stream.flatMap()](http://docs.oracl...
- Modified
- 26 Nov at 14:38
How to make rpm auto install dependencies
I have built two RPM packages - `proj1-1.0-1.x86_64.rpm`- `libtest1-1.0-1.x86_64.rpm` `proj1` depends on the file `libtest1.so` being present and it is reflected correctly in the RPM packages as see...
- Modified
- 13 Sep at 09:55
Curl GET request with json parameter
I am trying to send a "GET" request to a remote REST API from Command Prompt via cURL like this: ``` curl -X GET \ -H "Content-type: application/json" \ -H "Accept: application/json" \ "http://s...
updating table rows in postgres using subquery
I have this table in a postgres 8.4 database: ``` CREATE TABLE public.dummy ( address_id SERIAL, addr1 character(40), addr2 character(40), city character(25), state character(2), zip chara...
- Modified
- 10 Jan at 00:29
Display the current time and date in an Android application
How do I display the current date and time in an Android application?
- Modified
- 16 Dec at 14:47
What is JSON and what is it used for?
I've looked on Wikipedia and Googled it and read the official documentation, but I still haven't got to the point where I really understand what JSON is, and why I'd use it. I have been building appli...
- Modified
- 18 Jun at 20:36
Javascript: How to check if a string is empty?
I know this is really basic, but I am new to javascript and can't find an answer anywhere. How can I check if a string is empty?
- Modified
- 23 May at 12:26
Can PHP cURL retrieve response headers AND body in a single request?
Is there any way to get both headers and body for a cURL request using PHP? I found that this option: ``` curl_setopt($ch, CURLOPT_HEADER, true); ``` is going to return the , but then I need to par...
How to define an enum with string value?
I am trying to define an `Enum` and add valid common separators which used in CSV or similar files. Then I am going to bind it to a `ComboBox` as a data source so whenever I add or remove from the Enu...
How to add spacing between columns?
I have two columns: ``` <div class="col-md-6"></div> <div class="col-md-6"></div> ``` How can I add a space between them? The output would simply be two columns right next to each other taking up the...
- Modified
- 5 Feb at 00:8
How do I clear all options in a dropdown box?
My code works in IE but breaks in Safari, Firefox, and Opera. (big surprise) ``` document.getElementById("DropList").options.length=0; ``` After searching, I've learned that it's the `length=0` tha...
- Modified
- 11 May at 22:14
How to remove special characters from a string?
I want to remove special characters like: ``` - + ^ . : , ``` from an String using Java.
How to get the list of all database users
I am going to get the list of all users, including Windows users and 'sa', who have access to a particular database in MS SQL Server. Basically, I would like the list to look like as what is shown in ...
- Modified
- 2 May at 10:2
DISABLE the Horizontal Scroll
Ok for some reason my webpage scrolls from left to right and shows a lot of ugly space. I have searched for results but they just made the scrollbar That's now what I want, I want to physically ...
Type definition in object literal in TypeScript
In TypeScript classes it's possible to declare types for properties, for example: ``` class className { property: string; }; ``` How do declare the type of a property in an object literal? I've ...
- Modified
- 19 Jun at 16:30
Conda command not found
I've installed Miniconda and have added the environment variable `export PATH="/home/username/miniconda3/bin:$PATH"` to my `.bashrc` and `.bash_profile` but still can't run any conda commands in my te...
How do I send a cross-domain POST request via JavaScript?
How do I send a cross-domain POST request via JavaScript? Notes - it shouldn't refresh the page, and I need to grab and parse the response afterwards.
- Modified
- 29 Nov at 09:29
PHP Warning: POST Content-Length of 8978294 bytes exceeds the limit of 8388608 bytes in Unknown on line 0
I am getting this error when trying to upload an import on WordPress on my XAMPP local dev environment: Warning: POST Content-Length of 8978294 bytes exceeds the limit of 8388608 bytes in Unknown on ...
How do I run Python code from Sublime Text 2?
I want to set up a complete Python IDE in Sublime Text 2. I want to know how to run the Python code from within the editor. Is it done using build system? How do I do it ?
- Modified
- 21 Dec at 18:56
Get full path of the files in PowerShell
I need to get all the files including the files present in the subfolders that belong to a particular type. I am doing something like this, using [Get-ChildItem](http://technet.microsoft.com/en-us/li...
- Modified
- 26 Sep at 19:15
Is it possible to run one logrotate check manually?
Is it possible to run one iteration of logrotate manually without scheduling it on some interval?
Graphviz: How to go from .dot to a graph?
I can't seem to figure this out. I have a .dot file, which is valid according to the syntax. How do I use graphviz to convert this into an image? (note that I'm on Windows, not linux)
What are all the escape characters?
I know some of the escape characters in Java, e.g. ``` \n : Newline \r : Carriage return \t : Tab \\ : Backslash ... ``` Is there a complete list somewhere?
How to iterate over the keys and values with ng-repeat in AngularJS?
In my controller, I have data like: `$scope.object = data` Now this data is the dictionary with keys and values from `json`. I can access the attribute with `object.name` in the template. Is there a...
- Modified
- 29 Oct at 10:29