Questions

How to force tsc to ignore node_modules folder?

I'm using tsc build tasks. Unfortunately I'm always getting the same errors from the node modules folder ``` Executing task: .\node_modules\.bin\tsc.cmd --watch -p .\tsconfig.json < node_modules/@type...

11 Mar at 08:36

How to remove a virtualenv created by "pipenv run"

I am learning Python virtual environment. In one of my small projects I ran ``` pipenv run python myproject.py ``` and it created a virtualenv for me in `C:\Users\USERNAME\.virtualenvs` I found it al...

13 Nov at 21:39

intellij incorrectly saying no beans of type found for autowired repository

I have created a simple unit test but IntelliJ is incorrectly highlighting it red. marking it as an error No beans? ![enter image description here](https://i.stack.imgur.com/4cCFH.png) As you can s...

jQuery 'input' event

I've never heard of an event in jQuery called `input` till I saw this [jsfiddle](http://jsfiddle.net/philfreo/MqM76/). Do you know why it's working? Is it an alias for `keyup` or something? ``` $(do...

12 Sep at 07:27

Understanding dispatch_async

I have question around this code ``` dispatch_async(dispatch_get_global_queue( DISPATCH_QUEUE_PRIORITY_DEFAULT, 0), ^{ NSData* data = [NSData dataWithContentsOfURL: kLatestKivaLoansURL]; ...

Javascript reduce() on Object

There is nice Array method [reduce()](https://developer.mozilla.org/en-US/docs/JavaScript/Reference/Global_Objects/Array/Reduce) to get one value from the Array. Example: ``` [0,1,2,3,4].reduce(funct...

1 Apr at 17:53

Declare a constant array

I have tried: ``` const ascii = "abcdefghijklmnopqrstuvwxyz" const letter_goodness []float32 = { .0817,.0149,.0278,.0425,.1270,.0223,.0202, .0609,.0697,.0015,.0077,.0402,.0241,.0675, .0751,.0193,.000...

12 Aug at 03:7

MySql: Tinyint (2) vs tinyint(1) - what is the difference?

I knew boolean in mysql as `tinyint (1)`. Today I see a table with defined an integer like `tinyint(2)`, and also others like `int(4)`, `int(6)` ... What does the size means in field of type intege...

16 Apr at 17:15

Can functions be passed as parameters?

In Java I can do something like ``` derp(new Runnable { public void run () { /* run this sometime later */ } }) ``` and "run" the code in the method later. It's a pain to handle (anonymous inner c...

29 Sep at 08:14

How can I read input from the console using the Scanner class in Java?

How could I read input from the console using the `Scanner` class? Something like this: ``` System.out.println("Enter your username: "); Scanner = input(); // Or something like this, I don't know the...

21 Mar at 17:41

How to show math equations in general github's markdown(not github's blog)

After investigating, I've found mathjax can do this. But when I write some example in my markdown file, it doesn't show the correct equations: I have added this in the head of markdown file: ``` <scri...

8 Mar at 07:42

How to convert comma-delimited string to list in Python?

Given a string that is a sequence of several values separated by a commma: ``` mStr = 'A,B,C,D,E' ``` How do I convert the string to a list? ``` mList = ['A', 'B', 'C', 'D', 'E'] ```

10 Oct at 16:30

How to check for DLL dependency?

Sometimes when I'm doing a little project I'm not careful enough and accidentally add a dependency for a DLL that I am not aware of. When I ship this program to a friend or other people, "it doesn't w...

26 Apr at 18:22

Is there a way to programmatically scroll a scroll view to a specific edit text?

I have a very long activity with a scrollview. It is a form with various fields that the user must fill in. I have a checkbox half way down my form, and when the user checks it I want to scroll to a s...

Read the package name of an Android APK

I need to get the of an Android APK. I have tried to unzip the APK and read the contents of the `AndroidManifest.xml` file but it seems that it's not a text file. How can I extract the APK's package ...

14 Jul at 10:22

How to split comma separated string using JavaScript?

I want to split a comma separated string with JavaScript. How?

31 Jan at 07:10

google chrome extension :: console.log() from background page?

If I call `console.log('something');` from the popup page, or any script included off that it works fine. However as the background page is not directly run off the popup page it is not included in t...

What is the difference between i++ and ++i in C#?

I've seen them both being used in numerous pieces of C# code, and I'd like to know when to use `i++` and when to use `++i`? (`i` being a number variable like `int`, `float`, `double`, etc).

22 Feb at 15:9

Difference between Statement and PreparedStatement

The Prepared Statement is a slightly more powerful version of a Statement, and should always be at least as quick and easy to handle as a Statement. The Prepared Statement may be parametrized Most rel...

4 Jul at 23:58

How to add `style=display:"block"` to an element using jQuery?

How to add `style=display:"block"` to an element in jQuery?

7 Sep at 03:43

Uncaught SyntaxError: Unexpected token :

I am running an AJAX call in my MooTools script, this works fine in Firefox but in Chrome I am getting a `Uncaught SyntaxError: Unexpected token :` error, I cannot determine why. Commenting out code t...

29 Jun at 18:57

Which version of CodeIgniter am I currently using?

Quick question. Is there something similar to a `phpinfo()` - that would display the version for `CodeIgniter`? Thanks.

20 Dec at 17:4

Finding duplicate rows in SQL Server

I have a SQL Server database of organizations, and there are many duplicate rows. I want to run a select statement to grab all of these and the amount of dupes, but also return the ids that are associ...

9 Nov at 02:12

jQuery date/time picker

I've been looking around for a decent jQuery plugin that can handle both dates and times. The core UI `DatePicker` is great, but unfortunately I need to be able to take time in as well. I've found a...

How do I remove leading whitespace in Python?

I have a text string that starts with a number of spaces, varying between 2 & 4. What is the simplest way to remove the leading whitespace? (ie. remove everything before a certain character?) ``` " ...

27 Sep at 22:16