Questions

How to figure out the SMTP server host?

I am using SMTP to send emails by PHP. My client has a shared hosting. I created an email account there. There is no information available about what will be the SMTP server for this account. I have...

4 Dec at 16:57

Fastest way to check a string contain another substring in JavaScript?

I'm working with a performance issue on JavaScript. So I just want to ask: what is the fastest way to check whether a string contains another substring (I just need the boolean value)? Could you pleas...

23 Jul at 01:44

jQuery Validate Plugin - How to create a simple custom rule?

How do you create a simple, custom rule using the jQuery Validate plugin (using [addMethod](http://jqueryvalidation.org/jQuery.validator.addMethod)) that doesn't use a regex? For example, what functi...

26 Sep at 15:10

How to ignore the certificate check when ssl

I am trying find a way to ignore the certificate check when request a Https resource, so far, I found some helpful article in internet. But I still have some problem. Please review my code. I just d...

5 Sep at 08:46

How do I split a string into an array of characters?

``` var s = "overpopulation"; var ar = []; ar = s.split(); alert(ar); ``` I want to string.split a word into array of characters. The above code doesn't seem to work - it returns "overpopulation" ...

26 Jun at 15:18

Google Maps API throws "Uncaught ReferenceError: google is not defined" only when using AJAX

I have a page that uses the Google Maps API to display a map. When I load the page directly, the map appears. However, when I try to load the page using AJAX, I get the error: ``` Uncaught Reference...

9 Jan at 06:44

How to automatically convert strongly typed enum into int?

``` #include <iostream> struct a { enum LOCAL_A { A1, A2 }; }; enum class b { B1, B2 }; int foo(int input) { return input; } int main(void) { std::cout << foo(a::A1) << std::endl; std::cout <...

25 Jun at 21:14

text flowing out of div

When the text is and it's flowing out The width is defined as 200px I have put my code here [http://jsfiddle.net/madhu131313/UJ6zG/](http://jsfiddle.net/madhu131313/UJ6zG/) You can see the below p...

30 Aug at 12:44

What is the use of static variable in C#? When to use it? Why can't I declare the static variable inside method?

I have searched about static variables in C#, but I am still not getting what its use is. Also, if I try to declare the variable inside the method it will not give me the permission to do this. Why? ...

23 Apr at 12:56

Call another rest api from my server in Spring-Boot

I want to call another web-api from my backend on a specific request of user. For example, I want to call send message api to send a message to a specific user on an event. Does have any method to...

19 Mar at 16:37

How can I set the aspect ratio in matplotlib?

I'm trying to make a square plot (using imshow), i.e. aspect ratio of 1:1, but I can't. None of these work: ``` import matplotlib.pyplot as plt ax = fig.add_subplot(111,aspect='equal') ax = fig.add_...

23 Oct at 20:13

fe_sendauth: no password supplied

database.yml: ``` # SQLite version 3.x # gem install sqlite3 # # Ensure the SQLite 3 gem is defined in your Gemfile # gem 'sqlite3' development: adapter: postgresql encoding: utf8 databas...

1 Aug at 14:37

How can I use a carriage return in a HTML tooltip?

I'm currently adding verbose tooltips to our site, and I'd like (without having to resort to a whizz-bang jQuery plugin, I know there are many!) to use carriage returns to format the tooltip. To add ...

4 Mar at 11:58

What is the difference between varchar and varchar2 in Oracle?

What is the difference between varchar and varchar2?

2 Sep at 13:14

How do I get the HTML code of a web page in PHP?

I want to retrieve the HTML code of a link (web page) in PHP. For example, if the link is [https://stackoverflow.com/questions/ask](https://stackoverflow.com/questions/ask) then I want the HTML cod...

23 May at 12:26

How to change title of Activity in Android?

I am using ``` Window w = getWindow(); w.setTitle("My title"); ``` to change title of my current Activity but it does not seem to work. Can anyone guide me on how to change this?

5 Mar at 10:7

React Native: Possible unhandled promise rejection

I'm getting the following error: > `Possible unhandled promise rejection (id:0: Network request failed)` Here's the promise code, I don't see what's wrong here, any ideas? ``` return fetch(url) ....

15 Sep at 10:39

Can't find file executable in your configured search path for gnc gcc compiler

My problem is that code::blocks error message tells me that it can't find file executable in the search path for `gnc gcc` compiler. Although, I don't know what that means. Also I typed out some c...

24 Apr at 06:29

How to stop/kill a query in postgresql?

This question is while postmaster is running your query in the background, how to kill or stop it? For example, your shell or any frontend may be disconnected due to network issue, you cannot use ctr...

10 Feb at 15:43

Android Studio gradle takes too long to build

My project used to build faster but now it takes a long time to build. Any ideas what could be causing the delays? I have tried [https://stackoverflow.com/a/27171878/391401](https://stackoverflow.com...

Why use Gradle instead of Ant or Maven?

What does another build tool targeted at Java really get me? If you use Gradle over another tool, why?

30 Aug at 10:6

How can I populate textboxes with data from a DataGridViewRow?

I have a `DataGridView` (`Selectionmode: FullRowSelect`) and some textboxes on a Windows Form. I want the contents of a row that is clicked (or double clicked) to be displayed in the textboxes. I trie...

4 Mar at 13:52

"Please provide a valid cache path" error in laravel

I duplicated a working laravel app and renamed it to use for another app. I deleted the vendor folder and run the following commands again: ``` composer self-update composer-update npm install bo...

27 Feb at 15:24

What characters are valid for JavaScript variable names?

Which characters can be used for naming a JavaScript variable? I want to create a small "extension library" for my non-JavaScript users here at work (who all seem to be squeamish when it comes to the...

7 Jun at 15:42