Questions

Fatal error compiling: invalid target release: 1.8 -> [Help 1]

Similar problem like one posted on [invalid target release: 1.7](https://stackoverflow.com/questions/19891423/invalid-target-release-1-7) but after following the blog my problem is still unresolved. ...

23 May at 12:18

Find the closest ancestor element that has a specific class

How can I find an element's ancestor that is closest up the tree that has a particular class, ? For example, in a tree like so: ``` <div class="far ancestor"> <div class="near ancestor"> ...

28 Aug at 02:17

Position Absolute + Scrolling

With the following `HTML` and `CSS` ``` .container { position: relative; border: solid 1px red; height: 256px; width: 256px; overflow: auto; } .full-height { position: absolute; top: 0;...

1 Feb at 10:35

How to convert a string of bytes into an int?

How can I convert a string of bytes into an int in python? Say like this: `'y\xcc\xa6\xbb'` I came up with a clever/stupid way of doing it: ``` sum(ord(c) << (i * 8) for i, c in enumerate('y\xcc\x...

27 Jun at 15:50

JUnit test for System.out.println()

I need to write JUnit tests for an old application that's poorly designed and is writing a lot of error messages to standard output. When the `getResponse(String request)` method behaves correctly it ...

19 Apr at 23:28

JavaScript Number Split into individual digits

I am trying to solve a math problem where I take a number e.g. `45`, or `111` and then split the number into separate digits e.g. `4 5` or `1 1 1`. I will then save each number to a var to run a metho...

22 Sep at 07:28

Connect different Windows User in SQL Server Management Studio (2005 or later)

Is there a way in SQL Server Management Studio 2005 (or later) to change the Windows Authentication user (as you could in SQL Server 2000 and older)? This is the general connection properties dialog(...

22 Apr at 00:10

How to create a multiline UITextfield?

I am developing an application where user has to write some information. For this purpose I need a `UITextField` which is multi-line (in general `UITextField` is a single line). As I'm Googling I fin...

17 Dec at 18:45

twitter bootstrap navbar fixed top overlapping site

I am using bootstrap on my site and am having issues with the navbar fixed top. When I am just using the regular navbar, everything is fine. However, when i try to switch it to navbar fixed top, all t...

26 Nov at 04:25

Change CSS properties on click

I am trying to change the CSS of one element on click of another element. I've searched a lot but nothing works perfectly. Currently I am using the below code, but it doesn't work. Can anyone tell me ...

How to set the value of a input hidden field through JavaScript?

I am trying to call the `resetyear` function and it's getting called also, but the flow stops at `alert("over")`. It doesn't transfer its control to `resetmaster`. ``` String flag = ""; flag = (St...

13 Apr at 19:26

Why does this CSS margin-top style not work?

I try to add `margin` values on a `div` inside another `div`. All works fine except the top value, it seems to be ignored. But why? ![What I expected with margin:50px 50px 50px 50px;](https://i.stack...

26 Dec at 11:21

'Access-Control-Allow-Origin' issue when API call made from React (Isomorphic app)

I'm running into an issue with my isomorphic JavaScript app using React and Express. I am trying to make an HTTP request with axios.get when my component mounts ``` componentDidMount() { const u...

26 May at 20:6

Placing/Overlapping(z-index) a view above another view in android

I have a linear layout which consists of imageview and textview , one below another in a linear layout. ``` <LinearLayout android:orientation="horizontal" ... > <ImageView android:id="@+id...

24 Jul at 08:3

How do I properly clean up Excel interop objects?

I'm using the Excel interop in C# (`ApplicationClass`) and have placed the following code in my finally clause: ``` while (System.Runtime.InteropServices.Marshal.ReleaseComObject(excelSheet) != 0) { ...

26 Dec at 14:28

Better way to generate array of all letters in the alphabet

Right now I'm doing ``` for (char c = 'a'; c <= 'z'; c++) { alphabet[c - 'a'] = c; } ``` but is there a better way to do it? Similar to Scala's `'a' to 'z'`

20 Jan at 17:18

Javascript date regex DD/MM/YYYY

I know there are a lot of regex threads out there by I need a specific pattern I couldn't fin anywhere This regex validates in a YYYY-MM-DD format ``` /^\d{4}[\/\-](0?[1-9]|1[012])[\/\-](0?[1-9]|[...

28 Mar at 21:37

How to split a delimited string in Ruby and convert it to an array?

I have a string `"1,2,3,4"` and I'd like to convert it into an array: ``` [1,2,3,4] ``` How?

12 Jan at 02:39

Convert string to Python class object?

Given a string as user input to a Python function, I'd like to get a class object out of it if there's a class with that name in the currently defined namespace. Essentially, I want the implementation...

15 Oct at 09:18

How should I call 3 functions in order to execute them one after the other?

If I need call this functions one after other, ``` $('#art1').animate({'width':'1000px'},1000); $('#art2').animate({'width':'1000px'},1000); $('#art3').animate({'width':'1000px'},1000...

How can I display a messagebox in ASP.NET?

I want to show a message box on the successful save of any item. I googled it and tried different solutions, but none of them worked. Here is the code I am using: ``` try { con.Open(); string...

15 Aug at 21:15

Split a List into smaller lists of N size

I am attempting to split a list into a series of smaller lists. My function to split lists doesn't split them into lists of the correct size. It should split them into lists of size 30 but instead i...

18 Aug at 08:45

Typescript: Type X is missing the following properties from type Y length, pop, push, concat, and 26 more. [2740]

I have this Product interface: ``` export interface Product{ code: string; description: string; type: string; } ``` Service with method calling product endpoint: ``` public getProducts(): Obser...

How to enter special characters like "&" in oracle database?

I want to insert special character `&` in my insert statement. My insert is: ``` INSERT INTO STUDENT(name, class_id) VALUES ('Samantha', 'Java_22 & Oracle_14'); ``` If I try to run this query I am ...

Attaching a SCSS to HTML docs

Hello I am new to web design. I would like to learn how to attach an SCSS file to an HTML file in the head tag : ``` <link href="example" rel="stylesheet/scss" type="text/css"> ``` I tried this but d...

3 Aug at 11:52