Add jquery plugin to webpage
Vote count: 0 I want to add a jquery plugin from here: http://www.elevateweb.co.uk/image-zoom to my website. My code is attached below. Please help me add the same by editing the supplied code since I am a begi er in HTML. Your help is greatly appreciated! TY <!DOCTYPE html> <!--[if IE 6]> <html id=...
numberformatexception error on output
Vote count: 0 I'm getting the following error when compiling and ru ing my program. What did I miss in the formatting? my csv file looks like the following: David,Curtis,138,W Plumtree Ln,8012985656 Paul,Taylor,99,Wikapee St,8015984578 Exception in thread "main" java.lang.NumberFormatException: For ...
Image processing is too slow
Vote count: 0 import cv2 import numpy as np while True: cam = cv2.VideoCapture(0) while(cam.isOpened()): ret, im = cam.read() im=im.reshape(1,-1,3) im_list=im.tolist() im_tuples=map(tuple,im_list[0]) im_set=set(im_tuples) print len(im_set) This is my code. It runs really slow (like once a second). H...
Swift/Firebase - Sort posts in tableview by date
Vote count: 0 Basically I am trying to make a twitter-like app, showing status updates of the people you follow, ordered by date, just like twitter. How can I do that? I have the code for displaying the posts in a table view, but the ordering is all messed up and looks quite random. I have a path ca...
List and ArrayList incompatible types [duplicate]
Vote count: 331 I'm a bit confused about how Java generics handle inheritance / polymorphism. Assume the following hierarchy - Animal (Parent) Dog - Cat (Children) So suppose I have a method doSomething(List<Animal> animals). By all the rules of inheritance and polymorphism, I would assume that a Li...
Build default groups with Ecto.Changeset.put_assoc
Vote count: 0 I have a User and a Group model (user has_many groups). When a new User is created I want to build three default groups for that user. Lets call them x, y and z (which would be the name). I guess Ecto.Changeset.put_assoc is the right tool for this job. Correct? How can I use it to crea...
error LNK2005: already defined
Vote count: -2 I have the following files myMainClass.h / myMainClass.cpp myFirstClass.h / myFirstClass.cpp mySecondClass.h / mySecondClass.cpp myMainClass.h includes the following: #include <unordered_set> //private typedef std::unordered_set<SomeClass, SomeClass_hash> SomeCollection; SomeCollectio...
gorethink inner join
Vote count: 0 I don't quit understand joins at all and unfortunately there is very few documentation about it in german. And in my special case i also don't really understand the driver. So i have a table 'categories' and there i have two docs: {"id":1, "title":"Category 1"} {"id":2, "title":"Catego...
A conservative city for programmers?
Vote count: -5 I know that programmers tend to be apathetically apolitical.I am looking for a conservative city for programmers. Let's see if the people can answer before the mods remove this! asked 1 min agouser432495 Let's block ads! (Why?)
PHP file starting with Apache
Vote count: 0 Is it possible to start some PHP script when Apache is tu ed on? I don't want that script to work on client side, just server, like in nodejs. asked 49 secs agoDragan Peric Let's block ads! (Why?)
Mapping the enter key to a button in HTML/CSS/JS
Vote count: 0 i have a small form in which you have to submit a score, which is a number, then i have a script which processes the number. The form is like so: <form name ="input2" style="margin-left: 30%; margin-right: 30%; margin-bottom:5%"> Score: <input type="text" id="score" name="score" maxlen...
Build VisualStudio .sln with Mono
Vote count: 0 I am trying build my VisualStudio project with Mono (which is installed on my Linux maschine) (by apt-get install mono-complete). I am using xbuild command as "xbuild Nipo.sln". Console prints this error: Errors: /home/jashin/Nipo/Nipo.sln (default targets) -> (Build target) -> /home/j...
ANN symbolic parameters
Vote count: 0 My input parameters for the neural network contain symbolic data. I do not understand whether it is possible to submit data in this form or needed to normalize. Is it not true? And how can I fix it? asked 1 min agoТрубецкой Let's block ads! (Why?)