Categories
Development

What does this error means? Render methods should be a pure function of props and state

I’m totally new in React and had stucked with this error. Error occurs because of this method: deleteItem = (index) => { this.state.items.splice(index, 1), this.setState({ items: this.state.items }) } I also using @babel/plugin-proposal-class-properties If I change button onClick event to this: onClick={this.deleteItem.bind(index)} it starts working perfectly and i dunno why. Whole code example import React […]

Categories
Development

splitting 3 space seperated values in a string from the end of the string?

i have this string : “peter bull team tunnel rat 10 20 30” What i would like to do is to extract the last 3 values from the end : 30 20 10 How can i strip these last 3 fields backwards in python the smartest way ?

Categories
Development

how to write query for many to one mapped entity in JpaRepository

I have two entities and mapped those using manytoone annotation but after writing a query for find object using another table id I got an error when I commented out that line and method called to that application work but I want to implement that functionality and please help me below is my entity classes […]

Categories
Development

Django Pyinstaller .EXE gives me ModuleNotFoundError: No module named ‘app.urls’

I am trying to run a Django project using an EXE file compiled using Pyinstaller. But when I run the compiled .EXE file using this command I get ModuleNotFoundError: No module named ‘app.urls’ and another OsError: [WinError 123]. I will explain how I setup this stuff later. Here is the full error when I run […]

Categories
Ask Dogs Pets

[ Dogs ] Open Question : Why does my male dog have sex with male and female cats?

Last month we got another dog, a black lab mix. Hes not neutured. Is it an adjustment stress thing from moving? He f ucks any other animal that moves and goes after our cats. Most of them obviously dont like it. He also f ucked my neighbors two yorkies who come into my yard to […]

Categories
Ask

[ Singles & Dating ] Open Question : Is it okay to catch feelings only by texting?

I’m texting with this cute girl for 7 months already (every single day), she lives in a foreign country so we still can’t see each other…..  It was normal texting at the start, and there were stuff I did and stuff I didn’t liked about her. One day after 5 months texting, we got mad […]

Categories
Ask

[ Boxing ] Open Question : Eusebio Pedroza 1982 vs Salvador Sanchez 1982, who wins and why?

Categories
Ask

[ Singles & Dating ] Open Question : If a man is telling a woman jokes, or joking around, to make her laugh, does that mean he likes her romantically?

I am talking about in general. In other words, if a guy is very humorous to a woman, is that usually because he likes her and wants her to like him and be impressed by his sense of humor?

Categories
Ask Polls & Surveys

[ Polls & Surveys ] Open Question : Would you give up everything and travel the world?

Categories
Ask LGBT

[ Lesbian, Gay, Bisexual, and Transgendered ] Open Question : Best friend hates me now for faith and sexuality?

Im 19, shes 22. She is a flaming asexual. She inspired me to finally come out to what im doing. I am kind of a freelancer in religion. I worship entities I find attractive or interesting and try summons for communication or sexual contact when I have spare time or get a new idea. The […]