All Questions

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

Python pip install “DistutilsOptionError: can't combine user with prefix, exec_prefix/home, or install_(plat)base”

I am trying to install Python's cryptacular package but keep running into an error: Without sudo: $ pip install cryptacular Collecting cryptacular Using cached https://files.pythonhosted.org/...
0
votes
0answers
2 views

Is there any way to write tray switch and Duplex command in Postscript file converted using Artifex

I have converted PDF to Postscript using ghostscript. The output generated is in encrypted format. I want to add Tray Switch and Duplex Printing command inside the Postscript so that printer is able ...
0
votes
0answers
6 views

why does nested for loop create some duplicates in results?

so for some weird reason my results spit out a few duplicates and i'm not sure why such thing is happening or how to resolve it either. i'm fixing code that i did not write and there are no comments ...
0
votes
0answers
2 views

Implementing required method in all inherited classes, with parameters depending on inherited type

Let's say we have several different classes: RecordTypeA, RecordTypeB and RecordTypeC. They each need to implement a method bool isMatch(), which will take an instance of an object of the exact same ...
0
votes
0answers
2 views

How to poll an api and ignore “events” I already have?

I am hitting an api every minute to grab all events. I then store those events into my SQL database. Currently, I just hite the API and bulk insert all into my database while ignoring dupes. The ...
0
votes
0answers
6 views

Python : I am trying to replace a string 'redlight' with 'greenlight' within a list

I am attempting to use the string replace function, but cannot execute. The code I have so far is: def replace_rf(f): for line in f: if 'redflag' in line: line.replace('...
0
votes
0answers
2 views

What is the best CI/CD solution for deploying Node.js with PM2?

Currently, my team has to connect SSH to a server then update code, build it and start an app by PM2 CLI. I'm finding a better solution to integrate a CICD into our workflows so that team members just ...
0
votes
0answers
6 views

WorkManager: Do you need to manually dispose of Observables in a Worker?

Lets say in your doWork() method you have an Observable that emits the progress of a download, do you need to manually dispose of this Observable to avoid memory leaks? And thus use RxWorker? ...
0
votes
0answers
5 views

How to pass an array into SoapClient?

I am trying to pass a "product" array into SoapClient, but it is passed as emtpy. What can be the reason ? MY CODE: $gg_api_key = '123'; $gg_secret_key = '321'; $gg_unix_timestamp = round(...
0
votes
0answers
5 views

WordPress and Angular implementation

I am trying to create a single page website. I want to do it in Angular version 8+ and WordPress. Most of the solutions are for react or AngularJS. I found one solution which only shows how to fetch ...
0
votes
0answers
5 views

Was wondering how I could improve this bash script for setting up laravel directory and file permissions?

Created this for file permissions for laravel, got sick of doing this in terminal. The usergroup for httpd is apache in Fedora. Wrote it in bash drop it in my project folder and it seems to work just ...
0
votes
0answers
4 views

How do I test row by row error handling in SSIS?

I am new to error handling in SSIS, I am wanting to know how to test it properly. I found lots of examples of error handling for various transforms and sources complete with test cases, but want to ...
-1
votes
0answers
8 views

No data in dropdown list but added in database in asp.net

I am working on .net(1.0) older version software where userid is store in session. In one of my page user need to select value from dropdown list but when data is storeing in database it store the ...
0
votes
0answers
10 views

How to do logical comparision to dataframe column value using cursor excute in pandas

I have dataframe(df) like below df MAX_TIMESTAMP 2020-01-24 03:07:40 I want to pass a value from dataframe column and apply greater than comparison the below query. My query cursor.execute("""...
0
votes
0answers
7 views

Google Calendar update using Google Spreadsheet

I used this code to send reminder to people:Cannot find Google SendEmail function I also want to update the code to be able to send the data from spredsheet to google calendar and I use the following ...
0
votes
1answer
9 views

How can I get subsets for multiple data frames at same time?

I have 100 data sets about data for 100 different locations. I want to get the subset of the same variables for each data set. Something like: dataset1<-subset(dataset1, which(gender=='F')) ...
-1
votes
0answers
13 views

Is it possible to select an “a” tag by ID using Jquery

I tried .hasID in a conditional statement as below, but all my Google searches pointed to .is which does not work. The below full code changes a div class to "current" and should do two things: Swap ...
0
votes
0answers
9 views

Can pointcut expressions match generic parameter in Java methods?

My problem is that I my pointcut expression doesn't seem to match a method call and therefore is not executed. I suspect it has to do with generics in the parameter list. The method I am trying to ...
0
votes
0answers
9 views

Is it possible to set mouse cursor to a custom image globally (i.e. not just while hovering my app)

I know it's possible to set the mouse cursor to a custom image while the cursor is over my app window, but I'd really like to be able to have that custom image still be the cursor even when the cursor ...
0
votes
0answers
9 views

Scan qr code untuk update data di database mysql [closed]

halo disini saya punya kasus, jika kita mengscan qr code, point saya bertambah sekian, dan ketika mengscan lagi akan bertambah lagi dari point yang sebelumnya, dan terupdate ke database sesuai dengan ...
0
votes
0answers
5 views

How password hash and salt stored in Symphony database?

I am migrating a project from Symphony to Django. I need to import all users with passwords. To do this I need to know how passwords are stored in the database. For each user password I need to know ...
0
votes
0answers
7 views

PHP Login page not linking correctly

I'm pretty unfamiliar with SQL and managing databases. For the first time, I'm trying to implement login functionality for website and it's not going well. I'm loading the page (no problem there), but ...
0
votes
0answers
4 views

Extract Windows scheduled tasks details with Python

I'm trying to extract all scheduled tasks in small network and store them in DB. I tried using win32com.client like in the code published here : Python check for Completed and failed Task Windows ...
1
vote
0answers
6 views

Fixed tr height, with unknown multiline div inside

I have a table with rows that need to be constant height. (Also width--but table-layout:fixed seems to solve this.) The <tr>s have <div>s inside them, and they need to occupy 100% of the ...
0
votes
0answers
5 views

s3fs mount error: specified passwd_file is not readable

I am trying to port ftp server on linux ec2 instance. Password authentication file exists in /etc/passwd-s3fs with permission 600. But when I run command: $ s3fs bucketname /home/s3/s3mnt -o passwd-...
0
votes
0answers
4 views

Cannot complete knitting r markdown project to pdf or HTML

I have my r markdown project and when I try to knit it to pdf or HTML it loads until I get to the bottom. I then get this error code. I have never used LaTeX before so I don't know if it is an issue ...
0
votes
0answers
8 views

Highcharts Treemap Tile Name Blocking Click

I have a Highcharts treemap with an id name for each main tile: { id: '<%= datum['name'] %> - <%= datum['name'] %>', name: '<%= datum['name'] + "-" + datum['name'] %>' }, { ...
-2
votes
0answers
10 views

Why is Entity Framework producing nested SELECT queries with duplicated SQL?

I'm using Entity Framework logging to look at the SQL generated by my queries. In many cases the SQL that's produced has SELECT statements operating on subqueries that are identical to the original ...
0
votes
0answers
5 views

docker-compose up hangs forever

I have a project with a dockerfile and a docker-compose.yml for deploying it. But if I run docker-compose up, the command prints Building app and hangs forever. I do not see any steps being performed. ...
0
votes
0answers
4 views

Having error at db.session.add when I tried to execute function using apscheduler

I implemented API in Flask and working correctly. (Get some data from other API endpoint and store into database) I also want to call this API as a cron job. Thus, I am using apscheduler to execute ...
0
votes
1answer
9 views

How to use xlookup for value between two number in Excel?

I have a set of time attendance value and want to look for time attendance between two time points of specific ID as the image. How can I do that?
0
votes
0answers
9 views

ROUND OFF Decimal value to the nearest lowest .50/.00 numbers [duplicate]

I want to Round off my decimal values to the nearest lower .50 or .00 values. For Example: 5.10 -> 5.00 5.49 -> 5.00 5.51 -> 5.50 5.99 -> 5.50
0
votes
0answers
7 views

Failed Install PostgreSQL in windows

I tried install PostgreSQL and while install pop up warning message "Problem running post-install step. Installation may not complete correctly The database cluster initialisation failed". I check in ...
0
votes
0answers
3 views

activate diffrent conda installation from sshfs

Good Day to you all, I was wondering if it is possible to use a shared Conda installation on a remote machine. The remote machine is running ubuntu 12 (I have no influence). I use in Windows 10, with ...
0
votes
0answers
6 views

Regex to remove a portion of the URL in Google Analytics

Is there a way to write a regex to remove a portion of a URL, then aggregate the data in a Google Analytics view? We use country and language in our site URLs so I'm looking for an easier way to ...
0
votes
0answers
3 views

Verilog - Assigning value to a reg twice in a single always block

I am working on a counter that counts the number of bits high in an input bit-stream of variable width. The code is as follows: module counter(i_clk, i_arst, i_data, o_done, o_cnt); // ----------...
0
votes
0answers
3 views

Siebel migration to IP17

Is there any way to import siebns.dat from IP16, that already used, to clear (new) installation of IP17? We need to import all configurations to zookeeper and there is no way out.
-1
votes
0answers
3 views

Unable to send a message to the user in the django-private-chat integrated in the application?

I am a newbie to django and I am doing an application which needs one to one messaging I had integrated the django-private-chat in my application by following the steps in the documentation https://...
0
votes
0answers
4 views

Terraform for_each for maps inside map

I am wondering if it would be possible to iterate over a structure like this using a combination of for_each/for module "network" { source = "../../" role = "test" ...
0
votes
0answers
7 views

Can I use the Python SHAP package to get the marginal contribution to RSquared for each feature?

I am trying to reproduce the example at this link ([http://www.real-statistics.com/multiple-regression/shapley-owen-decomposition/]) and I was wondering if there is a way to do this with the Python ...
0
votes
1answer
9 views

add a character to a list python

I have a list of items, say x = ['Zwi', 'sche', 'n', 'ab', 'schlus', 'ses'] I am trying to write a loop to add hyphen between one word at a time and the result should be something like below: Zwi-...
1
vote
0answers
19 views

Treating <dd> like a child of <dt>

I want to do something like this: dt.red { color: red; } .red~dd { border-left: solid red; } dt.blue { color: blue; } .blue~dd { border-left: solid blue; } <dl> ...
0
votes
0answers
8 views

Read html tags from xml file using java

I'm using xml parser (DocumentBuilderFactory) to parse the xml data(I/p obtained from API calls) inside my Java code. I have some html tags(style information) inside an xml node which I want to retain ...
0
votes
0answers
5 views

Laravel 5.8.x (with AdminLTE) not showing flash messages

I noticed that my flash messages for some reason stopped showing. Using the password reset route (/passwords/reset), I saw that the e-mail is being sent, however, the return after POST should display ...
0
votes
0answers
8 views

Drawing straight lines like MS paint

I am trying to draw straight lines (in processing 3.5.4) like it is done in MS Paint tool (select a point by clicking the left mouse button and drag the pointer before releasing it to get the straight ...
0
votes
0answers
7 views

How I can fix this error? connection to mysql

enter image description here This is my code and this is the error that im experiencing Connected successfully Notice: Undefined index: firstname in C:\xampp\htdocs\elective4\android_register.php ...
0
votes
3answers
20 views

Reduce decimal places in sql queries

all my sql queries return numbers with multiple decimal places. Queries similar to the below. Which gives an output of $37508.9845264100. How can I reduce the decimal places to 2? SELECT SUM((dbo....
0
votes
1answer
14 views

Python : Sorting first column with associated two others columns

I have a file with indexes on the first columns which are written randomly. I have for each one of these indexes 2 others values corresponding to the second columns and third columns. For example, I ...
0
votes
0answers
7 views

how to use optional() method in controller laravel

hay i have 2 array like this foreach($kelas as $value) { $siswa[] = Siswa::whereIn('id', $data[$value->nama_kelas]) ->with(['ortuwali', 'wali', 'pribadi', ...
0
votes
1answer
10 views

why am I getting a none being printed after my display function?

I am getting a none by the end og my display function, doe anyone know what i am doing wrong? class Person: def __init__(self): self.name = 'anonymous' self.birth = 'unknown' ...

15 30 50 per page