UT v2.0 - Open Souce project

833 views
Skip to first unread message

Charly 9000

unread,
Jan 24, 2025, 12:10:48 PMJan 24
to Harbour Users
Hi,

I have uploaded all the sources of the UT v.2.0 project to the repository, and it is now released as an MIT project. The time had come, and it was something I had wanted to do for a long time, but the number of pieces to handle and reorganize made me wait for the right moment.

This project is not just a class, a function, or a simple piece of code, but a tool that will help you work on the web in an easy yet highly effective way. We started 5 years ago with mod_harbour in search of that solution, and everything has been changing, evolving, adapting... I believe more than one person will put it to good use. :D

It is now open for anyone who wants to contribute, modify, recompile, or improve it...

https://carles9000.github.io/

Anand Gupta

unread,
Jan 24, 2025, 2:10:56 PMJan 24
to harbou...@googlegroups.com
Oh! Great! Great!!
Congratulations on this big project and thank you.

Anand Gupta
Application Developer



--
You received this message because you are subscribed to the Google Groups "Harbour Users" group.
Unsubscribe: harbour-user...@googlegroups.com
Web: https://groups.google.com/group/harbour-users
---
You received this message because you are subscribed to the Google Groups "Harbour Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to harbour-user...@googlegroups.com.
To view this discussion visit https://groups.google.com/d/msgid/harbour-users/21354a5a-a87d-4db2-a013-ef2e0c496284n%40googlegroups.com.

ramirez...@gmail.com

unread,
Jan 24, 2025, 2:36:16 PMJan 24
to Harbour Users
Charly

Solo queda decir muchas gracias por este framework, esta utileria es un "must to have" que todo programador en harbour debiera aprender y tener.
La cantidad de horas de trabajo es enorme y la calidad en el conocimiento de la web es apreciable.

Gracias de nuevo.

Saludos
Osvaldo Ramirez

Enrique Cabrerizo

unread,
Jan 24, 2025, 2:41:52 PMJan 24
to harbou...@googlegroups.com
Muchas gracias por este magnífico trabajo

Un saludo
Enrique 

cod...@outlook.com

unread,
Jan 24, 2025, 2:55:59 PMJan 24
to Harbour Users
Hi to all.

Sorry for this essay J but I had to write it here. Sorry on my English.

This is experience of UT newbie. I have started to use UT before eleven months.

I am one-man orchestra. I have desktop Harbour applications (text mode) that reliably worked in the small business area for several years (accounting and inventory management), on Windows machines. I was aware that I must enter into www. To begin I wanted to do pilot porting one of my existing applications to a web environment.

Before UT I tried to do it with Java, PHP and Node, but with no significant success. That was problematic and frustrating for me. First, I had to learn these tools from ground zero. That required me to put aside my current jobs with existing desktop applications and completely dive into the new tools ocean. But I did not have that time.

Anyhow, periodically from time to time I continued to learn say PHP, CSS, HTML, Javascript, Apache, MySql, etc. But everyday duties forced me to leave it for longer periods. Then when I again came back to new tools, almost all knowledge was gone, and I mentally started again from the beginning. That was very frustrating and time-consuming. One step forward, two steps backward.

If I made some progress, then I was faced with the fact that I must reprogram all my PRG functions, using new programming language (with PHP so-so, but with Java or Node it was much, much harder). Also, I could not use DBF but had to migrate to MySql tables. I did not want to make a new application; I wanted to port my existing application to a web environment.

Then, one year ago, I discovered UT project and started to learn it.

Today after first phase, I can say that have same desktop application ported in web environment. With test data which are close to a real environment, for *every* process and processing I do in the desktop application I get the same results in the web application, including reports in PDF or Excel. *My forms are not fancy but are fully functional as in desktop app*. With other web development tools I have never reached this far as I did using UT.

How I did that ?

Thanks to the fact that almost the same core part of every old PRG I could use in the web application as is, with small or no changes  (the core part is all processing code without the GET-READ part). It was a huge gain. I did not spend time thinking how to recode functions, test to see whether they would work like the old functions, etc.

The main effort for me was to make new web input forms from GET-READ forms in Harbour. Thanks to the GET constructs in UT I relatively easily made new web input forms without extensive knowledge of  HTML and  CSS. *In this step, I did not spend time on the look and feel of my forms but on their  functioning*.

The second, less hard part was to port my desktop reports. Using Haru PDF I ported my old reports to PDF printing. And in this part I used almost all existing PRG code in the new reports ! I only needed to change GET-READ part to the new form controls. Much help in this job was Haru PDF library. I found ZE_PDF - GERACAO DE PDF on this link https://www.fivetechsoft.com/forums/viewtopic.php?t=31280 and use it for making reports. 

My experience is that UT is almost best choice for every Clipper and Harbour developer to enter in the web development. With other web development tools I have never reached this far. In my opinion I made web app using UT, not fancy but *fully functional*.  All procedures and reports from my desktop application works with same results in new web application.

My sources of knowledge are on page https://carles9000.github.io/ , examples on https://github.com/carles9000/uhttpd2.tweb , Discord forum on https://discord.com/channels/1059352197919428618/1059352198514999358 , and forum members.

In next steps I will work on web forms look and feel, better input data formatting on client side, and eventually replacing DBF database replacing with MySql or MariaDb.

It is not easy but it is not too complicated. It is worth to try.

Regards,
Simo.

Alain Aupeix

unread,
Jan 24, 2025, 3:29:06 PMJan 24
to harbou...@googlegroups.com, Charly 9000

It seems to be Windows compliant. Not for Linux ?

A+

--
You received this message because you are subscribed to the Google Groups "Harbour Users" group.
Unsubscribe: harbour-user...@googlegroups.com
Web: https://groups.google.com/group/harbour-users
---
You received this message because you are subscribed to the Google Groups "Harbour Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to harbour-user...@googlegroups.com.
To view this discussion visit https://groups.google.com/d/msgid/harbour-users/21354a5a-a87d-4db2-a013-ef2e0c496284n%40googlegroups.com.
--

Alain Aupeix
Sites web : JujuLand | Pissobi-Lacassagne | Gadel
X.ubuntu 16.04 | H.arbour 3.2.0-1 (r2024-09-14 21:26) | Hw.gui 2.23-8dev (r3481) | G.ramps 5.1.2


Steve Litt

unread,
Jan 24, 2025, 4:04:01 PMJan 24
to harbou...@googlegroups.com
'Alain Aupeix' via Harbour Users said on Fri, 24 Jan 2025 21:28:57 +0100

>It seems to be Windows compliant. Not for Linux ?

Oh I hope it works for Linux. I was starting to get all excited about
quickly whipping out web apps in Harbour. Given that one of the draws
of web applications is that they're OS agnostic, it would be ironic if
the OS would stop the translation of OS agnostic Harbour to the OS
agnostic Web.

The above said, a big thank you to Charly 9000 for making this much
needed tool. Windows-only is a whole lot better than none at all.

SteveT

Steve Litt

http://444domains.com

cod...@outlook.com

unread,
Jan 25, 2025, 2:50:24 AMJan 25
to Harbour Users

Hi.

While waiting answer from someone who better knows UT project, I can only say that my developing environment was Windows 10 64 bit, compiler MSVC 64 bit and Harbour 3.2 compiled from sources with MSVC 64 bit.

As far as I am familiar with UT project I think that now you can not have development environment on LInux. But as UT project sources are (or soon will be) available ("It is now open for anyone who wants to contribute, modify, recompile, or improve it..."), the door is open to make development environment for Linux.  

Regards,

Simo

Franz

unread,
Jan 29, 2025, 4:55:45 AMJan 29
to Harbour Users
I am a user of HMG Extended and what I immediately appreciated about HMG is that the library installation contained everything needed to get started (all in one package).
Would it be possible to have a similar solution for this project that I think could be very successful?
Thanks.
Franz

Fabiano Freire

unread,
Feb 4, 2025, 11:46:20 AMFeb 4
to Harbour Users
Olá...

Vi que funciona com mysql, tentei com postgresql mas sem sucesso, alguma dica para funcionar ???

nikk...@gmail.com

unread,
Feb 4, 2025, 1:01:38 PMFeb 4
to Harbour Users
Hi Charly, many many thanks for your great work.

even if i play with mod_harbour_v2, which is one of the best tools for web.

as you remember in the past i' have asked you if this software can work  in nix systems, and you answer me that i have to wait.

Now the source is available so in these days' i have download the source and build the libraries hbp for debian and for freebsd, all compilations works like a charm, at the same time i download and build it on windows 10 pro, and run some examples and works.

The first problem i found, when i try to build the examples on nix systems is that i could not deploy  the app executable because nix inform me that it cannot create the file app with the same name of the directory app. resolved with the -o flag in hbp basic and others samples.

the app run , but in the basic example show me

Server error: Bind error: EACCESS

running firefox it cannot charge the page. ( localhost:81)

both os ( debian, freebsd )  show the same message.

In other ut.samples the app start but the page cannot be charged

the app was lanched from root user and from other user

have you some suggestions to solve the problem ?










,

jparada

unread,
Feb 16, 2025, 6:11:04 PMFeb 16
to Harbour Users
Hi,
I had the same error in Ubuntu WSL console, and in my case it was solved by compiling with elevated privileges:

sudo ./go_linux.sh

Regards,
Javier

Franz

unread,
Feb 18, 2025, 5:42:43 AMFeb 18
to Harbour Users
I have some test (with very good results) and now I am trying to port a application in this (for me) new world.
There is a manual/guide  for TWEB syntax ?
Thanks a lot for this new tool.
Ciao
Franz

hmpaquito

unread,
Feb 18, 2025, 6:20:04 AMFeb 18
to Harbour Users

Guillermo Varona Silupú

unread,
Feb 18, 2025, 8:13:48 AMFeb 18
to harbou...@googlegroups.com

--
You received this message because you are subscribed to the Google Groups "Harbour Users" group.
Unsubscribe: harbour-user...@googlegroups.com
Web: https://groups.google.com/group/harbour-users
---
You received this message because you are subscribed to the Google Groups "Harbour Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to harbour-user...@googlegroups.com.


--
Atentamente,
Ing. Guillermo Varona Silupú
Piura - Perú
Reply all
Reply to author
Forward
0 new messages