Tag Info

New answers tagged

1

bzr lp-propose and bzr lp-propose-merge are the same command (lp-propose being an alias of lp-propose-merge): $ bzr lp-propose --help Purpose: Propose merging a branch on Launchpad. Usage: bzr lp-propose-merge [SUBMIT_BRANCH] Options: --staging Propose the merge on staging. -v, --verbose Display more information. -R ARG, ...


1

In very simple terms you can print with the lp command. Pass it a file and it'll print it. lp testfile lp <(echo "this is a test") There are a ton of options but there you go. The file selection and programming language are really up to you. What I've given you can be called from just about any of them and they all have their own ways of working but ...


4

According to The GNU Awk Users Guide it stands for Aho, Kernighan and Weinberger.


1

There are two things you need to do: Reference the script interpreter at the beginning of the script: #!/bin/bash Set the permissions to make it executable: chmod +x myscript.sh


0

You can make your bash script executable by running the following in the command line. cd ~/path/to/file chmod +x nameoffile.sh Then, making it executed at start up can be done by adding it to your list of startup programs as @akabhirav said.


1

Rather than making your script executable, you can take a different approach and change the way you call the script. script.sh is enough to run an executable script. However It is possible to run a non-exectuable script if you specify the program to run it. So /bin/bash script.sh or bash script.sh or python script.py will all run non-executable scripts. ...


0

Create a program in C,C++ or Python etc. and use the system command to execute the bash script. For example a C program would look like: #include "stdio.h" int main(int argc, char const *argv[]) { system('chmod +x path/yourbashscript.sh'); system('path/yourbashscript.sh'); return 0; } To execute the program at startup add it to the list of ...


2

I looked through the packages mentioning unity (apt-cache search unity), ignoring anything with lib, lens, etc. in the name. unity-services caught the eye. One of the files in this package is /usr/share/upstart/sessions/unity-panel-service-lockscreen.conf, an Upstart job containing: description "Backing Service for the Unity Panel" author "Andrea Azzarone ...


2

The snippet of code in your question does not work for me. I wrote a minimal example: import QtQuick 2.0 import Ubuntu.Components 0.1 MainView { width: units.gu(48) height: units.gu(60) id: mainView Rectangle { height: visible ? 20; width: 20; } } And qmlscene reports the following error: qmlscene ./foo.qml ...


3

Ubuntu SDK promises to maintain backwards compatibility. As far as I can remember Ubuntu Components 1.1 was created with the introduction of new widgets like combo box, additional API changes, some performance tweaks etc. Core Apps are the first wave of consumers of the Ubuntu SDK followed by other 3rd party. I personally feel that we should be striving to ...


2

You can make a Flickable scroll to a specific point by setting the contentY property of a Flickable. Quoting the official documentation from qt-project.org, ContentY holds the surface coordinate currently at the top-left corner of the Flickable. For example, if you flick an image up 100 pixels, contentY will be 100. So if you want to scroll a ...


2

For the names of all the defined network interfaces, I'd just look at the contents of the /sys/class/net directory. For the rest, it depends what you mean by "Linux OS". If you are referring to current desktop versions of Ubuntu, then the nmcli command-line utility seems to provide a lot of the functionality that you are looking for e.g. $ nmcli --terse ...


1

this may help (providing you do not mind python): http://it-ebooks.info/book/3515/ page 66 (79) since this recipe rely on c sys-calls you may be much better off writing a module in C.


3

The simplest solution would be to set width: parent.width/4 for each of the checkboxes. If you want to keep the checkbox width set at some known value, you could instead set spacing: (parent.width - 4 * checkboxwidth)/3 on the Row. Note that this will cause the elements to overlap when the parent is narrow. If you're targeting Qt 5.1 or higher, you may ...



Top 50 recent answers are included