Search found 58 matches

by pcfreak
Thu Aug 18, 2016 4:46 pm
Forum: Applications - Feedback and Discussion
Topic: CronAlert
Replies: 4
Views: 4116

Re: CronAlert

I was actually hoping for more feedback ;)
If anyone tried out CronAlert, please share your opinion.

PS: I have updated the link in the initial post to point to the repository instead of the first release.
by pcfreak
Mon Aug 08, 2016 9:35 pm
Forum: Applications - Feedback and Discussion
Topic: CronAlert
Replies: 4
Views: 4116

Re: CronAlert

Thank you for trying it out. There was a bug when dealing with invalid triggers (like Sunday on August 8th).
I fixed this.

https://github.com/user2525536/CronAler ... /1.1.3.zip

I hope it works for you now.
by pcfreak
Sun Aug 07, 2016 9:49 pm
Forum: Applications - Feedback and Discussion
Topic: CronAlert
Replies: 4
Views: 4116

CronAlert

Hello.
It's been a while since I programmed something in PureBasic and I just had the urge to write some PureBasic again :)
So here it is. It's basically something like Cron in Linux but for Windows with some little 'extras'.
I kept the configuration format similar.
No in-programm editor is ...
by pcfreak
Sun Oct 05, 2014 4:16 pm
Forum: Tricks 'n' Tips
Topic: Huge number module
Replies: 12
Views: 6986

Re: Huge number module

Why reinventing the wheel?
There are a lot of working big number implementations in the net.
For example gmp.
Here is an example using gmp with PureBasic x86
http://www.filedropper.com/gmp-431-purebasic
I have compiled the gmp library with GCC.

Feel free to use it according GNU LGPL v3.
For ...
by pcfreak
Fri Jul 26, 2013 6:13 pm
Forum: Tricks 'n' Tips
Topic: Geting the system uptime on Windows
Replies: 27
Views: 10368

Re: Geting the system uptime on Windows

But only works if the system is English.
by pcfreak
Sun Jun 30, 2013 7:48 pm
Forum: Announcement
Topic: PureBasic 5.20 beta 20 is out
Replies: 360
Views: 167900

Re: PureBasic 5.20 beta 3 is ready to test !

Hello,

I also have a suggestion for the term usemodule/hidemodule to rename:
What about: withmodule/endwithmodule
I think the funktionality ist nearly the same, so this could be even more consistent.

Many thanks for this great Version!

Phil

I aggree to this as I see Module some kind of ...
by pcfreak
Sun Apr 15, 2012 12:32 pm
Forum: Tricks 'n' Tips
Topic: class for image manipulation (OOP)
Replies: 5
Views: 2719

Re: class for image manipulation (OOP)

Way too old code.. seems the example was broken ;)
;########################################
UseJPEGImageDecoder()
;
file$=OpenFileRequester("ouvrir un jpg","e:\","images|*.jpg",0)
img1 = LoadImage(#PB_Any, file$)
img2 = CopyImage(img1, #PB_Any)
img3 = CopyImage(img1, #PB_Any)

filter1 ...
by pcfreak
Fri Apr 13, 2012 6:33 pm
Forum: Tricks 'n' Tips
Topic: class for image manipulation (OOP)
Replies: 5
Views: 2719

Re: class for image manipulation (OOP)

Part 2/2


Procedure.i ImageFilter_weight(*this.IImageFilter, *image.IImageFilter, factor.f = 1, delta.i = 0)
Protected *object.OImageFilter
Protected *src.ImageFilter_RGBA, *dest.ImageFilter_RGBA
Protected s.i, d.i
Protected int.i
If *this = #Null Or *image = #Null
ProcedureReturn #False ...
by pcfreak
Fri Apr 13, 2012 6:33 pm
Forum: Tricks 'n' Tips
Topic: class for image manipulation (OOP)
Replies: 5
Views: 2719

class for image manipulation (OOP)

Here is some 2 years old code of me for someone who may has better use of :?
And because of the error I got at the first try posting it here (Your message contains 82945 characters. The maximum number of allowed characters is 60000.) it is split in 2 parts.
Part 1/2:
Interface IImageFilter ...
by pcfreak
Wed Mar 07, 2012 6:37 pm
Forum: Tricks 'n' Tips
Topic: Adler32 Checksum
Replies: 11
Views: 3701

Re: Adler32 Checksum

There was once an assembler code for this on the forum...

; English forum: http://purebasic.myforums.net/viewtopic.php?t=8957&highlight=
; Author: Wayne Diamond
; Date: 01. January 2004


; Adler32 - an algorithm used by ZIP files that creates a 32-bit checksum.
; The algorithm is approximately 33 ...
by pcfreak
Fri Jan 27, 2012 7:32 pm
Forum: Tricks 'n' Tips
Topic: Format string with some values like sprintf (C)
Replies: 62
Views: 41972

Re: Format string with some values like sprintf (C) - Update

I'd replace the hex value check with
Select num2
Case 0 To 2 : help = RSet ( Hex ( PeekB ( *value ), #PB_Byte), num2, "0" )
Case 3 To 4 : help = RSet ( Hex ( PeekW ( *value ), #PB_Word), num2, "0" )
Case 5 To 8 : help = RSet ( Hex ( PeekL ( *value ), #PB_Long), num2, "0" )
Default : help = RSet ...
by pcfreak
Fri Jan 20, 2012 8:09 pm
Forum: Tricks 'n' Tips
Topic: API way to add backslash to a path
Replies: 16
Views: 4584

Re: API way to add backslash to a path

But using PathAddBackslash_() can create a buffer overflow if the string memory is not large enough.

http://msdn.microsoft.com/en-us/library/windows/desktop/bb773561(v=vs.85).aspx
Parameters
lpszPath [in, out]
Type: LPTSTR
A pointer to a buffer with a string that represents a path. The size of ...
by pcfreak
Thu Dec 22, 2011 10:13 pm
Forum: Feature Requests and Wishlists
Topic: Select text / get selection for StringGadget/EditorGadget
Replies: 19
Views: 14277

Re: Select text / get selection for StringGadget/EditorGadge

+1

Definitely a need feature in my opinion.
by pcfreak
Sat May 07, 2011 12:13 pm
Forum: Tricks 'n' Tips
Topic: Pseudo Infinite Monkey Theorem
Replies: 11
Views: 3124

Re: Pseudo Infinite Monkey Theorem

My monkey was way too silly. Even after >2 billion I only got things like this:
Image
:?
by pcfreak
Sat Jan 22, 2011 10:35 am
Forum: Tricks 'n' Tips
Topic: NOL
Replies: 18
Views: 6781

Re: NOL

Here is my line count function... DataSection
!CountLinesPcf_eoli:
!db 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 1, 0, 0
!db 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0
!db 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0
!db 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0
!db 0, 0, 0, 0, 0, 0, 0 ...