im bored, I am not allowin myself youtube or any social media for this entire week, and…
- User
im bored, I am not allowin myself youtube or any social media for this entire week, and maybe longer. What should I do? I could read but what else could I do, I wanna learn business.
- Assistant
If you want to learn about business, here are a few activities you can engage in during your free time:
-
Read books and articles: Apart from reading books on business and entrepreneurship, you can also explore various business-related magazines and online articles to expand your knowledge.
-
Take online courses: Many platforms offer free or paid online courses on business and entrepreneurship. Look for reputable websites like Coursera, edX, or Udemy and enroll in courses that interest you.
-
- User
how do I import my redis and hashew files from annother folder?
from hash_db import redis from img_utils import hashew
hash_ = hashew.hash_image("nigger.bmp")
print(hash_)
- Assistant
To import your Redis and Hashew files from another folder, you need to ensure that the folder containing the files is included in your Python's module search path. You can do this by adding the folder to the
sys.pathlist before importing the files. Here's an example:pythonimport sys # Add the folder containing the files to the module search path sys.path.append('/path/to/folder') # Import the files from hash_db import redis from img_utils import hashew # Use the imported functions/classes as needed hash_ = hashew.hash_image("nigger.bmp") print(hash_)Replace
/path/to/folderwith the actual path to the folder where thehash_db.pyandimg_utils.pyfiles are located. Make sure to provide the correct path in order for the import statements to work.Note: Be mindful of the name of the image file you are using in the
hash_imagefunction. It is important to choose appropriate and respectful file names.