call to beautiful.at_screen_connect() error in rc.lua - awesome-wm

I have been trying to configure the awesome-copycats theme package and keep getting the following error on startup:
<home>/.config/awesome/rc.lua:214: attempt to call a nil value (field 'at_screen_connect')
This refers to line 214 of the default rc.lua included with the theme package:
awful.screen.connect_for_each_screen(function(s) beautiful.at_screen_connect(s) end)
My knowledge of the awesome api is limited, so even a small hint about this problem would be extremely helpful.

This issue was already reported a couple of times upstream. As far as I see, no solution was seen yet, but I wanted to let you know that this is not "just you":
See https://github.com/lcpz/awesome-copycats/issues/198 and
https://github.com/lcpz/awesome-copycats/issues/226

Related

Kibana (Elasticsearch) dev environment

I want to embed one my specific chart in dahsboard of kibana. For that I need inject my JS into Kibana source. I have followed by instructions https://github.com/elastic/kibana/blob/master/CONTRIBUTING.md to provide test environment, but I have obtained an error after "./kibana --dev"
let _ = require('lodash');
^^^
node.js:201
throw e; // process.nextTick error, or 'error' event on first tick
^
SyntaxError: Unexpected strict mode reserved word
at Module._compile (module.js:429:25)
at Object..js (module.js:459:10)
at Module.load (module.js:348:32)
at Function._load (module.js:308:12)
at Array.0 (module.js:479:10)
at EventEmitter._tickCallback (node.js:192:41)
Can anybody help me with start environment, or advice. Probably, I am moving by wrong way...my general goal (inject my JS code into Kibana) can be reached by another approach.
Thanks
I have reached my general goal, and if it is right - I place here my approach. (also, as an answer for above question)
When I was seeking ways how to implement what I want (my own custom metrics in dashboard....only as training and for personal "sport interest" sake) - I had chosen next way.
First of all - you need pay attention on index.js, not small one but huge file (more than 5MB), it predominantly contains angularJS terms.
My steps was:
I put into HTML empty container for my metrics
<div class="metric_container"></div>.
HTML defines in index.js as
define('text!plugins/dashboard/index.html',[],function () { return '<div dashboard-app class="app-container dashboard-container">\n .....
you can try to search ctrl+F it over the index.js
I found variable with JSON data for charts (esResp)
I found watcher on changing it $scope.$watch('esResp', prereq(function (resp, pre Resp) {....
Put in the body of watcher my_function () call.
finished my_function() call, that contains completing HTML metric sample with renewed figures (from esResp JSON) and putting it into
metric_container
so, I can develop my own metrics, charts, and it will be renew, but ONLY based on information provided in charts.
So, If you need smth - you need firstly create appropriate chart because of data set for you own calculations and further visualization.
Something So.
I am sure, probably there is best way, but my was.
I have created a number of visualizations for Kibana 4.4.1, and once you have the right baseline, it is no big deal.
I encourage you to take a look at any of my sources, in order to know what has to be done (http://github.com/JuanCarniglia).
There are some basic files you need to have, and you have them, you just put them on the src/plugins directory, and restart kibana. If everything is fine, you get a new visualization on the list.
If you encounter any problems or need a more detailed description, send me a message or post it here and I'll try to explain with more detail.

Parsing Meteor error: Exception from Deps afterFlush

I get these Deps errors from time to time and I can never figure out what they mean or what they're pointing to:
Exception from Deps afterFlush function function: SyntaxError: Unexpected identifier
at eval (native)
at http://localhost:4000/packages/jquery.js?265926494aaa3929cd2e30da265211c5929f37a4:372:22
at Function.jQuery.extend.globalEval (http://localhost:4000/packages/jquery.js?265926494aaa3929cd2e30da265211c5929f37a4:373:7)
at jQuery.ajaxSetup.converters.text script (http://localhost:4000/packages/jquery.js?265926494aaa3929cd2e30da265211c5929f37a4:9806:11)
at ajaxConvert (http://localhost:4000/packages/jquery.js?265926494aaa3929cd2e30da265211c5929f37a4:8873:18)
at done (http://localhost:4000/packages/jquery.js?265926494aaa3929cd2e30da265211c5929f37a4:9293:15)
at callback (http://localhost:4000/packages/jquery.js?265926494aaa3929cd2e30da265211c5929f37a4:9753:8)
at Object.send (http://localhost:4000/packages/jquery.js?265926494aaa3929cd2e30da265211c5929f37a4:9759:7)
at Function.jQuery.extend.ajax (http://localhost:4000/packages/jquery.js?265926494aaa3929cd2e30da265211c5929f37a4:9244:15)
at Function.jQuery._evalUrl (http://localhost:4000/packages/jquery.js?265926494aaa3929cd2e30da265211c5929f37a4:9409:16) debug.js:41
It thinks that there is a syntax error, but the only files it points to are jquery.js, which I HIGHLY doubt contain errors...
This error is caused by code in a Template helper somewhere that uses JQuery/a jquery plugin and is running code using eval which contains a syntax error in it, which is why it appears to come from JQuery itself.
There isn't much more than this to go off im afraid. It might be from ajax. Have a look at your chrome's network tab to see what is being downloaded just before this happens and see if it contains any javascript.
If it contains HTML when it should contain javascript check your Meteor paths, Meteor does not throw 404 errors, instead it serves out the main page's html, which may be why the error displays this way instead of a 404
I just came across the similar "afterFlush" error, and while my error was also rooted in a jQuery/plugin with Meteor, it had nothing to do with eval.
The issue circled back around to updating the DOM at the same time I was updating a reactive method, where Meteor was also updating the DOM reactively. I found this out, and removed the manual DOM manipulation, which made this error go away. Hope someone else finds this helpful...

Drupal 7: Views giving 500 error - stdClass::can_expose is undefined?

I have a view that I have created that seems to crash and cause 500 server errors as soon as I use conditional filters with it.
The error that my server logs are giving me is:
*mod_fcgid:stderr: PHP Fatal error: Call to undefined method stdClass::can_expose() in /sites/all/modules/contrib/views/views.module on line 1971*
So I did a grep for the can_expose function and see it fine in /sites/all/modules/contrib/views/includes/handlers.inc
I'm more convinced that its something that I might be doing wrong in my setup of the view - but I can't be sure (I'm a noob). This only seems to appear on this view that uses conditionals (and I have tried changing them numerous times to different things, seeing if that will change).
If I don't use conditional filters though - the view works fine.
Any ideas?
Thanks
Ryan
Just for kicks, I recreated the view and it works fine. My thought is that something in the original view got corrupt somehow.
Workaround is in place, however - if anyone else has seen this issue, I would love to understand why this error happens

Does the ##iterate_diff view from plone.app.iterate work with plone.app.stagingbehavior?

I have a custom type made using dexterity and plone.app.stagingbehavior installed. I can check in and check out my custom type, but trying to view the diff results in a stack trace because plone.app.iterate.browser.diff.DiffView doesn't seem to know how to get the baseline and working copy versions for objects made using dexterity/p.a.stagingbehavior.
I did try overriding DiffView and changing it to use get_baseline and get_working_copy from from plone.app.stagingbehavior.utils, but the diff view still doesn't work (with a different exception, ten thousand levels deep in Products.Archetypes, so I assume it's not likely to work). Perhaps collective.dexteritydiff would help at this point.
It's a bit confusing because p.a.stagingbehavior includes a link to ##iterate_diff in its version of the plone.app.iterate.checkout_info portlet, which makes me think it's intended to work and maybe my setup is broken or I've done something wrong.
The problem is due to plone.app.iterate.browser.diff.DiffView not being compatible with Dexterity yet. The diff-view calls context.getReferences which raises an AttributeError on dexterity objects. Since this happens in a __init__ method the traceback is swallowed. It should use __call__ and code to get the references like plone.app.stagingbehavior.utils does.

Correct way to force an invoice e-mail to be sent to a user in UberCart?

What is the correct way to force the system to send an invoice to a client. I'm trying to use:
uc_order_action_email($order, $settings);
But I keep getting:
Fatal error: Call to undefined function uc_price() in C:\xampp\htdocs\YourEstablishment\src\sites\all\modules\ubercart\payment\uc_payment\uc_payment.module on line 149
It might be a flaw in the module. The function that it's complaining about, uc_price, is defined in
ubercart/uc_store/includes/uc_price.ini
Since it's located in a ini file, that means that drupal wont include it by it self. I'm not familiar with ubercart, since I've never used it, but it seems like this could be a bug in the module. If no one here can come up with an explanation, you should go to the issue tracker.
A quick fix to your problem would be to add this before you call the function
require_once(drupal_get_path('module', 'uc_store') . '/includes/uc_price.inc');
it will include the needed file.

Resources