@Abyx this one cpp file is used in five different projects, and the functions called are different in some of the projects, so they have to include different headers.
I also want to get rid of the global menu bar and found this tips for unity:
sudo apt-get autoremove appmenu-gtk appmenu-gtk3 appmenu-qt
here: http://lifehacker.com/5887462/how-to-disable-ubuntus-annoying-global-menu-bar
This is probably what you aready did, just mention it explicitly.
Any answers? It has been keeping me up at night and during coding.
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:orientation="ve...
@MooingDuck Yeah I had seen that lib before, but the website went down for it. If you look in the post's comments someone posted a github link with the lib saved (gist.github.com/297819)
So am I the only one who finds it downright hilarious to ask a question about "how things should really be done", then using Javascript as the example?
For example (in JavaScript):
//Not that I would ever add a method to a base JavaScript prototype...
//(*wink nudge*)...
Array.prototype.lastIndex = function() {
return this.length - 1;
}
console.log(array[array.lastIndex()]);
vs
console.log(array[array.length - 1]);
Technical...
I have some input to be read by a input filestream (for example):
-365.269511 -0.356123 -Inf 0.000000
When I use std::ifstream mystream; to read from the file to some
double d1 = -1, d2 = -1, d3 = -1, d4 = -1;
(assume mystream has already been opened and the file is valid),
mystream >&...