I've never developed mobile apps so I'm not sure. But I've seen the same problems on iphones and windows phones so it's not just an android thing, although they might very well have the same curse to greater degrees. It's just indicative of the modern concept -- people aren't clients, they're not customers, they're dairy cows who pay for the honour of being milked.
|
|
# ? Jul 28, 2014 16:17 |
|
|
# ? May 9, 2024 19:35 |
|
Lumpy posted:Use flexbox and say screw you to IE!!! Or use flexbox with inline-block fallover: http://jsfiddle.net/qzk5Q/1/ (take out the flexbox stuff to see what IE < 11 sees) I don't know why they picked the name 'flexbox' but I guess it's easier to type than 'use-a-layout-algorithm-rather-than-a-convoluted-annoying-puzzle-game-on-this-element'
|
# ? Jul 28, 2014 16:30 |
|
I have a (probably easy) bootstrappish design question. I've got a list of Things that I'd like to display for the user, and also I'd like to provide the option to add a new Thing. Right now it looks like this, with 'New Portfolio' being the active item (eg, somewhere else on the screen the user is able to edit / view this item). This is a bootstrap list-group, and the top is just a regular button. It looks goony as hell but I can't figure out what makes sense. Should I make the entire top row a colored button? Should I just center the button that's there? Should I break the button out of the list-group and have it above or below? This problem is solved in about a billion different webpages but for some reason I can't locate any right now.
|
# ? Jul 28, 2014 18:34 |
|
Newf posted:I have a (probably easy) bootstrappish design question. I've got a list of Things that I'd like to display for the user, and also I'd like to provide the option to add a new Thing. Right now it looks like this, with 'New Portfolio' being the active item (eg, somewhere else on the screen the user is able to edit / view this item). This is a bootstrap list-group, and the top is just a regular button. It looks goony as hell but I can't figure out what makes sense. Should I make the entire top row a colored button? Should I just center the button that's there? Should I break the button out of the list-group and have it above or below? This problem is solved in about a billion different webpages but for some reason I can't locate any right now. A pattern I use frequently is to have an "add" button off to the side of the title of the list. Here is a very ugly example: http://jsfiddle.net/zBUCX/
|
# ? Jul 28, 2014 18:48 |
|
Munkeymon posted:I don't know why they picked the name 'flexbox' but I guess it's easier to type than 'use-a-layout-algorithm-rather-than-a-convoluted-annoying-puzzle-game-on-this-element' Hyatt picked "flex-box" in 1998 when we were doing the first versions of XUL in order to do UI layout (poorly supported by CSS's box model, especially then, as we all know). It was "flex" for "flexibility" as I recall, because it indicated how much that element should be resized, proportionately, in order to fill the containing element. When he went to Apple to work on Safari in secret () he implemented it again there, mostly-compatibly in khtml-later-WebKit. Modern flex-box semantics don't match the XUL ones, and this is very much for the best. The Android permissions model is arguably the worst of available options: mismatched socks from a drawer of permissions, vaguely described for maximum terror, and no ability to ask for permissions in-flow where it can be clearer to the user why the permission is needed. Example is calendar-access, which in Facebook is for event<->calendar sync (widely requested feature!), but we can't really tell you that and you can't tell us/the OS whether you want to enable it. Compare location/push/photos/contacts on iOS. Requesting a new permission also breaks auto-update in some cases (but not all, so I'm not sure what the point is anymore tbh), and at one point *removing* a permission request also blocked auto-update. (When I managed the FB Android team, I pushed out one release that just removed a permission and changed a diagnostic flag. Interestingly, we got the same amount of "everything is worse"/"everything is better" Play Store feedback as with every other release.)
|
# ? Jul 28, 2014 19:10 |
|
Newf posted:I have a (probably easy) bootstrappish design question. I've got a list of Things that I'd like to display for the user, and also I'd like to provide the option to add a new Thing. Right now it looks like this, with 'New Portfolio' being the active item (eg, somewhere else on the screen the user is able to edit / view this item). This is a bootstrap list-group, and the top is just a regular button. It looks goony as hell but I can't figure out what makes sense. Should I make the entire top row a colored button? Should I just center the button that's there? Should I break the button out of the list-group and have it above or below? This problem is solved in about a billion different webpages but for some reason I can't locate any right now. If I'm getting this correct, this is like an option select, the are currently in "New Portfolio", and you want to support creating a new portfolio as an option? This could be alleviated by not having the active item also looking so much like a button. I feel like if "Add New portfolio" was maybe just blue text, and "New Portfolio" was just highlighted by a light grey, it would better convey the message.
|
# ? Jul 28, 2014 19:26 |
|
I think that I agree with you, and the selected items are really quite loud. This is Bootstrap's default though - each list item is class="list-item" and the active one is class="list-item active". The following is an adjustment along the lines of Lumpy's suggestion, and I think it improves things but I think I've still got a way to go. Portfolio 3 below is reacting to a :hover (again, bootstrap defaults).
|
# ? Jul 28, 2014 20:34 |
|
Newf posted:I think that I agree with you, and the selected items are really quite loud. This is Bootstrap's default though - each list item is class="list-item" and the active one is class="list-item active". The following is an adjustment along the lines of Lumpy's suggestion, and I think it improves things but I think I've still got a way to go. Add a btn-success to that "Add New" and it will be much less confusing. I think that's the class that makes things green in Bootstrap.
|
# ? Jul 28, 2014 20:49 |
|
I'm a little hesitant to do that because all of the 'Constructive' elements on the page are using the btn-primary (blue) class that the existing button is using. I added this glyphicon though, which helps to differentiate the whole mess. Good enough for now, I think. Thanks for the input.
|
# ? Jul 29, 2014 20:05 |
|
Is attempting to obscure email addresses from crawlers still a thing these days? I'm talking about stuff like displaying an email as "foo AT bar DOT com" in an attempt to confuse harvesting scripts.
|
# ? Jul 29, 2014 23:40 |
|
I'm interested if more experienced developers can weigh in on it - but: Everything I read says that you should obscure email addresses from crawlers, but also that basic text processing was part of what crawlers did so simply replacing the @ with 'at' doesn't do anything but inconvenience people because as soon as it became a way to confuse harvesting scripts, harvesting scripts were written to read it. When we put emails on our website I was told they had to have obfuscation but it was left to me how to do it, so they're currently being served up by javascript in rot13 and then unjumbled. I don't know how good that actually is (certainly better than AT DOT), but we didn't get the expected spike in raw spam numbers after putting emails up.
|
# ? Jul 29, 2014 23:59 |
|
I'm not sure if this is the best thread for this, but we use Sitefinity for our CMS and I've just now noticed some strange errors in my Sitefinity logs:code:
code:
|
# ? Jul 30, 2014 01:25 |
The Wizard of Poz posted:I'm not sure if this is the best thread for this, but we use Sitefinity for our CMS and I've just now noticed some strange errors in my Sitefinity logs: If you have a publicly facing server, you can expect these kinds of automated attacks every day. DNS determines what proxymm.com points to but you can override that in your hosts file and make it point to whatever you want. As for the 2nd one, that's more of them just saying hello to your server and leaving a little calling card. Well, more like waving the middle finger at you as they drive by, I guess.
|
|
# ? Jul 30, 2014 01:41 |
|
fletcher posted:If you have a publicly facing server, you can expect these kinds of automated attacks every day. DNS determines what proxymm.com points to but you can override that in your hosts file and make it point to whatever you want. Okay cool, that was more or less what I suspected. Good to know there's nothing really to worry about then.
|
# ? Jul 30, 2014 01:56 |
The Wizard of Poz posted:Okay cool, that was more or less what I suspected. Good to know there's nothing really to worry about then. I just checked my logwatch report for the first time in awhile, lo and behold... code:
|
|
# ? Jul 30, 2014 02:16 |
|
The Wizard of Poz posted:These look like some kind of attempted exploit, but I'm a bit confused. The first one is a request to the URL "proxymm.com" - how did my server end up receiving that? Though it's rarely used by actual clients, the HTTP standard allows for absolute URIs in requests. GET http://www.mysite.com/ is just as valid as the common GET /. Your server received that because the request was made to your server. Similarly, you can ask Google's servers for the Yahoo front page, and they'll see a request for yahoo.com in their logs. Abusing this was popular a few years back to get people to click spam/malware links from their logs. Molten Llama fucked around with this message at 07:53 on Jul 30, 2014 |
# ? Jul 30, 2014 07:49 |
|
I'm pretty much an amateur at web development, but over the summer we got a pretty large project at my work study position (I work for my school's web services department) for putting together a page to be displayed on a kiosk monitor. I've been getting by pretty well on my own, banging out what I can and googling what I don't know how to do, but I've hit a wall recently and was wondering if I could get some help. Each kiosk has policies delivered to it that we can then assign to variables if we wish. So, in order to determine the location of a kiosk, each kiosk will be assigned a policy with their location name. So, the one in the main lobby will be sent a location policy with the name Main.Lobby, or the ones positioned at the north/south entrances of the theater will receive a North.Theater/South.Theater policy, respectively. This part I've pretty much figured out how to do, but it leads into my actual problem. Each kiosk is meant to list the events currently happening on campus, as well as a directory listing of departments. When the user touches the location name of an event or department, it's meant to pull up a map on an iframe to direct them to the building where the office or event is at. What I want to do is, on the server, create separate folders for each starting location, then in each folder will be maps for each destination. So, in the /mainlobby/ folder will be images titled andershall.png, cafeteria.png, and so on. Then, in Javascript, I'd like to assign to a string variable the location of each map folder, which I feel like I've done correctly: code:
|
# ? Jul 30, 2014 16:14 |
|
Moldy Taxes posted:
First things first, get some semi-colons in there. Specifically after your variables and else if statement. Secondly, are you using a library like jquery? There are a bunch of ways to do what you are asking and the best answer depends on what you are using.
|
# ? Jul 30, 2014 20:03 |
|
Moldy Taxes posted:What I want to do is, on the server, create separate folders for each starting location, then in each folder will be maps for each destination. So, in the /mainlobby/ folder will be images titled andershall.png, cafeteria.png, and so on. Then, in Javascript, I'd like to assign to a string variable the location of each map folder, which I feel like I've done correctly: Cool kid bandwagon: Do it with JSON. See those three IF statements that look exactly the same? That's usually the start of a code smell. If your application grows bigger, you'll be duplicating that same code over and over and over to handle more destinations and start locations. Rather than the code reacting to specific parameters (the way your IF statements hinge on kiosk_name), the code could instead parse the request against some configuration, and produce a result. Also consider using jQuery for DOM interactions and lo-dash for extra cool JS tools. I'm going to write this as if you're using jQuery. code:
I've made the keys of the objects the name used to look them up. That way we can access them quickly by doing startLocations[ "Main.Lobby" ] for instance. I made up some keys for the destinations. I assume they're picked by a click on an imagemap or something. code:
The parent function, changeMap() checks the result returned by createRouteMap() to ensure it actually returned non-false. It does nothing if an error occurred. Consider the wonders of configuration; your codes does not need to change in order to add more destinations, you just add it to the config. The trade-off is it's more difficult to handle unique situations, for instance you can't have one destination easily do something the other destinations does not, because it all runs through the same code path. For future reference, as this is the kind of question that can get pretty complex, it would be good for you to throw the source up on jsFiddle for us if you run into further problems. Your question had so little code it was difficult to write an answer. v1nce fucked around with this message at 00:31 on Jul 31, 2014 |
# ? Jul 31, 2014 00:28 |
|
While this isn't strictly related to web design or development, I'm curious to hear what you guys have to say. I'm currently in a 'one man band' position where a fairly large amount of responsibility intersects with my role. I don't have any redundancy in terms of an assistant/team member, and if I were to be 'hit by a bus' tomorrow my workplace would be eviscerated for at least a little while. (This isn't bragging, it's just the reality of how things have turned out). I'm trying to determine some best practices/suitable tools for how to document my work, my processes, various useful items of information related to role responsibilities, etc. I want to start building some sort of central store of documentation in case of the aforementioned 'hit by a bus' scenario occurring. What do others do in this sorts of situations? Have you been in this situation before? Do you curate and maintain a wiki/giant Word doc on a USB drive/custom web application? I'm currently leaning towards a wiki because of discreet silos of information in the form of pages, versioning, easy linking - but I'm getting a bit spooked thinking about going too far down the path of something like MediaWiki due to the fact that it needs some sort of server with PHP, MySQL, etc. Apologies for the text blast but I need to get this out of my brain and into some sort of solution.
|
# ? Jul 31, 2014 02:31 |
|
For one project my company has a Confluence ( https://www.atlassian.com/software/confluence ) and we use JIRA to plan sprints so it all works pretty well together. Are your tasks documented at all? You might want to get them in some sort of service so you have written proof of just how much you're doing, then try to use that as leverage to at the least get an intern if you can't get someone you can manage.
|
# ? Jul 31, 2014 02:38 |
Confluence and JIRA are awesome, but they are quite large and complex. It might be overkill for your needs. For smaller projects I like to just use bitbucket issues & wiki
|
|
# ? Jul 31, 2014 03:05 |
|
The Dave posted:For one project my company has a Confluence ( https://www.atlassian.com/software/confluence ) and we use JIRA to plan sprints so it all works pretty well together. I had a look at Confluence, but I agree with fletcher that I think it's overkill. I have a little documentation but 99% of it is in my head, which is part of the motivation to start dumping it all into a system.
|
# ? Jul 31, 2014 05:04 |
|
Are any of those cool project management sites / software geared towards one-man operations? I'd love to consolidate my calendar, todos, documentation and maybe git repos into one place but I've never found something that felt quite right.
|
# ? Jul 31, 2014 10:19 |
|
fuf posted:Are any of those cool project management sites / software geared towards one-man operations? Would like this too. The ones I've found aimed at freelancers etc seem to be more focused on billing etc. I might just have to see how far I can get with Google Apps.
|
# ? Jul 31, 2014 10:47 |
fuf posted:Are any of those cool project management sites / software geared towards one-man operations? Bitbucket is great for this stuff. No support for a calendar though, just use Google Calendar for that.
|
|
# ? Jul 31, 2014 18:21 |
|
How do y'all do stuff like Chrome Dev Tools on mobile? Specifically, I'd like to do some simple request profiling in various network conditions.
|
# ? Jul 31, 2014 20:44 |
|
fuf posted:Are any of those cool project management sites / software geared towards one-man operations? Github works well.
|
# ? Jul 31, 2014 20:47 |
|
Kobayashi posted:How do y'all do stuff like Chrome Dev Tools on mobile? Specifically, I'd like to do some simple request profiling in various network conditions. You can use an Android Debugging Bridge to get at everything an Android phone does, us able as a chrome extension, connect with USB. For iOS you need a Mac and Safari, connect by USB and you'll get dev tools in Safari. In both cases you need to activate developer mode on the phone. Google for that. If you just want network traffic you can use a inspector proxy such as Charles Debugging Proxy or Fiddler, which will show you everything. They're also good to use as a DNS spoof as you may need the phone to point to proper URLs, for example if running oAuth, so you don't want to access the app via IP address. You really need a proxy to properly debug mobile in these cases, because you want to work off a dev instance rather than live staging or something.
|
# ? Aug 1, 2014 05:58 |
|
Maluco Marinero posted:You can use an Android Debugging Bridge to get at everything an Android phone does, us able as a chrome extension, connect with USB. Good info, thanks. The proxy is probably a bit overkill for my needs. A lot of what I want to do boils down to adding a little empirical weight to my subjective observations. For example, instead of simply telling a client, "hey, you're really hurting the user experience by using multiple redirects," I want to quantify the effects. I wish it wasn't so dorky to find an area with poor network reception and plop open my laptop, but if that's what it takes to make my case, that's what I'll do.
|
# ? Aug 1, 2014 06:09 |
|
Kobayashi posted:Good info, thanks. The proxy is probably a bit overkill for my needs. A lot of what I want to do boils down to adding a little empirical weight to my subjective observations. For example, instead of simply telling a client, "hey, you're really hurting the user experience by using multiple redirects," I want to quantify the effects. I wish it wasn't so dorky to find an area with poor network reception and plop open my laptop, but if that's what it takes to make my case, that's what I'll do. iOS has a "Network Link Conditioner" available on the device under "Settings", "Developer". There's also a prefpane with the same name for OS X, which will work in the simulator. Both let you simulate lovely connections (for various definitions of lovely: upload and download latency, upload and download packet loss, DNS latency). Add to that some tracing in your apps and you got data.
|
# ? Aug 1, 2014 06:19 |
|
Kobayashi posted:Good info, thanks. The proxy is probably a bit overkill for my needs. A lot of what I want to do boils down to adding a little empirical weight to my subjective observations. For example, instead of simply telling a client, "hey, you're really hurting the user experience by using multiple redirects," I want to quantify the effects. I wish it wasn't so dorky to find an area with poor network reception and plop open my laptop, but if that's what it takes to make my case, that's what I'll do. In addition to what pokeyman said, if you can get DD-WRT on a router, you can limit the connection speed by MAC address which is great for simulating a slow network on one device. Don't know if you can simulate latency, though.
|
# ? Aug 1, 2014 17:38 |
|
Also it looks like Chrome's Dev tools are getting even better mobile emulation, you'll be able to throttle network speeds like 3G. Its in Canary at the moment so won't be long. There's a post on it here: http://www.elijahmanor.com/enhanced-chrome-emulation-tools/
|
# ? Aug 1, 2014 18:41 |
|
Has anyone been unable to rename files in Sublime Text recently? I've got ST3 running right now, and when I try to right-click -> rename a file in the sidebar, it fails saying "Unable to rename". Searching for this on Google doesn't take me to any recent/useful answers. edit: vvv Never mind. For some bizarre reason, it was just that one folder. I opened a window elsewhere and it was fine. Pollyanna fucked around with this message at 22:27 on Aug 1, 2014 |
# ? Aug 1, 2014 22:19 |
Pollyanna posted:Has anyone been unable to rename files in Sublime Text recently? I've got ST3 running right now, and when I try to right-click -> rename a file in the sidebar, it fails saying "Unable to rename". Searching for this on Google doesn't take me to any recent/useful answers. Works fine for me on Stable Channel Build 3059 w/ Windows 7. Perhaps you don't have permission to rename that particular file?
|
|
# ? Aug 1, 2014 22:26 |
|
We have an internal tool that lets you go to a web interface on your device, pick a network profile (by bandwidth, latency, simulation of networks in certain regions, etc.) and then it fucks with your traffic appropriately. Can view network traces and so forth as well. https://us.pycon.org/2014/schedule/presentation/97/ I'm not sure if we're going to release it (I hope so) but if someone was looking to build something like it themselves I'm sure our engineers would be happy to answer questions and so forth.
|
# ? Aug 1, 2014 22:38 |
|
For anyone who's used Middleman - I'm trying to make a layout that uses HAML, instead of the usual ERb. However, I'm running into this issue: code:
This is the HAML article_layout: code:
code:
|
# ? Aug 3, 2014 07:31 |
|
Don't use HAML, if you can. It's temperamental, difficult to troubleshoot, and overly strict (and this is coming from someone who has a serious boner for web standards).
|
# ? Aug 3, 2014 16:46 |
|
Sure, but I'd like to familiarize myself with it so I'm using the same thing everyone else at work is. Plus, I don't wanna be stuck using ERb for some unknown reason
|
# ? Aug 3, 2014 19:14 |
|
|
# ? May 9, 2024 19:35 |
|
pipes! posted:Don't use HAML, if you can. It's temperamental, difficult to troubleshoot, and overly strict (and this is coming from someone who has a serious boner for web standards). HAML is great, where did you get this idea?
|
# ? Aug 3, 2014 20:17 |