topbanner_forum
  *

avatar image

Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length
  • Saturday April 17, 2021, 4:47 am
  • Proudly celebrating 15+ years online.
  • Donate now to become a lifetime supporting member of the site and get a non-expiring license key for all of our programs.
  • donate

Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Messages - Deozaan [ switch to compact view ]

Pages: [1] 2 3 4 5 6 ... 366next
1
What I can not say is for example how my app react within the one hour thread.
Like, start app, put pc to sleep / disconnect Audio device, wake up Pc and attach Audio (all within one hour)
If it break the chain to the thread (and recheck after 30sec again and again) or if it will dumb do its one hour task to then recognize "hey, no more device, lets wait 30sec to retry"...

Just reporting that after having my PC sleep overnight it took approximately 1 hour before kzToneGen recovered and started playing sound again.

2
DC Gamer Club / Re: Ludum Dare 48: April 23rd-26th, 2021
« on: April 14, 2021, 11:34 AM »
LD48 begins in just over a week (9 days). Currently the Theme Slaughter is happening.

If you want to have some say in the theme for this event, then go vote. :)

3
I installed TortoiseGit. It appears to only be a shell extension which adds some context menus to Windows Explorer. I was expecting a GUI like TortoiseHg's Workbench. :down:

TortoiseHg Workbench Example.png

After that I tried spending a bit more time with GitHub Desktop now that I realize it can work with GitLab. It seems pretty adequate for the job. Though it appears to be a very bare bones git client that is missing some features, such as the option to stash changes for later.

The Fork Git client is 49 USD if I remember correctly. My boss is the user who deals with both CVS (his favorite versioning system) and Git, the favorite of the main architect in the company receiving the code we produce. And he found this to be a very reasonable price for Fork. To date it is also a one-time fee. If this changes in the future? My crystal ball is too fogged up to see, I'm afraid.

Briefly checking out Fork's free evaluation and it actually looks pretty nice. It seems I had downloaded the installer last October in my search for GUI Git clients, but never installed it for some reason. Anyway, after playing around with it for about 10 minutes I'm really impressed by it. I'm still pretty new to Git, so I'm not aware of all the differences in features or workflow compared to Hg, but Fork appears to have all the features and support the workflows I'm familiar with.

I can't find any information on their website or within the program itself as to how long the free evaluation lasts or what limitations it has, other than "you can download and evaluate the Software for free, but need to purchase a license for long-term use." But I'm already thinking it may be worth the $50 asking price. It definitely feels a lot better than SourceTree, which is just getting more and more bloated and convoluted over the years.

It's a shame there's not a version for Linux, which I do occasionally (though very rarely) do some development on. Even so, I'm looking forward to working with it more and seeing if I remain impressed with it as time goes on. Thanks very much for the recommendation! :Thmbsup:

4
It seems that SourceTree was having a temporary brainfart. I realized I had the GitHub Desktop app installed, so I tried it and I was able to use the same PAT I'm using with SourceTree to communicate with my GitLab repositories. After I saw it was working in GitHub Desktop I tried it again in SourceTree and it still didn't work. That was yesterday, but today SourceTree is working for me again. Weird.

A bit of a rant about Atlassian:
Atlassian is a company with an attitude. We use their Jira product. For legal matters we can only use it as an on-premise product. While they first sent out a communication that the Jira on-premise product would still be supported in the future, their most recent communication now simply states that in 2024 all support drops and that there is only the cloud version of Jira available. Although Internet has improved a lot in Paraguay, it still isn't as stable as it should be. So, even if there were no legal bounds (with financial consequences) to consider, cloud solutions are not just as ideal as a solution as an on-premise server is to me.

That's why I didn't go back to BitBucket even after converting my repositories to Git. I'm ready to migrate away from Atlassian. I'm just using SourceTree for now because I need something now and that's what I know. But I'll be happy to learn/use a new tool.

Similarly with Trello. It just keeps getting worse and worse since Atlassian bought them out. Part of the reason why I made my own To-do List app recently was because I keep fantasizing about making my ideal Trello replacement. At that point I'll be completely rid of all Atlassian products. :Thmbsup:

Not sure what kind of tooling/IDE you use for development, but I've been very content using VSCode with the Gitlens plugin. Admittedly, I'm 'only' using it with Github (and TFS/AzureDevOps-Git at work), but Gitlab sounds no more than natural to also being supported.

When you're using the Visual Studio IDE, there is the official Gitlab extension available in the marketplace, adding full Gitlab support to VS20xx.

I used to be a big fan of Sublime Text several years ago, and I see VSCode as feeling pretty similar to it, but for some reason I haven't been able to "get into" using VSCode on anything.


As a direct alternative to SourceTree, Gitkraken is, AFAICS, free for open source Github and Gitlab repo's, so that could also be an option.

I've attempted to use Gitkraken in the past. It seems nice but I very rarely make my repositories open source or public, and I refuse to pay a subscription. If I could just pay $50-100 for it one time and then be able to use it forever, it might be worth it if it is good enough.

And then there's the 'Classic' TortoiseGIT extension for Windows Explorer, quite similar to TortoiseHg and TortoiseSVN.

Hmm... Yeah, I guess I'll have to give TortoiseGit a try, since I have years of experience with TortoiseHg.

I use sourcetree and Pageant so I know your pain about the format of the ppk. I'm not sure since you don't know your password, but you can try to regen with PuttyGen from your openssh key and put in the same password you think you used before to see if that helps you connect via SSH.

https://www.simplifi...nvert-ssh-key-to-ppk

Thanks for that! I've got the key converted to PPK format with PuTTYGen. The password worked. :Thmbsup:

5
This may be a little niche, or too specific to my situation, but I'm having some troubles and figured I'd ask if anyone here had experience or insight on how to resolve them. No worries if this is too specific. I don't expect anyone here to go through the trouble of setting up GitLab and SourceTree just to help me out, though I wouldn't put it past some of you people to be that awesomely helpful. ;)

A Brief-ish History:
Ten years ago a thread started here on some relatively new distributed version control systems called Git and Mercurial (Hg). At the time when I researched them, I wanted to use Git but it wasn't easy to get working on Windows, so I ended up using Hg. So for about the past ten years I've become an old fart, set in my ways, thumbing my nose at Git while more or less happily using Hg with BitBucket and TortoiseHg. That is, until last year when BitBucket dropped support for Hg repositories. :(

For a little while I remained stubborn and hosted my own RhodeCode server but it wasn't ideal because I actually collaborate with at least one other person on a somewhat regular basis and my ISP's upload speed isn't that great and my internet connection kept dropping out frequently, so it wasn't very reliable for others to connect to and use.

As a result, this past December I decided to bite the bullet and convert all my repositories to Git and start using Git from then on. And after doing some research I decided I'd rather be using GitLab than GitHub. So I first used a feature of GitHub to import my Mercurial repositories from my personal RhodeCode server and convert them to Git automatically. Then I used a feature of GitLab to import my GitHub repositories to GitLab.

While I was still using Hg, I was alternating between using TortoiseHg and SourceTree to manage my repositories. That is, I primarily used TortoiseHg, but I felt SourceTree had better integrated using development branches more easily. When I made the move to Git, I obviously had to drop TortoiseHg, but I decided to just keep using SourceTree, which supports both Git and Hg (for now... Atlassian owns BitBucket and SourceTree).

I think I got it all configured and had it working in December so that I could connect with GitLab and push/pull to/from my repositories. But then this year I've kind of taken a break from my usual thing and have just been doing little experiments that I never felt were big or important enough for version control. But now I'm starting to get back into wanting version control and I've run into a problem where I can't seem to get SourceTree to work with GitLab anymore.

The Problem:
Somehow I was able to successfully create a new remote repository from SourceTree, but then I immediately got an error when it tried to push my local repo to it. The error looks something like this:

remote: HTTP Basic: Access denied
remote: You must use a personal access token with 'read_repository' or 'write_repository' scope for Git over HTTP.
remote: You can generate one at https://gitlab.com/-/profile/personal_access_tokens
fatal: Authentication failed for 'https://gitlab.com/Deozaan/MyCoolRepository.git/'

GitLab has something called "personal access tokens" (PAT) which can be used in place of your password to authenticate third-party apps to work with your account. The UI doesn't make it very clear (IMO) which scopes are needed, and which scopes include the privileges of other scopes, etc. So, while the PAT I created from December had only the "api" scope, the error message says I need "read_repository" and/or "write_repository" so I created a new PAT with all the scopes.

All the things.png

It didn't help. I still get the same error.

I tried changing the URL to use SSH instead of HTTPS, but then it just asks me to load a ppk file which supposedly contains my SSH key. I don't have one of those. Or at least not the right one. I found one on my PC which I thought might be the right one, but when I load it, it just asks me for the SSH password over and over again. So it seems that the password I have stored in my password manager for GitLab SSH key does not match whatever SSH key is in that ppk file.

I do have my SSH private key stored in my password manager, but the putty agent (pageant) which SourceTree uses seems to require PPK format instead of... whatever format I have it stored as. It starts with "-----BEGIN OPENSSH PRIVATE KEY-----" whereas the random PPK file I found where I thought my GitLab SSH key would be starts with "PuTTY-User-Key-File-2: ssh-rsa"

GitLab PATs.png

So here I am with two PATs that don't seem to work anymore. Somehow I have saved an incompatible SSH key/password in my password manager. I swear I had this all working fine in December and I don't know what changed in the interim. And I don't know if it's a classic case of PEBCAK, or if GitLab's PATs aren't working right, or if SourceTree is not working properly. I just want to be able to push to and pull from my GitLab repos from SourceTree!

That said, I'm mostly just sticking with SourceTree because I'm already familiar with it and because it's free. If there's an alternative (and free) Git GUI client that works well with GitLab and runs on Windows which would solve my problem, I'd be happy to hear your recommendations on that front, as well. :Thmbsup:

6
I have added again a micro change.
Running with verbose switch = every minute it detect audio.  (for debug purposes to see whats happen)
Running without verbose switch = every hour it detect audio. (for normal usage)
(it will recover, might need one hour to do so in worst case)

So... here's an idea. Let me know if this will work or if there's a reason this can't be done (or if you just don't want to do it, that's fine, too):

Can you check the system datetime every minute, and only detect audio if the datetime is significantly different from the last time it was checked? My thinking is that if the app checks the time before I put my PC to sleep, then when I wake it up again the next time the app checks the time it will see that several hours have passed.

So, I think something as simple as only detect audio if the clock has changed by 5+ minutes should be sufficient.

7
@KodeZwerg: I have good news and bad news. v0.4 appears to successfully recover from sleep now! But it is a bit worse in terms of the moment-to-moment usage. If there's no other audio playing, v0.4 makes the speakers crackle every few minutes when it detects the audio device.

@app103: Thanks for that. The info you linked was a dead end for me, and my BT dongle is a cheap generic Chinese product from DealExtreme or AliExpress or similar. It didn't come with drivers or any indication of the manufacturer or chipset so I'm reliant on Windows to determine what drivers it needs and whether or not there are updates available, and it says there are no updates. But the Wave Generator seems to work well. 10 Hz isn't audible (to me) from this speaker, so I don't mind this as a solution until I decide to spend the few dollars on a USB->audio jack dongle. I haven't tested whether or not it survives/recovers from my PC entering sleep mode since I stopped it so I could test out KodeZwerg's app, but I suspect I'll find that out sometime in the coming days. :Thmbsup:

8
v0.3 doesn't seem to work for me. It says it's playing my favorite kind of music ( :P ) but the speaker never makes the initial crackle sound that would indicate audio is playing, and the volume mixer doesn't show any indication that any audio is being played. And when other audio does play, it begins with the crackling that this app is meant to help avoid.

v0.2 does work for me configured at 10 Hz at 0.1 volume, but has some issues which I'm not sure you can fix. When I put my computer to sleep and wake it up again in the morning, it doesn't seem to be playing audio anymore. I think this may have something to do with the fact that my PC has to reconnect to the BT speaker, which changes the output audio temporarily. My guess is that your app doesn't handle changes to the audio device and doesn't recover from that. But once I stop it and start it up again, it works like a charm until the next time I put my PC to sleep.

9
Me hopes to fulfilled your wish.

Thank you kindly. I'll start using it and give you more feedback if needed. If you don't hear back from me on this, then that means it's working well. :Thmbsup:

10
General Software Discussion / Re: Windows 10 Announced
« on: April 10, 2021, 02:57 AM »
I had an old Pentium I computer with a combo modem/soundcard that had issues staying connected to the internet when a system sound played (system would lock up just long enough to kick me offline), unless there was sound continuously flowing through the soundcard at all times. This meant playing music all the time, and usually keeping the speakers turned off if I didn't want to hear it, till I came across a small app capable of playing continuous low frequency tones that my cheap speakers were unable to produce. (25 Hz did the trick)

I originally made a reply here asking about this app, and got a few responses and a solution. But since it wasn't really related to Windows 10, those posts have been split off into a new thread here:

Program to play inaudible sound continuously

11
Thank you very much for your response, Shades. Your suggestions look like adequate workarounds for my issue. :Thmbsup:

Example: "kzToneGenerator.exe 100 1000 0.5"  <<- would play a 100Hz sound for 1000ms(1sec) at half possible volume output.

Like it, tell me?! Just a quicky made for you ;)

It works wonderfully. May I request a change to pass in -1 duration for it to play forever? Or possibly have it play forever until I press some input (such as Q) to stop it? If you don't want to bother with adding input checking, then I'm fine with being able to have it play forever and I can press ctrl-c to interrupt it.

12
Finished Programs / Program to play inaudible sound continuously
« on: April 09, 2021, 06:39 PM »
Old solutions for new problems....

I had an old Pentium I computer with a combo modem/soundcard that had issues staying connected to the internet when a system sound played (system would lock up just long enough to kick me offline), unless there was sound continuously flowing through the soundcard at all times. This meant playing music all the time, and usually keeping the speakers turned off if I didn't want to hear it, till I came across a small app capable of playing continuous low frequency tones that my cheap speakers were unable to produce. (25 Hz did the trick)

Flash forward to a couple of days ago, when a screwy Windows feature update, which I am unable to uninstall, messed up my bluetooth, so that no matter how I have the hardware settings configured, it turns Bluetooth off (to save power) when it thinks it is not in use. This is very BAD for a bluetooth mouse. I reported here about this issue in this thread, and was avoiding reinstalling that update for as long as possible, but Microsoft managed to automatically cram it down my throat when I recently rebooted my machine, despite having updates paused till some time in January.

BUT I noticed it doesn't cut off my mouse if I have sound playing through my bluetooth headphones. So, I am back to using that very old app, to generate a continuous 10 Hz tone, just so I can use my mouse.

I had to use the system volume mixer to set the volume of this app at a very low level, since my bluetooth headphones are capable of producing audible sound generated from this app, at even the lowest (10 Hz) setting.

Do you have a link to that app, app?

About 6 months ago I moved my entire PC setup into another room, and when I plugged in my speakers to the power source (a surge protector), they made a very loud POP sound, and ever since then none of the audio jacks on my PC work. So now I've got a bluetooth speaker connected to my PC, but it has the unfortunate problem of taking half a second to "warm up" (or catch up?) whenever some audio is played for the first time after a few seconds of silence. And it's like it receives and plays that first half-second of audio all at once, making an unpleasant (and relatively loud) popping or crackling sound in the speaker as it begins to play audio.

I figure if I could trick it into thinking it is constantly playing audio, then it would stay "awake" and not have this issue. Then I remembered you mentioned playing an inaudible, low frequency sound to help with your BT issues and so here I am, asking about it. :D


13
Nice work, as usual!

A little suggestion, if I may. It would be helpful if you included in your release threads (like this one) a little description about what your app is intended to be used for or why someone would want to use it. It doesn't need to be elaborate. Just a sentence or few. I know you include the link to the original thread that people can click through to read more details, but people prefer to be lazy and not have to click elsewhere to learn what the thing on this page does. And yes, even if the name of the app seems fairly self-explanatory, it would still be useful to have a short description, in my opinion.

Thanks for always being so helpful in taking up the coding snack requests! :Thmbsup:

14
DC Gamer Club / Ludum Dare 48: April 23rd-26th, 2021
« on: April 06, 2021, 12:49 AM »
Ludum Dare 48 is approaching fast! It begins three Fridays from now.

To be honest, I'm not especially motivated to participate this time, but it's kind of historic in that it's the 48th event of that which used to be called "LD48" due to its origin as a 48-hour game jam before being rebranded as "LDJam" a few years ago. So I feel I can't miss out on being a part of LD48. That said, I've never actually done the 48-hour "compo" and have always participated in the more laid-back 72-hour jam. Anyway, this time I'll be participating in the 72-hour jam as part of a team once again, so that should lighten the load.

Right now theme suggestions are open. Anyone can submit up to 3 themes, even if they're not participating. You just need to register a free account to be able to do so. If you'd like to suggest a theme, you may do so here: https://ldjam.com/ev.../ludum-dare/48/theme




See previous posts on DonationCoder about Ludum Dare:

Ludum Dare 47 - (My team made Chrono Crash for LD47)
Ludum Dare 46 - (My team made Defendeer for LD46)
Ludum Dare 45 Reviews - A thread about LD45 games
Ludum Dare 41 - (My team made It's Not Lupus! for LD41)
Ludum Dare 2017 Thread - A thread about games from LD37 and LD38
Ludum Dare 33 - A thread about LD33 games
Ludum Dare 32 - (I made Time Bomb during LD32)
Ludum Dare 31 - (I made Worm Wars during LD31)
Ludum Dare 30 - (I made Planetary Devourers during LD30)
Ludum Dare 29 - (I made It Came From... Beneath!! during LD29)
Ludum Dare [29] topic for other games - A thread about LD29 games
Ludum Dare 23 - (I made Be Tiny, World! during LD23)
Ludum Dare - Game Programming Challenges

15
He eventually uploaded the full course to Youtube, so the whole world is now able to enjoy it, for free.

Thanks for that. I just watched the whole thing. I learned something. :Thmbsup:

16
I've been watching a lot of LockPickingLawyer's videos on picking various locks. But today's video was a doozy!


17
DC Gamer Club / Re: Latest GOG Giveaway
« on: March 30, 2021, 10:54 AM »
XIII is free on GOG for the next 2 days.


18
I have a similar issue with trying to quit the program. The static/snow effect is really strange and distracting. That wouldn't be much of a problem if the option to disable quit confirmation dialog worked.
That I have not understand. You mean, on your system the quit dialog dont work?
Sorry for the static, I was just playing around with code ;)

I meant that the option to "Don't show this Dialog again" is disabled. :Thmbsup:

19
I finally decided I had some time to test this out and give some feedback. I realize now that Advanced Properties is probably not for me because I have no idea what most of the information it shows me means. :-[ But I do have a little bit of feedback on the aesthetics.

I really don't like the transparency effects. I feel I can't even concentrate on trying to figure out and use the app itself because I am too distracted by the transparency. I see that there's an option to disable the effects, but none of the options are enabled. Is it supposed to be that way?

AdvProp - Options.png

I also noticed that the Options window is "always on top" of other applications, even though the main AdvProp window can be hidden behind other windows.

I have a similar issue with trying to quit the program. The static/snow effect is really strange and distracting. That wouldn't be much of a problem if the option to disable quit confirmation dialog worked.

Advanced Properties by KodeZwerg.png

20
Not so important, but fwiw, there is a huge difference between e.g. a painting, and a reproduction photo/print of that painting.

Well, sure. Maybe. I mean, if I actually owned an original, historical artifact (such as the Mona Lisa), I would treat it very differently than I would a reproduction. My point was that, some people can approach the idea of "obtaining art" from a point of view where the difference between an original and a reproduction isn't so significant, while obviously the difference is very significant to others.

In other words, I'm more of a "function over form" kind of person. And to me the function of art is to hang it on the wall (or whatever) and for it to look aesthetically pleasing (or whatever). In my mind, the reproduction photo/print can do that just as well as the original. In fact, to me, having a reproduction would be vastly superior to owning the original! I wouldn't have to worry about (1) the huge upfront cost of purchasing the original, (2) insurance payments to cover potential theft, damage, or loss, (3) security costs to protect it from said potential theft, damage, or loss, (4) ongoing maintenance costs to protect/restore it from natural degradation, or (5) more generally, the huge amount of stress about the responsibility of being the caretaker of such an important piece of humanity's history. What if it was irreparably damaged or destroyed while in my care? 😬

I can buy a $15 poster, hang it on the wall, and if in 10 years the image has faded due to UV exposure or if it falls off the wall and gets damaged during an earthquake, who cares? I can just buy another $15 replacement. But again, that's how I prioritize the purpose and value of art. And that's why I would likely never spend hundreds of dollars on a piece of art. But all that said, I think it is perfectly reasonable and sensible for other people to have different priorities and to place much more value on owning original artwork over reproductions for various reasons.

21
I think that headline and the quote (which came from someone other than the author of the article) are too generalized and strong. There are too many blanket statements made as absolute fact when they actually apply only to a very specific niche.

I don't understand the current NFT craze. I think it is illogical and a "speculative mania" but NFTs are not inherently a pyramid scheme nor are they entirely for the benefit of grifters.

I see the current craze as more like a gold rush. And in a gold rush there are many people who choose to put everything (or at least too much) on the line in the hopes of striking it rich. Few people actually succeed, while the vast majority end up at a loss. Meanwhile, the shovel, pickaxe, and minecart vendors are happy to have the business.

If the quote was more specific, such as "the current craze over NFTs on Ethereum primarily benefits grifters" or if the article specified that "service X and/or Y selling NFTs is a pyramid scheme" then I'd find myself agreeing with the premise more.

But just because something is used by some people for nefarious or "dangerous" purposes, doesn't mean it is inherently nefarious or immoral.

Just because there was a tulip mania doesn't mean all sales of tulips are always without value and motivated by deceit or FOMO.

I'm not an art collector, and even if I became a multi-millionaire (or billionaire) I will likely never pay even hundreds of dollars for a single painting. But some art collectors are willing to spend millions on a piece of art. Why would someone pay millions of dollars for the original when you can buy a reproduction that looks virtually the same for a relative few dollars?

Similarly, why would anyone pay hundreds or thousands of dollars worth of cryptocurrency for what is, essentially, an internet meme, when anyone can just copy and share it?

Some people will find some kind of value in those kinds of ownership. I may not understand or agree with it, but that doesn't mean it isn't legitimate.


Are some people choosing to engage in something that appears to be or operate similar to a pyramid scheme? Yes. Are some people grifting others out of their money? Yes. Is this unique to NFTs? No. Is this the sole purpose of NFTs? No.

I'll point out that NFTs are not entirely new. It's just that there is a renewed (speculative) interest in them because cryptocurrencies are currently experiencing a boom in value. The last NFT craze I can think of was crypto-kitties, and it happened at the height of the last boom in late 2017. That's the craze that spawned many of the NFT sites/services that are being used for the current craze on Ethereum.

Between then and now, NFTs have been used more quietly and more "boringly" on more sane and rational projects, which nobody really bothered complaining about because it wasn't exciting enough to generate clicks.

To me, this article, and its line of thinking, come across as moral panic akin to "rock music is evil" by people who don't understand (or like?) new things. Especially because the people involved in that article seem to think that NFTs exist only on Ethereum where minting them is (currently) very expensive in terms of both electricity and cryptocurrency. But I just sit back in bemusement and think of the adage "a fool and his money are soon parted."

22
General Software Discussion / Re: Deozaan's Simple Text Editor
« on: March 20, 2021, 06:34 PM »
This is designed for plaintext only. But it probably shouldn't crash when an unsupported format is loaded. Upon further investigation, it looks like I made a mistake in attempting to gracefully handle errors when loading files. It was confusing because printing the error (which is an integer) to the debug log will automatically convert it to a string. But I attempted to add a more helpful message to the log and concatenate the error to the message, not realizing that string concatenation doesn't automatically cast the integers to strings.


Can you limit the extensions to *.txt only? That's a clear sign that it's a text editor for the purposes of this small test, since you didn't really intend it for anything.

I can do that. I just chose not to because not all plaintext files end in .txt extension, such as .ini, .log, .json, etc. This is especially true on different platforms such as Linux, which often has plaintext files with no extension at all. That said, this thread has convinced me to reconsider, and I will set it to filter *.txt by default. The problem is that it will still allow you to select *.* from the dropdown, so if you do that and try to load an incompatible file type, it could potentially still crash/lock the program.

Simple Text Editor - Filter Dropdown.png

Opening Microsoft Word files = Application Crash.
But it probably shouldn't crash when an unsupported format is loaded.
I believe I've got this fixed for the new release.

Bad news.
On more testing, more things happen.
Errorhandling should be improved.
I did try open files that are not supposed to be opened by your program.
Program will freeze and can not be restarted after I terminate process.
I needed to go into my /user/.... folder and delete prefs.dat and logs folder, otherwise program is not able to run anymore. It simply does nothing.
My suggestion: limit file dialog filter to *.txt and not *.*.

I've just experimented with a bunch of different file types and filesizes. I've made some improvements that should allow it to fail faster. But in the process I've discovered that it can still take a very long time to parse a large text file. That is, I've successfully (failed) loading an invalid 385 MB zip file almost instantly. But attempting to load a valid 128 MB text file locks up the application while it attempts to parse the string data and display it. Presumably if you wait around long enough it will recover and eventually display it. After a few tests trying to open incompatible filetypes of various filesizes, the final one which was only about 11.5 MB and had me waiting about 50 minutes before it recovered (this was before I fixed things to fail faster), I decided I didn't have the patience to see how long it would take to open the 128 MB text file.

I think my changes to fail faster will also fix the program being unable to run again if the process is terminated, since it now reads the bytes from the file system very quickly and closes the file before attempting to parse the bytes into a readable/displayable string.

And finally, I've added a dialog which warns you when you're about to open a large file and makes sure you really want to do it. I have arbitrarily decided to warn only for files larger than 8 MB. Though that may still be too large. The smallest large text file I could find was ~37.5 MB and it locked up the program for longer than I ever bothered waiting before terminating the process. Hopefully 8 MB isn't too bad.

Simple Text Editor - Large File Warning.png

Program messes around with my Registry/NVidia/OpenGL settings by creating keys.
But if you can tell me what changes it makes I can look into whether or not I can prevent that from happening.
That is okay. You do not have possibilites to avoid such, that is the used 3d-Engine.

This looks to me like it is your GPU reading/writing stuff, because Godot requests access to have the GPU render things.


Everything is a bit too dark. Dark Menu on Dark Background... (maybe add a lightgray border to have it more seperated)
Can you be more specific about this? Yes, the backgrounds are dark, but the foreground text is light, which should result in decent contrast and easy readability.
If Border would be lightgray from menu, the visual content would not look "melted" (?)

I still don't see the problem here. When you click a menu, you expect the options to show up below it. They do. Each option is clearly visible and blocks out the content behind it. Unless I'm missing a vital problem that you're trying to communicate to me, I think I'm going to chalk this one up to personal preference and say I don't intend to fix it, since it would require delving into customizing the theme.

FYI I didn't choose the color scheme. I pretty much just used the default colors for Godot's UI controls.

Godot Window.png

You can find v1.210320.1 on my KeyBase: https://keybase.pub/...an/SimpleTextEditor/

Jotti report.
VirusTotal report.

23
General Software Discussion / Re: Deozaan's To-do List
« on: March 20, 2021, 11:05 AM »
Right now I'm taking some classes in Unity to get up to speed, then I guess I'll take a look there.

I've been increasingly unhappy with the direction Unity is taking over the years. Admittedly, my PC is getting long in the tooth, coming up on its 10th birthday this year. But despite the fact that virtually everything else I do on this machine feels like it runs pretty much as well as it did when the PC was new, it feels to me like Unity is getting more bloated and sluggish and buggy as the years go by. And that's despite the fact that they announced a few years ago that their focus would be on giving Unity "performance by default." I'll resist the temptation to rant on the subject further and just say that my increasing displeasure with Unity is why I started looking into other options and decided to give Godot a try.

24
This looks like it could be useful. I plan to give more detailed feedback later.

By the way, if you're getting a head start on the next NANY, keep in mind it will be NANY 2022. :Thmbsup:

25
General Software Discussion / Re: Deozaan's Simple Text Editor
« on: March 20, 2021, 02:35 AM »
I will check out your experiment! (12mb is a bit big, first impression ^^)

Thanks for checking it out. :D I guess the 12 MB is due to it being a complicated game engine with custom UI stuff rather than just some native OS UI and code. If I used .7z format I could get it down to about 8 MB, but I opted for .zip format for maximum compatibility.

I really wasn't intending on working on this project further, but it seems you've found a lot of bugs that need fixing!

I loaded a .txt file. Window Caption/Title is wrong, file has a name, trust me :)

Strange. I was pretty sure I had that working. But I see that it is indeed broken for me, too.

Fixed in the new release.

Your counters are not working? All say 0, as you can see their is text.

The counters work, but I forgot to have them update when loading a file. :-[ If you press any key it will immediately update the counts.

Fixed in the new release.

Opening Microsoft Word files = Application Crash.

This is designed for plaintext only. But it probably shouldn't crash when an unsupported format is loaded. Upon further investigation, it looks like I made a mistake in attempting to gracefully handle errors when loading files. It was confusing because printing the error (which is an integer) to the debug log will automatically convert it to a string. But I attempted to add a more helpful message to the log and concatenate the error to the message, not realizing that string concatenation doesn't automatically cast the integers to strings.

In other words, I think the crash was caused by an error in the code meant to display useful information about an error that had been handled gracefully. ;D

I believe I've got this fixed for the new release.

There will be a file created (prefs.dat), does not work if running inside Windows protected folders!

Good point. I was attempting to make it run "portably" and just write everything in the same directory as the executable. I didn't think about people putting it inside protected folders.

It will write to the user directory (AppData/Roaming/Deozaan/SimpleTextEditor) in the new release.

On some files the vertical scroll does not work correct, When I am at EOF the line is behind your statusbar.

Ah yes, that's interesting. It seems it doesn't always automatically scroll down to keep the caret visible. The scroll bar functionality is all built-in stuff that Godot provides. I don't know how to change it. But what I've noticed is that it has something to do with the height of the TextEdit UI control. So, for the new release I've changed the default window size which should make it automatically scroll to keep the caret visible at all times. Unless you resize the window, of course.

But since the window size is saved/loaded to prefs.dat, you may need to use the View -> Reset Window Size/Position menu item to get it to the default size again.

Program messes around with my Registry/NVidia/OpenGL settings by creating keys.

It does? So much for running it portably... I'm not sure I have any control over that. It may be something Godot does on its own. But if you can tell me what changes it makes I can look into whether or not I can prevent that from happening.

Everything is a bit too dark. Dark Menu on Dark Background... (maybe add a lightgray border to have it more seperated)

Can you be more specific about this? Yes, the backgrounds are dark, but the foreground text is light, which should result in decent contrast and easy readability.

Save As: Does not offer any text formats (Ascii, Ansi, UniCode etc.)

I think I'm going to file this one as "working as intended" since I have no plans to support anything except UTF-8 format.



I've uploaded v1.210320.0 with the aforementioned fixes to my KeyBase: https://keybase.pub/...an/SimpleTextEditor/

Jotti says it's clean.
VirusTotal says it's clean.

Pages: [1] 2 3 4 5 6 ... 366next