emacs on mac os x, how to get spell check to work

emacs on mac os x, how to get spell check to work

I'm moving from Windows to Mac, and I've spent the whole night trying to get emacs to work. I've installed GNU emacs and simply copied over my Windows .emacs file, which seems to work ok, except for spell check. I installed cocoAspell and f

How does atoi() function in C++ work?

How does atoi() function in C++ work?

So...I know that the atoi function in the C++ standard library is supposed to convert a string into an integer...how does it work?...(I'm trying to learn stuff and I was just wondering)...if you could show me the code from it or make your o

Reachability and IPv6

Reachability and IPv6

One of my project uses the Apple's Reachability class in order to be monitor the network state and be notified in case of changes.After reading this article about supporting IPv6 I was wondering if were to be made to this class to make it w

Right way to use the @NonNull annotation in Android Studio

Right way to use the @NonNull annotation in Android Studio

I'd like to use the @NonNull annotation in Android, but I can't figure out just the right way to do it.I propose you this example:public void doStuff(@NonNull String s){ //do work with s... }So when i call doStuff(null) the IDE will

How do you define a PHP include as a string?

How do you define a PHP include as a string?

I tried:$test = include 'test.php';But that just included the file normally 1:You'll want to look at the output buffering functions.//get anything that's in the output buffer, and empty the buffer$oldContent = ob_get_clean();//start buff

Howto merge 2 Django QuerySets in one and make a SELECT DISTINCT

Howto merge 2 Django QuerySets in one and make a SELECT DISTINCT

models.pyclass SinglePoint(models.Model): attributes = models.TextField(blank=True) name = models.CharField(max_length=100) geom = models.PointField() #Kartenposition objects = models.GeoManager()class Connection(models.Model):

getters and setters style

getters and setters style

(Leaving aside the question of should you have them at all.)I have always preferred to just use function overloading to give you the same name for both getter and setters.int rate() { return _rate; } void rate(int value) { _rate = valu

How to choose an integer linear programming solver?

How to choose an integer linear programming solver?

I am newbie for integer linear programming.I plan to use a integer linear programming solver to solve my combinatorial optimization problem.I am more familiar with C++/object oriented programming on an IDE.Now I am using NetBeans with Cygwi

TFS Error: Unable to determine the workspace for this solution

TFS Error: Unable to determine the workspace for this solution

I get this error when trying to "Go Online" with a project on a Visual Studio 2010 ALM project. The project was previously connected to a team project on Team Foundation Server (2010), but I had to reinstall both the SQL Server and the TFS

Type definition with a trait: Differences of specifying an explicit lifetime bound?

Type definition with a trait: Differences of specifying an explicit lifetime bound?

I'm having issues understanding the lifetime bound requirements when I use a trait in a type definition. For instance:trait Kind { /* ... */ }type CollectionOfKind = Vec;// => error: explicit lifetime bound requiredThe requirement for lifet

There's an easy way to apply a shortest path alghoritm in objective c?

There's an easy way to apply a shortest path alghoritm in objective c?

I have a series of point (x,y) linked by a path. There's an easy way in objective c to apply something like a Dijkstra shortest path alghoritm in order to know the shortest path among two variable points of these?The real problem is i have

“Masking” an animation? iPhone SDK

“Masking” an animation? iPhone SDK

I have been looking into ways of masking images on the iPhone. I came across this solution http://iosdevelopertips.com/cocoa/how-to-mask-an-image.htmlwhich works great for still images. What I want to do is mask an animation in a UIImageVie

Superposed xyplot Panels with Grouped Regression Lines

Superposed xyplot Panels with Grouped Regression Lines

I want to superpose multiple groups on a single panel in lattice, and want independent regression lines. It is fairly easy to get multiple panels, each with a regression line by using a conditioning factor:xyplot( Petal.Width ~ Petal.Len

How do I change a glyphicon upon clicking it in Bootstrap 3.2?

How do I change a glyphicon upon clicking it in Bootstrap 3.2?

I want to have an arrow pointing to the right to allow the user to expand the sidebar, and then change that glyphicon to point to the left. That way, it points to the left so that they understand how to hide the sidebar. I then want it to c

Prototype for variable-length arrays

Prototype for variable-length arrays

I am trying to write a function that takes an array of an variable size in c. void sort(int s, int e, int arr[*]){ ...}It says that for variable length arrays, it needs to be bounded in the function declaration. What does that mean? I a

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

Matlab, how to calculate AUC (Area Under Curve)?

Matlab, how to calculate AUC (Area Under Curve)?

I have the file data.txt with two columns and N rows, something like this:0.009943796 0.46679750.009795735 0.467778860.009623984 0.468978320.009564759 0.469414470.009546991 0.47039580.009428543 0.472249480.009375241 0.474757370.009298249 0.

Is there ever a reason to hide inherited members in an interface?

Is there ever a reason to hide inherited members in an interface?

I understand that a class which inherits from another class may hide a property by using the new keyword. This, however, is hiding a specific implementation of the property, so I can see how it could be used.Is there any practical reason to

Match letter in any language

Match letter in any language

How can I match a letter from any language using a regex in python 3?re.match([a-zA-Z]) will match the english language characters but I want all languages to be supported simultaneously. I don't wish to match the ' in can't or underscores

How do I use more than one OpenID? [closed]

How do I use more than one OpenID? [closed]

I have more than one OpenID as I have tried out numerous. As people take up OpenID different suppliers are going to emerge I may want to switch provinders. As all IDs are me, and all are authenticated against the same email address, shoul

Symfony2 Assetic get asset urls from inside controller, not template

Symfony2 Assetic get asset urls from inside controller, not template

I want to include the url to one of the assets in my bundle in the controller, not in the template. More specifically, but not very important: I make a HighChart chart using obHighChartsBundle, and I have to plot some special icons in some

java -version and javac -version showing different versions

java -version and javac -version showing different versions

I have java 7 and java 8 both installed on my windows system under C:\Program Files\JavaIn the environment's path I specified the path of java 7 like this.%JAVA_HOME%/bin where JAVA_HOME = C:\Program Files\Java\jdk1.7.0_17But when I type ja

What actually happens when using async/await inside a LINQ statement?

What actually happens when using async/await inside a LINQ statement?

The following snippet compiles, but I'd expect it to await the task result instead of giving me a List>.var foo = bars.Select(async bar => await Baz(bar)).ToList()As pointed out here, you need to use Task.WhenAll:var tasks = foos.Select(asy

Matplotlib axis with two scales shared origin

Matplotlib axis with two scales shared origin

I need two overlay two datasets with different Y-axis scales in Matplotlib. The data contains both positive and negative values. I want the two axes to share one origin, but Matplotlib does not align the two scales by default. import numpy

How to get multiple series data in tooltip highcharts?

How to get multiple series data in tooltip highcharts?

I want to display multiple series Data in tooltip on every columntooltip: { formatter: function() { return '' +this.series.name +': '+ this.y +''+ ''+this.x +''; }},and Dataseries: [{ showInLegend: false, na