Search found 74 matches

by Julcar
Dec 23, 2020 8:11
Forum: Linux
Topic: Why do graphics programs require libtinfo/ncurses?
Replies: 9
Views: 752

Re: Why do graphics programs require libtinfo/ncurses?

Hi xlucas, I am also interested on this. I mostly compile for the web, not needing to display to console, but still I have to carry on with the ncurses dependency which makes grow my binaries
by Julcar
Nov 02, 2020 6:00
Forum: General
Topic: Help to decide: Sqlite vs self-implemented no-sqlite engine
Replies: 3
Views: 287

Help to decide: Sqlite vs self-implemented no-sqlite engine

hello guys, I have to choose an option for the data storage of my freebasic web application. Currently I have a dummy file-based key/value data storage, but has its limits, so I am thinking big: Could I use SQLite 3 for data storage (that implies a depedency to 3rd party code) or Could I port a no-s...
by Julcar
Sep 29, 2020 16:53
Forum: General
Topic: Execute function stored as string literal
Replies: 15
Views: 592

Re: Execute function stored as string literal

By curiosity, I downloaded your project, compiled it and ran it, without having any idea of what it is. :) Here is what I get: [roland@localhost Iguana CMS-7d1a3fe5b0]$ ./index Content-Type: text/html; Charset= [roland@localhost Iguana CMS-7d1a3fe5b0]$ What is the program supposed to do? Well, if y...
by Julcar
Sep 29, 2020 7:50
Forum: General
Topic: Execute function stored as string literal
Replies: 15
Views: 592

Re: Execute function stored as string literal

Thankyou so much guys, this commit is dedicated to those who gave me a hand yesterday: http://chiselapp.com/user/julcar/reposi ... e5b03821d8
by Julcar
Sep 28, 2020 23:11
Forum: General
Topic: Execute function stored as string literal
Replies: 15
Views: 592

Re: Execute function stored as string literal

In this file I have a module loader procedure that receipts the request query string http://chiselapp.com/user/julcar/repository/IguanaCMS/file?name=index.bas&ci=7348021f6d25c4f62801f78bf7248997d595ba3f In modules.bas I select-case the module name and execute the proper function declared in modu...
by Julcar
Sep 28, 2020 22:52
Forum: General
Topic: Execute function stored as string literal
Replies: 15
Views: 592

Re: Execute function stored as string literal

In FB you simply write (procedure) Identifier(argument-list): Sub PrintMSG(ByVal MSG As String) Print MSG End Sub PrintMSG("Hi, there") PrintMSG("current time: " + Time) PrintMSG("current date: " + Date) #Ifdef __FB_PCOS__ Sleep #endif is something way more complex (se...
by Julcar
Sep 28, 2020 21:44
Forum: General
Topic: Execute function stored as string literal
Replies: 15
Views: 592

Re: Execute function stored as string literal

Looks just what I was looking for.

Another question: can the pointer variable be Dimmed as Shared or stored in an array?

Thanks so much
by Julcar
Sep 28, 2020 20:58
Forum: General
Topic: Execute function stored as string literal
Replies: 15
Views: 592

Execute function stored as string literal

Hi, maybe this was asked before, or sounds crazy but anyway, here comes let's supposse I have something like this: Sub mySub() Print "hello world!" End Sub Dim as string theSubToExec theSubToExec = "mySub" Call (theSubToExec) And thus, the last line would execute the procedure......
by Julcar
Sep 25, 2020 7:42
Forum: Community Discussion
Topic: Reinventing the wheel
Replies: 17
Views: 1051

Re: Reinventing the wheel

Not sure if this should go here or in "Programming". It really is about programming, but it's a philosophical topic, so... that's why. Since I started programming, about 25 years ago, I have been criticised a few times for one particular thing and I've seen other being criticised for that...
by Julcar
Sep 24, 2020 7:52
Forum: Projects
Topic: My JSON Parser
Replies: 18
Views: 5749

Re: My JSON Parser

Roland Chastain wrote:
Julcar wrote:Hi, both links are down, is there a way you can publish your code?

Hello! Here you are: jsonparser.zip

I would suggest you to edit your message, and delete the dead link. I will do the same with the message that you quoted.

Thankyou so much
by Julcar
Sep 24, 2020 6:26
Forum: Projects
Topic: My JSON Parser
Replies: 18
Views: 5749

Re: My JSON Parser

Roland Chastain wrote:In case someone is interested, here is an alternative link to download the JSON Parser:


Hi, both links are down, is there a way you can punlish your code?
regards.
by Julcar
Sep 20, 2020 17:19
Forum: General
Topic: Sorting Dir() result by date-time attribute
Replies: 18
Views: 817

Re: Sorting Dir() result by date-time attribute

The case is that I need a cross-platform safe way to list files (only the name + extension) sorted by date whether ascendent or descendent
by Julcar
Sep 20, 2020 16:57
Forum: General
Topic: Sorting Dir() result by date-time attribute
Replies: 18
Views: 817

Re: Sorting Dir() result by date-time attribute

Hi Julcar, great batch file. Unfortunately I can't decypher it. I just see the %1 that means you need to provide a command argument to the batch file. For the rest, I don't see what is %2, and so on, or any of the switches of DIR (maybe /B sounds familiar). If you could split it in a more managable...
by Julcar
Sep 20, 2020 13:49
Forum: General
Topic: Sorting Dir() result by date-time attribute
Replies: 18
Views: 817

Re: Sorting Dir() result by date-time attribute

Thanks for the replys 0_o hehe In Windows I use this batch file which I call with SHELL and let me save the listing in a file in disk sorted by creation date @echo off setlocal set cnt=0 for /f "delims=" %%A in ('DIR %1 /B /L /O:-D /T:C %2') do ( echo %%A set /a "cnt+=1, 1/(cnt%%%3)&q...
by Julcar
Sep 20, 2020 7:18
Forum: General
Topic: Sorting Dir() result by date-time attribute
Replies: 18
Views: 817

Sorting Dir() result by date-time attribute

Hi,

I got to list files in directory using Dir(), but I still cannot determine the sorting criteria, so I would like to know it there is a way to define the sorting to creation/modification date both ascendent or descendent.

Many thanks.

Go to advanced search