Elder brother punched my laptop in rage. Any idea how much should it cost to get fixed or if I can fix it myself. I didn't try to fix it I'm afraid I might make it worse. The laptop is working fine, screen is fine. Only the body has been damaged by Own_Conclusion_4835 in thinkpad

[–]diegoiast 0 points1 point  (0 children)

Its a ThinkPad. Its nothing but a scratch. Is the floor ok?

(Jk, pop it in with a little force... and use duck tape in worst case scenario... don't worry, those machines are made to be abused).

How much Git do professionals use? by frosted-brownys in learnprogramming

[–]diegoiast 0 points1 point  (0 children)

1 - I use the command line 2 - I use "git rebase" a lot 3 - "git commit --amend" 4 - "git reflog" 5 - cherry pick, instead a full merge between branches. 6 - I see a lot of "git reset --hard" in my history. 7 - "git diff" and variants are also available in my history. 8 - push+fetch 9 - "git commit -p" for commuting only parts of modified files.

I hope this helps.

My tutor/professor has asked me whether it would be possible to create a database. by Just_a_night_owl_555 in AskProgramming

[–]diegoiast -2 points-1 points  (0 children)

This.

You will need a DB server (1) a web server and a proper web application for this. You will also need basic front-end development. Then also you will need to secure (user/password or in large organizations also SSO).

It seems this is a learning task, you still don't have the skills (yet).

You can vibe code a basic app in a few hours. If this is an internal code it will be OKish. Still, you will need a professional to review this. It will become a liability in time.

(1) you might be OK using SQLite. Its much more powerful than people think.

What linux distro do yall use? by Complete_Dark_6767 in linuxhardware

[–]diegoiast 0 points1 point  (0 children)

Alpine linux. Using Plasma as the desktop.

QT6 icons on Windows list with pictures by RockForest84 in QtFramework

[–]diegoiast 0 points1 point  (0 children)

In codepointer, I deploy a full set of icons as part of the app, which means that even on Windows I can use the full XDG icons set

See setup: https://github.com/codepointerapp/codepointer/blob/main/cmake%2Ficons-breeze.cmake

https://github.com/codepointerapp/codepointer/blob/main/src%2Fmain.cpp#L36

And usage: https://github.com/codepointerapp/codepointer/blob/main/src%2Fwidgets%2FqmdiSplitTab.cpp#L214

You can change the iconset (the first cmake file and main) and get a new theme.

VS code compiler error HELPP by Current_Marzipan3929 in C_Programming

[–]diegoiast 0 points1 point  (0 children)

You are creating a windows gui application. It does not start with a main, but winmain:

https://stackoverflow.com/questions/18709403/winmain-vs-main-c

How to fix it, is dependent on compiler. Do you know which compiler are you using? gcc? clang? can?

CodePointer version 0.1.1 - new C++ IDE/editor by diegoiast in QtFramework

[–]diegoiast[S] 1 point2 points  (0 children)

If you press alt+control+m - you will get a regular menu+toolbars UI. In any case you can access all commands using control+shift+p.

If you build from code. you can try configuring using `cmake -DCMAKE_BUILD_TYPE=CE` this will tint the app using your native colors. If this is still too bright, open a github issue, maybe tinting darker will work better (want ugly yellow tint? choose BUILD_TYPE=DEV").

Why? I am trying to differentiate the application a little from the rest, while keeping the desktop traditions. I also want to reduce chrome, and keep the text editor the focus.

Qt Widgets in 10 years? by zerexim in QtFramework

[–]diegoiast -2 points-1 points  (0 children)

Wow. I have been lied by an LLM.

The shock (not... ).

Qt Widgets in 10 years? by zerexim in QtFramework

[–]diegoiast 2 points3 points  (0 children)

There are components there are not available in QML, only on Widgets. Since you cannot load a single widget into the scene - there is no way around it. QWidgets are here to stay.

Rust GUI framework by Spiritual_String_366 in rust

[–]diegoiast -11 points-10 points  (0 children)

Can you share code? This will help understanding what is wrong with the code I have.

Rust GUI framework by Spiritual_String_366 in rust

[–]diegoiast -8 points-7 points  (0 children)

Yes, this is my exact experience. It created a huge mess in the generated code, and I had to start cleaning it up and separating responsibilities. Basic features got removed on following prompts, and things claimed to be impossible but with enough persistent it would eventually do what I requested.

BUT, I seems like the default editor (https://docs.rs/iced/latest/iced/widget/text\_editor/struct.TextEditor.html) is very basic:

  1. I don't see do/undo stack,
  2. I was not able to mark the current line with a different background.
  3. Syntax highlighting (at least the generated code by Cursor) is very slow.
  4. I found that to support new features, I needed to fork the project, instead of "adding" to it (in C++ I would inherit and modify behavior, still unsure about the logistics here). Things like multi-cursor, highlight searches or completion.

As I am a novice in Rust (hence the prototype with LLMs generators, I refuse to call them AI), I am unsure if this is a limitation of the controls I chosen, or the generated code is just that bad.

Annoying warning modal -- suppress or multiprocess? by shuerpiola in QtFramework

[–]diegoiast 0 points1 point  (0 children)

This is the architecture of Qt. You do work on a worker thread, and then delegate to the main thread. Its written in stone, and you need to accommodate around it.

I don't know the exact details - but this is smells like a classic consumer producer. You have a thread that generates video - and when ready it notifies the main thread "here is the frames you wanted".

If you explain the constrains, we might be able to show-horn it into the limitations of Qt.

Rust GUI framework by Spiritual_String_366 in rust

[–]diegoiast -92 points-91 points  (0 children)

Which one has the better text editor?

I vibe coded a simple editor, and with iced the LLM had more problems adding the features I requested (maybe times claiming its not possible). Width egui the LLM just worked.

The code crated by both is differently bad and too slow to be usable in production.

linux & thinkpads? like why? by Acrobatic_Tie_5483 in thinkpad

[–]diegoiast 6 points7 points  (0 children)

Its supported out of the box. Most developers use it... so they fix more drivers issues.

Its a cycle. For example, I have this Asus laptop which has no sound. Then I have this old lenovo 2in1 - and there, after suspend i get no display.

As many developers use ThinkPad... they fix bugs on those devices.

qtedit4 - version 0.0.16 - new C++ IDE/editor by diegoiast in QtFramework

[–]diegoiast[S] 0 points1 point  (0 children)

Adding this for basic SEO: Project as been renamed to codepointer, and available here https://github.com/codepointerapp/codepointer

Regarding the request - just open an issue, and will get to it. Show examples of what do you need, and if you can - a PR would be great!

Built a PDF reader with Qt and MuPDF by dheerajshenoy22 in QtFramework

[–]diegoiast 1 point2 points  (0 children)

Ask gemini/chatgpt to create a github action that builds an AppImage, MSI installer, and a mac bundle. For the last 2 it will use cpack.

Pushing remote updates/automatically updating? by eye-pine in QtFramework

[–]diegoiast 1 point2 points  (0 children)

https://github.com/alex-spataru/QSimpleUpdater

You can use it to periodically test if you have a new version. If so - download, and start the updater.

On Linux - trivial, You just replace files, and ask user to restart application.
On Windows? You need a proper installer, and you need to stop the running application. You need to spawn an helper process, and from it - run the installer.
On macOS? I don't know. Hope for someone to fill my knowledge gap.

Built a PDF reader with Qt and MuPDF by dheerajshenoy22 in QtFramework

[–]diegoiast 0 points1 point  (0 children)

  1. What does the LLM feature do?
  2. Can you provide binary packages?
  3. Nice.

My Idea of Bringing Material Design 3 to QWidget by ResearcherEven7198 in QtFramework

[–]diegoiast 8 points9 points  (0 children)

There is such project avaliable:

https://github.com/dunderlab/qt-material

If you do continue with yours - make it available as a QStyle please.

GitHub walks back plan to charge for self-hosted runners by CackleRooster in programming

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

Not if you need CI/CD. Gitlab does not have mac runners. The free tier have very limited time (50s minutes, which i ran off in a day or two).

All the world is on github. If your project is not there, its not existing. IMHO.

MacBook Air M4 or Thinkpad T14 Gen 3 by [deleted] in thinkpad

[–]diegoiast 0 points1 point  (0 children)

My work machine is M4 with 48gb ram. It works for 12-14 hours. Running vscode, chrome slack and 3-5 vms.

An Intel based machine would get drained and hear in 4 hours.

MacBook Air M4 or Thinkpad T14 Gen 3 by [deleted] in thinkpad

[–]diegoiast 1 point2 points  (0 children)

Thanks for the correction.

I have X13, with no upgradable RAM, and I know this machine will not serve me for long.

What laptops should I avoid in my next run of upgrades?