Questions

Python recursive folder read

I have a C++/Obj-C background and I am just discovering Python (been writing it for about an hour). I am writing a script to recursively read the contents of text files in a folder structure. The pro...

17 May at 20:4

Calling a parent window function from an iframe

I want to call a parent window JavaScript function from an iframe. ``` <script> function abc() { alert("sss"); } </script> <iframe id="myFrame"> <a onclick="abc();" href="#...

25 Jun at 18:49

How to convert a String to CharSequence?

How to convert `String` to `CharSequence` in Java?

29 Jun at 13:12

ThreadStart with parameters

How do you start a thread with parameters in C#?

18 May at 18:26

Difference between Visibility.Collapsed and Visibility.Hidden

What are differences between `Visibility.Collapsed` and `Visibility.Hidden` in WPF?

9 Feb at 21:43

Recommendations of Python REST (web services) framework?

Is there a list somewhere of recommendations of different Python-based REST frameworks for use on the serverside to write your own RESTful APIs? Preferably with pros and cons. Please feel free to add...

10 Jun at 18:0

Can I have multiple background images using CSS?

Is it possible to have two background images? For instance, I'd like to have one image repeat across the top (repeat-x), and another repeat across the entire page (repeat), where the one across the e...

26 Sep at 00:12

RegEx for Javascript to allow only alphanumeric

I need to find a reg ex that only allows alphanumeric. So far, everyone I try only works if the string is alphanumeric, meaning contains both a letter and a number. I just want one what would allow ei...

29 Jun at 03:11

What is the C# Using block and why should I use it?

What is the purpose of the `Using` block in C#? How is it different from a local variable?

26 Feb at 21:0

Wildcards in a Windows hosts file

I want to setup my local development machine so that any requests for `*.local` are redirected to `localhost`. The idea is that as I develop multiple sites, I can just add vhosts to Apache called `sit...

20 Mar at 04:10

Best implementation for hashCode method for a collection

How do we decide on the best implementation of `hashCode()` method for a collection (assuming that equals method has been overridden correctly) ?

21 Sep at 20:25

Getting value from appsettings.json in .net core

Not sure what am I missing here but I am not able to get the values from my appsettings.json in my .net core application. I have my appsettings.json as: ``` { "AppSettings": { "Version": ...

How do I call an Angular 2 pipe with multiple arguments?

I know I can call a pipe like this: ``` {{ myData | date:'fullDate' }} ``` Here the date pipe takes only one argument. What is the syntax to call a pipe with more parameters, from component's templ...

21 Dec at 19:44

Is key-value pair available in Typescript?

Is key,value pair available in typescript? If yes how to do that. Can anyone provide sample example links.

7 Apr at 05:33

YAML equivalent of array of objects in JSON

I have a JSON array of objects that I'm trying to convert to YAML. ``` {"AAPL": [ { "shares": -75.088, "date": "11/27/2015" }, { "shares": 75.088, "date": "11/26/2015" }, ]} ...

9 Feb at 05:38

In GitHub, is there a way to see all (recent) commits on all branches?

In GitHub, is there a way to see all recent commits on all branches. It would be best in reverse chronological order. Maybe I'm snoopy, but I'd like to be able to see what my developers have been up...

25 Nov at 21:40

How to automatically generate getters and setters in Android Studio

Is there a shortcut in Android Studio for automatically generating the getters and setters in a given class?

10 Apr at 15:23

When does SQLiteOpenHelper onCreate() / onUpgrade() run?

I have created my tables in my `SQLiteOpenHelper` `onCreate()` but receive ``` SQLiteException: no such table ``` or ``` SQLiteException: no such column ``` errors. Why? > (This is the amalgama...

How to have a default option in Angular.js select box

I have searched Google and can't find anything on this. I have this code. ``` <select ng-model="somethingHere" ng-options="option.value as option.name for option in options" ></select> ``` ...

3 Nov at 15:35

Handling JSON Post Request in Go

So I have the following, which seems incredibly hacky, and I've been thinking to myself that Go has better designed libraries than this, but I can't find an example of Go handling a POST request of JS...

28 Mar at 01:16

How to npm install to a specified directory?

Is it possible to specify a target directory when running `npm install <package>`?

22 Jan at 22:49

getting the ng-object selected with ng-change

Given the following select element ``` <select ng-options="size.code as size.name for size in sizes " ng-model="item.size.code" ng-change="update(MAGIC_THING)"> </select> ``` Is t...

29 Apr at 09:22

Create empty file using python

I'd like to create a file with path `x` using python. I've been using `os.system(y)` where `y = 'touch %s' % (x)`. I've looked for a non-directory version of `os.mkdir`, but I haven't been able to fin...

29 Sep at 17:30

Visual Studio: How to show Overloads in IntelliSense?

Once code has been written, the only way I know of to view the overloads for a method is to actually edit the method by deleting the Parenthesis `()` and reopening them. Is there a shortcut key that ...

27 Mar at 14:32

How to replace four spaces with a tab in Sublime Text 2?

![enter image description here](https://i.stack.imgur.com/XDUxE.png) I want to replace all the "four spaces" that is written by another text editor with tabs. How can I do it?

18 Jul at 20:5