Questions

How to disable action bar permanently

I can hide the action bar in honeycomb using this code: ``` getActionBar().hide(); ``` But when the keyboard opens, and user copy-pastes anything, the action bar shows again. How can I disable the ...

26 Mar at 10:29

How to add include path in Qt Creator?

I have a project I'm working on in Qt creator that requires a third-party library. I want to add the headers to the include path for the project. How do I do this?

16 May at 20:50

How to Delete a directory from Hadoop cluster which is having comma(,) in its name?

I have uploaded a Directory to hadoop cluster that is having "," in its name like "MyDir, Name" when I am trying to delete this Directory by using rmr hadoop shell command as following ``` hadoop dfs...

7 Jun at 15:41

How to get nth jQuery element

In jQuery, `$("...").get(3)` returns the 3rd DOM element. What is the function to return the 3rd jQuery element?

31 May at 09:34

How do I convert an existing callback API to promises?

I want to work with promises but I have a callback API in a format like: ### 1. DOM load or other one time event: ``` window.onload; // set to callback ... window.onload = function() { }; ``` ...

DD/MM/YYYY Date format in Moment.js

How can i change the current date to this format(DD/MM/YYYY) using moment.js? I have tried below code. ``` $scope.SearchDate = moment(new Date(), "DD/MM/YYYY"); ``` But it's return `0037-11-24T18:...

25 Apr at 06:13

How to add native library to "java.library.path" with Eclipse launch (instead of overriding it)

I got a native library that needs to be added to . With JVM argument I can set the path as I want. My problem is that my other library (pentaho reporting) searches fonts based on the default java.li...

31 Jul at 20:52

How to add font-awesome to Angular 2 + CLI project

I'm using Angular 2+ and Angular CLI. How do I add font-awesome to my project?

How can I get the length of text entered in a textbox using jQuery?

How can I get the length of text entered in a textbox using jQuery?

26 May at 14:55

Implement a loading indicator for a jQuery AJAX call

I have a Bootstrap modal which is launched from a link. For about 3 seconds it just sits there blank, while the AJAX query fetches the data from the database. How can I implement some sort of a loadin...

6 Jun at 15:43

Python assigning multiple variables to same value? list behavior

I tried to use multiple assignment as show below to initialize variables, but I got confused by the behavior, I expect to reassign the values list separately, I mean b[0] and c[0] equal 0 as before. ...

27 Jul at 02:19

Extract Number from String in Python

I am new to `Python` and I have a String, I want to extract the numbers from the string. For example: ``` str1 = "3158 reviews" print (re.findall('\d+', str1 )) ``` Output is `['4', '3']` I want ...

2 Nov at 18:11

How to drop column with constraint?

How to drop a column which is having Default constraint in SQL Server 2008? My query is ``` alter table tbloffers drop column checkin ``` I am getting below error > ALTER TABLE DROP COLUMN check...

27 Dec at 07:6

Detecting scroll direction

So I am trying to use the JavaScript `on scroll` to call a function. But I wanted to know if I could detect the direction of the the scroll without using jQuery. If not then are there any workarounds?...

27 Jun at 18:53

How to convert a string with Unicode encoding to a string of letters

I have a string with escaped [Unicode](http://en.wikipedia.org/wiki/Unicode) characters, `\uXXXX`, and I want to convert it to regular Unicode letters. For example: ``` "\u0048\u0065\u006C\u006C\u006...

6 Mar at 11:57

Make a number a percentage

What's the best way to strip the "0."XXX% off a number and make it a percentage? What happens if the number happens to be an int? ``` var number1 = 4.954848; var number2 = 5.9797; $(document).ready...

15 Dec at 15:43

How can I turn a DataTable to a CSV?

Could somebody please tell me why the following code is not working. The data is saved into the csv file, however the data is not separated. It all exists within the first cell of each row. ``` St...

4 Dec at 09:40

ToList().ForEach in Linq

I am new to Linq. I want to set two values in `foreach` statement like this My actual code is this ``` foreach (Employee emp in employees) { foreach(Department dept in emp.Departments) { ...

1 Sep at 15:52

Android adding simple animations while setvisibility(view.Gone)

I have designed a simple layout.I have finished the design without animation, but now I want to add animations when textview click event and I don't know how to use it. Did my xml design looks good or...

2 Sep at 23:12

How to do a recursive sub-folder search and return files in a list?

I am working on a script to recursively go through subfolders in a mainfolder and build a list off a certain file type. I am having an issue with the script. It's currently set as follows: ``` for roo...

16 Nov at 15:9

Command to close an application of console?

I need to close the console when the user selects a menu option. I tried using `close()` but it did not work.. how can I do this?

15 Apr at 21:14

How to load a UIView using a nib file created with Interface Builder

I'm trying to do something a bit elaborate, but something that should be possible. So here is a challenge for all you experts out there (this forum is a pack of a lot of you guys :) ). I'm creating a...

Enum "Inheritance"

I have an enum in a low level namespace. I'd like to provide a class or enum in a mid level namespace that "inherits" the low level enum. ``` namespace low { public enum base { x, y, z ...

16 Apr at 20:4

How to upload, display and save images using node.js and express

I need to upload an image, and display it, as well as save it so that I don't lose it when I refresh the localhost. This needs to be done using an "Upload" button, which prompts for a file-selection. ...

4 Dec at 14:49

How to set default values in Go structs

There are multiple answers/techniques to the below question: 1. How to set default values to golang structs? 2. How to initialize structs in golang I have a couple of answers but further discussi...