Questions

How to remove unwanted space between rows and columns in table?

How do I remove the extra space between the rows and columns in the table. I've tried changing the margin, padding, and various border properties on the table and tr and td. I want the pictures to a...

22 May at 13:59

CSS display: inline vs inline-block

In CSS, `display` can have values of `inline` and `inline-block`. Can anyone explain in detail the difference between `inline` and `inline-block`? I searched everywhere, the most detailed explanation...

23 May at 12:34

Hadoop "Unable to load native-hadoop library for your platform" warning

I'm currently configuring hadoop on a server running . When I run `start-dfs.sh` or `stop-dfs.sh`, I get the following error: > WARN util.NativeCodeLoader: Unable to load native-hadoop library for ...

Maven skip tests

I am using Maven 2.2.1 and to build my project I used this command ``` mvn clean install -Dmaven.test.skip=true ``` However, the build failed saying it couldn't find one of the artifact. However, w...

13 Jul at 22:54

What is a stored procedure?

What is a and how do they work? What is the make-up of a stored procedure (things each have to be a stored procedure)?

31 Dec at 15:56

Change Placeholder Text using jQuery

I am using a jQuery placeholder plugin(https://github.com/danielstocks/jQuery-Placeholder). I need to change the placeholder text with the change in dropdown menu. But it is not changing. Here is the ...

10 Feb at 18:44

Select Last Row in the Table

I would like to retrieve the last file inserted into my table. I know that the method `first()` exists and provides you with the first file in the table but I don't know how to get the last insert.

21 Nov at 13:39

How to resolve "git did not exit cleanly (exit code 128)" error on TortoiseGit?

I've run into this serious error while committing, and [created a bug report](https://tortoisegit.org/issue/1101). I keep getting this error on TortoiseGit operations: > git did not exit cleanly (ex...

6 Sep at 18:58

How to set auto increment primary key in PostgreSQL?

I have a table in PostgreSQL with many columns, and I want to add an auto increment primary key. I tried to create a column called `id` of type `BIGSERIAL` but pgadmin responded with an error: > ``` E...

23 Oct at 12:2

How do you create different variable names while in a loop?

For example purposes... ``` for x in range(0,9): string'x' = "Hello" ``` So I end up with string1, string2, string3... all equaling "Hello"

22 Dec at 06:32

Which characters need to be escaped in HTML?

Are they the same as XML, perhaps plus the space one (` `)? I've found some huge lists of HTML escape characters but I don't think they be escaped. I want to know what to be escaped.

How to print color in console using System.out.println?

How can I print color in console? I want to show data in colors when the processor sends data and in different colors when it receives data.

24 Jul at 04:6

How to disable the resize grabber of <textarea>?

How to disable the grabber in the `<textarea>`? I mean that triangle thing which appears in the right-bottom corner of the `<textarea>`.

24 Jun at 20:16

Change default text in input type="file"?

I want to change default text on button that is "`Choose File`" when we use `input="file"`. ![enter image description here](https://i.stack.imgur.com/rcdgH.png) How can I do this? Also as you can se...

13 Nov at 18:20

How to search a string in multiple files and return the names of files in Powershell?

I have started learning powershell a couple of days ago, and I couldn't find anything on google that does what I need so please bear with my question. I have been asked to replace some text strings i...

Read lines from a file into a Bash array

I am trying to read a file containing lines into a Bash array. I have tried the following so far: # Attempt1 ``` a=( $( cat /path/to/filename ) ) ``` # Attempt2 ``` index=0 while read line...

22 Apr at 00:32

Is there a way to use SVG as content in a pseudo element ::before or ::after

I would like to use `::before` to place SVG images before some selected elements: ``` #mydiv::before { content: '<svg ... code here</svg>'; display: block; width: 22px; height: 10px; margin:...

9 May at 12:45

Regex to test if string begins with http:// or https://

I'm trying to set a regexp which will check the start of a string, and if it contains either `http://` or `https://` it should match it. How can I do that? I'm trying the following which isn't workin...

10 Jan at 02:6

How do I add validation to the form in my React component?

My Contact page form is as follows, ``` <form name="contactform" onSubmit={this.contactSubmit.bind(this)}> <div className="col-md-6"> <fieldset> <input ref="name" type="text" size="30" pl...

Deprecated: mysql_connect()

I am getting this warning, but the program still runs correctly. The MySQL code is showing me a message in PHP: > Deprecated: mysql_connect(): The mysql extension is deprecated and will be removed...

22 Feb at 08:26

Connecting to Postgresql in a docker container from outside

I have Postgresql on a server in a docker container. How can I connect to it from the outside, that is, from my local computer? What setting should I apply to allow that?

8 Jun at 06:39

Download data URL file

I'm playing with the idea of making a completely JavaScript-based zip/unzip utility that anyone can access from a browser. They can just drag their zip directly into the browser and it'll let them dow...

2 Apr at 06:12

Linux command to print directory structure in the form of a tree

Is there any linux command that I can call from a Bash script that will print the directory structure in the form of a tree, e.g., ``` folder1 a.txt b.txt folder2 folder3 ```

11 Oct at 13:31

Add new value to an existing array in JavaScript

In PHP, I'd do something like: ``` $array = array(); $array[] = "value1"; $array[] = "value2"; $array[] = "value3"; ``` How would I do the same thing in JavaScript?

15 Nov at 10:9

open_basedir restriction in effect. File(/) is not within the allowed path(s):

I'm getting this error on an avatar upload on my site. I've never gotten it before and nothing was changed recently for me to begin getting this error... ``` Warning: is_writable() [function.is-writ...

4 Dec at 15:44