Questions

Laravel PHP Command Not Found

I have installed Laravel using composer without problems, but when I try to execute "" in my terminal I have this typical error: > -bash: laravel: command not found If I read the documentation of the ...

29 Dec at 01:20

Move SQL data from one table to another

I was wondering if it is possible to move all rows of data from one table to another, that match a certain query? For example, I need to move all table rows from Table1 to Table2 where their username...

10 Aug at 10:46

How to change the color of the axis, ticks and labels for a plot

I'd like to Change the color of the axis, as well as ticks and value-labels for a plot I did using matplotlib and PyQt. Any ideas?

9 Feb at 22:49

Get the current date and time

I want to get the current date and time. For example: ``` 2012/11/13 06:30:38 ``` What I have tried: ``` Dim d As System.DateTime MsgBox(d.Year) 'Return 1 ```

27 Apr at 16:55

Are arrays passed by value or passed by reference in Java?

Arrays are not a [primitive type](http://docs.oracle.com/javase/tutorial/java/nutsandbolts/datatypes.html) in Java, but they [are not objects either](https://stackoverflow.com/questions/5564423/arrays...

16 Dec at 04:24

How to write text on a image in windows using python opencv2

I want to put some text on an Image. I am writing the code as: ``` cv2.putText(image,"Hello World!!!", (x,y), cv2.CV_FONT_HERSHEY_SIMPLEX, 2, 255) ``` It gives ERROR, saying 'module' object has no ...

28 Mar at 14:19

Change the color of cells in one column when they don't match cells in another column

I want to check if the values in one column are the same as values in another column. Whenever the values are not the same, I would like to change the color of these cells. For example: ![http://i60...

25 Nov at 12:0

OpenSSL: unable to verify the first certificate for Experian URL

I am trying to verify an SSL connection to Experian in Ubuntu 10.10 with OpenSSL client. ``` openssl s_client -CApath /etc/ssl/certs/ -connect dm1.experian.com:443 ``` The problem is that the connect...

18 Dec at 23:2

Difference between static and shared libraries?

What is the difference between static and shared libraries? I use Eclipse and there are several project types including Static Libraries and Shared Libraries? Does one have an advantage over the othe...

Sort a list alphabetically

I have the following class: ``` class Detail { public Detail() { _details = new List<string>(); } public IList<string> Details { get { return _details; } } private readonl...

6 Dec at 21:0

Correct mime type for .mp4

I have two applications as mentioned below: 1. Admin application through which I am able to upload a .mp4 file to the server. 2. I am trying to download the .mp4 using mobile application in iPad. ...

4 May at 18:32

How to get the current working directory using python 3?

When I run the following script in IDLE ``` import os print(os.getcwd()) ``` I get output as ``` D:\testtool ``` but when I run from cmd prompt, I get ``` c:\Python33>python D:\testtool\current...

Conversion from Long to Double in Java

Is there any way to convert a `Long` data type to `Double` or `double`? For example, I need to convert `15552451L` to a `double` data type.

20 Dec at 15:43

Vim 80 column layout concerns

The way I do 80-column indication in Vim seems incorrect:`set columns=80`. At times I also `set textwidth`, but I want to be able to see and anticipate line overflow with the `set columns` alternativ...

26 Nov at 04:10

How to Exit a Method without Exiting the Program?

I am still pretty new to C# and am having a difficult time getting used to it compared to C/CPP. How do you exit a function on C# without exiting the program like this function would? ``` if (textB...

3 Aug at 16:18

How do I supply an initial value to a text field?

I'd like to supply an initial value to a text field and redraw it with an empty value to clear the text. What's the best approach to do that with Flutter's APIs?

1 Apr at 07:26

Add an image in a WPF button

I tried this solution: ``` <Button> <StackPanel> <Image Source="Pictures/img.jpg" /> <TextBlock>Blablabla</TextBlock> </StackPanel> </Button> ``` But I can see the image onl...

5 May at 16:33

How do I syntax check a Bash script without running it?

Is it possible to check a bash script syntax without executing it? Using Perl, I can run `perl -c 'script name'`. Is there any equivalent command for bash scripts?

5 Mar at 21:29

How to create custom exceptions in Java?

How do we create custom exceptions in Java?

10 Sep at 18:7

Changing directory in Google colab (breaking out of the python interpreter)

So I'm trying to git clone and cd into that directory using Google collab - but I cant cd into it. What am I doing wrong? > !rm -rf SwitchFrequencyAnalysis && git clone [https://github.com/ACECentre/...

20 Jun at 09:12

error LNK2019: unresolved external symbol _main referenced in function ___tmainCRTStartup

I don't know what's wrong with it.. I can't find where the error is, commenting out the implementation doesn't resolve the error either. ``` #ifndef MAIN_SAVITCH_SEQUENCE_H #define MAIN_SAVITCH_SEQ...

30 Jan at 20:43

Are string.Equals() and == operator really same?

Are they really same? Today, I ran into this problem. Here is the dump from the Immediate Window: ``` ?s "Category" ?tvi.Header "Category" ?s == tvi.Header false ?s.Equals(tvi.Header) true ?s...

18 Jan at 15:16

How to programmatically set cell value in DataGridView?

I have a DataGridView. Some of the cells receive their data from a serial port: I want to shove the data into the cell, and have it update the underlying bound object. I'm trying something like this:...

4 Oct at 12:10

Converting Decimal to Binary Java

I am trying to convert decimal to binary numbers from the user's input using Java. I'm getting errors. ``` package reversedBinary; import java.util.Scanner; public class ReversedBinary { public ...

27 Sep at 20:6

jQuery lose focus event

I'm trying to show up a container if a input field gets the focus and - that's the actual problem - hide the container if focus is lost. Is there an opposite event for jQuery's focus? Some example co...