I'd reactivate my treehouse account but the conversions fees make the monthly rate north of $30 a month. I just can't swing that.
I thought Treehouse is for $20. 'Tis a pity because I was thinking about becoming a member for long time.
<h:head>
(other stuff)
<link rel="shortcut icon" href="#{request.contextPath}/resources/img/favicon.ico" type="image/x-icon" />
</h:head>
edit: Fixed. I moved the link tag to the top of h:head. I have no idea why, but now it works.
In the absence of a link with the icon keyword, for Documents obtained over HTTP or HTTPS, user agents may instead attempt to fetch and use an icon with the absolute URL obtained by resolving the URL "/favicon.ico" against the document's address, as if the page had declared that icon using the icon keyword.
Tried to find a solution on google for like 2 days, maybe you guys can help. I have a page with these kind of slanted tabs: http://codepen.io/sheridanms/pen/wnvCc but they are on a sidepanel that flies in when the user does something. Firefox apparently can't handle transforms when they happen offscreen, because it doesn't render correctly. Works fine in Chrome and IE. Any ideas? http://codepen.io/anon/pen/NqgrNo
Work on Firefox by using transform: translateX(xx) instead of animating the right pos
http://codepen.io/anon/pen/bdReMP
Works on Firefox by using transform: translateX(xx) instead of animating the right pos
Well, if the (german only?) proverb "many roads lead to rome" has any example in real life, then it's the web and web development.Hey I'm gonna be revamping my websites so this thread is sure handy.
Whats everyones favorite frameworks?
Also, I want to try out some high end HTML5 stuff, but where should I host?
Well, if the (german only?) proverb "many roads lead to rome" has any example in real life, then it's the web and web development.
The Javascript-based frameworks are pretty hot right now, Angular, React, i have the feeling that every week another one shows up.
They work pretty well with Node.js, also javascript-based, although they should work with other solutions, too.
Maybe you look into the MEAN-stack (MongoDB, Express.js, Angular.js, Node.js), Express as a backend js-framework, angular for the frontend, node as the server. Mongo is also a no-sql db-solution.
About hosting, you should decide the backend technology first, then look for a hosting-provider that suits your needs.
It really comes down to what you want to work with/are interested in, HTML5 works with everything, but the IE9 and lower.
How do you backup your installed Sublime Text 3 plugins?
And speaking of which, what are you favourite plugins? I've been on a downloading spree lately and wanted to know if I missed any good ones
There are some good syncing instructions on the Package Control site and you can actually backup/sync all of your settings in addition to packages which is nice.
As for good packages, Scotch.io has a pretty good list of useful plugins. Some of my favorites though are:
- SFTP - FTP client that can automatically upload/download when you save/open a file
- SublimeCodeIntel - adds tons of nice features like autocomplete and function tooltips
- BracketHighlighter - highlights brackets (), [], {}, <>, etc
- Color Highlighter - adds a colored background to hex/rgb/etc colors in code
Also there are a ton of really nice themes for Sublime such as:
Numix
Spacegray
I get like 3 fps on my decent laptop... Time for some optimization.
It seems pretty cool, but I just simply didn't know what the site is about until the end.
Chrome Dev Editor is dead: https://plus.google.com/+SriramSaroop/posts/6EwgknwKpeS
Such an promising tool and the best you could find on a Chromebook. This plus no real presence for Chrome OS, apps or extensions at IO, I wondering if they're killing the Chrome platform in favor of Android.
Chrome Dev Editor is dead: https://plus.google.com/+SriramSaroop/posts/6EwgknwKpeS
Such a promising tool and the best you could find on a Chromebook. This plus no real presence for Chrome OS, apps or extensions at IO, I wondering if they're killing the Chrome platform in favor of Android.
Well first of all, you should use CSS instead of JS if possible. It's easier, cleaner, and in many cases better performing.Well, shit. I just got a Chromebook for development purposes not too long ago. At least there's still Crouton.
Also, is there a good resource to learn fancy animations or effects using Javascript? I don't really use Javascript that much since I never really had a major use for it but it would be nice to learn.
Well first of all, you should use CSS instead of JS if possible. It's easier, cleaner, and in many cases better performing.
Is using bootstrap "cheating", when building a portfolio?
What else do you guys think I should look at in the future? I'm gonna do jQuery after I get vanilla Javascript down. I hear people talk about frameworks all the time, but I haven't quite looked into them. Angular and React seemed to be talked about a lot of reddit though.
I haven't touched base with HTML or CSS frameworks either. Bootstrap, SASS, ect? Is using bootstrap "cheating", when building a portfolio?
Sorry for the wall of text again, you guys are really helpful though!
I have a potentially stupid question. I'm tweaking a grid layout and I want to be able to style the grid items individually. I have grid_item, grid_item2 and grid_item3 in the HTML. In the JS, I have the following gridItems = gridItemsContainer.querySelectorAll('.grid__item'),
How do I go about adding
gridItems = gridItemsContainer.querySelectorAll('.grid__item2'), and gridItems = gridItemsContainer.querySelectorAll('.grid__item3'),
I thought I was clever and just copy pasted those last two after the first and it killed like, everything.
EDIT: HOLY CRAP I FIGURED IT OUT FINALLY. BEHOLD MY NEWBNESS
gridItems = gridItemsContainer.querySelectorAll('.grid__item, .grid__item2, .grid__item3'),
Classes should be used for similar elements. Having class 1, 2, and 3 is not really good practice. Instead maybe think about having a single "grid_item" class and using other selectors to find the ones you want. Or if these are very specific use ids. Note that your classes should also be more semantic. grid_item3 doesn't really mean much to someone looking at it, does it have a specific purpose different from the others?
.grid__item{}
.grid__item--top {}
.grid__item--left{}
.grid__item--right{}
I would not use css classes for Javascript selectors at all. Use a data-attribute or something like that to find things with javascript, and meaningful css classnames for your css.
This is much more robust, css changes a lot, it's a pain to keep things in sync.
Do you know BEM, more? I can't recommend this convention enough. My life got so much better when I started using it some years ago.
Code:.grid__item{} .grid__item--top {} .grid__item--left{} .grid__item--right{}
Well you're definitely on the right track. Get the JS fundamentals down and make sure you're solid on that because that's everything. If you're already pretty comfortable as a programmer in general, a site like Javascript Garden can be very useful (it details the unique/quirky parts of JS without holding your hand with basic programming concepts).
As for jQuery, it's still useful to know how (and more importantly when) to use it, but its relevance is fading. jQuery was primarily useful for two things: finding DOM elements and writing code for every browser easily. Both of these issues are mostly mitigated by the adoption of newer browsers (for example querySelector() and querySelectorAll() completely solve the former). So learn it but definitely don't rely on it and know when not to use it.
JS frameworks would be a very good next step, so definitely look into those once you're comfortable with JS. Angular, React, and Ember are all very popular frameworks and they all take a slightly different approach.
Using Bootstrap is not cheating by any means (and knowing how to use Bootstrap is important) but knowing how to build a front-end from scratch and style it with CSS is much more impressive (in my opinion). So in other words: do both.
Lastly, CSS preprocessors are a big deal and I would recommend (eventually) learning them. Luckily, they're all fairly similar, so you can learn the concepts of one and then the syntax differences of the rest for the most part.
Thanks! I didn't realize JQuery was fading. Wish I could save this post somehow, lol.
Thanks! I didn't realize JQuery was fading. Wish I could save this post somehow, lol.
jQuery isn't actually "fading" per se, it's still used in many (MANY) projects, if only because it enables you to use pre-made plugins without reinventing the wheel. But like any library it has its flaws and the growing number of full-stack pure JS users have been vocal about the fact that they could do without it. Which is true and fine, but it's equally ok to rely on it for what it is: a time-saver.
Typing this, I realise I recently vocalized my hatred for Bootstrap and other frameworks for reasons that are comparable to the ones people use to critique jQuery. After all, both save time even though there are other ways to do it. The thing is, Bootstrap isn't just a library of functions built on JS. It's that, plugins built on it and a lot of CSS that you'll often have to overrule. So why should you use jQuery without too much consideration (some is still relevant, as other posters have said) but really ponder using Bootstraps? Well because jQuery's weight is a fraction of Bootstrap's and it mostly won't hinder the rest of your coding while saving you time. Bootstrap without care is jQuery plus lots of added baggage, a fraction of which you usually use, and a lot of wasted time battling its base styles.
In short, if you're using jQuery because you need a couple plugin and are faster ad coding with it, go for it, no harm done. If you're not actually using intricate plugins and just simple functions you could do in pure JS, consider the second option. And for front-end frameworks, steal their ideas and organisation (reusability of code is king) but don't rely on them in the long run. They were made for prototyping and lazily building back office when the dev can't be bothered to do CSS. Use them for that.
I'm thinking of signing up for a web development boot camp. General Assemb.ly has a branch near me in D.C. which is a massive plus since I can commute there from home. They seem to be pretty legit but I'd really appreciate some feedback on their curriculum. They offer a 12-week full-stack web development immersive. Check the syllabus and FAQs sections for more info.
https://generalassemb.ly/education/web-development-immersive/washington-dc?where=washington-dc
Ther other option is Bloc. They have an online 12-week Front-End Web Development course that I'm also eyeing. There's obvious pros and cons of it being online, but since there's no back-end training I'm wondering if it's even worth my time.
How do you backup your installed Sublime Text 3 plugins?
And speaking of which, what are you favourite plugins? I've been on a downloading spree lately and wanted to know if I missed any good ones
So I work totally remote for my job and I've run into a problem with some client work. Two clients need to whitelist ips in order to deploy code to their dev server through git. When I am traveling it causes problems, I've gotten better at coordinating my schedule but sometimes things pop up that I can't fix while I'm on the road. You guys have any solutions for what I could do in this situation?