Search found 97 matches

by forumuser
Mon Jun 24, 2019 4:14 pm
Forum: Applications - Feedback and Discussion
Topic: Code Cleaner
Replies: 14
Views: 5381

Re: Code Cleaner

@RSBasic

No, sorry, commercial project...

Had some more time.
Again, only the 4 inner lines (and their spaces are selected)

Arguments: /RemoveEmptyLines /RemoveSpacesAtEndOfLines
Executing it, nothing is edited

but without /RemoveEmptyLines:
Spaces are stripped

so it seems it doesn't like the ...
by forumuser
Sun Jun 23, 2019 11:14 pm
Forum: Applications - Feedback and Discussion
Topic: Code Cleaner
Replies: 14
Views: 5381

Re: Code Cleaner

Imagine you have this:

EndIf




; Restart ourselves if necessary (UAC protected directory)

Between the EndIf and the comment line are 4 lines, all of them with two spaces
If I select these 4 lines and execute code cleaner with /RemoveSpacesAtEndOfLines
I would expect that I still have the ...
by forumuser
Thu May 30, 2019 10:01 am
Forum: Applications - Feedback and Discussion
Topic: Auto Syntax Check
Replies: 19
Views: 6765

Re: Auto Syntax Check

@RSBasic

Sorry, hadn't had the time to post some reduced source code (yet), so: thanks for fixing it without!

Next problem:
Constant not found: #PB_Editor_OriginalFilename

I'm working with version info in the compiler options for the current project to automatically
increase file version on a new ...
by forumuser
Wed May 29, 2019 4:16 pm
Forum: Applications - Feedback and Discussion
Topic: Auto Syntax Check
Replies: 19
Views: 6765

Re: Auto Syntax Check

Interesting :mrgreen:

- It doesn't quit when you close PB (v5.71 beta 1 LTS x64)
- We can't copy what it finds via right click - Copy Log but I guess that can't be changed


[<time>] Auto Syntax Check has detected an error.
[<time>] Line 23 - File not found (C:\Users\<username>\AppData\Local\Temp ...
by forumuser
Tue May 28, 2019 11:36 pm
Forum: Feature Requests and Wishlists
Topic: Fast string
Replies: 67
Views: 53765

Re: Fast string

@Cyllceaux

Procedure StringAppend(*sb,string.s)
Protected size,*Offset
If *sb
size=MemorySize(*sb)
*Offset=size
EndIf
size+StringByteLength(string)
*sb=ReAllocateMemory(*sb,size,#PB_Memory_NoClear)
PokeS(*sb+*offset,string,-1,#PB_String_NoZero)
ProcedureReturn *sb
EndProcedure

Procedure ...
by forumuser
Mon May 27, 2019 10:18 pm
Forum: Applications - Feedback and Discussion
Topic: Multicolor Procedure List
Replies: 132
Views: 63308

Re: Multicolor Procedure List

If you are using the PB Portable version, then my tool is also in Portable mode
Thanks!
by forumuser
Mon May 27, 2019 2:02 pm
Forum: Applications - Feedback and Discussion
Topic: Multicolor Procedure List
Replies: 132
Views: 63308

Re: Multicolor Procedure List

All color settings are stored here: %AppData%\RSBasic\Multicolor Procedure List\ProcedureColors.ini
What about us portable users?

How about this:
If ProcedureColors.ini is found in the same folder as the .exe
it is used and NO %APPDATA%\RSBasic is ever used and (of course) not even created?
by forumuser
Mon May 06, 2019 10:35 pm
Forum: Windows
Topic: Get the overall brightness level of a picture?
Replies: 5
Views: 2917

Re: Get the overall brightness level of a picture?

@Mijikai
Thanks for the hint!

@Sicro
Holy cow, that's amazing!
I've changed the step value to -4 to make it faster
and the matching quote for the dark pictures is ~99% :D
by forumuser
Mon May 06, 2019 7:49 pm
Forum: Windows
Topic: Get the overall brightness level of a picture?
Replies: 5
Views: 2917

Get the overall brightness level of a picture?

Hi,

is it possible to load e.g. a .jpg file and analyze it for the level of brightness?
The picture should NOT be displayed!

Reason: I have thousands of pictures that were taken with very! low light and
are 95% just... black.

I'd like to identify those without human interaction :mrgreen:
by forumuser
Thu Mar 21, 2019 9:25 am
Forum: Coding Questions
Topic: Binary search a sorted file?
Replies: 4
Views: 1308

Re: Binary search a sorted file?

Solved it by using the (iterative) example code from
https://rosettacode.org/wiki/Binary_search#PureBasic

Maybe this could be more streamlined but in general
I'm happy with the solution. Finding a hash in a 25 GB
test file takes about 3 to 20 milliseconds (seek times
aren't relevant, the file is ...
by forumuser
Mon Mar 18, 2019 8:18 pm
Forum: Coding Questions
Topic: Binary search a sorted file?
Replies: 4
Views: 1308

Binary search a sorted file?

Hi,

is it possible to use a tree-based search on a very large (about 5 GB) .txt
file to find a line in it that begins with a hash (md5)?
The result that should be returned should be the full line (hash|file name...|size).

E.g.
data.txt (UTF-8 encoded, no BOM)

...
54edea5c805e0b99fee035bb508de1f8 ...
by forumuser
Sat Mar 16, 2019 10:16 am
Forum: Announcement
Topic: HTML5 Browser
Replies: 193
Views: 103750

Re: HTML5 Browser

Thanks for mentioning your OS version, if your system has a GPU, and if the demo runs smoothly.
Server 2012 R2 U4
GPU = NVIDIA GeForce GTX 660
Intel Core i5 3570K, 3.4 GHz

The demo runs smooth at 60 fps,
~10% CPU, ~32MB ram
by forumuser
Fri Mar 15, 2019 7:58 am
Forum: Announcement
Topic: HTML5 Browser
Replies: 193
Views: 103750

Re: HTML5 Browser

@firace

Interesting. It works fine under Windows 7 x64 SP4 and Windows Server 2019 RS5
and... after creating a new VM with Windows 8.1 (the normal consumer edition of
Server 2012), even there.

So it really seems to be a problem just with Server 2012...
by forumuser
Thu Mar 14, 2019 11:53 am
Forum: Announcement
Topic: HTML5 Browser
Replies: 193
Views: 103750

Re: HTML5 Browser

Windows Server 2012 R2 U4

This behavior was already there when I used 0.64.0.327
and I updated today to 0.65.0.418 and it's still the same.
Can't say if it existed before 0.64.0.327, though...

I'm using the non-security restricted version by renaming
forkle to forkle_nsc if this matters...
by forumuser
Thu Mar 14, 2019 9:19 am
Forum: Announcement
Topic: HTML5 Browser
Replies: 193
Views: 103750

Re: HTML5 Browser

What I'm finding a bit weird, behavior wise:
When I select an url from the drop-down button of the address bar,
the url isn't resolved immediately but you need to click into the
address bar field again.

Maybe this can be changed?