Disable Chrome strict MIME type checking
Is there any way to disable `strict MIME type checking` in Chrome. Actually I'm making a JSONP request on cross domain. Its working fine on Firefox but, while using chrome its giving some error in co...
- Modified
- 23 Dec at 08:24
Deleting all files in a directory with Python
I want to delete all files with the extension `.bak` in a directory. How can I do that in Python?
Join two data frames, select all columns from one and some columns from the other
Let's say I have a spark data frame `df1`, with several columns (among which the column `id`) and data frame `df2` with two columns, `id` and `other`. Is there a way to replicate the following command...
- Modified
- 25 Dec at 16:27
SQL Developer is returning only the date, not the time. How do I fix this?
Here's what SQL Develoepr is giving me, both in the results window and when I export: ``` CREATION_TIME ------------------- 27-SEP-12 27-SEP-12 27-SEP-12 ``` Here's what another piece of soft...
- Modified
- 1 Jul at 13:10
Avoid browser popup blockers
I'm developing an OAuth authentication flow purely in JavaScript and I want to show the user the "grant access" window in a popup, but it gets blocked. How can I prevent pop up windows created by eit...
- Modified
- 10 Nov at 14:24
Check time difference in Javascript
How would you check time difference from two text-boxes in Javascript?
- Modified
- 15 Feb at 15:51
Character reading from file in Python
In a text file, there is a string "I don't like this". However, when I read it into a string, it becomes "I don\xe2\x80\x98t like this". I understand that \u2018 is the unicode representation of "'"....
Convert object to JSON string in C#
> [Turn C# object into a JSON string in .NET 4](https://stackoverflow.com/questions/6201529/turn-c-sharp-object-into-a-json-string-in-net-4) In the Java, I have a code to convert java object t...
IIS7 deployment - duplicate 'system.web.extensions/scripting/scriptResourceHandler' section
On attempting to deploy a .net 3.5 website on the default app pool in IIS7 having the framework section set to 4.0, I get the following error. > There is a duplicate 'system.web.extensions/scriptin...
- Modified
- 1 Jul at 08:39
How to convert a list into data table
I have a data list with some property. I want to convert that list data into data table. How to convert a list into datable.
What is a "bundle" in an Android application
What is a [bundle](http://developer.android.com/reference/android/os/Bundle.html) in an Android application? When to use it?
- Modified
- 19 Apr at 01:56
React JS get current date
I want to output the current date in my componnent. In the console my code works, but the React console says: > bundle.js:14744 Uncaught RangeError: Maximum call stack size exceeded My component looks...
- Modified
- 21 Feb at 14:38
How do I convert array of Objects into one Object in JavaScript?
I have an array of objects: ``` [ { key : '11', value : '1100', $$hashKey : '00X' }, { key : '22', value : '2200', $$hashKey : '018' } ]; ``` How do I convert it into the following by JavaScript...
- Modified
- 15 Feb at 00:8
How to execute a Windows command on a remote PC?
Is it possible to execute a Windows shell command on a remote PC when I know its login name and password? Is it possible to do it using client PC's Windows shell?
How should I validate an e-mail address?
What's a good technique for validating an e-mail address (e.g. from a user input field) in Android? [org.apache.commons.validator.routines.EmailValidator](http://commons.apache.org/validator/apidocs/o...
- Modified
- 15 Aug at 07:47
C default arguments
Is there a way to specify default arguments to a function in C?
- Modified
- 8 May at 09:2
What is the difference between a schema and a table and a database?
This is probably a n00blike (or worse) question. But I've always viewed a schema as a table definition in a database. This is wrong or not entirely correct. I don't remember much from my database cour...
- Modified
- 9 Dec at 17:42
How to return multiple objects from a Java method?
I want to return two objects from a Java method and was wondering what could be a good way of doing so? The possible ways I can think of are: return a `HashMap` (since the two Objects are related) or...
How to use session in JSP pages to get information?
I have a JSP page used for editing some user's info. When a user logins to the website, I keep the information in the session, then in my edit page I try the following: ``` <%! String username=sessio...
AngularJS: ng-show / ng-hide not working with `{{ }}` interpolation
I am trying to show / hide some HTML using the `ng-show` and `ng-hide` functions provided by [AngularJS](http://docs.angularjs.org/api). According to the documentation, the respective usage for these...
C++11 introduced a standardized memory model. What does it mean? And how is it going to affect C++ programming?
C++11 introduced a standardized memory model, but what exactly does that mean? And how is it going to affect C++ programming? [This article](http://www.theregister.co.uk/2011/06/11/herb_sutter_next_c_...
- Modified
- 9 Jun at 11:31
How to open a web page from my application?
I want to make my WPF application open the default browser and go to a certain web page. How do I do that?
How do I copy the contents of one ArrayList into another?
I have some data structures, and I would like to use one as a temporary, and another as not temporary. ``` ArrayList<Object> myObject = new ArrayList<Object>(); ArrayList<Object> myTempObject = new A...
- Modified
- 27 Aug at 10:29
Pycharm does not show plot
Pycharm does not show plot from the following code: ``` import pandas as pd import numpy as np import matplotlib as plt ts = pd.Series(np.random.randn(1000), index=pd.date_range('1/1/2000', periods=...
- Modified
- 15 Oct at 16:10
convert iso date to milliseconds in javascript
Can I convert iso date to milliseconds? for example I want to convert this iso ``` 2012-02-10T13:19:11+0000 ``` to milliseconds. Because I want to compare current date from the created date. And ...
- Modified
- 5 May at 23:12