All Questions
0
votes
0answers
2 views
NameError: global name 'BluetoothSocket' is not defined
I am trying to create a program on my raspberry pi that is accepting a bluetooth connection from an android device. But the build always fails. This is my code:
from bluetooth import *
def ...
0
votes
0answers
2 views
How to convert quaternion rotation to steering wheel motion?
I'm creating a game where you use rotational remote(it knows only its rotation) to steer a car. I have a problem with converting Quaternion(this is the output of the controller) to steering wheel ...
0
votes
0answers
2 views
AWS EB url accessible behind ELB
I have setup a website using ElasticBeanstalk having ELB
Security Group for ELB is configured for 80 & 443 from 0.0.0.0/0
Security Group for EB is configured for 80 & 443 from ELB
Route53 A ...
0
votes
0answers
3 views
Numpy unit tests errors
I have two unit test errors in numpy which i can't seem to decipher:
I'm running Ubuntu 16.4
Running unit tests for numpy
NumPy version 1.11.0
NumPy relaxed strides checking option: False
NumPy is ...
-1
votes
0answers
2 views
C# - custom IComparer<T> that takes an argument as input
I have a list of Points (x,y) that I want to sort by their polar angle with respect to a reference point which I calculate as the average point of all points in the list.
How can I set up IComparer so ...
0
votes
0answers
5 views
Advanced multiple line parsing with python
i am stuck here with a parsing problem on python 2.7, let me explain :
Im parsing events from the incapsula API. The goal is to make them readable in an excel table, for making stats and graph.
On ...
0
votes
0answers
5 views
How to use multiple if statements inside append() jquery
I am returning a json response from the server. In the JSON response keys will have value eiether "yes" or empty value "". With laravel i can generate using blade if statements. Since it is a json ...
0
votes
0answers
2 views
How do Photo Manipulation Programs calculate a halfway point?
I was using Photoshop today and I started pondering....how does PS calculate the halfway point in an image. In PS you can set vertical & horizontal lines at 50% of animage - how do think PS ...
0
votes
0answers
2 views
ThreeJS Maya like wireframe implementation
I'm trying to implement a wireframe which displays quads instead of tris using this code
var geo = new THREE.EdgesGeometry( _this.geometry ); // or WireframeGeometry
var mat = new THREE....
0
votes
0answers
6 views
Why is my function 'piemaker()' breaking with shorter date ranges?
Attempt: I am attempting to take data from an sql, read and modify it with pandas and make a pie graph. In this case, I am taking one tag/keyword and attempting to make a pie graph of the top 3 ...
-1
votes
0answers
6 views
Uber Loding Route animation
In the uber app There is a cool animation.after you choose Your starting point and endpoint on the map two dot Show up and every second route redrawn.i have check every corner of internet couldnt find ...
0
votes
0answers
5 views
Laravel Route seems to set my Controller variable to null
I have a Route to my CartController like this:
Route::get('setDropDownIndex/{index}', 'CartController@setDropDownIndex');
And in my CartController:
public function setDropDownIndex($index)
{
$...
0
votes
0answers
5 views
Why after saving the image stretched?
After using UIImagePickerController i'm trying to save image to PhotoLibrary and in result it save stretched image. Why?
0
votes
0answers
4 views
Selenium 3.0.2 error with Firefox 50: executable may have wrong permissions
I'm trying to use Selenium 3.0.2 with Firefox 50.0.1 in Windows 7. I've followed the instructions in this post to setup correctly the driver and the paths but I'm getting the following error:
...
-1
votes
0answers
14 views
Implementing interface using child class exception
It is my understanding that a class implementing an interface can use the child classes of a class defined in the interface rather than only being able to use this specific class.
Here's an example ...
0
votes
0answers
4 views
vue.js: toggle css class onClick in child component
I am new to vue.js.
I have a grid of divs (two nested vue.js components). I want to toggle the css class of a div if the user clicks on the grid.
My idea is to toggle a boolean isMarked on grid ...
0
votes
0answers
4 views
Codeception sees no curl
I have to xUbuntu16.04 is apache2.4, php5.6, proper framework yii2. Using Codeception pops up an error "Codeception requires CURL extension installed to make tests run", even though the system shows ...
0
votes
0answers
3 views
gRPC and OAuth2 Authentication With Spring Security
I'm experimenting with gRPC using a Spring based 'backend' and Android 'front-end', the idea is that I'll request an access token using the password grant type over HTTP (using the standard /oauth/...
0
votes
0answers
4 views
Three JS object is rotated
I make a simple game where you can place objects at the raycaster position when you click on a big plane.
When the mouse is moving a rectangle(helper) follows the mouse(raycaster) and the rectangle(...
0
votes
0answers
5 views
My R shiny app works locally fine, but fails whenever I deploy due to server connection error
First of all, I have an error like below(by showLogs()):
2017-01-29T10:23:14.923154+00:00 shinyapps[153694]: Warning: Error in .local: Failed to connect to database: Error: Can't connect to local ...
0
votes
1answer
4 views
R data frame - aggregating multiple columns at once
With a data frame df like below
----------------------
a | b | c
------+-------+-------
true | true | true
false | true | false
false | false | false
true | true | false
I need to ...
-2
votes
0answers
6 views
Create database for live chat support system
How should I set a database for a live chat support system?
Visitor don't need to login to access the live chat.
When visitor refreshes the page:
The old chat room will be closed but saved to the ...
-1
votes
0answers
13 views
declare a generic using Type class (C#)
I'm trying to cast from the object to List , where I know the 'T' at runtime. Is there is any way to cast or any other solution to it
//This return an object by default ,but in runtime returning ...
0
votes
0answers
5 views
How to use functions of another class without passing command line arguments in Python?
I have created two classes classA3.py and classB3.py.
As part of my test, I have to run both classes through command line arguments as follows :
python classA3.py arg1 arg2
python classB3.py ...
0
votes
0answers
3 views
Keras unsymmetrical data Diabetic Retinopathy Detection
I'm trying to make a predictive model for Diabetic Retinopathy Detection. The competition's trainig dataset includes hy-res images are unsymmetricaly divided in 5 classes: Normal-25807 images-73.48%; ...
0
votes
0answers
3 views
Is there best practice to use JEE as backend and Angular2 as frontend?
Is there a best practice,
allowing to build multipage web-applications
with JEE as backend
with Angular 2.0 as frontend?
I found many ways to build single-page applications with Spring Boot,
...
-3
votes
0answers
10 views
Fastest way to transfer data from android to Windows
I am trying to develop an app and I need to analyze some data on my Windows computer. The data is essentially arbritary so I can't find it in the internal storage with windows explorer.
So basically ...
0
votes
0answers
3 views
Tensorflow slim and assertion error
I am new to tensorflow and have been experimenting with slim experiment. I have tried to translate the MNIST tutorial in the tensorflow tutorials to the slim syntax. It had been working ok with an ...
0
votes
0answers
2 views
Primefaces 6.0 dataTable footer avoid to clear text
I am using PrimeFaces 6.0 in my application
Javascript
function calculateTotal(rowLength,tableId)
{
for (var i = 0; i < rowLength; i++)
{
amount = document.getElementById(denominationTableId + ...
0
votes
0answers
13 views
How to correctly show a popup menu below a TextView, similar to Spinner?
Background
In the past, I had to create a spinner-like view, which has this behavior:
textView that has the selected item text in it, with an arrow icon on the right that indicates whether it's in "...
0
votes
0answers
5 views
Using custom fields in search results breaks pagination
I have been trying to solve this for hours. When I use custom fields in search results my pagination doesn't work correctly. Page 1 shows the posts as it's suppose to, but when I go to page 2 it just ...
0
votes
0answers
5 views
Drop Folder in Chrome (55)
I am trying to load a folder via drag & drop from the desktop.
The attached code reports the following error when type.isDirectory.
error ** A URI supplied to the API was malformed, or the ...
0
votes
0answers
3 views
Unable to add python sdk to Intellij IDEA
I have an empty Intellij project that has just the default java SDK included:
Now I have already added a python script to the project: but the imports are unresolved since no python sdk is defined. ...
0
votes
0answers
7 views
Mysql & php: INNER JOIN and UNION ALL
I try to output some data based on multiple conditions
Here is my code:
$datainiziale = date('Y-m-d', strtotime('2017-05-01'));
$datafinale = date('Y-m-d', strtotime('2017-10-31'));
$tipotour = "(...
0
votes
0answers
3 views
Igonre some links with Barba.Pjax.preventCheck
I need to ignore barba.js on some links and I know about .no-barba, but I can't add this class to that links.
The links looks like this:
<a href="/shop/0-0-0-4-13"></a>
So I need to ...
0
votes
0answers
9 views
payroll system attendance database table for each month
I am creating a payroll system
where we put in the the number of days present at the end of the month
and it gets added to the database.
at present I have one table with all employee details such as ...
0
votes
1answer
14 views
How to convert key-value pairs to list of array using `AngularJS`?
This is our data:
$scope.arr = {
"1": "A",
"2": "B",
"3": "C",
"4": "D",
"5": "E",
"6": "F",
"7": "Others",
"fromDate": {
"$date": "2015-02-13T20:59:28....
0
votes
1answer
10 views
Issue with SelectSingleNode
My plan is to use the XML below to randomly select one of the event nodes and then assign some of the nodes for each choice node to strings (there will, ultimately, be more choice nodes in each event)....
0
votes
0answers
6 views
JDBC & Microsoft SQL Server / How to set AllowMultipleQueries
How to set AllowMultipleQueries on JDBC for Microsoft SQL Server?
My connection string is currently following, but it not works.
private final String url = "jdbc:sqlserver://localhost:11435;...
0
votes
1answer
6 views
bash paste command automatically insert newline error
I am trying to use paste command in bash
paste -d, temp2.csv temp3.csv > $outfile
temp2.csv:
a,a,a
b,b,b
c,c,c
temp3.csv:
1,1
2
3,3,3
and the expected result:
a,a,a,1,1
b,b,b,2
c,c,c,3,3,3
and ...
0
votes
0answers
4 views
Node https request is actually http
Can somebody please tell me, why this https request in nodejs:
var options = {
"method": "GET",
"hostname": "www.something.com",
"port": 443,
"path": "/api/v1/method?...
0
votes
0answers
12 views
How to add Microsecond and Nanoseconds to DatetTime? [duplicate]
I want to add microseconds and nanoseconds to a DateTime.
DateTime dateTime = DateTime.Now;
for(int i = 0; i < 100000; i++)
{
dateTime.AddMilliseconds(0.1);
Console.WriteLine(dateTime....
0
votes
0answers
3 views
IIS 6 server stops responding when serving a redirected page to mobile device via 3G/4G network
We are building a website for a restaurant and we have some ASP Image buttons that when pressed by the user have to run some code (write in a database) and send the user to a page displaying a message....
0
votes
0answers
2 views
webpack/babel-loader ReferenceError caused by relative pathing
I've been trying to set up this React + Relay example (https://github.com/RGRjs/rgrjs.com), and I'm having trouble with resolving the path to a webpack plugin for babel-loader. When I run webpack in ...
0
votes
0answers
4 views
How to write a rule to prevent any deletion of node from database
I am trying to write rules to secure database. But I am confused on writing a rule which will prevent from deleting any node from database. I have read regarding newData.existsbut when I tried running ...
0
votes
0answers
5 views
Arduino, C, Linker error, ESP32 target
I use Arduino IDE to develop code for ESP8266 and ESP32 (that in fact doesn't matter, it's only the toolchain that's different than classic Arduino for Atmel AVRs).
I've had a code that worked, had ...
0
votes
2answers
8 views
How can I handle “UnboundLocalError” in Python3.6?
I have code like below which is in the part a Class:
def getHtmlResponse(self, inUrl):
while True:
try:
res = urllib.request.urlopen(inUrl)
html = res.read()
...
0
votes
0answers
8 views
Printing all kernel revisions where the patch is backported
I have a commit id of patch fix for a latest kernel. I want to know all the kernel revisions where that patch is backported. Currently I use git describe --contains commitid which gives me only one ...
-1
votes
0answers
3 views
Image Not set in Swift 3 particular url
I want to set particular image from url
https://chart.googleapis.com/chart?cht=qr&chs=150x150&chl=1478856320-5&choe=UTF-8&chld=L|2
But not get if we use other image coming.
I am use ...
0
votes
0answers
3 views
Gitlab - Problems with ConstraintLayout
I'm starting on GitLab.
I migrating my code and i'm trying to build my application but I receive erro below:
What went wrong: A problem occurred configuring project ':app'.
You have ...