JavaScript

Topic: Anything JavaScript, ECMAScript including Node, React, ...
Feb 20, 2017 21:02
ahh, of course
Feb 20, 2017 20:47
It's safer anyway
Feb 20, 2017 20:47
Have you tried using output.textContent = total; ?
Feb 20, 2017 20:45
Actually, I'm not sure, but you could try this: thechamplord.wordpress.com/2014/07/04/…
Feb 20, 2017 20:44
@Tiffany I think the error is in window.onload = function() { }
Feb 20, 2017 20:44
I'm trying to make floaty things tilt, but they're not—can anyone tell what's going wrong in lines 78 - 85 of my js here? codepen.io/Flobin/pen/qRzRJO
Feb 20, 2017 20:43
@Tiffany can you show the code?
Nov 26, 2015 12:52
sorry, late response
Nov 26, 2015 12:52
@MadaraUchiha thanks!
Nov 26, 2015 12:40
@MadaraUchiha true, and I think I know enough js to actually do that
Nov 26, 2015 12:39
is there any way to do
swipebox.each( addImageToHref(480) ); ?
(the above doesn't work)
Nov 26, 2015 12:39
oh, hm, well frig
Nov 26, 2015 12:36
(still doesn't do what I intended though)
Nov 26, 2015 12:36
@MadaraUchiha ah, thanks
Nov 26, 2015 12:33
I've been reading up on bind() in regard to something I've been trying to do, but evidently I am missing something... can anyone tell me why the bind near the end of this doesn't work? gist.github.com/Flobin/a5ace8bf2a7dd099110a
 

Python

Room rules: sopython.com/chatroom Code formatting guide: tinyu...
Sep 7, 2016 17:58
@AnttiHaapala and brick housing? :P
Sep 7, 2016 17:57
neat
Sep 7, 2016 17:57
do they run linux though? the XPS
Sep 7, 2016 17:05
ah
Sep 7, 2016 17:04
@AnttiHaapala er... you mean make a stack overflow post?
Sep 7, 2016 17:03
@AnttiHaapala what site do you mean?
Sep 7, 2016 16:53
anyone know why this might happen?
Sep 7, 2016 16:53
my form, test, and traceback are here: gist.github.com/Flobin/05e6810bca9ee7da95d031eb0d5c1cea
Sep 7, 2016 16:53
ah, well in that case: I just set up django-tinymce and made some changes in my form, but now it's not rendering the correct error message for that form field
Sep 7, 2016 16:51
hi everyone, django questions are allowed here, right?
Jan 17, 2016 22:24
I have a question regarding the Pelican static site generator, not sure if that's okay here, but I'll ask anyway: I want to do something like {% if lang == 'nl' %} in the index.html template, but how would I go about this?
Dec 21, 2015 22:26
so if anyone had any idea why that's happening I'd super appreciate the help!
Dec 21, 2015 22:22
this is my directory structure on the left: dropbox.com/s/qgd4ufbw29qpr1u/…
Dec 21, 2015 22:22
but I'm getting "ERROR: Cannot find translations for language 'en' in 'translations/' with domain 'flobin'. Installing NullTranslations." when I run the pelican command
Dec 21, 2015 22:20
basically I'm following this guide for my pelican static site
Dec 21, 2015 22:20
so I'm having some trouble with jinja2 translations
Dec 21, 2015 22:19
I'd watch it
Dec 7, 2015 11:51
ahh, it was just a typo, haha
Dec 7, 2015 11:48
hmm I get KeyError: 'object_list'
Dec 7, 2015 11:45
aha
Dec 7, 2015 11:34
but it seems like it no longer returns all of the link objects, because another test is failing now
Dec 7, 2015 11:32
when you're using annotate(), you don't have to use .all() right?
Dec 7, 2015 11:31
thank you very much
Dec 7, 2015 11:29
@aleosd, yep, I think you're right!
Dec 7, 2015 11:25
and so I figured I'd try something simple as a first step, trying to figure out how to use annotate() on a queryset
Dec 7, 2015 11:25
what I'm trying to do is implement the reddit sorting algorithm, basically
Dec 7, 2015 11:24
because it ran fine before I added it :P
Dec 7, 2015 11:22
And this is what I get when running the django server: gist.github.com/Flobin/501394d5906fb21485bb#file-traceback
Dec 7, 2015 11:20
so for the full traceback you can scroll up
Dec 7, 2015 11:19
@Ffisegydd, sorry, my test output is above
Dec 7, 2015 11:17
I have a Django question... namely: what am I doing wrong in line 34? gist.github.com/Flobin/501394d5906fb21485bb#file-views-py
Dec 7, 2015 11:16
hi everyone
Nov 29, 2015 18:51
Hi everyone, I have a Django question... my form isn't rendering so I'm wondering what I'm doing wrong here: gist.github.com/Flobin/79599ccb7ec1d6bbd9ff starting from line 42