How to allow remote connection to mysql

How to allow remote connection to mysql

I have installed MySQL Community Edition 5.5 on my local machine and I want to allow remote connections so that I can connect from external source.How can I do that? 1:That is allowed by default on MySQL.What is disabled by default is re

Remove duplicates from an array of objects in JavaScript

Remove duplicates from an array of objects in JavaScript

I have an object that contains an array of objects.things = new Object();things.thing = new Array();things.thing.push({place:"here",name:"stuff"});things.thing.push({place:"there",name:"morestuff"});things.thing.push({place:"there",name:"mo

How to read a local text file?

How to read a local text file?

I’m trying to write a simple text file reader by creating a function that takes in the file’s path and converts each line of text into a char array, but it’s not working.function readTextFile() { var rawFile = new XMLHttpRequest(); rawFil

How to modify existing, unpushed commits?

How to modify existing, unpushed commits?

I wrote the wrong thing in a commit message. Alternatively, I've forgotten to include some files.How can I change the commit message/files? The commit has not been pushed yet. 1:Amending the most recent commit messagegit commit --amendwi

Test for existence of nested JavaScript object key

Test for existence of nested JavaScript object key

If I have a reference to an object:var test = {};that will potentially (but not immediately) have nested objects, something like:{level1: {level2: {level3: "level3"}}};What is the best way to test for the existence of keys in the most deepl

How can I merge properties of two JavaScript objects dynamically?

How can I merge properties of two JavaScript objects dynamically?

I need to be able to merge two (very simple) JavaScript objects at runtime. For example I'd like to:var obj1 = { food: 'pizza', car: 'ford' }var obj2 = { animal: 'dog' }obj1.merge(obj2);//obj1 now has three properties: food, car, and anima

How can I sort arrays and data in PHP?

How can I sort arrays and data in PHP?

Due to the enormous and ever repeating amount of "How do I sort my unique snowflake of an array?" questions, this is a reference collection of basic sorting methods in PHP. Please close any question which does not markedly differ as a dupli

Command not found via ssh with single command, found after connecting to terminal [duplicate]

Command not found via ssh with single command, found after connecting to terminal [duplicate]

Possible Duplicate: Why does an SSH remote command get fewer environment variables then when run manually? If I put command ssh [email protected]$IP ant then I receive bash: ant: command not foundbut when I log into ssh [email protected]$IP and put antthe

How to debug rxjs5?

How to debug rxjs5?

On RxJS - Goals I read that their goal is better debuggability: Goals Provide more debuggable call stacks than preceding versions of RxJSI have just started to use redux-observable which is quite easier for me to understand comparing i

Wait for n seconds, then next line of code without freezing form

Wait for n seconds, then next line of code without freezing form

Hi I am trying to find a method of waiting a number of milliseconds before moving to the next line of code,I have looked into Thread.Sleep but this will freeze the main form, I would like this to remain active.I tried timers and stopwatches

How to log an installation made from a WiX bundle

How to log an installation made from a WiX bundle

When creating a Windows installer using the WiX (Windows Installer for XML) toolset, how do you make the install process write logging information to a log file?Is there a command-line switch which triggers the output of the log file? 1:

How to view log output using docker-compose run?

How to view log output using docker-compose run?

When I use docker-compose up I can see logs for all containers in my docker-compose.yml file.However, when I use docker-compose run app I only see console output for app but none of the services that app depends on. How can see log output f

Get Each Image Natural Height With jQuery

Get Each Image Natural Height With jQuery

I have to read each images' natural height and I should make calculations. However I have some problem with read to natural height.$('div.imgkirp img').each(function(){ console.log($(this).naturalHeight);});It gets : (images number) unde

Oracle considers empty strings to be NULL while SQL Server does not - how is this best handled?

Oracle considers empty strings to be NULL while SQL Server does not - how is this best handled?

I have to write a component that re-creates SQL Server tables (structure and data) in an Oracle database. This component also has to take new data entered into the Oracle database and copy it back into SQL Server.Translating the data types

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

Finding the actual runtime call tree of a Java Program

Finding the actual runtime call tree of a Java Program

Suppose I have a big program that consists of hundreds of methods in it. And according to the nature of input the program flow is getting changed. Think I want to make a change to the original flow. And it is big hassle to find call hierarc

Meteor collectionfs insert server side

Meteor collectionfs insert server side

hi everyone i using collectionfs + gridfs + cfs filesystem,on collectionfs documentation i find how to insert file on client side like this : Template.myForm.events({ 'change .myFileInput': function(event, template) { FS.Utility.eachFil

Tools and techniques to optimize a LINQ to SQL query

Tools and techniques to optimize a LINQ to SQL query

I have a couple of LINQ to SQL queries that I feel take a lot of time. What tool and techniques can I use to first find out:How long they take and if there isroom for improvement?Find out what I can change and easily test if thosechanges ar

Passing arguments to async.parallel in node.js

Passing arguments to async.parallel in node.js

I am attempting to create a minimal example where I can accomplish what I describe above. For this purpose, here is my attempt for a minimal example, where in the end I would like to see in the output negative of 1 is -1 plus one of 2 i

Autofac runtime parameters

Autofac runtime parameters

I'm new to autofac and looking to see the best practices on passing runtime values to constructor. I've read a bunch of stackoverflow questions where this is asked but none are fully fleshed out. Should we be using delegates, factory to c

JQuery get the rest of the element's class name that starts with string “whatever-”

JQuery get the rest of the element's class name that starts with string “whatever-”

I have js that caches classes that's name starts with "whatever-",$('[class^="whatever-"], [class*=" whatever-"]')but what I want now to do is get the rest of the name, for example in case of "whatever-9" I want to get "9", I don't know how

how to use onclicklistener for grid view

how to use onclicklistener for grid view

i used gridview to display numbers, so if i click on any number the next activity should start. i tried this code but the app crashes private GridView gridView = null; gridView.setOnClickListener(new OnClickListener() {

Android MediaExtractor and mp3 stream

Android MediaExtractor and mp3 stream

I am trying to play an mp3 stream using MediaExtractor/MediaCodec. MediaPlayer is out of the question due to latency and long buffer size. The only sample code i have found is this: http://dpsm.wordpress.com/category/android/The code sample

Search for case insensitive data from Parse using javascript

Search for case insensitive data from Parse using javascript

I am using Parse.com and access it using Javascript. I want to search data in such a manner that it will not search for case sensitive like if i search abc then it will give abc, Abc, ABC,aBc etc all. but currently it gives only abc.JavaScr

Ember.js value binding with HTML5 file upload

Ember.js value binding with HTML5 file upload

I am not far from it to get the file upload working with Ember-data. But I do not get the value binding right. Below the relevant code.This is the App.jsApp.LandcodeNewRoute = Ember.Route.extend({ model: function () { return this.