Newest Questions

Q&A for professional and enthusiast programmers

jQuery .submit() - No Response

I am Unable to submit a form using jQuery .submit() function. On my website, I have: index.php view-detail.php form-process.php On index.php page, is a list of records that user can click to view ...

Cannot find module 'meteor-promise'

I am using Meteor 1.4.3.2 on a windows7 dev environment. I've ran into a problem with an application after attempting to remove a failed demeteorizer attempt. After removal of demeteorizer folders/...

Full Width Bootstrap 3 Multi-level Inline Nav

I'm trying to make the multi-level inline nav 100% width but there is a pixel on each side and two pixels on the next multi-level. I've tried left: -1px on the CSS but it leaves some room on the right ...

Permission denied when installing mlxtend (Python 3)

I am trying to install the python library mlxtend for machine learning purposes. I have tried several solutions, including: pip install mlxtend easy_install mlxtend I also have read all the threads ...

How to get the ID in ruby on rails on windows

I am currently doing simple CRUD. I already done in part of adding a new item, display all the items and now I want to view the specific item.. Question: How can I do that? Is my syntax correct? ...

basename and redirection error

I'm trying to come up with a simple script that essentially copies one existing file into a file that does not exist. It's for a school assignment, and they want a very simple solution by assuming you ...

Making a time-efficient recursive fibonaccci algorithm using an arrayList

I'm working on an assignment in which i use a recursive method to determine the nth value of the fibonacci sequence. The method is supposed to be more time-efficient by using an arrayList to store the ...

how to test private method with minitest [duplicate]

I want to test private method. I tried some way just below but didn't work. What's the best way to unit test protected & private methods in Ruby? How do I test this class with minitest? Thanks!...

Setting up Aamazon EC2 Container Service with existing EC2 and existing docker

I currently have an EC2 running with a docker container, but I was told that naively running it is not good enough and EC2 Container Service can offer a lot more functionalities including auto-restart ...

Facebook login api keeps reloading after login

I'm having an issue with the facebook login api. The problem is I have no idea were to start, it was working perfectly and now it's not. I haven't changed any of it's code, I haven't changed anything ...

Wordpress Slider In HUGo theme

https://blog.zenithar.org/post/2017/03/20/npm-yarn-sans-sudo/ I want this slider in my Wordpress Please anybody is there any plugin available For Worpdress or Custom MouseOver show title view

How to get value of Checkbox List upon clicking a button (Flask)

New to Javascript and Flask. I have a list of checkboxes in the html, what would be a correct way of obtaining the checkbox list values from flask? Here is what I did, but it returned empty list. Do ...

How to generate XML from Java POJO using VTD XML

I am not able to find any document/tutorial/example, hence, posting it. Can someone help point to a document which shows how to convert a POJO to XML using VTD-XML library? I looked into their API ...

PrimeFaces PanelGrid Responsive

I am having a problem in PanelGrid of primefaces when it gets responsive The Inputs are not below the labels. PrimeFaces 6.0 <p:panelGrid columns="4" layout="grid" styleClass="ui-panelgrid-blank"...

Swift SpriteKit Create a border where only three sides are passable

I am trying to create a game where the user plays by shooting balls. I want the balls to bounce off the top border and the side borders. The ball is initially placed at the bottom border, and when the ...

call variable without loop laravel

i'm doing a project using laravel 5.3. I'm calling data from oracle database. how can i get today's date in query builder ? for example: $data=DB::connect('myoracle_db')->table('tablename') ->...

What is the best way to implement login system in grails

I am trying to implement a login system in grails. After little bit of research I found plugins like authentication plugin which provide full login feature. This could also be implemented with spring-...

How to reseed db without duplication - Laravel

I have this seeder class in my laravel 5.2 app : class UserTypesTableSeeder extends Seeder { public function run() { DB::table('user_types')->insert([ 'type' => '...

Strange Image size in Magnific Popup

i encountered a strange image resizing problem with images with more height than width. This images are roughly streched to 1:1 on opening the image through magnific popup. All other images are fine. ...

Access to a HDF5-File (reading and writing) with multiprocessing

I want to do some computation an large Image-Stacks. To improve the performance of my code, I want to make use of multiple processors. Basically I want to replace the for-loop with some sort of a ...

C++ Failing on “Pure Virtual Function Being Called”

I am writing some code to remove from an AVL tree. Here is a sample function that helps to do the removal: int AVL::getLargestAndTrim(Node*& currentNode, Node* parentNode) { if (currentNode-&...

How to debug a UWP UpdateTask?

In my UWP app, how can I debug through the code in my UpdateTask? The ‘Lifecycle Events’ dropdown in VS 2017 doesn’t seem to offer a choice to trigger this type of background task. Is there a way to ...

Simple group-by for SQL pull

I have the following table: Check | Email | Count Y | a | 1 Y | a | 1 Y | b | 1 N | c | 1 N | d | 1 I want to group it by 'check' and number of counts ...

Line before and after UL navigation

I should add a horizontal line on both sides of a centered UL menu. There's background image on the page so the solution must have a transparent background. The lines must reach the sides of screen. I ...

Prevent current user from seeing their record? VPD - ORACL12C

I am trying to create a function that will prevent the current logged in user to view their own record in the scott.emp table. I'm not sure if I have to add a new function parameter or if I just need ...

Printf not working when function conditions are met

I've written a function getIntLimited that asks the user to input a valid integer between 10 and 20 and getIntLimited calls a function getInt to confirm if the input is a valid integer. Everything ...

asp.net mvc4 entity framework can not insert record

The column name 'Doctor_id' is specified more than once in the SET clause or column list of an INSERT. A column cannot be assigned more than one value in the same clause. Modify the clause to make ...

Absolutely positioned input width on mobile safari

I have an input that is absolutely positioned inside a container. The container is fixed width 200 and the input is fixed with 160 with a margin of 20 on the left. This produces the result you would ...

Embedding React app with React-Router 4 in Existing App

I have an existing rails app that has a lot of core functionality and I've built out a react router app that will exist on a particular wildcard path of that rails app's routing. How do I stop the ...

Python: ValueError: x and y must have same first dimension

I'm running Python 2.7 and I keep getting this ValueError: x and y must have same first dimension error message. I'm still pretty new to Python and trying to create a simple graph Here is my code: ...

select statement using substring as WHERE condition

How do i Select * from tableA where the condition is like this : TableA: |**Col A** | **Col B** | | Hello| 9*9 | | World| 2*2 | | Cat | 11*11 | WHERE Col B contains same Number like '9*9'. Col B ...

How to Import Multiple Python Modules from Other Directories

all, Python newbie here. Any and all help on python structure would be much appreciated! MAIN QUES: How to Import Multiple Python Modules from Other Directories I've reassembled the repository for ...

How to upgrade a single program in a container owning several ones?

I have built a docker App image which owns several programs to run for a service. It's very convenient to start a service just by using docker run. But, I find that it's inconvenient to bug fix one of ...

h.264 stream looked as a green rectangle with iphone app, but work fine with notebook firefox web browser

No any errors in console. But Screen is green with Iphone app.(like attach) Really wonder what happened here, Thanks a lot. Stream comes from Raspberry pi (gStreamer + Janus WebRTC gateway) gst-...

Angular 2 Can’t get data from Rest Service

I’m new in Angular 2 and I’m playing with the environment to create some app. Doing the things like the site Angular.io says I’m able to create an Injectable Service and using it on my AppComponent ...

Observer pattern usage in syntax tree parsing

I have detailed the specifications of the problem for reasons that will become clear after I ask my question, at the end. The program I am building is a parser in Java for a language with the ...

Is it possible to replace an object but keep all the same refernces to it

Is possible in PHP to replace an object A of class1 with an object B of class2 so that all references to A are now redirected to B. The goal is to avoid tracking all the references to A, which may ...

Various ways of bootstrapping Angular 2 app

Just a newbie here. While reading a bit about Angular 2, I understood that an Angular app can be bootstrapped in multiple ways like: browser (dynamic) - JIT browser (AOT) server side (universal ...

Freeing a pointer to a string in a structure [in C]

i'm trying to find the most efficent way to use the 'free' command in a program I made. Basically there are several structers, the first is called Operation. Here's how it's defined - struct ...

Android Volley posting empty string to php

I m using Volley by including it in the gradle dependency as compile 'com.android.volley:volley:1.0.0' Now I m posting a string like this word = "{\"question\":\""+answer+"\", \"option\":\""+choice+...

Iteratively examine the values in a variable in a dataframe, and return the values of an adjacent variable in R

I am trying to create a new variable (Nprice) in a dataframe in R. The values in Nprice depend on the values in a list of other vectors in the dataframe. Here is my sample data dataframe <- data....

TypeScript didnt get to build?

I have a very simple TypeScript file Car.ts as below class Car { engineType: number; constructor(engine : number){ this.engineType = engine; } } And I have a sublime-build file ...

Looking for sample code that finds a Shelveset associated with a CodeReview Request work item

I am new to C# (coming from Java) and am trying to write a report that counts the number of code reviews done. I have no trouble iterating through the code review requests. When a code review is ...

Problems with Python 3 Classes

I'm trying to write a code in which it creates a Person class that creates a name, but it keeps crashing and I honestly don't know where else to go from here. My professor originally did the code for ...

Gauss Projection calculate

enter image description here enter image description here this is my code ,public class Test { public static void main(String[] args) { // TODO Auto-generated method stub System.out.println(...

Getting audio files buffer for web audio visualization

I'm trying to audio visualization. using this web audio js pizzicato for load files, and this code for visualization I want to get the loaded files buffer and input buffer to start() method. ...

SHA1withRSA verify in python?

I want to rewrite the code of Java to Python.The code is used to verify data through a .cer file. public static boolean verifyByRSA(String certPath, byte[] aPlainData, byte[] aSignature) { ...

Basic for loops

What sequence of numbers would be printed to the serial monitor if the following for() loop was executed? int result = 0; for (int x = 2, x <= 11; x += 2) { result = x*2; Serial.println(...

The outer layer of a Scrollview, an internal UItableview, how to choose the freedom to respond to the sliding who

enter image description here When I slide, the external UIScollview slide, after a certain distance after the internal TableView slide, but also about the effect of sliding。like this image's app

Calculation of dimensions for a 3D bounding Box

I am trying to calculate the dimensions of a bounding box with three different vectors containing the x,y and z elements respectively. I need to find the center, the rotation and the extent of the box....
15 30 50 per page
Translating... 0%