how to select element from different divs of the same class?
Vote count: 0 Here, on change of a dropdown (values 1-100), the selected number of clones it will add on. I have tried to utilize a couple different variations of selectors, but Im missing something. When I run this code, and a user changes the dropdown in the top div, it adds fields to the second d...
Select specific attributes from table in SequelizeJS
Vote count: 0 Those are my tables (not all columns included) and relationships var client = schema.define('client', { name: { type: Sequelize.STRING, allowNull: false }, } var task = schema.define('task', { name: { type: Sequelize.STRING, unique: true, allowNull: false }, description: { type: Sequel...
JQuery triggering fadeIn and fadeOut on menu
Vote count: 0 Demo - https://jsfiddle.net/jhhpLapv/1/ // Main Script For Ciel Viole $(document).ready(function() { $('.client-link').click(function() { $('.navbar').slideToggle("fast"); }); }); When triggering the hamburger menu, I want the menu links to fadein and subsequently fadeout when the menu...
Numerical Error
Vote count: 0 I wrote a quick sieve to test if a number is prime or not. I have two questions: 1) I tested a 200 digit prime, and it incorrectly says it wasn't prime. I believe this is down to floating point error (or something like that). How can I make this more accurate? 2) Is there a better way ...
Change Saving-Path - Python
Vote count: 0 I´m trying to save a file, which I create with the "open" function. Well I tried nearly everything to change the directory, but nothing works. The file gets always saved in the folder of my file, which I read in before. file = open(fname[0] + ft, 'w') file.write("Test") file.close() So...
Android Wear: Wi-Fi Scan No Results
Vote count: 0 Whenever I try to use a Wi-Fi Scan for Android Wear, I always get no results from the scan. The code that I use works for my mobile device, but with Android Wear, it always retu s an empty list. Code is as follows: protected void onCreate(Bundle savedInstanceState) { super.onCreate(sav...
How to convert html (thymeleaf) form to Angular JS?
Vote count: 0 I have a simple web form in thymeleaf(which works) and I want to convert it to Angular js. What I should do ? All website backend written on java <html xmlns:th="http://www.thymeleaf.org" xmlns:score="http://www.w3.org/1999/xhtml"> <body> <div th:if="${message}"> <h2 th:text="${message...
Query access tables from excel - not a valid password
Vote count: 0 I am trying to query a query from an access database in excel. The steps I have taken are on the "Get Exte al Data" group in excel ribbon I choose from Microsoft Query then "MS Access Database" as my data source. I am then able to choose my access database file then my desired table or...
Grails 3 with quartz plugin
Vote count: 0 I have following version in my project: Grails 3.1.1 Groovy 2.4.5 JVM(1.7.0_95) quartz(2.0.0) (I tried 2.0.1 but it wouldnt start so switched back to 2.0.0) I have simple trigger working in my project . Now I want to implement 5 parallel execution of the same job. I know that we can us...
What is the concept of range in C++?
Vote count: -1 The C++17 (or the one after) is likely to come with ranges. How is the range concept defined? What functionalities should a range provide to follow the range concept? Is there a hierachy of ranges as there is a hierarchy of iterators? Why the standard algorithm versions with iterators...
trouble importing csv data into myphpadmin database
Vote count: 0 I'm using my PC as a server (localhost), phpMyAdmin for my database, and I'm trying to import a csv file that's 3.4M. I keep getting the error message: No data was received to import. Either no file name was submitted, or the file size exceeded the maximum size permitted by your PHP co...
Query with distinct values
Vote count: -1 I have a table "sites" with a field "url"all urls have a "id=" like: http://www.google.com/&id=1234 I need to list all the urls that have an unique id with this query I can list correctly but I can't really use the url SELECT DISTINCT(SUBSTRING_INDEX(SUBSTRING_INDEX(url, 'id=', -1), '...
Troubleshoot rails postgres SUM versus manual adding/totaling
I have a table that holds order information from customers. When I do this: @orders = Order.where("order_date >= ? and order_date <= ?", start_date, end_date).sum :total ..i get a different total than when I do this: @order_total = 0 @orders = Order.where("order_date >= ? and order_date <= ?", start...
Add --insecure-registry argument to docker daemon on centos 6
Vote count: 0 trying to co ect the docker daemon on centos 6.6 (non systemd) to our private registry without a cert. Docker documentation says to edit /etc/default/docker to add insecure-registry argument and restart the service, but this has no effect: $ ps -ef | grep docker tiiuser 19986 19447 0 1...
How i resolve this error?
Vote count: 0 I've installed an gamepanel on my linux (CENTOS 6.7 x86_64) all worked fine but then i got a blank page and in the error_log i find this PHP Wa ing: PHP Startup: Unable to load dynamic library '/usr/local/lib/php/extensions/no-debug-non-zts-20121212/zip.so' - /usr/local/lib/php/extensi...
How to get the DATABASE_URL from a rails project on cloud9
Vote count: 0 I have a rails project ru ing on cloud9, and I want to dup it to my local machine so I can continue working on it locally. The problem however is that I have data on cloud9 database already which I'll like to continue utilizing, either while on cloud9 or on my local machine. I know tha...
Generate Fixed Length Feed File in SQL (Oracle)
Vote count: 0 I have received a requirement to generate a fixed length feed file containing user information from the application database and share the file with another system. In fixed length, it has been told that each column will have x character length followed by the next column of say y char...