I have been experimenting with Bootstrap 4.0 Beta 2 and there seems to have been a lot of questions on how to extend this new version. While this may not be final or the only way to do it – this is what I have come up with so far. Here we will set up _custom_variables.scss and _custom_mixns.scss files that modify or extend the default Bootstrap and then use these variables and functionality within our own styles.scss file. I will show you how to modify default Bootstrap variables such as $blue, and add a new custom color which will not only be reflected in our custom Bootstrap, but then can also be accessed from our own styles.scss file. In addition we will create a mixin to create a gradient for the background. Finally we will add a new size variable that we will then be able to access in our styles.scss file. What we will ultimately end up with is something that looks like the graphic above.Continue reading
I’m currently working to get up to speed on the latest version of Bootstrap which is currently Bootstrap 4.0.0 Beta-2 and I don’t want to use their predefined colors – such as “blue” for primary, “gray” for secondary, etc. I wanted to be able to customize the color scheme. Finding out how to exactly do this wasn’t the easiest thing. It seems there are a lot of pieces out there, but nothing that defines exactly how to do it. What also made it difficult was the fact that this is just Beta and so there have been changes. The way to customize the theme in Bootstrap 4.0 Alpha is completely different in Beta. After trial and error it seems I got it to work properly.Continue reading
So I encountered this problem when I tried to install the SCSS package into my Sublime 3 text editor. For some reason when I went into the Package Control – which I have had set up for years – it wasn’t installing the package. Continue reading
I have had to move two WordPress sites from HTTP to HTTPS (https://www.rrosetta.com and https://magazine.AboutNewJersey.com) and both times I ran into the same problem – the site going into an infinite redirect. There was a key piece that was missed and not well documented so I figured I would put those steps down here and hopefully not only help myself in the future, but others as well.Continue reading
It is actually very easy to create a virtual domain. It only requires two files to be modified and you don’t even have to store your site’s files within the XAMPP directory structure.
Well for years I’ve used Dreamweaver, not only to design sites, but also to write PHP code. Well with doing Zend Framework and OOP and getting serious with PHP, Dreamweaver just doesn’t cut it as a code editor anymore. Dreamweaver is great at doing webdesign, which is what it’s primary function is and I will continue to use it for that, but for PHP coding, I will now be using Eclipse with the Aptana Plugin.
One thing I was very impressed with was Eclipse’s complete melding with the PHP language, and the code I am developing. It is a great way to learn about various PHP functions and interestingly enough – the Zend Framework since I am now working with that.Continue reading
This may sound counter productive, but encountering errors when learning a language is a good thing. It helps you to understand how the language works and how to debug the code. All code has errors, whether it is syntax or logical. Logical errors are usually the hardest to find because the program is still working, it’s just not doing what it should be doing. It could be as simple as something like setting a database column to Tiny Int, but then trying to store a Integer size value in there. It will store the value, it just won’t be the value you started out with. You may not even know something is wrong until you go to view the value and you notice that it is obviously incorrect.
Syntax errors however are generally mistypes. An upper case letter in a class name, versus a lower case letter, missing semi-colon, undeclared class, etc. All of a sudden the system is complaining that it can’t find a class and you have to figure out why. Even though in general syntax errors should be easier to find, especially if you develop in a module format, constantly testing the modules as you go along, it can be very difficult when just learning.Continue reading
I’m not sure how everyone else learns a new programming language, but I will share my years of knowledge with anyone who is wanting to get into computer programming.
As you can see from reading the posts, although I haven’t posted in a while, is that I am currently trying to conquer Zend Framework and AJAX, using JQuery, DOJO, Prototype, YUI or other toolkit. I find I have to immerse myself in the language, reading the chapters ahead, highlighting, doing the samples, trying to apply it to my own project. The more resources I have, the better.Continue reading
I know it’s been awhile since I posted here. I needed to get some other web work complete, such as the Trenton 1784 website, which took me away from the Zend Framework for a bit. Now I am back at it.
Since I have the Zend Framework in Action book, in order to fill out my knowledge of Zend, I wanted to get my server fully set up for the applications in this book and this required the downloading of PHPUnit in order to do the Unit Testing. Now it doesn’t seem like this would be a requirement to actually go through the book, but I had always done unit testing when I was a consultant developing desktop apps for Fortune 500 companies. Since Zend Framework in Action also explains how to use PHPUnit, I might as well take advantage of it.Continue reading