developer-tools

Firefox developer tools adding a new rule?

╄→尐↘猪︶ㄣ 提交于 2019-12-01 17:52:35
I decided to try out the built in Firefox Developer Tools. Seems to be nice, but... I can't find out how to add a new rule to the CSS from Inspector/Rules. By that I mean ".my-new-rule" not just the "element" rule that is open by default. FINAL EDIT: This is now possible with the latest Firefox update. Update: As of FF 33.00 it is now possible to add new CSS rules using the inspector! It is not possible to use the inspector to create new CSS rules with out a browser add-on (see comment below). Just use the style editor. Type anywhere to make a new rule: As of Firefox 33 (in nightly right now

Android - How to check if Developer option is enabled

落花浮王杯 提交于 2019-11-30 22:10:16
How can I check if the user has developer option enabled on its device? (not with adb comunication active, or debug USB active, I need to know only if Developer Option are enabled). I've tried this solution: How to check programmatically whether app is running in debug mode or not? but it doesn't work for me. Thanks in advance try this: int adb = Settings.Secure.getInt(this.getContentResolver(), Settings.Global.DEVELOPMENT_SETTINGS_ENABLED , 0); You should use getInt or another in Settings.Global with DEVELOPMENT_SETTINGS_ENABLED Edit : Below API 17, it is the same but with Settings.Secure

How to log something to Zend Developer Tools toolbar?

﹥>﹥吖頭↗ 提交于 2019-11-30 15:33:53
It's posible to log to Zend Developer Tools toolbar some variable in ZF2 controller? Well, I have created a Collector to add personal information on ZendDevelopersTool. You need info from a Controller, and that's I never had tried to do. :) I gonna show you how I created the Collector, and maybe you can find some way to take info from the Controller. In your MyModule\module.config.php /* ZendDeveloperTools Configuration */ 'invokables' => array( 'MyModule\ConfigCollector' => 'MyModule\Collector\ConfigCollector', ), 'view_manager' => array( 'template_map' => array( 'zend-developer-tools/toolbar

Calling a Javascript Function from Console

匆匆过客 提交于 2019-11-30 10:42:55
问题 In Chrome's JavaScript console, how do I call a function that belongs to a .js file included in the webpage I am viewing? 回答1: If it's inside a closure, i'm pretty sure you can't. Otherwise you just do functionName(); and hit return. 回答2: An example of where the console will return ReferenceError is putting a function inside a JQuery document ready function //this will fail $(document).ready(function () { myFunction(alert('doing something!')); //other stuff } To succeed move the function

Facebook FQL Query Event_member “Inviter” and “Inviter_type”

北城以北 提交于 2019-11-30 03:59:44
问题 In the description of the FQL event_member page, it says that the column inviter should inform us about the ID of the user or page who invited a UID at the event, and inviter_type should inform us about whether the inviter was a user or a page. I have tried these functions on both public events and an event that I have created myself, but it always fails. "inviter": null and "inviter_type": "" for every user. Is this a bug, an old function that works no more, or a new function that does not

Is there a way to expand the column list in a SELECT * from #Temp_Table in SSMS?

好久不见. 提交于 2019-11-30 01:58:07
问题 As seen here LINK you can hover over the * in a SELECT * from... and a tooltip will come up with a list of the columns represented by that * . Is there a way to copy the text from the tooltip to the clipboard? I know that you can use the columns folder in the object explorer to generate a list of columns by dragging it into the query editor window, but this cannot work for temp tables as they do not appear in the object explorer. EDIT For completeness sake, the answer below "You can right

How to log something to Zend Developer Tools toolbar?

五迷三道 提交于 2019-11-29 22:50:56
问题 It's posible to log to Zend Developer Tools toolbar some variable in ZF2 controller? 回答1: Well, I have created a Collector to add personal information on ZendDevelopersTool. You need info from a Controller, and that's I never had tried to do. :) I gonna show you how I created the Collector, and maybe you can find some way to take info from the Controller. In your MyModule\module.config.php /* ZendDeveloperTools Configuration */ 'invokables' => array( 'MyModule\ConfigCollector' => 'MyModule

Calling a Javascript Function from Console

送分小仙女□ 提交于 2019-11-29 22:46:49
In Chrome's JavaScript console, how do I call a function that belongs to a .js file included in the webpage I am viewing? If it's inside a closure, i'm pretty sure you can't. Otherwise you just do functionName(); and hit return. An example of where the console will return ReferenceError is putting a function inside a JQuery document ready function //this will fail $(document).ready(function () { myFunction(alert('doing something!')); //other stuff } To succeed move the function outside the document ready function //this will work myFunction(alert('doing something!')); $(document).ready

Google Developer Tools “Network” Tab clears after redirect

好久不见. 提交于 2019-11-29 20:47:35
Google Developer Tools "Network" Tab clears after redirect to another page and i want to know if there is any way to keep all request? I want to do this because i want to verify one POST request but it redirects and get cleared. In firebug we can use the "Persist" option: (The "Persist" option prevents clearing the console at a page reload. That means, the messages will stay inside the console as long as this option is enabled.) https://getfirebug.com/wiki/index.php/Console_Panel In the network tab of dev tools, on the top left of the dev tools there should be a checkbox labelled Preserve log

Check whether network response is coming from server or Chrome cache

二次信任 提交于 2019-11-29 02:51:53
In Google Chrome, how you can check which files are served from the browser cache, and which comes from the server? James In Chrome Developer Tools switch to the Network tab and on the Size column it will either give you the size of the downloaded content or say (from disk/memory cache) . If you can't see the size column then you may need to close this window 来源: https://stackoverflow.com/questions/13140318/check-whether-network-response-is-coming-from-server-or-chrome-cache