1 / 3
Caption Text
2 / 3
Caption Two
3 / 3
Caption Three margin testing

Showing posts with label Firefox. Show all posts
Showing posts with label Firefox. Show all posts

Monday, September 20, 2010

CodeBurner puts Web language reference information at your fingertips

http://www.downloadsquad.com/2010/09/20/codeburner-puts-web-language-reference-information-at-your-finge/

codeburner

CodeBurner is a neat tool for rapidly checking a ton of CSS and HTML reference information, including compatibility, functionality, and more. It's available as a Firefox add-on or a Firebug plug-in, and as an Adobe AIR application, OS X Dashboard Widget, or Opera add-on.

I tested the Firebug variant, because I use Firebug for all of my Web debugging needs. And indeed, CodeBurner adds a nice, comprehensive reference layer. I click any page element (or search for an element), and get a list showing the selected element and telling me about it, showing what are the attributes defined for this element, what other attributes may be defined for it (i.e, are valid but aren't specified in the site markup), and what styles and selectors apply to this element.

Next to each of these, I can see browser compatibility information for select browsers. For example, I had no idea the "text-align" style is considered "buggy" under IE7 – now I know.

Each style and attribute gets just a single line of text, but if you want more information, just click themore link. You will then be taken to SitePoint's reference section for the selected attribute – here'scolor for example. The reference page contains a verbose description, an example, and complete compatibility information. If all of this sounds a bit too comprehensive, you can always dial it down a bit and filter your search so that it only returns HTML Elements, for example.

Friday, February 12, 2010

How to configure Firefox and Firebug to use External Editors

[other] HELP: How to configure firebig editors. - Ubuntu Forums
(I used geany instead of gedit, HL 20100213 )

This will get Firebug to work with Gedit:

in firefoxes address bar type :
about:config
then search for :
view_source.editor.external
- and set this boolean to TRUE

then search for :
view_source.editor.path
- and set this to ' /usr/bin/gedit '

Then open FireBug and add Gedit as an editor:
View -> Open with Editor -> configure Editors
Name it gedit and then browse for the executable within '/usr/bin' and select gedit.
Now you should see '/usr/bin/gedit' underneath 'executable' column in the configured editors window.

Thursday, February 11, 2010

How to Debug PHP Using Firefox with FirePHP

How to Debug PHP Using Firefox with FirePHP
July 11th, 2009 by Nuno Franco da Costa

Typically, there are two main ways of debugging server-side code: you can utilize an Integrated Development Environment (IDE) with a built-in debugger or log and perform your debugging processes in a web browser.

How to Debug PHP Using Firefox with FirePHP

This article shares an elegant, simple, and more maintainable way of debugging Ajax apps via the web browser (more specifically for the Mozilla Firefox browser). You'll learn the basics of leveraging Firefox in conjunction with Firebug and FirePHP to implement FirePHP libraries on web apps and logging messages in the Firebug console.

A Brief Introduction

When Ajax techniques became popular, developers faced a new problem: how can we debug Ajax requests and responses efficiently for complex web applications? If using a debugger was hard enough with the RESTful model, triggering an Ajax-specific request is a pain and a bit more difficult; dumping logs and information pertaining to those Ajax operations had to be done using JSON or XML.

A Brief Introduction

This is where FirePHP helps, allowing you to log your debugging messages to the Firebug console. FirePHP doesn't mess with your code (and it doesn't require you to modify anything to trap errors): the messages you print are sent to the browser in the HTTP response headers, which is great when you're using JSON or XML since it won't break their encoding.

This makes FirePHP ideal not only for debugging your Ajax requests, but also your entire PHP codebase.

So, what is FirePHP?

FirePHP is an add-on for an add-on: it extends the popular in-browser web development tool called Firebug with an API for PHP web application developers. FirePHP is free and easily attainable via the Mozilla Add-Ons section on the official Mozilla site. The official FirePHP site can be found via this web address: www.firephp.org. Christoph Dorn is the person responsible for creating FirePHP.

What Do I Need to Get Started?

As you might have guessed, you need three things to get up and running with FirePHP, they are:

  1. Firefox
  2. Firebug
  3. FirePHP

If you don't have all of the above applications installed on your machine, click on their link to learn about how to download them for your particular system.

Installation of the three things above is a straightforward process. FirePHP can be a little tricky to install if you've just recently started learning about web development, but there's good documentation out there about it.

This article is about using FirePHP, so I'll let you handle the installation part (though feel free to ask in the comments – we'd be happy to help if you encounter issues).

A Couple of Tips

Once you've installed FirePHP, and included it in your web application, you are ready to debug and log data. But first, I'd like to share two helpful tips I've learned:

Tip #1: call ob_start()

Because the information is sent to Firebug in the HTTP Headers, you should activate the output buffering or you might get the "headers already sent error". It may sound complicated, but all you have to do is write ob_start() on the first line of your PHP script that you're debugging.

Tip #2: don't forget to disable FirePHP Logging when you go live

You have to disable FirePHP when the site goes live or you will risk exposing sensitive information to anyone that has Firebug/FirePHP installed (we'll talk about how to do this later down the article).

And then just a general tip for Firebug/FirePHP users: it's also a good idea to disable or suspend Firebug and FirePHP when you're just browsing the web because they can really slow down some websites and web applications (such as Gmail, for example).

Getting Started with FirePHP Logging

This is the fun part where we start logging messages and reviewing the basic logging functions.

One thing to note is that, just like PHP, which (at least for PHP4 and PHP5) is a "pseudo object-oriented" language, you can use FirePHP in a procedural or object-oriented (abbreviated OO from now on) manner.

I prefer the object-oriented techniques and I encourage you to use the same pattern as it is considered the most popular and most modern approach to building apps.

The OO API allows you to instantiate a Firebug object to use it or to call its static methods directly. I'm a lazy guy and because static methods are more terse and require less typing, that's what I use.

Instantiating the OO API Object

In your script, you can use the following code block to create the FirePHP object ($firephp).

require_once('FirePHPCore/FirePHP.class.PHP'); $firephp = FirePHP::getInstance(true); $firephp -> [classmethod]

OO API with Static Methods

This is the format for calling static methods in your scripts.

require_once('FirePHPCore/fb.PHP'); FB::[nameofmethod] 

The Procedural API

Here's how to use FirePHP's Procedural API:

require_once('FirePHPCore/fb.PHP'); fb($var) fb($var, 'Label') fb($var, FirePHP::[nameofmethod])

We will not get into any detail about the benefits and coding style of each API, I've included them here only so you see what options are available for you. In other words, I don't want to start a flame war about which procedure is better – it's up to you to decide and I've noted my preference.

Logging Messages and Information in the Firebug Console

Let's talk about logging messages in the Firebug console (remember, this will only work if you've configured your app for FirePHP).

Examples of Basic Logging Calls

If you are ad-hoc debugging a bug, the following examples are what you'll be interested in utilizing.

Fb::log("log message")

This will print a string that you pass to it onto the Firebug console. Using the above example results in the following message:

Log message.

Fb::log($array, "dumping an array")

Passing an array (no more for loops or print_r() in your scripts) outputs the content of your array. The above example will result in the following message in the Firebug console:

Dump message array

Tip: when you hover your mouse on logged variables in the Firebug console, an info window will appear in the web page containing all of its elements. It's a nifty feature, don't you agree?

Variable Viewer

Logging an Information Message

Here is an example of logging information messages using the info method.

Fb::info("information")

This is the message it logs in your Firebug console:

info message.

Logging a Warning Message

Here is an example of logging a warning message.

Fb::warn("this is a warning")

This is the message it logs in your Firebug console:

Warning message

Logging an Error Message

Here is an example of logging a warning message using the info method.

Fb::error("error message") 

Here's what an error message looks like in the Firebug console:

Error message.

Enabling or Disabling FirePHP Logging

When your site goes live, you can (and should) disable FirePHP logging. Call the following line of code on the first lines of your script.

FB::setEnabled(false);

What's great about this is that you can leave all of your FirePHP code in your scripts for later use – just pass either true or false when you want to turn logging on or off.

If your application uses a "config file" to keep track of global settings, it is advisable to set a configuration option to enable or disable it.

Conclusion

First, here's a screen capture showing all of our messages in Firebug all at once (I ran it sequentially).

Conclusion: all together now

In this article, we covered the very basics of using FirePHP to help you debug and gain information about your PHP/Ajax applications easier and through the web browser. I hope that this results in you becoming convinced that you should explore your debugging options outside of "old-school" techniques such as using echo or print on top of your web page layout to see what a variable or array contains. Using FirePHP is so easy and convenient, and gives you much more options and data for debugging purposes.

In a future article, I'll be covering more complex features of FirePHP and using Firebug to make this simple debugging tool a more robust and fully-featured logging framework.

So stick around, don't forget to subscribe to the Six Revisions RSS feed so you get a note when that article is posted. * Article edits by Jacob Gube

Related content

About the Author

Nuno Franco da Costa is a web developer and sys admin. By day, he works at a design agency coordinating the development and sys admin teams where he developed a PHP MVC framework and a WEB 2 CMS. He loves to code and has a "getting things done" attitude. You can find over at his online presence www.francodacosta.com

Tuesday, February 2, 2010

解决 Ubuntu 上Firefox 3.6 字体发虚的问题

Firefox Optimization and Troubleshooting | lovinglinux

Open the file ~/.fonts.conf with a text editor…
…then replace the content of that file with this:

Code:

<?xml version='1.0'?>
<!DOCTYPE fontconfig SYSTEM 'fonts.dtd'>
<fontconfig>
<match target="font" >
<edit mode="assign" name="rgba" >
<const>none</const>
</edit>
</match>
<match target="font" >
<edit mode="assign" name="hinting" >
<bool>true</bool>
</edit>
</match>
<match target="font" >
<edit mode="assign" name="hintstyle" >
<const>hintslight</const>
</edit>
</match>
<match target="font" >
<edit mode="assign" name="antialias" >
<bool>true</bool>
</edit>
</match>
</fontconfig>

Save it and restart Firefox.

Monday, February 1, 2010

Firebug vs. Web Developer: Debug and tune apps on the fly

LXer: Firebug vs. Web Developer: Debug and tune apps on the fly with Firebug

(After upgrade to Firefox 3.6, I installed Firebug 1.5.0 and Google Speed 1.6.0. HL 20100201 )

We use these a lot in my shop, and there's a schism of sorts between the Firebug and Web Developer extensions.

I've used both, but haven't gotten too deep into either one. Right now I have Web Developer 1.1.5 running. It's a bit less "invasive" than Firebug, but I'm not saying I won't go back and try the other one.

I run both at the same time, but usually keep firebug disabled unless I actually use it. Both have features the other lacks.

Saturday, January 30, 2010

How to install Firefox 3.6 in Ubuntu Karmic/Jaunty/Intrepid/Hardy

How to install Firefox 3.6 in Ubuntu Karmic/Jaunty/Intrepid/Hardy | Ubuntu Geek

Install Firefox 3.6 on Intreped, HL 20100130

(Using GUI to remove Firefox 3.0 first, keep configuration by not selecting completely remove)

Problem:
First you need to edit /etc/apt/sources.list file
deb http://ppa.launchpad.net/ubuntu-mozilla-daily/ppa/ubuntu intrepid main
deb-src http://ppa.launchpad.net/ubuntu-mozilla-daily/ppa/ubuntu intrepid main

sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys 247510BE
sudo apt-get update
W: GPG error: http://ppa.launchpad.net intrepid Release: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 9BDB3D89CE49EC21
W: You may want to run apt-get update to correct these problems

Fix:
Enter this command, replacing 247D1CFF with your NO_PUBKEY-key last eight digits from the error-message to import the key:
gpg --keyserver keyserver.ubuntu.com --recv CE49EC21

Then add the key to your software sources, again, replace 247d1cff with the keynumber used in above command:
gpg --export --armor CE49EC21 | sudo apt-key add -

Then update your software sources and install:
sudo apt-get update
sudo apt-get install firefox-3.6

-----------

If you want to install this on your ubuntu system use this tutorial (Ubuntu Karmic/Jaunty/Intrepid/Hardy)

You can check here what is new in firefox 3.6 from here

Note:- This will install Firefox 3.6 daily builds

For Ubuntu 9.10 Users

Open the command prompt and run the following commands

sudo add-apt-repository ppa:ubuntu-mozilla-daily/ppa

Update source list

sudo apt-get update

Install firefox 3.6

sudo apt-get install firefox-3.6

For Other ubuntu version Users

First you need to edit /etc/apt/sources.list file

gksudo gedit /etc/apt/sources.list

Add the one of the following lines

For Ubuntu 9.04 (Jaunty) Users

deb http://ppa.launchpad.net/ubuntu-mozilla-daily/ppa/ubuntu jaunty main
deb-src http://ppa.launchpad.net/ubuntu-mozilla-daily/ppa/ubuntu jaunty main

For Ubuntu 8.10 (Intrepid) Users

deb http://ppa.launchpad.net/ubuntu-mozilla-daily/ppa/ubuntu intrepid main
deb-src http://ppa.launchpad.net/ubuntu-mozilla-daily/ppa/ubuntu intrepid main

For Ubuntu 8.04 (Hardy) Users

deb http://ppa.launchpad.net/ubuntu-mozilla-daily/ppa/ubuntu hardy main
deb-src http://ppa.launchpad.net/ubuntu-mozilla-daily/ppa/ubuntu hardy main

Save and exit the file

Now you need to add PPA GPG key

sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys 247510BE

Update the source list

sudo apt-get update

Install Firefox 3.6

sudo apt-get install firefox-3.6

If you already have a version of Firefox 3.5 installed from a repo then upgrade using the following command

sudo apt-get upgrade

Friday, January 29, 2010

Mozilla Weave hits 1.0, keeps all your Firefox installs in sync!

Mozilla Weave hits 1.0, keeps all your Firefox installs in sync!
by Lee Mathews (RSS feed) Jan 29th 2010 at 8:03AM

Weave, Mozilla's browser sync tool, has finally hit version 1.0 -- for both the desktop and mobile versions of Firefox!

Install the add-on in your browser, and you can securely sync your Firefox profile data like bookmarks, history, passwords -- even the tabs you have open -- across all the machines on which you run it. Weave accounts are free to create, and your information is encrypted, password-protected, and parked in Mozilla's cloud until you need to access it from elsewhere.

Nokia N900 owners, Weave will seamlessly link your desktop and handset browsers keeping things perfectly synced up while you browse on the go.

So what won't Weave synchronize? Your addons, personas, search plugins, and under-the-hood customizations (like about:config tweaks). According to Mozilla, we just need to have a little patience -- they fully intend future versions of Weave to be able to sync everything which makes your Firefox truly yours.

Head on over to Mozilla Labs and grab Weave 1.0! Have questions you need answered? Check the Weave FAQ and Mozilla forums, or post a comment here!

更改Firefox扩展AutoProxy的状态栏图标

更改Firefox扩展AutoProxy的状态栏图标-月光微博客

  AutoProxy的确是Firefox的一个很不错的Firefox扩展,但其图标却不支持自定义,这点不如QuickProxy,我还是比较喜欢QuickProxy那种简单明了的状态栏图标,今天就花了点时间,制作了一个QuickProxy风格的状态栏图标,并成功接入到AutoProxy中。

  该图标地址点这里下载,然后将其另存为aup-status-16.png文件名。

  安装AutoProxy之后,替换时需要关闭Firefox浏览器,先找到AutoProxy的位置,通常在 c:\Documents and Settings\Administrator\Application Data\Mozilla\Firefox\Profiles\随机字符\extensions\ 目录下的 autoproxy@autoproxy.org 目录,接着进入chrome目录,使用WINRAR打开autoproxy.jar文件,在该文件的skin目录里,会发现存在aup-status-16.png这个文件,使用下载的那个文件将其覆盖,即可得到新的AutoProxy的状态栏图标。

  重启Firefox后,就可以看到状态栏图标已经改变了,个人喜欢这个新图标形式。

Friday, January 1, 2010

Why doesn't my new Favicon display?

Why doesn't my new Favicon display? - GoDaddy Help Center, Search the GoDaddy Knowledge Base

If you are using Firefox® and you're using an .ICO file as your favicon, you may need to do a "Force Refresh" to get the icon to display properly.

To Perform a Force Refresh in Firefox

  1. Using Firefox, navigate to your website.
  2. Change the URL to point directly at your favicon image file at the root of your site. For example, www.coolexample.com/favicon.ico.
  3. Right-click in the browser window and select Refresh.

The forced refresh prompts Firefox to reload the icon instead of a cached version. The updated icon displays in the address bar. However, you may need to restart Firefox to get the icon to display on tabs and in Favorites.

For information on applying your favicon to your Quick Shopping Cart, see Uploading a Favicon.

Thursday, November 26, 2009

Wappalyzer: Check which apps are powering a particular site

Wappalyzer: Check which apps are powering a particular site
November 14th, 2009 Leave a comment Visited 160 times, 8 so far today

Wappalyzer is a useful add-on for Mozilla Firefox web browser that can be used to check the tools used by a particular website.

It can report on the CMS being used to power the website. You can also get information on the various third party plug-ins being used by it.

It can detect following applications and services:

AWStats, BIGACE, BigDump, Blogger, Clicky, CMS Made Simple, ConversionLab, Coppermine, cPanel, Crazy Egg, CubeCart, DirectAdmin, dojo, DokuWiki, Drupal, e107, ExtJS, eZ Publish, FluxBB, Google Analytics,Google Friend Connect, Google Maps, IPB, Joomla, jQuery, Koego, Kolibri CMS, LiveJournal, Magento, MediaWiki, MiniBB, MochiKit, MODx, MooTools, Movable Type, MyBB, MyBlogLog, OneStat, osCommerce, osCSS, papaya CMS, PHP-Fusion,phpBB, phpDocumentor, phpMyAdmin, Plesk, posterous, Prestashop, Prototype, punBB, Quantcast, s9y, script.aculo.us, Site Meter, SMF, SPIP, Squarespace, StatCounter, Tumblr, TypePad, TYPO3, TYPOlight, Ubercart, Vanilla, vBulletin, viennaCMS, VisualPath, Vox, VP-ASP, W3Counter, webEdition, WebPublisher, WikkaWiki, WordPress, XMB, xtCommerce, YaBB, YUI, and Zen Cart.

Pretty comprehensive!

Checkout: Wappalyzer

Saturday, October 31, 2009

Google网站性能优化工具Page Speed

Google网站性能优化工具Page Speed-月光博客

  和Yahoo的YSlow一样,Google的开源网站优化工具Page Speed,是一个基于Firebug的FireFox插件,和YSlow一样,Page Speed可以帮助用户改善网站性能的工具。在运行它之后,可以看到一个帮助你的网站加载速度加快的建议列表,它会根据列表中的每一项检查你的网站并标明是否通过。

  Page Speed在运行时会分析一些Web服务器配置和服务器上下载下来的代码,还会创建一个结果列表,其中包括如何改进网页的建议。分析基于一个分为五类的最佳实践列表:

  * 优化缓存——让你应用的数据和逻辑完全避免使用网络

  * 减少回应时间——减少一连串请求-响应周期的数量

  * 减小请求大小——减少上传大小

  * 减小有效负荷大小——减小响应、下载和缓存页面的大小

  * 优化浏览器渲染——改善浏览器的页面布局

  这些实践考虑了页面加载时间,以及发出页面请求到客户端看到结果之间的时间。页面加载时间包括创建TCP连接、解析DNS名称、发送请求、获取(包括来自于缓存的)资源、执行脚本、渲染。

  点击访问:Google Page Speed

Friday, October 9, 2009

Untangling the Web with Mozilla Weave

Untangling the Web with Mozilla Weave | Linux Magazine

Syncing bookmarks? That's for amateurs! If you're ready to get real, you can sync your bookmarks, passwords, history, tabs, and more with Mozilla Weave Sync for Firefox and Fennec.

Friday, October 9th, 2009

Syncing passwords and bookmarks is old hat. Mozilla Weave, a Mozilla Labs project is a tool designed to let you sync everything down to your tabs and do it securely. If you're one of the many "road warriors" depending on Mozilla browsers, Weave is your ticket to a seamless Firefox experience across all your machines.

If you only have one machine where you use Firefox to browse the Web, you probably don't have much need for Weave. But if you're using Firefox at home and at work, or any other scenario with multiple machines, you'll definitely want to take a look at the latest iteration of Mozilla Weave. The project recently released Weave Sync 0.7 for Firefox 3.5 and later (including the 3.7a1 release).

Even though Weave is the answer to a lot of my problems, I haven't been using it previously. I'd tried Weave before, but stopped using Weave pretty quickly because it seemed to make Firefox enormously sluggish. However, the most recent release seems quite snappy.

Using Weave is simple: Install the extension and restart Firefox. Then create a new account or enter your username, password, and passphrase if you already have an account.

One word of caution — you need to keep your passphrase handy. You apparently can't recover the passphrase, only reset it and delete your data. This is a bit of a hassle if you (like me) have gone a longish interval between using your passphrase and have forgotten it. I have a number of "stock" strong passwords I use for services like Weave that I can cycle through, but passphrases aren't terribly common — when I started looking at Weave 0.7, there was pretty much zero chance I'd remember what I used last time I set it up. I do know for certain what it wasn't at this point, but that did me little good. Since I was only reviewing Weave and not depending on it previously, that wasn't a big deal for me — but if you're going to depend on Weave, make sure you have picked a passphrase you won't forget!

What Weave Syncs

As mentioned, Weave does more than just sync passwords and bookmarks — though it does that. It also syncs history and tabs, and does so continuously. So, if you're at home and logged into sync and surfing the Web at home, you should be able to pick up the same session at work after your commute.

Of course, you don't have to sync all that. You can opt out of syncing certain things like history, tabs, passwords, etc. So if you want to sync history and bookmarks but don't want to have your passwords backed up, it's totally doable.

The data is also encrypted, so you shouldn't have to worry about your data being exposed on Mozilla's servers. If you're truly paranoid, it gets even better. Individuals or organizations that would like to deploy Weave Sync without sending data to the Mozilla mothership can set up their own server. Yes, you can have your cake and sync it too!

The long term prospects for Weave are even better, though. Weave is actually being developed as a platform that will allow other extensions to sync data as well — so the possibilities for Weave are pretty exciting, if Mozilla can get the same kind of buy-in with Weave that they have with Firefox add-ons.

Finally, Weave also has a great story for mobile users. Weave also works with Fennec, the Mozilla Project's mobile browser effort — so as users take up Fennec on mobile devices, they can sync with their desktop browser and mobile device. The most obvious advantage here is the ability to sync passwords with mobile devices to avoid retyping passwords on devices with tiny keyboards.

Overall, I was much more impressed with Weave this time around. Users who have a mobile lifestyle should definitely take the time to take it out for a road test. Some things remain unsynced (like extensions), but Weave Sync is a definite improvement over simpler tools like Xmarks.

Joe 'Zonker' Brockmeier is an editor-at-large for Linux Magazine and the openSUSE Community Manager for Novell. His blog is at zonker.opensuse.org.

Saturday, June 6, 2009

Google Page Speed Goes Open-Source

SoftSailor: Google Page Speed is a Firefox plugin which can be integrated with Firebug, and the now open-sourced tool can also identify problems with Javascript and CSS. Well, this is very similar to what Yahoo has to offer as most of you probably remember the YSlow tool that can also be integrated into Firefox.

You can read more about Google Page Speed here. You can read the Google Page Speed Web performance best practices here.

Thursday, May 7, 2009

用Weave同步多台电脑上的Firefox

  Weave是Firefox上的一个很好的工具。能够保持书签,历史和标签(Tab)在多台电脑之间保持同步,提高上网效率。目前它只能工作在Firefox 3.5 beta上。

Featured Post

Windows和Ubuntu双系统完全独立的安装方法

http://www.ubuntuhome.com/windows-and-ubuntu-install.html  | Ubuntu Home Posted by Snow on 2012/06/25 安装Windows和Ubuntu双系统时,很多人喜欢先安装windows,然...