Questions

How to markdown nested list items in Bitbucket?

I'm trying to see my markdown nested list items rendered with corresponding indentation when viewed in a browser live from the Bitbucket pages. But I can't figure out how it works even when using [the...

Detecting iOS / Android Operating system

I've done some research, and this question has come up, but not in the way I intend. I'm building a page for a client that is a QR code landing, which is a place to download an application. So he do...

12 Feb at 23:14

Android Support plugin for IntelliJ IDEA (or Android Studio) cannot open this project

I've tried to run Android Studio project from github but I've got this message: ``` This version of the Android Support plugin for IntelliJ IDEA (or Android Studio) cannot open this project, please re...

1 Jul at 14:10

async await return Task

Can somebody explain what does this means into a synchronous method? If I try to change the method to `async` then VS complain about it. This works: ``` public Task MethodName() { return Task.F...

7 Aug at 20:28

How to Concatenate Numbers and Strings to Format Numbers in T-SQL?

I have the following function ``` ALTER FUNCTION [dbo].[ActualWeightDIMS] ( -- Add the parameters for the function here @ActualWeight int, @Actual_Dims_Lenght int, @Actual_Dims_Width...

4 Jun at 16:1

POST data in JSON format

I have some data that I need to convert to JSON format and then POST it with a JavaScript function. ``` <body onload="javascript:document.myform.submit()"> <form action="https://www.test.net/Services...

27 Apr at 09:20

ipython notebook clear cell output in code

In a iPython notebook, I have a while loop that listens to a Serial port and `print` the received data in real time. What I want to achieve to only show the latest received data (i.e only one line sh...

18 Jul at 02:2

python NameError: global name '__file__' is not defined

When I run this code in python 2.7, I get this error: ``` Traceback (most recent call last): File "C:\Python26\Lib\site-packages\pyutilib.subprocess-3.5.4\setup.py", line 30, in <module> long_des...

18 Nov at 03:57

Best way to resolve file path too long exception

I created a app that downloads all document libraries in a SP Site , but at one point it giving me this error (I tried looking at google but couldn;t find anything, now if anyone knows any trick to so...

22 Jan at 10:42

Start service in Android

I want to call a service when a certain activity starts. So, here's the Service class: ``` public class UpdaterServiceManager extends Service { private final int UPDATE_INTERVAL = 60 * 1000; ...

7 Sep at 04:15

Oracle JDBC ojdbc6 Jar as a Maven Dependency

I cannot seem to get Maven to bundle the ojdbc6.jar file into my project's war file. I have it working within the POM file when specifying a dependency directly for Hibernate tools. But it won't get...

23 May at 12:2

Darken CSS background image?

Should be a fairly simple question. In my website I do this: ``` #landing-wrapper { display:table; width:100%; background:url('landingpagepic.jpg'); background-position:center top; ...

29 Oct at 01:44

How to find the .NET framework version of a Visual Studio project?

I have a project in Visual Studio. How can I find out which .NET Framework version it's for?

22 Jul at 19:18

UICollectionView Self Sizing Cells with Auto Layout

I'm trying to get self sizing `UICollectionViewCells` working with Auto Layout, but I can't seem to get the cells to size themselves to the content. I'm having trouble understanding how the cell's siz...

Is there an equivalent for var_dump (PHP) in Javascript?

We need to see what methods/fields an object has in Javascript.

27 Nov at 11:29

How do I change file permissions in Ubuntu

In Ubuntu I want to change the file permissions of a whole folder and all its sub folders to read/write by anybody I have tried `sudo chmod 666 /var/www and sudo chmod 755 /var/www` without success ...

2 May at 14:2

How to set 777 permission on a particular folder?

How to set 777 permission on folder. - I do no idea how to set the permission 777 on particular folder in window 7?? Please help me how can I set it? I am using windows 7.

21 Jun at 09:40

In Jinja2, how do you test if a variable is undefined?

Converting from Django, I'm used to doing something like this: ``` {% if not var1 %} {% endif %} ``` and having it work if I didn't put var1 into the context. Jinja2 gives me an undefined error. Is...

29 May at 11:17

C++ deprecated conversion from string constant to 'char*'

I have a class with a private `char str[256];` and for it I have an explicit constructor: ``` explicit myClass(char *func) { strcpy(str,func); } ``` I call it as: ``` myClass obj("example"); ``` ...

6 Dec at 19:2

CSS grid wrapping

Is it possible to make a CSS grid wrap without using media queries? In my case, I have a non-deterministic number of items that I want placed in a grid and I want that grid to wrap. Using Flexbox, I'...

3 Nov at 12:30

Formatting "yesterday's" date in python

I need to find "yesterday's" date in this format `MMDDYY` in Python. So for instance, today's date would be represented like this: 111009 I can easily do this for today but I have trouble doing it a...

1 Oct at 14:39

How to add custom validation to an AngularJS form?

I have a form with input fields and validation setup by adding the `required` attributes and such. But for some fields I need to do some extra validation. How would I "tap in" to the validation that `...

24 Nov at 21:54

How to iterate through a list of dictionaries in Jinja template?

I tried: ``` list1 = [{"username": "abhi", "pass": 2087}] return render_template("file_output.html", list1=list1) ``` In the template: ``` <table border=2> <tr> <td> Key </td> ...

How do I configure the proxy settings so that Eclipse can download new plugins?

I am working with Eclipse 3.7, on an Windows XP environment behind a web proxy. I want to install the [Groovy plugin](http://groovy.codehaus.org/Eclipse+Plugin) on a Eclipse Indigo (). I added the [...

19 Jan at 14:30

Cannot update a component while rendering a different component warning

I am getting this warning in react: ``` index.js:1 Warning: Cannot update a component (`ConnectFunction`) while rendering a different component (`Register`). To locate the bad setState() call insid...

14 Jun at 23:34