All Questions
0
votes
0answers
2 views
How does this #define work in Swift?
I am new to iOS and am trying to tackle learning Swift (and a bit of Objective C) by converting a library I found to the former. So far I'm doing alright, but am having trouble understanding one part; ...
0
votes
0answers
3 views
Tcp Server C# : how to select which client to send the message
Currently, i'm trying to do a TCP Server to multi client (hardware devices). I'll have in my SQL database stored the IP and network parameters of these clients. How can i select a client to send data ...
0
votes
0answers
3 views
Not able to to login using request library in Python
I am trying to open this website, and access the dashboard's information using requests library in python. This is kind of webscraping but the issue is I am not able to login. I tried bunch of ...
0
votes
0answers
2 views
Process time series data for each second in R
I have data looking like below:
# Data Sample
Time Price V1 Time2 V2
2016-06-20 05:09:44 2086.50 1 05:09:44.284670 -1
2016-06-20 05:09:45 2086.75 5 05:09:45.212413 1
...
0
votes
0answers
2 views
TableSorter plugin currency and commas
i'm trying to format some data of a table that is constantly updated by ajax.
I want that the float data
become this
1.100.500,00 (currency)
after I sort it.
The problem is that tablesorter ...
0
votes
0answers
9 views
Where is the Trash directory?
The trash spec tells me that the Trash directory is here: $XDG_DATA_HOME/Trash
Looking at my environment variables on my Linux Mint system, I find a bunch of XDG stuff, but no XDG_DATA_HOME
I've ...
0
votes
0answers
2 views
In-ValueProvider not Passing Data from ModuleDataSource (Blog App Mod)
I have taken the Blog App, added a Category ContentType as a field in the BlogPost ContentType and built a query to factor Category into the results.
But I am having trouble with the ...
0
votes
0answers
4 views
“You may need an appropriate loader to handle this file type” with Webpack and CSS
I an new to webpack, and I have been able to get it to packup my javascript, but the CSS eludes me. I keep getting a:
“You may need an appropriate loader to handle this file type”
One the first line ...
0
votes
0answers
4 views
premlum word in angular displayed incorrectly in the UI
I have a word named "Premium" but in the User Interface, it appears as "Premlum" I use html5 and angular, how to rectify this problem? My problem as shown above is, i turns to l :(
I have the ...
0
votes
0answers
5 views
Is mipmap not suitable for apps that support base api 8 and onwards?
Android studio now put the launcher icon in the mipmap/ folder instead of the drawable folder, mimap appears to have been introduced in API 17, so if my app supports API 8 onwards, is it correct to ...
0
votes
0answers
5 views
Nested request with retrofit2 + rxjava and ignore error in child request
I use retrofit2 and I'm learning RxJava (with Retrolambda). I'm trying to achieve following flow:
get list of user
for each user, get user detail info for given user_id.
return list of user with ...
0
votes
1answer
10 views
Update the date in the database with +1 month
I have a date column in my users what I want to update with a SQL query
With the SQL query I want to add 1 month to date column in my database.
I now have:
UPDATE users SET date=(+ 1 month)
When ...
0
votes
0answers
9 views
Accessing Web Information in Java During the Boot-up of Program
I am completely new to the Java language, and as my first project wrote a fifty line of so long code which would allow you to input a currency, an amount in said currency, and have the relative amount ...
0
votes
0answers
8 views
Pivot data to column
I have this piece of data in rows format
Can anyone advise how could i change it to be column based? I have been trying using the PIVOT but PIVOT required to have the MAX.
0
votes
0answers
5 views
I'm having issues with assigning IDs properly in CSS
So, I'm having this issue with trying to make code apply to items within a sublist, which I have named "Horizontal"
<nav class="horizontal" id="horizontal">
<ul>
...
0
votes
0answers
4 views
Use Python CGI to display file contents in <div>
I am trying to display the contents of /etc/postfix/transport.in in a <div> via python & cgi. When I run the script from the command line it works as I would expect, however, when called ...
0
votes
1answer
3 views
Escape VueJS data binding syntax syntax in Laravel Blade?
Laravel templating language Blade and VueJS data binding syntax are very similar.
How can I escape VueJS data binding syntax when in a *.blade.php file?
Example:
<div>
<!-- Want it with ...
0
votes
0answers
3 views
What are various components required for StikkyHeader
New to android and trying to use this StikkyHeader in my application. I have tried all my possible understanding related to variables used in the library code. For default mode of library -
...
0
votes
0answers
14 views
How to check if email exists with jQuery?Working only when typing email,but not when copy-paste?
I'm trying to check if email exists with jQuery, but works only when typing, when I try with copy paste than shows that email is available, but its not. Please see below code.
...
0
votes
0answers
9 views
clang compile failed on mariadb
system is CentOS(VirtualBox) x64
I had "yum install" and "yum check" cmake clang gcc libstdc++ and compat-libstdc++*
I had link cmake to clang
I had compile a "HelloWorld" program by clang successed
...
0
votes
0answers
4 views
How to remote desktop connect to AWS EC2 instance?
I've followed the instructions supplied by Amazon very explicitly several times on multiple instances:
https://aws.amazon.com/premiumsupport/knowledge-center/connect-to-linux-desktop-from-windows/
...
0
votes
0answers
4 views
BLE Noble JS, not able to enable notification
I'm trying to enable notifications on a blood presure monitor BLE (ua 651-BLE).
I'm using Noble Js in aim to perform BLE actions.
Here is my actual code :
noble.on('discover', ...
0
votes
0answers
3 views
Concatenate varchar[]'s in PostgreSQL, keeping distinct values
I've got a database containing network assets, each of which can have multiple hostnames. Sometimes, a we'll mistakenly create two records for the same machine, and then later have to "merge" these ...
0
votes
0answers
4 views
Typescript nested class
My typescript class - with constructor - looks like
export class Message {
constructor(
public id: number = 0,
public message: string = '',
public fact: string = ''
) {
...
0
votes
0answers
3 views
Google Sheets add-on not visible in Marketplace Apps for site-wide installation
I have followed all the steps here: https://developers.google.com/apps-script/add-ons/domain-wide
And then went through them a million times already.
I can install and use it if I click Test ...
0
votes
1answer
8 views
Python 2.7.3 urllib2 Error
When i try run python script this error coming.. Please How i can solve this Problem
['builtins', 'doc', 'file', 'name', 'package', 'urllib2']
Traceback (most recent call last):
File "m.py", line ...
0
votes
0answers
5 views
osmdroid error downloading Maptile
I have a problem using the osmdroid
when I use this code
map.setTileSource(TileSourceFactory.MAPQUESTOSM);
I have no problem using the online map. But this does not allow me to use the offline map ...
0
votes
0answers
5 views
How do I run a ruby program on the Raspbian (raspberry pi 3) OS?
I must be missing something, but I'm having a hard time figuring this out. I have a ruby program written on RubyMine on my laptop. Quite simply, I want to run that program on my raspberry pi on ...
0
votes
0answers
8 views
Printf with redefined stdio not formatting correctly using usart
I'm working with an Arduino Uno with an Atmega328p microcontroller using an AVR bootloader with Atmel Studio.
I've set up USART communcation and it successfully can send data that is read by a ...
0
votes
1answer
10 views
Why is the document height equal to window inner height + pageYoffset in angular?
I am trying to detect when an user has scroll to the very bottom of the page.
The solution that I end up with is the following
var windowHeight = "innerHeight" in window ? window.innerHeight : ...
0
votes
0answers
3 views
Parse check new item created in background
I have a IOS Objective c app that I need to preform a action once a new object is created in Parse. Is there some way I can wake the app by making it query by the user who created the object.
0
votes
0answers
7 views
Why sed giving me new file as a backup file instead of original file
In folder TM_only, I put the command to execute,
awk '{print $1}' ~/desktop/file/N-glyco-TM-common/baker.txt | xargs -n1 -I name sed -i.txt '/name/d' ~/desktop/file/TM_only/baker.txt
What it does ...
0
votes
0answers
4 views
Ionic build Android failed parse error
I have a problem with Ionic build Android: When I try
to build my app with Android platform, I get a error
***Config:***
NodeJS 4.4.5
Ionic 1.7.15
JDK 1.8.0_65
target=android-23
when I run ...
0
votes
0answers
5 views
c# Kinect 2.0 How to compare motion
How can I capture a 'throw ball' motion like in the picture below and when other people do this motion I can check if they are doing a 'throw ball' motion?
0
votes
1answer
11 views
Can't get scipy.io.wavfile.read() to work
I am trying to read a .wav file into an array so that I can then plot the array and do a FFT. I got the file open with the wave module and now I am struggling. I was advised to use ...
0
votes
0answers
3 views
Selecting Specific JSON Response Items in python 3
im new to coding in python. I generally use html but i thought it was time to dive into something new. After hours of searching and reading here, i'm still puzzled.
I'm trying to select specific data ...
0
votes
0answers
3 views
oAuth 2.0 API Consumption via C#
Our client had a requirement to integrate their API with the website that we are developing for them. And the API authentication is done via oAuth 2.0. They have provided all the necessary info as to ...
0
votes
1answer
13 views
SQL with WITH clause too many values error
--This query is returning a "too many values" error. I'm not sure why?
update myTable
set var1= var2
WHERE value1 IN (
WITH X AS
(
...
0
votes
1answer
8 views
how to update a resulting table from a query
i m trying to update a table which is a shorter version of my original table. What i have is the following:
UPDATE (SELECT * FROM bookings_tbl
where ACCOUNT LIKE 'RENTA%' AND PART_TYPE ='HARDWARE')
...
0
votes
3answers
15 views
css background image not displaying in html table
i have added this style to a table td
background-image:url(square_image.png); background-size:auto; background-repeat:no-repeat;
but the image is not displaying in the background
0
votes
0answers
3 views
How to send an input as a parameter to a route? Symfony-Bootstrap
This is my situation: I'm using Symfony and Bootstrap and I have this input text field:
<div class="col-xs-3">
<input type="text" class="form-control" id="amount" ...
0
votes
0answers
16 views
javascript confirm box shows unwanted message
I am using below code to show a confirm box. I see "this site says" in the alert. How can I remove that text? I don't want to use Jquery UI library.
var r = confirm("Press a button");
if (r == true) ...
0
votes
0answers
9 views
click the print button in chrome browser using c++
Hi do you know guys how to click the button in the print setting of chrome using c++ or do you know how to print in a php without showing the print setting of chrome. With that I can call a php file ...
1
vote
0answers
7 views
Disallow safe mode on launch for Selenium in Python?
I'm trying to launch into a website using a Selenium MWE:
from selenium import webdriver
browser = webdriver.Firefox()
browser.get('http://seleniumhq.org/')
However, it's not working. The process ...
0
votes
0answers
9 views
display string next to rectangle
Basically I got this piece of code:
Graphics G = e.Graphics;
Pen pen5 = new Pen(Color.DodgerBlue, 0.01f);
var rect2 = new RectangleF();
GraphicsPath maliOkvir = new GraphicsPath();
...
0
votes
0answers
4 views
Threaded Python TCP Client Class continuously calls Receiver method and blocks Send method
I hope the title is appropriate. If not please suggest an alternative. I am working with the following Python Client Class.
import Queue
import socket
import struct
import threading
import time
...
0
votes
0answers
3 views
Using Spring Boot for integration testing (using 1 servlet and 2 database sources)
I am new to Spring Boot and would like to do something like this. I've two Oracle data sources and one Java EE servlet. So in the integration test I've to call the first database and run a query. Then ...
0
votes
0answers
9 views
Android logcat: FATAL EXCEPTION: main (HELP)
My aim is chronometer will keep time while click button. Time will list. Then will send Result activity. List(time) with answer will show in pie chart.
e.g. Random question and previously selected ...
0
votes
0answers
8 views
Adding an Activity in Android Studio causes app to have Unexpected Error?
I am creating an app which when pressing a button causes it to go to a new activity/window. However I keep getting an unexpected error every time I try this.
The following is part of the error from ...
1
vote
0answers
12 views
python data structure with multidimensional numpy arrays
So I have some irregular, multi-dimensional data that I'd like to be able to index by the 'age' and 'Z' value.
For each 'age', and 'Z' I have and array of 100 wavelengths and assoc'd fluxes (ex ...