Puppy Linux Discussion Forum Forum Index Puppy Linux Discussion Forum
Puppy HOME page : puppylinux.com
"THE" alternative forum : puppylinux.info
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

The time now is Mon 28 Jul 2014, 08:42
All times are UTC - 4
 Forum index » Off-Topic Area » Programming
BaCon - Bash-based Basic-to-C converter/compiler
Post new topic   Reply to topic View previous topic :: View next topic
Page 19 of 36 [526 Posts]   Goto page: Previous 1, 2, 3, ..., 17, 18, 19, 20, 21, ..., 34, 35, 36 Next
Author Message
BarryK
Puppy Master


Joined: 09 May 2005
Posts: 7047
Location: Perth, Western Australia

PostPosted: Mon 14 Mar 2011, 09:20    Post subject:  

The proxy-setup BaCon program saga continues!

Attached is the very latest. It also needs the very latest BaCon. My PET has /usr/lib/hug.so, which makes GUI applications smaller -- 'proxy-setup' has dropped from 115KB to 50KB.

Recently there have been significant refinements in internationalization and also refinements that enable us to create windows that always layout correctly regardless of DPI/screen/default-fonts.

The attached proxy-setup.bac demonstrates these recent advances. Peter is the guy who has done all of this. I have reported problems and Peter has responded immediately and fixed things.

Note that the attached tarball has a readme that explains a few more things.

My latest BaCon PET:
http://distro.ibiblio.org/quirky/pet_packages-quirky/bacon-1.0.22pre-20110314.pet
proxy-setup-20110314.tar.gz
Description 
gz

 Download 
Filename  proxy-setup-20110314.tar.gz 
Filesize  19.36 KB 
Downloaded  373 Time(s) 

_________________
http://bkhome.org/news/
Back to top
View user's profile Send private message Visit poster's website 
BarryK
Puppy Master


Joined: 09 May 2005
Posts: 7047
Location: Perth, Western Australia

PostPosted: Mon 14 Mar 2011, 21:35    Post subject:  

I have written a HOWTO that explains how to get good layout always in a window written with HUG:

http://bkhome.org/bacon/hug/layout.htm

It needs the latest BaCon, 1.0.22pre. I posted a PET here:

http://bkhome.org/blog/?viewDetailed=02182

If anyone has any thoughts how the layout HOWTO can be improved/extended, please let me know.

_________________
http://bkhome.org/news/
Back to top
View user's profile Send private message Visit poster's website 
big_bass

Joined: 13 Aug 2007
Posts: 1747

PostPosted: Thu 17 Mar 2011, 01:02    Post subject:  

This may come in handy for a quick font size check
or a quick message or to test different fonts
it can be run in the terminal " as is"

many possibilities with markup

Joe

Code:
pango-view \
 --font="DejaVu Sans 12" \
 --markup \
 --text 'This is a DejaVu Sans 12
 output on a X screen'
 
 
 pango-view \
 --font="DejaVu Sans 24" \
 --markup \
 --text 'DejaVu Sans 24
output on a X screen'
 
 
 
 pango-view \
 --font="DejaVu Sans 44" \
 --markup \
 --text 'This is a
 DejaVu Sans 44
 output
 on a X screen'

12.png
 Description   
 Filesize   5.68 KB
 Viewed   1465 Time(s)

12.png

24.png
 Description   
 Filesize   10.04 KB
 Viewed   1478 Time(s)

24.png

44.png
 Description   
 Filesize   15.36 KB
 Viewed   1472 Time(s)

44.png


_________________
debian wheezy ,linux mint, slackware I use them all and they all have good points
Mint would be best for general users though
Back to top
View user's profile Send private message 
L18L

Joined: 19 Jun 2010
Posts: 2505
Location: Burghaslach, Germany somewhere also known as "Hosla"

PostPosted: Mon 28 Mar 2011, 14:03    Post subject: BaCon proxy-setup
Subject description: very very latest
 

Edited
no idea why this was double posted.
sorry.

Edited again Tue 29 Mar 2011, 10:25
I have seen it on page 19, too.
Now it is not on page 19.
Confused,
but anyhow there have been 4 downloads until now.
Changes are commented in source and readme file.
proxy-setup-2011-03-29.tar.gz
Description  small improvements on proxy-setup-20110314
gz

 Download 
Filename  proxy-setup-2011-03-29.tar.gz 
Filesize  22.44 KB 
Downloaded  266 Time(s) 
Back to top
View user's profile Send private message 
vovchik


Joined: 23 Oct 2006
Posts: 1285
Location: Ukraine

PostPosted: Tue 05 Apr 2011, 06:09    Post subject: bsplash = bacon-based splash program  

Dear Puppians,

Having seen the nice job that 01micko did with gtkdialog-splash, I decided to create a little splash program in bacon that can display animated gifs, jpgs and pngs, with a message in you choice of font and with window decorations or not. It also has a duration parameter, and the splash can be killed by clicking on the image. I have included a binary, test images, source, the latest HUG and a bash example program. Just unpack and click on the "bsp" script. It should work. For maximum compatibility, I compiled in Puppy 3.01. If you run bsplash without parameters in a terminal, you will get a help screen that explains all the flags and arguments. Also look at the bash script. If you look at the bacon source, you will see that I call two gdk functions to get the size of jpgs and pngs, but use the unix utility "file" for gifs. This is because the gdk routines do not deliver the right dimensions for a multi-image (i.e. animated) gif but "file" does. Sad

With kind regards,
vovchik

UPDATE1: I updated the attachment and added the capability to display the following file types: bmp, jpg, jpeg, jpe, ico, png, icns, wmf, xpm, xbm, tiff, tif, ppm, pbm, pgm, pnm and pcx.

UPDATE2: I updated the attachment and added a placement parameter for the main window (i.e. -p "80,80"), so that the window will display at those x,y coordinates. I also hide the program from the taskbar when in non-decorated mode.
bsplash.tar.gz
Description 
gz

 Download 
Filename  bsplash.tar.gz 
Filesize  217.06 KB 
Downloaded  323 Time(s) 
Back to top
View user's profile Send private message 
seaside

Joined: 11 Apr 2007
Posts: 886

PostPosted: Tue 05 Apr 2011, 16:02    Post subject: bsplash = bacon-based splash program
Subject description: 1024x768 96dpi pup431 trial
 

vovchik ,

You've done again. This time making a big splash with animations and image variations. Smile

Very nicely done.

Now for the following little item--

The pacing cat keeps nicely in it's window but the text does not -see below.

Everything else seems to purr along Smile Smile

Regards,
s
(This is at 1024x768 96dpi pup431)
bsplash.png
 Description   
 Filesize   5.15 KB
 Viewed   1441 Time(s)

bsplash.png

Back to top
View user's profile Send private message 
abushcrafter


Joined: 30 Oct 2009
Posts: 1447
Location: England

PostPosted: Tue 05 Apr 2011, 16:42    Post subject: bsplash  

What about keyboard control?
_________________
adobe flash is rubbish!
My Quote:"Humans are stupid, though some are clever but stupid." http://www.dependent.de/media/audio/mp3/System_Syn_Heres_to_You.zip http://www.systemsyn.com/
Back to top
View user's profile Send private message Visit poster's website 
vovchik


Joined: 23 Oct 2006
Posts: 1285
Location: Ukraine

PostPosted: Tue 05 Apr 2011, 16:49    Post subject: bsplash  

Dear seaside and abushcrafter,

Thanks. Seaside, just edit the bit in bsp and add a font and size. It defaults to DejaVu Sans Bold 14, and I am sitting at a big monitor now. But just change the bash stuff in the invocation!

Abushcrafter: Yeah, I will have to put in some keyboard controls. Give me a few suggestions....

With kind regards,
vovchik

Last edited by vovchik on Tue 05 Apr 2011, 17:54; edited 1 time in total
Back to top
View user's profile Send private message 
vovchik


Joined: 23 Oct 2006
Posts: 1285
Location: Ukraine

PostPosted: Tue 05 Apr 2011, 16:50    Post subject: bsplash  

Sorry, connection was bad and it posted twice!
Back to top
View user's profile Send private message 
seaside

Joined: 11 Apr 2007
Posts: 886

PostPosted: Tue 05 Apr 2011, 18:24    Post subject: Re: bsplash  

vovchik wrote:

Thanks. Seaside, just edit the bit in bsp and add a font and size. It defaults to DejaVu Sans Bold 14, and I am sitting at a big monitor now. But just change the bash stuff in the invocation!

With kind regards,
vovchik


vovchik,

I changed the x to 250 (from 230) and the impatient cat and text are now happily in the same room. Smile

Thanks again,
s
(I'm curious as to what sort of keyboard controls might be used here?)
Back to top
View user's profile Send private message 
abushcrafter


Joined: 30 Oct 2009
Posts: 1447
Location: England

PostPosted: Wed 06 Apr 2011, 12:55    Post subject: Keyboard Control Suggestions  

  • Esc=Dismiss
  • Enter=Dismiss
  • M=Minimize into task-bar.

By default show in task list but give programmer option to disable? If OnTop is set?

A Tray Icon listing msgs with its own Win/Super/Hyper/Meta hotkey?

Give programmer option to disable "enter to dismiss" or a "Are you shore?" dialog box?

_________________
adobe flash is rubbish!
My Quote:"Humans are stupid, though some are clever but stupid." http://www.dependent.de/media/audio/mp3/System_Syn_Heres_to_You.zip http://www.systemsyn.com/
Back to top
View user's profile Send private message Visit poster's website 
BarryK
Puppy Master


Joined: 09 May 2005
Posts: 7047
Location: Perth, Western Australia

PostPosted: Wed 06 Apr 2011, 20:06    Post subject:  

Have any of you guys used Dietlibc to compile BaCon programs?

I ask this because Dietlibc creates by far the smallest static applications, significantly smaller than uClibc.

I'm compiling the latest Dietlibc in T2. Well the official package is version 0.32 and dated 2009, but the T2 developers have added many patches and recently added a whole lot more:

http://t2-project.org/packages/dietlibc.html

So, I intend to create a PET of this latest dietlibc.

_________________
http://bkhome.org/news/
Back to top
View user's profile Send private message Visit poster's website 
vovchik


Joined: 23 Oct 2006
Posts: 1285
Location: Ukraine

PostPosted: Thu 07 Apr 2011, 07:54    Post subject: dietlibc  

Dear Barry,

I haven't tried with BaCon, but it could be interesting. I am also wondering whether there are any unnecessary symbols we might be able to strip out of the resulting binaries in order to get even smaller ones - of the kind we often get with plain C or C and GTK. We might want to ask Peter about this...

With kind regards,
vovchik
Back to top
View user's profile Send private message 
BarryK
Puppy Master


Joined: 09 May 2005
Posts: 7047
Location: Perth, Western Australia

PostPosted: Thu 07 Apr 2011, 19:58    Post subject:  

I have created the Dietlibc PET:

http://bkhome.org/blog/?viewDetailed=02206

_________________
http://bkhome.org/news/
Back to top
View user's profile Send private message Visit poster's website 
BarryK
Puppy Master


Joined: 09 May 2005
Posts: 7047
Location: Perth, Western Australia

PostPosted: Tue 12 Apr 2011, 11:50    Post subject:  

I have been a busy boy:

http://bkhome.org/blog/?viewDetailed=02213

If anyone wants to create a language translation file for 'welcome1stboot', please do!

And if you need to tweak the text widget dimensions to accomodate the non-English text, let me know about that too.

_________________
http://bkhome.org/news/
Back to top
View user's profile Send private message Visit poster's website 
Display posts from previous:   Sort by:   
Page 19 of 36 [526 Posts]   Goto page: Previous 1, 2, 3, ..., 17, 18, 19, 20, 21, ..., 34, 35, 36 Next
Post new topic   Reply to topic View previous topic :: View next topic
 Forum index » Off-Topic Area » Programming
Jump to:  

You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Powered by phpBB © 2001, 2005 phpBB Group
[ Time: 0.0934s ][ Queries: 12 (0.0143s) ][ GZIP on ]