|
Thermopyle posted:My question is, how should I allow the consumer to request this optional output? I can do URLs like: Normally your API would return relations as references JavaScript code:
JavaScript code:
JavaScript code:
|
# ¿ Aug 8, 2014 19:46 |
|
|
# ¿ May 19, 2024 22:37 |
|
Munkeymon posted:And can't think of a way to do this without integrating bits of the FA CSS into my own, which strikes me as a bad idea.
|
# ¿ Sep 3, 2014 20:13 |
|
http://stackoverflow.com/questions/13392872/why-does-accessing-the-localstorage-object-in-internet-explorer-throw-an-error
|
# ¿ Oct 10, 2014 23:14 |
|
See their API docs. You can change the max after the widget is created:JavaScript code:
|
# ¿ Oct 22, 2014 02:44 |
|
jackpot posted:I'm getting incrementally better at building my jqueryui sliders, but I've run into a new snag. In this particular slider I want to fix the first handle in place (because its starting value was derived from a previous slider) but let the second handle still be moveable. So like this: You can cancel events from the slider you want fixed (see bolded) pre:$(function() { $( "#slider-range" ).slider({ range: true, min: 0, max: 500, values: [ 75, 300 ], slide: function( event, ui ) { if ($(ui.handle).is('#slider-range .ui-slider-handle:first')) { return false; } if (ui.value < 75) { $( "#slider-range" ).slider( "values", 0, 75 ) return false; } $( "#amount" ).val( "$" + ui.values[ 0 ] + " - $" + ui.values[ 1 ] ); } }); $( "#amount" ).val( "$" + $( "#slider-range" ).slider( "values", 0 ) + " - $" + $( "#slider-range" ).slider( "values", 1 ) ); });
|
# ¿ Oct 31, 2014 02:41 |
|
1. Compile your LESS with modifications 2. Compare the compiled CSS to the original bootstrap CSS to generate a CSS patch file 3. Serve up the original bootstrap CSS and your patch step 2 left as an exercise for the reader
|
# ¿ Nov 27, 2014 05:21 |
|
Ahz posted:Thanks. I am having a little trouble though. I have everything setup but the NOT selector doesn't seem to work as expected. the 'not' will match html and body so you probably have to tag those as printable.
|
# ¿ Jan 18, 2015 21:48 |
|
What's the preferred way these days to dynamically load scripts? I'm not using RJS/AMD/etc. I have a SPA which needs to load some rather large scripts if the user navigates to a particular place. I basically want a LoadScript('foobar.js') which returns a promise that downloads the script the first time I call it and is immediately fulfilled thereafter.
|
# ¿ Jan 30, 2015 19:24 |
|
Set the Content-Disposition in Apache (here's a guide or just google it)
|
# ¿ Feb 9, 2015 03:31 |
|
Lumpy posted:Since NoSQL covers a HUGE gamut of things from document stores (Mongo and pals) to Key-Value Stores (Redis & co.) to graph DBs, there's no "best practice for NoSQL". Duplicated data is sometimes the correct thing to do in document based versions.... Find the best database for your goal. Here's a good list
|
# ¿ Feb 10, 2015 20:49 |
|
Zero The Hero posted:Also, what do people think about two-way data binding? That was one of the main draws of Angular / Ember, but it seems it won't be included in future versions of either technology. It sounds so useful, though, is there any particular reason it's falling out of favor?
|
# ¿ Feb 17, 2015 07:08 |
|
JSON.stringify(obj)
|
# ¿ Feb 24, 2015 02:52 |
|
It's weird that refreshing the page takes me to the top. I looked at the other examples on the Isotope website and they have the same problem.
|
# ¿ Mar 1, 2015 00:50 |
|
You could use a window function:SQL code:
If the query is expensive this will likely be faster than running it twice.
|
# ¿ Mar 5, 2015 17:06 |
|
Let postgres into your life~
|
# ¿ Mar 5, 2015 17:24 |
|
Lumpy posted:It didn't three years ago.
|
# ¿ Mar 12, 2015 16:48 |
|
Sauer posted:Assuming the data you want to store between pages isn't sensitive information wouldn't it be easier to just use localstorage? It seems to be supported on everything these days.
|
# ¿ Jun 2, 2015 02:11 |
|
Gmaz posted:What is the use case where you would ever want to use a few MB locally? Sites use localstorage to cache dynamic content, either to make the site more responsive or to make it available offline.
|
# ¿ Jun 2, 2015 16:30 |
|
revmoo posted:Has the Famous JS framework improved since its stillborn release last year? I've got someone wanting me to work with it but I remember it being a hot mess at release. I noticed scrolling works now so there's evidently been some work done on it. Is it worth using these days? http://techcrunch.com/2015/11/06/nopen-source/
|
# ¿ Nov 6, 2015 19:16 |
|
The Merkinman posted:Use code from StackOverflow? Know someone who does? You may have to provide attribution . Edit: nevermind. the poster had to request attribution before Sedro fucked around with this message at 22:16 on Jan 15, 2016 |
# ¿ Jan 15, 2016 22:11 |
|
Data Graham posted:Speaking of Font Awesome -- I've never used them, but drat if it doesn't look like they at least have a ton of good icons. Except is it actually a trap, because the people behind it doesn't really seem to know what they're doing?
|
# ¿ Feb 8, 2016 17:16 |
|
Leshy posted:On the earlier topic of CSS variables, I actually have a site that is the perfect use case for them, but I am not quite sure on the best method to implement them with a proper fallback. You could use CSS.supports('--accent-color', 'blah') but that won't work in IE. If you care about IE you can create some DOM using CSS variables and examine the output with getComputedStyle.
|
# ¿ Feb 15, 2016 17:50 |
|
Mecca-Benghazi posted:Why VirtualBox over Hyper-V, which is built in to Windows? quote:Virtualbox
|
# ¿ Mar 7, 2016 19:07 |
|
22 Eargesplitten posted:I asked this in the Java thread but didn't get a response, so I'm hoping it will get one here. I'm having a lot of trouble installing Spring Roo on Windows. I've been doing exactly what several different sets of instructions on the spring.io site say. I've unzipped it to a location, set ROO_HOME to that location, added %ROO_HOME\bin to the user and system Path variables, because I wasn't sure which one it needed to be in. I also tried %ROO_HOME%\bin. I even put the ROO_HOME variable into both user and system variables. The environment variable syntax on windows is %ROO_HOME% not %ROO_HOME You probably need to restart explorer.exe (or logout/reboot) for environment variables to stick, although it depends on the version of windows. You can shift-right click on the new directory, "Open command window here", then type "echo %PATH%" and see if the value is correct
|
# ¿ May 31, 2016 04:43 |
|
Unity Gain posted:Yes, because these calls are supposed to be (a) stateless; and (b) atomic. What state, and how is it not atomic? The PATCH either happens or doesn't; there is no half-PATCHed state. Sure, the resource is not consistent with respect to the timing of HTTP requests, but isn't that true in general? Does REST demand this of your protocol? Many popular databases don't even offer consistency. The API is fine. Status code 202 exists for this purpose.
|
# ¿ Jun 10, 2016 05:47 |
|
xpander posted:I have what is probably a simple question about Ember: I've got a model with a handful of attributes, but most of them are computed server-side(things like creation/update timestamps, other generated properties, etc). I want, say, property 'email' to be sent to the server when saving the record, but not the others. Is this possible? I couldn't really find anything in the docs. I can certainly handle it sending over a larger payload with blank fields, but I'm thinking ahead to when an application scales up, and you might want to keep those payloads as small as possible. You can customize the adapter and serializer for that model. By default, the serializer will serialize all attributes and the adapter will use a PUT request when you save(). There's an active community on slack https://ember-community-slackin.herokuapp.com/
|
# ¿ Aug 11, 2016 14:59 |
|
argondamn posted:Running into some problems with javascript dates and timezones. Basically the client runs a report that takes a date(s) as a parameter that is month/year. The client picks these dates via a datepicker and we are sending the resulting date.getTime() across to our service which runs the report. The problem occurs when the client is in a different timezone than the server, if the client picks September 2016, then what is sent across is 01-Sep-2016 in millis for his timezone, and if the client is in EST and the server CST and then since the report that's being ran truncates the date for month, it ends up running for August instead of September. You could send the dates in ISO 8601 format, with UTC offset to preserve the user's time zone.
|
# ¿ Sep 22, 2016 05:56 |
|
XML code:
|
# ¿ Jun 30, 2017 01:16 |
|
JavaScript code:
|
# ¿ Jul 8, 2017 00:25 |
|
Munkeymon posted:Think it's the other way 'round, technically. Actually, WebStorm might Just Work, but they've got to be having a hard time keeping up with flavors of the week. IntelliJ Ultimate is the full IDE. The minor IDEs like WebStorm, PyCharm are subsets at a lower price point.
|
# ¿ Sep 7, 2017 00:17 |
|
Nested dropdown menus can gently caress right off, on desktop, mobile or otherwise
|
# ¿ Nov 14, 2017 19:22 |
|
|
# ¿ May 19, 2024 22:37 |
|
Boosh! posted:JS question: I have an array of objects I am trying to filter by the "tags" value. Tricky thing is, the CMS spits out "tags" as a string of semicolon-delimited values. JavaScript code:
|
# ¿ May 9, 2018 22:52 |