Categories
Mastering Development

I get AttributeError: ‘SubscriptionForm’ object has no attribute ‘model’ when I try runserver and makemigrations

When I do python manage.py runserver or makegrations I get this traceback issue. Where have I gone wrong? Please help. I"m trying to add this to the admin site as well. Thank you This actually worked once, so I’m not sure what I did wrong or what I changed to make this error come up. […]

Categories
Mastering Development

Using has many through relationship in Laravel

How can I get or display company column from contractors table to put it in my blade? I already try figured it out by using hasManyThrough relationship but it doesn’t work since all example that I made reference to is not having the same flow with me. contractors table id company residentials table id contractor_id […]

Categories
Mastering Development

How to group 2 udp clients?

What i’m trying to do is group 2 clients and make them communicate with eachother. So if 2 clients are connected they would only be able to communicate with eachother and if a third client got connected it would not be able to communicate with the 2 other clients but it would create another group […]

Categories
User Help Web Apps

Displaying a “friendly name” for an ID in Google Sheets

I have a spreadsheet in Google Sheets which contains information split across several sheets. To keep things consistent between sheets, I use numbers as IDs, like (very simplified example): Users: User ID, Name, Address, Products: Product ID, Product Name Orders: Order ID, User ID, Product ID This works fine, but the "orders" sheet is hard […]

Categories
Mastering Development

How to add manytomany relation in other class . In my case in InfoCreateView class

I am making a CV page, I want to link my Skill, Language etc class(table) to Main Person table/class, But for that, I need to submit skill table first because my person table contains the foreign key for skills. But as per CV form name & personal info comes first. Also, I can put the […]

Categories
Bitcoin Cryptocurrency Mastering Development

Issue validating message with bitcoinjs-message module

I am building a private blockchain in node.js to practice the concepts and coding of blockchain technology. To add a block with data, the user requests a message to be signed by sending his/her Bitcoin wallet address. The app returns the message to be signed, which includes the address received. The user then signs the […]

Categories
User Help

How can i get all data of specific person by simply enter a name in excel?

im creating a invoice for my business using Excel. Most of them are same customers. My idea is once i entered a name or tax number of my customer, all details of that customer should be automatically filled within respective columns. for ex: if i fill name, their mobile no, address, tax no every thing […]

Categories
Mastering Development

Implement SCD type 2 using databricks and delta lake

Hi all I want to implement scd type 2 using databricks and deltalake. However I want the code to be dynamic.. Say there are n number of tables so I should not rewrite the code. Example Here customers is delta table and updates is the updated table for records. Now if there are more tables […]

Categories
Cryptocurrency Ethereum Mastering Development

Flashloan callFunction being called internally

I had a chance to look at this contract. contract Flashloan is DyDxFlashLoan { uint256 public loan; constructor() public payable { (bool success, ) = WETH.call.value(msg.value)(""); require(success, "fail to get weth"); } function getFlashloan(address flashToken, uint256 flashAmount) external { uint256 balanceBefore = IERC20(flashToken).balanceOf(address(this)); bytes memory data = abi.encode(flashToken, flashAmount, balanceBefore); flashloan(flashToken, flashAmount, data); // execution […]

Categories
Mastering Development

Guess the number project is stuck with an error

I am a beginner. This is my new project (guess the number). I am stuck with an error. Problematic code line: if (user == randomwords(place)): Getting error: TypeError: ‘str’ object is not callable How can I resolve this? Complete code: import random allthewords =[‘ability’,’absence’,’academy’,’account’,’accused’,’achieve’,’acquire’,’address’,’advance’,’adverse’,’advised’,’adviser’,’against’,’airline’,’airport’,’another’,’ancient’,’auction’, ‘average’,’backing’,’balance’,’article’,’barrier’,’capable’,’banking’,’bedroom’,’caliber’,’capital’,’bearing’,’beating’,’calling’,’captain’,’battery’,’because’,’anxious’] random =(random.randrange(0,len(allthewords))) randomwords = (allthewords[random]) letters=(len(randomwords)) x=1 place= -1 place1 […]