|
Is there a way to see what IP address an ISP has cached in their DNS records for a specific domain? Long story short, I have a client who registered their domain with a crappy company who changed their namesevers without telling anyone. They've been changed back, but AT&T seems to be taking forever to update their cached records and the client is getting anxious. I'm wondering if there's some tool I can use to say, "look, here's the IP address AT&T has cached – it's wrong!" ... something other than pinging the domain on an AT&T connection. Any ideas? e: Never mind, I tethered to my phone and did a nslookup. kedo fucked around with this message at 22:55 on Jan 31, 2017 |
# ? Jan 31, 2017 22:32 |
|
|
# ? Jun 5, 2024 06:27 |
|
Data Graham posted:Use the "| safe" template tag. That worked great! Thank you!
|
# ? Jan 31, 2017 23:24 |
|
So what is more beneficial in all of your opinions? RAM or CPU? My box has half the ram of one of my Pi3Bs, but double the clock speed. The Pi is the reverse, but has easily expandable storage and doesn't cost me 5 bucks a month. Is it worth it to keep paying, or will the lowered clock speed heavily impact the user experience on my site(s)?
|
# ? Feb 1, 2017 03:59 |
|
Warbird posted:So what is more beneficial in all of your opinions? RAM or CPU? My box has half the ram of one of my Pi3Bs, but double the clock speed. The Pi is the reverse, but has easily expandable storage and doesn't cost me 5 bucks a month. Is it worth it to keep paying, or will the lowered clock speed heavily impact the user experience on my site(s)? What about bandwidth and network transfer rates? Also the geographic location may be a factor in connection latencies. With Digital Ocean I can have a server anywhere with a decently thick pipe. With even a very beefy computer, I'd be limited to 50 kilobytes per second of upload of my home connection. Then there are the bandwidth limit concerns... I just fork over the 5$ and sleep easy that the system won't keel over if it becomes popular for whatever reason. I can always just throw a few more cores at the problem.
|
# ? Feb 1, 2017 04:16 |
|
That's an excellent point I hadn't considered. That plus the clocking in the processor are likely worth the $5 imo.
|
# ? Feb 1, 2017 13:25 |
|
Warbird posted:So what is more beneficial in all of your opinions? RAM or CPU? My box has half the ram of one of my Pi3Bs, but double the clock speed. The Pi is the reverse, but has easily expandable storage and doesn't cost me 5 bucks a month. Is it worth it to keep paying, or will the lowered clock speed heavily impact the user experience on my site(s)? In addition to what No Gravitas said, you're probably paying more than $5 a month in electricity to run a computer. Just use Digital Ocean, it's cheap and easy. A few years ago I wouldn't have said that, but the service is actually really good now.
|
# ? Feb 1, 2017 14:52 |
|
We're talking about a Pi here so it'd likely be closer to $5 per year, but you're right. I'm already using DO and have been pretty happy with them so far. But enough about me being happy, back to banging my head against anything readily available! VS Code's Chrome Debugger is giving me fits. I think I had screwed up some IIS stuff, but that's been resolved now (I hope). Hopefully it's just a matter of me having my launch .json file messed up. code:
For reference, Working directory contains: VSCode folder, sounds folder with some .wavs, index.html, and a css page. I was hoping that the workspaceRoot stuff would be modular enough to not need modifying, but it seems not to be the case. EDIT code:
Warbird fucked around with this message at 17:13 on Feb 1, 2017 |
# ? Feb 1, 2017 16:55 |
|
Hunkered down yesterday and learned how to make Firefox extensions to could make good on an idea that turned up a year or so ago. What comes next after the Firefox MDN two tutorials? Because after spending a bunch of hours working on stuff, it seems like there are still some things getting in the way of completing this mini-project. Does anyone know what to Google or whatever in order to learn how to create panels and whatnot? Because the old Firefox SDK apparently had that stuff built into it, but now that we're supposed to just use the WebExtension stuff it's not obvious anymore how to extract a <div> from a remote webpage and import it into the current tab as a sort of pop-up panel.
|
# ? Feb 2, 2017 04:55 |
|
So I'm not sure if I should be posting here or in the PHP thread, but man, I really dislike the vagrant style of working. Like, nice concept, frustrating to work with. I'm using Laravel, with their Homestead VM, and I've spent more time fighting with the tools than I have coding! Node.js is janky, and adds 20,000 files to my project.. just so I can compile SASS. I want to use a decent framework, but man, the setup is frustrating. At this point, I just want to set up a non VM way of doing this. Is there a decent server/db/PHP 7 stack out there, or do I have to roll my own?
|
# ? Feb 4, 2017 17:30 |
|
I'm having a Javascript issue that is driving me crazy. I'm trying to hook up a form to a constructor function. It should grab the values of the input fields and then set them equal to the properties in the new Person object. The problem is that on submit, it's setting the properties equal to empty strings, and I can't figure out why, even though I know the live values are being update on change. Script code:
code:
teen phone cutie fucked around with this message at 20:14 on Feb 4, 2017 |
# ? Feb 4, 2017 18:15 |
|
TwystNeko posted:So I'm not sure if I should be posting here or in the PHP thread, but man, I really dislike the vagrant style of working. Like, nice concept, frustrating to work with. I'm using Laravel, with their Homestead VM, and I've spent more time fighting with the tools than I have coding! Node.js is janky, and adds 20,000 files to my project.. just so I can compile SASS. You should be installing things like node-sass and gulp as globals, not directly into your project. Ex: npm install -g node-sass Also directory structure is important. pre:root- - app (your working source, css, html, js etc.) - css - css, scss files here - js - javascript or whatever - lib (have bower or whatever you're using copy the actual libraries you'll use in your project here) - dist (this is your compiled app that end users will actually see, minfied, compiled code lives here) - node_modules (gulp, node-sass etc, etc, live here, but it's not actually part of your project, npm automatically creates this) - whatever other directories you need - bower.json - package.json - other config files here Make sure you run your npm, bower, etc. commands from the root folder, not inside your app/dist/etc. folder. ModeSix fucked around with this message at 19:22 on Feb 4, 2017 |
# ? Feb 4, 2017 19:14 |
|
TwystNeko posted:I want to use a decent framework, but man, the setup is frustrating. At this point, I just want to set up a non VM way of doing this. Is there a decent server/db/PHP 7 stack out there, or do I have to roll my own? Most other frameworks do not require extensive tooling. You might want to take a look at the "no framework" tutorial, which demonstrates how to tie together small, independent libraries (and not-small but independent components from other frameworks) in order to do everything that a normal framework does without having to buy completely in to that framework. There are cases for extensive tooling, and there are things like Doctrine that are genuinely improved by tooling (db setup and migration). The current trend of sticking everything inside a container inside a VM by default greatly complicates things that ought not to be complicated yet. Solve the deployment problem when your deployment process becomes something more annoying than a directory rename and running your DB migration. Also, there are PHP implementations of SASS, but like the previous post mentions, you probably don't need or want to integrate this directly with your project.
|
# ? Feb 4, 2017 19:34 |
|
All i really want out of a framework is templating (Blade can be standalone), Eloquent, and to use a MVC system. Laravel seemed like a good fit, but I'm open to other suggestions. I'll look at that no-framework tutorial. It just feels really silly and clunky to do the whole VM thing, especially since it's not very portable.
|
# ? Feb 4, 2017 20:17 |
|
Grump posted:I'm having a Javascript issue that is driving me crazy. I'm trying to hook up a form to a constructor function. It should grab the values of the input fields and then set them equal to the properties in the new Person object. I ran your code on jsfiddle and it works fine?
|
# ? Feb 4, 2017 20:53 |
|
Yeah. I just realized that it does work, but since I'm using React, I'm running into issues with the script running correctly. When I include the script tag into index.html, it gives me an error "Uncaught SyntaxError: Unexpected token <" even though there is no stray brackets. I guess my new question is: how do you make a custom javascript file and use it in the index file? It doesn't seem very straightforward. I haven't even written any React code yet.
|
# ? Feb 4, 2017 21:13 |
|
Grump posted:Yeah. I just realized that it does work, but since I'm using React, I'm running into issues with the script running correctly. If you were using React, you would never write any code like that, so pick one way of doing DOM interaction; either the jquey way you are doing in your example, or React, but don't mix them / use both.
|
# ? Feb 5, 2017 00:07 |
|
Are there any polyfills for webworkers + asmjs, or do I have to use Flash or something as a fallback? I'm building an intentionally slow proof-of-work system that gets executed before any XmlHttpRequests and appends a request header with the token.
|
# ? Feb 5, 2017 00:21 |
|
Not sure if this is the best place, but there doesn't seem to be a Chrome Dev Thread(?). I wrote a URL Shortener (PHP) that uses recaptcha & sessions to prevent people spamming/automating addresses. I've now written a Chrome extension (javascript posting to PHP on the server) so that you can one-click a button to shorten your current URL. There's no captcha on the Chrome extension as then it wouldn't be one click, so I'm stuck on coming up with a way of confirming the post request is coming from the Chrome extension and not a third-party. Initially I thought about passing a header or password, but given how easily you can decompile Chrome extensions that seems like it wouldn't be very effective. I'm sure there's an obvious answer, but other than having user accounts I'm just drawing a blank. Any thoughts?
|
# ? Feb 5, 2017 00:32 |
|
It is not possible. Rate limit.
|
# ? Feb 5, 2017 00:59 |
|
I figured it out. I was originally importing the script into the component, as it should be, but I had onClick functions that were supposed to be hiding/showing a form, and that part should have been built into the component, rather than outside of it. I'm dumb. The thing has been working all day, and I didn't even realize it.
|
# ? Feb 5, 2017 01:44 |
|
Biowarfare posted:It is not possible. I was afraid that would be the case Thanks though!
|
# ? Feb 6, 2017 02:00 |
|
So apparently I can just download this node.js thing and have it run a webserver to view and mess around with my files with relatively little trouble, and all from within VSCode. From what I read, it's fairly popular. Are there any other things I might be missing? I'm doing my best to not think of all the trouble that setting up the Chrome Debugger was and the assorted HTML viewer extensions I messed with. I'm not going to cry. I'm totally going to cry.
|
# ? Feb 8, 2017 15:37 |
|
Warbird posted:So apparently I can just download this node.js thing and have it run a webserver to view and mess around with my files with relatively little trouble, and all from within VSCode. From what I read, it's fairly popular. Are there any other things I might be missing? I'm doing my best to not think of all the trouble that setting up the Chrome Debugger was and the assorted HTML viewer extensions I messed with. I'm not going to cry. I'm totally going to cry. Personally I used this website's tutorial when I was first starting out with the Node.js stuff and it worked out well for me. After that, I did the O'Reilly book Web Development with Node & Express. I liked the book a lot and thought it was a big help to get me to feel like I knew what I was doing, but I got caught off-guard by the off-topic stuff in like Chapters 4 and 5, iirc. I'm still terribad and not good enough to look at other peoples' stuff and learn from their examples, though. For some reason, there's a huge gap between what you learn in books and online tutorials... and what you need to be able to actually follow along with the 'look how smart i am' stuff everyone puts out there.
|
# ? Feb 8, 2017 15:49 |
|
Warbird posted:I'm doing my best to not think of all the trouble that setting up the Chrome Debugger was and the assorted HTML viewer extensions I messed with. Sorry but, what setup? What was it missing in terms of HTML viewing that you felt you needed extensions?
|
# ? Feb 8, 2017 16:14 |
|
The Chrome debugger? Getting launch.json working for the most part. Then once you do get it cooperating, it doesn't work on another computer with the same settings. It works acceptably on my work machine, but on my personal laptop or desktop relative links break all to hell for no discernable reason; all this is the same settings and site. The handful of html viewer addons were fine, no real complaints there, but they didn't seem to like navigating between pages. Of course you can just launch the saved .html file of your choosing and view it in your browser, but I was wanting something that live updates. I don't generally know what the hell I'm doing, so seeing real time reflections of how all the bits and pieces work is pretty important to me. I do have a copy of dreamweaver through work, but I'm aiming for something more lightweight. VSCode seemed about as good as anything else. I've bookmarked it for glancing at later, thanks! I'll check out the book as well. I've got access to lynda, so I'm going to see if anything on there is both comprehensive and uses small words. Warbird fucked around with this message at 19:36 on Feb 8, 2017 |
# ? Feb 8, 2017 19:33 |
|
Warbird posted:The Chrome debugger? Getting launch.json working for the most part. Then once you do get it cooperating, it doesn't work on another computer with the same settings. It works acceptably on my work machine, but on my personal laptop or desktop relative links break all to hell for no discernable reason; all this is the same settings and site. The handful of html viewer addons were fine, no real complaints there, but they didn't seem to like navigating between pages. Oh, you mean to integrate it into VSCode so you can do your debugging there instead of the Chrome dev tools. I guess setting breakpoints in the editor would be nice, but I like to keep that stuff separated so I can work in one without affecting the state of the other.
|
# ? Feb 8, 2017 19:47 |
|
Oh yeah, no sorry. I'm spoiled by VS for .net stuff, so I'm partial to keeping it all in the family per se. This is one of my first forrays out into non MS backed development, so the sheer amount of choices (for better or worse) is staggering. I'm used to having what I'm trying to do being fairly light on the config end, so culture shock. Same thing happened when I picked up a Nexus tablet and I had to do some really dumb poo poo to get it to show up on my computer. I'll get used to it after a bit I'm sure.
|
# ? Feb 8, 2017 20:03 |
|
What's a cost efficient solution for webhosting? I'm currently using heroku, but the free tier isn't cutting it anymore, and I've never used anything else, I don't mind shelling out some money for a worthwhile service.
|
# ? Feb 9, 2017 00:05 |
|
Depends on where your expertise lies. I like VPS services like Linode because I don't have to share resources like shared hosting, yet the cost is fairly fixed and I can fully control the box, but that means I have to lean on all these deployment scripts I've written. Heroku's probably the best turn key solution with best practices out there because of the work they've put into their process and the management UI.
|
# ? Feb 9, 2017 00:16 |
|
Digital Ocean's been good to me, but I don't know if it would be cost effective for what you're doing depending on your requirements and willingness to put up with sysadmin bullshit. You could always toss it on GitHub if necessary.
|
# ? Feb 9, 2017 01:11 |
|
Munkeymon posted:Oh, you mean to integrate it into VSCode so you can do your debugging there instead of the Chrome dev tools. I guess setting breakpoints in the editor would be nice, but I like to keep that stuff separated so I can work in one without affecting the state of the other. You can do this. Download VS Code Insider and install the debugger for Chrome plugin. Coincidentally I attended a Microsoft talk on this just today.
|
# ? Feb 15, 2017 11:35 |
|
That's what I've been doing since day 1 m'dude. It's practically preinstalled on the program; I'm fairly certain the page that pops up when you download/install recommends getting it. It's the launch configs (and possibly some weird IIS nonsense I broke on my machine) that I've never got working in a easily usable manner. Node.js via code:
|
# ? Feb 15, 2017 14:36 |
|
TheCog posted:What's a cost efficient solution for webhosting? Heroku is good and takes care of a lot of the boring and hard stuff when it comes to hosting stuff. You can get stuff for cheaper but you have to do a lot more stuff yourself, like configuring nginx or any of a hundred other t higns.
|
# ? Feb 15, 2017 22:30 |
|
I know this is the web thread, but I can't find an active general design discussion. Has anyone here used Inkscape? I've got a large format project I've got turn around quick (8 foot by 10 foot) and Photoshop isn't cutting it. Is it any good? Is the interface as awful as Gimp? EDIT-Holy god 3 minutes from launch until a window shows up. Something tells me Inkscape might not be for me Scaramouche fucked around with this message at 00:20 on Feb 17, 2017 |
# ? Feb 17, 2017 00:15 |
|
Scaramouche posted:I know this is the web thread, but I can't find an active general design discussion. Has anyone here used Inkscape? I've got a large format project I've got turn around quick (8 foot by 10 foot) and Photoshop isn't cutting it. Is it any good? Is the interface as awful as Gimp? What's wrong with Photoshop... is the size too big? And do you have to use Photoshop or could you use Illustrator or InDesign instead? If you're printing something that huge you'll likely be working with a really low DPI, so Photoshop should be able to handle it.
|
# ? Feb 17, 2017 00:20 |
|
Yeah, it's just getting out of hand with Photoshop. I've pared it down to bare essentials (Image + Text + Gradient) and it takes like a minute to save, crashes when exporting, font changes take 10 seconds to show up, etc. It doesn't help I'm on a crap AMD box that's roughly equivalent to an 2015 I3 but at least it has 16gb RAM. DPI is 300 so the photoshop file is around 3gb right now, and that's without any of the cool stuff I'd like to do. Illustrator is a no go because I don't have it and I'm not going to pirate it onto a client's machine.
|
# ? Feb 17, 2017 00:50 |
|
Scaramouche posted:Yeah, it's just getting out of hand with Photoshop. I've pared it down to bare essentials (Image + Text + Gradient) and it takes like a minute to save, crashes when exporting, font changes take 10 seconds to show up, etc. It doesn't help I'm on a crap AMD box that's roughly equivalent to an 2015 I3 but at least it has 16gb RAM. DPI is 300 so the photoshop file is around 3gb right now, and that's without any of the cool stuff I'd like to do. Illustrator is a no go because I don't have it and I'm not going to pirate it onto a client's machine. Grab the demo of Affinity Designer and try that.
|
# ? Feb 17, 2017 04:35 |
|
Scaramouche posted:Yeah, it's just getting out of hand with Photoshop. I've pared it down to bare essentials (Image + Text + Gradient) and it takes like a minute to save, crashes when exporting, font changes take 10 seconds to show up, etc. It doesn't help I'm on a crap AMD box that's roughly equivalent to an 2015 I3 but at least it has 16gb RAM. DPI is 300 so the photoshop file is around 3gb right now, and that's without any of the cool stuff I'd like to do. Illustrator is a no go because I don't have it and I'm not going to pirate it onto a client's machine. Talk to your printer. I really doubt you need to be working at such a high DPI if you're going to print it at 8x10 feet. Most things that are that big are usually printed at much, much lower DPIs (like 100 or less). Ask your printer what DPI you should be shooting for and if there's any danger to working at scale.
|
# ? Feb 17, 2017 15:18 |
|
The printer said 150, but 300 is better. It's a large fabric display for a trade show/outdoor. We did a similar one last year, but it was only text + logo so I was able to slap it together without much problem. It's some kind of treated glossy fabric, and actually it repros really really well, so it being at least 150 "real" dpi wouldn't surprise me. This time we're doing 4 banners and including product images/call to action so they're a bit more complex. That said, Inkscape did the job and was kind of impressive. Still takes over a minute to startup from launch, but I was able to pull together a version in Inkscape in less than an hour from scratch, what took me half a day to make in Photoshop, all without waiting for tedious redraws/reloads. The resulting SVG file? 934kb. The EPS for printer-ready? 30mb zipped. Most importantly is just that it was fast to use compared to that multi-GB Photoshop file, and it actually looks a bit better too because I'm vectoring stuff I'd normally fudge with bitmaps. So if anyone is in my position, check out Inkscape. The interface is a total re-learn, even if you're familiar with Photoshop, but it's not the impractical horror that is GIMP.
|
# ? Feb 17, 2017 19:09 |
|
|
# ? Jun 5, 2024 06:27 |
|
UX question for you folks. I'm not aware of a best practice in this situation, so I'm curious if any of you have encountered similar issues in the past and how you've approached them. Say you have 100 pages of content in English on a site. 50 of those pages have been translated into Spanish. English is considered the default language. When a user selects a language, the default behavior for the site is to only show content in the selected language. However that means 50 pages of content are completely invisible to Spanish users unless they know to change their language to look for them. My question is this: Do you think it makes sense to display the English pages in Spanish navigation (maybe with a "(Solo Inglés)" tag attached) so that Spanish speaking users can still access that content if they also speak English? My gut reaction is no and that if the pages need to be visible to Spanish speaking users they should be translated into Spanish, but I'm dealing with a client who has budget concerns and doesn't want to translate all of their content since some of it will only apply to a minuscule percentage of Spanish speakers. Thoughts?
|
# ? Feb 21, 2017 22:47 |