Piwik delete custom variable - matomo

I was messing around in my dev instance of Piwik with custom variables and put in some garbage values. I want to delete these from Piwik but I can not find a way to do this. Does anyone know how to delete a custom variable from Piwik?
Thanks in advance for your help.

To delete custom variable:
deleteCustomVariable (index, scope )
http://piwik.org/docs/javascript-tracking/#toc-custom-variables
Update: Sorry I misread. To get it out of your DB, you will have to do some MYSQL Surgery. Look for:
custom_var_k - holds key (name of your variable)
custom_var_v - holds the actual value

Related

Looping with multiple variables in a URL using Postman

Using postman tool, I am trying to loop in multiple values in the place of a specific parameter 'memid' in the sample URL https://www.testdomain.com/login?memid=123
I have replaced the value '123' as {{id}} in the URL and then declared a single value '123' in Globals. It's working fine when I execute this. But, is there a way where I can loop the URL and replace the variable memid every time with some other predefined unique values? Should I be storing all the values in a separate csv file?? Thanks in advance.
You could take a look at using a Data file in the Collection Runner to help with this - More information can be found here.
https://learning.getpostman.com/docs/postman/collection_runs/working_with_data_files/

How can I change default values inside config file in angular js?

https://github.com/arunisrael/angularjs-google-places
I want to change this default values dynamically but don't know how to do?
I tried to define constant but they can't be changed.
I also tried values but they can't be injected inside config file.
So any one can tell me how can i change types:[] array from controller in angularJs?
Any help would be much appreciated !!
Yes earlier I was looking for same problem then I created an issue in main repo and also wrote an answer. Please have look I guess It will solve your problem.
https://github.com/arunisrael/angularjs-google-places/issues/17

getting the field values of content types from drupal

Here I want to know how to get the field values of my custom content type 'mypop'. I tried all methods in google but I don't know how to use, for example i tried function node_load, I can't able to know where to write this function, what are the parameters and tried EntityFieldQuery too. Can I know the how to do it in brief explaination.
Thanks in Advance.
Definitely a very broad question. Assuming you have the content type 'mypop' created already, think the easiest steps for you would be to:
Make sure you create some content of that content type
Customize the "Manage Display" on that content type and make sure the fields you want are set to visible there
Once you do this, those fields should be visible when you view the nodes of that content type already. If you want to further customize the view, you should probably customize the template file for that specific content type (there's other options but trying to keep this as simple as possible).
To do this, copy the "node.tpl.php" file you'll find on the modules/node folder to your theme templates folder and change it's name to be "node--mypop.tpl.php".
That way, you'll override Drupal's default display template for that specific content type only. Now you can basically tweak it into anyway you want.
Hope this helps!
Thanks a lot Alberto. Its working now! I have another issue too, it also got cleared and now its working fine !Another issue is javascript called automatically when I open views edit for other contents. Now by doing overriding this template file, it also gets cleared. Thank you !
node_load take node id. So in order to use noad_load() function, you should first retrieve node ids. Better if you use noad_load_multiple().
// Query all of the nids of a particular content type.
$nids = db_select('node', 'n')
->fields('n', array('nid'))
->condition('type', 'Article', '=')
->execute()
->fetchCol();
// Get all of the article nodes.
$nodes = node_load_multiple($nids);
You can see the result by calling print_r($nodes). Just write a normal function in you .module file or .inc file. Call it anywhere, your choice. say, in menu callback.

Remove All Files from a Collection in MongoDB

I have a collection named, phpDemo in a database named, test in my MongoDB server. The collection, phpDemo contains 8 files.
I want to remove all these 8 files which are in my collection. Since I am a rookie in MongoDB, I take the help of Google to learn about this NoSQL-type database. I searched for a function how to remove all the files that currently in my collection and I found this page, http://docs.mongodb.org/manual/reference/method/db.collection.remove/ that told me to execute the db.collection.remove() function.
I executed the function but even after doing so, it did not delete any of the files. I crosschecked by executing the db.collection.count() function and it returned the value, 8.
Can anyone tell me why isn't this function doing its job properly? Replies at the earliest will be highly appreciated.
Thank you in advance.
Okay I got the solution to the problem myself. You have to replace 'collection' in db.collection.remove() with the name of your collection. So in my case, the command that I will need to execute is: db.phpDemo.remove()

Clear quest - Need to query Named lists

My requirement:
i need to add a new value to the Named lists(in CQ, edit ->Named lists ->Build Number) using cq perl.
Please help me in this.
Got it, Thanks.
If any one is looking for answer:
http://pic.dhe.ibm.com/infocenter/cqhelp/v7r1m2/index.jsp?topic=%2Fcom.ibm.rational.clearquest.apiref.doc%2Ftopics%2Fc_database_mthds.htm

Resources