5.7.57 SMTP - Client was not authenticated to send anonymous mail during MAIL FROM error
I have to send mails using my web application. Given the below code showing `The SMTP server requires a secure connection or the client was not authenticated. The server response was:` > 5.7.57 SMTP...
Oracle's default date format is YYYY-MM-DD, WHY?
Oracle's default date format is YYYY-MM-DD. Which means if I do: ``` select some_date from some_table ``` ...I the time portion of my date. Yes, I know you can "fix" this with: ``` alter sessio...
- Modified
- 16 Mar at 23:51
Array and string offset access syntax with curly braces is deprecated
I've just updated my php version to 7.4, and i noticed this error pops up: > Array and string offset access syntax with curly braces is deprecated here is part of my code which is triggering the above...
How can I add shadow to the widget in flutter?
How can I add shadow to the widget like in the picture below? [This](https://stackoverflow.com/questions/52173205/how-can-put-image-inside-the-image-in-flutter/52178364#52178364) is my current widge...
- Modified
- 10 Jan at 20:25
Can I add jars to Maven 2 build classpath without installing them?
Maven 2 is driving me crazy during the experimentation / quick and dirty mock-up phase of development. I have a `pom.xml` file that defines the dependencies for the web-app framework I want to use, an...
How to force an entire layout View refresh?
I want to force the main layout resource view to redraw / refresh, in say the Activity.onResume() method. How can I do this ? By main layout view, I mean the one ('R.layout.mainscreen' below) that i...
C# Set collection?
Does anyone know if there is a good equivalent to Java's `Set` collection in C#? I know that you can somewhat mimic a set using a `Dictionary` or a `HashTable` by populating but ignoring the values, b...
- Modified
- 22 Aug at 10:13
How exactly does the android:onClick XML attribute differ from setOnClickListener?
From that I've read you can assign a `onClick` handler to a button in two ways. Using the `android:onClick` XML attribute where you just use the name of a public method with the signature`void name(V...
passing form data to another HTML page
I have two HTML pages: form.html and display.html. In form.html, there is a form: ``` <form action="display.html"> <input type="text" name="serialNumber" /> <input type="submit" value="Submit...
- Modified
- 8 Jun at 19:24
How to group by month from Date field using sql
How can I group only by month from a date field (and not group by day)? Here is what my date field looks like: ``` 2012-05-01 ``` Here is my current SQL: ``` select Closing_Date, Category, COUN...
- Modified
- 2 Dec at 15:38
How to get the screen width and height in iOS?
How can one get the dimensions of the screen in iOS? Currently, I use: ``` lCurrentWidth = self.view.frame.size.width; lCurrentHeight = self.view.frame.size.height; ``` in `viewWillAppear:` and `w...
- Modified
- 15 Apr at 14:58
printing all contents of array in C#
I am trying to print out the contents of an array after invoking some methods which alter it, in Java I use: ``` System.out.print(Arrays.toString(alg.id)); ``` how do I do this in c#?
Check if a file exists with a wildcard in a shell script
I'm trying to check if a file exists, but with a wildcard. Here is my example: ``` if [ -f "xorg-x11-fonts*" ]; then printf "BLAH" fi ``` I have also tried it without the double quotes.
Allow Access-Control-Allow-Origin header using HTML5 fetch API
I am using HTML5 fetch API. ``` var request = new Request('https://davidwalsh.name/demo/arsenal.json'); fetch(request).then(function(response) { // Convert to JSON return response.json(); })...
Delete directory with files in it?
I wonder, what's the easiest way to delete a directory with all its files in it? I'm using `rmdir(PATH . '/' . $value);` to delete a folder, however, if there are files inside of it, I simply can't d...
How can I enable the MySQLi extension in PHP 7?
I have installed PHP 7 and MySQL 5.5.47 on Ubuntu 14.04 (Trusty Tahr). I have checked installed extension using: ``` sudo apt-cache search php7-* ``` It outputs: ``` php7.0-common - Common files ...
String replace method is not replacing characters
I have a sentence that is passed in as a string and I am doing a replace on the word "and" and I want to replace it with " ". And it's not replacing the word "and" with white space. Below is an exam...
HTML5 live streaming
For school I need to set up an HTML5 live stream site. They have a flash stream-player they've been using but now they want it to use HTML5 instead. How can I do this? I tried using the video tag but ...
- Modified
- 11 Dec at 11:33
How to set text color in submit button?
I tried to change the color of the text in the submit button type but, I don't know why I am not able to change it. ``` .button { width: 105px; height: 20px; background-image: url('tiny.gif'); ...
- Modified
- 14 Jul at 12:15
*ngIf and *ngFor on same element causing error
I'm having a problem with trying to use Angular's `*ngFor` and `*ngIf` on the same element. When trying to loop through the collection in the `*ngFor`, the collection is seen as `null` and consequen...
- Modified
- 1 Feb at 11:7
Automatically resize images with browser size using CSS
I want all (or just some) of my images getting resized automatically when I resize my browser window. I've found the following code - it doesn't do anything though. ``` <!DOCTYPE html> <html lang="...
- Modified
- 25 Apr at 14:30
"UserWarning: Matplotlib is currently using agg, which is a non-GUI backend, so cannot show the figure." when plotting figure with pyplot on Pycharm
I am trying to plot a simple graph using pyplot, e.g.: ``` import matplotlib.pyplot as plt plt.plot([1,2,3],[5,7,4]) plt.show() ``` but the figure does not appear and I get the following message: ...
- Modified
- 18 Jun at 20:43
A JRE or JDK must be available in order to run Eclipse. No JVM was found after searching the following locations
Eclipse is unable to open, have used eclipse before and has open before without a problem. Now I keep getting the following error message: > A Java Runtime Environment (JRE) or Java Development Kit (...
Remove last character of a StringBuilder?
When you have to loop through a collection and make a string of each data separated by a delimiter, you always end up with an extra delimiter at the end, e.g. ``` for (String serverId : serverIds) { ...
- Modified
- 10 Jul at 17:32
Convert int to ASCII and back in Python
I'm working on making a URL shortener for my site, and my current plan (I'm open to suggestions) is to use a node ID to generate the shortened URL. So, in theory, node 26 might be `short.com/z`, node ...