Getting a 500 Internal Server Error (require() failed opening required path) on Laravel 5+ Ubuntu 14.04
I have installed Laravel many times on Windows OS but never had this problem. However, on Ubuntu 14.04 I am getting a 500 Internal Server Error, and messages like this in my logs: > [Wed Jul 22 10:20:...
- Modified
- 21 Apr at 09:27
Find and replace strings in vim on multiple lines
I can do `:%s/<search_string>/<replace_string>/g` for replacing a string across a file, or `:s/<search_string>/<replace_string>/` to replace in current line. How can I select and replace words from s...
How to change border color of textarea on :focus
I want to change border color of TEXTAREA on focus. But my code doesn't seem to working properly. The code is on [fiddle](http://fiddle.jshell.net/ffS4S/). ``` <form name = "myform" method = "post" ac...
curl: (6) Could not resolve host: google.com; Name or service not known
when I try to load a web page to terminal it gives `curl: (6) Could not resolve host` error. I have internet in my PC and trying from my home internet connection. So as I there is no any proxy invol...
How do I remove packages installed with Python's easy_install?
Python's `easy_install` makes installing new packages extremely convenient. However, as far as I can tell, it doesn't implement the other common features of a dependency manager - listing and removing...
- Modified
- 5 Aug at 07:33
Examples of GoF Design Patterns in Java's core libraries
I am learning GoF Java Design Patterns and I want to see some real life examples of them. What are some good examples of these Design Patterns in Java's core libraries?
- Modified
- 11 Apr at 03:40
What is event bubbling and capturing?
What is the difference between event bubbling and capturing? When should one use bubbling vs capturing?
- Modified
- 21 Aug at 21:48
Run certain code every n seconds
Is there a way to, for example, print `Hello World!` every n seconds? For example, the program would go through whatever code I had, then once it had been 5 seconds (with `time.sleep()`) it would exec...
- Modified
- 3 Nov at 12:8
Get a filtered list of files in a directory
I am trying to get a list of files in a directory using Python, but I do not want a list of ALL the files. What I essentially want is the ability to do something like the following but using Python a...
- Modified
- 17 Jan at 23:58
Convert boolean to int in Java
What is the most accepted way to convert a `boolean` to an `int` in Java?
convert datetime to date format dd/mm/yyyy
I have a DateTime object `2/19/2011 12:00:00 AM`. I want to convert this object to a string `19/2/2011`. Please help me to convert DateTime to string format.
How to post data to specific URL using WebClient in C#
I need to use "HTTP Post" with WebClient to post some data to a specific URL I have. Now, I know this can be accomplished with WebRequest but for some reasons I want to use WebClient instead. Is that ...
How do I compute derivative using Numpy?
How do I calculate the derivative of a function, for example > y = x+1 using `numpy`? Let's say, I want the value of derivative at x = 5...
How to get ASCII value of string in C#
I want to get the ASCII value of characters in a string in C#. If my string has the value "9quali52ty3", I want an array with the ASCII values of each of the 11 characters. How can I get ASCII value...
What is the use of the JavaScript 'bind' method?
What is the use of `bind()` in JavaScript?
- Modified
- 18 Aug at 01:4
Textarea Auto height
I want to make height of textarea equal to height of the text within it (And remove the scroll bar) HTML ``` <textarea id="note">SOME TEXT</textarea> ``` CSS ``` textarea#note { width:100%; ...
- Modified
- 28 Dec at 12:19
CSS div element - how to show horizontal scroll bars only?
I have a div container and have defined its style as follows: ``` div#tbl-container { width: 600px; overflow: auto; scrollbar-base-color:#ffeaff } ``` This gives me both horizon...
HTML code for an apostrophe
Seemingly simple, but I cannot find anything relevant on the web. What is the correct HTML code for an apostrophe? Is it `’`?
Using RegEx in SQL Server
I'm looking how to replace/encode text using RegEx based on RegEx settings/params below: ``` RegEx.IgnoreCase = True RegEx.Global = True RegEx.Pattern = "[^a-z\d\s.]+" ``` I have seen som...
- Modified
- 19 Jan at 15:9
jQuery - replace all instances of a character in a string
This does not work and I need it badly ``` $('some+multi+word+string').replace('+', ' ' ); ``` always gets ``` some multi+word+string ``` it's always replacing for the first instance only, but I...
Difference between wait and sleep
What is difference between `wait` and `sleep`?
Show diff between commits
I am using Git on [Ubuntu 10.04](https://en.wikipedia.org/wiki/Ubuntu_version_history#Ubuntu_10.04_LTS_.28Lucid_Lynx.29) (Lucid Lynx). I have made some commits to my master. However, I want to get t...
How do I change the number of open files limit in Linux?
When running my application I sometimes get an error about `too many files open`. Running `ulimit -a` reports that the limit is 1024. How do I increase the limit above 1024? `ulimit -n 2048` res...
- Modified
- 25 Apr at 23:0