Search found 138 matches

by GatorDog
Sat 31 Dec 2011, 22:19
Forum: Programming
Topic: BaCon Bits
Replies: 167
Views: 109249

Thanks Big_bass,

After we get through the Holidays, maybe I'll have some time
to get back and do a little coding :D

Happy New Year All!

GatorDog
by GatorDog
Sun 18 Dec 2011, 06:21
Forum: Programming
Topic: BaCon - Bash-based Basic-to-C converter/compiler
Replies: 525
Views: 298747

vovchik,

Thanks for update :D

gatordog
by GatorDog
Mon 05 Dec 2011, 02:26
Forum: Programming
Topic: BaCon - Bash-based Basic-to-C converter/compiler
Replies: 525
Views: 298747

Sunburnt,

If you're using the default devx, then check the hug_imports.bac file.
Probably change the top line (or close to top) to
CONST HUG_lib$ = "/usr/lib/hug.so"

And you may want to make sure you have the latest hug.so (in /usr/lib/...)

rod
by GatorDog
Sun 04 Dec 2011, 23:47
Forum: Programming
Topic: BaCon - Bash-based Basic-to-C converter/compiler
Replies: 525
Views: 298747

Error: Could not open library ./hug.so: cannot open shared object file: No such file or directory
Hey Sunburnt,

How is your IMPORT statement in your program set up?

GatorDog
by GatorDog
Mon 28 Nov 2011, 13:30
Forum: Puppy Power
Topic: Puppy Power Returns
Replies: 78
Views: 924176

_________________

:D Woof Woof ! :D
by GatorDog
Tue 15 Nov 2011, 19:09
Forum: Hardware
Topic: Acer Aspire One D255E - continuing problems with card reader
Replies: 49
Views: 41588

.
FWIW - I did a fresh install of lupu 528 (on Acer One) and keucr_2.6.33.2-lupu525.pet works with it.

GatorDog
by GatorDog
Sat 12 Nov 2011, 22:40
Forum: Programming
Topic: BaCon Bits
Replies: 167
Views: 109249

Do they even allow dancing on this forum?
Sorry, my baD. (mea culpa) :cry:

GatorDog
by GatorDog
Fri 11 Nov 2011, 19:37
Forum: Programming
Topic: BaCon Bits
Replies: 167
Views: 109249

Hey big_bass,

Where's that dance? :P

r
by GatorDog
Fri 11 Nov 2011, 13:45
Forum: Programming
Topic: BaCon Bits
Replies: 167
Views: 109249

Ok, got it. I didn't pick up on "STRING" being variable type re: SIZEOF(STRING)

Thanks for clarification and code :)

GatorDog
by GatorDog
Fri 11 Nov 2011, 13:25
Forum: Programming
Topic: November 1, 2011: BaCon 1.0 build 24 released
Replies: 13
Views: 9058

Hey Lobster, Looks like a weiner https://lh4.googleusercontent.com/-AaFT5WTMnrY/Tr0YIr4YAbI/AAAAAAAAAAk/uRARxj-M0QU/s170/weiner.gif :D ______________________________________________________________________________________________________________________ You must have a blank line at the end of your ...
by GatorDog
Thu 10 Nov 2011, 10:31
Forum: Programming
Topic: BaCon Bits
Replies: 167
Views: 109249

Hey vovchik,

Code: Select all

' Define runtime check for size of array
DEF FN bound(x) = SIZEOF(x)/SIZEOF(STRING)
Could you clarify what is passed in "x" and where "STRING" comes into play?

tnx
GatorDog
by GatorDog
Wed 09 Nov 2011, 21:51
Forum: Programming
Topic: BaCon Bits
Replies: 167
Views: 109249

Hey big_bass, is there a way to covert this bash snippet to BaCon to check for undefined arrays #str=something str="" if [ $str ] then echo "Not empty" else echo "Empty" fi Is this what you're asking for :?: str$ = "" IF LEN( str$ ) THEN PRINT "Not empty&...
by GatorDog
Wed 09 Nov 2011, 17:34
Forum: Programming
Topic: BaCon Bits
Replies: 167
Views: 109249

Bacon regular expressions

now if we only had some regular expressions in Bacon explained with simple code snippets Bacon REGEX This checks that the text does not contain digits. Then it looks for an underline chr or a capital X. Txt$ = "big_bass" IF REGEX(Txt$, "[^[:digit:]]") THEN PRINT "Yep, "...
by GatorDog
Wed 09 Nov 2011, 07:57
Forum: Programming
Topic: BaCon Bits
Replies: 167
Views: 109249

Bacon Associative Arrays

Sunburnt, An easy way to get the number of lines in a file to declare the array index? One way to accomplish the array assignment is to use Associative arrays. This snipit will give you the line count and also goes ahead and assigns the lines to Array$(....) . DECLARE Array$ ASSOC STRING Array_index...
by GatorDog
Mon 07 Nov 2011, 07:56
Forum: Programming
Topic: November 1, 2011: BaCon 1.0 build 24 released
Replies: 13
Views: 9058

BaconGUI with "upx" support

. BaconGUI v1.0.24 with "upx" support. "upx" needs to be available in PATH. Convert the program first, then "upx" it. (Runs upx on the program in the currently active tab.) Uses "--best" compression. (I'll check that --ultra-brute if there's interest.) GatorDo...
by GatorDog
Sat 05 Nov 2011, 08:59
Forum: Programming
Topic: Get "Awk" to print columns using variable?
Replies: 15
Views: 4336

Do it with Bacon

Fries up nicely with Bacon :wink:

Code: Select all

OPTION COLLAPSE 1
SPLIT CHOP$(EXEC$("cat /proc/sys/dev/cdrom/info | grep name:")) BY "	" TO Drv$ SIZE Drvc
FOR Index = 1 TO Drvc - 1
	PRINT Index, " ", Drv$[Index]
NEXT
The BY " " is a tab chr.
GatorDog
by GatorDog
Fri 04 Nov 2011, 19:42
Forum: Programming
Topic: November 1, 2011: BaCon 1.0 build 24 released
Replies: 13
Views: 9058

upx - file compressor

(note the size before and after) :shock: ! WOW ! :shock: anyone with the required skill (not me today) wants to add that compression option I have several irons in the fire right now. Maybe L18L or vovchik will have an idea. :wink: Thanks Lobster, for sharing that little jewel (upx), GatorDog
by GatorDog
Fri 04 Nov 2011, 06:01
Forum: Programming
Topic: November 1, 2011: BaCon 1.0 build 24 released
Replies: 13
Views: 9058

Thanks Lobster for Slacko instructions. :) _______________________________________________________________________________________ Along with the latest Bacon version you may want to make sure you have the current HUG files (GUI programing) - "hug.bac" v .63 - "hug.so" shared obj...
by GatorDog
Thu 03 Nov 2011, 13:36
Forum: Programming
Topic: BaCon Bits
Replies: 167
Views: 109249

Links to example programs in this thread

Edited first post to include these links to example programs in this thread. Video-Play HKP - Hug Keyword Parser Start of "Hello Bacon (World)" More Hello Bacon Even More Hello Bacon Still more Hello Bacon Hello Bacon - a complete app Bacon File I/O Bacon port of resizepfile "Resize p...
by GatorDog
Wed 02 Nov 2011, 01:01
Forum: Programming
Topic: November 1, 2011: BaCon 1.0 build 24 released
Replies: 13
Views: 9058

November 1, 2011: BaCon 1.0 build 24 released

.
________________________________________________

:D November 1, 2011: BaCon 1.0 build 24 released :D

________________________________________________
.