Activity

brahmtejsawhney

BIG STUFF! (SEE ATTACHED VIDEO)

Changelog (WORK IN PROGRESS)

  • Started work on adding 3d Shapes in terminal
  • Working on a revolving or static Cube in terminal
  • Working on Security Bypass function (To allow running blacklisted keywords)

Challenges

Making a cube in a terminal, in a framework like pytterns is extremely hard. It needs super complex maths, including weird trigonometry and high level functions. They were EXTREMELY tricky to get right.

Another challenge was to make a formula which worked on ALL the sizes, and also it worked on all the angles.

Most importantly, each line drawn should have its unique identity, so coloring could be done right.

The output had to be bypassed from the pytterns file, and centering had to be processed locally because of the complexity.

Learning & Overcoming Challenges

I learnt how to work with complex arrays
I learnt how to actually draw edges from one point to another in terminal
I learnt how to fetch terminal sizes

Future Updates

Il be adding more shapes and stuff to this to make it actually production ready and usable.

AI Disclosure

Some significant google searching and use of AI was done for this devlog as some really complex math was used to render the cube in terminal. All the codeblocks which had AI Involvement are marked through comments in the code with full disclosure.


Video Attached: Videos of cubes of different sizes and char being rendered through pytterns from 1 Line of code for the user!

Thanks for reading this 💖
Stay Tuned!

0
brahmtejsawhney

Changelog

  • Added patterns cache
  • Performance Enhancement

Challenges

Everytime I ran a pattern in a loop, with screen clearing each time, it created a short blank screen, which looked odd. (You can see this in the video in the devlog below)

This was because the framework read the pattern file from disk every single time it ran, causing a slight delay. Even though due to multiple reads, the file goes into the disk cache, it still gave a little visible black screen.

To fix this, I have added caching, which stores the function in ram. We can make it so it preloads functions on boot, else it would keep the function in cache whenever its first run, so till the time the software is running, it always fetches from ram.

Learning & Overcoming Challenges

I learnt how to store stuff in cache/ram
I learnt how to access files repeatedly, really fast
I learnt how disk, disk cache, ram and cpu cache work

Future Updates

More patterns and features, making it more usable in actual real world programs.

AI Disclosure

No significant AI was used for this devlog. All the codeblocks which had AI Involvement are marked through comments in the code with full disclosure.


Video Attached: Its the same video of the devlog below, showing the slight blank screens which are visible on updates.

Thanks for reading this 💖
Stay Tuned!

2

Comments

brahmtejsawhney

Sorry! Wrong Video attached

brahmtejsawhney

See the devlog below for the right video

brahmtejsawhney

New Feature! 🎉

BTW, This devlog contains a VIDEO!! Check it out

Changelog

  • Progress Bars
  • Custom Progress Bar Colors and Char
  • Completely fixed panel Title Coloring
  • Banner Mode added to panel

Challenges

I have added progress bar, This was quite a simple process till the time I decided to add colors and stuff. The code got quite messy as the getattr is blocked for security reasons, I had to take some help from AI to successfully add colors through a bit more complex method. It was quite fun and straightforward process, not much difficulties.

Learning & Overcoming Challenges

I learnt how to make progress bars in python
I learnt how to color stuff properly in ASCII
I learnt how to display live cpu use and other stats in terminal (progress bar graph)

Future Updates

Just progress bars isnt enough, I would be adding a lot more shapes and patterns to this project. Im thinking of adding shapes like a kitty or something just for fun.

Il also work on some multithreading and performance enhancement to reduce the time it takes to display the progress bar, so there is no black blank screens in between.

AI Disclosure

Perplexity was used for code cleanup and fixing bugs I had with coloring. . All the codeblocks which had AI Involvement are marked through comments in the code with full disclosure.


Video Attached: Shows the live graph of cpu usage through Pytterns progress bar

Thanks for reading this 💖
Stay Tuned!

0
brahmtejsawhney

This is the first devlog after my previous ship.
I read all your comments, and they are just soo nice. Thankyou for all your support guys. 💝

Changelog (WIP)

  • Lisence typo renamed to License (Thanks for informing in vote review)
  • Working on fixing path system to make project work in compiled/packed environments too (Eg. exe)
  • Working on Tables, Banners, and more shapes
  • Bug in text centering in panel title

Challenges

The program just used normal OS to get the path of the module and detect the patterns/ folder. This worked good in normal day to day running, but if any project which was using pytterns had to be built into an exe or binary, it would stop working due to those path errors, and cause the entire build to be useless. This is fixed now by integrating sys.

Learning & Overcoming Challenges

I have received a TON of positive comments about originality and storytelling, and I cant help but thank you all for all your words. Lots of people seem to plan on using this once this project is complete and is packed with lots of features. Thanks for your motivation and time.


Attached Image: Shows reviews put by users.

Thanks for reading this 💖

Attachment
0
brahmtejsawhney

Release V1 Published on GIthub

I had to rewrite a lot of the code and test out different versions of dependencies to make the entire project fit under a 2GB .exe file.

Sadly, due to the extremely huge size of the drivers, the released version is about 2.6gb in size. I can reduce it to under 500mb, but I found out that downloading the dependencies during the First Boot would take more time than to just download the 2.6gb project with most dependencies preinstalled.

Also, I did not include the AI models in the release files as it is 12+GB, and upon the first boot it would be downloaded and set up automatically, which may take 5-10 minutes.

Challenges

I was having an extremely hard time with Pytorch and stuff because it compiled a lot of useless junk which made the exe file extremely big. I had to manually check which dlls were being used and which not, and had to remove the useless ones. Also, for some reason it just refused to detect my GPU after building to the .exe, which I fixed afterwards.

Also, the method for reading files which I was using with os would not work in an exe form, as the files get unpacked into a temp folder somewhere in appdata. I had to get that sorted too.

I have now released the proper requirements file, along with the working built exe and all the files on github.

Image: I also made a good looking banner for the project.

Attachment
0
brahmtejsawhney

If you are reading my devlogs for voting. Please start from the bottom, from the very first devlog.

All Set, READY FOR FIRST SHIP!

After all this work, The Clueless Closet has now reached its first stable release and is ready for its first ship.

Changelog

  • Cleaned up code
  • Added better error handling
  • Added CPU ONLY mode for unsupported GPUs

Features

  • Use of AI to detect type of Clothes of User
  • Use of AI to create text from the data
    (All the AI Processing is done LOCALLY! No API Keys needed)
  • Weather Data collection and processing
  • GPU Based AI & Multithreading Enhancements
  • Editing images through Python (Snapshot Feature)
  • Use of tkinter to make Menus
  • Personalities of AI
    And more..

Future Updates:

On the V2, I would be working on making the snapshots a lot better.
Snapshots would first use AI to remove background from your image, then put your image on a template, add all information and the AI’s response on the template and make a perfect high quality photo.

More features coming in v2!

Attached Video: Shows the program running, My face and camera feed is blacked out (for privacy reasons)


The terminal panels you see in the video are from my Pytterns python framework which is also a hack club project. Can be viewed through the following links:

https://flavortown.hackclub.com/projects/14732
https://github.com/brahmtej2009/The-Clueless-Closet/

0
brahmtejsawhney

Changelog

  • Used AI to make a PERFECT UI
  • Added Dad Mode (for Dad Jokes)
  • Added Hypeman Mode backgrounds
  • Made weather conditions logic more accurate
  • Emojis in UI
  • Fixed bug where buttons would merge colors when clicked.

Challenges

I had to do graphic designing and stuff to make the backgrounds a repeatable tiles which was a bit tricky to get 100% right, but I did it through CANVA.

Learning & Overcoming Challenges

  • I learnt how to make better Tkinter UI
  • I learnt how to make repeating tiles
  • I learnt how to make Dad Jokes
  • I learnt that gemini is trash at Tkinter

Future Updates

I would be adding features, which would take user’s image, remove background, add it to a template background, and nicely add the roast text in that template for the snapshot. Which would be different for every personality mode. GREAT! (Coming Soon!)

AI Disclosure

After using gemini for my UI Help, which basically sucked, I tried perplexity. It gave me good ideas for my UI, like the emojis. Parts of the UI are coded by the AI. All the codeblocks which had AI Involvement are marked through comments in the code with full disclosure.


Image: Attached image shows the new UI in Dad Mode (Dadjokes mode)

Thanks for reading this 💖

Attachment
Attachment
0
brahmtejsawhney

BIG UPDATES!

In the past 3 hours, I have almost ENTIRELY chanted the UI, and added Great Features!

Changelog

  • Every personality has its own UI
  • Made it easier to add new personalities for anyone
  • Personality Based UI and Colors
  • Snapshot Backgrounds based on Personality
  • Improved Layout and Interface
  • More efficient AI and better performance

Challenges

I had to do graphic designing and stuff to make the backgrounds a repeatable tiles which was a bit tricky to get 100% right, but I did it through CANVA.

Learning & Overcoming Challenges

  • I learnt how to use Canva to make Repeating Tiles
  • I learnt how to make better tkinter interfaces
  • I learnt how to make AI better and faster through better prompting

Future Updates

I would be adding features, which would take user’s image, remove background, add it to a template background, and nicely add the roast text in that template for the snapshot. Which would be different for every personality mode. GREAT!

AI Disclosure

Gemini was used to help with tkinter menus and helped in background images. All the codeblocks which had AI Involvement are marked through comments in the code with full disclosure.


Thanks for reading this 💖

Attachment
Attachment
Attachment
0
brahmtejsawhney

Shipped this project!

Hours: 3.64
Cookies: 🍪 84
Multiplier: 22.99 cookies/hr

Pytterns V 0.1 is all READY!

Pytterns is all set for your next terminal project’s UI.
The framework works flawless, and thanks to my friends, everything is now tested multiple times to ensure it can fit any kind of project with ease.

Do use it once before putting your votes. Download files from github.

Thankyou everyone for supporting me this much in this project through your sweet reviews.

Thanks Hack Club for making this happen!

Good Luck! 💖

brahmtejsawhney

Version 1.0

Changelog

  • Fixed all the bugs (Which were found)
  • Added new shapes
  • Documentation IMPROVED

Challenges

The program had some bugs, which made it a bit incompatible with general projects. But thanks to my friend’s help, we overcame all the issues and this is now PERFECT!

Learning & Overcoming Challenges

I have received a LOT of positive comments from ALL OF YOU GUYS! and this is genuinely very big for a little programmer like me. Some of you also helped point out bugs and suggested features, which I implemented.


This was a wonderful project, which would not have been possible without Hack Club, and all the lovely voters 💖

Now, I release Pyttern’s First Stable release.

Version 1.0


Thanks for reading this 💖

Attachment
0
brahmtejsawhney

See the attached image, its soooo cute dammnn

Changelog

Personalities:

  • Grandma Personality

An always loving and ‘Awwww my baby’ personality

  • Hype Man

An always ‘cheering up’ personality

  • Roast

Rude and shaming personality

Challenges

I have made the system for the personalities. Linked it with the settings. But prompting the AI to give the PERFECT responses is timetaking and hard. Each time I edit, I have to reboot the project, which takes 2-4 minutes. Also, for lower pc hardware systems, personalities dont seem to work that good due to hardware limitation.

Learning & Overcoming Challenges

I learnt how to give personalities to AI through prompting

Future Updates

I am thinking to add different backgrounds in snapshots based on moods.

Also, looking forward to completely remake the tkinter interface for every personality.

I am thinking about maybe also making a character which appears on the screen when the program is loaded, showing expressions. (Maybe…)

AI Disclosure

No significant use of AI was done for this devlog. All the codeblocks which had AI Involvement are marked through comments in the code with full disclosure.


Image: The Gramma Mode giving PERFECT REPLIES!! AWW this is soo cute <3

Thanks for reading this 💖
Stay Tuned!

Attachment
0
brahmtejsawhney

Changelog

  • Personalities (Work in Progress)

Challenges

It’s been over an hour. I am working on prompts and ideas for all types of personalities I can make. I have perfected the Roast Personality. Trying to make other personalities work as good as it.

Learning & Overcoming Challenges

I learnt how to construct prompts in code through different factors

Future Updates

I am thinking to add different backgrounds in snapshots based on moods.

Also, looking forward to completely remake the tkinter interface for every personality.

AI Disclosure

No significant use of AI was done for this devlog. All the codeblocks which had AI Involvement are marked through comments in the code with full disclosure.


Image: All the settings parameters I am working on right now

Thanks for reading this 💖
Stay Tuned!

Attachment
0
brahmtejsawhney

Changelog

  • High Performance Multi Threading
  • UI Buttons Updates
  • Changed AI Model for Roast
  • Hardware based Responses

Challenges

The amount of critical roast I was looking for needed a Bigger AI model, and more processing time, which caused timeout issue on tkinter. Multithreading was added to keep it stable. With this, the buttons update according to the process.

For weaker systems, this heavy AI would not work, so it would automatically fall back to the easier to run AI, at the cost of roast quality.

Learning & Overcoming Challenges

I learnt how to add popups in tkinter
I learnt how to run functions in threading
I learnt how to get GPU & Process information

Future Updates

I would be working on different personalities. I feel this has much more potential than just a roasting AI. It could literally be a Gramma or even Groot (I am Groot!)

AI Disclosure

Slight use of Gemini was done for bugfixing for multithreading. All the codeblocks which had AI Involvement are marked through comments in the code with full disclosure.


Image 1: Attached image shows the AI scanning the image in threaded mode while tkinter shows a proper interface of it.

Image2: Attached image shows the Final output after scan is done. The snapshot button got activated.

Image area is black for privacy reasons.

Thanks for reading this 💖
Stay Tuned!

Attachment
Attachment
0
brahmtejsawhney

Changelog

  • Diary Logging
  • Snapshot Button
  • Better error handling & Cleaned up code

Challenges

For this update, I had to take the live image from feed, use python to add a white bar on top of the image, and write text and save it. This was a BIG thing for me, I managed to do it through cv2 ultimately.

Learning & Overcoming Challenges

I learnt how to edit images through code
I learnt how to add text to images
I learnt how to use .tiff (Text Font) Files

Future Updates

I’ll also try to auto crop the image somehow so it only contains the user.

I would also be working on improving the AI Model. Making 2 separate models. One for high power systems (Gives good result) and one for low power systems where I would use a smaller AI Model.

AI Disclosure

Not much AI was used in this update. All the codeblocks which had AI Involvement are marked through comments in the code with full disclosure.


Image: Attached image shows the rendered image which comes from the Snapshot (And gets saved)

Image area is black for privacy reasons.

Thanks for reading this 💖
Stay Tuned!

Attachment
0
brahmtejsawhney

Shipped this project!

Hours: 2.24
Cookies: 🍪 28
Multiplier: 12.43 cookies/hr

The project is ready for shipping.

I have added pt.panel() which is now completely stable and functional. It also supports Individual Line Coloring of content.

Please make sure to run this and have an experience before voting on it. PyPi has the latest Stable release, whereas Github has the all feature version.

Download from Github. That would give access to all the features!

Good Luck Designing!

brahmtejsawhney

Changelog

  • Complete UI Rewamp
  • Addition of Weather Stats in UI
  • Better display of roasts in UI.
  • Feature to change the camera for systems with multiple cameras

Challenges

I designed the old tkinter UI myself, which was quite basic and unappealing. Making a new looking UI, with all the things displaying properly without looking crowded was a good challenge. I had to take some help from Gemini in order to design the new UI, and now it looks sooo much better with the colors and all.

Learning & Overcoming Challenges

I learnt how to make better tkinter menu
I learnt how to add stuff to UI using Grid Method and align it properly

Future Updates

As the UI is now new, I would be working on more features, and more buttons. I’ll also be adding more UI designs or something in settings which user can change according to their liking.

I’ll also try to auto crop the image somehow so it only contains the user.

Il also try to make a daily diary which gets generated automatically inside a folder, with a history of roasts on the image. (Next Update)

AI Disclosure

I used Gemini to help me make the Tkinter UI, It explained me properly how to use grid and pack properly to align my stuff. All the codeblocks which had AI Involvement are marked through comments in the code with full disclosure.


Image: Attached image shows the NEW UI (IMG 1) and the Old UI (IMG 2)

Thanks for reading this 💖
Stay Tuned!

Attachment
Attachment
0
brahmtejsawhney

Changelog

  • Great performance enhancements
  • GPU AI Generation on system with Nvidia GPUs
  • Switching from GPU / CPU based processing
  • Added requrements.txt with proper versions of all libraries

Challenges

I have never worked with GPUs in the past, for this project, i had to utilize stuff like torch.cuda and had to integrate that with my AI models. AI tools helped me a lot in this to get a basic understanding of how all this worked. I also was unable to reduce the startup times and processing time of the AI. Which I would be working on soon.

Learning & Overcoming Challenges

I learnt how to use GPU in AI Programs
I learnt how to Improve Code Performance
I learnt how to Detect Presence of Nvidia/Apple Silicon in a system

Future Updates

The tkinter interface is really old looking, I would be working on that in the future release. I’l try to display the information like temp and rain etc. on the screen along with the live feed.

Il also try to make a daily diary which gets generated automatically inside a folder, with a history of roasts on the image. (Most likely Next to Next devlog)

AI Disclosure

I used Gemini in this for research, as I am quite a newbie in this. I got a lot of ideas while conversation with AI. I used AI for learning use of GPUs in AI Projects. All the codeblocks which had AI Involvement are marked through comments in the code with full disclosure.


Image: Attached image shows the system detecting the GPU and automatically switching to it to increase system performance. This output would most likely not be shown on the tkinter frontend as its not required.

Thanks for reading this 💖
Stay Tuned!

Attachment
0
brahmtejsawhney

Changelog

  • Changed from Static Roasting to Live Generated Roast based on all Factors
  • Performance enhancements (Quicker Startup)
  • Better AI Detection
  • Roast is now displayed on the software panel, under your live feed
  • Completely removed the heat score logic
  • Added another AI which dynamically takes information and generates LIVE ROASTS!

Challenges

As i have said before, I’m kinda a newbie in terms of AI, so this update was a bit timetaking for me. I also faced a lot of issues while trying to make the AI be rude and roasty, but at the same time, to avoid swearing. It took a lot of tries.

Learning & Overcoming Challenges

I learnt how to use text generative AI model
I learnt how to pass information properly to an AI Model
I learnt how to NOT do overfitting and let the responses be natural
I learnt how to mess with generation settings like temperature
I learnt how to teach AI to roast people 💀

Future Updates

I am aware that this project runs entirely on CPU right now, which is quite slow when it comes to AI Processing than GPUs. This causes lag in tkinter.

Il try to run the project on GPU & Minimize Lag

Il also try to make a daily diary which gets generated automatically inside a folder, with a history of roasts on the image.

AI Disclosure

I used Gemini in this for research, as I am quite a newbie in this. I got a lot of ideas while conversation with AI, like better prompting for roasting ai, picking up correct AI Models, Reducing processing time and more. All the codeblocks which had AI Involvement are marked through comments in the code.


Image: Attached image shows the AI roasting me for wearing a normal tshirt (While location was set to Canada, where temps are around -30 right now)

The image does not show the video feed as I am not comfy with revealing my face. :)

Thanks for reading this 💖
Stay Tuned!

Attachment
0
brahmtejsawhney

I have completely changed the approach I used for AI. Instead of a normal classification model, I now use a Rank Based System where only most matching choice is selected.

Changelog

  • Changed to patrickjohncyh/fashion-clip model
  • Use of Rank Based Identification
  • Weather fetching from openmeteo
  • Integration of my own framework (Pytterns) for display of neat panels

Challenges

I am a complete newbie in terms of AI, I had to spend a good amount of time learning how to use Image Classification Models. I also had to search a lot and test a lot to find the correct model.

The camera also took a lot of time to load, and I found out that we had to use the DirectShow to make it faster for windows.

Learning & Overcoming Challenges

I learnt how to use openmeteo weather API
I learnt how to manipulate and make sense from all the weather factor data
I learnt how to use Classification AI Models
I learnt how to build live camera feed in python
I learnt how to display a live camera feed on tkinter properly

Future Updates

From data, the project must be able to identify mistakes in clothing, and provide good roasts
Make the heat score logic a bit better so it counts more factors
Make its logic so it combines all mistakes for 1 good solid roast

AI Disclosure

I used Gemini to get information about DirectShow & Live Feed Processing. All the work done by AI is properly marked in the code through comments. I always ensure AI Material is less than 40% of the project’s total code.

Image: Attached image shows the terminal output for calculation of Heat Score in the amazon basin. More information on how this is processed in future devlogs!

Thanks for reading this 💖
Stay Tuned!

Attachment
0
brahmtejsawhney

The project is released on github.

It is functional, and currently provides information about clothes being Cool or Warm.

Integration with weather is still pending, which is the thing which I am working on.
I am also looking for some cool roasts, which I’l be adding to this by tomorrow’s update.

Looking forward to build a great fun thing!

Attachment
Attachment
Attachment
Attachment
Attachment
0
brahmtejsawhney

From now, Il improve my Story Telling, and make this project more fun and more beginner friendly.

I believed that Just Patterns in a terminal isnt enough. What if we had options for making a proper Panel or Checklist style UI.

Version 0.1.1.2

Changelog

  • Added pt.panel()
  • Changed how centering works & stuff to make it more usable

And that’s how I added the pt.panel(), it makes a flawless and easiest to create panel which adapts to content and has TONS of customization, easy to use for beginners. It can be used in Loops to make superb looking Dynamic UI to display information. (Example code in git readme)

Challenges

The BIG challenges here were the changes I had to do in Pytterns.py main file because the color codes were counted as characters by len() , even though they are invisible. This completely messed up the ENTIRE centering system. Also, that white cursor blinking bar thing, was too irritating as it appeared on random areas of the screen while UI was Dynamically Updating.

Learning & Overcoming Challenges

I learnt a LOT while making this, because I haven’t ever messed this much with the terminal ever.

  • I learnt how to hide that white cursor thingy
  • I learnt how to make terminal graphics less lagy (Limitation of previous version solved)
  • I learnt to handle the complex coordinate geometry of ANSI buffers so the user doesn’t have to.

Future Work Includes

  • Better Panel Creation and Editing
  • Creation of Tables
  • Multiple Designs in Panel
  • And More..

AI Disclosure

I used Gemini to help with trickier parts of this update.
Specifically, I used it to nail the math and advanced parts of the panel.py file.
(ANSI codes dont work well with len()..) and to fix some bugs related to border colors breaking due to Content’s Colors.

Thanks for reading this 💖

Attachment
Attachment
0
brahmtejsawhney

Shipped this project!

Hours: 5.47
Cookies: 🍪 25
Multiplier: 4.56 cookies/hr

I built Pytterns, an open source library for adding shapes and patterns to your python code with Ease!

With this, Python Devs can add shapes and designs to their terminal software with 1 line of code. This is especially helpful for those who are making software in CLI based OS, where good UI Editing is suggested for clean and mess free code operation.

I learnt a lot of things with this, I learnt github, PyPi, Functions, Colorama, Shutil, and a LOT more.

This was big achievement for me, as it was my first ever publicly launched python library
It is a system in which contributors can add more patterns in the default pack and it would get added in the next update.

I am planning to do a lot of updates in this, and the next big thing which I would be adding would be features to write text in boxes and set them on different areas of screen with ease and add borders and gradient color options.

The challenging part was the security, because anyone could put any malicious file as a template and it would trigger it all. I had to research on AI Tools like chatgpt for a fix for this, and a temp fix which I found which works quite good is a keyword ban method. If a template contains some potentially malicious keywords, it doesnt trigger it.

Although this has lead to a challenge of making the terminal smooth. If we spam the functions to make graphic animations, it works, but it is also a bit lagy. Il be working on that in next update too.

Overall, this feels like a solid project to me, and I hope people use this to make their Terminal UI better once its ready and built completely.
Hope you share your Pyttern Design Templates with me in github. Il be happy to merge them in!

brahmtejsawhney

Hello World!
The Basic structure of the platform is working! Security features are also operational and it is working with Linux and Windows Environments.

Custom Patterns can be added through /patterns folder in the project root directory, which is being picked up correctly after version 0.1.1 on PyPi

There are 2 Types of Pattern Templates. The default one and the custom project ones.
Default ones are stored in the library’s root. The Project’s Templates are stored in the /patterns folder in the project’s root, containing .py file for the template.

In the template, from now we MUST define size and center in the function’s define statement. If any other parameter is required, we can just add it in the template file, and it would be picked up by the library by itself and you can use that arg in the function trigger statement seamlessly!

Reply to: “Show your project’s output, not your code editor. Screenshots of code (e.g. VS Code) won’t be accepted — your repo is already linked! Upload a screenshot or video of what your project actually does.”

Images attached below show the running version with custom template. I am not showing the code in the images, thats only for reference if someone wants to replicate, Output is visible in the images

Attachment
Attachment
0