How can I send an email using PHP?
I am using PHP on a website and I want to add emailing functionality. I have [WampServer](https://en.wikipedia.org/wiki/WampServer) installed. How do I send an email using PHP?
- Modified
- 27 Mar at 02:50
How can I reconcile detached HEAD with master/origin?
I'm new at the branching complexities of Git. I always work on a single branch and commit changes and then periodically push to my remote origin. Somewhere recently, I did a reset of some files to ge...
- Modified
- 29 May at 18:21
How to make a vertical line in HTML
How do you make a vertical line using HTML?
AddTransient, AddScoped and AddSingleton Services Differences
I want to implement [dependency injection](https://en.wikipedia.org/wiki/Dependency_injection) (DI) in ASP.NET Core. So after adding this code to `ConfigureServices` method, both ways work. What is th...
- Modified
- 8 Jun at 00:10
How to SELECT FROM stored procedure
I have a stored procedure that returns rows: ``` CREATE PROCEDURE MyProc AS BEGIN SELECT * FROM MyTable END ``` My actual procedure is a little more complicated, which is why a stored procedure i...
- Modified
- 7 Apr at 11:56
How do you do block comments in YAML?
How do I comment a block of lines in YAML?
Traverse a list in reverse order in Python
How do I traverse a list in reverse order in Python? So I can start from `collection[len(collection)-1]` and end in `collection[0]`. I also want to be able to access the loop index.
How to find if an array contains a specific string in JavaScript/jQuery?
Can someone tell me how to detect if `"specialword"` appears in an array? Example: ``` categories: [ "specialword" "word1" "word2" ] ```
- Modified
- 8 Nov at 15:36
How do I get a consistent byte representation of strings in C# without manually specifying an encoding?
How do I convert a `string` to a `byte[]` in .NET (C#) without manually specifying a specific encoding? I'm going to encrypt the string. I can encrypt it without converting, but I'd still like to kno...
- Modified
- 26 Feb at 22:22
How and when to use ‘async’ and ‘await’
From my understanding one of the main things that [async and await](https://learn.microsoft.com/en-us/dotnet/csharp/async) do is to make code easy to write and read - but is using them equal to spawni...
- Modified
- 28 Sep at 20:12
How do I test a class that has private methods, fields or inner classes?
How do I use JUnit to test a class that has internal private methods, fields or nested classes? It seems bad to change the access modifier for a method just to be able to run a test.
- Modified
- 19 Oct at 20:41
python: SyntaxError: EOL while scanning string literal
I have the above-mentioned error in `s1="some very long string............"` Does anyone know what I am doing wrong?
- Modified
- 7 Apr at 03:24
Convert a list to a data frame
I have a nested list of data. Its length is 132 and each item is a list of length 20. Is there a way to convert this structure into a data frame that has 132 rows and 20 columns of data? Here is some...
Regex to match only letters
How can I write a regex that matches only letters?
- Modified
- 20 Jan at 05:19
Where does PHP store the error log? (PHP 5, Apache, FastCGI, and cPanel)
I am on shared hosting and have [cPanel](https://en.wikipedia.org/wiki/CPanel), Apache, and PHP is run by [FastCGI](https://en.wikipedia.org/wiki/FastCGI). Where does PHP store the error log? Is ther...
- Modified
- 26 Sep at 13:40
How to use java.net.URLConnection to fire and handle HTTP requests
Use of [java.net.URLConnection](http://docs.oracle.com/javase/8/docs/api/java/net/URLConnection.html) is asked about pretty often here, and the [Oracle tutorial](http://download.oracle.com/javase/tuto...
- Modified
- 11 Aug at 12:23
How do I get the current time in milliseconds in Python?
How do I get the current time in milliseconds in Python?
How to clear the canvas for redrawing
After experimenting with composite operations and drawing images on the canvas I'm now trying to remove images and compositing. How do I do this? I need to clear the canvas for redrawing other images...
- Modified
- 17 Sep at 01:35
jQuery checkbox checked state changed event
I want an event to fire client side when a checkbox is checked / unchecked: ``` $('.checkbox').click(function() { if ($(this).is(':checked')) { // Do stuff } }); ``` Basically I want it to ...
- Modified
- 30 Jun at 12:42
Join/Where with LINQ and Lambda
I'm having trouble with a query written in LINQ and Lambda. So far, I'm getting a lot of errors here's my code: ``` int id = 1; var query = database.Posts.Join(database.Post_Metas, ...
How to detect Safari, Chrome, IE, Firefox and Opera browsers?
I have 5 addons/extensions for Firefox, Chrome, Internet Explorer(IE), Opera, and Safari. How can I correctly recognize the user browser and redirect (once an install button has been clicked) to downl...
- Modified
- 10 Jul at 22:22
How do I update or sync a forked repository on GitHub?
I forked a project, made changes, and created a pull request which was accepted. New commits were later added to the repository. How do I get those commits into my fork?
- Modified
- 8 Jul at 05:19
How can I start PostgreSQL server on Mac OS X?
### Final update: I had forgotten to run the `initdb` command. --- By running this command ``` ps auxwww | grep postgres ``` I see that `postgres` is not running ``` > ps auxwww | grep postgres...
- Modified
- 27 Aug at 13:25
Difference between decimal, float and double in .NET?
What is the difference between `decimal`, `float` and `double` in .NET? When would someone use one of these?
- Modified
- 11 Jul at 18:33
How to change value of object which is inside an array using JavaScript or jQuery?
The code below comes from jQuery UI Autocomplete: ``` var projects = [ { value: "jquery", label: "jQuery", desc: "the write less, do more, JavaScript library", ico...
- Modified
- 7 Sep at 15:20