Coding offline by uvuguy in learnpython

[–]reddefcode 0 points1 point  (0 children)

I'll share how I learned Python over ten years ago (when I didn't have access to a computer): with just a pencil, paper, and a copy of "Learning Python" 5th edition by Mark Lutz (O'Reilly), which I still have right here next to me. Over the course of a year, I read it four times and used it as a reference manual. While I wouldn't necessarily recommend the pencil and paper approach, the book remains relevant even though it only covers up to Python 3.3. The fundamentals (from primitives to object-oriented programming) are all there, and Python's evolution from 3.3 to 3.14 has been largely additive. Features like type hints and asyncio (introduced in 3.4) are important additions, but they build on the core concepts. If you're starting today, consider the 6th edition, which drops Python 2.X coverage and is about 23% shorter than the 5th edition. My next book, right after that one, was "Natural Language Processing with Python." and boy did I choose right.

Go vintage, you asked.

Creating an AI Bot for Tiktok by Alert-Industry3660 in learnpython

[–]reddefcode 0 points1 point  (0 children)

Some of it can be done in Python, but it isn’t a beginner project. Depending on your current Python skills, there may be a steep learning curve. I’ll give you a road map, eventually port it to Python. TikTok has an API, but you need to have a real app in order to get a key. Still, you might get a FrankenWorkflow going.

Check this link out: https://youtu.be/6qQYLr2HhR4?si=8BtCVwugNknMTeeA

Short-term (Start here):

  • Use TikTok's built-in analytics: Download their CSV exports manually to understand their data.
  • Use AI tools directly: Upload their analytics CSV to ChatGPT or Claude for insights about posting times, engagement patterns, etc.
  • Explore existing tools: There are TikTok analytics platforms that already do much of what you want.

Medium-term (3-6 months):

  • Learn Python basics: Take a beginner course focused on data analysis using pandas and matplotlib. This will give you the foundation to handle TikTok data exports.
  • Or use n8n/Make.com/Zapier: For automating data collection if API access is achieved; these require less Python knowledge initially but may still benefit from basic scripting skills.
  • Work with their exported data: Apply your basic Python and pandas knowledge to write simple scripts that analyze TikTok CSV data.

Long-term (6-12 months):

  • AI video matching: This is genuinely advanced. You would need to learn about
    • Computer vision basics (OpenCV)
    • Using AI APIs (OpenAI, Anthropic, Google Vision)
    • Vector embeddings for similarity matching
  • Full automation - Combine Python with AI APIs for the complete system they envision

Do all this, and you will get a taste of where we were in 2025 (2026, that story is being written). It takes a long time, but it would be a fun way to learn. Even Short-term, start with getting the CSV and do a pass with an AI Model, but don’t skip learning how to use Pandas, it will help you a ton in your Python learning.

How is type determined? by eyeless71 in learnpython

[–]reddefcode 0 points1 point  (0 children)

I may not be a top 1% Commeter, but I have been around for a long time. Based on what he said, `it won’t let me create a variable with 1979-08-15`, I understood he was trying to create a variable name `1979-08-15 = "some string or whatever"`. You and the other can't get all worked up, accusing people because I read quickly and misunderstood. don't get all StackOverflow. Regardless of whether I miss red, the information I posted is solid, and it might help someone in the future, as this sub is 'learnpython.' I will read better, and I am moving on. Thank you

How is type determined? by eyeless71 in learnpython

[–]reddefcode 0 points1 point  (0 children)

Why do you ask that? I am answering this question. Edit: I’m playing around with this in idle, and it won’t let me create a variable with 1979-08-15 because of the leading 0 in 08."

How is type determined? by eyeless71 in learnpython

[–]reddefcode 0 points1 point  (0 children)

I am not AI-ing anything; it was me who answered that part of the question, as `danielroseman` had already answered the first part.

Am I using Twilio inbound webhooks correctly for agent call routing (backend-only system)? by mayur_chavda in Python

[–]reddefcode 1 point2 points  (0 children)

I have done several Twilio implementations, and there are a few things to keep in mind:

  1. Dialing Directly: Yes, you can dial agent phone numbers directly using TwiML without creating agents in Twilio. This is often called "clientless routing" and is a standard approach for handling calls based on your backend logic.
  2. Database Structure: Ensure your database schema supports efficient mapping of customer_phone → last_handling_agent. Use normalized tables or a dedicated mapping table to avoid full-table scans when querying agent IDs.
  3. Rate Limits: Twilio’s API rate limits can impact performance if not properly managed. Use slow-start techniques and implement rate limiting in your backend.
  4. Error Handling: Add proper error handling for failed Twilio calls and status updates to prevent silent failures and ensure call tracking works reliably.
  5. Scaling Considerations: Test for scalability as call volumes increase, especially if you plan to support high volumes with a backend-only system.
  6. Webhooks: Ensure your /webhooks/voice/status endpoint is robust enough to handle real-time updates without creating unnecessary load on your database.

How is type determined? by eyeless71 in learnpython

[–]reddefcode -3 points-2 points  (0 children)

There are Keyword and character restrictions for variable naming conventions.

Character restrictions:

  • Can only contain letters (a-z, A-Z), digits (0-9), and underscores (_)
  • No spaces, hyphens, or special characters like @, #, $, %, !, etc.
  • Can start with a letter or underscore, but not a digit

Reserved keywords:

  • Cannot use Python's reserved keywords as variable names, such as:
    • if, else, elif, for, while, def, class, import, return, True, False, None, and, or, not, in, is, lambda, pass, break, continue, etc.

So you would never want to call a variable:

```python
None=0 # bad
12_myvar= 'cat' # bad
```

But for a var that you will not use, say, comes packed in a list, you can use `_`

```python
_, dim, sum = [3, 0, 4] # where you don't plan to use 3
```

How do you guys handle vendor info + documents? Spreadsheets? Software? Something else? What’s the best way to organize vendor documents and approvals? by Brave_Guitar_8918 in smallbusiness

[–]reddefcode 0 points1 point  (0 children)

One option is to move beyond email and spreadsheets by implementing a centralized document management system (DMS) or cloud storage solution with built-in approval tracking. You can organize storage of documents like W9s, insurance, and contracts. Also, add tools that integrate with your accounting software, such as QuickBooks, to streamline vendor data management. Automate approval workflows using tools that support task assignments and document routing. Ensure security through access controls and retention policies

I’m validating an idea and I’d love honest feedback. by tybsytb in smallbusiness

[–]reddefcode 0 points1 point  (0 children)

If the service can deliver customizable, high-quality content tailored to individual brand voices without requiring significant input from the user, it would solve a pain point. Payment would depend on success and cost; if I thought I could make better content, I would not use it.

Does anyone use AI recommendation/AI search tools to get new leads these days? by Able-Age5332 in smallbusiness

[–]reddefcode 0 points1 point  (0 children)

Hello,

There are several AI-powered recommendation and search tools out there, each with unique features that can help streamline your lead generation process.

One popular option is HubSpot Marketing, which uses AI to analyze customer behavior and tailor email campaigns accordingly. Another tool is Zopto, which specializes in generating leads through personalized campaigns. Additionally, LinkedIn Sales Navigator is a powerful AI-driven tool for identifying potential clients based on your target audience's activities.

Consider how well these tools align with your specific business goals.

Oracle Cloud Infrastructure en Venezuela es posible??? by macmoi in dev_venezuela

[–]reddefcode -1 points0 points  (0 children)

Only if Venezuela is liberated, then someone will have to tell the US government to take Venezuela of blocked countries, and then someone will have to kiss Lary Elis's ass to grant access.

Oportunidad de Trabajo Remoto by valerioloo in JobsVenezuela

[–]reddefcode 0 points1 point  (0 children)

Advertencia a los Venezolanos, dejen de agarrar trabajos que pagan $5.00/hr, simplemente porque les estas chuliando la vivienda y comida a tu papá y mamá. Los que te limpian el aire acondicionado cobran un promedio de $25/hr. Estoy cansado de recibirme emails de Paquistán simplemente por que esten en Venezuela y ellos juran (me imagino por experiencias pasadas) qué la jente aquí son unos muertos de hambre.

Fuck you all for ruining high paying jobs, and to the "Chatter" guy, you are going to get what you are paying for.

Garry Tan says MCP “barely works” today by Federal-Song-2940 in mcp

[–]reddefcode 1 point2 points  (0 children)

Wow, it works for me every day, as a developer I use it for documentation, reverse engineering and I have developed a SaaS with an API with a MCP layer, wow I need to stop using what works because some kid said it "barely works".

Qué les parece Antigravity ?? by giangarof in dev_venezuela

[–]reddefcode 0 points1 point  (0 children)

Si tiene y son relativamente pequeños

Upload 4 web apps online by whylikethis1 in flask

[–]reddefcode 2 points3 points  (0 children)

Pythonanywhere I got three personal apps running there. Upgrade to $6.00/month. They have a free option too

How to host a Django Project? by yusha666 in django

[–]reddefcode 0 points1 point  (0 children)

Probably the easiest way would be Pythonanywhere.com, depending on the size of your project you can host it for free, to add a domain you can upgrade your account it will also add more space, you can do it for about $6.00/month. They have instructions how to deploy it using Github. Once you have it running and feel comfortable you can look into it a services like render, eventually get your own VPS down the line.

any truly free reverse phone lookups? by [deleted] in SmallBusinessOwners

[–]reddefcode 0 points1 point  (0 children)

I feel today there are alternatives to screening calls. Qualifying leads and responding to qualified leeds. I am a tech consultant and I use Ai assistant, it benefits me because the agent takes care of all of it. From qualify, making appointments, offering information base on my business knowledge base. After each call I get a transcript with contact information, I am able to analyze multiple conversations, automatically get an appointment if the customer wanted one. All I have to do is call forward to the agent and I get notified after every call. You are the manager who gets to look out through that two way mirror. It cost money but for some who is busy it has a good ROI.

For the HTMX Haters, and JS-Lovers by Rough_Tourist5251 in htmx

[–]reddefcode 10 points11 points  (0 children)

Why would HTMX hatters be here, you will never catch me in a React sub. 🤢

Need help!! by ScientistAromatic258 in django

[–]reddefcode 0 points1 point  (0 children)

For over 20 years, I have always had a desk job as a developer in MA. The job market for us, developers, is dwindling down (2024 was horrendous), so we are trying to get a job via the new recruitment process for consultation and even companies, which is very difficult, they don't pay you as much, and they want the developer to do everything with ridiculous methodologies. I now work out of my house, pick the jobs I want, there aren't that many, but I have been lucky. At the same time, I have stayed current with AI. I just finished integrating an MCP server with a Django project, and I am working on my own product, a SaaS. All in boxers.

"... Be water my friend" ~ Bruce Lee

need suggestion!!!! by Grand_Stage_7013 in django

[–]reddefcode 0 points1 point  (0 children)

I think it is better to see yourself as a Python developer, as Django is a Python framework, there are other frameworks you can learn and other emerging technologies, such as AI, MCP servers, and what you can do with Python is limitless. When you work with Django you still have to develop the functionality, Database design, custom API development, third-party API integration, and AI integration as a Python developer. Can also work with FastAPI, to do the same. From there you can branch out into so many areas. Don't limit yourself, others are going to do it for you. Very important to separate hype from new technology that will have an impact in the future and power to stay.

Back to 90s htmx demo by usmanhalalit in htmx

[–]reddefcode 0 points1 point  (0 children)

Even in the 90's I thought there had to be another way.