Any tool or method to ease the process of writing media queries - html

I'm looking for some tool that can allow writing media queries in real time, while doing something like - inspecting in google chrome and adjusting code as needed. One such tool is shown in this video-
https://www.youtube.com/watch?v=kXTP8XqrSwE&t=613s
But it's not maintained anymore and seems broken now. So, fellow developers please share anything similar or better than this tool that might be of some help.

Related

Play market won't let my app through, it says that the code is plagiarized

I work as a novice developer, I have to write a lot of applications. In terms of functionality, they are similar, so there is no time and desire to completely rewrite the code. Tell me what are the ways to bypass google play and not be banned
They suggested that refactoring should be done, there is no experience in this, what options are there?

Download complete website via CLI

I'm trying to reduce the size of my website, but to do that I need a reliable tool to measure the size of my pages.
I used to use Google Lighthouse, in the performance audits it reports the size, but it's not precise, and it's inconsistent with the network tab
I tried several combinations of curl, but I can't make it crawl website correctly
I tried several combinations of wget, but it couldn't handle correctly the gzip or brotli encoding
I came to the conclusion that wget or curl are not the right tools, because they don't evaluate JS, so they can't do conditional loading of assets
I'm trying now with puppetter.js and phanotm.js, but I still haven't managed to do it
Does anyone have a good solution for this?
How to Measure Size
Web browsers make a lot of decisions about what to download based on their particular context (for example, what compression algorithms it supports). It's difficult to replicate those conditions in an external tool, such as curl. So you'll want to use a tool that thinks like a browser (or is a browser).
The server can also choose to send different content based on visitor information (user agent, whether they're logged in, geolocation, etc.) or even completely arbitrary conditions (like a randomized image). So you'll want to look at more than one sample, preferably from many user agents and locations.
Most tools don't provide that kind of power.
The closest thing I can suggest is WebPageTest. It uses an actual web browser to visit your site and reports an analysis of that visit, including total page weight (even broken down by different page events). WebPageTest can be used as an API and even run locally. Output is available as JSON, so you can parse and do custom reporting with CLI apps.
How to Speed Up a Website
The technical question of "weighing" a website aside, there's a broader problem you're trying to tackle: how to speed up your website. There is a lot of information available for performance optimization.
Specifically, there's a lot of discussion about what metrics should be considered when evaluating a page's performance, how much weight should be given each metric, and how to use that information to prioritize optimizations.
When considering page weight, I would highly recommend breaking it down by how many bytes are necessary to accomplish certain tasks. Google recommends thinking about resources in terms of the critical rendering path - the HTML, blocking JS, and non-deferred CSS necessary to construct a web page.
You may have a 1MB page where render-critical assets only make up 10KB of the page - that's a very fast site. Or you may have a 1MB page where 500KB are required for an initial render - not so fast. WebPageTest helps break down those weights by event for you.
I wish I could give more technical detail about using WebPageTest with CLI tools. It's something I plan to explore soon. But for now, hopefully this will give you a good start.
Have you tried PageSpeed Insights ?
Analyze you website and read on optimization guidelines.

What are some methods that UX testers use in order to test out websites?

I am curious how actual professional UX/QA testers test websites out. The reason why I ask is I have been assigned to stress-test and "break" our website for our school project, but really don't know if there's methodical ways of going about so. I've created an windows form app in the past, and when we tested it I basically just clicked on everything we created or input strings or integers into fields to try and break our algorithm, but I feel like perhaps it's different this time with our website. As an analogy, it's almost as if I'm trying to create UML-related flowcharts and diagrams, but not adhering to the UML flowchart and diagram rules, processes and the definitions of each shape.
So aside from manually going into our website and just clicking on stuff, adding values into our prompts or input fields and what not, are there actual software programs I can run that automate these sort of things? I stopped and browsed several related existing threads pertaining to the same topic, but they mention more about fundamental ways about testing. I'm looking for more specific things and possibly software I can use to help stress test our website. Thank you!
There are many different types of testing that can occur for a website. Usually, QA testers run very different types of tests than those who are testing the user experience in some way.
QA testers usually engage in both black box testing and white box testing. This is a pretty good overview of the difference between black box and white box testing. In terms of applications, Selenium is an excellent one; you might find other test frameworks more of use to you, depending on what technologies your website is using.
User experience testers consider what real-world users will do with the website. I wouldn't consider it a part of stress testing. I'm including it in my answer because it's part of the title of your question. In a standard usability test, you ask real users (or people who are representative of your intended real users) to complete a small handful of tasks while you observe what they do. The goal is not to find functional errors in the website (although you might find some during the course of your usability test), but rather to determine whether your users are able to complete their goals using your site.
I think you are looking for e2e (end to end) testing: there are different libraries that use softwares like Selenium to run automated tasks on the browser. You can have a look to Protractor or Nightwatch.
There is also another interesting kind of tests, perceptual testing, that we (my company) are implementing recently: you can create some accepted screenshots of your web application and an automated task checks if every pixel is in the right place and, if not, it gives you a png with all the differences.

Play Framework 2.3.x: Force Run on errors

Is it possible to force your play app to run in the browser, even though it has errors? This is so that I can more easily see the errors in the browser instead of searching through them in the console.
I am refactoring something which has over 300 errors, and thought it might be easier to see them one at a time in the browser.
Thanks!
I'm afraid there's no possible way of achieving what you desire. You can't run an application with compilation errors. It's like driving a car without wheels. The console and your IDE are your friends.

Advice on Where to Start with My App

I'm a relative beginner using Google Apps Script and JavaScript, but I've been playing around with bot for days now and I've created a few simple programs and I'd really like to try and get started on my dream project, even if it takes me forever. I'd like some advice on what I should use in terms of making the UI and what database I should use to hold the information (and if this app is even possible).
The App
I'd like to create an online novel management app that utilizes Google Drive as it's source for files. The UI would have a tree that showcases all the google drive files in the novel. When a scene is clicked, the scene opens up for editting.
Questions
Is this app a possibility?
If so, in terms of a UI, what do you think I should use? The google
provided UIbuilder? The HTML service - for example, can I have a
frame on the right that the google doc that needs to be editted
can open up in on the right?
Lastly, what database should I use? The database would have to store
chapter names and positions, as well as scene names, positions,
and the google doc ID that the scene corresponds to. I've got a
handle on ScriptDB and Spreadsheets... And if either of these two
aren't the best option, would some other database work better? And
why?
This app will, hopefully, be able to give an overview of a novel in tree form, allow you to open a particular scene and edit it, create new scenes, and also change the order in which the scenes are displayed. And then when the person finishes their novel, the app will compile all the scenes into one novel (also in google Drive).
Any insight or suggestions would be greatly appreciated!
Having a look at the questions you recently posted I think I have a pretty good idea of what you are trying to do and it looks like an exciting project... I can only encourage you to start it as soon as you can even if you're not comfortable with all the tools you will need to use, the best learning method is probably to work on something important to you.
Now your 3 questions : 1 - This is perfectly doable in the GAS environment and shouldn't be too hard to go through.
2 - the GUI builder is an easy way to start with UI but it lacks a number of features and tools that you will be needing (tree for example ) and is not so easy to expand if you ever need to. Depending on your knowledge in html, the choice is mainly between UiApp and html service... I would choose UiApp because I'm not good at all in html (but that's not relevant here ;-) but both are capable of building what you want, are easily expandable and not too hard to debug. The advantage could go to html service if you are going to look for 'nice looking features' because it opens the door to 3rd party tools... but again, this is a matter of personal choice.
3 - A recent post from Mogsdad showed that spreadsheet are faster than scriptDb for data storage and manipulation. I find it also easier since I can have a global view on data in the spreadsheet when debugging. Of course Spreadsheet must be considered as a container and data manipulated at array level to benefit from maximum performance. I use that in a lot of database application with full satisfaction.
Sorry for these "general considerations" that don't comply to sto standards ;-)
Yes, it seems that all of the things you are requesting are not too ridiculous. I recommend sticking to Google services because they are all easily integrated. To start off, you may want to use the UI builder/UI services. There may be a point in this project where you may want some functionality that the UiApp doesn't provide. At that point, you might want to switch over to HtmlService.
My answer is the same for the databases question. You might want to use a spreadsheet for your database so that you will be able to easily edit it by hand if you need to. You may not have the performance that another database would give you, but it will be fairly easy to test and mess around with your spreadsheet "database."
You could start out with getting the basics down. There's a serious amount of data out there. I would suggest you research on an "as-needed" basis. Design some work-/dataflow patterns for your app, for which you could try to use the Fluid UI extension for Chrome. Have a look at this from Mozilla on the designing of apps.
When you've gone through this you might want to have a look at Phonegap and the basics of web development and how you could combine the two.
There's also several ways of using/storing data. You could try WebSQL though it they no longer develop it. You could look at IndexedDB. You could try to use cookies.
Seriously, have a look around. You might also like the books of Wrox. They're very informative and have great work with reading demo's. Though the books are huge ;)