|
revmoo posted:Anybody have Firefox poo poo the bed on SSL? I have my FF set to clear all cookies, cache, everything on shutdown, and yet if I load up a fresh instance of FF and browse to a number of sites I get untrusted connection error. I've had other people verify with their copies of FF and it only happens with my copy. Do you have malware running a man-in-the-middle attack on your connection? Try comparing the certificate that Firefox is complaining about with the real certificate that other people are seeing.
|
# ? Mar 7, 2015 06:08 |
|
|
# ? May 16, 2024 18:24 |
|
Jabor posted:Do you have malware running a man-in-the-middle attack on your connection? I'm gonna do some further digging. I doubt it's a MiTM because it's only occurring on FF which I only use for development. Not impossible though, I work at a place that is an extremely ripe target for APT groups so we''re always looking over our shoulders. Remember, just because you're paranoid doesn't mean they're not out to get you!
|
# ? Mar 7, 2015 14:42 |
Loezi posted:This is a thing! Aha I'd seen ETags in the headers a bunch of times but never really dug into what they were. I probably assumed they were part of one of those oddball session/authentication schemes from ages past or something. Thanks!
|
|
# ? Mar 7, 2015 14:46 |
|
Here, have a thing I made for work: It's mostly for Symfony2 with Doctrine, but happy for people to let me know if I missed anything important. \/\/\/\/ Hadn't checked it cause it was only for internal use, but thanks for the spell check. v1nce fucked around with this message at 01:27 on Mar 9, 2015 |
# ? Mar 9, 2015 00:13 |
|
v1nce posted:Here, have a thing I made for work: How do I use Borwser cache?
|
# ? Mar 9, 2015 01:04 |
|
Apparently I don't understand Bower. When I started using the sb-admin-2 bootstrap template a few months ago, the download zip contained a directory of minified files. When they released a new version, I would just download, unzip overtop the previous version, worked like a charm. In the latest version, it's been bowerified. When I run bower install startbootstrap-sb-admin-2 I get a directory called bower_components, which contains all the files from the library I want, plus all its dependencies, each in their own directory. But each component contains its own subdir structure, with readmes and example html files and images and gitignore files, and all sorts of crap that I don't want in my source control. Am I supposed to manually cherry pick out the minified files I'm after?
|
# ? Mar 10, 2015 06:45 |
|
epalm posted:Apparently I don't understand Bower. Yeah, that's basically bower. Most of the time people make their bower components the whole kitchen sink. Your deployment/build process should cherry pick the files you need and pack them wherever they need to go. As an aside, many JavaScript client libraries have npm packages with the built files in them, so depending on your use case you may not need bower at all.
|
# ? Mar 10, 2015 06:55 |
I've been assuming the way to go is to do my bower stuff outside source control and then copy the finished dist files into the source-controlled area when I'm ready to check in. Which is a mockery of source control, of course, but whaddyagonnado.
|
|
# ? Mar 10, 2015 12:03 |
|
Data Graham posted:I've been assuming the way to go is to do my bower stuff outside source control and then copy the finished dist files into the source-controlled area when I'm ready to check in. Bower packages usually expose the required files through the "main" config section, which a lot of thirdparties rely on. You can use gulp + main-bower-files to select these files and place them in a dist. You can also override the main section yourself. As for committing, you should always commit the bower_components folder, but filter it out of the final release. This is because you will be relying on lovely bower servers otherwise, and your development will come to a halt if someone new needs to call "bower install" and the server is down. The problem will materialise when you want to change what stuff you require from the package.
|
# ? Mar 10, 2015 12:45 |
|
Funking Giblet posted:As for committing, you should always commit the bower_components folder, but filter it out of the final release. This is because you will be relying on lovely bower servers otherwise, and your development will come to a halt if someone new needs to call "bower install" and the server is down. The problem will materialise when you want to change what stuff you require from the package. People should do that, but in practice it is rare. Which really sums up modern web development in general: An impenetrable rat's nest of "do as I say, not as I do" and half-rear end tools and frameworks that enforce all the weird aspects of their vision but none of the actual best practices.
|
# ? Mar 10, 2015 15:54 |
|
Data Graham posted:I've been assuming the way to go is to do my bower stuff outside source control and then copy the finished dist files into the source-controlled area when I'm ready to check in. The way I do my bower stuff is to not use anything that requires I install it with bower.
|
# ? Mar 10, 2015 16:11 |
|
Maluco Marinero posted:Your deployment/build process should cherry pick the files you need and pack them wherever they need to go. OK. So it's as stupid as I thought. Data Graham posted:the way to go is to do my bower stuff outside source control and then copy the finished dist files into the source-controlled area when I'm ready to check in. Sounds like a lot of work for not much gain. Funking Giblet posted:As for committing, you should always commit the bower_components folder, but filter it out of the final release. I'm absolutely not dumping the contents of 12 git repositories into my source control, complete with example html files and readmes. Who does this?? Lumpy posted:The way I do my bower stuff is to not use anything that requires I install it with bower. I'm using sbadmin2, which until now, didn't have anything to do with bower What have these kids done to my internet epswing fucked around with this message at 16:43 on Mar 10, 2015 |
# ? Mar 10, 2015 16:39 |
|
epalm posted:
They've infused it with The New Hotness™
|
# ? Mar 10, 2015 17:04 |
|
Lumpy posted:They've infused it with The New Hotness™ As long as it's Web Scale
|
# ? Mar 10, 2015 17:06 |
|
epalm posted:I'm absolutely not dumping the contents of 12 git repositories into my source control, complete with example html files and readmes. Who does this?? If you use a workflow that utilizes bower, you need to, or you expose yourself the second bower stops responding (which it does). If you use it locally only, and just keep the output in source control, then that's fine, but why use bower in the first place, just download the js file and store it. Notice I never said it was a good thing. I think people are spending far too much time writing gulp files if you want my opinion when they should be writing their own code for their own apps.
|
# ? Mar 10, 2015 17:13 |
|
Funking Giblet posted:just download the js file and store it. If I can't do this, or if I can't use npm to install it, 9 times out of 10 I'll just find an alternative to using it. I hate messing with this poo poo.
|
# ? Mar 10, 2015 17:15 |
|
Can somebody who uses a _typography.scss partial explain to me the benefits of doing so? In my limited experience I've found it to be a pain, but maybe I'm not doing it right. To me it seems that _typography forces me to split up what should be single rule sets into two separate rule sets, thus complicating things. Say for instance I have a class of .button, which has both formatting styling rules (position, margin, etc.), and typographical styling rules (font-family, color, etc.). They're now spread across two different .scss files. Every time I need to make a change to .button, I first have to ask myself "Is this a formatting thing or a typography thing?" and I go to the appropriate file. More brain power, more work. Or am I totally misunderstanding something?
|
# ? Mar 10, 2015 20:21 |
|
caiman posted:Can somebody who uses a _typography.scss partial explain to me the benefits of doing so? In my limited experience I've found it to be a pain, but maybe I'm not doing it right. To me it seems that _typography forces me to split up what should be single rule sets into two separate rule sets, thus complicating things. Say for instance I have a class of .button, which has both formatting styling rules (position, margin, etc.), and typographical styling rules (font-family, color, etc.). They're now spread across two different .scss files. Every time I need to make a change to .button, I first have to ask myself "Is this a formatting thing or a typography thing?" and I go to the appropriate file. More brain power, more work. Or am I totally misunderstanding something? It's a widget / control thing, not a typography thing. Obviously there's no "right" answer to this, but to me, typography is headers, body copy, lists, etc. Buttons and navigation aren't those things, they are "functional". So button type, color, etc. have nothing to do with my typography.
|
# ? Mar 10, 2015 20:53 |
caiman posted:Can somebody who uses a _typography.scss partial explain to me the benefits of doing so? In my limited experience I've found it to be a pain, but maybe I'm not doing it right. To me it seems that _typography forces me to split up what should be single rule sets into two separate rule sets, thus complicating things. Say for instance I have a class of .button, which has both formatting styling rules (position, margin, etc.), and typographical styling rules (font-family, color, etc.). They're now spread across two different .scss files. Every time I need to make a change to .button, I first have to ask myself "Is this a formatting thing or a typography thing?" and I go to the appropriate file. More brain power, more work. Or am I totally misunderstanding something? Your typographical styling rules should be in typography (imo) I use a typography partial and ANY calls to font-family, color, size, etc go in there The reason you do this is to ensure that EVERY button looks the same. Your teammates should understand that ALL font changes go in the typography area.
|
|
# ? Mar 10, 2015 20:56 |
|
The idea of using partials is that you split up your CSS into easy to read and manage chunks. If you later want to change some fonts on your site, you don't have to search through your complete CSS file for all the font statements, but you simply open up _typography.css and have them neatly organised right there. It is a bit more work when you write your CSS for the first time as you have to pay attention as to which declarations go into what file, but it makes management after that easier. It really depends on what kind of site you are running, how much CSS you have to begin with and how many other people will be editing the site in the future. Are you running your own small-scale homepage with a limited amount of pages and little CSS? Then decide for yourself if using partials is worth it (but if you're already using SASS, why not?). Are you managing a large-scale site which has a ton of CSS and which will have other people working on it in the future? Then splitting up your working files into easy to use, documented partials might be a good idea. Lumpy posted:to me, typography is headers, body copy, lists, etc. Buttons and navigation aren't those things, they are "functional". down with slavery posted:The reason you do this is to ensure that EVERY button looks the same. Leshy fucked around with this message at 21:11 on Mar 10, 2015 |
# ? Mar 10, 2015 21:03 |
caiman posted:Can somebody who uses a _typography.scss partial explain to me the benefits of doing so? In my limited experience I've found it to be a pain, but maybe I'm not doing it right. To me it seems that _typography forces me to split up what should be single rule sets into two separate rule sets, thus complicating things. Say for instance I have a class of .button, which has both formatting styling rules (position, margin, etc.), and typographical styling rules (font-family, color, etc.). They're now spread across two different .scss files. Every time I need to make a change to .button, I first have to ask myself "Is this a formatting thing or a typography thing?" and I go to the appropriate file. More brain power, more work. Or am I totally misunderstanding something? You're not wrong. The thing is, you have to treat structural approaches to CSS/SCSS like code styling. Everyone has a favorite approach, but the main thing is that everyone has to agree on one approach and stick to it. Consistency trumps additional the extra bit of cognitive load that some people may feel. For instance, I loathe this indentation style: code:
|
|
# ? Mar 10, 2015 21:10 |
|
Leshy posted:
Correct, but for breaking up my styles into partials, I think of that as belonging in a _controls file rather than the _typography one. It's all semantics in the end but my brain keeps those things in different files. Of course, _controls is more than welcome to import _typography....
|
# ? Mar 10, 2015 21:28 |
I'm sure this question has been answered before, but what are people's thoughts on MongoDB and NOSQL becoming more and more popular. Stupid question time: What kind of problems does NoSQL work for where a traditional DB like Postgres wouldn't?
|
|
# ? Mar 10, 2015 21:33 |
|
down with slavery posted:Your typographical styling rules should be in typography (imo) I use a typography partial and ANY calls to font-family, color, size, etc go in there The thing I don't understand is how using a typography partial ensures every button looks the same any more than simply using, say, a buttons partial. Every button WILL look the same as long as it has a class of .button, regardless of whether or not the rules for .button are split up across multiple partials. Leshy posted:The idea of using partials is that you split up your CSS into easy to read and manage chunks. If you later want to change some fonts on your site, you don't have to search through your complete CSS file for all the font statements, but you simply open up _typography.css and have them neatly organised right there. Just to be clear, I am using partials. It's just that none of my rule sets are divided up between multiple partials. The rules for .button are included in one, and only one, .scss file.
|
# ? Mar 10, 2015 21:39 |
|
down with slavery posted:I'm sure this question has been answered before, but what are people's thoughts on MongoDB and NOSQL becoming more and more popular. Stupid question time: What kind of problems does NoSQL work for where a traditional DB like Postgres wouldn't? Storing and reading arbitrary, schema-less stuff quickly. Although with hstore Postgres can sort of do that too now.
|
# ? Mar 10, 2015 21:55 |
Lumpy posted:Storing and reading arbitrary, schema-less stuff quickly. Although with hstore Postgres can sort of do that too now. Do you have a few examples as to where this might be useful? I'm just having trouble putting together why you'd want the database without the schema, that just seems like a recipe for problems down the road.
|
|
# ? Mar 10, 2015 21:57 |
|
down with slavery posted:Do you have a few examples as to where this might be useful? I'm just having trouble putting together why you'd want the database without the schema, that just seems like a recipe for problems down the road. Something like Products with attributes not represented by a schema. A TV could have Size, Color, Weight, Number of HDMI ports etc, A Dress could have Size, Color, Fabric etc. Getting these out of the database means joins, and searching means multiple joins and terrible performance (think of attribute value counts in the millions). DeNormalizing this into a flat structure means the entire structure can be gotten via a single key, extremely quickly as well as indexed created to represent different dimensions on the data. NoSql generally uses the idea of Documents (others might use graphs) to store data containing any number of fields. Things get interesting when you use SQL and NoSql together, in something like a CQRS pattern, where NoSql represents views of the relational data for quick queries, and Sql is used for writes which is replicated across.
|
# ? Mar 10, 2015 22:37 |
|
Lumpy posted:Correct, but for breaking up my styles into partials, I think of that as belonging in a _controls file rather than the _typography one. caiman posted:Just to be clear, I am using partials. It's just that none of my rule sets are divided up between multiple partials. The rules for .button are included in one, and only one, .scss file. If all of your typography CSS is in a separate _typography.scss, you open that up and see exactly where you've declared what font and which elements are using which variations. Did your .button use a bolded, 2px larger version of the default 16px Arial? Easy enough to make the necessary changes so that your Proxima Nova text fits nicely onto the button as well. Or did you decide to keep your font styles together with the class when you declared it? Now you're going to have to hunt it down. Did you declare .button in your main stylesheet, or did you consider it a control and did you put it in your partial _controls? And where did you put the font styles for that dropdown box in your navigation bar? Was that in _controls too, or was that in _navigation? And in what other partials did you also make font declarations that you'll have to adjust? Better go check them all.
|
# ? Mar 11, 2015 00:16 |
Funking Giblet posted:Something like Products with attributes not represented by a schema. This basically just means a lot of data duplication, right? I mean, the whole point of relations and joins is so you can store data as uniquely as possible, and joins/indexes are there to make this feasible. You can always just do enormous flat key/value stores, but inevitably you're going to replicate every attribute that would otherwise be in a joined table. Sure is fast though.
|
|
# ? Mar 11, 2015 00:25 |
|
Anyone know a great site for learning about media queries and responsive design, overall?
|
# ? Mar 11, 2015 02:54 |
|
Anyone with a clue as to why the pictures in my gallery open halfway in the bottom of the page instead of using the existing space on screen ? I used a jQuery plugin called Boxer
|
# ? Mar 11, 2015 09:00 |
|
Looks like it's centered relative to the document (whole page), not the viewport (what you can see).
|
# ? Mar 11, 2015 09:16 |
|
Mister Chief posted:Looks like it's centered relative to the document (whole page), not the viewport (what you can see). The whole page is visible on my screenshot. The div with the "contact" button is the last visible element on the page, the scrollbars appear after I click on a thumbnail.
|
# ? Mar 11, 2015 09:34 |
|
Data Graham posted:This basically just means a lot of data duplication, right? Speed is all that matters really, disk is relatively cheap for the performance you can get by doing it this way. It's basically a queryable cache (which you then cache anyway :P)
|
# ? Mar 11, 2015 09:35 |
|
unpacked robinhood posted:Anyone with a clue as to why the pictures in my gallery open halfway in the bottom of the page instead of using the existing space on screen ? I used a jQuery plugin called Boxer
|
# ? Mar 11, 2015 10:03 |
|
Leshy posted:Got a link to an example page where the issue happens? It's hard to tell where it's going wrong from just a screenshot. Nah it's uploaded nowhere. I'll redo it from scratch and hope I catch the step where it goes wrong. Thanks though!
|
# ? Mar 11, 2015 10:17 |
|
loving hell https://generalassemb.ly/education/web-development-immersive/los-angeles 12k for crazy boot camp? That's a crazy amount of money. Granted I'm sure that environment really puts you in boot camp and all, but if you spend 1 year on your own learning, you probably can learn basic css/html/javascript right?
|
# ? Mar 11, 2015 10:55 |
|
caberham posted:loving hell My guess is the networking and contacts you make are equally or more valuable than the coding bits. I don't really know much about that one, but the boot camp stuff I see all seems very heavy on the "we put you in front of people who are hiring" thing. \/\/ well then I feel bad for people who go to those things! Lumpy fucked around with this message at 14:24 on Mar 11, 2015 |
# ? Mar 11, 2015 11:25 |
|
Lumpy posted:but the boot camp stuff I see all seems very heavy on the "we put you in front of people who are hiring" thing. They're literally just ctrl+c / ctrl+v Devry. Sure there's some differences as far as classes, timeframe, cost, but it's basically the same concept. If you're going to spend > 10k on a school it needs to come with transferable credits.
|
# ? Mar 11, 2015 11:31 |
|
|
# ? May 16, 2024 18:24 |
|
down with slavery posted:Do you have a few examples as to where this might be useful? I'm just having trouble putting together why you'd want the database without the schema, that just seems like a recipe for problems down the road. An example where we planned on using it at one of my old jobs was in an app that was used for data collection. What was captured varied by the user, and the individual business they were working with at the moment. There were some commonalities, like name, address, etc. but a large part of the data was arbitrary key / value stuff that may or may not be nested, and more importantly, was very specific to each place. Since only one user of the app worked with their set of businesses, we didn't need to worry about speed of searches on that data, so we just serialized each business as JSON and dumped it into a document store, as a collection under the user ID of the person creating the records.
|
# ? Mar 11, 2015 14:36 |