Archive for the ‘Web Development’ Category
Posted by jpluimers on 2017/01/11
Contrast:
When making the contrast of the text lower and lower…designers need to think of
- elderly
- users with bad vision
- low quality monitors
- bad lighting and glare
- reading on tiny screens
Source: Contrast Rebellion – to hell with unreadable, low-contrast texts!
–jeroen
Low-contrast font color and unreadable texts? To hell with them!
Posted in CSS, Development, HTML, HTML5, Software Development, Web Development | Leave a Comment »
Posted by jpluimers on 2016/10/12
A while ago, I heard about xmllint, a program that can parse and query xml from the command-line.
Later, I discovered it can also parse html, can recover from xml/html errors and has an interactive shell that has a lot of commands (see table below) to navigate through the loaded command.
The relevant command-line options:
--recover
--html
--shell
Note that --recover will output failing input to stderr. You can ignore that using 2> /dev/null
Some good examples of usage are here:
The table of shell commands:
Shell
xmllint offers an interactive shell mode invoked with the –shell command. Available commands in shell mode include:
| Command |
Parameter |
Description |
| base |
|
display XML base of the node |
| bye |
|
leave shell |
| cat |
node |
Display node if given or current node. |
| cd |
path |
Change the current node to path (if given and unique) or root if no argument given. |
| dir |
path |
Dumps information about the node (namespace, attributes, content). |
| du |
path |
Show the structure of the subtree under path or the current node. |
| exit |
|
Leave the shell. |
| help |
|
Show this help. |
| free |
|
Display memory usage. |
| load |
name |
Load a new document with the given name. |
| ls |
path |
List contents of path (if given) or the current directory. |
| pwd |
|
Display the path to the current node. |
| quit |
|
Leave the shell. |
| save |
name |
Saves the current document to name if given or to the original name. |
| validate |
|
Check the document for error. |
| write |
name |
Write the current node to the given filename. |
–jeroen
via xmllint.
Posted in Development, HTML, HTML5, Software Development, Web Development, XML, XML/XSD, XPath | Leave a Comment »
Posted by jpluimers on 2016/03/02
Convert HTML to Markup using CSS:
–jeroen
Posted in CSS, Development, HTML, HTML5, Software Development, Web Development | Leave a Comment »
Posted by jpluimers on 2016/02/16
This was very useful to get a WebClient with a WebProxy configured to use a proxy server that is based on NTLM authentication.
The note in the MSDN NTLM and Kerberos Authentication. documentation however was totally wrong.
String MyURI = "http://www.contoso.com/";
WebRequest WReq = WebRequest.Create MyURI;
WReq.Credentials = CredentialCache.DefaultCredentials;
Note NTLM authentication does not work through a proxy server.
This code works perfectly fine as the CredentialsCache.DefaultCredentials contains your NTLM or Kerberos credentials.
It even works when you have a local Fiddler http proxy as a facade in front of your NTLM proxy.
Read the rest of this entry »
Posted in .NET, .NET 2.0, .NET 3.0, .NET 3.5, .NET 4.0, .NET 4.5, C#, C# 2.0, C# 3.0, C# 4.0, C# 5.0, C# 6 (Roslyn), Development, Fiddler, Software Development, Web Development | Leave a Comment »
Posted by jpluimers on 2015/09/29
Below are the captions, read the full article as it is very well written.
Why your code is hard to understand
- Problem #1, Overly Complex Mental Models
- Problem #2, Poor Translation of Semantic Models into Code
- Class Structure and Names
- Variable, Parameter and Method Names
- Single Responsibility Principle (SRP)
- Appropriate Comments
- Problem #3, Not Enough Chunking
- Problem #4, Obscured Usage
- Problem #5, No Clear Path Between the Different Models
- Problem #6, Inventing Algorithms
–jeroen
via: Why Your Code Is So Hard to Understand – CodeProject.
Posted in .NET, Delphi, Development, Software Development, Web Development | 5 Comments »
Posted by jpluimers on 2015/08/10
A great on-line way to cleanup html (from for instance style information) before publishing it on your blog: HTML Cleaner – Word to clean HTML.
One of the things is does is Remove inline styles.
Ideal for copy-pasting a quote from a web-site to your HTML editor.
–jeroen
via: www.html-cleaner.com
Posted in Development, HTML, HTML5, Power User, SocialMedia, Software Development, Web Development, WordPress | Leave a Comment »
Posted by jpluimers on 2015/06/15
A few tools that help you watch changes in html pages, even these pages do not have RSS: they make a feed out of a page.
–jeroen
Posted in Development, HTML, Power User, Software Development, Web Development | Leave a Comment »
Posted by jpluimers on 2015/05/26
Nice question (thanks aplm!), as for instance Gist does not render html:
Pastebin is a useful online tool to paste snippets of text. Pastie is a similar tool. Also, Ideone is similar except that it also runs the source code, as well as being a general pastebin.
Is there a similar tool, for HTML?
And ditto links in the answer (thanks meder!):
Unbelievable that such questions get closed as “not constructive”.
Note I could not get http://www.pastekit.com to work.
–jeroen
via: javascript – Pastebin, but for HTML? – Stack Overflow.
Posted in Development, HTML, HTML5, JavaScript/ECMAScript, JSFiddle, Scripting, Software Development, Web Development | Leave a Comment »
Posted by jpluimers on 2015/04/29
Front-end web development isn’t my core area of expertise, but every now and then I am slightly more than the usual spectator and do get involved.
This case it was about helping to prevent The Clickjacking attack by using the The X-Frame-Options response header from RFC 7034.
Lots of people seem to have questions about it: Highest Voted ‘x-frame-options’ Questions – Stack Overflow.
So, from The X-Frame-Options response header:
There are three possible values for X-Frame-Options:
DENY
- The page cannot be displayed in a frame, regardless of the site attempting to do so.
SAMEORIGIN
- The page can only be displayed in a frame on the same origin as the page itself.
ALLOW-FROM uri
- The page can only be displayed in a frame on the specified origin.
–jeroen
via:
Posted in Development, Software Development, Web Development | Leave a Comment »