I have a standard Rails 4.1 Application with a Grape on top providing API.
Recently I found that Application#call has taken quite a big part of my response time, following is what I see in Newrelic:
Maleskine::Application#call takes the largest part, 67.6ms and 29.8% of the average response time. I don't think this is right, is it? But I don't know where to look at.
I need help, Thank you very much.
Related
I am trying to get the Quickchart Wordcloud API to work, however, I get very spread apart and small text.
This used to work fine (I tested it a few weeks ago), but something seems to have changed to cause the issue you can test below.
Example
Apart from the text, you can see the querystring below:
rotation=0&format=png&height=176px&width=506px&font-family=sans-serif&removeStopwords=true&text=
Any insight into how I can get this to work would be appreciated.
I maintain this API and want to apologize for the trouble you encountered over the last few weeks. This should be fixed now with no action required on your end.
Some background on the trouble: the underlying library, d3-cloud, is a bit finicky and under certain conditions it will not show top words if they are too large. We attempt to resolve this by sizing the words explicitly, but this can be imprecise because we do not have full rendering information. In the long term, I'd like to move to a more robust rendering library but for now we're tuning the workaround.
Related issues in the d3-cloud repo:
https://github.com/jasondavies/d3-cloud/issues/166
https://github.com/jasondavies/d3-cloud/issues/159
https://github.com/jasondavies/d3-cloud/issues/36
I have been doing some tests with the path loss formula and it gives me some pretty good results so far. However, I looked at the original code and saw that the formula used is
distance = Math.pow(10.0, ((-adjustedRssi+txPower)/10*0.35))
where adjustedRssi is RSSI - adjustment. This was giving me very small values for distance so I thought that I must have modified it at some point by accident. After doing the maths and playing around a bit I found that using txPower-adjustment instead of txPower-adjustedRSSI gives me correct distances.
I figured that the error must have been my fault but looking back at an original copy of the library I am seeing that the formula was actually this way all along.
Is this a mistake or am I missing something obvious? Using the formla as is right now gives me wrong results while modifying it the way I did gives right results.
Also, why is the formula only used if the ratio<1. Shouldn't it work in either case?
Yes, you are absolutely right! Reviewing this now, I can see that this was a simple coding error I made when I originally wrote this. I paused work on the path loss formula because I was getting poor results, probably because of this error.
Since this is a development branch of an open source library hosted on Github, it is probably most appropriate to discuss this in that forum. Please feel free to comment directly on the pull request thread here: https://github.com/AltBeacon/android-beacon-library/pull/251. As the lead developer on that project, I would also welcome a pull request with the changes you are making.
I would like to assign mobility to motes already deployed. The deployment method can be anyone among the given options given in cooja. Can anyone please tell me how to assign mobility?
As far as I know there currently is no working mobility plugin. Currently I see the following options:
You can use the test-script to move your motes around. This needs some looking in to the Cooja code, but shouldn't be too difficult. Especially when taking the examples from the wiki as staring point.
You can get the mobilty plugin working again. Shouldn't be too much work either and lots of people will thank you. Adjusting the name-spaces should get you quite far, but it might be a bit more.
If you can derive connection-properties from your mobility-model, you can use realsim feed these into Cooja.
Hi take days looking information about this and I have found absolutely nothing, is there app like Onavo using a proxy, but some do not and I need to know how much data I'm consuming at one point to see if it is producing for such a shock, I need a lot of help if they have some information please help. for example:
I am interested in making an app that reads "text" from a file and prints it into a label.
I would receive the data from a server and the label will print that text.
Does anyone have basic websites, documents I should take a look at?
I need to get a starting point. NOT interested in any code for I am doing this as a learning experience. Do you know of a good place to start?
Thanks!
Start by taking a look at NSURLConnection. You can find a basic outline (and code) here. There are lots of examples around this if you Google it.