Posted: Sat 06 Nov 2010, 21:14
Lobster, would the space between the dot and the c be the problem?
READ-ONLY Archive
https://oldforum.puppylinux.com/
Code: Select all
./bacon.bash bacon.bac
Code: Select all
bacon yourfile.bac
Code: Select all
# ldd ./Firewall_Genie
linux-gate.so.1 => (0xffffe000)
libm.so.6 => /lib/libm.so.6 (0xb7807000)
libdl.so.2 => /lib/libdl.so.2 (0xb7803000)
libc.so.6 => /lib/libc.so.6 (0xb76b9000)
/lib/ld-linux.so.2 (0xb782f000)
Code: Select all
# ldd ./Firewall_Genie
linux-gate.so.1 => (0xffffe000)
libgtk-x11-2.0.so.0 => /usr/lib/libgtk-x11-2.0.so.0 (0xb74f1000)
libpangoft2-1.0.so.0 => /usr/lib/libpangoft2-1.0.so.0 (0xb74ca000)
libfreetype.so.6 => /usr/lib/libfreetype.so.6 (0xb7453000)
libfontconfig.so.1 => /usr/lib/libfontconfig.so.1 (0xb7423000)
libatk-1.0.so.0 => /usr/lib/libatk-1.0.so.0 (0xb7407000)
libgdk-x11-2.0.so.0 => /usr/lib/libgdk-x11-2.0.so.0 (0xb7371000)
libgdk_pixbuf-2.0.so.0 => /usr/lib/libgdk_pixbuf-2.0.so.0 (0xb7357000)
libm.so.6 => /lib/libm.so.6 (0xb7330000)
libgio-2.0.so.0 => /usr/lib/libgio-2.0.so.0 (0xb7292000)
libpangocairo-1.0.so.0 => /usr/lib/libpangocairo-1.0.so.0 (0xb7286000)
libpango-1.0.so.0 => /usr/lib/libpango-1.0.so.0 (0xb7243000)
libcairo.so.2 => /usr/lib/libcairo.so.2 (0xb71c9000)
libgobject-2.0.so.0 => /usr/lib/libgobject-2.0.so.0 (0xb7189000)
libgthread-2.0.so.0 => /usr/lib/libgthread-2.0.so.0 (0xb7183000)
libgmodule-2.0.so.0 => /usr/lib/libgmodule-2.0.so.0 (0xb717e000)
librt.so.1 => /lib/librt.so.1 (0xb7175000)
libglib-2.0.so.0 => /lib/libglib-2.0.so.0 (0xb70ab000)
libpthread.so.0 => /lib/libpthread.so.0 (0xb7092000)
libc.so.6 => /lib/libc.so.6 (0xb6f49000)
libX11.so.6 => /usr/lib/libX11.so.6 (0xb6e2c000)
libXcomposite.so.1 => /usr/lib/libXcomposite.so.1 (0xb6e28000)
libXdamage.so.1 => /usr/lib/libXdamage.so.1 (0xb6e24000)
libXfixes.so.3 => /usr/lib/libXfixes.so.3 (0xb6e1e000)
libz.so.1 => /lib/libz.so.1 (0xb6e08000)
libexpat.so.1 => /lib/libexpat.so.1 (0xb6de1000)
libXext.so.6 => /usr/lib/libXext.so.6 (0xb6dd1000)
libXrender.so.1 => /usr/lib/libXrender.so.1 (0xb6dc7000)
libXinerama.so.1 => /usr/lib/libXinerama.so.1 (0xb6dc3000)
libXi.so.6 => /usr/lib/libXi.so.6 (0xb6db4000)
libXrandr.so.2 => /usr/lib/libXrandr.so.2 (0xb6dac000)
libXcursor.so.1 => /usr/lib/libXcursor.so.1 (0xb6da2000)
/lib/ld-linux.so.2 (0xb78c8000)
libdl.so.2 => /lib/libdl.so.2 (0xb6d9e000)
libpcre.so.3 => /lib/libpcre.so.3 (0xb6d6d000)
libresolv.so.2 => /lib/libresolv.so.2 (0xb6d58000)
libselinux.so.1 => /lib/libselinux.so.1 (0xb6d3d000)
libpixman-1.so.0 => /usr/lib/libpixman-1.so.0 (0xb6ce3000)
libdirectfb-1.2.so.0 => /usr/lib/libdirectfb-1.2.so.0 (0xb6c6c000)
libfusion-1.2.so.0 => /usr/lib/libfusion-1.2.so.0 (0xb6c62000)
libdirect-1.2.so.0 => /usr/lib/libdirect-1.2.so.0 (0xb6c4b000)
libpng12.so.0 => /lib/libpng12.so.0 (0xb6c26000)
libxcb-render-util.so.0 => /usr/lib/libxcb-render-util.so.0 (0xb6c21000)
libxcb-render.so.0 => /usr/lib/libxcb-render.so.0 (0xb6c19000)
libxcb.so.1 => /usr/lib/libxcb.so.1 (0xb6bff000)
libXau.so.6 => /usr/lib/libXau.so.6 (0xb6bfa000)
libXdmcp.so.6 => /usr/lib/libXdmcp.so.6 (0xb6bf4000)
Mobeus,Mobeus wrote:I think BaCon is the Puppy Linux programming language I've been looking for years for. I rebuilt my GTK Firewall_Genie using BaCon instead of Genie/vala. Take a look at this these dependencies!
Code: Select all
#!/bin/bash
# Note: when passing a span string containing double quotes,
# be sure to escape the quotes with a backslash (\). Also, use
# the pipe character (|) # for generating a newline.
# If you don't have a font specified in a span command
# installed on your system, GTK will use your default font
# (e.g. 1960s Hippie in the first $mytext below will display as DejaVu Sans).
# grab start time
before=`date +%s`
# This is the first string to display via bac-notify
mytext="Hi there!|
<span weight=\"ultrabold\" color=\"red\" font-family=\"1960s Hippie\" size=\"xx-large\">
This is <u>BIG RED</u> text
</span>
|and <i>this</i> is <u>another</u> line...|
<span weight=\"ultrabold\" color=\"blue\">
passed to <big>bac-notify</big> via bash.
</span>"
# OK, let's display the first string
./bac-notify "$mytext" &
echo "bac-notify launched..."
# Wait a bit
sleep 5
# OK, now the second string
mytext="This is a second message!|
<span weight=\"ultrabold\" color=\"#2A8F15\" font-family=\"DejaVu Serif\" size=\"xx-large\">
The notifications will <u>be overlaid</u>
</span>
|and placed <i>on top of</i> one <u>another</u>...|
<span weight=\"ultrabold\" color=\"#A3120D\" size=\"xx-large\">
Blood Red is GROOVY, isn't it<big>!?</big>
</span>"
./bac-notify "$mytext" &
echo "bac-notify launched..."
# Wait a bit
sleep 5
# OK, now the third string
mytext="<small>
<span font-family=\"DejaVu Sans Mono\">
BaCon is a free BASIC to C converter for Unix-based systems.|
The following design goals were followed:|
* Must run on each Unix/Linux/BSD platform, including MacOSX|
* Converted sourcecode must be compilable with GCC|
* Must resemble genuine BASIC with implicit variable delarations|
* Spoken language constructs are preferred|
To use Bacon your system must have the Korn Shell or Bourne Shell.
</span></small>"
./bac-notify "$mytext" &
echo "bac-notify launched..."
# Wait a bit
sleep 5
# OK, now the fourth string
mytext="
<span font-family=\"DejaVu Sans\" weight=\"ultrabold\" color=\"red\" size=\"xx-large\">
CONGRATULATIONS!|
</span>
<span style=\"oblique\" color=\"blue\">
You have just successfully downloaded the entire content|
of all websites indexed by Google to your USB stick :)
</span>"
./bac-notify "$mytext" &
echo "bac-notify launched..."
# Wait a bit
sleep 5
# grab end time
after=`date +%s`
elapsed_seconds=`expr $after - $before + 5`
# Finally, the fifth and last string
mytext="<span weight=\"ultrabold\" color=\"blue\" font-family=\"DejaVu Sans\" size=\"xx-large\">
BYE-BYE</span>|
<b><big>from bac-notify...</big></b>|
Demo time: $elapsed_seconds seconds"
./bac-notify "$mytext" &
echo "bac-notify launched..."
exit 0
Geany does not use Gtksourceview, but NicoEdit does. Many Puppies have NicoEdit built-in, or it is a PET that you can install with the package manager.2lss wrote:Does anybody out there have bacon syntax highlighting configuration file for Geany? (the GtkSourceView file from the main site does not work).
If not I will take a stab at creating one.
Code: Select all
(nicoedit:18591): GtkSourceView-CRITICAL **: gtk_source_language_manager_get_language: assertion `id != NULL' failed
I have just tried it in Wary. The file bacon.lang is already present.2lss wrote:Thanks vovchik and BarryK for your suggestions.
I gave nicoedit a try but for some reason the syntax highlighting does not want to work for bacon. (works ok for c, xml, etc)
I copied bacon.lang to /use/share/gtksourceview-2.0/language-specs and then ran "check.sh" on it, which said "bacon.lang validates."
I'm also getting a gtksourceview related error when I start Nicoedit (regardless of the extension)I don't think the problem is the bacon.lang file since it works for me in gEdit on Ubuntu. (using puppeee 4.3 now)Code: Select all
(nicoedit:18591): GtkSourceView-CRITICAL **: gtk_source_language_manager_get_language: assertion `id != NULL' failed
Anyway, I'm going to give vovchik's file a go and see what I can come up with