LazY Puppy 2.0.2 Final - a Paradise Puppy

For talk and support relating specifically to Puppy derivatives
Message
Author
tatamata
Posts: 63
Joined: Sun 02 May 2010, 09:09

Re: LazY Puppy 5.2.8-4

#201 Post by tatamata »

RSH wrote:
minesadorada wrote:I'll see if I have any useful code for you when I get a better chance to play.
I think even stuff like your "Hello World" Application would help to make me able to get One Step into Lazarus. The older Pascal System that i have had learned and used for many years does not include classes and stuff like that.

So, every line of Pascal code surely would give some help to me.

Thanks in advance...

RSH
Dear RSH,
Lazarus is basically like Delphi. I have learned that Delphi books (before .NET Delphi versions) are good to learn Lazarus. Actually, much better than Lazarus wiki pages...

User avatar
minesadorada
Posts: 68
Joined: Sun 11 Sep 2011, 19:10

#202 Post by minesadorada »

@RSH I'm working on converting an old Delphi 6 app that uses 2 general-purpose classes/objects I wrote some time ago which should work fine in Lazarus all versions. I'll upload it when it works correctly in Linux. It's currently being held up by a section of code that saves/loads a custom datafile to disk in a 'Windows' way. You might find the OOP code useful to pick apart.

Unfortunately, much of my older code uses a set of self-written custom objects (VCLs) which were very windows-specific, and hard to unpick from the projects. Other code is for Windows DLLS mostly written in 16-bit TPW for Win 3.1- not very useful for Linux!

As tatamata says, Lazarus IDE is exactly like Delphi (before V.8.0), but there are problems converting existing Delphi projects written for Windows into Linux Lazarus apps, as I am finding out!

There are loads of Delphi code snippets on the web that should plug into Lazarus just fine.

Delphi/Lazarus is a fantastic event-driven OOP language IMO. It's a natural step up from non-OOP and/or interpreted languages. The powerful and simple IDE is also great for the 'lazy programmer' to create a working app in minutes to test a concept or create a mock-up.

It is worth writing thoroughly debugged re-useable objects wherever you can in OOPascal/Lazarus as this unleashes it's true power to create complex but mainly bug-free code quickly. The objects take longer to write than regular code, but can be easily subclassed when necessary to extend them. I think there's a real 'beauty' in an OOP-written app, and they are easier to maintain.

'helloworld' is a one-line testing GUI 'mock-up' app - not very useful for study :)

I'm really enjoying the challenge though, and Linux/Lazarus has only crashed once so far. I'm very excited at the cross-platform and 32/64-bit capability, and in awe of the Lazarus/FreePascal programming team - what a great job they've done!

User avatar
RSH
Posts: 2397
Joined: Mon 05 Sep 2011, 14:21
Location: Germany

LazY Puppy 5.2.8-4

#203 Post by RSH »

LazY Puppy Info Center
http://murga-linux.com/puppy/viewtopic. ... 223#591223
Quick & Easy Information to BugFixes, Updates & more
minesadorada wrote:... and Linux/Lazarus has only crashed once so far.
"Linux/Lazarus" did crash?

Which one crashes?

LazY Puppy?

Lazarus?

Can you reproduce this crash?

Can you give more detailed information?

Maybe we need to post this in the Lazarus Thread...
[b][url=http://lazy-puppy.weebly.com]LazY Puppy[/url][/b]
[b][url=http://rshs-dna.weebly.com]RSH's DNA[/url][/b]
[url=http://murga-linux.com/puppy/viewtopic.php?t=91422][b]SARA B.[/b][/url]

User avatar
minesadorada
Posts: 68
Joined: Sun 11 Sep 2011, 19:10

#204 Post by minesadorada »

No worries about the crash. It was the Lazarus IDE bugging out for no apparent reason, but I'm used to saving code frequently during development.

One thing worth mentioning about the LAZY distribution:
The compiler objected to a CopyFile statement as illegal. I looked into the FPC Runtime Library and FPC Free Component guides to see if I could find an alternative routine, but nada.

A short search on the web revealed the FileUtil unit (containing CopyFile) which was not included in the guide at all, but included in the FPC distribution binaries.

Perhaps the included Guides are out of date?

User avatar
RSH
Posts: 2397
Joined: Mon 05 Sep 2011, 14:21
Location: Germany

#205 Post by RSH »

LazY Puppy Info Center
http://murga-linux.com/puppy/viewtopic. ... 223#591223
Quick & Easy Information to BugFixes, Updates & more
minesadorada wrote:Perhaps the included Guides are out of date?
The Guides has been the original documentation of Lazarus 0.9.30.1 and FPC 2.4.2. I did nothing remove, change or add.
minesadorada wrote:The compiler objected to a CopyFile statement as illegal. I looked into the FPC Runtime Library and FPC Free Component guides to see if I could find an alternative routine, but nada.
Maybe this has to do with the fact that the LazY Puppy Lazarus SFS uses the rtl directory of the FPC 2.4.4 sources? :)

This one has been necessary to change because there has been a main bug in the original sfs. It has been impossible to add an event to the object manager. Only after removing rtl dir (2.4.2) and adding rtl dir (2.4.4) this bug was gone and Lazarus not only runs - it worked also. 8)

The error message has been: "found ':=', expected '=' ... " in the type definition section. :(
[b][url=http://lazy-puppy.weebly.com]LazY Puppy[/url][/b]
[b][url=http://rshs-dna.weebly.com]RSH's DNA[/url][/b]
[url=http://murga-linux.com/puppy/viewtopic.php?t=91422][b]SARA B.[/b][/url]

User avatar
RSH
Posts: 2397
Joined: Mon 05 Sep 2011, 14:21
Location: Germany

LazY Puppy 5.2.8-4

#206 Post by RSH »

LazY Puppy Info Center
http://murga-linux.com/puppy/viewtopic. ... 223#591223
Quick & Easy Information to BugFixes, Updates & more
RSH wrote:
minesadorada wrote: wrote:
I could only load 6 sfs files before LazyPuppy complained.
This limitation is a lucid puppy based limitation. I did already several times use all ten sfs files (without pupsave) and there were no problems at all.
I have made some work on this. It seems to be impossible to change the number of loadable .sfs files. I did create some pup_roX (X is the number) directories in /initrd. As long as working with puppy everything works fine (i did use 11 .sfs files at a time), but the created pup_roX directories will not be saved at shutdown.
[b][url=http://lazy-puppy.weebly.com]LazY Puppy[/url][/b]
[b][url=http://rshs-dna.weebly.com]RSH's DNA[/url][/b]
[url=http://murga-linux.com/puppy/viewtopic.php?t=91422][b]SARA B.[/b][/url]

ICPUG
Posts: 1308
Joined: Mon 25 Jul 2005, 00:09
Location: UK

#207 Post by ICPUG »

It's not impossible to add more sfs files and maintain persistence since it had been done with other puplets.

You have to create the directories on boot up by modifying the init file, located within the initrd.gz, to do it. At one time that was all you had to modify. I am not sure if you have to modify any other files now.

The HowTos for:
(a) modifying initrd.gz
(b) adding more sfs files in Puppy 4.x
are SOMEWHERE on this forum. As usual, tthe problem is finding them and with (b) are the instructions complete for today's pups?

User avatar
RSH
Posts: 2397
Joined: Mon 05 Sep 2011, 14:21
Location: Germany

LazY Puppy 5.2.8-4

#208 Post by RSH »

LazY Puppy Info Center
http://murga-linux.com/puppy/viewtopic. ... 223#591223
Quick & Easy Information to BugFixes, Updates & more

DONE! :D

I have examined (again) the initrd.gz. Load file init into geany. Then found and edited the following (begins at line 1565 (LazY Puppy - added pup_ro 10 ... pup_ro15):

Code: Select all

   #if same dir exists lower layer, then wipe the opaque file...
   [ -d /pup_ro3${ONEDIR} ] && rm -f ${OLDFILESMNTPT}${ONEOPAQUE}
   [ -d /pup_ro4${ONEDIR} ] && rm -f ${OLDFILESMNTPT}${ONEOPAQUE}
   [ -d /pup_ro5${ONEDIR} ] && rm -f ${OLDFILESMNTPT}${ONEOPAQUE}
   [ -d /pup_ro6${ONEDIR} ] && rm -f ${OLDFILESMNTPT}${ONEOPAQUE}
   [ -d /pup_ro7${ONEDIR} ] && rm -f ${OLDFILESMNTPT}${ONEOPAQUE}
   [ -d /pup_ro8${ONEDIR} ] && rm -f ${OLDFILESMNTPT}${ONEOPAQUE}
   [ -d /pup_ro9${ONEDIR} ] && rm -f ${OLDFILESMNTPT}${ONEOPAQUE}
   [ -d /pup_ro10${ONEDIR} ] && rm -f ${OLDFILESMNTPT}${ONEOPAQUE}
   [ -d /pup_ro11${ONEDIR} ] && rm -f ${OLDFILESMNTPT}${ONEOPAQUE}
   [ -d /pup_ro12${ONEDIR} ] && rm -f ${OLDFILESMNTPT}${ONEOPAQUE}
   [ -d /pup_ro13${ONEDIR} ] && rm -f ${OLDFILESMNTPT}${ONEOPAQUE}
   [ -d /pup_ro14${ONEDIR} ] && rm -f ${OLDFILESMNTPT}${ONEOPAQUE}
   [ -d /pup_ro15${ONEDIR} ] && rm -f ${OLDFILESMNTPT}${ONEOPAQUE}
And the following (begins at line 1652 after editing the above shown code)

Code: Select all

#cpio archive does switch_root, lose the initial-ramfs, so move all mntd...
mkdir -p /pup_new/initrd
mkdir -p /pup_new/initrd/pup_ro1
mkdir -p /pup_new/initrd/pup_ro2
mkdir -p /pup_new/initrd/pup_ro3
mkdir -p /pup_new/initrd/pup_ro4
mkdir -p /pup_new/initrd/pup_ro5
mkdir -p /pup_new/initrd/pup_ro6
mkdir -p /pup_new/initrd/pup_ro7
mkdir -p /pup_new/initrd/pup_ro8
mkdir -p /pup_new/initrd/pup_ro9
mkdir -p /pup_new/initrd/pup_ro10
mkdir -p /pup_new/initrd/pup_ro11
mkdir -p /pup_new/initrd/pup_ro12
mkdir -p /pup_new/initrd/pup_ro13
mkdir -p /pup_new/initrd/pup_ro14
mkdir -p /pup_new/initrd/pup_ro15
mkdir -p /pup_new/initrd/pup_rw
mkdir -p /pup_new/initrd/pup_z
mkdir -p /pup_new/initrd/mnt
mkdir -p /pup_new/initrd/mnt/data
mkdir -p /pup_new/initrd/mnt/dev_ro1
mkdir -p /pup_new/initrd/mnt/dev_ro2
mkdir -p /pup_new/initrd/mnt/dev_save
mkdir -p /pup_new/initrd/mnt/swap
mkdir -p /pup_new/initrd/mnt/tmpfs
mkdir -p /pup_new/initrd/mnt/tmpfs2
mkdir -p /pup_new/initrd/mnt/zdrv
mkdir -p /pup_new/initrd/tmp
After editing initrd.gz as shown LazY Puppy will be able to load 12 .sfs files without a complaining sfs-load. :)

You can use the Edit intrd.gz with GUI in the LazY Puppy menu to edit the initrd.gz. Please, do make a copy of your initrd.gz first.

The GUI is self explaining and easy to use (because it is written by myself) :)

I will add this feature to the LazY Puppy Update! 8)
ICPUG wrote:It's not impossible to add more sfs files and maintain persistence since it had been done with other puplets.

You have to create the directories on boot up by modifying the init file, located within the initrd.gz, to do it. At one time that was all you had to modify. I am not sure if you have to modify any other files now.

The HowTos for:
(a) modifying initrd.gz
(b) adding more sfs files in Puppy 4.x
are SOMEWHERE on this forum. As usual, tthe problem is finding them and with (b) are the instructions complete for today's pups?
I knew it must be possible in any way, because i had a test on slacko, which can load more than 6 .sfs files.

I just did think there must be an easier way to do this without editing the initrd.gz. But this didn't work :(

Thanks for your hints.

RSH
[b][url=http://lazy-puppy.weebly.com]LazY Puppy[/url][/b]
[b][url=http://rshs-dna.weebly.com]RSH's DNA[/url][/b]
[url=http://murga-linux.com/puppy/viewtopic.php?t=91422][b]SARA B.[/b][/url]

User avatar
smokey01
Posts: 2813
Joined: Sat 30 Dec 2006, 23:15
Location: South Australia :-(
Contact:

#209 Post by smokey01 »

This may help you load more SFS files.

http://www.murga-linux.com/puppy/viewtopic.php?t=36733

User avatar
minesadorada
Posts: 68
Joined: Sun 11 Sep 2011, 19:10

#210 Post by minesadorada »

Thumbs up for Lazy Puppy and Lazarus!

I coded a GUI application in Lazy Puppy which uses many features of FPC. I then opened the linux project in the Windows 7 64-bit version of Lazarus; told it to compile for Win64 and it did it without a hitch!

Easy cross-compiling for 32-bit Puppy Linux and 64-bit Windows 7 without changing any source code - awesome!

(Also my first 3G application written for Linux)

@RSH I'll upload the source code for you soon.

User avatar
don570
Posts: 5528
Joined: Wed 10 Mar 2010, 19:58
Location: Ontario

#211 Post by don570 »

new version of conversion audio - version 1.5
I tried a German translation.

Two improvements

1) I estimate the conversion time for the user,
however this probably won't be accurate if you have a slow machine

2) I pop a window up to show the conversion so it won't be
such a mystery!

http://www.murga-linux.com/puppy/viewtopic.php?t=70759

________________________________________________________

I am using your German translation of Bacon Recorder, but
I made a few changes ---> muß I spell muss

____________________________________

User avatar
RSH
Posts: 2397
Joined: Mon 05 Sep 2011, 14:21
Location: Germany

#212 Post by RSH »

LazY Puppy Info Center
http://murga-linux.com/puppy/viewtopic. ... 223#591223
Quick & Easy Information to BugFixes, Updates & more
minesadorada wrote:Thumbs up for Lazy Puppy and Lazarus!

I coded a GUI application in Lazy Puppy which uses many features of FPC. I then opened the linux project in the Windows 7 64-bit version of Lazarus; told it to compile for Win64 and it did it without a hitch!

Easy cross-compiling for 32-bit Puppy Linux and 64-bit Windows 7 without changing any source code - awesome!

(Also my first 3G application written for Linux)
Aahhh, that's pretty cool! 8)

But as i wrote many times before: panoss has been the guy who found the way to get Lazarus and FPC working.

I like to use .sfs files and the way panoss described using .pet to install did not work in slacko. So I did recompile, package and refine it to build an .sfs file out of this stuff. Luckily it did work at least... :D

He did call my first presented and working solution the Frankenstein Version because it has used 0.9.30 and 0.9.28 of Lazarus and FPC together. After a while he did found some issues and then found his way to solute this. Then i wrote to him: ...Lazarus, the Frankenstein Version is dead and Panosszarus has shoot into the light. :lol:

He did like this and i was just lucky about he did not give up. It was a hard and weird time without sleep for days and stuff like that (you surely do know such extreme involving). In the Introduction post of Lazy Puppy Lazarus and FPC sfs are two links to these threads - if you are interested in reading the "Lazarus Story" :D http://murga-linux.com/puppy/viewtopic. ... 404#593404
minesadorada wrote:@RSH I'll upload the source code for you soon.
Yes, please do this. This would be pretty cool as well! 8)

If you don't have a place to upload or if it is too big for the forum (>1mb) then let me know. I can open my mediafire account for you to upload and then moving this stuff to my web-store at smokey's server.
[b][url=http://lazy-puppy.weebly.com]LazY Puppy[/url][/b]
[b][url=http://rshs-dna.weebly.com]RSH's DNA[/url][/b]
[url=http://murga-linux.com/puppy/viewtopic.php?t=91422][b]SARA B.[/b][/url]

User avatar
RSH
Posts: 2397
Joined: Mon 05 Sep 2011, 14:21
Location: Germany

#213 Post by RSH »

LazY Puppy Info Center
http://murga-linux.com/puppy/viewtopic. ... 223#591223
Quick & Easy Information to BugFixes, Updates & more
don570 wrote:new version of conversion audio - version 1.5
I tried a German translation.

Two improvements

1) I estimate the conversion time for the user,
however this probably won't be accurate if you have a slow machine

2) I pop a window up to show the conversion so it won't be
such a mystery!
This is really cool. Added to LazY Puppy Update List. :)
don570 wrote:I am using your German translation of Bacon Recorder, but
I made a few changes ---> muß I spell muss
"Muß" is the older one and "muss" is newer one. Some years ago they did made some changes because our kids were unable to learn and write "real German". To keep them away from getting bad certificates they did made a lot of stupid changes.

So, i am an old man. I like to use old stuff and i like to learn something new as well. But i don't like to change this one and as long as something is not broken there is no need to fix it (imho). :)

"You can't teach an old dog new tricks." Title of a Song by Seasick Steve :D :lol:
[b][url=http://lazy-puppy.weebly.com]LazY Puppy[/url][/b]
[b][url=http://rshs-dna.weebly.com]RSH's DNA[/url][/b]
[url=http://murga-linux.com/puppy/viewtopic.php?t=91422][b]SARA B.[/b][/url]

User avatar
minesadorada
Posts: 68
Joined: Sun 11 Sep 2011, 19:10

#214 Post by minesadorada »

I have uploaded the Lazarus Linux application (20 questions) code and files to:

http://www.charcodelvalle.com/files/xxq ... NUX.tar.gz

It's quite a large download at 6+ megs.

Unpack it to a new empty directory, and read the readme.txt file before doing anything else.

All the files should be there (unpack with directories intact) and it should compile first go. I have included the pre-compiled executable also for comparison testing.

Let me know if it works OK.

User avatar
RSH
Posts: 2397
Joined: Mon 05 Sep 2011, 14:21
Location: Germany

LazY Puppy 5.2.8-4

#215 Post by RSH »

LazY Puppy Info Center
http://murga-linux.com/puppy/viewtopic. ... 223#591223
Quick & Easy Information to BugFixes, Updates & more
minesadorada wrote:I have uploaded the Lazarus Linux application (20 questions) code and files to:

http://www.charcodelvalle.com/files/xxq ... NUX.tar.gz

It's quite a large download at 6+ megs.

Unpack it to a new empty directory, and read the readme.txt file before doing anything else.

All the files should be there (unpack with directories intact) and it should compile first go. I have included the pre-compiled executable also for comparison testing.

Let me know if it works OK.
I have downloaded the .tar.gz and had a short test run of the included app - but i did actually not have a look into the sources. I will do this as far as i have developed my actual work on LazY Puppy. Maybe one week or so... 8)

I am sure this will help a lot to get me one step into Lazarus and FPC. :D

Thanks a lot
for this, minesadorada. :D
[b][url=http://lazy-puppy.weebly.com]LazY Puppy[/url][/b]
[b][url=http://rshs-dna.weebly.com]RSH's DNA[/url][/b]
[url=http://murga-linux.com/puppy/viewtopic.php?t=91422][b]SARA B.[/b][/url]

User avatar
greengeek
Posts: 5789
Joined: Tue 20 Jul 2010, 09:34
Location: Republic of Novo Zelande

#216 Post by greengeek »

Interesting version of Puppy. It seems way faster on my Toshiba TE2100 2ghz laptop than any other live puppy that I have used. Not sure why.
Very responsive though. Very nice

User avatar
RSH
Posts: 2397
Joined: Mon 05 Sep 2011, 14:21
Location: Germany

LazY Puppy 5.2.8-4

#217 Post by RSH »

LazY Puppy Info Center
http://murga-linux.com/puppy/viewtopic. ... 223#591223
Quick & Easy Information to BugFixes, Updates & more
greengeek wrote:Interesting version of Puppy. It seems way faster on my Toshiba TE2100 2ghz laptop than any other live puppy that I have used. Not sure why.
Very responsive though. Very nice
Thank you very much. :D

There will be an updated iso soon, including nice new features and new useful tools! 8)
[b][url=http://lazy-puppy.weebly.com]LazY Puppy[/url][/b]
[b][url=http://rshs-dna.weebly.com]RSH's DNA[/url][/b]
[url=http://murga-linux.com/puppy/viewtopic.php?t=91422][b]SARA B.[/b][/url]

User avatar
RSH
Posts: 2397
Joined: Mon 05 Sep 2011, 14:21
Location: Germany

LazY Puppy 5.2.8-4

#218 Post by RSH »

LazY Puppy Info Center
http://murga-linux.com/puppy/viewtopic. ... 223#591223
Quick & Easy Information to BugFixes, Updates & more


New LazY Puppy Menu Suite.

Take a look at the attached pictures. Text information will follow...

Password for New User Menu is: LazYPuppy2

Note: It will show the English Menu if the English Keyboard Layout is set.
Attachments
image-4.jpg
New LazY Puppy Menu Suite
(28.38 KiB) Downloaded 1696 times
image-5.jpg
Menu List Editor (User Mode Kids, Beginner, Intermediary)
(37.13 KiB) Downloaded 1714 times
image-6.jpg
Menu Editor (user mode advanced - results in all user modes)
(73.49 KiB) Downloaded 1675 times
image-7.jpg
Menu Entry Editor
(31.44 KiB) Downloaded 1677 times
image-8.jpg
Category Editor
(29.75 KiB) Downloaded 1673 times
menu-suite-full-view.jpg
Menu Suite (small) overview
(85.13 KiB) Downloaded 1701 times
Last edited by RSH on Sun 18 Mar 2012, 20:02, edited 2 times in total.
[b][url=http://lazy-puppy.weebly.com]LazY Puppy[/url][/b]
[b][url=http://rshs-dna.weebly.com]RSH's DNA[/url][/b]
[url=http://murga-linux.com/puppy/viewtopic.php?t=91422][b]SARA B.[/b][/url]

User avatar
RSH
Posts: 2397
Joined: Mon 05 Sep 2011, 14:21
Location: Germany

LazY Puppy 5.2.8-4

#219 Post by RSH »

LazY Puppy Info Center
http://murga-linux.com/puppy/viewtopic. ... 223#591223
Quick & Easy Information to BugFixes, Updates & more


Reserved to introduce the New LazY Puppy User Modes.

Coming soon.
[b][url=http://lazy-puppy.weebly.com]LazY Puppy[/url][/b]
[b][url=http://rshs-dna.weebly.com]RSH's DNA[/url][/b]
[url=http://murga-linux.com/puppy/viewtopic.php?t=91422][b]SARA B.[/b][/url]

User avatar
RSH
Posts: 2397
Joined: Mon 05 Sep 2011, 14:21
Location: Germany

LazY Puppy 5.2.8-4

#220 Post by RSH »

LazY Puppy Info Center
http://murga-linux.com/puppy/viewtopic. ... 223#591223
Quick & Easy Information to BugFixes, Updates & more


New LazY Puppy Menu.

The menu is again restructured and does have some new menu entries (.directory files) Desktop, Setup and System are now in Menu Workstation, which includes also Shutdown, User-Modes, the New LazY Puppy Menu Suite and some more. Document, Calculate and Personal are now in Menu Office. Network and Internet are now only Menu Network. Though it is a little smaller! :D
Attachments
new-menu-office.jpg
(36.65 KiB) Downloaded 1633 times
new-menu-network.jpg
(38.11 KiB) Downloaded 1586 times
new-menu.jpg
(42.72 KiB) Downloaded 1578 times
Last edited by RSH on Tue 13 Mar 2012, 06:56, edited 1 time in total.
[b][url=http://lazy-puppy.weebly.com]LazY Puppy[/url][/b]
[b][url=http://rshs-dna.weebly.com]RSH's DNA[/url][/b]
[url=http://murga-linux.com/puppy/viewtopic.php?t=91422][b]SARA B.[/b][/url]

Post Reply