Questions tagged [helper]
Additional functionality not defined in a class that the helper operates on.
1,954
questions
0
votes
0
answers
12
views
UMLS | extraction of all diagnoses related to BLEEDING
after installing the UMLS interface (Metaporphosys), I tried to retrieve all diagnoses/disorders that indicate BLEEDING.
when typing 'BLEEDING' or 'HEMORRHAGE' in the word search, the only results ...
-3
votes
2
answers
28
views
How can I append the list as a value to python dictionary
I have a list as follows
[
{A:a,B:b,C:c},
{D:d,E:e,F:f}
]
I want the dictionary to be
{
A:{
A:a,B:b,C:c
},
D:{
D:d,E:e,F:f
}
}
-1
votes
0
answers
25
views
how to stop python program that i have runned in cmd and closed the cmd and the program in not stoping now what to do
I have run my python program on cmd, and mistakenly closed the cmd, and the program still running in the background
the program is an auto wallpaper changing program please tell me.... what will I do? ...
-1
votes
0
answers
38
views
can you help me in my python code ? 'int' object is not callable [closed]
'int' object is not callable in my fnaf game.
Can you help me I tried everything
Here is my Code ||
/
class animatronics:
class Bonnie:
def __init__(self):
self.path = ["...
-1
votes
0
answers
40
views
How can I select a div inside another div to make a menu button
i am trying to make a menu button with a simple animation, but when I try to select it and toggle the active class, it won't work. Can somebody explain?
Here is the code:
<!DOCTYPE html>
<...
0
votes
0
answers
11
views
My codeblock keeps showing me this everytime I try to compile a program
Everytime I try to complie a program and run , it says
1d.exe cannot find -1sprite
1d.exe cannot find -1bgi
error : 1d returned 1 exit status
-1
votes
0
answers
37
views
What is the best way to implement utility class with services? [closed]
What is the correct way to implement utility methods which need services?
Let's say there is a FileService (it is a Spring bean with injected fields like DatabaseDAO) and lots of classes need zipping ...
0
votes
1
answer
71
views
The current Gradle version 6.7 is not compatible
I have this issue:
The current Gradle version 6.7 is not compatible with the Kotlin Gradle plugin. Please use Gradle 6.7.1 or newer, or the previous version of the Kotlin plugin.
enter image ...
1
vote
0
answers
20
views
argument is not passed to handlebars helper
I am new to handlebars, and trying to pass this as an argument to a custom helper. Pretty simple task, but in the helper, it turns out to be 0. Why doesn't it work? Here's helper:
hbs.handlebars....
-2
votes
1
answer
25
views
How to print object's content save in linked list using iterator in java [duplicate]
I have a class A which content is saved in Class B in a linked list i want to print that list using iterator But all i am having is its reference of its objects
Class A
public class A{
int num;
int ...
-1
votes
1
answer
53
views
AttributeError: module 'helpers' has no attribute 'load_dataset'
Tried to import and run helpers.load_dataset(path) or helpers.standardize(list) but says module 'helpers' has no attribute 'load_dataset'.
Tried ==> !wget -c https://raw.githubusercontent.com/...
0
votes
0
answers
107
views
Take a filename parse it and perform a SQL lookup, use the lookup value for final filename
I wish to take a filename, parse it sans the extension, perform a SQL lookup, and finally use the lookup value for final filename. This is being done on thousands of files and should have a ...
3
votes
0
answers
26
views
how to use akaunting / laravel-money helper function in blade html js script - Laravel
I'm attempting to convert the country code to the symbol for this I have used the below package.
Currency formatting and conversion package for Laravel akaunting
/
laravel-money - (https://github.com/...
0
votes
0
answers
27
views
use laravel config helper outside of laravel
Try to inject part of laravel in another site.
<?
include_once '/var/www/dev/vendor/autoload.php';
echo config("myconfig.myvariable");
Got some errors:
Fatal error: Uncaught ...
0
votes
2
answers
29
views
How to make a function executes after x seconds of its call using python
I don't want function to be called every x secs I want a function to be executed after some seconds of its call and rest of program executes in order.
Like in my code I want to call fun_2() in which ...
-2
votes
0
answers
14
views
Mobile network structure of simulation system
enter image description here
hello everyone
I want to design and work on the Mobile network structure of the simulation system. like this pic
using mininet
can anyone help me to do this
0
votes
0
answers
19
views
How to add a python file that includes custom-built function into kaggle notebook?
import sys
sys.path.append('../input/helper')
import helper
helper.get_genre_ratings(ratings, movies, ['Romance', 'Sci-Fi'], ['avg_romance_rating', 'avg_scifi_rating'])
----> 1 genre_ratings = ...
1
vote
3
answers
50
views
How to turn this list into a data frame? I would like to know how to do this in python?
I have a list in python which is showing like this just below. I would like to turn it into a data frame. I tried it: pd.DataFrame(myList), however the 'origins' column stores a list, however I would ...
1
vote
1
answer
35
views
How to test the callback for any actions in the controller using request.headers?
I have something like this controller:
class ApiApplicationController < ActionController::API
before_action :record_information_from_headers
private
def record_information_from_headers
...
0
votes
0
answers
44
views
send data from the app to bluetooth device
I'm making a flutter app with bluetooth connection , I succeeded in connecting my app with the device , but facing a problem in sending a data in the right time , I want to send data when ever I got a ...
-2
votes
1
answer
30
views
Reusing a single componenet
I'm trying to use a single component to render two different warning messages in a react app as the only difference in that warning message (I have both of them in a translation file) is wordings, so ...
0
votes
1
answer
27
views
Does request() helper work with laravel queue
I am trying to send email using laravel queue and database jobs table. In one of my file which is generating pdf which is attached with email has helper request()->organization, however it is ...
0
votes
0
answers
34
views
Error while creating my first data pipeline
So whenever i am creating a simple data pipeline in vs code
import airflow
from airflow import DAG
while DAG(dag_id ='simple_dag') as dag:
None
I am getting an error
Warning :root:OS Error while ...
-3
votes
1
answer
133
views
Convert Python to Lua
I have to convert this Python program I made a while ago into a Lua program. I've done some of it, I just can't seem to format my list correctly or take the data entered by the user and pass it ...
1
vote
2
answers
52
views
How to enable proxy with username and password using undetected_chromium?
I am using undetected_chromedriver but i can't get the proxy to work i don't know what's the issue as my code runs smooth but still don't enables the proxy.
I have working proxy with username and ...
0
votes
1
answer
99
views
How can add Laravel Helper in Vue js Inertia JS [closed]
Good day
I Beginner in Inertia Js and Vue Js i have one Helper for Laravel normally I use this code in .blade Laravel and working Helper::reaction_count($id,$reaction) but in Inertia Js i thing must ...
0
votes
2
answers
46
views
How to Use Helper Function that Calls an API to Work Inside of UseEffect Hook
I am new to ReactJS and am struggling on getting the useEffect to work properly. The below code works just fine:
const [expenditureItems, setExpenditureItems] = useState([]);
useEffect(() => {...
0
votes
1
answer
29
views
Discord bot js v13, is not removing the specific role and adding a specific role
My code is not working, I need your help. It does not show any it only adds position in some bots.
client.on('messageCreate', async(message) => {
// Membros role id = 871442068508123136
//...
0
votes
1
answer
53
views
Ruby on Rails NoMethodError in FoodItemsController#create
This is the error I am getting when I hit submit on my form for uploading an image. Can anyone help me out? I feel like the JSON serialize isnt working. which is causing the error.
class FoodItem < ...
1
vote
0
answers
22
views
Some exams ("HEM","G") below are not added to the exam line, I don't understand why they don't be printed
I don't understand why my program is skipping the two exams mentioned above.I really tried to think of solutions to my problem but unfortunately I couldn't
public class Main {
static ...
0
votes
1
answer
30
views
How can you use SSRS expression to calculate sum and average in tabular report
I want show the total for cost at the bottom should be
((112*1537)+(222*1567)+(54*2048))/388 = 1625
Currently I'm using the following expression but its giving me wrong avg
=(SUM(Fields!Units.Value))*...
1
vote
1
answer
40
views
Display yes/no with content_tag helper by boolean
I am trying to display a badge pill that says 'Yes' or 'No' based on it's boolean value, using a content_tag rails helper.
I currently have my helper method written out as
def boolean_for(bool = ...
0
votes
0
answers
9
views
Open cart 2 how to call a model method in a helper php file
I created a php file in helper which i call with ajax when a certain button is pressed. The ajax call works correctly. What i want to know is how to call a model method in a php file in helper, so ...
-5
votes
1
answer
50
views
How to get element from dictionary
I have such dict:
[{'info': {'symbol': 'GMT', 'contract_code': 'GMT-USDT', 'volume': '4.000000000000000000', 'available': '4.000000000000000000', 'frozen': '0E-18', 'cost_open': '1.425850000000000000',...
0
votes
2
answers
45
views
How convert string value in Javascript for decimal number [duplicate]
How to convert R$ 800,000.00 in string type to 800000 decimal type using JavaScript?
-2
votes
1
answer
39
views
How to create a navigation menu for existing site using HTML, CSS
I am pretty new to coding. My boss is asking me to add a navigation bar to the existing website so all the services are hidden in the Service option. Can anyone know a quick way to add this?
We are ...
0
votes
2
answers
125
views
for salt and hashing passwords i used Bcrypt method but its showing , error = new Error('data and salt arguments required');
for salt and hashing passwords i used Bcrypt method but its showing ,
error = new Error('data and salt arguments required');
i think my code have the problem please i need help please;
eCommerce ...
0
votes
1
answer
75
views
How to change an enum value in Java? [closed]
I have an enum Direction which shows legal walking directions. With the helper-method turnLeft
I want to change the value of the called enum Variable, but it does not work: The value of the enum ...
0
votes
0
answers
77
views
How to this warning fixed react owl carousel
I am tried to this error .please help me. .how to fixed this warning.. I using react project to owl-carousel and this return warning.. how to solve this warning
warning:
react_devtools_backend.js:3973 ...
0
votes
1
answer
378
views
No module named 'grp' error while importing helper function
I am trying to run the below command in python 3.7.3 in my windows laptop but facing the 'No module named 'grp'' error
import helper
0
votes
1
answer
36
views
how to make a variable work in a function?
I want to make a function that store the position, but the position variable in the function goes dark and when run it says:
UnboundLocalError: local variable 'favPlayer2' referenced before assignment
...
-3
votes
1
answer
55
views
helpers python | NameError: name 'helpers' is not defined
error screenshot attached here
i'm trying to list a map using 'helpers' in python. but it is giving me error
NameError: name 'helpers' is not defined
----> 4 processed_data = list(map(helpers....
0
votes
1
answer
24
views
why it doesn't output the product from the if loop
Everything works but it doesn't produce the workout and keep asking me to input the skill from the list. I want to ask the user to input the skill, output the workout and keep asking them to put ...
1
vote
2
answers
27
views
why does it pop an error when I already set a rule in while?
I already set if weight and height isn't an integer, ask to user to input it again. but it pop: "ValueError: invalid literal for int() with base 10" instead". thanks for helping
while ...
0
votes
1
answer
312
views
CodeIgniter 4: custom helper giving "Call to undefined function" error
I have researched common questions regarding Helpers in CodeIgniter 4 and none of the answers thus far have helped:
CodeIgniter Forum Thread-77770
StackOverflow Question-62404109
I have written a ...
0
votes
2
answers
46
views
ServerScriptService.leaderstats:41: attempt to index nil with 'leaderstats' in roblox
This is my code
game:BindToClose(function(player)
for _, Player in pairs(game.Players:GetPlayers()) do
local playerUserId = "player_"..Player.UserId
local ...
0
votes
1
answer
258
views
The argument 'path' must be a string or Uint8Array without null bytes. Received
ive been trying to run an old project of mine and i have this error massage in the console that says:
The argument 'path' must be a string or Uint8Array without null bytes. Received
this is a react ...
1
vote
2
answers
204
views
Binary operator expected in my bash script
With this bash script, I check the directory for *xls files, and if they are, I send them for conversion using ssconvert to *xlsx.
All this works if there is only one file in the directory. If there ...
1
vote
1
answer
45
views
Move a hollow circle on JButton click
I have to create a program that moves the circle using buttons, it doesn't move. I have tried lots of things but I'm afraid I should have organised the classes differently or I'm missing something. ...
0
votes
0
answers
14
views
Nokia G300 Sys Trace Results
HIDL::IQtiMapperExtensions::getPrivateFlags::passthrough. I ran a system trace on my android and I am just wanting to know if things like this are normal or not?