All Questions

Filter by
Sorted by
Tagged with
0
votes
0answers
4 views

How to get value of object with array of column?

I have m_user_form table with columns: #<MUserForm:0x0000560565e976c0 user_form_id: 1401, site_id: 1071, filed_name: "Kana", db_column_name: "last_name", input_type: nil, input_rqrd: 1,...
0
votes
0answers
4 views

keep the first nth items of a dataset

I want to prepare a pd.DataFrame with data relating with machine maintenance. I want to clean my targets (entry in the example below) to only keep the first 2 elements of groups. I have a POC with pd....
0
votes
0answers
5 views

when mysql will assign a transaction id to a transaction

I want to know when mysql will assign a transaction id to a transaction。 when I start a transaction by enter begin in command line,will the mysql assign a transaction id to this transaction?If not,...
0
votes
0answers
4 views

Error undefined is not an object when get value from TextInput on react native

class LoginComponent extends Component { constructor(props) { super(props); this.state = { email: "", password: "" }; } onLogin() { const { email, password } = this....
0
votes
0answers
4 views

filling rows based on column value

I have a csv file in which it has 723626 rows, and i want to fill the rows which has the same second column with same color. There will be two colors yellow and orange just to make it easier to read ...
0
votes
0answers
4 views

Google Authenticator ValidateTwoFactorPIN(UserUniqueKey, token) always false MVC 5

Hello frieds i'm trying to implement 2FA with google authenticator but i'm not able to get in working. i'm following the next article http://demo.dotnetawesome.com/two-factor-authentication-in-aspnet-...
0
votes
0answers
3 views

React Native Geolocation.watchposition stops working when app put in background or device is locked

I'm trying to capture device`s geolocation intending to track my company cars when delivering. For that, I'm using Geolocation.watchposition and it's working very well on IOS and most part of android ...
0
votes
0answers
7 views

Java(Spring boot) application download file without output in linux

I have a Spring boot based java application runs in containerized linux with java -jar command, which is started by root user. The question comes from operation like this in this app: Download file ...
0
votes
0answers
9 views

LLVM AArch64: How to cast [2xi64] to [i8,double]

I'm trying to employ impala in AArch64 and have encountered some problems about the different struct IR between x86 and AArch64, generated from the same code, which is possibly because they have ...
0
votes
0answers
6 views

Is it possible to upload while device is locked in iOS?

Is it possible to do an upload while the phone is locked or it's an OS restriction? Are there apps out there that have done it? I've been searching for a while on a solution for uploading data while ...
0
votes
0answers
6 views

Use environment variables in blueocean without them commiting to git repo

When I run a docker container with docker run docker run -d --memory=100m --cpus=0.5 -e SECRENT_ENV=$SECRET_ENV -e name=name --network=nginx-proxy image-name via blueocean in jenkins and set an ...
0
votes
0answers
6 views

REST Call from java stream

I have client which call Rest API which accepts string value in path. In my service class I have List of Strings for each string from list I have to call client and collect JSON response in array (...
0
votes
2answers
16 views

How do I make an regular expression that findall text that is in between a and (b or c) in python?

I want to make a regular expression where it returns all the occurrence of text that is in between a and first occurence of b or c. so I tried this code: text = 'dfgahfjbjicij' re.findall('a(.*?)(b|...
-1
votes
0answers
7 views

How to fix “this cannot be referenced from a static context” [duplicate]

How to fix this cannot be referenced from a static context public static void SchedulePeriodicJob() { SharedPreferences preferences = PreferenceManager.getDefaultSharedPreferences(this); ...
0
votes
0answers
6 views

For concrete classes that implement multiple interfaces, how can clients to that class follow Dependency Inversion?

My issue is that I have a concrete implementation which implements two different interfaces. In the spirit of Dependency Inversion Principle, I would like clients to this class to only depend on an ...
0
votes
0answers
5 views

How to publish a table using JSON format to MQTT server in DolphinDB

I want to publish a table using JSON format,the table is defined as below, COLS_READINGS = `time`device_id`battery_level`battery_status`battery_temperature`bssid`cpu_avg_1min`cpu_avg_5min`...
0
votes
0answers
8 views

convert first row data to dictionary and remove nan values

I need to convert the first row to a dictionary and then remove all "nan" values. This works... pd.Series(df.head(1).T.to_dict()[0]).dropna() Or. this one... df.head(1).dropna(axis=1).T.to_dict()[0]...
0
votes
0answers
8 views

Pseudocode, Algorithm and Flowchart Questions

Computer programming concepts - algorithm, pseudocode and flowchart I am new to programming. For the following questions, I have researched online and watch a few YouTube videos to attempt the ...
0
votes
2answers
19 views

Type and change a div innerhtml immediately

I am trying to make a function where I type something in input it change immediately the innerhtml of div nearby. HTML <input type="text" class="form-control" id="span_data" placeholder="Example ...
0
votes
0answers
4 views

“Fatal error: require(): (include_path='.:')” Error when running PHP file on Terminal (OS: MAC OS Mojave v10+)

I installed Composer globally and it works. I tried creating a project using a third Party PHP Library from Github, I installed it using Composer. The problem is when I run the main PHP file in the ...
0
votes
0answers
7 views

Setting user roles during registration in Spring Security

<div class="form-group"> <div class="row"> <div class="col-sm-4">Login as:</div> <div class="col-sm-8"> <div class="input-group">...
0
votes
0answers
6 views

Why is nginx root path cannot be found anywhere in local machine and container?

My company use docker to deploy the environments and one container is the nginx container. I'm starting to learn and I'm confused about a small thing: Below is part of the nginx.conf file: events {...
0
votes
0answers
5 views

Init scripts not executing on MongoDB docker containers

I am expecting a JS file to run when mongoDB docker container boots up https://hub.docker.com/_/mongo#initializing-a-fresh-instance I have the following code in docker-compose version: "3.7" ...
0
votes
1answer
6 views

Trying to connect to a PostgreSQL DB via “pgsql” DSN returns “ERR [unable to open database file]” on FreeSWITCH 1.8

When I try to connect to a remote PostgreSQL server, I get 2019-08-23[ERR] switch_core_db.c:223 SQL ERR [unable to open database file] when using the FreeSWITCH Lua API with a pgsql connect string: ...
0
votes
0answers
5 views

How to directly save confirmation page after submitting form with captcha?

There is a site that contains three steps: 1) First page contains a long form with text captcha. 2) Second page is confirmation page with all details filled in the first page. 3) Third page is the ...
-1
votes
0answers
9 views

Having issue with flask site, giving 500 server internal error

I am having issue with flask site, it was working fine, i was inserting data in mysql, but suddenly it stopped working and start giving me 500 internal error. "The server encountered an internal error ...
0
votes
1answer
7 views

How can I get rid of part of a filename from a HTML IMG string in TextMate?

I'm using TextMate's RegEx find and replace. I have: <img src="filename-WxH.ext" alt="Bla"> And I want to make it: <img src="filename.ext" alt="Bla"> The only defined data I have is "-...
0
votes
0answers
5 views

Image isn't rendered with Razor

I have a method for upload a image to the server using Server.MapPath and HttpPostedFileBase, this work great, the image is uploaded but when I try to use the tag <div class="row"> @...
0
votes
0answers
4 views

How to fetch data from mysql and display on Front page?

I've created an admin panel for blog and everthing is working fine in admin panel, can read data and display. but i want to show the blog data on front end. so I've created an another model and ...
0
votes
0answers
5 views

(Napalm Automation) Getting indent error after using try except block while testing opening file/cisco switch with “with”

Getting an IndentationError: expected an indented block I am trying to connect to a device with the wrong credentials on purpose to test authentication exception. If I remove the try block and ensure ...
0
votes
0answers
6 views

Running server in background, while app does something else

I'm trying to make a desktop app that acts as the trigger to run a server. The app (the server) will also take in data from clients and saves them in the server's computer. I already made the server ...
-1
votes
0answers
32 views

What's the meaning of `@` in java class name? [on hold]

I tried to print out a class of an object by System.out.println(obj.getClass()). The return class name is [email protected], and confused about the meaning of the ccc after @
0
votes
0answers
4 views

Replacing static chart.js example with data from database

I have followed the tutorial on chart.js to create a static chart. I am using Laravel and AdminLTE and can output my sql database results on the same view. Can someone help me modify the static ...
0
votes
0answers
15 views

Ignored If - If Else - Else Statement in Number Guessing Game [duplicate]

I am still very much a beginner and have run into a problem with my number guess program. I wrote it out and since have been trouble-shooting online and cannot find a definitive cause for as to why my ...
0
votes
0answers
6 views

How to draw a bezier curve with textured color in iOS?

I want to simulate a paintbrush stroke when the user moves his finger to paint on the screen. I can record the coordinates of his stroke, and generate a Bezier curve with a certain width, but I don't ...
0
votes
0answers
17 views

Output format of numbers is not sorted java mapreduce program

The number output of reducer gives the output as dictionary order like it shows 2 after 19 and 3 after 29 but it should be in the number wise order. please help in solving this issue. Mapper code: ...
-2
votes
1answer
15 views

Can some one tell me how I can get out of this error

what is mistake in super https://i.stack.imgur.com/1FwQt.jpg this is final msg I get after running program- https://i.stack.imgur.com/yNiV2.jpg Sorry a cannot upload image I have shared link here ...
0
votes
0answers
9 views

What is the difference between asp.net , vb.net and c#?

Actually I am creating a website and i am using ASP.NET using c# , i would like to know that when we use ASP.NET and when we use C#? Basically What are their roles?(same for VB.NET)?
0
votes
0answers
14 views

Not Sure Why My Function Inputs Get Updated?

I have generated this function and I am passing through some input parameters (i,j,t) and I do some things with it. Now if you look at the output you'll see that I have some print functions labelled ...
-1
votes
0answers
5 views

How to program ESP-8266-01 with the correct pins using Arduino Uno?

When I give 3.3v and ground to the esp-8266. should'nt it launch a wifi hotspot by giving power? It's not giving a hotspot. What could be the problem? Wifi hotspot is not being shown when power is ...
-1
votes
0answers
11 views

R: Save a data.table as an image with Title

A follow-up question to this: R save table as image Is there any way to add Custom Titles and Headings to images generated by the following code? library(ggplot2) library(gridExtra) df &...
0
votes
0answers
6 views

Python-Invalid pagination mode

Hi I am getting the error: Invalid pagination mode. in my code below(in python/Anaconda), can someone help me with this? import sys import tweepy as tw from twitter import * from tweepy import ...
0
votes
0answers
8 views

Vuex create search filter

I'm new to VueJs and Vuex and I want to create a simple search filter. My app looks like this. Items -> parent ItemToolbar -> child ItemList -> child Items.vue <template> <div> <...
0
votes
0answers
11 views

How can I efficiently add data from dictionaries to a dataframe?

Inside a for loop I'm populating a dataframe using a dictionary that's returned from a function. Perhaps I'm not searching with the correct terminology or my approach to this problem is wrong, but I ...
0
votes
0answers
8 views

Can I use Koin's currentScope in Java Activities?

I want to use currentScope (https://github.com/InsertKoinIO/koin/search?q=currentscope&unscoped_q=currentscope) in an Activity written in Java. But it doesn't seem like I can import org.koin....
1
vote
1answer
25 views

my code keeps showing syntax error in my elif/else statements

I'm trying to make a basic pig latin translator but the editor keeps showing me a syntax error. ay = "ay" way = "way" consonants = ("b", "c", "d", "f", "g", "h", "j", "k", "l", "m", "n", "p", "q", "...
0
votes
0answers
12 views

Convert correctly currency

I have a default currency as USD. The part of the class below allow to convert different currencies but my problem is the conversion is always based in EUR as default. How to update the function to ...
0
votes
0answers
9 views

MX records and inbound emails

I think I have some confusion of what happens with emails... I have a domain domain.com and I send email from sendgrid using django with address [email protected] Now, I also want to send mail to ...
0
votes
0answers
10 views

UINavigationBarAppearance not working for image based bar button items

Xcode Version 11.0 beta 5 (11M382q) I'm using the new appearance APIs to tint the color of the bar button items when one of my view controllers is the top view controller. I'm using the following ...
-2
votes
1answer
7 views

SQL Server - Select across pairs of values from one column

How to query? id USD JP EUR VND result: col1 col2 USD JP USD EUR USD VND JP USD JP EUR JP VND EUR USD EUR JP EUR VND VND USD VND JP VND EUR

15 30 50 per page