What does (interactive) mean in an Emacs Lisp function?

What does (interactive) mean in an Emacs Lisp function?

Emacs Lisp function often start like this:(lambda () (interactive) ...What does "(interactive)" do? 1:Just to clarify (it is in the quoted docs that Charlie cites) (interactive) is not just for key-bound functions, but for any function.

How to find version of Drupal installed

How to find version of Drupal installed

How can I know which version of Drupal is installed in my server? 1:You can get this by logging in to admin. Go to Administer → Reports → Status Report.This will let you know all your config information of the site including your Drupal

Heap algorithm for permutations

Heap algorithm for permutations

I'm preparing for interviews and I'm trying to memorize Heap's algorithm:procedure generate(n : integer, A : array of any): if n = 1 then output(A) else for i := 0; i This algorithm is a pretty famous one to generate p

Replace ListFragment with Fragment inside ViewPager with Tabs

Replace ListFragment with Fragment inside ViewPager with Tabs

I try to setup following navigation in my app:Actual condition: ViewPager + Tabs to swipe between lists: ListFragment A ListFragment B Desired condition:ViewPager + Tabs:ListFragment A onListItemSelected replace ListFragment A with DetailFr

JSF: bean scope; session vs request

JSF: bean scope; session vs request

I have a managed bean called UserSearchHandler, it has a doSearch method that populates UserSearchHandler.searchResults which are displayed in a table on the userSearch.xhtml page. I have another managed bean called UserHandler, it has a s

Executing a Bash Script from Golang

Executing a Bash Script from Golang

I am trying to figure out a way to execute a script (.sh) file from Golang. I have found a couple of easy ways to execute commands (e.g. os/exec), but what I am looking to do is to execute an entire sh file (the file sets variables etc.).Us

Sql query for insert in grails

Sql query for insert in grails

How to execute plain sql in grails . I need to use sql query for inserting new record in database .How can we achieve this with out using HQL and gorm relations .thanks 1:groovy.sql.Sql simplifies the details of doing JDBC queries. In a

Disabling compile-time dependency checking when compiling Java classes

Disabling compile-time dependency checking when compiling Java classes

Consider the following two Java classes:a.) class Test { void foo(Object foobar) { } }b.) class Test { void foo(pkg.not.in.classpath.FooBar foobar) { } }Furthermore, assume that pkg.not.in.classpath.FooBar is not found in the classpath.The

How to avoid building C library with my python package?

How to avoid building C library with my python package?

I'm building a python package using a C library with ctypes.I want to make my package portable (Windows, Mac and Linux).I found a strategy, using build_ext with pip to build the library during the installation of my package. It creates libf

Spark - foreach Vs foreachPartitions When to use What?

Spark - foreach Vs foreachPartitions When to use What?

I would like to know if the foreachPartitions will results in better performance, due to an higher level of parallelism, compared to the foreach method considering the case in which I'm flowing through an RDD in order to perform some sums

Existing implementation of Btree or B+tree in Java [closed]

Existing implementation of Btree or B+tree in Java [closed]

I am doing a project in which I require btree or b+tree data structure. Does anyone know of an existing implementation of btree or b+tree (with insert, delete, search algorithms)? It should accept string as input and form btree or b+tree of

JSON unparseable cruft: Why so serious?

JSON unparseable cruft: Why so serious?

After reading this question as to why google/facebook etc. add unparseable cruft like:while(1); for(;;);&&&START&&& ... &&&END&&&1 and 3 combinedto their JSON responses, I have understood the motivation. But I am still not clear as to why s

What SDK version to download?

What SDK version to download?

I need to install Win7 SDK on Win7 amd64 computer. Microsoft download page http://www.microsoft.com/en-us/download/details.aspx?id=18950 contains 3 iso files: GRMSDK_EN_DVD.iso, GRMSDKIAI_EN_DVD.iso and GRMSDKX_EN_DVD.iso. I wasted a few ho

Is there any way to flush output from PL/SQL in Oracle?

Is there any way to flush output from PL/SQL in Oracle?

I have an SQL script that is called from within a shell script and takes a long time to run. It currently contains dbms_output.put_line statements at various points. The output from these print statements appear in the log files, but only o

Navigating to the same route not refreshing the component?

Navigating to the same route not refreshing the component?

I've upgraded to use the new Angular 2 router from router-deprecated and some behavior has changed.The page I'm having issues with is a search page. We've chosen to put all the search terms in the URL using the HashLocationStrategy. The rou

What does it mean for an object to be picklable (or pickle-able)?

What does it mean for an object to be picklable (or pickle-able)?

Python docs mention this word a lot and I want to know what it means! Googling doesn't help much.. 1:It simply means it can be serialized by the pickle module. For a basic explanation of this, see What can be pickled and unpickled?. Th

Using super with a class method

Using super with a class method

I'm trying to learn myself the super() function in Python.I though I got a grasp of it untill I came over this example (2.6) and found myself stuck.http://www.cafepy.com/article/python_attributes_and_methods/python_attributes_and_methods.ht

build settings specify a provisioning profile with the UUID

build settings specify a provisioning profile with the UUID

I cannot seem to be able to archive an app on a new computer. I created new provisioning profiles for distribution and development. I created a new Certificate Signing Request. I can build my app on my iPhone, but I cannot archive it. I

What are the core elements to include in Support Documentation? [closed]

What are the core elements to include in Support Documentation? [closed]

I have created an application which needs 'hand-over' to the support group in the next month.The application is fairly small (2 months development), and consists of two client side applications and a database, it's written in c# for the win

Understanding OpenCV LBP implementation

Understanding OpenCV LBP implementation

I need some help on LBP based face detection and that is why I am writing this.I have the following questions related to face detection implemented on OpenCV: In lbpCascade_frontal_face.xml (this is from opencv): what isinternalNodes, leafV

Java relative file paths

Java relative file paths

I've got a Java question that I've been having a trouble with: what is a good way to indicate relative file paths.Let me be more specific. I want to be able to say to always look for configuration files in ./configuration/file.txt. The pro

Using Modal Window inside ng-repeat

Using Modal Window inside ng-repeat

I have a ng-repeat and I am trying to add a modal that passes the same scope variable to the modal window. I am able to get the modal window to open but the scope value from ng-repeat is not showing inside the modal. Hopefully my code expla

Integrating Maven & Non-maven projects

Integrating Maven & Non-maven projects

I'm currently working on two projects simultaneously: My main project (built with maven)A spike of an open source project, which my main project depends on (not build with maven)How do I set up maven to use the OSS project as a dependency

How to detect javascript execution in WebBrowser control

How to detect javascript execution in WebBrowser control

I have a WebBrowser control in my C# application. The webbrowser is under the user's control, that is, he can load any webpage his computer can access on the web (of course limited by proxy, hosts file and so on).I need to know and to be no

pip or pip3 to install packages for Python 3?

pip or pip3 to install packages for Python 3?

I have a Macbook with OS X El Captain. I think that Python 2.7 comes preinstalled on it. However, I installed Python 3.5 too. When I started using Python 3, I read that if I want to install a package, I should type:pip3 install some_package