Search found 65 matches

by Deluxe0321
Tue Oct 25, 2016 4:38 pm
Forum: Coding Questions
Topic: 5.43 - ReceiveHTTPFile error
Replies: 2
Views: 1291

Re: 5.43 - ReceiveHTTPFile error

Hi, the previous implementation was wrong. I assume this is a simple change introduced by including libcurl into PureBasic. ReceiveHTTPFile is now working as it should. See: https://tools.ietf.org/html/rfc7231#section-6.5 and: https://tools.ietf.org/html/rfc7231#section-6.5.4 The Procedure does noth...
by Deluxe0321
Wed Aug 10, 2016 10:37 pm
Forum: Coding Questions
Topic: problem in memory with ReceiveHttpMemory
Replies: 3
Views: 1067

Re: problem in memory with ReceiveHttpMemory

To ensure a non-blocking app you may execute the download part in a thread. #DownloadDone = #PB_Event_FirstCustomValue Structure GetWebMem URL.s ThreadID.i EndStructure Procedure GetWebMemWorker(*GetWebMem.GetWebMem) If Not *GetWebMem ProcedureReturn #False EndIf Url.s = *GetWebMem\URL.s FreeMemory(...
by Deluxe0321
Sat Apr 09, 2016 2:40 am
Forum: Coding Questions
Topic: Fuzzy Search
Replies: 6
Views: 1178

Re: Fuzzy Search

A good way to perform a fuzzy search is to use the algo provided by Levenshtein. Wiki: https://en.wikipedia.org/wiki/Levenshtein_distance Code: https://github.com/acmeism/RosettaCodeData/blob/master/Task/Levenshtein-distance/PureBasic/levenshtein-distance.purebasic In combination with a prefilled li...
by Deluxe0321
Fri Sep 25, 2015 9:48 am
Forum: Linux
Topic: Need your libcurl.so name on your favorite distro
Replies: 18
Views: 48338

Re: Need your libcurl.so name on your favorite distro

robo@t_lab:~# lsb_release -a Distributor ID: Debian Description: Debian GNU/Linux 8.1 (jessie) Release: 8.1 Codename: jessie robo@t_lab:~# ls /usr/lib/x86_64-linux-gnu/libcurl* -lisa 230823786 0 lrwxrwxrwx 1 root root 19 Apr 29 11:47 /usr/lib/x86_64-linux-gnu/libcurl-gnutls.so.3 -> libcurl-gnutls.s...
by Deluxe0321
Sat Aug 08, 2015 1:50 am
Forum: Off Topic
Topic: Is HTML5 really the future proof way?
Replies: 8
Views: 3100

Re: Is HTML5 really the future proof way?

HTML is perfect to have a fluid, easy customizable user interface without to much work *if* combined with convenient "native ui" aspects.. example**: HERE ( fully written in PB ) ** a combination of a canvas, webgadget and scintilla ( most standard/native PB code, except reading zip files ...
by Deluxe0321
Sat Aug 08, 2015 1:06 am
Forum: Coding Questions
Topic: Just Starting Out (Again) & Need Some Help
Replies: 3
Views: 932

Re: Just Starting Out (Again) & Need Some Help

Depending on how you plan to implement, respectively code these "daemons" you have multiple options while using Purebasic. Personally - at least until the next version of Purebasic is released I would recommend to use third party libs. Purbasic is awesome and powerful but the network proto...
by Deluxe0321
Mon Dec 08, 2014 8:31 am
Forum: Tricks 'n' Tips
Topic: [Windows,Linux] Directory WatchDog
Replies: 5
Views: 3397

Re: [Windows,Linux] Directory WatchDog

Code Updated:
- Windows: Changed filter to "all". The module does now also recognize file changes
- Linux: Added Linux support.

Thank you!
by Deluxe0321
Fri Dec 05, 2014 3:26 pm
Forum: Tricks 'n' Tips
Topic: [Windows,Linux] Directory WatchDog
Replies: 5
Views: 3397

[Windows,Linux] Directory WatchDog

Hi - just in case someone needs it. The module above is a "wrapper" to easily use ReadDirectoryChangesW (Windows) or Inotify (Linux) to observe changes in a selected Directory. It will recognize most common operations like: - file deletion - file changeing - file adding You can of course o...
by Deluxe0321
Fri Dec 05, 2014 3:02 pm
Forum: Coding Questions
Topic: How to know if a disk unit is connected?.
Replies: 2
Views: 1539

Re: How to know if a disk unit is connected?.

FileSize("<drive>") should do the job. Windows: Will return -2 if the drive is connected Will return -1 if not Linux / MacOS: Will return 0 if the drive is connected Will return -1 if not. Not the best solution, but should work. Procedure isDriveConnected(Path.s) If Path.s = "" P...
by Deluxe0321
Fri Aug 08, 2014 8:30 am
Forum: Announcement
Topic: Removing 'ASCII' switch from PureBasic
Replies: 210
Views: 82810

Re: Removing 'ASCII' switch from PureBasic

Let's make a deal then; If Fred fixes the speed related issues in the string library I would fully support the transition. In Addition: Of course that would mean that he implements an easy way to output content in ascii too - by Memory (ToAscii()?) or by any other way. What happens PB internally is ...
by Deluxe0321
Thu Jul 03, 2014 12:21 am
Forum: Coding Questions
Topic: Unicode Chars
Replies: 1
Views: 858

Unicode Chars

Not sure if this is a bug or a feature request. Since we now have a wonderful and fully UTF capable IDE - "special" characters should be supported too. Code: http://pastebin.com/KR1UJ8at Sadly I can't post the code here - I get an SQL Error if try: http://s11.postimg.org/y2paohb1r/Board_Is...
by Deluxe0321
Mon Jun 02, 2014 8:14 pm
Forum: Coding Questions
Topic: Structured variable in procedure
Replies: 4
Views: 830

Re: Structured variable in procedure

Code: Select all

Vector(@Result, *Data0, *Data1)
if you want to "send" the data from the "main" code

Code: Select all

Vector(@Result, @Data0, @Data1)
Data0 & Data1 are empty ;) since you define them newly in LoadData(*Data0.Vector, *Data1.Vector)

Code: Select all

  Define.Vector Data0
  Define.Vector Data1
by Deluxe0321
Sat Feb 15, 2014 3:24 pm
Forum: Off Topic
Topic: about PureBasic logo and its secret messages
Replies: 38
Views: 10773

Re: about PureBasic logo and its secret messages

;quick edit for the lazy ;) ;tick (request admin mode - compiler settings) if your PB folder is in Program Files InitEngine3D() InitSprite() InitNetwork() Logo.s = #PB_Compiler_Home + "Examples/3D/Data/Textures/"+"logo.png" If Not ReceiveHTTPFile("http://www.purebasic.com/l...
by Deluxe0321
Sat Dec 21, 2013 10:25 pm
Forum: Off Topic
Topic: NoiTunes - file manager with built-in FLAC -> MP3 conversion
Replies: 18
Views: 3849

Re: NoiTunes - file manager with built-in FLAC -> MP3 conver

Do it yourself! :mrgreen: Why not using VLC? :) - at least for the transcoding (Transcoding FLAC to MP3) - jet as VBS but should be easy to do in PB too: https://forum.videolan.org/viewtopic.php?p=365096#p365096 Reading MP3/Flac/<OTHERFORMATHERE> MediaInfo/Tags could be done with the bass.dll http:/...