Very interesting perspective Mr. Wynand, just wanted to say thanks for sharing your experience!
|
|
# ¿ Mar 21, 2014 04:39 |
|
|
# ¿ May 7, 2024 01:38 |
Mr. Wynand posted:Some crazy guy on HN maintains this insanely complicated regression analysis that tries to predict how long until Google looses interest in any given project, based on usage, weather or not it's open source, does it make the money etc etc. That sounds pretty interesting, do you have a link to it?
|
|
# ¿ Apr 1, 2014 01:39 |
SuicideSnowman posted:I started playing around with Angular today and am obviously still very new to it and want to make sure I'm doing things the right way. I have basically a "master" page that has a navigation bar and a <ng-view> to dynamically load content. I'm doing so by simply calling a different page that I've configured in the router. It works, however I notice when viewing the html source for the page it's still just showing my master page and not any of the new page information. Is this normal or a problem in any way? If so, what's the correct way to handle a master page? When you use the old school "View Page Source" it shows you the original HTML that was loaded for the page and doesn't reflect any changes made by JavaScript. You'll want to use the Developer Tools instead. Right click somewhere on your page and go to Inspect Element and it should open it up. (it's gonna blow your mind if you've never seen it before)
|
|
# ¿ May 8, 2014 08:43 |
fuf posted:I'm finding it hard to find a good balance between easing load on the server and sending unnecessary data to the client. I think you already have the answer you want (it's a small amount of data, prefetch it) but you may also want to check out the typeahead.js library because it handles all the prefetching, caching, remote searching, etc for you with a nice API.
|
|
# ¿ Jul 22, 2014 01:33 |
The Merkinman posted:That's actually my fear, we create/update pages a lot so I'd hate for either: For point A you can just append a random string in the filename on deployment, like app.dked93ks393.css. For point B, I wouldn't worry about it until it becomes a problem, because it probably won't be.
|
|
# ¿ Aug 8, 2014 18:29 |
ErikTheRed posted:Isn't it better/easier to use a query string like: app.css?12345 I use the filename method since I've heard it is more compatible with other proxy/caching services that might be in the chain. Although personally, I've haven't run into an issue yet. django-pipeline does it for me and sticks the unique string in the filename. http://www.stevesouders.com/blog/2008/08/23/revving-filenames-dont-use-querystring/
|
|
# ¿ Aug 8, 2014 20:13 |
wwb posted:If the query string gets eaten by the proxy pipeline you'll have more problems than just serving fresh CSS. Either way works, filenames if infrastructure supports it, query strings if not. It's not that the proxy pipeline eats the query string, it's just that it would be a cache miss for anything that contains a query string.
|
|
# ¿ Aug 8, 2014 20:52 |
If I'm using a Backbone.Router for a single page app, how do I handle redirecting them to the login page if they hit a route that they needed to be authed for?
|
|
# ¿ Nov 3, 2014 23:43 |
Newbie react question...how come I'm not getting the alert when a button is clicked? Here's my jsfiddle: http://jsfiddle.net/7phvhdgf/1/
|
|
# ¿ Mar 3, 2015 02:39 |
^ I made another attempt at it, still couldn't get it to work though: http://jsfiddle.net/pj6hz7hq/ Is there a different way I should be going about this?
|
|
# ¿ Mar 3, 2015 03:03 |
bartkusa posted:For starters, use "onClick" instead of "onclick". Doh! Thank you =) http://jsfiddle.net/pj6hz7hq/1/ How come it's giving me a "TypeError: this.props.onClickMe is not a function" now?
|
|
# ¿ Mar 3, 2015 03:49 |
bartkusa posted:Use your debugger and tell us what it is, if not a function. undefined
|
|
# ¿ Mar 3, 2015 07:12 |
bartkusa posted:Ah. Weird. Next step: what is "this.props"? What is "this"? "this.props" is {dataRow: Object, onClickMe: undefined} "this" looks like a bunch of react stuff, only thing I gleaned from it was _rootNodeID ".0.1.$1" which matches what was generated for my <tr> that contains the button, seems to make sense
|
|
# ¿ Mar 3, 2015 07:33 |
bartkusa posted:OK. So where are you going to put your next breakpoint, to figure out why your assignment to onClickMe is wrong? You're going to put a breakpoint in this.props.dataRows.map(...) Ahhh there we go, working now! That makes sense, thank you!
|
|
# ¿ Mar 3, 2015 07:59 |
Next question about that fiddle: lets say TableWidget.handleClick does some ajax and I want to show an indication in the UI while it's loading. I can do some this.setState in the TableWidgetRow.handleClick but how does it know when TableWidget.handleClick has actually completed? Do I have to manipulate TableWidgetRow state from TableWidget? Here's the updated fiddle: http://jsfiddle.net/pj6hz7hq/4/
|
|
# ¿ Mar 3, 2015 09:18 |
^ I was able to do it by just getting rid of TableWidget.handleClick and only having TableWidgetRow.handleClick, but I'm still kinda curious how you would pass state to a child component like that.
|
|
# ¿ Mar 3, 2015 19:13 |
Heskie posted:Do you run the full GUI inside the VM and work within it (Editor/IDE etc) or just use the VM as a terminal/server and use Editors/IDEs on the Windows host? I'm in the same boat as Thermopyle, Windows as my host OS and 99% of the time I'm in a CentOS VM. I have the full GUI inside the VM, IDE and all. We have a Chef recipe that will take a base install to a full dev environment with just `vagrant up` - installing git, postgresql, tomcat, python, java, etc etc exactly like production. Any changes to the chef recipes can be applied to the VM just with a `git pull && vagrant provision` - and the changes are applied exactly like they get applied in dev/qa/prod. It's pretty sweet! Thermopyle - how come you went with vmware? I've just been using virtualbox, wasn't sure if I'm missing out on anything.
|
|
# ¿ Aug 5, 2015 18:54 |
Heskie posted:Would you mind sharing your specs and any tips to get the best performance from the guest? Trying this out on my home PC at the moment. My laptop is an i7-4600M w/ 16GB ram and an SSD. I give my VM 2 CPUs, 4GB ram, and enable VT-x/AMD-V as well as "Host I/O Cache". I can't really tell the difference in performance between inside the VM and outside the VM, it is very snappy.
|
|
# ¿ Aug 5, 2015 23:44 |
Is there an alternative to URI.js that plays nice with requirejs? Why is parsing a URI not part of standard JavaScript
|
|
# ¿ Oct 2, 2015 23:24 |
I was following this tutorial for Django + Webpack: http://owaislone.org/blog/webpack-plus-reactjs-and-django/ Things seem to be working well but I've got a ton of ./assets/bundles/main-[hash].js files accumulating now as I'm making changes. Is there something that is supposed to be cleaning this up?
|
|
# ¿ Apr 19, 2017 22:50 |
Helicity posted:Your build script should have a clean step to start with a pristine, empty dist directory. But if I have webpack in watch mode while I'm developing and it's recompiling every time I make a change, am I just supposed to run the clean command periodically?
|
|
# ¿ Apr 20, 2017 00:26 |
Right on, thanks for the help Helicity!
|
|
# ¿ Apr 20, 2017 00:47 |
Grump posted:here it is Congrats! The phone number format restriction might not work so well for international phone numbers
|
|
# ¿ May 16, 2017 23:18 |
I have a vuejs project I'm building for a Chrome Extension. How can I output my manifest.json for the extension as part of the "vue-cli-service build" process?
|
|
# ¿ Feb 25, 2018 22:23 |
|
|
# ¿ May 7, 2024 01:38 |
fletcher posted:I have a vuejs project I'm building for a Chrome Extension. How can I output my manifest.json for the extension as part of the "vue-cli-service build" process? Found what I was looking for in these docs: https://github.com/vuejs/vue-cli/tree/dev/docs
|
|
# ¿ Feb 26, 2018 05:40 |