Puppy 4.2 Deep Thought Development

Post Reply
Message
Author
User avatar
rarsa
Posts: 3053
Joined: Sun 29 May 2005, 20:30
Location: Kitchener, Ontario, Canada
Contact:

#121 Post by rarsa »

Back to the thread for me. What is the favoured programming language for puppy 4.2?

Since TCL/TK, Gnocl, etc. were removed before are we just left with bash and gtkdialog? It feels like stone and chisel.
[url]http://rarsa.blogspot.com[/url] Covering my eclectic thoughts
[url]http://www.kwlug.org/blog/48[/url] Covering my Linux How-to

User avatar
J-Bob
Posts: 282
Joined: Sun 10 Feb 2008, 00:58
Location: Canada
Contact:

#122 Post by J-Bob »

rarsa wrote:Back to the thread for me. What is the favoured programming language for puppy 4.2?

Since TCL/TK, Gnocl, etc. were removed before are we just left with bash and gtkdialog? It feels like stone and chisel.
basically we are left with xdialog and bash.

But Lassie/Remnant is keeping Gnocl, as that's partially because that's what i'm planing to learn. And it would be good to have a puppy with gnocl on it for people who use gnocl.

User avatar
ttuuxxx
Posts: 11171
Joined: Sat 05 May 2007, 10:00
Location: Ontario Canada,Sydney Australia
Contact:

#123 Post by ttuuxxx »

if you could get one around 500kb or less we could maybe see WhoDo preinstall it. SDl, maybe fox tools, I did like foxtools because how small and visually nice looking the programs were like goggles. rarsa is you workout a package and submit it on here I think that would be great, worst case it could just be part of the repo. But to have a new language and have some users bringing new applications built with it to the mix is always useful.
ttuuxxx
http://audio.online-convert.com/ <-- excellent site
http://samples.mplayerhq.hu/A-codecs/ <-- Codec Test Files
http://html5games.com/ <-- excellent HTML5 games :)

User avatar
rarsa
Posts: 3053
Joined: Sun 29 May 2005, 20:30
Location: Kitchener, Ontario, Canada
Contact:

#124 Post by rarsa »

As far as I remembet Perl is included also. I'll investigate the size of GTk2-perl maybe including the GTK2::GladeXML module
[url]http://rarsa.blogspot.com[/url] Covering my eclectic thoughts
[url]http://www.kwlug.org/blog/48[/url] Covering my Linux How-to

User avatar
Lobster
Official Crustacean
Posts: 15522
Joined: Wed 04 May 2005, 06:06
Location: Paradox Realm
Contact:

#125 Post by Lobster »

What is the favoured programming language for puppy 4.2?
As well as the mentioned languages
C and C++
XUL, javascript and Actionscript (Flash)
are also available

For example here is some unfinished XUL code
Put it in a file called test.xul
and drag it into the seamonkey icon (or open it from Seamonkey)

Code: Select all

<?xml version="1.0"?>
<?xml-stylesheet href="chrome://global/skin" type="text/css"?>

<window 
        xmlns:html="http://www.w3.org/1999/xhtml"
        xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul">

<vbox flex="1" style="overflow: auto">

   <hbox>
     <button flex="1" type="menu" label="CLICK HERE for Tmxxine Services">
       <menupopup>
         <menuitem label="Time Travel News" oncommand="setText('menu-text','Option 1');" />
         <action>
          <label href="http://www.google.com" class="text-link" value="click"/>       
         </action>
         <menuitem label="Upgrades" oncommand="setText('menu-text','Option 2');" />
         <menuitem label="Resources" oncommand="setText('menu-text','Option 3');" />
         <menuitem label="Option 4" oncommand="setText('menu-text','Option 4');" />
         <menuitem label="Option 5" oncommand="setText('menu-text','Option 1');" />
         <menuitem label="Option 6" oncommand="setText('menu-text','Option 2');" />
         <menuitem label="Option 7" oncommand="setText('menu-text','Option 3');" />
         <menuitem label="Option 8" oncommand="setText('menu-text','Option 4');" />

       </menupopup>
     </button>
   
   </hbox>
<groupbox>
    <tabbox  flex="1">
      <tabpanels flex="1" style="border-bottom: 0px solid" >
   
    <hbox>
        <vbox align="center">
          <image src="lit.jpg" />
            <label value="Puppy Toolbar f saf asf  fsa f sa fs af sa f sa fs af ssa f sa f saf sa f sa f sa" />
          <tooltip id="moretip" orient="vertical" style="background-color: #FFFFFF;">
            <description value="Click here to see more information"/>
            <description value="Really!" style="color: red;"/>
          </tooltip>
        </vbox>
   </hbox> 

   <label value="Tuseful info" tooltip="moretip" />

<textbox multiline="true" value="
y
u
i
"/>

  <hbox>
    <vbox align="center">
       <image src="p4.jpg" />
      <label value="Ay Chiwawa" />
    </vbox>
   </hbox>

     <label value="Facilities"  />

<textbox multiline="true" value="
 
   Created for Tmxxine and Puppy 
 
   By Lobster 
 
   November 2008 
"/>

 <hbox>
    <vbox align="center">
      <image src="p4.jpg" />
      <label value="Ay Chiwawa"/>
    </vbox>
 </hbox>

       <label value="Tips"/>
       <label value="Facilities"/>
       <label value="Tips"/>
       <label value="credits info here . . . Created In XUL by Lobster"/>

  </tabpanels>
    <tabs flex="1"               class="tabs-bottom">
       <tab label="Welcome"      class="tab-bottom" />
       <tab label="Facilities"   class="tab-bottom" />
       <tab label="Tips"         class="tab-bottom" />
       <tab label="Welcome2"     class="tab-bottom" />
       <tab label="Facilities2"  class="tab-bottom" />
       <tab label="Credits"      class="tab-bottom" />
    </tabs>
  </tabbox>

</groupbox>

</vbox>
</window>
http://en.wikipedia.org/wiki/XUL
Puppy Raspup 8.2Final 8)
Puppy Links Page http://www.smokey01.com/bruceb/puppy.html :D

User avatar
HairyWill
Posts: 2928
Joined: Fri 26 May 2006, 23:29
Location: Southampton, UK

#126 Post by HairyWill »

Thanks lobster.
I've never tried xul before.
Will
contribute: [url=http://www.puppylinux.org]community website[/url], [url=http://tinyurl.com/6c3nm6]screenshots[/url], [url=http://tinyurl.com/6j2gbz]puplets[/url], [url=http://tinyurl.com/57gykn]wiki[/url], [url=http://tinyurl.com/5dgr83]rss[/url]

User avatar
WhoDo
Posts: 4428
Joined: Wed 12 Jul 2006, 01:58
Location: Lake Macquarie NSW Australia

Puppy 4.2alpha proposed changes from bug fix thread...

#127 Post by WhoDo »

I'm handling most of these myself, because I'm doing the building and that's where they should be handled, but if anyone particularly wants to tackle something from the list then please, PLEAASSEEE let me know! :P
  1. Add gfxboot Grub bootsplash manager
  2. Autostart Xpad
  3. Find out why a theme switch blanks the JWM tray
  4. Add weather fonts for Pwidget
  5. Swap web desktop for current startup page
  6. Add wbar for launcher in both wm's (maybe - any objections?)
  7. Add gnocl run time
  8. Check differences with current remaster and Dougal's remaster
  9. Check Ctrl+Alt+Delete options in JWM - these work in Icewm
  10. Change rxvt console to white on black
  11. Add smb symlink for CUPS (if someone can get CUPS working first - sheesh!)
  12. Investigate problem with PUI and Grub not installing properly
  13. Missing pup_save.2fs file error dialog - what to do next
  14. Investigate boot script problems caused by pressing <space> during boot
  15. Investigate and/or update "underdog" functionality for Puppy 4.xx series
  16. Increase number of "default loops" for additional sfs files to be added with bootmanager (I'll need help to include this feature - I'm not sure what needs to be done here)
I'll keep adding to and subtracting from the list and updating this post until 4.2a2 is uploaded.

Update 23 Jan 2009:
List reduced from 32 to 15 outstanding items. The rest have been completed and merged into the Unleashed build tree for Puppy 4.2a2 (scheduled for release 26 January 2009 - Australia Day :wink: )

Cheers
Last edited by WhoDo on Fri 23 Jan 2009, 20:46, edited 4 times in total.
[i]Actions speak louder than words ... and they usually work when words don't![/i]
SIP:whodo@proxy01.sipphone.com; whodo@realsip.com

User avatar
ttuuxxx
Posts: 11171
Joined: Sat 05 May 2007, 10:00
Location: Ontario Canada,Sydney Australia
Contact:

#128 Post by ttuuxxx »

Here's Xchat, Plus this one I made default Chat Client on the desktop.

I'll do if you want
6. Update to most recent Icewm-1.2.36-mini version
7. Add 24x24 icons for menus <-- I had these from before, all tango,or open source GPL
8. Swap Parcellite for Glipper (unless there are objections) ( I can make it autostart in Icewm)
9. Autostart Xpad( I can make start in icewm)

You'll have to do the xdg menu because you keep chopping or adding programs :)



Other
12. Look at Startx icewm vs icewm-session for timing issues (need icewm-seesion or no blinky, free memory applet)


19. Add wbar for launcher in both wm's (maybe - any objections?) <-- extra weight, I really don't like wbar, Happy with desktop icons.

ttuuxxx
http://audio.online-convert.com/ <-- excellent site
http://samples.mplayerhq.hu/A-codecs/ <-- Codec Test Files
http://html5games.com/ <-- excellent HTML5 games :)

User avatar
01micko
Posts: 8741
Joined: Sat 11 Oct 2008, 13:39
Location: qld
Contact:

#129 Post by 01micko »

... and I'm onto the weather icons and other Pwidgets stuff
Puppy Linux Blog - contact me for access

User avatar
HairyWill
Posts: 2928
Joined: Fri 26 May 2006, 23:29
Location: Southampton, UK

#130 Post by HairyWill »

number 13 lost jwm-tray
fix the code at the end of /usr/local/jwmconf2/theme_switcher

Code: Select all

#fixed by hairywill 20-01-09 handle case where linenumber/2 is zero
[ ! "$lineNumber" = 0 ] && sed -ie "$lineNumber"d  $TrayFile && sed -ie "$lineNumber"i"$blinkyline" $TrayFile
[ ! "$lineNumber2" = 0 ] && sed -ie "$lineNumber2"d $TrayFile && sed -ie "$lineNumber2"i"$xloadline" $TrayFile
#sed -e "$lineNumber"i"$blinkyline" -e "$lineNumber"d -e "$lineNumber2"i"$xloadline" -e "$lineNumber2"d $TrayFileBak > $TrayFile
 #end John Doe's code.
If John's original sed failed then nothing would be output into jwmrc-tray. The removal of xload from the original tray definition caused $lineNumber2 to equal 0 this in turn made sed fail. My fix checks for zeros and also operates interactively directly on jwmrc-tray so if sed fails the tray is left untouched.
Will
contribute: [url=http://www.puppylinux.org]community website[/url], [url=http://tinyurl.com/6c3nm6]screenshots[/url], [url=http://tinyurl.com/6j2gbz]puplets[/url], [url=http://tinyurl.com/57gykn]wiki[/url], [url=http://tinyurl.com/5dgr83]rss[/url]

User avatar
HairyWill
Posts: 2928
Joined: Fri 26 May 2006, 23:29
Location: Southampton, UK

#131 Post by HairyWill »

18 and 23
the following key binding in jwm can be used to launch an action on CTRL-ALT-DEL

Code: Select all

<Key mask="CA" key="Delete">exec:rox</Key>
but we need a sensible action to bind it to. This action should probably be the same as that launched by the top-tray exit which currently causes a shutdown with no option to cancel. I'm sure that numerous puplets out there have little shutdown dialogs, ttuuxxx, ecomoney?

@whodo
for 18 the updated tray definition do you want me to patch zigberts tray pet and update the version or do you just want the file jwmrc-tray-top
Will
contribute: [url=http://www.puppylinux.org]community website[/url], [url=http://tinyurl.com/6c3nm6]screenshots[/url], [url=http://tinyurl.com/6j2gbz]puplets[/url], [url=http://tinyurl.com/57gykn]wiki[/url], [url=http://tinyurl.com/5dgr83]rss[/url]

User avatar
ttuuxxx
Posts: 11171
Joined: Sat 05 May 2007, 10:00
Location: Ontario Canada,Sydney Australia
Contact:

#132 Post by ttuuxxx »

HairyWill wrote:18 and 23
the following key binding in jwm can be used to launch an action on CTRL-ALT-DEL

Code: Select all

<Key mask="CA" key="Delete">exec:rox</Key>
but we need a sensible action to bind it to. This action should probably be the same as that launched by the top-tray exit which currently causes a shutdown with no option to cancel. I'm sure that numerous puplets out there have little shutdown dialogs, ttuuxxx,?
I still have my shutdown script I made for 3.02, The only button that didn't work was restart Icewm But Now I know how to do it, should be simple, Basically you pressed the power button on the taskbar and this menu popup happened.
image below.
If you wanted it, I could adapt it for icewm and probably JWM also. and change the icons&Banner of course :wink: , I quickly made those icons.
ttuuxxx
Attachments
302.jpg
(34.71 KiB) Downloaded 1005 times
http://audio.online-convert.com/ <-- excellent site
http://samples.mplayerhq.hu/A-codecs/ <-- Codec Test Files
http://html5games.com/ <-- excellent HTML5 games :)

User avatar
rarsa
Posts: 3053
Joined: Sun 29 May 2005, 20:30
Location: Kitchener, Ontario, Canada
Contact:

Re: Puppy 4.2alpha proposed changes from bug fix thread...

#133 Post by rarsa »

WhoDo wrote: [*]Add tcl/tk libraries
[*]Add gnocl run time
Does this mean that tcl/tk - Gnocl will be back to the main Puppy trunk?

That's good news.
[url]http://rarsa.blogspot.com[/url] Covering my eclectic thoughts
[url]http://www.kwlug.org/blog/48[/url] Covering my Linux How-to

User avatar
WhoDo
Posts: 4428
Joined: Wed 12 Jul 2006, 01:58
Location: Lake Macquarie NSW Australia

Re: Puppy 4.2alpha proposed changes from bug fix thread...

#134 Post by WhoDo »

rarsa wrote:
WhoDo wrote: [*]Add tcl/tk libraries
[*]Add gnocl run time
Does this mean that tcl/tk - Gnocl will be back to the main Puppy trunk?

That's good news.
Yes it does, rarsa. I hope that makes things easier for you to contribute. I understand what Barry was hoping to achieve by leaving these out, but at the moment we lose too much flexibility. We will have runtime versions only, however. 8.5.a4 or later for tcl/tk.
[i]Actions speak louder than words ... and they usually work when words don't![/i]
SIP:whodo@proxy01.sipphone.com; whodo@realsip.com

User avatar
WhoDo
Posts: 4428
Joined: Wed 12 Jul 2006, 01:58
Location: Lake Macquarie NSW Australia

#135 Post by WhoDo »

ttuuxxx wrote:If you wanted it, I could adapt it for icewm and probably JWM also. and change the icons&Banner of course :wink: , I quickly made those icons.
Nice functionality ... I like it, so please adapt! 8) What Will and I were also talking about was binding this to a key definition for Ctrl+Alt+Del which is the standard "Help, get me outa here" combination for refugees in trouble with their mouse or a rabid program. We need both ... in both wm's ... IMHO. If this will provide both, we're on a winner! :D
Last edited by WhoDo on Tue 20 Jan 2009, 19:56, edited 1 time in total.
[i]Actions speak louder than words ... and they usually work when words don't![/i]
SIP:whodo@proxy01.sipphone.com; whodo@realsip.com

User avatar
WhoDo
Posts: 4428
Joined: Wed 12 Jul 2006, 01:58
Location: Lake Macquarie NSW Australia

#136 Post by WhoDo »

HairyWill wrote:...for 18 the updated tray definition do you want me to patch zigberts tray pet and update the version or do you just want the file jwmrc-tray-top
Just the file will do, Will. Patch the pet if you think it will be useful to others.
[i]Actions speak louder than words ... and they usually work when words don't![/i]
SIP:whodo@proxy01.sipphone.com; whodo@realsip.com

User avatar
technosaurus
Posts: 4853
Joined: Mon 19 May 2008, 01:24
Location: Blue Springs, MO
Contact:

#137 Post by technosaurus »

@ttuuxxx in your shutdown dialog - maybe add pprocess to handle shutting down runaway programs/processes for redmond's refugees

Also I have been dilligently working on a bash script derived from the remaster script that will make an sfs addon puplet its less than 2k and its here:
http://www.murga-linux.com/puppy/viewtopic.php?t=37856
It could save ~100MB bandwidth per puplet download

Any testers are welcome to bash my bash capabilities (or lack thereof) and clean up the code.
Check out my [url=https://github.com/technosaurus]github repositories[/url]. I may eventually get around to updating my [url=http://bashismal.blogspot.com]blogspot[/url].

User avatar
TheBlackSheep
Posts: 20
Joined: Sun 23 Nov 2008, 09:24
Location: Lancashire, UK

#138 Post by TheBlackSheep »

Downloaded 4.2 Alpha and really liked the first impressions, congrats to all involved so far.

I remember some discussions several weeks back about what the default desktop image should be although at that time the images being suggested were of an Australian origin/flavour (not that that is an issue of course). In the end I guess it was never agreed upon and the current desktop appears to be a blended grey/orange one - looks ok but not really what I wanted to see.

I was hoping for something more inline with the HHGTTG theme (this release is called "Deep Thought" for a reason) being an avid fan for what must be 30 years (I actually met the author at one point!). I decided to look for an image that relayed something more in keeping with this and thought that an obvious choice would be a Norwegian Fjord (albeit this part of the story relates to the computer that is yet to come!) and came across this image on Flickr

http://www.flickr.com/photos/kiim/114070564/

Take a look, it looks really good with the Orange icon theme.

If the default desktop position is still open then I think this image could be used - I believe it's under a Creative Commons licence on this so as long as the originator (a hoopy frood called Kim Erlandsen) gets the credit for it then it should be fine to be used. If not, it's definitely ok for personal use.

Enjoy!

Chris

User avatar
ttuuxxx
Posts: 11171
Joined: Sat 05 May 2007, 10:00
Location: Ontario Canada,Sydney Australia
Contact:

#139 Post by ttuuxxx »

WhoDo wrote:
ttuuxxx wrote:If you wanted it, I could adapt it for icewm and probably JWM also. and change the icons&Banner of course :wink: , I quickly made those icons.
Nice functionality ... I like it, so please adapt! 8) What Will and I were also talking about was binding this to a key definition for Ctrl+Alt+Del which is the standard "Help, get me outa here" combination for refugees in trouble with their mouse or a rabid program. We need both ... in both wm's ... IMHO. If this will provide both, we're on a winner! :D
Bit tired tonight hard a 12hr workday, but I don't think it would be too hard to do, I'll look into it tomorrow after work :)
ttuuxxx
http://audio.online-convert.com/ <-- excellent site
http://samples.mplayerhq.hu/A-codecs/ <-- Codec Test Files
http://html5games.com/ <-- excellent HTML5 games :)

User avatar
HairyWill
Posts: 2928
Joined: Fri 26 May 2006, 23:29
Location: Southampton, UK

#140 Post by HairyWill »

whodo here is my .jwmrc-tray-top

Code: Select all

<JWM>
 <Tray autohide="true" insert="right" valign="top" halign="center" height="36" >
  <TrayButton popup="Edit tray" icon="star48.png">exec:ptray</TrayButton>
  <TrayButton popup="" icon="nothing.png">exec:</TrayButton>
  <TrayButton popup="" icon="nothing.png">exec:</TrayButton>
  <TrayButton popup="" icon="nothing.png">exec:</TrayButton>
  
  <TrayButton popup="Home" icon="/usr/local/lib/X11/pixmaps/home48.png">exec:rox</TrayButton>
  <TrayButton popup="Seamonkey - web browser" icon="/usr/local/lib/X11/pixmaps/www48.png">exec:defaultbrowser</TrayButton>
  <TrayButton popup="Rxvt - terminal emulator" icon="/usr/local/lib/X11/pixmaps/console48.png">exec:rxvt</TrayButton>
  <TrayButton popup="Leafpad - text editor" icon="/usr/local/lib/X11/pixmaps/leafpad48.png">exec:leafpad</TrayButton>
  <TrayButton popup="Pfind - file finder" icon="/usr/local/lib/X11/pixmaps/search48.png">exec:pfind</TrayButton>
  <TrayButton popup="Pprocess - process manager" icon="/usr/local/lib/X11/pixmaps/process48.png">exec:pprocess</TrayButton>
  <TrayButton popup="Pwireless - wireless scanner" icon="/usr/local/lib/X11/pixmaps/wifi48.png">exec:Pwireless</TrayButton>
  <TrayButton popup="Galculator - scientific calculator" icon="/usr/local/lib/X11/pixmaps/calc48.png">exec:galculator</TrayButton>

  <TrayButton popup="" icon="nothing.png">exec:</TrayButton>
  <TrayButton popup="" icon="nothing.png">exec:</TrayButton>
  <TrayButton popup="" icon="nothing.png">exec:</TrayButton>
  <TrayButton popup="Show desktop" icon="show-desktop24.png">showdesktop</TrayButton>
  <TrayButton popup="Power OFF computer" icon="exit24.png">exec:shutdown-dialog</TrayButton>
 </Tray>
</JWM>
Its not actually very different. I have assumed that there is a shutdown dialog called shutdown-dialog.

ttuuxxx
excellent, I think that it would look better if the cancel button was the same style as the others and you might consider including a button "task manager" which launches pprocess. This would be especially useful for icewm as I don't think kill is one of the options you get when you right click on a window.

I'm not sure what you intend for the restart window manager button, but it should be possible to look in /etc/windowmanager to decide which window manager is currently running. I suggest you code this so that it only appears if the window manager is icewm or jwm, unless of course you know how to restart some other common window managers.

I wonder if the jwm menu Shutdown should be converted to launch shutdown-dialog rather than opening a submenu.

edit: fixed the calculator button in the tray def
Last edited by HairyWill on Wed 21 Jan 2009, 12:17, edited 1 time in total.
Will
contribute: [url=http://www.puppylinux.org]community website[/url], [url=http://tinyurl.com/6c3nm6]screenshots[/url], [url=http://tinyurl.com/6j2gbz]puplets[/url], [url=http://tinyurl.com/57gykn]wiki[/url], [url=http://tinyurl.com/5dgr83]rss[/url]

Post Reply