chrome extension: the js script fires too early despite run_at: document_idle

chrome extension: the js script fires too early despite run_at: document_idle

In theory, if I set run_at, the .js that I use to select an element on the page should fire after the page is completely loaded. But it doesn't appear to be the case. In my content.js, I have "content_scripts": [ { "js":

How to manage production and development credentials using Facebook iOS SDK

How to manage production and development credentials using Facebook iOS SDK

SymptomsMy app is using Facebook to let users log in. It works fine while debugging from XCode and testing through AdHoc deployment, in order to have external testers we submitted our app for review but it seems that Facebook is complaining

Reading Application Logs on Google App Engine from Developer Console

Reading Application Logs on Google App Engine from Developer Console

Reading and Writing Application Logs discusses the difference between Request logs vs application logs. In main.py running on App Engine I import logging and grab a logger (since it's named, options_log, I'm not using root logger):import lo

Ionic Framework Keyboard hides input field

Ionic Framework Keyboard hides input field

I am having some issues in a form I am creating. This form: Is almost in the middle of the screen but when the user taps on the input field to start typing, the focus is not being correctly executed. The keyboard shows but it is hiding the

Xamarin iOS Autolayout: Resize width and vertical scroll automatically for various devices while kee

Xamarin iOS Autolayout: Resize width and vertical scroll automatically for various devices while kee

I want to create a page which has a vertical but no horizontal scroll. It must adjust width of the content and vertical scroll automatically as per screen size. Something similar to this:I can not use UITableView since, my page may not have

Obtain RSSI with hcidump

Obtain RSSI with hcidump

In order to read the raw RSSI values, we use a utility called Hcidump, which monitors the Bluetooth HCI data. Using hcidump commands, we can read the raw RSSI values when an inquiry response message is received. To obtain RSSI values for ev

Get count of “loglevel” for each “name”

Get count of “loglevel” for each “name”

For example I have following collection: db.names.find({}){ "_id" : ObjectId("5768d9b4bc6f464899594570"), "name" : "t1", "loglevel" : "ERROR" }{ "_id" : ObjectId("5768d9d5bc6f464899594571"), "name" : "t1", "loglevel" : "ERROR" }{

Parsing a JSON array with dictionaries

Parsing a JSON array with dictionaries

I'm having some trouble getting to the data I want to in the JSON file. Here is a shortened version of the output from my console: { AUD = { 15m = "125.15547"; 24h = "124.74"; buy = "121.0177"; last = "125

redefining Console colour palette in c#

redefining Console colour palette in c#

Could somebody please tell me how can I redefine the colour palette of the Console in C#? 1:Yeah, it's possible. You'll need a bunch of P/Invoke declarations to use code like this:CONSOLE_SCREEN_BUFFER_INFOEX info;info.cbSize = sizeof(i

Could not find a storyboard named 'Main' in bundle, Xcode 7

Could not find a storyboard named 'Main' in bundle, Xcode 7

I'm having troubles with my project after upgrading to XCode 7. When I run I get an error, "Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: 'Could not find a storyboard named 'Main' in bundle NSBundle". My st

Android Google maps APIv2 InfoWindow and Markers

Android Google maps APIv2 InfoWindow and Markers

I'm using Google maps APIv2 for android. I've implemented MapFragment, put markers where I need, added custom InfoWindow for markers.The issue is - I have AsyncImages in my InfoWindow and have ProgressBar there. The thing is - ProgressBar d

Can SimpleMembership and Entity Framework share a connection string?

Can SimpleMembership and Entity Framework share a connection string?

Currently when using Entity Framework and SimpleMembership I need to have 2 connection strings in web.config.The first is used when calling WebSecurity.InitializeDatabaseConnection and its a simple connection string. The other is for the ed

How to send data from fragment to fragment within same fragment activity?

How to send data from fragment to fragment within same fragment activity?

I have a container in which there are two fragments my 1st fragment is working good now I want to send it to 2nd fragment.This is my 1st Fragmentprivate class LoadLink extends AsyncTask { @Override protected String[] doInBackground(St

How to create an unknown amount of variables in python

How to create an unknown amount of variables in python

I am making a program that reads a spread sheet. For each column, my program creates a list of all the values in each row of that column. To decide how many lists I need, I have the variable columnBound which is the total amount of columns

Custom info window in IOS google maps sdk

Custom info window in IOS google maps sdk

being a newby IOS developer, I'm really struggling to get something basic to work.I have a need to display this kind of custom info window upon a marker click in the google maps sdk for ios.Any help would be appreciated.I've already seen th

Undefined var when using Html Helper in CakePHP 2.0

Undefined var when using Html Helper in CakePHP 2.0

I am getting this error on my first attempt of CakePHP: Undefined variable: html [APP/View/Posts/index.ctp, line 13]I have version 2.0-alpha, have I got the wrong version or what has changed again. Seems it can't find the html helper.More

PUT handler not found with serviceStack on IIS7.5

PUT handler not found with serviceStack on IIS7.5

I am currently using serviceStack for creating REST based services which are hosted in a MVC web application.So far ServiceStack has been amazing and I have achieved to get most of what I wanted to do working. All this works in IISExpress.I

What is the win32 API function for private bytes?

What is the win32 API function for private bytes?

What is the win32 API function for private bytes (the ones you can see in perfmon).I'd like to avoid the .NET API 1:BOOL WINAPI GetProcessMemoryInfo( __in HANDLE Process, __out PPROCESS_MEMORY_COUNTERS ppsmemCounters, __in DWORD

Bazaar and $Id$

Bazaar and $Id$

Most my sources are in subversion and I use '$Id$' to add revision information to those sources. Then I can easily check what sources were used (e.g.. --version option shows that info).Now I'm going to use bazaar and I can't find such a fun

Data table error could not find function “.”

Data table error could not find function “.”

I am trying to run the following piece of code. Whenever I try to run the code I get the following error: Error in eval(expr, envir, enclos) : could not find function "."How can I fix it? Could someone help? data(mtcars)library(data.table)m

JavaScript closures and variable scope

JavaScript closures and variable scope

I am having trouble with JS closures:// arg: an array of strings. each string is a mentioned user.// fills in the list of mentioned users. Click on a mentioned user's name causes the page to load that user's info.function fillInMentioned(me

How to insert BLOB datatype

How to insert BLOB datatype

I'm using the following code to insert into a blob field:MySql.Data.MySqlClient.MySqlConnection conn;MySql.Data.MySqlClient.MySqlCommand cmd;conn = new MySql.Data.MySqlClient.MySqlConnection();cmd = new MySql.Data.MySqlClient.MySqlCommand()

Get the domain name of a computer from Windows API

Get the domain name of a computer from Windows API

In my application I need to know if the computer is the primary domain controller of a domain, so I need to know the domain of the computer to call NetGetDCName function.Thanks.EDIT: The problem is related with the DCOM authentication so I

Parse XML with PHP and XMLReader

Parse XML with PHP and XMLReader

I've been trying to parse a very large XML file with PHP and XMLReader, but can't seem to get the results I am looking for. Basically, I'm searching a ton of information, and if a contains a certain zipcode, I'd like to return that bit o

Mediacodec jelly-bean

Mediacodec jelly-bean

I'm working with media codec for an .mp4 file on jelly-bean and getting this in logcat02-27 12:12:13.645: A/ACodec(6760): frameworks/av/media/libstagefright/ACodec.cpp:1041 CHECK(def.nBufferSize >= size) failed.02-27 12:12:13.645: A/libc(67