Adam is a SitePoint editor and social media manager

Adam's articles

  1. position (CSS property)

    Description The position property, together with the float property, controls the way in which the position of the element’s generated box is computed. See Positioning for details about element positioning. Boxes with a position value other than static are said to be positioned. Their vertical placement in the stacking context is determined by the z-index […]

  2. The Cascade, Specificity, and Inheritance

    Other than being the C in the acronym CSS, the fact that style sheets are described as “cascading” is an important, if complex, part of the way styles are applied to the elements in a document. It’s called the CSS cascade, because style declarations cascade down to elements from many origins. The cascade combines the […]

  3. childNodes (W3C DOM Core property)

    Example var kids = node.childNodes; In the example above, kids will be a collection of all the direct child nodes of node. If node has no child nodes then kids will be an empty collection (with zero length). The returned collection is live, which means that changes to the HTML it represents are immediately reflected […]

  4. MIME Types – Summary List

    Multipurpose Internet Mail Extensions (MIME) extend the format of e-mail to support text in character sets, non-text attachments, multi-part message bodies and header information in non-ASCII character sets. The chart below is by no means a complete list – a complete list runs to pages and pages (often containing very obscure MIME types that you […]

  5. Code Manifesto: Words to Live By

    The tech industry has a rather bad reputation. Stories of discrimination, disrespect, sexism and outright mistreatment aren’t exactly hard to come by.

    Last year, following an all-night hackathon at TechCrunch Disrupt, a group of Australian programmers showed off Titstare, an app that, well, let people take photos of themselves “staring at tits”. At the same hackathon, another group presented an app that simulated masturbation, to an audience which included 9-year-old children.

    More recently, there’s the story of the co-founder of dating app Tinder filing a lawsuit alleging gender discrimination and sexual harassment, after a romantic relationship with her co-worker ended, and the atmosphere at the company became increasingly hostile.

    This hostile atmosphere included verbal abuse (including being called “a desperate loser” and a “slut”), having her co-founder title taken away because young female founders made the company sound like a joke, and eventually, her ouster from the company.

    Those are just two notable examples of an unfortunately prevalent culture. They both happen to involve women, but that’s not where the discrimination stops. In an industry ostensibly aimed at helping everyone to reach their potential, it’s clear that when it comes to issues of equality and respect, the tech world has a long way to go.

    The Code Manifesto

    Kayla Daniels is one person working to try to change this situation. A North Carolina PHP developer, Kayla is behind The Code Manifesto, a list of values she hopes can be a small step in the right direction.

    Here they are in full:

    1. Discrimination limits us. This includes discrimination on the basis of race, gender, sexual orientation, gender identity, age, nationality and any other arbitrary exclusion of a group of people.
    2. Boundaries honor us. Your comfort levels are not everyone’s comfort levels. Remember that, and if brought to your attention, heed it.
    3. We are our biggest assets. None of us were born masters of our trade. Each of us has been helped along the way. Return that favor, when and where you can.
    4. We are resources for the future. As an extension of #3, share what you know. Make yourself a resource to help those that come after you.
    5. Respect defines us. Treat others as you wish to be treated. Make your discussions, criticisms and debates from a position of respectfulness. Ask yourself, is it true? Is it necessary? Is it constructive? Anything less is untolerated.
    6. Reactions require grace. Angry responses are valid, but abusive language and vindictive actions are toxic. When something happens that offends you, handle it assertively, but be respectful. Escalate reasonably, and try to allow the offender an opportunity to explain themselves, and possibly correct the issue.

    If everyone held these values, the industry in which we work would be a better place, Kayla says. “We would grow better as a community, have higher engagement, and turn away fewer people.”

  6. How to Start an Email to a Stranger

    When emailing someone you don’t know for the first time, there is a certain amount of awkwardness involved. You’re bursting into their day, often with a query that will lead to more work for them, so it’s important to make a good first impression. What seems like a small detail, like the style of greeting […]

  7. How to “Resize” Images with CSS

    While you cannot “resize” images in CSS3, you can make them appear to be resized in the browser using media queries and the principles of responsive design. The idea is to have the image respond to the viewport dimensions to make sure it does not overlap the edge. A maximum width must be defined if […]

  8. Business Card Tips for Business Owners

    When you’re starting a business, there is a whole host of decisions to make, from the type of business entity to choose or whether to market yourself as a freelancer or a business owner. If you opt for the latter, it can be difficult to decide on what title to use in your email signature, […]

  9. The blink Element

    The blink element was a much-maligned HTML element that caused the content of the element to blink – that is, alternate between being visible and invisible. It was originally introduced by early versions of the Netscape browser, but is no longer supported by any browser. It was typically used like this: <p>Hey! Check out our […]

  10. How to Turn Spell Check on in Microsoft Word and Google Drive

    Lets face it, no won is purrfect when it combs to spelling and grandma. But embarrassing sentences like the one above can be avoided if you make use of your favorite writing app’s spell check. Here’s a guide to checking your work with ease. Microsoft Word To check spelling in a Word document, open up […]