Trash can

Like the recycle bin, but trashier.
Mar 30, 2016 11:16
Hello!
Can anyone tell me what is wrong in this code?
$http({
url: _url,
method: "GET",
data: _data
}).success(function(data, status, headers, config) {
$scope.data = data;
$('#' + _id).html(data);
$compile($('#' + _id).contents())(scope);

I get this error: scope is not defined
Nov 22, 2013 13:34
Can anyone help me with this issue? thank you so much!
http://stackoverflow.com/questions/20144637/text-on-horizontal-accordion-with-height-auto/20144974?noredirect=1#20144974
 

JavaScript

Topic: Anything JavaScript, ECMAScript including Node, React, ...
Mar 29, 2016 15:58
@SomeKittens Thank you, yes the question is resolved but I got another problem
Mar 29, 2016 15:56
Hello! can anyone help me with this problem: $targetDom.html(...).scope is not a function
http://stackoverflow.com/questions/36286193/how-to-compile-dynamic-template-from-outside-of-angular
http://codepen.io/anon/pen/xVLVVv
Oct 23, 2014 09:55
Hi!
what is wrong on this line?
`self.workspace.query.action.get("/axis/" + axis + "/dimension/" + encodeURIComponent(d), {}, async: false);`

I get on jsHint this warnings:
Expected ')' and instead saw ':'.
Missing semicolon.
Mar 11, 2014 14:09
any help?
Mar 11, 2014 14:09
Hello to everyone!
I have a problem with setInterval.. please see this example http://domandar.com/upload/upload.html after every 5 seconds I refresh the page.. with $.ajax, but the problem is that every seconds I get blank page
Mar 2, 2014 14:31
Thanks and sorry for my bad english!
Mar 2, 2014 14:30
Hello everyone!
I have a problem with gridrotator (jquery plugin). please see this test http://domandar.com/test/index.html in the html of this page I have 40 images.. but the gridrotator displyas only 25 and the remaining images will appear with different animations and delays.. I have a button for disabling that rotator effect "Disable Effect" when I click on this button I disable the effect.. but displays 25 only images.. Can anyone help to get all the hidden images?
Feb 28, 2014 11:42
Thank you @Neil
Feb 28, 2014 11:34
Hi! I have a problem with javascript x-tmpl.. I want to put a variable inside jsp tag.. ex: <script id="template-download" type="text/x-tmpl"><p class="name">{%=name%}</p><img src="<portlet:resourceURL id='{%=file.name%}' />" />
but I get the image url as follows:
localhost:8080/p_p_resource_id=file.name
insted of:
localhost:8080/p_p_resource_id=myimage.jpg
Nov 27, 2013 14:22
Can anyone help me with this issue?
http://stackoverflow.com/questions/20244629/how-to-stop-tabs-animation-in-jquery
Thank you!
Nov 20, 2013 10:15
hello.. i have this issue: i am trying to append options to my bootstrap select but doesn't work.. and when i use the standard select without style works..
`$('#Test').append(new Option("option text", "value"));`
http://jsfiddle.net/36Xpf/4/
i tried to refresh but doesn't work!
any help?
Nov 19, 2013 10:07
thanks and sorry for my bad english!
Nov 19, 2013 10:07
@Jan Dvorak i can't see the options on the select (bootstrap).. but when i try to remove display:none for the standard select on firebug i see all options
Nov 19, 2013 09:59
Hello, i have a simple question.. i am using bootstrap-select but i have dynamic selects that populate with JSON data.. the question is how can i refresh select after page loads and after the json data success? i tried with this: $(window).load(function(){
$('select').selectpicker();
});

and i added refresh for selectpicker after json complete:

$.getJSON(service,function(data){
var options = '';
for (var i = 0; i < data.length; i++) {
if ((data[i].id == selected) || (data[i].value == selected)){
Oct 17, 2013 14:29
thank you so much @nderscore
Oct 17, 2013 14:17
i want to get the HTML contents of .mydiv except selects.. i get Object has no method 'not'
Oct 17, 2013 14:14
thank you!
Oct 17, 2013 14:14
why?
Oct 17, 2013 14:14
Hi, is there a way to get html inside a div except selects? i tried with .not but doesn't work
$(".mydiv").html().not("select");
Oct 14, 2013 07:24
thank you!
Oct 14, 2013 07:24
Hi, i have this issue can anyone help me: http://stackoverflow.com/questions/19322606/change-height-element-on-focus
?
Apr 26, 2013 14:10
Hi!
Why jQuery Isotope with Infinite Scroll doesn't work for me?
http://www.michelafarinellaarte.it/
 

Python

Room rules: sopython.com/chatroom Code formatting guide: tinyu...
May 11, 2014 10:55
Hi @JonClements and Hello to everyone!
STATIC_ROOT is the path to the directory where collectstatic will collect static files.
STATICFILES_DIRS is the path to the directory where there are the sources files.
So when I run collectstatic the files in the directory of STATICFILES_DIRS are moved to directory of STATIC_ROOT.. right?
but is it possible in python to collectstatic a single file instead of a directory?
Apr 28, 2014 19:59
@CodyPiersall this is my function to get path realtive to the project root.. there is no escape:
def relpath(*x):
return os.path.normpath(os.path.join(os.path.dirname(__file__), '..', *x))
Apr 28, 2014 19:56
Hello!
Can anyone tell me why do I get a path with 4 slashes on tuple?
like this?
`GET_PATH = (
relpath('django/dir/'), #function to get path
)`
result:
C:\\\\Users\\\\Fuiba\\\\Desktop\\\\Apps\\\\django\\\\dir
Apr 26, 2014 22:04
@Ffisegydd thank you!
Apr 26, 2014 22:03
@Ffisegydd Thank you for your answer! So I need to remove [] to have:
STATICFILES_DIRS = os.path.join(os.path.dirname(__file__),'static').replace('\\','/')
?
Apr 26, 2014 21:59
Hello to everyone! I have a problem with this line:
STATICFILES_DIRS = [os.path.join(os.path.dirname(__file__),'static').replace('\\','/')]

this get error:
TypeError: coercing to Unicode: need string or buffer, list found

What I is wrong in this line?
Apr 5, 2014 21:16
@AnishMenon Thank you Anish.. As soon as I learned more I will use nginx.. thanks for the advices!
Apr 5, 2014 21:13
@JonClements Thank you so much Jon!!
Apr 5, 2014 21:07
and I'm using Django 1.6 framework
Apr 5, 2014 21:07
@JonClements Thanks! yes Apache uses mod_wsgi
Apr 5, 2014 20:58
Hello everyone!! I'm a newbie in Python and I'm currently learning it.. I have created an app with eclipse and I copied the project on webfaction server.. now I want to change a line... and the question is: If I changed a line on python I need to restart apache?
Mar 14, 2014 23:54
thank you so much @ddelemeny!
Mar 14, 2014 23:51
Probably I need to change my IP to 93.39.12.345/32 or 93.39.12.345/16 ?
Mar 14, 2014 23:50
I tried like this
host all all 93.39.12.345 md5
but I get error
Mar 14, 2014 23:49
Hello.. Is there anyone here who knows postgres well? I would like to know how to add an ip to pg_hba?
Aug 11, 2013 16:03
thank you so much
Aug 11, 2013 16:02
 

PHP

Support group for those afflicted with PHP. Don't ask to ask, ...
Mar 3, 2014 21:17
Hello! I am using jQuery File Upload and I only changed the position of UploadHandler() class [https://github.com/blueimp/jQuery-File-Upload/blob/master/server/php/UploadHandler.php ] from HOME/server/php/UploadHandler.php to HOME/index.php but I get this error:

index.php:510: Fatal Error: Method call 'get_upload_path' is not allowed for a null value.

Can anyone help me?
 

 bin

It's a bin, for binning things.
Jul 7, 2013 19:18
Jul 7, 2013 18:51
I need to install the ElementTraversal dependency and include it on my classpath..
Jul 7, 2013 18:50
ps. sorry for my bad English!
Jul 7, 2013 18:49
Hello, I am newbie of Java.. I need a help!
I have installed Jetty for Shibboleth IdP, but when i try to run i get this error: NoClassDefFoundError: org/w3c/dom/ElementTraversal
So i need to install ElementTraversal.. but i don't know how.. can anyone help me?