We have all had the professor like the one I’m about to introduce, and if not– I’m sorry you missed out. He starts the class most of the time with brain teasers of various skill levels. From metal ring puzzles, to sly formulas he entitles: math-a-magic. Before today’s lecture of proving the volume of a cone, he gave us this math-a-magic:
Take any number greater than 1 and less than 10 Multiply it by 2 Add 5 Multiply it by 50 If you had a birthday before today, this year, add 1762 If not, add 1761 Subtract the year of your birth (e.g. 1990) The first number of the answer is the number you began with The next two numbers designate your age.
As a self-taught computer scientist I immediately saw it in terms of conditional statements, inputs and outputs. So what would any student that is paying to go to college and is assumed to listen to lecture do? That’s right, took out my laptop and brushed up on my python skills. You can run it online, courtesy of repl.it, but here’s the code below: (more…)
Up until now, I had no prior experience with creating a WordPress plugin– sure, I know a decent amount of PHP and how WordPress works, but this opened a new door for me. I’ll show you my step-by-step process in creating a plugin that adds the open graph tag (og:image), to your header, or more commonly known as the Default Thumbnail displayed when posting your link on Facebook.
A plugin is a way to extend WordPress to almost anything imaginable. From Twitter feeds, to Google Analytics settings, WordPress allows you to extend the functionality of their product to a developer. In this case, it allows us to select the image or URL we want to display when posting our website to Facebook. (more…)
In addition to code snippets and other small projects, I have used this blog as a way to keep notes to later reflect upon. However, unlike the previous posts: experience with json, introduction to less, and others, all code will one day be legacy and no longer used as frequently. There will be a time where PHP isn’t used as heavily, and we’re starting to see that as the rise of python, ruby, and others make their way to web applications. What will be used in the next day, month, year, eon, will be the philosophy: Read The Manual.
Whatever machine you’re developing on, you will always have access to some form of manual pages (man on *nix, /? or /h flag on Windows), and it is this that truly will make you a better programmer, a better problem solver. While taking a programming course in High School we weren’t allowed to use many resources except the documentation, and this amazed me as some students still did not have enough resources they need to result in a passing grade. Where they fell short was the lack of understanding with the documentation; the language was foreign to them, like an old-English holy book. The documentation and man-pages are the rules of the code. Today, in Python, the documentation is bundled with us; allowing us to type help(..subject..) and we are given the docs to this function, however, if we can’t decipher what it is trying to tell us– it’s useless. (more…)
Nothing is considerably wrong with CSS, however, much like an over-privileged child, we will continue to want something more, and LESS is more. If you have written thousands of lines of CSS in your web development career and have wanted simple things that other languages have: variables, nested capability, and functions… LESS has these, and a lot more. Ever get tired of copy and pasting all the different browser prefixes for each radius, shadow, et al? “Mixins” will take care of that. (more…)
More and more recently, applications are opening their doors to developers that want to build off their system. API — application programming interface, is such a way for creators to give you the code you need for certain parts of their apps. Many of these API calls will result in an XML file that which supplies ‘Elements’ with corresponding ‘Attributes.’
Many argue over the quote, “it’s not what you know, but who you know.” I find both to be equally as important, with a bit more weight on the connections. In the February 6, 2012 issue of Fortune magazine, Reid Hoffman, founder of LinkedIn, explains the importance of networking in his article: The Real Way to Build a Social Network. Hoffman breaks down what a true network should be by growing your alliance, explaining how to appear authentic, determining the importance of a “weak tie”, and how offering help can work in your favor instead of resulting in failure.
If you currently look at your network of connections you may realize that it needs improvement. Hoffman suggests that, “most professionals maintain five to ten active alliances.” He also suggests that in order to obtain a greater social network, you must first strengthen your alliance. That sounds easy, get a bunch of professionals and hand them your card; If only it were so. Cold-calling and throwing around your business card at cocktail parties is a sure way for your number to be rejected and your card to be converted to a coaster. (more…)
Business Cards go a long way. It’s goes from, “Oh, yeah, I have a website here let me write it down on this napkin,” to BAM! A physical item in your hand to direct you.
When creating a business card there’s so many things to take into consideration: Color or no color, one-side or two-sided, email or phone number, or both. Even some are getting into metal, and plastic business cards.
Gone are the days of using images for everything. When webkit and Mozilla introduced CSS gradients, developers everywhere rejoiced (or at least I did). The thought of images making their way out of pages while technology finds more effective ways to produce the same result makes me ecstatic.
I love when people use new techniques in the web industry to create amazing projects. A great article on creating logos from CSS exemplifies just what you can do with CSS.
I got a little crazy myself and decided to try my very own logo (a simple approach). And to my surprise, it was quite easy by using border-radius, and a couple more border-styles I was able to produce this: (more…)
A year ago some would laugh at me as I was reading articles from my phone, saying, “How could you read on such a small device?”
I chuckled back a year later when they too realized the convenience of mobile reading — upgrading to 7″ tablets. In fact, I’m sure you’re reading this on your phone at this moment.
The web has changed greatly since we have gone mobile and in fact a developer would say it’s quite possible to develop straight from their mobile device. In lieu of this transition we need to respond to it appropriately. With the web evolving we meet this by many new CSS adaptations.
In the past, and even in some present cases, you need to pinch and zoom to navigate around a website. With a responsive web design your website will adjust accordingly. (more…)