Tag web development
-
upgrading to Jekyll 3 · Apr 10, 2016
I went down a š hole yesterday when I decided I wanted to try a new CSS framework. It started innocently enough, I found Siimple and figured Iād give it a try here. Siimple has SCSS files so I wanted to import them directly rather than used their minified distribution CSS. However, I got an error running Jekyll 2 when importing their SCSS. Though I filed an issue on their repo, I figured maybe it was a problem that would go away if I updated my Jekyll version. I used Chaseās handy gems-cli tool to grab the latest version of Jekyll to put in my Gemfile and, while I was at it, I updated nokogiri, kramdown, coderay, mini_magick, rake, and mechanize, too. I figure if youāre going to upgrade a gem, go big or go home, right?
-
JavaScript as JSX in Sublime Text per project · Mar 13, 2015
Iām trying to learn ReactJS and it got tiresome for me to change my file type in Sublime Text from regular JavaScript to ReactJS > JavaScript (JSX) every time I opened a .js file. Fortunately, with a couple Sublime Text 3 plugins, I was able to get this happening for me automatically.
-
BlicblockJS: a game from The Sims 4 · Oct 1, 2014
I made another thing! This time, I made my first game. Well, the first game Iāve ever finished (Iāll get back to you someday Mahjong). Itās a JavaScript web implementation of the game Blicblock that your Sims play in The Sims 4. I built it using AngularJS, my new loves Yeoman and Bower, and Bootstrap. You can try it out in your web browser and view or contribute to the source code on Github.
-
a few new apps · Aug 25, 2014
I always lag behind Jon when it comes to trying out build tools or frameworks that are supposed to make my programming life easier. He tells me about cool new things heās using, and I say āyeah, that looks cool, but I just want to be productive, so Iāll do things they way Iāve been doing them.ā Then eventually I get a chance and I try out the cool thing and Jon was right, itās totally great. That happened for me recently with Yeoman and Bower.
-
triggering events in an iframe · Aug 9, 2014
Recently, I had need to change the value of a select menu in an iframe from the outer page containing the iframe. There was a
change
event listener that had been added in the iframeās JavaScript: -
updating Jekyll to version 2 · May 13, 2014
I was excited to see the Jekyll turns 2.0.0 blog post announcing built-in support for CoffeeScript and SASS. I updated 3till7 and my portfolio to use the latest Jekyll. This in turn meant I did away with my custom plugins for compiling CoffeeScript and LESS, and moved from LESS to SASS. Here on 3till7, I stopped using the Jekyll Asset Pipeline to compile my assets and produce a combined, minified file. Using imports in my .scss files was sufficient for me CSS-wise, and my one CoffeeScript file is small enough that I donāt care it isnāt minified. I actually havenāt checked, but I wouldnāt be surprised if Jekyll 2 supports JavaScript minification like you can do with your SASS.
-
Switching from WordPress to Jekyll · Jan 21, 2014
Over the course of a little less than a week, I migrated this blog from WordPress 3.8 to Jekyll. I used WordPress for years, probably since 2005 or 2006 when I switched away from Movable Type. I finally decided I wanted something more lightweight than WordPress, and in particular I wanted a blog that would load faster. Jekyll gives me both of those. The part that took the longest to migrate was customizing the new layout, based on Dbyll, and formatting the code examples in my posts.
-
new Chrome extension: extractCSS · Oct 13, 2013
I spent yesterday afternoon creating a Chrome extension using Adnan Topalās extractCSS library. I found extractCSS.com a few months back, I think via Hacker News, and thought it was a cool idea. It lets you paste a chunk of HTML code and it will extract the CSS classes, IDs, and inline styles used in that HTML. It produces a skeleton stylesheet with rules for those IDs and classes, and inline styles already filled in.
-
custom WordPress Events Manager event tag archive page · Apr 7, 2012
Using the Events Manager WordPress plugin at work, I noticed that the event tag archive pages showed only current and upcoming events with a given tag. I wanted them to show all events, including past events, with the tag. I made a custom loop to accomplish this, within the Genesis framework. Create a file called taxonomy-event-tags.php in your Genesis child theme:
-
work projects and music discovery · Apr 5, 2012
Iāve been having a lot of fun at work recently using Spring 3 MVC, Twitter Bootstrap, jQuery UI, jQuery Mobile, and of course jQuery. Not all on the same project, but in a couple different projects Iāve been working on. Twitter Bootstrap has been really cool as a drop-in way of quickly making a pretty, clean layout. I love not having to style my tables manually, and the various
spanX
classes to have floating blocks a set percentage of the page wide are great. Iāll definitely be using Twitter Bootstrap in future projects; thanks for the suggestion, Joe. -
regular Javascript v. AJAX for dynamic content insertion · Feb 27, 2008
Recently for work, Iāve had cause to write functionality so that a certain chunk of a form can be inserted again, over and over, by the user. The form involves data about course equivalencies between schools, and the user might need to submit data for multiple courses a student has taken. Hence, the user needs to be able to add extra course sections on the fly, as theyāre necessary.
-
using Javascript and CSS to mark outgoing links · Sep 26, 2007
It may be useful to your visitors to know which links will take them off of your site without having to hover over all of them. It might also be a nice touch to mark links pointing to PDF documents, for example, with a little Adobe PDF logo. With the help of Javascript and CSS, you can do this pretty simply.
-
using AJAX to spiff up a gallery · May 3, 2007
Lightbox is nice and all, but sometimes I find it clunky, particularly in Firefox when I have a lot of other tabs open. However, I donāt want to go the route of having an image load by itself in the browser, because it would be so much nicer to have it integrated into my layout. I could have a whole bunch of separate pages, one for each image, and do a full page load when a thumbnail is clicked, but thatās kind of a hassle. Well, with a simple PHP script and some AJAX calls, I can have my image load within the gallery page without a page reload.
-
using Perl and Apache on OS X · Mar 22, 2007
Iām trying to do some work with a Perl app on my Powerbook but I was unable to get any Perl scripts to execute from my local server. At first, I was getting just the source of the Perl files spit back at me. I followed a few tutorials about getting /etc/httpd/httpd.conf set up, but then I kept getting 403 Forbidden errors when I tried to access .pl or .cgi files in my browser. I checked /var/log/httpd/error_log and saw:
-
custom shapes in Photoshop · Aug 3, 2006
Custom shapes can be very useful for making multiple objects that look the same. For example, say you want several photos to all be cut out of the same shape, like this:
-
Cliches of a Crappy Site · Dec 23, 2005
If youāve browsed through many personal sites at all, youāve probably seen some of the following things that make me personally cringe. I donāt understand why theyāre so trendy, since they donāt improve a site in the least.
-
neat code · Jun 23, 2005
One of the easiest ways to keep your code easy to update, read, and debug is to keep it neat. That means indentation, documentation, consistency, and logic need to be applied. These are basics in any programming class, and they are just as applicable with coding HTML as they are with C++ or any other programming language.