Questions

Nginx 403 forbidden for all files

I have nginx installed with PHP-FPM on a CentOS 5 box, but am struggling to get it to serve any of my files - whether PHP or not. Nginx is running as www-data:www-data, and the default "Welcome to ng...

22 Jul at 19:53

Batch file to copy directories recursively

Is there a way to copy directories recursively inside a .bat file? Is an example of this available?

3 Apr at 22:57

How do I rotate the Android emulator display?

How can I rotate the Android emulator display to see it in landscape mode?

25 Sep at 09:0

Disable Tensorflow debugging information

By debugging information I mean what TensorFlow shows in my terminal about loaded libraries and found devices etc. not Python errors. ``` I tensorflow/stream_executor/dso_loader.cc:105] successfully ...

13 Mar at 12:38

Error Dropping Database (Can't rmdir '.test\', errno: 17)

Basically, I was taught on how to create a root password using the "mysqladmin -u root -p password" command, this was done all through the windows command editor. Now, the next process was to display ...

18 Jan at 00:5

Convert .class to .java

I have some .class files that I need to convert to .java so I did: ``` javap -c ClassName.class ``` and all the time I have the same error ``` ERROR:Could not find ClassName.class ``` Do you guys ha...

14 Jan at 16:4

Is there any sed like utility for cmd.exe?

I want to programmatically edit file content using windows command line ([cmd.exe](http://en.wikipedia.org/wiki/Windows_command_line)). In *nix there is [sed](http://en.wikipedia.org/wiki/Sed) for thi...

10 Feb at 17:12

XAMPP Object not found error

I have just installed XAMPP on my machine, and when trying to access sub folders in htdocs I get the following error. > Object not found! The requested URL was not found on this server. If you entered...

20 Jun at 09:12

Initializing strings as null vs empty string

How would it matter if my C++ code (as shown below) has a string initialized as an empty string : ``` std::string myStr = ""; ....some code to optionally populate 'myStr'... if (myStr != "") { //...

25 Apr at 05:23

Leave only two decimal places after the dot

``` public void LoadAveragePingTime() { try { PingReply pingReply = pingClass.Send("logon.chronic-domination.com"); double AveragePing = (pingReply.RoundtripTime / 1.75); ...

16 May at 12:25

position div to bottom of containing div

How can i position a div to the bottom of the containing div? ``` <style> .outside { width: 200px; height: 200px; background-color: #EEE; /*to make it visible*/ } .inside { position: ...

10 May at 13:40

open resource with relative path in Java

In my Java app I need to get some files and directories. This is the program structure: ``` ./main.java ./package1/guiclass.java ./package1/resources/resourcesloader.java ./package1/resources/reposito...

13 Nov at 18:29

How to change default text file encoding in Eclipse?

Whenever I add a new html file (or other text file) to the project its encoding is set to Cp1250. I am not sure why, I guess this is probably because my default language in Windows is Polish and I don...

1 Mar at 08:31

TypeError: worker() takes 0 positional arguments but 1 was given

I'm trying to implement a subclass and it throws the error: `TypeError: worker() takes 0 positional arguments but 1 was given` ``` class KeyStatisticCollection(DataDownloadUtilities.DataDownloadCol...

19 Sep at 01:23

How to change the pop-up position of the jQuery DatePicker control

Any idea how to get the DatePicker to appear at the end of the associated text box instead of directly below it? What tends to happen is that the text box is towards the bottom of the page and the Dat...

How to edit .csproj file

When I am compiling my .csproj file using .NET Framework 4.0 MSBUILD.EXE file, I am getting an error: "lable01" not found in the current context of "website01.csproj". Actually, I need to add every AS...

9 Dec at 00:51

Opacity of div's background without affecting contained element in IE 8?

I want to set Opacity of div's background without affecting contained element in IE 8. have a any solution and don't answer to set 1 X 1 .png image and set opacity of that image because I am using dyn...

14 Apr at 10:59

Return content with IHttpActionResult for non-OK response

For returning from a Web API 2 controller, I can return content with the response if the response is OK (status 200) like this: ``` public IHttpActionResult Get() { string myResult = ... retur...

28 May at 12:32

nginx: [emerg] "server" directive is not allowed here

I have reconfigured nginx but i can't get it to restart using the following config: conf: ``` server { listen 80; server_name www.example.com; return 301 $scheme://example.com$request_uri; } ...

15 Dec at 08:18

Printing the value of a variable in SQL Developer

I wanted to print the value of a particular variable which is inside an anonymous block. I am using Oracle SQL Developer. I tried using `dbms_output.put_line`. But it is not working. The code which I ...

25 Oct at 09:44

Notice: Trying to get property of non-object error

i am trying to get data from: [http://api.convoytrucking.net/api.php?api_key=public&show=player&player_name=Mick_Gibson](http://api.convoytrucking.net/api.php?api_key=public&show=player&player_name=M...

9 Sep at 10:16

Visual Studio Code open tab in new window

I am trying to open a tab in a new window in Visual Studio Code so I can move it to another screen. If I drag the tab the other screen, a file is created. Is there a shortcut to open a tab in a new Vi...

22 Mar at 07:27

Jackson how to transform JsonNode to ArrayNode without casting?

I am changing my JSON library from org.json to Jackson and I want to migrate the following code: ``` JSONObject datasets = readJSON(new URL(DATASETS)); JSONArray datasetArray = datasets.getJSONArray...

29 Feb at 20:51

Who sets response content-type in Spring MVC (@ResponseBody)

I'm having in my Annotation driven Spring MVC Java web application runned on jetty web server (currently in maven jetty plugin). I'm trying to do some AJAX support with one controller method returnin...

image.onload event and browser cache

I want to create an alert box after an image is loaded, but if the image is saved in the browser cache, the `.onload` event will not be fired. How do I trigger an alert when an image has been loaded ...

1 Dec at 10:40