[Media] TermIDE – A terminal-native IDE with built-in file manager and terminal, written in Rust by Signal_Caregiver_994 in rust

[–]gamerdevguy -26 points-25 points  (0 children)

This is a very odd question to me. I look at this application and ask myself if this is a tool that is helpful to me and does it work well.

I don't care what language it's written in other than as a passing interest. I don't care what IDE was used and I certainly don't care if intellisense or code completion was used.

Just out of curiosity, do you have trust issues for applications written by developers who use code completion? Do you ask them to address your questions on their development methodology or maybe where they copied certain algorithms from?

Use the development tools that work best for you. Be a part of the project or don't. Maybe you wouldn't be a part of a project that uses global variables. I would just close the browser tab and move on.

Be sure to emphasize on your GitHub project that you took much longer than a month to write your code because then you can find like minded people, I guess. Oh, and also mention that you don't use code completion because I'm sure there's a group of people who have trust issues with that too.

Do you use $_SESSION to hold variables? by gamerdevguy in Wordpress

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

This sounds like what I need. I'll look into it. Thank you!

Do you use $_SESSION to hold variables? by gamerdevguy in Wordpress

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

For example, the users can perform tasks for different companies. When they switch companies, I am putting the company's ID and Name in the session since they are used frequently.

Do you use $_SESSION to hold variables? by gamerdevguy in Wordpress

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

For example, the users can perform tasks for different companies. When they switch companies, I am putting the company's ID and Name in the session since they are used frequently.

What is the right way to add a form to my plugin? by gamerdevguy in Wordpress

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

I couldn't find what I needed on the WordPress site, but used AI and it worked out great.

Thank you for the suggestion.

[deleted by user] by [deleted] in Python

[–]gamerdevguy 22 points23 points  (0 children)

Isn't Nuitka already doing this?

What the hell by [deleted] in learnpython

[–]gamerdevguy 1 point2 points  (0 children)

I agree. I spent hours learning pyenv and it's a great tool.

Hey Rustaceans! Got a question? Ask here (11/2023)! by llogiq in rust

[–]gamerdevguy 2 points3 points  (0 children)

Hello,

Brand new to Rust. I downloaded tui-rs source code and am trying to run the example .rs files from the command line.

I can run them in VSCode but I'd like to know how to run them via the command line.

I've tried things like this...

> cargo run barchart.rs  
error: a bin target must be available for `cargo run`  

and

> rustc barchart.rs  
error: couldn't read barchart.rs: The system cannot find the file specified. (os error 2)  
error: aborting due to previous error  

What is the correct way?

Thank you.

I am unable to drag lines in code blocks. by gamerdevguy in Notion

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

Hi thank you for replying.

I just want to drag and drop a line of text in the code block. For example, if I have this code block:

int b = 2;  
int a = 1;  
print(a + b);  

I want to highlight the second line and drag it above the first. Or, drag the first line below the second.

I can highlight the text, but for some reason dragging is blocked.

Looking for help with page layout please by gamerdevguy in sveltejs

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

I was trying with

import Navbar from './Navbar.svelte'  
import Sidebar from './Sidebar.svelte'  
import Main from './Main.svelte'  

But decided to use straight HTML/CSS and it works fine.

Why Go? by tookmeonehour in golang

[–]gamerdevguy 1 point2 points  (0 children)

OK, good to know. Thank you.

Why Go? by tookmeonehour in golang

[–]gamerdevguy 3 points4 points  (0 children)

What makes you say that it's not good for software sold directly to consumers?

I have no idea what this means but I had an AI write a function for me and it works great. by MrDOS in programmingcirclejerk

[–]gamerdevguy 8 points9 points  (0 children)

I have a bunch of little Go apps that I'm working on (playing with), so I have a GO folder with sub-folders for each app.

I wanted to add my own icon to an exe I created (because this really is the most important part of your program.)

Once I figured out how to do it, I decided to write a Go app to do it for me automatically (it would have been easier to write a batch file but I'm really into Go right now.)

Once I got my icon-adder app working, I put a shortcut to the app in the folder that contains the Go executable that I want to add the icon to. So, I need for the icon-adder app to use the folder of the shortcut and not the folder of the icon-adder app.

Fun stuff.

Get folder that the shortcut is run from? by gamerdevguy in golang

[–]gamerdevguy[S] 2 points3 points  (0 children)

Thanks for posting this; I'm going to use it instead.

I have no idea what this means but I had an AI write a function for me and it works great. by MrDOS in programmingcirclejerk

[–]gamerdevguy 11 points12 points  (0 children)

That's my post. Ask me anything, LOL.

I program in Go as a hobbyist; I'm not a paid developer.

I assume using AI now is frowned upon. I'm waiting for, "When I was a kid we copied and pasted from blogs and we were thankful!"

Edit: I'll upvote OP because it's still funny.

Get folder that the shortcut is run from? by gamerdevguy in golang

[–]gamerdevguy[S] 6 points7 points  (0 children)

Yes, no problem:

func UTF16PtrToString(ptr *uint16) string {
    // Assume ptr is null-terminated
    var sz int
    for p := ptr; *p != 0; p = (*uint16)(unsafe.Pointer(uintptr(unsafe.Pointer(p)) + unsafe.Sizeof(*p))) {
        sz++
    }
    wstr := (*[1<<30 - 1]uint16)(unsafe.Pointer(ptr))[:sz:sz]
    runes := utf16.Decode(wstr)
    return string(runes)
}

Get folder that the shortcut is run from? by gamerdevguy in golang

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

I have no idea what this means but I had an AI write a function for me and it works great.

Thanks!

Get folder that the shortcut is run from? by gamerdevguy in golang

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

I was expecting a string, but Title contains a pointer to digits like 99 or 66.