JQuery - $ is not defined

JQuery - $ is not defined

I have a simple jquery click eventand a jquery reference defined in the site.master

AttributeError: module 'html.parser' has no attribute 'HTMLParseError'

AttributeError: module 'html.parser' has no attribute 'HTMLParseError'

This is the hints,how can I resolve it?I use Python 3.5.1 created a virtual envirement by virtualenvThe source code works well on my friend's computer machineError: Traceback (most recent call last): File "manage.py", line 10, in execu

Run a NodeJS app with Apache

Run a NodeJS app with Apache

I have a ubuntu server running a few apache websites. I want to run a nodejs app on the same server. I have the app running on the server now out of port 3000 (www.example.com:3000) no problems there.I now want to direct a new domain to the

How to implement pedometer in iphone?

How to implement pedometer in iphone?

I have implemented one application in which i want to implement pedometer functionality.Is it possible to implement pedometer?Please give me idea. 1:This is certainly possible, and I believe has been done. The main drawback is that since

How to observe individual array element changes (update) with Swift and KVO?

How to observe individual array element changes (update) with Swift and KVO?

Do I need to subscribe/unsubscribe to individual elements of an array?I want to update each table view cell individually to reflect changes in the backing array. By changes I mean not append/remove operations but update of the properties of

WinForms UI responsiveness when dealing with “heavy” data

WinForms UI responsiveness when dealing with “heavy” data

I'm modifying a windows form to allow data to be loaded in the background while the UI remains responsive. The data takes noticeable time to both retrieve and bind. Ideally, I would do both in the background, but there is some ambiguity a

Failed to decrypt using provider 'RsaProtectedConfigurationProvider'?

Failed to decrypt using provider 'RsaProtectedConfigurationProvider'?

In my windows application i am trying to encrypt connection string section of app.config file, connection string part of my app.config file isand in .cs file i am encrypting it likeConfiguration config = ConfigurationManager.OpenExeConfigur

Create C# executable with mkbundle on windows

Create C# executable with mkbundle on windows

Im trying to create an executable from a console application.I have installed mono,cygwin (mingw-gcc, mingw-zlib1, mingw-zlib-devel, pkg-config) and I have added the following lines to my .bashrc fileexport PKG_CONFIG_PATH=/cygdrive/c/progr

Use objects as keys in TObjectDictionary

Use objects as keys in TObjectDictionary

When I use TObjectDictionary, where TKey is object, my application work uncorrectly. I have two units, thats contain two classes. First unit:unit RubTerm;interfacetype TRubTerm = Class(TObject) private FRubricName: String; FTermName

Entity is not key value coding-compliant for the key

Entity is not key value coding-compliant for the key

if (win) { // Game was won, set completed in puzzle and time // Calculate seconds taken int timeTaken = (int)([NSDate timeIntervalSinceReferenceDate] - self.gameStartTime); int bestTime = [[self.puzzle valueForKey:@"bestTime"] i

Robolectric Unit Test failing with Android Studio 2.3 updates

Robolectric Unit Test failing with Android Studio 2.3 updates

All my Unit Test started throwing this error:No such manifest file: build\intermediates\bundles\debug\AndroidManifest.xmljava.lang.NullPointerException at org.robolectric.shadows.ShadowAssetManager.getAndResolve(ShadowAssetManager.java:3

UISearchController - Warning Attempting to load the view of a view controller

UISearchController - Warning Attempting to load the view of a view controller

I am getting the following error. Attempting to load the view of a view controller while it is deallocating is not allowed and may result in undefined behavior ()Tried the following solution , but does not work for me Attempting to load

Choose dynamically at runtime which version of a .dll to use

Choose dynamically at runtime which version of a .dll to use

I'm working on a utility for SharePoint. It's an app that works for both SharePoint 2007 and 2010. When I have a reference to the 12.0.0.0 version of the SharePoint.dll, the app works for SharePoint 2007, but not for 2010. If I reference

Internet Explorer shows valid certificate as “corrupt or invalid signature”

Internet Explorer shows valid certificate as “corrupt or invalid signature”

We have signed our product installation using SignTool.exe and GoDaddy certificate, and our signature appears valid in windows and using "verify" option of SignTool. However, when the file is downloaded in Internet Explorer 9, it reports th

How can I create a windows installer MSI that does not require admin access

How can I create a windows installer MSI that does not require admin access

I've created an MSI windows installer that installs a plug-in which I wrote for a piece of software used at my office. However, a number of users here don't have admin rights to their computers, and IT is getting frustrated having to instal

MySQL Insert performance degrades on a large table

MySQL Insert performance degrades on a large table

I'm working with a huge table which has 250+ million rows. The schema is simple. CREATE TABLE MyTable ( id BIGINT PRIMARY KEY AUTO_INCREMENT, oid INT NOT NULL, long1 BIGINT NOT NULL, str1 VARCHAR(30) DEFAULT NULL

I get an Error 400: Bad Request on custom Heroku domain, but works fine on foo.herokuapp.com

I get an Error 400: Bad Request on custom Heroku domain, but works fine on foo.herokuapp.com

I've just pushed a Django project up to Heroku. It works fine at http://rtd-staging.herokuapp.com/rtd2015/, but for some reason I get a 400 error: Bad Request when I visit it using: http://staging.researchthroughdesign.org/rtd2015/I know t

Python pandas stuck at version 0.7.0

Python pandas stuck at version 0.7.0

First off, I'm a novice... I'm a newbie to Python, pandas, and Linux. I'm getting some errors when trying to populate a DataFrame (sql.read_frame() gives an exception when trying to read from my MySQL DB, but I am able to execute and fetch

How to make IntellijIDEA ignore work-in-progress class files?

How to make IntellijIDEA ignore work-in-progress class files?

When I'm working in IntellijIDEA how do I tell it to ignore a class file that may have problems and I want to leave dormant for a while?It will throw errors when I compile whatever class I am working on until I fix the first "dormant" class

Testing Castle windsor Component with PerWebRequest lifestyle

Testing Castle windsor Component with PerWebRequest lifestyle

I'm trying to do some testing with castle windsor involved, in one of my tests I want to check the windsor installers, so I check that the container can resolve my components given its interface.So far, so good, the problem starts when the

Android ActionBar's custom view not filling parent [duplicate]

Android ActionBar's custom view not filling parent [duplicate]

This question already has an answer here: Android Lollipop, AppCompat ActionBar custom view doesnt take up whole screen width 7 answers Similar to the

Java jUnit: Test suite code to run before any test classes

Java jUnit: Test suite code to run before any test classes

I have a test suite class:@RunWith(Suite.class)@Suite.SuiteClasses({ GameMasterTest.class, PlayerTest.class,})public class BananaTestSuite { What annotation do I need to use to make a function in this class run before any of the class

Use of undeclared type 'ViewController' when unit testing my own ViewController in Swift?

Use of undeclared type 'ViewController' when unit testing my own ViewController in Swift?

I have been trying to write test cases in Swift to test my ViewController. However, when I try to instantiate my own ViewController in a XCTestCase I get "Use of undeclared type 'ViewController' ". (ViewController is the name of my own UIVi

Asynchronous file writing possible in python?

Asynchronous file writing possible in python?

Is there an easy way write to a file asynchronously in Python?I know the file io that comes with Python is blocking; which is fine in most cases. For this particular case, I need writes not to block the application at all, or at least as m