|
That's good enough for now, thanks man.
|
# ? Mar 16, 2017 20:25 |
|
|
# ? Jun 3, 2024 22:47 |
|
fuf posted:Does anyone know a font that looks kinda like this? (or know how I can find one?) https://www.fontsquirrel.com/matcherator?matcherator_img=70ncy9s61vtss9qf0k6rlwy02605y7zv#scroll_to_matches It's "Earthman BB Regular"
|
# ? Mar 16, 2017 20:28 |
|
BJPaskoff posted:They want the VIN and the options as well. I don't know the calculations it's doing in the back-end to figure out the prices it spits out. Just your/anyone's estimation, how much would something like this cost to program? If I can't do it, I might have to tell them to hire someone. It's super easy to program, just a collection form pulling from a datasource. The problem is going to be getting that data. I had a similar thing with a client (tire fitment data per vehicle/model) and access to an up to date, accurate, industry-specific datasource cost something like $300/mo.
|
# ? Mar 16, 2017 20:30 |
Holy poo poo that's a site I'm bookmarking.
|
|
# ? Mar 16, 2017 20:30 |
|
BJPaskoff posted:They want the VIN and the options as well. I don't know the calculations it's doing in the back-end to figure out the prices it spits out. Just your/anyone's estimation, how much would something like this cost to program? If I can't do it, I might have to tell them to hire someone. From what I remember, Chromes ADS service is a monthly fee plus 1-10 cents per decode. You could probably call them for specific pricing.
|
# ? Mar 16, 2017 20:35 |
|
Tangentially, is anyone aware of a service that would let me lookup nutrition data from UPC?
|
# ? Mar 16, 2017 20:36 |
|
So I'm still having issues with the HTML5 <video> tag and CDN-hosted 1080p video. I'm suspecting its just that the provider we went with (Vimeo) not being up to snuff, but haven't done that much with video before so may be blaming the easy target. While I'm waiting on Vimeo support to get back to me, I'm curious if anyone here might have some insight. When the video is accessed at full resolution at Vimeo.com, the video we're testing with loads completely in ~30 seconds. When either loaded on our site with the video tag or just accessed directly via the URL they provide, it takes over two minutes, staggering in far slower than it can play. No difference between Chrome and FF. Are there tricks to speeding up the loading or is Vimeo just throttling the content delivery?
|
# ? Mar 16, 2017 22:45 |
|
You really want DASH and not just vanilla video support, DASH enables automagic hopping between different quality streams.
|
# ? Mar 17, 2017 00:49 |
|
Lumpy posted:https://www.fontsquirrel.com/matcherator?matcherator_img=70ncy9s61vtss9qf0k6rlwy02605y7zv#scroll_to_matches Close, but not exactly right. Look at the S, M and the E, for example. 'Generica Condensed Light' looks to be a closer, if not exact, match: https://www.myfonts.com/WhatTheFont...71e70&x=93&y=45
|
# ? Mar 17, 2017 00:51 |
|
Lumpy posted:https://www.fontsquirrel.com/matcherator?matcherator_img=70ncy9s61vtss9qf0k6rlwy02605y7zv#scroll_to_matches GigaFuzz posted:Close, but not exactly right. Look at the S, M and the E, for example. 'Generica Condensed Light' looks to be a closer, if not exact, match: Thanks!
|
# ? Mar 17, 2017 11:25 |
|
GigaFuzz posted:Close, but not exactly right. Look at the S, M and the E, for example. 'Generica Condensed Light' looks to be a closer, if not exact, match: Hey, don't blame me, I just type what the font squirrel tells me to!
|
# ? Mar 17, 2017 13:38 |
|
Is there a way to unpack multiple return values in a more direct way than this?JavaScript code:
JavaScript code:
|
# ? Mar 18, 2017 13:08 |
|
Is using/transpiling ES6 an option for you? If it is, you can use destructuring: JavaScript code:
|
# ? Mar 18, 2017 13:21 |
|
Use destructuring. Not on an IDE so my syntax may be off but roughly: var lines, sims, duties, meetings; [lines, sims, duties, meetings] = parseTodaysSchedule();
|
# ? Mar 18, 2017 13:22 |
|
Thanks dudes.
|
# ? Mar 18, 2017 13:25 |
|
Dominoes posted:Thanks dudes. More generally, if you're already transpiling there's a lot of good ES6 stuff you probably want to use. https://github.com/lukehoban/es6features also, in case you're not aware there's a javascript-specfic thread: https://forums.somethingawful.com/showthread.php?threadid=3070034&goto=lastpost
|
# ? Mar 18, 2017 16:13 |
|
Not to belabor the point, especially after being pointed to the JS thread, but I'm irritated that all the transpiling solutions are so focused on the node ecosystem. I have no interest in installing a thousand dependencies so that I can invoke a tool every time I save a file to recompile the world before I can see if my code works. Are there any ES6 shims or transpilers that work reliably just in browsers, as something I can just drop in and use script tags with? Google suggests that the only project(s) that did this (Babel) pivoted to be 100% preprocessed server side bullshit within the past two years. I'm trying to tinker and get around to learning ES6 here, not build something for production. McGlockenshire fucked around with this message at 19:25 on Mar 18, 2017 |
# ? Mar 18, 2017 19:23 |
|
McGlockenshire posted:Not to belabor the point, especially after being pointed to the JS thread, but I'm irritated that all the transpiling solutions are so focused on the node ecosystem. I have no interest in installing a thousand dependencies so that I can invoke a tool every time I save a file to recompile the world before I can see if my code works. Sounds like you want babel-standalone: https://github.com/babel/babel-standalone#usage I went here: http://babeljs.io/docs/setup/#installation and clicked "Prototyping in the browser".
|
# ? Mar 18, 2017 22:58 |
|
McGlockenshire posted:I'm trying to tinker and get around to learning ES6 here, not build something for production. Couldn't you just get bleeding edge chrome or dev/nightly firefox and go nuts?
|
# ? Mar 18, 2017 23:05 |
|
Chenghiz posted:Sounds like you want babel-standalone: https://github.com/babel/babel-standalone#usage "Hey guys, you know what's a great idea? Let's put instructions that create dot files and invoke npm in the same expandy block as we're going to use to describe how to use our tool for people that don't want to use the node ecosystem! Nothing could possibly go wrong if someone hits page down only once!" Thanks for going back and making me re-read that. You would think that they'd make a much bigger deal out of actually using the tool immediately instead of skipping to the "oh and here's how to make it all way more complicated than you might actually want at first." Judging from the way they minimize this use case, either this doesn't work at all or there are so many downsides to it that they feel they need to not talk about it. That makes me uneasy. Xik posted:Couldn't you just get bleeding edge chrome or dev/nightly firefox and go nuts? Actually, if I'm reading this compatibility table right then the current versions of Chrome and FF seem to have better ES6 compatability than Babel, so maybe this ended up being a completely useless exercise.
|
# ? Mar 18, 2017 23:27 |
McGlockenshire posted:Thanks for going back and making me re-read that. You would think that they'd make a much bigger deal out of actually using the tool immediately instead of skipping to the "oh and here's how to make it all way more complicated than you might actually want at first." Judging from the way they minimize this use case, either this doesn't work at all or there are so many downsides to it that they feel they need to not talk about it. That makes me uneasy. Of course they don't want you to use it, transpiling in real-time is an awful idea for most use cases.
|
|
# ? Mar 19, 2017 01:11 |
|
I've noticed that the website I'm building is labeling my website as "Not secure" in Chrome. I get this, however I've noticed that other websites, WordPress sites for example, are also not secure, however they are labeled with just the "!" instead of "Not secure". Anyone know why this is?
|
# ? Mar 19, 2017 03:48 |
|
huhu posted:
Click on the icons and it will tell you IIRC. On my phone so I can't double check.
|
# ? Mar 19, 2017 04:18 |
|
huhu posted:
"Not Secure" now pops up if it detects that there's a login form on the page. For a demo, check out https://badssl.com/ and scroll to HTTP Input. It even flags as Not Secure dynamically if the form is hidden.
|
# ? Mar 19, 2017 04:27 |
|
huhu posted:
|
# ? Mar 19, 2017 04:29 |
|
McGlockenshire posted:"Not Secure" now pops up if it detects that there's a login form on the page. For a demo, check out https://badssl.com/ and scroll to HTTP Input. It even flags as Not Secure dynamically if the form is hidden.
|
# ? Mar 19, 2017 04:47 |
|
Recommendations on where to learn to work with RESTful APIs and working with returned JSON data? I've started working with the BigCommerce API since I work in eCommerce, using Curl to connect toe API, and now that I'm connected, I'm not really sure what to do/how to use the returned data. Gotta learn this stuff for work, and it's really out of my comfort zone. Only thing I've done with PHP is CRUD apps, and I've only used AJAX/JSON sparingly.
|
# ? Mar 20, 2017 21:41 |
|
Grump posted:Recommendations on where to learn to work with RESTful APIs and working with returned JSON data? You just used whatever your language/framework uses to parse the json and then you've got objects, arrays, maps, whatever and the same for sending it but in reverse. That's about all there is to it.
|
# ? Mar 20, 2017 21:57 |
|
I think it really depends on what's doing things with the returned JSON. Are you building a full JavaScript web client or a server that renders templates using information from the API. Usually the biggest questions to ask about using third party apis are what information needs to be stored by, and what can you get just in time. For instance, if you're using product descriptions and stock counts, it would probably make sense to store that stuff on your own server so you're not calling every page you serve. Most of the thought around using APIs is really just thought about how you'll deliver information from the API and transform into information useful to the user. There are lots of different ways to do that depending on what your building.
|
# ? Mar 20, 2017 22:01 |
|
Maluco Marinero posted:I think it really depends on what's doing things with the returned JSON. Are you building a full JavaScript web client or a server that renders templates using information from the API. Yeah I mean what I'm trying to do right now is grab all the products in my store, and parse through the data and format it better. I got as far as grabbing all my products in JSON format and I'm pretty lost. I have zero experience with this stuff. I'm not really building anything. I'm just messing around. Thermopyle posted:You just used whatever your language/framework uses to parse the json and then you've got objects, arrays, maps, whatever and the same for sending it but in reverse. That's about all there is to it. This is pretty much where my problem lies. I don't even really know how to do this stuff. I guess what I'm really asking is for a tutorial to parse JSON data with Javascript? Correct? teen phone cutie fucked around with this message at 22:11 on Mar 20, 2017 |
# ? Mar 20, 2017 22:08 |
|
Depending on how you get the JSON into the browser, you just run the JSON string through JSON.parse()
|
# ? Mar 20, 2017 22:18 |
|
Reading the PoC of the recent RCE for Moodle is interesting. Good writeup here.
|
# ? Mar 20, 2017 22:39 |
|
Near-impossibility for the thread; I have a chunk of CSS describing a background for the <body> section of my website, and I want to display different backgrounds on different pages, but I also want to keep everything in one CSS file if possible. What is a good way to do this? @document sounds like a good solution but it's also supported only by Firefox. At present I just have a <style> element saying which background to use in the template for each page, plus a default in the main CSS sheet, but this feels unwholesome and I would prefer a better solution.
|
# ? Mar 23, 2017 00:28 |
|
ddiddles posted:Depending on how you get the JSON into the browser, you just run the JSON string through JSON.parse()
|
# ? Mar 23, 2017 00:36 |
|
darthbob88 posted:Near-impossibility for the thread; I have a chunk of CSS describing a background for the <body> section of my website, and I want to display different backgrounds on different pages, but I also want to keep everything in one CSS file if possible. What is a good way to do this? @document sounds like a good solution but it's also supported only by Firefox. At present I just have a <style> element saying which background to use in the template for each page, plus a default in the main CSS sheet, but this feels unwholesome and I would prefer a better solution. Just add a new class to the body tag for each page. Easy.
|
# ? Mar 23, 2017 00:49 |
|
MrMoo posted:Just add a new class to the body tag for each page. Easy.
|
# ? Mar 23, 2017 01:06 |
|
darthbob88 posted:Using JS at pageload? I was considering that, but rejected it as too inelegant, compared to just slapping a lump on the template. On the other hand, now that I think about it, it is simple enough to do $("body").removeClass().addClass("poop") at the top of each page's JS controller. Do it server side if at all possible to minimize client impact.
|
# ? Mar 23, 2017 01:35 |
|
I've hated wordpress for a while now, but I'm actually coming to admire how exquisitely bizarre it is. It's getting to the point that multiple plugins on this one site I'm trying to unfuck for a friend, have created an ecosystem of sorts. Some plugins are fighting with others; some are symbiotic, and gently caress knows nothing can be disturbed even the smallest amount without catastrophic consequences. Encapsulation? What the gently caress is that??? Let's just expose everything to everyone! It's absolutely fascinating, even though it makes me want to smash the dev team's balls with a hammer.
|
# ? Mar 23, 2017 04:37 |
|
I want to write a desktop application that can download/upload XML or JSON files from/to a server and, while offline, use those files (stored locally) to render interactive forms using HTML/CSS/Angular. I'm picturing an embedded browser that can interact with the file system and function without network connectivity, except to transfer files when necessary. I see there are various options for embedded browsers, but what I'm concerned about is that Javascript won't be able to access the local file system. Am I thinking about this the wrong way? An alternative would be to ditch the desktop app idea and just run it as a webpage that supports offline mode by caching the files I need. Is the HTML5 Application Cache suitable for this? I'm pretty sure I'd be able to download XML/JSON files to the cache while online, and then access them while offline. Would I then be able to modify one of those files in-app (or create new files), save them to the cache, then later upload the cache files to the server once I'm online again?
|
# ? Mar 23, 2017 16:07 |
|
|
# ? Jun 3, 2024 22:47 |
|
LargeHadron posted:I want to write a desktop application that can download/upload XML or JSON files from/to a server and, while offline, use those files (stored locally) to render interactive forms using HTML/CSS/Angular. I'm picturing an embedded browser that can interact with the file system and function without network connectivity, except to transfer files when necessary. I see there are various options for embedded browsers, but what I'm concerned about is that Javascript won't be able to access the local file system. Am I thinking about this the wrong way? You want to use Electron. This will give you full access to the file system while writing your application entirely as a web app. A pure web app that works offline will likely be harder, simply because even with the various caching options available, you still need to answer the question of how the 'webserver' is hosted, and making the online/offline part seamless is non-trivial. https://github.com/electron/electron https://scotch.io/tutorials/creating-desktop-applications-with-angularjs-and-github-electron Skandranon fucked around with this message at 16:15 on Mar 23, 2017 |
# ? Mar 23, 2017 16:12 |