|
The Merkinman posted:but that's a different browser I laughed
|
# ? Jun 10, 2016 15:58 |
|
|
# ? Jun 5, 2024 08:03 |
|
Sedro posted:What state, and how is it not atomic? The PATCH either happens or doesn't; there is no half-PATCHed state. But shouldn't a 202 also return something in the body about the status of the resource (or even a url to check the status as it's being written)? The postback when the write is done seems more complicated than it should be.
|
# ? Jun 10, 2016 16:18 |
|
Pollyanna posted:I guess the question I have is how I handle the conditional Tag and AssetTag creation prior to the Asset creation with changesets and the way that Ecto does persistence. It seems to me that you have to do it all at the same time, and you can't really do persistence sequentially. Meaning, I can't do two creates in a single action. Or do I not understand how Ecto works? Ah, I see. I still think you should be able to do this in a very similar manner to ActiveRecord, so porting it back shouldn't be too hard. It's been a while since I tested something similar to what you're trying, so sorry if a bit light on details, but you'll want to write a function, as you had, but the first pipe will be a preload of the tags, which Ecto provides a function for. Once you've done that I *think* you can just treat them as any other column, and you use the same changeset manipulation you'd do otherwise. Note Ecto itself doesn't do persistence: it's not an ORM, it's more of a query language, so yeah, it is a bit wierd at first. Away from computer tonight, but tomorrow I'll try and dig out the categories test I did with Phoenix, which is basically the same as what you're trying to do. Phoenix is light years ahead of almost anything else in terms of the simplicity of implementing channels (and automatically drops back to pubsub with zero extra work, so that sorts IE issues), so I'd definitely stick with that if that's key to what you're needing
|
# ? Jun 10, 2016 18:01 |
|
I was looking for something in site:mysite.com and a bunch of PDF files showed up in the results. Underneath each one there's a Googley red message: "This page is not mobile friendly, you rancid piece of poo poo!" So I click it, and it goes to: https://www.google.com/webmasters/tools/mobile-friendly/?url=mysite.com/apdf.pdf And sure enough, unfriendliness confirmed. But... it's a freaking PDF? Are they not allowed anymore? Is Google expecting an HTML5/GoogleDocs version now? Have you guys seen this, and how do you get around it? Probably around 1/3 of this site is ancient PDF part diagrams for obscure mechanical equipment.
|
# ? Jun 10, 2016 19:47 |
|
Scaramouche posted:I was looking for something in site:mysite.com and a bunch of PDF files showed up in the results. Underneath each one there's a Googley red message: Why is google indexing those PDF's in the first place?
|
# ? Jun 10, 2016 20:08 |
|
Speaking of PDFs, I have what I hope is an easy question. I've got a website that's supposed to be mobile friendly, and it's supposed to provide the option to download a pdf. I tried window.open("pdfUri"); but this crashes the android browser. I also tried window.open(encodeURI(pdfUri)); and window.open(pdfUri, "_blank"); And then I tried to use a tag instead, <a download="test" href="pdfUri" target="_blank"> </a>. Nothing seems to be working for me. It seems like it should be such a common issue, but I just couldn't figure out how to google for it properly. Anyone have any advice? I'm using ASP.NET MVC if that's relevant. I assume it isn't, though.
|
# ? Jun 10, 2016 21:11 |
|
<a href="/file.pdf" download> <a href="/file.pdf" download="customFileName.pdf"> No new target should be necessary; when you say android browser i hope you mean mobile chrome?
|
# ? Jun 10, 2016 21:13 |
|
Biowarfare posted:<a href="/file.pdf" download> No, I mean mobile default. AOSP I think it's called. It's a requirement. This is for work, I don't have a choice. I probably should have mentioned the work thing earlier in case someone has an objection to doing my work for me. Anyway, I tried these options too. I would think the actual link was broken, but it works on desktop browsers. I suppose I can try it on Chrome for Android, if it works there, I'll know a bit more about the issue.
|
# ? Jun 10, 2016 22:08 |
|
I'm so sorry that you have to support the lovely webview that is AOSP. My condolences.
|
# ? Jun 10, 2016 22:39 |
|
Zero The Hero posted:No, I mean mobile default. AOSP I think it's called. Yeah my guess would be if Chrome/Dolphin/whatever works, then it's not a URL path/mimetype/linked app problem .... probably...
|
# ? Jun 10, 2016 23:52 |
|
Welp. Just graduated and looking for a development job and realizing I have nowhere near as many skills as I should.
|
# ? Jun 14, 2016 04:56 |
|
People tend to get easily intimidated the moment they step outside of college. You are probably not nearly as under qualified as you think you are. No one is looking for a new grad to be some kind of well-rounded wunderkind. As long as you learn quickly and know the basics you're fine.
|
# ? Jun 14, 2016 06:37 |
|
Grump posted:Welp. Just graduated and looking for a development job and realizing I have nowhere near as many skills as I should. Just saw you post in the WP thread: you'll be fine, just start doing some work! Even if you don't have a job and aren't getting paid, start making websites for yourself. In this industry experience is king. Once you've done a few projects you'll know which tools are great and which tools suck and you'll have learned three or four browser quirks that made one of your sites look idiotic until you figured out how to avoid them. Knowing a few languages or having a good eye for visual aesthetics is only a very small part of what makes a good web designer or developer – to a large degree knowing the tools and knowing when to use them is what separates a novice from a professional. If you've learned how to code, all you need to succeed is more time coding. Look for some entry level positions or even a paid internship, I'll bet you can find something. kedo fucked around with this message at 14:40 on Jun 14, 2016 |
# ? Jun 14, 2016 14:37 |
|
Is there a thread for email design or should I post here? I've been tasked with creating our company newsletter and this poo poo is horrific. Is Zurb Foundation worth using?
|
# ? Jun 14, 2016 18:51 |
|
Anony Mouse posted:Is there a thread for email design or should I post here? I've been tasked with creating our company newsletter and this poo poo is horrific. Is Zurb Foundation worth using? Yes, or an email boilerplate provided by whoever your vendor happens to be. MailChimp has some good ones. Writing your own HTML email from scratch is A) dumb, and B) incredibly tedious and painful.
|
# ? Jun 14, 2016 19:10 |
|
I never have and never will (hopefully) be involved in crafting the design of mass emails, but every time this gets brought up I wonder about something...are non-HTML-capable email clients just so much in the minority anymore that people just ignore that they exist?
|
# ? Jun 14, 2016 20:31 |
|
Thermopyle posted:I never have and never will (hopefully) be involved in crafting the design of mass emails, but every time this gets brought up I wonder about something...are non-HTML-capable email clients just so much in the minority anymore that people just ignore that they exist? If anything, I think with wearables they're getting more common.
|
# ? Jun 14, 2016 20:55 |
|
PT6A posted:If anything, I think with wearables they're getting more common.
|
# ? Jun 14, 2016 20:59 |
|
Thermopyle posted:I never have and never will (hopefully) be involved in crafting the design of mass emails, but every time this gets brought up I wonder about something...are non-HTML-capable email clients just so much in the minority anymore that people just ignore that they exist? It's that Marketing Types™ refuse to believe they exist. They also believe people will spend hours appreciating the rich content of their lovingly crafted message.
|
# ? Jun 14, 2016 21:41 |
|
Lumpy posted:It's that Marketing Types™ refuse to believe they exist. They also believe people will spend hours appreciating the rich content of their lovingly crafted message. If I'm being honest, I do like to see a nicely-crafted e-mail as opposed to text-only if I'm being marketed to. On the other hand, no one needs more than a basic MailChimp template* to make their e-mail look presentable anyway, so it's not something anyone needs to be spending a huge amount of time on. * I would also argue there's no particularly good reason to avoid a commercial e-mail provider like MailChimp if you're just doing marketing, because they've gone through all the hassle of making sure poo poo works, and even the most expensive packages are nothing compared to developer time.
|
# ? Jun 15, 2016 01:56 |
|
You can make an email that looks good easy enough. You just have to design to the limitations. The bullshit comes out when designers want to force HTML email to be something it's not. Creative stuff comes out of it from agencies with massive spends, but for regular people and clients, just a standard single col/two col layout is just fine and easy enough to implement with a framework or Mailchimp.
|
# ? Jun 15, 2016 02:09 |
|
Anony Mouse posted:Is there a thread for email design or should I post here? I've been tasked with creating our company newsletter and this poo poo is horrific. Is Zurb Foundation worth using? It's pretty good, but the docs aren't the best. The Inky markup language is pretty helpful and I like the idea of letting someone else figure out how to handle all the ways email sucks.
|
# ? Jun 15, 2016 04:04 |
|
I've (unfortunately) had a bit of experience with HTML emails where the aim is maximum compatibility across email clients. The basic rule is to just pretend like it's 1998 and build all layouts with nested tables while sticking to simple (in-line) styling.
|
# ? Jun 15, 2016 07:56 |
|
When asked to create emails, I have always found that (despite 20+ years writing HTML) claiming 'I know nothing about HTML emails, someone else should do it' works best. NB: This technique also works when some numpty uses the word 'Sharepoint' in my presence. Sergeant Rock fucked around with this message at 10:40 on Jun 15, 2016 |
# ? Jun 15, 2016 10:31 |
Grump posted:Welp. Just graduated and looking for a development job and realizing I have nowhere near as many skills as I should. Think of it like when you learn to drive. You take a bunch of lessons and pass your test, but actually properly learning to drive takes the next couple of years out on the roads. A decent employer understands this and will support you; just be positive and work hard the rest will sort itself out.
|
|
# ? Jun 15, 2016 12:24 |
|
o.m. 94 posted:Think of it like when you learn to drive. You take a bunch of lessons and pass your test, but actually properly learning to drive takes the next couple of years out on the roads. A decent employer understands this and will support you; just be positive and work hard the rest will sort itself out. Seconding this, especially if you also demonstrate a willingness to learn. The nature of this business changes all the time anyway so by the time you've learned one platform or framework a new one has popped up and taken over.
|
# ? Jun 15, 2016 14:11 |
|
Xik posted:I've (unfortunately) had a bit of experience with HTML emails where the aim is maximum compatibility across email clients. The basic rule is to just pretend like it's 1998 and build all layouts with nested tables while sticking to simple (in-line) styling. When I had to pitch in and help do some of that stuff a few years ago, there was no dynamic (per recipient) content and a couple buttons / links that went to the same URL. So, I made everything an image, put all the copy in the ALT tag and wrapped the whole thing in a single A tag. The client was amazed at how fast and good that particular campaign turned out....
|
# ? Jun 15, 2016 14:16 |
|
Lumpy posted:When I had to pitch in and help do some of that stuff a few years ago, there was no dynamic (per recipient) content and a couple buttons / links that went to the same URL. So, I made everything an image, put all the copy in the ALT tag and wrapped the whole thing in a single A tag. The client was amazed at how fast and good that particular campaign turned out.... And promptly thanked the project manager for sorting the whole thing out?
|
# ? Jun 15, 2016 14:32 |
|
The next time I have an email project I want to try this out: https://mjml.io/
|
# ? Jun 15, 2016 18:17 |
|
I did some emails in Desk.com/Salesforce using their Liquid templates. Didn't.... suck. Have no idea how they failed over to text only but they worked pretty well.
|
# ? Jun 15, 2016 20:01 |
|
Is there a native JS / jquery way to detect when a user has scrolled past a certain element on the page, or do I need to use a scrollspy plugin? e: nm this is what I need: https://jsfiddle.net/mekwall/up4nu/ fuf fucked around with this message at 09:33 on Jun 16, 2016 |
# ? Jun 16, 2016 09:30 |
|
Scaramouche posted:Yeah my guess would be if Chrome/Dolphin/whatever works, then it's not a URL path/mimetype/linked app problem .... probably... I would still suspect mimetype issues to be honest. Chrome likes to guess it from the extension.
|
# ? Jun 16, 2016 13:38 |
|
I've got a kind of weird user auth problem to solve. Users of my application want to sign on using their internal Active Directory based company ID number, which has their most up-to-date employee and account information. But this ID number is not a stable, unique identifier, because the number can change if the employee is promoted from contractor to full-time, therefore no longer representing that specific user. Also, these numbers can be reused, which means that the number can also end up pointing to a totally different person altogether. I want my users to only have to remember the same username and password they use for everything else, but I have no idea how to track and coordinate changes in these "unique" identifiers and update the database accordingly. The only solution I can think of is to require the user to supply a username specific to this application, but that defeats the purpose of single sign on. What options do I have in approaching this problem?
|
# ? Jun 16, 2016 14:58 |
|
Pollyanna posted:I've got a kind of weird user auth problem to solve. Users of my application want to sign on using their internal Active Directory based company ID number, which has their most up-to-date employee and account information. But this ID number is not a stable, unique identifier, because the number can change if the employee is promoted from contractor to full-time, therefore no longer representing that specific user. Also, these numbers can be reused, which means that the number can also end up pointing to a totally different person altogether. That really sounds like a problem for the AD admin. You should just pass whatever credentials they give and get a token back in response.
|
# ? Jun 16, 2016 16:02 |
|
Ahz posted:That really sounds like a problem for the AD admin. You should just pass whatever credentials they give and get a token back in response. What happens when I try to associate a resource with a user, then? If I add a "user_id -> number" field on that resource, I will lose the association and have missing user data if/when the AD number changes.
|
# ? Jun 16, 2016 16:30 |
|
Pollyanna posted:What happens when I try to associate a resource with a user, then? If I add a "user_id -> number" field on that resource, I will lose the association and have missing user data if/when the AD number changes. Authentication and identification are two separate things. You authenticate based on parameters that AD admin lets you via whatever LDAP query you use. They should pass back an object of related data about the user including a unique identifier. The unique identifier is probably something the users have no idea about but you can bet AD has one unless you're doing something crazy with AD accounts when user ids change. It might be an ugly GUID, but it will be unique.
|
# ? Jun 16, 2016 16:32 |
|
What's the general attitude toward JavaServer Faces, these days? I don't see much in the way of chatter about it, which would either suggest that it's either A) not doing anything particularly exciting; or, B) is not regarded very highly. Just from the projects I've worked on with it over the last couple of months, it seems moderately sufficient, at least, even though we appear to be working off a version at least six years old.
|
# ? Jun 16, 2016 18:01 |
Cugel the Clever posted:What's the general attitude toward JavaServer Faces, these days? I don't see much in the way of chatter about it, which would either suggest that it's either A) not doing anything particularly exciting; or, B) is not regarded very highly. Just from the projects I've worked on with it over the last couple of months, it seems moderately sufficient, at least, even though we appear to be working off a version at least six years old. I'm building a new enterprise app in JSF. I didn't want to build it on whatever the soup of the day was (angular, react, etc) because this is something that needs to be around for 20+ years. So I went with the old, mature, and boring JSF. I actually like it quite a bit. I mean it's not the greatest, but if you're a Java shop it seems like an easy fit. I'm still happy with the decision.
|
|
# ? Jun 17, 2016 00:58 |
|
I have a [complicated problem], how do I begin? Post for help and list the following: Your Skill Level----Rookie Any necessary project requirements ( languages / frameworks ) Bootstrap Using Slider Revolution jQuery 5.0 in bootstrap, how/can I curve text? Tried everything I found from googling, but nothing works, the radius of the text always stays the same. I just wanted a slight upwards arch in the text on one layer of the the slider.
|
# ? Jun 18, 2016 21:48 |
|
|
# ? Jun 5, 2024 08:03 |
|
you can probably do some kind of hilarious transform-origin and transform: rotate() on each successive character but i feel like that's a terrible idea
|
# ? Jun 18, 2016 22:24 |