|
People definitely do short-term logging, or speculative logging that's only preserved on error. With server-side stuff you can ratchet up logging if you see a pattern, but having some horizontal facility for doing so can be a fair bit of work.
|
# ? Sep 20, 2014 18:29 |
|
|
# ? May 15, 2024 04:02 |
|
The PII stuff is what's going to kill you. I know whenever we deal with PII we have to follow FISMA regulations pretty closely. Log security is absolutely nuts. Granted, we're a government contractor, so our rules are a bit stricter than private sector folks, but if you can avoid logging any PII that would make your life a million times easier. How frequently does this issue occur? Can you figure out commonalities based on the timing? Do you have analytics on any pages that are hitting that API?
|
# ? Sep 20, 2014 21:24 |
|
Blinkz0rz posted:The PII stuff is what's going to kill you. I know whenever we deal with PII we have to follow FISMA regulations pretty closely. Log security is absolutely nuts. We're not government but we're large enough & have enough sensitive data for the people who make these decisions to (rightfully) err on the side of caution. I suspect that you're right and that logging PII with security restrictions is a losing proposition. But out of morbid curiosity what about log security is absolutely nuts? For example I would be totally fine with having some gatekeeper person who I could email and say "give me the full request for all http messages sent to X service at Y time yesterday, and if there's any PII fields in that request body then just don't send it to me and we'll loop in security." Also, I didn't mean to imply that there was one production bug I was trying to track down, it's more just that the pattern involves "some random edge case happening in production" and we lose what should be easy reproduction of the bug because a full log of the transaction data doesn't exist, regardless of whether PII was involved or not. We do eventually track down production bugs using tertiary information (who was in the system at that time, educated guesses, stack traces, etc) but it would save us a lot of time to have a systemic approach to service logging rather than the defensive approach we have now. Short term logging sounds like an interesting idea but I suspect that would still not fly with security, unless maybe there's some industry/legal standard I could point to. Which is totally possible, since I'm pretty unlearned in this stuff. TheresNoThyme fucked around with this message at 09:47 on Sep 21, 2014 |
# ? Sep 20, 2014 21:56 |
|
I'm messing around with Velocity for the first time and I have a question about the reverse command. It doesn't behave exactly correctly inside of a jquery .hover. Here's the code that works:code:
code:
|
# ? Sep 22, 2014 22:22 |
|
I'm having a dumb css problem, and i'm failing to find a solution on google. When browser is full screen, my page displays correctly, but when it's width is reduced significantly, my content text is spilling over my content container and it looks dodgy. I'm sure i've just done something stupid somewhere, or am completely drawing a mental blank on the fix. If anyone can point me in the right direction to getting this working properly, i'd really appreciate it. selan dyin fucked around with this message at 12:50 on Sep 24, 2014 |
# ? Sep 24, 2014 11:50 |
|
Get rid of height on pgcontainer. Is that what you're looking for?
|
# ? Sep 24, 2014 12:41 |
|
Mister Chief posted:Get rid of height on pgcontainer. Is that what you're looking for? Yep, thanks!
|
# ? Sep 24, 2014 12:50 |
|
The lack of response to my Velocity.js question makes me wonder: is anyone using Velocity.js? I just recently discovered it by way of this article. I haven't personally done any performance comparisons, but apparently it outperforms not only jQuery's .animate(), but also CSS animations. The performance section on this page is pretty convincing.
|
# ? Sep 24, 2014 15:16 |
|
caiman posted:The lack of response to my Velocity.js question makes me wonder: is anyone using Velocity.js? I just recently discovered it by way of this article. I haven't personally done any performance comparisons, but apparently it outperforms not only jQuery's .animate(), but also CSS animations. The performance section on this page is pretty convincing. Haven't given it much attention before, but that looks pretty great.
|
# ? Sep 24, 2014 15:30 |
|
Cross posting here in case anyone is interested in some simple contract work. I figured I'd get more exposure from the relevant people by posting it here as well- http://forums.somethingawful.com/showthread.php?threadid=3667321&pagenumber=1&perpage=40#post435337706 quote:Looking for someone to take Tiny Sort* and another sorting script and apply it to my HTML and XML webpage to create a simple web spreadsheet with columns which you can sort by.
|
# ? Sep 24, 2014 16:59 |
|
caiman posted:The lack of response to my Velocity.js question makes me wonder: is anyone using Velocity.js? I just recently discovered it by way of this article. I haven't personally done any performance comparisons, but apparently it outperforms not only jQuery's .animate(), but also CSS animations. The performance section on this page is pretty convincing. That just makes me wonder why the Velocity people didn't just contribute a new animation stack to jQuery
|
# ? Sep 24, 2014 17:29 |
|
caiman posted:The lack of response to my Velocity.js question makes me wonder: is anyone using Velocity.js? I just recently discovered it by way of this article. I haven't personally done any performance comparisons, but apparently it outperforms not only jQuery's .animate(), but also CSS animations. The performance section on this page is pretty convincing. The articles that claim performance improvements actually say it outperforms CSS animation libraries, which is just a weaselly way of saying it runs better than another library's approach to animating with CSS. GSAP and Velocity are pushing JavaScript animation TIMING, and when you have a particular complex animation requirement they will be a perfect tool HOWEVER the claim that they outperform CSS animations/transitions is just dumb as hell when taken as a broad statement. The deck is stacked in that particular performance example for two reasons: 1 - css animations can't animate seperate elements using the same calculation, so it can't batch, but since when are you animating that many objects in unison without just animating the containing layer. 2 - it's animating a layout property (left) rather than a layer property (transforms, opacity), so the CSS transitions have to trigger layout with every tick, further exacerbating the performance and sync problem with a CSS animation library. Using computation in JavaScript allows you to do things not possible in CSS transitions, like animating two transform properties separately, but if you use correct CSS properties and simple state changes through classes you will have better performance and less overhead. You can also hook the animation end events for your callbacks too. The key thing with CSS anims if you want to make sure those state transitions are smooth, is to restrict yourself to transform and opacity whenever possible, as they leverage hardware acceleration and don't trigger repaints or layouts. The CSS vs JS animation thing is sorta self serving, its about library implementation, but for a lot of basic state transitions you don't want the library overhead anyway, you just want to set the declarative CSS and be done with it. I would definitely pick it over something like transit for complex stuff, but I guess for simple animations/transitions I don't feel its yet worth dropping declarative CSS.
|
# ? Sep 24, 2014 18:06 |
|
I'm pretty new to coding and have been working on my own sites/apps with pretty decent success - I've got other pages that have simple Javascript and jQuery scripts working fine, so I feel like I know juuuust enough to eventually see my own errors, but I can't work out why the hell this scroll function isn't working. I'm trying to make a div become fixed as I pass a certain point in scrolling on the page, so I only see the base of the div. I initially had the offset().top of a div contained in my header as the "freeze" point for the header, but as it wasn't working, I started simplifying downwards, simplifying variables... Everything is telling me this should work... but it isn't. This is the entire bit of script in my head section:code:
code:
Wungus fucked around with this message at 18:44 on Sep 24, 2014 |
# ? Sep 24, 2014 18:25 |
|
Whalley posted:I'm pretty new to coding and have been working on my own sites/apps with pretty decent success - I've got other pages that have simple Javascript and jQuery scripts working fine, so I feel like I know juuuust enough to eventually see my own errors, but I can't work out why the hell this scroll function isn't working. I'm trying to make a div become fixed as I pass a certain point in scrolling on the page, so I only see the base of the div. I initially had the offset().top of a div contained in my header as the "freeze" point for the header, but as it wasn't working, I started simplifying downwards, simplifying variables... Everything is telling me this should work... but it isn't. This is the entire bit of script in my head section: Is your script executing before Jquery loads? What does your console say? If the above Jquery is being called before your jquery script declaration, that's probably a big source of your problem. Raskolnikov2089 fucked around with this message at 18:41 on Sep 24, 2014 |
# ? Sep 24, 2014 18:32 |
|
caiman posted:The lack of response to my Velocity.js question makes me wonder: is anyone using Velocity.js? I just recently discovered it by way of this article. I haven't personally done any performance comparisons, but apparently it outperforms not only jQuery's .animate(), but also CSS animations. The performance section on this page is pretty convincing. I've used it on a couple of sites and have found that it's generally useful when you have to do an animation that touches large pieces of the page or would otherwise be causing a whole shitload of repaints. For example, using it to animate a header onto the screen combining Y position and opacity at the same time is a great use for velocity. Changing a button's color or position on hover is not. The most common thing I use it for is smooth scrolling, moving complex elements with lots of children or several elements at a time around the page. Maluco Marinero posted:2 - it's animating a layout property (left) rather than a layer property (transforms, opacity), so the CSS transitions have to trigger layout with every tick, further exacerbating the performance and sync problem with a CSS animation library. This is really the gist of it. The short version is that if you find yourself using jQuery's .animate() a lot on a project and you don't mind introducing another 9kb JS file, you may as well be using velocity. If you're using a lot of CSS transitions, YMMV depending on what exactly you're trying to accomplish.
|
# ? Sep 24, 2014 18:37 |
|
Raskolnikov2089 posted:Is your script executing before Jquery loads? What does your console say? If the above Jquery is being called before your jquery script declaration, that's probably a big source of your problem. Here's a jfiddle I made for it: http://jsfiddle.net/sarsparillo/te76zwuq/1/
|
# ? Sep 24, 2014 18:53 |
|
Whalley posted:I had forgotten to close my function and have fixed up a couple of dumb console errors (including a variable I forgot to declare) but even after getting the console to return no dumb errors like that, I'm still at a loss. http://jsfiddle.net/zvv231wz/ Your math is a little funky on when it should stick and unstick, but this seems to work. You had a couple of problems: 1. You hadn't included jQuery in the fiddle, therefore it wasn't working at all. 2. Your if statement was only getting called once, when the document ready fired. So if you scrolled down the page it wouldn't matter whether or not the conditions of the if statement were met because it wasn't getting fired anymore. Thus, I wrapped it in a function and called it on an interval. You could also do it on scroll, but that means you'll be firing the event potentially hundreds of times per second if the person is actively scrolling, which is dumb. 3. .addClass('className') not .addClass('.className'). kedo fucked around with this message at 19:03 on Sep 24, 2014 |
# ? Sep 24, 2014 19:01 |
|
kedo posted:http://jsfiddle.net/zvv231wz/ Secondly, while I've done something of a reshuffling of the stuff you suggested (your code wasn't letting the header scroll at all), now I've got a header that dances up and down the page every two seconds; the #header .fixed { top: -510px; } in my CSS isn't placing my header above the top of the page - I only want to display the bottom 108 pixels of my header after it becomes fixed, not the whole thing. I put in a check to see if the header has the class "fixed" and if it doesn't, only then should it check the top of the screen and run the code... why is it dancing? Is it because of the dumb fixed placement thing that's happening?. http://jsfiddle.net/sarsparillo/te76zwuq/12/
|
# ? Sep 24, 2014 19:41 |
|
Whalley posted:First, thanks for reminding me I don't need to add in a . in addClass, I feel kinda dumb about that. Also, this is my first time using jsfiddle, I didn't realize I had to include libraries like that. FYI CSS-Tricks did a tutorial on this the other day: http://css-tricks.com/scroll-fix-content/
|
# ? Sep 24, 2014 20:40 |
|
What's everyone's preferred method for optimizing images? I've been fiddling with Grunt's imagemin plugin and I'm pretty happy with it so far. I did notice however that with .pngs the resultant file isn't quite as small as when I use tinypng.com, and I don't see an option to adjust compression level (optimizationLevel doesn't seem to affect the end file size).
|
# ? Sep 24, 2014 22:25 |
|
EDIT: realized i wanted nth-of-type instead of nth-child
|
# ? Sep 25, 2014 01:52 |
|
caiman posted:What's everyone's preferred method for optimizing images? I've been fiddling with Grunt's imagemin plugin and I'm pretty happy with it so far. I did notice however that with .pngs the resultant file isn't quite as small as when I use tinypng.com, and I don't see an option to adjust compression level (optimizationLevel doesn't seem to affect the end file size). We use pngcrush on Facebook.com, I believe. I don't *think* we have any local modifications.
|
# ? Sep 25, 2014 02:00 |
caiman posted:What's everyone's preferred method for optimizing images? I've been fiddling with Grunt's imagemin plugin and I'm pretty happy with it so far. I did notice however that with .pngs the resultant file isn't quite as small as when I use tinypng.com, and I don't see an option to adjust compression level (optimizationLevel doesn't seem to affect the end file size). I've been using http://pngquant.org/ which is the compression behind Kraken.io pretty easy to set up and then you can use it from the command line
|
|
# ? Sep 25, 2014 02:09 |
|
caiman posted:What's everyone's preferred method for optimizing images? I use ImageOptim as a window-I-can-drag-images-into. Dunno if it'll do command-line though.
|
# ? Sep 25, 2014 02:26 |
|
caiman posted:What's everyone's preferred method for optimizing images? I've been fiddling with Grunt's imagemin plugin and I'm pretty happy with it so far. I did notice however that with .pngs the resultant file isn't quite as small as when I use tinypng.com, and I don't see an option to adjust compression level (optimizationLevel doesn't seem to affect the end file size). I use RIOT, but I'm on Windows. Are you looking for any ol' tool or just *nix/command line?
|
# ? Sep 25, 2014 04:08 |
|
wutup can anyone help me with this? This site has a breakpoint at <1000px where it switches to a single column 100% wide. It works fine when I resize the browser window but it doesn't work on my phone or using the chrome dev tools phone emulation. As soon as I turn on emulation the site gets a fixed width of 980px. I can't work out where the gently caress that 980 number is coming from. I can't see it in the CSS anywhere. How do I track something like that down? e: alright apparently 980 is the default mobile viewport width or something. I fixed it by adding: code:
e2: removed the site because I'm embarrassed. fuf fucked around with this message at 12:46 on Sep 25, 2014 |
# ? Sep 25, 2014 11:12 |
|
you shouldn't block the user from being able to zoom, use this code:
|
# ? Sep 25, 2014 14:23 |
|
daggerdragon posted:I use RIOT, but I'm on Windows. Are you looking for any ol' tool or just *nix/command line? Any tool that does the job well. For now I'll probably keep using imagemin.
|
# ? Sep 25, 2014 14:58 |
|
using ASP.NET, DevExpress, jQuery I'm looking for an HTML file uploader that allows for multiple file uploads that will save each file as it finishes. You know, so that if the upload gets interrupted part way through, some of the files still get saved. I was using a DevExpress uploader, which has both of these features, but strangely separated. If you use separate input fields that each select one file individually(Example), it saves each file as it finishes. But if you enable AdvancedModeSettings-EnableMultiSelect="true", interrupting an upload at 90% results in zero files saved. I've been searching around and the only replacement I've found so far is blueimp's resumable jquery uploader, but it requires HTML5 and I'm not certain how well it will be supported on different platforms/browsers. The fact that this feature seems hard to find is making me think that it simply can't be done without HTML5, which is a bit mind boggling, since it seams like a very simple feature. If anyone has any insight as to why these uploaders are limited or any viable replacements, I'd love to hear about it.
|
# ? Sep 25, 2014 17:59 |
|
http://caniuse.com/#feat=forms Looks like it has pretty decent support to me.
|
# ? Sep 25, 2014 18:28 |
|
I hope this is the appropriate megathread for this question. My dad has a niche website that he's been maintaining since it's creation in 1996. It is a site for the aggregation and analysis of snowfall statistics as they relate to skiing in North America. As you can see, the site design has not changed since day one. He still updates it roughly monthly, with an annual update that is more in depth. The site has significant value to people that are aware of it (it is more comprehensive and statistically rigorous than any other effort on the topic), but I think it could be much more useful (and popular) if it was overhauled significantly. The main question is, what tools can he and I use to make his site not feel like the internet time-capsule that it appears to be now? The usual answer I've gotten in the past is wordpress. That is roughly the kind of tool I think we're looking for, in that it is easy for a layperson and makes updating content fairly painless. But it has one major showstopper that I can see, which is data tables. The backbone of this site is tables of numbers (like this or this) with a few graphs thrown in. As best as I can tell, wordpress doesn't handle these kinds of tables very well, and he'd have to convert them all into images. That is time consuming up front and also ongoing, as he can't update values in a table individually over time. He needs something that will make it easy to dump Excel data tables onto the website. Perhaps there is an easy way to do this in wordpress that I've just never been able to find? Or maybe there's another tool out there that's more appropriate?
|
# ? Sep 26, 2014 20:58 |
|
bawfuls posted:Perhaps there is an easy way to do this in wordpress that I've just never been able to find? Or maybe there's another tool out there that's more appropriate? Wordpress has plugins and there are a bunch of them for making tables display nicely: https://www.google.com/search?q=wordpress+table+plugin Look at those and see if your dad likes any of them
|
# ? Sep 26, 2014 21:24 |
|
I'm not going to say go with Wordpress because I don't know if there's better, but WP is pretty expandable to be whatever you want it to be. You could have a custom field just for the tables that lives inside each post and you can display outside of / in addition to the post content. It would be more helpful to hear about how he is building those tables now, is he just using an html wysiwyg and saving static files?
|
# ? Sep 26, 2014 21:30 |
|
Yeah, if he's okay editing them by hand, you could probably just skin them with Bootstrap or Foundation and improve the look substantially.
|
# ? Sep 26, 2014 21:38 |
|
The Dave posted:It would be more helpful to hear about how he is building those tables now, is he just using an html wysiwyg and saving static files?
|
# ? Sep 26, 2014 21:43 |
|
bawful's thing brought this to mind but it's an unrelated question. How common is it these days for people to just build a website from scratch without the aid of tools like Wordpress, Bootstrap, etc.? Even though I'm comfortable with these tools and I welcome them, I'm equally comfortable opening Sublime Text and typing out plain old HTML/CSS/JS/PHP. I understand that the tools make development quicker and easier, and they provide functionality that would be difficult and time-consuming to do yourself, so I fully grasp why people use them. I'm just curious how common it is to make a website without them.
|
# ? Sep 26, 2014 22:28 |
|
bawfuls posted:I believe so, yes. He does it all in a basic html text editor and uploads static files to update the site. Tables get copy/pasted from Excel somehow. If he doesn't mind saving his Excels as CSVs this plugin could be useful (assuming Wordpress): https://wordpress.org/plugins/wp-ultimate-csv-importer/ I've used it in the past, it's pretty robust. Only downside is the style info (e.g. the green background) would have to set in the theme, but if he's hand-tweaking HTML already he can probably figure out how to that. Wordpress supports categories / tags so he could easily maintain his Location - Year structure.
|
# ? Sep 26, 2014 23:06 |
|
That looks promising, thanks. Exporting a CSV ought to be as simple or simpler than what he's doing already. It sounds like the formatting could be easier in the long run with some wordpress plugins as well. For reference, this is probably the biggest headache of a table on the site, when it comes to formatting.
|
# ? Sep 27, 2014 00:42 |
|
bawfuls posted:For reference, this is probably the biggest headache of a table on the site, when it comes to formatting. my god
|
# ? Sep 27, 2014 01:15 |
|
|
# ? May 15, 2024 04:02 |
|
ha ha! Wow. That is somethin somethin. drat. I figured out how he gets the html in at least: code:
It'd take some work, but you could set up a CSS that would mimic the coloration. It'd have to use either php or js to 'tell' the page what the value is. Something like <td class="2col Dgrade">D</td> and then it'd know to automatically apply "poo poo brown" to cells that contain D, that kind of thing.
|
# ? Sep 27, 2014 01:23 |