Menu
  • HOME
  • TAGS

v8 node buffer of unsigned chars

c,node.js,v8,add-on

In your addon C code use a cast like this: (unsigned char*)node::Buffer::Data(slowBuffer). This is the usual fix for the specific error shown.

Firefox SDK Error “Image contains errors and cannot be displayed”

javascript,image,firefox,xmlhttprequest,add-on

Finally, I was able to detect the problem. For the XMLHttpRequest, I had to specify its response type as follows: xmlRequest.responseType = 'arraybuffer'; Then, the response was stored in a JavaScript ArrayBuffer, which I had to transform into a Uint8Array and then, store it into the stream. This solution applies...

Uninstalling addons when main app is uninstalled

java,android,apk,add-on

You can listen to the broadcast to see if your main app is being uninstalled. See this for more info: Android: Listen for app installed / upgraded broadcast message When you detect that your main app is removed, your add-on app can suggest/remind users to uninstall add-on app using Android...

Deep linking with Ajax does not work with latest - jquery address

javascript,jquery,ajax,add-on

First of all you always should load jQuery before you load any jQuery plugins. In the linked example you do it in the wrong order. But regarding to the error you got you probably did it right while testing. The next problem is that jQuery.address makes use of jQuery.browser which...

use libuv function in node.js 0.12.x

c++,node.js,add-on

just adding #include <uv.h> to the begin of the code can resolve the problem.

LoadLibrary in IE addon does not work

c++,internet-explorer,dll,add-on

By default, the directory that contains your stub dll is not in the search path for LoadLibrary(). We have done this in our application by determining the path of our stub dll, and then using that path to LoadLibrary() the full pathname of our extra dlls.

odoo v8 - Field(s) `arch` failed against a constraint: Invalid view definition

python,xml,view,odoo,add-on

You have made silly mistake in defining _columns. _colums is not valid dictionary name for fields structure. Replace this by _columns and restart service and update module. ...

Pyro Cms Flicker Gallery add On(from Arthur guy) Not showing the complete photosets on Front end

add-on,pyrocms

Going through this issue, it might looks like the cache problem as this addon use the cached result as well, so first try to change the cache length from the admin panel settings and check the results. If the problem remains there the look into the front end controller flicker_gallery...

Google Sheets Add-On onOpen() only running once but onEdit() is fine

google-apps-script,google-spreadsheet,add-on,chrome-web-store

"If an add-on is installed for a user but not enabled in the current document, onOpen(e) runs in AuthMode.NONE; if the add-on is enabled in the current document, onOpen(e) runs in AuthMode.LIMITED. If the add-on is both installed and enabled, the enabled state takes precedence, since LIMITED allows access to...

How to call the console debug pannel in firefox addons

javascript,windows,firefox,hotkeys,add-on

Here is how to open the console pannel var win = event.target.ownerDocument.defaultView; win.gDevToolsBrowser.selectToolCommand(win.gBrowser, "webconsole"); Also possible with HUDConsoleUI.toggleBrowserConsole(); ...

Using the UrlShortener API in a custom Spreadsheet function

google-apps-script,google-spreadsheet,google-docs,add-on,url-shortener

EDIT: The OP pointed out in the comments that this is a custom function. Custom function run with limited authorization. A complete list of what is available is at: https://developers.google.com/apps-script/guides/sheets/functions#using_apps_script_services Below uses the REST API to get the shortened url. This will work with custom functions. You will just need...

Heroku - unable to add addons

git,heroku,cmd,add-on

In context to: Could not connect to logging service! Heroku services are sometimes down for maintenance or due to technical glitches. It's usually a temporary problem. To confirm, if this is the case, you can try visiting https://status.heroku.com/ at the time when you are experiencing such issues. In context to:...

Advantages of node.js addon vs child_process

node.js,add-on,child-process

There is a huge difference. C++ Addon is native code which is running as part of main application (on the same level as JS does). But if you use child_process, node will start new process and there is a huge overhead (spawning processes is much more complicated than running native...

How do I find the “operation's” location within the code? 'This operation is not supported from a callback function.'?

javascript,google-apps-script,callback,client-server,add-on

Look at the "Execution Transcript" under "View" in the Script Editor, immediately after receiving the error. It should show the file & line number where the exception occurred....

Iterate through LUA Table for string match

scripting,lua,add-on,lua-table

If ALL_ITEMS is a table that contains tables then it isn't ever going to have a cleanName field directly. Is that == in the loop intended to be against v? Also, if ALL_ITEMS is integer indexed you probably want ipairs instead of pairs to walk the table in order. Why...

GMod lua http.fetch return

http,lua,add-on

probably the easiest way to fix your problem is to update your function to take both a url and a callback that it can invoke after the request has been successfully completed. something like this: function postProcess(entry) -- do something with entry end function cl_PPlay.getSoundCloudInfo(rawURL, cb) local entry local url...

Insert Excel row using format from row below, not above

c#,excel,formatting,add-on

You need to use the CopyOrigin parameter as well. sheet.Range[string.Format("{0}:{0}", row)] .EntireRow .Insert( Excel.XlInsertShiftDirection.xlShiftDown, Excel.XlInsertFormatOrigin.xlFormatFromRightOrBelow ) See here for details on Insert and that enum. It is possible to get this parameter by recording a macro. There is a small box that pops up when you insert the row to...

HTTPS POST requests from browsers, why do I have to use an add-on?

http,browser,request,add-on

Because if you just paste your request directly on your browser, you are going to issue a GET HTTP command and not a POST one. POST are a little bit more complicated to format. You could use a TELNET command to issue a post command like this: $ telnet YOUR_IP...

uplaod local database data to heroku

heroku,add-on

The guide you're following is outdated, the pgbackups addon has been deprecated. Here's the guide you're looking for: https://devcenter.heroku.com/articles/heroku-postgres-backups heroku pg:backups restore 'https://s3.amazonaws.com/me/items/mydb.dump' DATABASE -a sushi ...

Can we use smtp with heroku without the SendGrid add-on?

ruby-on-rails,ruby,heroku,sendgrid,add-on

Yes you can simply sign up for a SendGrid account directly and then use the SMTP details. It would look like this: config.action_mailer.delivery_method = :smtp config.action_mailer.smtp_settings = { :address => "smtp.sendgrid.net", :port => 587, :domain => 'yourdomain.com', :user_name => ENV['SENDGRID_USERNAME'], :password => ENV['SENDGRID_PASSWORD'], :authentication => 'plain', :enable_starttls_auto => true }...

How to remove firefox 36 badge text

firefox,add-on,badge

To fully remove the badge text set it to an empty string, i.e. button.badge = "";

Firefox add-on description localization

firefox,localization,add-on

The answer is - the command "cfx xpi" from mozilla add-on sdk will overwrite install.rdf if you have it in project folder. So, to get things work properly - create xpi package, unpack it (unzip) - and you will find auto-generate install.rdf inside (!!!), substitute install.rdf with your own and...

Firefox add-on to add a .css and a .js file to a page

javascript,css,firefox-addon,firefox-addon-sdk,add-on

You should use the page-mod api, here is the documentation ( including simple code examples ): https://developer.mozilla.org/en-US/Add-ons/SDK/High-Level_APIs/page-mod In particular, you add js files using the contentScriptFile option, and css files using the contentStyleFile option. Here's a very simple example: var data = require('sdk/self').data; require('sdk/page-mod').PageMod({ include: ["*"], contentScriptFile: [data.url('script.js')], contentScriptFile: [data.url('style.css')],...

What can replace «innerHTML» (Opera Addons)?

opera,add-on,browser-extension,browser-addons

document.getElementById("information").innerHTML = info[0].getAttribute("text"); One line of code turns into tens ... Not very practical, but no other way. var informationDiv1 = document.createElement('div'); var informationDiv2 = document.createElement('div'); var informationDiv3 = document.createElement('div'); var informationImg = document.createElement('img'); informationDiv1.setAttribute("class", "panel panel-primary"); informationDiv1.setAttribute("style", "margin: 20px;"); informationDiv2.setAttribute("class", "panel-body...

Wocommerce- How to display product addons data on order details

data,order,woocommerce,add-on,details

I already solved my issue....It was my product add-ons plugin needed to be updated!!

XBMC/KODI error adding addon “structure incorrect”

add-on,xbmc,kodi

You will need to set it up like this: zip (name doesn't matter) folder with plugin name (ie plugin.program.hello.world) plugin files including addon.xml, LICENSE.txt, changelog.txt, icon.png, etc You don't need a special tool but you may be inadvertently compressing the zip. You could try Keka (or on SourceForge)....

Heroku: can I recover database after removing the add-on?

database,heroku,add-on,heroku-postgres

So after talking with Heroku, I actually getting my database back. I had looked through the log files and found this command had been run: $ Detach HEROKU_POSTGRESQL_COLOR Apparently the database wasn't actually removed/deleted but just disconnected from my account. They were able to locate it again and reattach it...

Update or Remove Custom Search Provider for Firefox

firefox,search,firefox-addon,add-on

Is there a reason that you do not use the ability to automatically update the search provider? You can see the documentation for supporting automatic search plugin updates on MDN at Supporting automatic updates for OpenSearch plugins. That page indicates that automatic updating has been supported since Firefox 3.5. However,...