Felix

1

votes
2

answer
19

views

VMWare Ubuntu warns me on no disk space, but GParted shows there is lots of space

I have a vmware ubuntu allocated with 300G of disk space, but recently I got a disk space warning. I run df -h as this: Filesystem Size Used Avail Use% Mounted on udev 3.9G 0 3.9G 0% /dev tmpfs 797M 88M 710M 11% /run /dev/mapper/vgroot...
Felix Xu
744

votes
21

answer
462.8k

views

How can I access and process nested objects and arrays?

I have a nested data structure containing objects and arrays. How can I extract the information, i.e. access a specific or multiple values (or keys)? For example: var data = { code: 42, items: [{ id: 1, name: 'foo' }, { id: 2, name: 'bar' }] }; How could I access the name of the second item in items...
Felix Kling
1

votes
2

answer
35

views

Laravel Mail not passing public variable to view

I want to pass a string into an email in Laravel, but the string is not being shown when viewing the email. $recoveryString being passed into the mail: $recoveryString = str_random(128); $recoveryString = urlencode($recoveryString); RecoveryToken::where('user_id', $user->id)->delete(); $recov...
Felix Maxime
1

votes
1

answer
42

views

Where does `mv file.sh /~` move the file? [closed]

I moved a file with mv file.sh /~ So I moved the file from the current directory to /~. However I have not idea what/where /~ is.
Felix Hohnstein
1

votes
2

answer
38

views

Assigning line to second y axis in ggplot

I am trying to create a quite complex plot. The result should be a stacked and grouped bar plot with additional lines based on a second y axis. So far I managed to create the stacked and grouped bar plot (pseudo-grouped, enough for me) but I suffer at assigning the line part to the second y axis. l...
Felix Grossmann
1

votes
2

answer
263

views

Error: android.widget.LinearLayout cannot be cast to android.widget.ImageView

There was already someone else with a similar problem, but I couldn't understand the anwser and I wasn't able to add a coment to receive more informations. So please help me! This is my main JavaClass package ch.androidnewcomer.muckenfangfinal; import android.app.Activity; import android.app.Dialog...
Felix Hegg
1

votes
0

answer
64

views

Clang exception capturing not working correctly

I'm using the clang x64 compiler on MacOS 10.12. I have the following code: try { throw CryptoPP::Exception(CryptoPP::Exception::OTHER_ERROR, 'test'); } catch(CryptoPP::Exception &e) { std::cout
Felix
1

votes
1

answer
388

views

Python py_compile into a specific directory

Is there a way to Compile .py files into a specific directory? For example i have an pythonscript in /Users/User/test.py and want to compile it into the directory /Users/User/Desktop . Is there a way? Im using Python 3.6
Felix Eckert
1

votes
0

answer
68

views

Is there a way to specify trusted origins for post requests in google web app?

Let's say i created a google sheet to capture user's email addresses. On my website there is a small form and once the submit button is clicked and an ajax request to a google web app that writes data to a sheet is fired: // Let's select and cache all the fields var $inputs = $form.find('input, sel...
Felix
1

votes
1

answer
274

views

Using JSON with AES is throwing javax.crypto.IllegalBlockSizeException

When I encrypt with AES/CBC/PKCS5Padding a normal String there is no problem. When I use a JSON String which contains typical JSON type data and it throws an exception when doing Decryption: Full Exception: Exception in thread 'main' javax.crypto.IllegalBlockSizeException: Input length must be multi...
Felix Gaebler
1

votes
1

answer
130

views

Aliasing boost::variant or std::variant not compilable

Currently my library uses boost::optional and boost::variant. Since C++17 is out, I would like to add an option, that it works with the boost and std. So I tested the complete code with boost optional and variant and std optional and variant successful. So I added a header files that is similar to t...
Felix Petriconi
1

votes
1

answer
67

views

Centrally aligned “Point-wise” colors in beeswarm

Is it possible to draw a beeswarm plot such that point-wise colors are aligned in the horizontal center? (I believe this would improve the readability a lot especially if the data is not as clear-cut as in the example.) To achieve this plot with centered colors: beeswarm(breast$time_survival, pch =...
Felix Dietrich
1

votes
0

answer
182

views

Actions SDK/Dialogflow waiting longer than 10 sec for User Input

I am currently developing my first app for Google Assistant using Dialogflow. Now if I say nothing for 10 seconds, the intent is repeated. After this happens 3 times, the intent is closed. That's the case with my Google Home devices. For my smartphone, the Assistant waits several hours for the answe...
Felix
1

votes
1

answer
28

views

Passing a callback to a function that is prefixed with await. Order of excecution

Let's say we have a mongoDB with cars, and users can add cars. The goal is to prevent more than one car with an identical license plate to be saved. Stack is node/express and mongoose. Scenario: A car with the provided license plate DOES already exist in the db. First attempt: console.log('Before ch...
Felix
1

votes
1

answer
506

views

PROTRACTOR - Failed: element.all is not a function

I have a problem to use the element.all function. My guess is, that it has problems with an id. I know an id should be used one time only, but I am testing the software only and have no possibility to change this id to a class. So maybe there is a solution to get it with element.all and then process...
Felix Lueth
1

votes
0

answer
73

views

Is there a way in Hystrix to signal an error to the circuit breaker without using an exception?

I'm using Hystrix in a scenario where some errors are communicated as normal results and not as exceptions. An example would be an HystrixObservableCommand that returns a Observable: If the observable emits a response with status code lower than 500, then the response should be considered as being s...
Pedro Felix
1

votes
1

answer
60

views

Most efficient way to store changes on database

I'm working on a simple todo list just to practice, using ASP NET MVC, Entity Framework 6, SQL Server 2012 Express, KnockoutJs. I want to know what's the recommended way to insert or update the changes made to the database. So far I've thought about: Add a 'Changed' column to every task, and update...
1

votes
2

answer
38

views

3 Count functions returning the same value

So i have this query: SELECT Posts.[Post ID], Count(Comments.[Comment ID]) AS [CountOfComment ID], Count(Shares.[Share ID]) AS [CountOfShare ID], Count(Likes.[Like ID]) AS [CountOfLike ID] FROM ((Posts INNER JOIN Likes ON Posts.[Post ID] = Likes.[Post ID]) INNER JOIN Shares ON Posts.[Post ID] = Sh...
Charlie Felix
1

votes
0

answer
115

views

reshape with * Operator

can u please help me understand reshaping a matrix with the *operator? Tried googling and check the documentation of reshaping but couldnt find anything using it with *: matrix = matrix.reshape(*matrix.shape, 1) Following up that question can one of you help me understand the use of the line in this...
Felix Schäfer
1

votes
1

answer
163

views

Increase Chart Size of WPF Chartingtoolkit

Im currently working on a little Project, where i make use of the WPF Charting Toolkit. now im a bit annoyed by these huge margin this is the XAML from the chart. is there any way i can make the Chart bigger
Felix Stumvoll
1

votes
0

answer
57

views

Non-failing timeout using ctest

I am specifying a test in my CMakeLists.txt which runs an executable and is supposed to look for a specific output (the PASS_REGULAR_EXPRESSION) to determine success. Since the binary doesn't terminate itself, I would also like to terminate the executable after some TIMEOUT. The test should pass if...
Felix
1

votes
1

answer
305

views

UITableView - How to change the background color of cell during drag drop?

I'm implementing drag and drop between two UITableView's. When dragging an item over tableView, the tableView automatically displays the space where the new cell will be inserted. I'd like to highlight that space by changing the background color. Currently, the space for the new cell shows in whit...
1

votes
1

answer
51

views

c++ incremental type ID across compilation units

I need each derived class to have a unique ID, but the ID's need to be incremental. Here is my current implementation: //component.cpp class ComponentId { public: ComponentId(); static int nextId; int id; }; template class Component { public: static const ComponentId componentId; }; template const C...
felix bridault
1

votes
0

answer
23

views

Is it possible to add dynamic option to SettingsPane?

I use a SettingsPane to manage application settings. I want the user to be able create any number of Account option. This is a parent option which have children options like name, server, port, user and password. Each of them has extended description. If I add a new option through a button, Settings...
Felix Bordea
1

votes
1

answer
90

views

A-Frame performance issue in Chrome?

I have been working on an A-Frame demo (code on Github). There seems to be huge performance difference when I run my project in different browsers. I am only getting
Felix
1

votes
1

answer
135

views

Inclusion of a header-only library to multiple files producing a linker error

I'm using a header-only single-file 'library' to load .obj-models from a file into a graphics program. A simple linker error has popped up: LNK2005 'Info here' already defined in main.obj Now I know what this means and normally I'd proceed with moving the implementation to a separate file. However,...
Felix
1

votes
0

answer
375

views

Client-side Speech Recognition on a mobile browser?

I am working on a project that is targeted for browsers on smart phones. And I can't seem to find any way to do a client-side speech recognition, as the mobile version of chrome doesn't even support their own Web Speech API. Does anybody know how to have speech recognition working on a mobile browse...
Felix
1

votes
1

answer
199

views

Actions on Google smart home Experience?

I'm thinking about building a smart home, where i can Switch the lights on/off with my google home. I want to use a Raspberry Pi or similar, which is controlling a relais. I saw this video, where they show exactly this setup. They make it seem easy. Is there anywhere a tutorial, where they dig deep...
Felix Kunz
1

votes
1

answer
31

views

CSS-Items get initialised again when hovering over them jQuery

When the page is loaded all boxes get initialised (when scrolling they slide in). Unfortunately when I hover one of these boxes (after they appeared) the get initialised again so they slide in again. What can I do in order to ignore the hovering? (I want to keep the :hoverShadow!) Code: var allB...
Felix
1

votes
2

answer
50

views

In Microsoft SQL Server, how to split rows using datetime data

As I am working on a project for my university, I am supposed to create a dashboard for machines downtime. Every time that a machine is down during the day, the availability is calculated as [ 24 (hours) - Downtime / 24 (hours) ]. However, there are some situations where the machines are down more t...
Felix
1

votes
0

answer
47

views

Timer counter of a ROI in opencv

I`m trying to count the total time that a ROI (region of interest) stay in each part of my screen. In fact, i`m tracking a insetc with my cam and i need to know how many time it stays in the left side and in the right side. I have already gotten suceed in trakcing the insect, but when i try to put...
1

votes
0

answer
617

views

QSphereMesh in Qt 3D: how can I correctly add a texture on it?

I want to draw a semi-transparent textured sphere in Qt 3D (to plot some kind of colormap on it). I'm trying to draw a sphere and add a texture. The texture fits good on some regions of the sphere, but on the poligons near its poles it becomes sizzled. Can you tell me, what's my mistake? Here's my c...
Felix
1

votes
0

answer
610

views

AMP and storing data in LocalStorage

As far i know there is no possiblity to store data in local-storage within AMP Page. What would be the best solution for user personalized settings identification? While using server-side solution, for example the amp-list, does it imply that the user must be somewhat registered or logged in?
Christian Felix
1

votes
0

answer
27

views

http-auth unauthorized post requests

I have a website (example.com) with a front page (example.com/index.html) which display information taken from database. To manage database there is a subdomain (example.com/back). I want to protect this subdomain with an athentification. I'm using node js with express for the server, for authentifi...
Félix Arnoult
1

votes
1

answer
44

views

How to modify CAS 5.x to use rest api to check user's loginname and password

I am trying to use CAS 5.x, but don't known how to make the CAS to use the rest api to do the user identity work. e.g. CAS calling a 'user service' which will offer the api to check the user login name and password. Seems CAS 5.x is quite different from the 3.x version. Thanks a lot.
Felix Xie
1

votes
0

answer
32

views

Gradle: How can I add some files to the root location of my jar file?

I generate with gradle a jar file for my spring application and I want to add some resources to the root of the jar file. Current result: server.jar |--org |--META-INF |--BOOT-INF |----lib |----classes |------files from resources jar |------other stuff Desired result: server.jar |--files from resour...
Felix
1

votes
1

answer
63

views

React component lifecycle and initiating asynchronous processes

Consider a ReactJS scenario were a stateful component is responsible to fetch information from an outside HTTP API and present it. It is also responsible for refetching that information in reaction to DOM events (e.g. button clicks) or time intervals. If I correctly understand the new ReactJS 16.3...
Pedro Felix
1

votes
0

answer
607

views

Plotly: ImportError: cannot import name 'exceptions'

im using Python 3.6.4 in the Anaconda 3 built and for some reason I am no longer able to import Plotly, even-though I just used it hours before. When running import plotly, I get the following error message: import plotly Traceback (most recent call last): File '', line 1, in import plotly File 'C...
Jan Felix
1

votes
2

answer
30

views

comparing two value within a table and using trigger to update another column

I have a mysql table like below id id_dosen id_dosen2 tetangga1 tetangga2 1 1 2 null null 2 2 3 null null 3 1 3 null null 4 4 5 null null 5 4 6 null null 6 6 null...
Felix Candra
1

votes
2

answer
53

views

Django Slug raising error NoReverse Match

I am working on a django project(Django v2.0) which has users from different groups, this group is set up within the user profile. I would like to make the website more personal and have the user's group at the start of the website's url (added in through a slug), after they login. Ideally once the...
Felix

View additional