Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Blog about adding custom devices to BrowserSim #318

Merged
merged 1 commit into from Dec 18, 2014

Conversation

@ibuziuk
Copy link
Member

ibuziuk commented Dec 18, 2014

No description provided.

@ibuziuk
Copy link
Member Author

ibuziuk commented Dec 18, 2014

@maxandersen @xcoulon could you please review it

= How to add custom device to BrowserSim?
:page-layout: blog
:page-author: ibuziuk
:page-tags: [browsersim, cordovasim, jbosstools, devstudio]

This comment has been minimized.

Copy link
@xcoulon

xcoulon Dec 18, 2014

Member

you can add 'jbosscentral', too

@@ -0,0 +1,58 @@
= How to add custom device to BrowserSim?

This comment has been minimized.

Copy link
@xcoulon

xcoulon Dec 18, 2014

Member

I think it should be: "... add a custom device..."

Actually, it's extremely easy to do...

== Basic concepts
Firstly, I would like to introduce several fundamental concepts which we will need in the further discussion:

This comment has been minimized.

Copy link
@xcoulon

xcoulon Dec 18, 2014

Member

"Firstly, let's introduce..", using the third person (like you did later) may sound better

Firstly, I would like to introduce several fundamental concepts which we will need in the further discussion:

* `Physical pixel` - the cell in the device's display matrix.
* `Display resolution` - the number of distinct physical pixels in each dimension that can be displayed. For instance, resolution *1024 × 768* means that the width of the display is 1024 pixels and the height is 768.

This comment has been minimized.

Copy link
@xcoulon

xcoulon Dec 18, 2014

Member

what about using the same values as below, to avoid confusion ?


NOTE: The reason why pixel ratio was created is due to the fact that screens of the modern phones have high resolution. So, if devices with high resolution had pixel ratio of *1* (i.e. *CSS Interpreted Resolution* = *Display Resolution*), then it would be almost impossible to browse on the Internet cause the content would be too small to see.

* `User-Agent` - HTTP header that identifies the client software. When you open a web page, your web browser sends the user-agent to the server that hosts the website. This string essentially introduces your browser to the server, describing which browser version you are using and relating other information about your computer or mobile device, such as the operating system and it's version. The server can use this information to provide content that is tailored for your specific browser.

This comment has been minimized.

Copy link
@xcoulon

xcoulon Dec 18, 2014

Member

what about "When you open a web page, your web browser includes a 'user-agent' header in the request sent to the server that hosts the website" ?
later in this paragraph: "... and its version ..."

* *Pixel Ratio*: 2.4
* *User-Agent*: Mozilla/5.0 (compatible; MSIE 10.0; Windows Phone 8.0; Trident/6.0; IEMobile/10.0; ARM; Touch; NOKIA; Lumia 928)

TIP: All device specific information can be easily found on the web

This comment has been minimized.

Copy link
@xcoulon

xcoulon Dec 18, 2014

Member

is there a link that could be added here ? A page that summaries all known device characteristics ?

image::images/iphone-6-plus.png[IPhone 6 / 6 plus devices]

== BrowserSim standalone
For one who doesn't use Eclipse / JBoss Developer Studio there is a standalone mode of BrowserSim. More details about BrowserSim standalone can be found in the following http://tools.jboss.org/blog/2014-10-30-standalone-browsersim-is-back.html[blog].

This comment has been minimized.

Copy link
@xcoulon

xcoulon Dec 18, 2014

Member

"For those who don't use Eclipse/JBoss Developer Studio..."

For one who doesn't use Eclipse / JBoss Developer Studio there is a standalone mode of BrowserSim. More details about BrowserSim standalone can be found in the following http://tools.jboss.org/blog/2014-10-30-standalone-browsersim-is-back.html[blog].

== Conclusion
We are trying our best to make our tools as good as possible. User feedback is what we are seeking for now. We look forward to hearing your comments, remarks and proposals. +

This comment has been minimized.

Copy link
@xcoulon

xcoulon Dec 18, 2014

Member

add a link to CAT or JIRA ?

This comment has been minimized.

Copy link
@ibuziuk

ibuziuk Dec 18, 2014

Author Member

I expect users to write feedback in the comments cause it doesn't require having JBoss account. They are not very active though ;-)

@ibuziuk ibuziuk force-pushed the ibuziuk:custom_device_blog branch from 9347223 to 438bd50 Dec 18, 2014
@ibuziuk
Copy link
Member Author

ibuziuk commented Dec 18, 2014

@xcoulon thanks for the great review! PR was updated

@xcoulon xcoulon merged commit 438bd50 into jbosstools:master Dec 18, 2014
1 check passed
1 check passed
continuous-integration/travis-ci The Travis CI build passed
Details
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked issues

Successfully merging this pull request may close these issues.

None yet

2 participants
You can’t perform that action at this time.