Meet Rajesh Gor

Techstructive Weekly #4

Techstructive Weekly #4

It was an exhilarating week for me, learned a lot of stuff, wrote a lot of code, pushed a lot of bugs, and tweeted a lot. This week, I wrote a lot of Python scripts at my work for experimentation setup and testing a lot of things, I was learning and prototyping my idea of Audiofy with Appwrite cloud, and read some inspiring articles.

Let’s refresh the developer’s life a bit and think philosophically.

Thanks for reading Techstructive Weekly! Subscribe for free to receive new posts and support my work.

Quote/Thought of the week

“Learning is not attained by chance, it must be sought for with ardor and attended to with diligence.” – Abigail Adams

Not every week is the same, if it is then you are not learning, you are not growing. Stepping outside of the comfort zone is the way to get out of that creative slump. There needs to be hard work and curiosity to drive learning, it won’t come by thinking about how worse the situation is, taking action is the key, if you fail, you learn something.


Read

Watched

  • Appwrite Init Videos:

    • Function Local Development:

    • CLI Revamped

    • Functions:

  • HTMX CalmCode Crash Course: A really good quick course on HTMX, highly recommend starting here to get a good understanding of why this library exists.

  • Vim Register and Macros Trick:

    This is actually helpful and I knew some of the tricks but being able to get a reminder of that makes me click a few things that I need to change in my daily workflow.

  • Be a full stack developer with Golang and React: Trolled

Learnt

  • A list of dictionaries in Python to Pandas Dataframe: This looks quite simple but is really handy and have never thought of it deeply.

    import pandas as pd
    List of dictionaries representing bank statement transactions
    data = [
    {'Date': '2024-08-01', 'Description': 'Salary Deposit', 'Transaction Type': 'Credit', 'Amount': 3000.00, 'Balance': 3500.00},
    {'Date': '2024-08-03', 'Description': 'Grocery Store Purchase', 'Transaction Type': 'Debit', 'Amount': 150.00, 'Balance': 3350.00},
    {'Date': '2024-08-05', 'Description': 'ATM Withdrawal', 'Transaction Type': 'Debit', 'Amount': 200.00, 'Balance': 3150.00}
    ]
    Convert the list of dictionaries to a Pandas DataFrame
    df = pd.DataFrame(data)
    Display the DataFrame
    print(df)
    """
    Date          Description Transaction Type  Amount  Balance
    0  2024-08-01       Salary Deposit      Credit  3000.0   3500.0
    1  2024-08-03    Grocery Store Purchase Debit   150.0   3350.0
    2  2024-08-05        ATM Withdrawal     Debit   200.0   3150.0
    """
    
  • Convert a dict with a number as a key and any as a value into a list of ordered numbers with elements as the value of the dict.

    # Dictionary with string keys representing numbers and consistent list values
    data = {
    "3": [30, 31, 32],
    "1": [10],
    "2": [20, 21]
    }
    Convert the dictionary into a list of values, ordered by the numerical interpretation of the keys
    ordered_values = [value for key, value in sorted(data.items(), key=lambda x: int(x[0]))]
    Display the ordered list of values
    print(ordered_values)
    [ [10], [20, 21], [30, 31, 32] ]
    
  • Pip Install a git repo as a python package from a specific branch from the requriements.txt file: I was trying to install the python SDK for Appwrite but the latest release was not live yet, so decided to download the version branch from the GitHub repo. However, that failed as in the Appwrtie function environment, or any cloud/serverless function ecosystem there won’t be git installed.

  • Appwrite Functions in Python: As I have said, I have been experimenting with the Appwrite function ecosystem throughout the week on the side. I was basically trying to use Python functions for some prototyping ideas. I must say the documentation is really good. I learnt how to parse binary data into a response, a structure for a sample Python function, and set an appwrite json locally for functions.

  • Table extraction from Images using GPT-4 Vision and Python: This is something I have been researching at my work and found it interesting to read and experiment upon. I am amazed at how beautifully LLMs can parse and get back data.

Tech News

  • Appwrite Init: It was a great week with a ton of launches and great features. i was really looking for Golang support and it is really a game changer for the developer experience of quickly making a backend with great control.

  • Redis 8 and AI capabilities: Redis since it changed its license, gets the biggest release ever. As any other thing launching in 2024 has the word AI in it.

For more news, follow the Hackernewsletter https://mailchi.mp/hackernewsletter/713


That’s it from this week, I hope you did well this week, and have a happy week and weekend ahead!

Follow me on Twitter/X for more of my thoughts and tech stuff.

Thank you for reading, let’s catch up in the next week.

Happy Coding :)

Thanks for reading Techstructive Weekly! Subscribe for free to receive new posts and support my work.