How many parameters are too many?
Routines can have parameters, that's no news. You can define as many parameters as you may need, but too many of them will make your routine difficult to understand and maintain. Of course, you could...
- Modified
- 15 Nov at 14:27
Is SQL syntax case sensitive?
Is SQL case sensitive? I've used [MySQL](https://en.wikipedia.org/wiki/MySQL) and [SQL Server](https://en.wikipedia.org/wiki/Microsoft_SQL_Server) which both seem to be case insensitive. Is this alw...
- Modified
- 22 Aug at 20:24
iPhone development on Windows
> [How can I develop for iPhone using a Windows development machine?](https://stackoverflow.com/questions/22358/how-can-i-develop-for-iphone-using-a-windows-development-machine) Is there a way...
How do I fix a NoSuchMethodError?
I'm getting a `NoSuchMethodError` error when running my Java program. What's wrong and how do I fix it?
- Modified
- 26 Apr at 00:34
Is there any way to fix package-lock.json lockfileVersion so npm uses a specific format?
If two different developers are using different versions of node (12/15) & npm (6/7) in a project that was originally created using a `package-lock.json` `"lockfileVersion": 1`, when the developer usi...
- Modified
- 13 Nov at 00:24
React.useState does not reload state from props
I'm expecting state to reload on props change, but this does not work and `user` variable is not updated on next `useState` call, what is wrong? ``` function Avatar(props) { const [user, setUser] =...
- Modified
- 14 Nov at 02:31
Pylint "unresolved import" error in Visual Studio Code
I am using the following setup - [macOS v10.14](https://en.wikipedia.org/wiki/MacOS_Mojave)- - - - I want to use linting to make my life a bit easier in Visual Studio Code. However, for every import ...
- Modified
- 27 Jun at 16:8
If '<selector>' is an Angular component, then verify that it is part of this module
I am new in Angular2. I have tried to create a component but showing an error. This is the `app.component.ts` file. ``` import { Component } from '@angular/core'; import { MyComponentComponent } fro...
- Modified
- 12 May at 12:12
`col-xs-*` not working in Bootstrap 4
I have not encountered this before, and I am having a very hard time trying to find the solution. When having a column equal to medium in bootstrap like so: ``` <h1 class="text-center">Hello, world!<...
- Modified
- 26 Feb at 19:29
What is class="mb-0" in Bootstrap 4?
The [latest documention](https://v4-alpha.getbootstrap.com/content/typography/#blockquotes) has: ``` <p class="mb-0">Lorem ipsum</p> ``` What is `mb-0`?
- Modified
- 1 Jul at 14:16
How do I select multiple fields in jq?
My input file looks something like this: ``` { "login": "dmaxfield", "id": 7449977, ... } { "login": "dmaxfield", "id": 7449977, ... } ``` I can get all the login names with this : `cat m...
- Modified
- 17 Jul at 13:59
How can I initialize a MySQL database with schema in a Docker container?
I am trying to create a container with a MySQL database and add a schema to these database. My current Dockerfile is: ``` FROM mysql MAINTAINER (me) <email> # Copy the database schema to the /data...
- Modified
- 24 Jul at 12:27
How to set 'X-Frame-Options' on iframe?
If I create an `iframe` like this: ``` var dialog = $('<div id="' + dialogId + '" align="center"><iframe id="' + frameId + '" src="' + url + '" width="100%" frameborder="0" height="'+frameHeightForI...
- Modified
- 19 Jan at 01:54
Changing the Status Bar Color for specific ViewControllers using Swift in iOS8
``` override func preferredStatusBarStyle() -> UIStatusBarStyle { return UIStatusBarStyle.LightContent; } ``` Using the above code in any ViewController to set the statusBar color to White for a sp...
- Modified
- 14 Feb at 06:41
Showing the same file in both columns of a Sublime Text window
When I have 2 columns set in a Sublime Text window, can I display the same file in both columns?
- Modified
- 3 Jun at 16:43
Java 8: How do I work with exception throwing methods in streams?
Suppose I have a class and a method ``` class A { void foo() throws Exception() { ... } } ``` Now I would like to call foo for each instance of `A` delivered by a stream like: ``` void bar...
- Modified
- 8 May at 20:31
Error: Cannot pull with rebase: You have unstaged changes
I have started collaborating with a few friends on a project & they use the heroku git repository. I cloned the repository a few days ago and they have since made some changes so I am trying to get t...
Failed to execute 'btoa' on 'Window': The string to be encoded contains characters outside of the Latin1 range.
The error in the title is thrown only in Google Chrome, according to my tests. I'm base64 encoding a big XML file so that it can be downloaded: ``` this.loader.src = "data:application/x-forcedownload...
- Modified
- 22 Apr at 15:23
Docker and securing passwords
I've been experimenting with Docker recently on building some services to play around with and one thing that keeps nagging me has been putting passwords in a Dockerfile. I'm a developer so storing pa...
How can I "sleep" a Dart program
I like to simulate an asynchronous web service call in my Dart application for testing. To simulate the randomness of these mock calls responding (possibly out of order) I'd like to program my mocks ...
- Modified
- 26 Aug at 17:42
Type of conditional expression cannot be determined because there is no implicit conversion between 'int' and <null>
Why does this not compile? ``` int? number = true ? 5 : null; ``` > Type of conditional expression cannot be determined because there is no implicit conversion between 'int' and <null>
Set android shape color programmatically
I am editing to make the question simpler, hoping that helps towards an accurate answer. Say I have the following `oval` shape: ``` <?xml version="1.0" encoding="utf-8"?> <shape xmlns:android="http:...
- Modified
- 4 Feb at 01:27
Group query results by month and year in postgresql
I have the following database table on a Postgres server: ``` id date Product Sales 1245 01/04/2013 Toys 1000 1245 01/04/2013 Toys 2000 1231 01/02/2013 Bic...
- Modified
- 5 Jul at 20:17
MySQL: How to reset or change the MySQL root password?
How do I change the MySQL root password and username in ubuntu server? Do I need to stop the mysql service before setting any changes? I have a phpmyadmin setup as well, will phpmyadmin get updated...
- Modified
- 5 Oct at 08:53
Convert character to ASCII numeric value in java
I have `String name = "admin";` then I do `String charValue = name.substring(0,1); //charValue="a"` I want to convert the `charValue` to its ASCII value (97), how can I do this in java?