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 Sat 29 Nov 2014, 03:40
All times are UTC - 4
 Forum index » Advanced Topics » Puppy Projects
pUPnGO - 6Mb ISO - Basic Building Block Puplet
Moderators: Flash, JohnMurga
Post new topic   Reply to topic View previous topic :: View next topic
Page 40 of 58 [868 Posts]   Goto page: Previous 1, 2, 3, ..., 38, 39, 40, 41, 42, ..., 56, 57, 58 Next
Author Message
technosaurus


Joined: 18 May 2008
Posts: 4380

PostPosted: Sat 25 Feb 2012, 13:38    Post subject:  

for the ultra-minimalist window managers, I already posted mcwm (though it is a bit outdated now), its by far the lightest when statically compiled due to using xcb instead of X11 (X11 doesn't statically link well though tinyx11 gets us a bit closer)... and it has an ISC license ... some others xcb window managers are i3, uuwm, uwm (based on jwm) there is even a composite manager called unagi

Edit:
several pages back we were trying to find a way to use a running instance of a multicall binary to run new "applets" rather than spawning a whole new instance (the way ROX-Filer does) I think we had everything except the mechanism to get new args into the running process. ---Solved (I think, see the notes on apipe).

Code:
#include <stdio.h>

void argsfromstdin(void){   /* TODO accept a function pointer to run ac, av */
char s[255],  av[255][255];
unsigned char i=0, pos=0, ac=0;
enum quotes_t{QUOTED=0,UNQUOTED}quotes=UNQUOTED;

//open a file ./apipe and store its file descriptor in variable apipe
//use mkfifo /tmp/apipe to create it ... or you can use stdin
//FILE * apipe = fopen("/tmp/apipe","r");;
fgets(s,255,stdin);

while (i<strlen(s)) {
   /* '!'=33, 'ÿ'=-1, '¡'=-95 outside of these are non-printables */
   if ( quotes && ((s[i] < 33) && (s[i] > -1) || (s[i] < -95))){
      av[ac][pos] = '\0';
      if (av[ac][0] != '\0')   ac++;
      pos = 0;
   }else{
      if (s[i]=='"'){  /* support quoted strings */
         if (pos==0){
            quotes=QUOTED;
         }else{      /* support \" within strings */
            if (s[i-1]=='\\'){
               av[ac][pos-1] = '"';
            }else{   /* end of quoted string */
               quotes=UNQUOTED;
            }
         }
      }else{         /* printable ascii characters */
         av[ac][pos] = s[i];
         pos++;
      }
   }
   i++;
}
/* TODO accept a function pointer to run ac, av */
#ifdef DEBUG
#include <string.h>
#define write1(s) write(1, s, strlen(s))
while (ac-->0) {write1(av[ac]);write1("\n");}
#endif

}

int main(int argc, char *argv[]){
argsfromstdin();
}

_________________
Web Programming - Pet Packaging 100 & 101
Back to top
View user's profile Send private message 
goingnuts

Joined: 07 Dec 2008
Posts: 783

PostPosted: Sun 04 Mar 2012, 04:43    Post subject:  

technosaurus: Had not seen your update - would be cool if it works!

The latest post about window managers reminded me that I had a static build of conky lying around.

Also found that gxine-0.2.1 is gtk1..now I only need to get a static uclibc xinelib build... Rolling Eyes
snap0002.png
 Description   
 Filesize   6.7 KB
 Viewed   1291 Time(s)

snap0002.png

conky-1.3.0-486.tar.gz
Description  static build conky
gz

 Download 
Filename  conky-1.3.0-486.tar.gz 
Filesize  93.5 KB 
Downloaded  199 Time(s) 
Back to top
View user's profile Send private message Visit poster's website 
PANZERKOPF

Joined: 16 Dec 2009
Posts: 280
Location: Earth

PostPosted: Wed 14 Mar 2012, 12:44    Post subject:  

About GetGUI:
I modified somewhat, now it can recognize Dialog/Xdialog syntax and following
options:
--title
--backtitle
--ok-label
--yes-label
--cancel-label
--no-label
--no-cancel
--default-item
--password
--msgbox
--inputbox
--yesno
--menu
--menubox
--radiolist
--checklist
--combobox
--fselect
Getgui's native options are not broken (I hope). Some default values are changed for my own needs (default fonts, button color etc..).
Also, a program name is changed to "xgetgui" to avoid copiright conflicts.
xgetgui-0.1a.tar.gz
Description 
gz

 Download 
Filename  xgetgui-0.1a.tar.gz 
Filesize  151.28 KB 
Downloaded  180 Time(s) 

_________________
SUUM CUIQUE.
Back to top
View user's profile Send private message 
technosaurus


Joined: 18 May 2008
Posts: 4380

PostPosted: Wed 14 Mar 2012, 16:49    Post subject:  

PANZERKOPF wrote:
About GetGUI:
I modified somewhat, now it can recognize Dialog/Xdialog syntax and
...
Getgui's native options are not broken (I hope). Some default values are changed for my own needs (default fonts, button color etc..).
Also, a program name is changed to "xgetgui" to avoid copiright conflicts.
I went through and fixed most of the syntactical build errors, and tweaked the font and border settings so it isn't so fugly. Still needs a lot of cleanup though ... mainly how the functions and variables are declared... also made a build script.

Edit @PANZERKOPF, btw most of the fixes were not your code - just legacy stuff and from ripping chunks out of ploticus ... also I added the list of widgets to the --help (though I didn't put any order to them or descriptions or formatting)
xgetgui-T.tar.gz
Description 
gz

 Download 
Filename  xgetgui-T.tar.gz 
Filesize  153.31 KB 
Downloaded  182 Time(s) 

_________________
Web Programming - Pet Packaging 100 & 101
Back to top
View user's profile Send private message 
goingnuts

Joined: 07 Dec 2008
Posts: 783

PostPosted: Fri 16 Mar 2012, 15:13    Post subject:  

PANZERKOPF: Really nice! If only we could add scrolling to the menu and file select windows it would be close to perfect. I did try to contact the developer about this but never got any contact...
Back to top
View user's profile Send private message Visit poster's website 
PANZERKOPF

Joined: 16 Dec 2009
Posts: 280
Location: Earth

PostPosted: Sat 17 Mar 2012, 08:36    Post subject:    

technosaurus wrote:
I went through and fixed most of the syntactical build errors, and tweaked the font and border settings so it isn't so fugly. Still needs a lot of cleanup though ... mainly how the functions and variables are declared... also made a build script.
Edit @PANZERKOPF, btw most of the fixes were not your code - just legacy stuff and from ripping chunks out of ploticus ... also I added the list of widgets to the --help (though I didn't put any order to them or descriptions or formatting)

Thanks!
goingnuts wrote:
PANZERKOPF: If only we could add scrolling to the menu and file select windows it would be close to perfect.

I agree but seems this is not possible without completely rewriting an internal toolkit.
Unfortunately I have poor experience with X toolkits Sad
P.S.
Another crazy idea about GTK1:
It is possible to make it UTF compliant or that is same as reinventing a wheel?
This idea was born when I found a clone of Athena Widget: Xaw3Dxft.
It supports UTF and Xft so If someone can improve Athena, why another one can't improve gtk1?
Xaw3dxft.tar.gz
Description 
gz

 Download 
Filename  Xaw3dxft.tar.gz 
Filesize  292.09 KB 
Downloaded  179 Time(s) 

_________________
SUUM CUIQUE.
Back to top
View user's profile Send private message 
technosaurus


Joined: 18 May 2008
Posts: 4380

PostPosted: Sat 17 Mar 2012, 15:55    Post subject:  

PANZERKOPF wrote:
...
Another crazy idea about GTK1:
It is possible to make it UTF compliant or that is same as reinventing a wheel?
This idea was born when I found a clone of Athena Widget: Xaw3Dxft.
It supports UTF and Xft so If someone can improve Athena, why another one can't improve gtk1?

Gtk-xcb fits the bill (the one on sourceforge, not the one in gtk's git tree). It was forked right before the cairo dependency and uses xcb as the backend (will need updated for newer versions though). Ideally I would like to update it to work with pango-1.24.5 and latest xcb libs, and add maybe some widgets/functions.

_________________
Web Programming - Pet Packaging 100 & 101
Back to top
View user's profile Send private message 
justauser

Joined: 09 Nov 2005
Posts: 28

PostPosted: Wed 04 Apr 2012, 08:03    Post subject: Take a look at tinycore  

If you are looking for interesting ideas about a minimalist distribution take a look at tinycore

[url]
http://distro.ibiblio.org/tinycorelinux/welcome.html[/url]

[/url]
Back to top
View user's profile Send private message 
nooby

Joined: 29 Jun 2008
Posts: 10557
Location: SwedenEurope

PostPosted: Wed 04 Apr 2012, 09:59    Post subject: Re: Take a look at tinycore  

justauser wrote:
If you are looking for interesting ideas about a minimalist distribution take a look at tinycore

http://distro.ibiblio.org/tinycorelinux/welcome.html


I know too little but I would be surprised if these two ahve the same goal?
Goingnuts will know though.

_________________
I use Google Search on Puppy Forum
not an ideal solution though
Back to top
View user's profile Send private message 
goingnuts

Joined: 07 Dec 2008
Posts: 783

PostPosted: Wed 04 Apr 2012, 14:35    Post subject: Re: Take a look at tinycore  

justauser wrote:
If you are looking for interesting ideas about a minimalist distribution take a look at tinycore


Thanks...I haven't followed too close the development of TC since I made this special version of pUPnGO: pUPnGO_V412_080211.iso running TC as topping. TC definitely is an interesting distro...but sort of lost interests after spending a short time on their forum...
Back to top
View user's profile Send private message Visit poster's website 
technosaurus


Joined: 18 May 2008
Posts: 4380

PostPosted: Wed 04 Apr 2012, 20:31    Post subject:  

Ditto on the toxic-caustic forum... That is what TC stands for right? I once had several hundred posts, but the constant mis-moderation convinced me it was as much of a lost cause as DSL (the main dev's former project), so I made sure to post all my relevant topics here (before removing all of my posts there). Tcl also stopped being simple a long time ago ... Puppy too, but I know puppy and like simple... so I try to make it simpler... Pupngo was already simpler, so I help out here when I can and the other more spotlight oriented devs cherry-pick from here and it slowly filters into mainline (not all, by any means... my init/xinit combo written in c is way oversimplified for a "standard" linux desktop but gets a basic gtk1 desktop in a 2mb kernel image). We test out these insane "impossible" ideas where experts would say it can't be done... It's a good thing we aren't "experts".
_________________
Web Programming - Pet Packaging 100 & 101
Back to top
View user's profile Send private message 
L18L

Joined: 19 Jun 2010
Posts: 2579
Location: www.eussenheim.de/

PostPosted: Fri 06 Apr 2012, 08:57    Post subject: Re: Take a look at tinycore  

justauser wrote:
If you are looking for interesting ideas about a minimalist distribution take a look at tinycore

[url]
http://distro.ibiblio.org/tinycorelinux/welcome.html[/url]

[/url]


Did take a look back too ... Shocked
Quote:
i understand that not worth powder and shot

quoted from
http://forum.tinycorelinux.net/index.php/topic,7169.msg71186.html#msg71186 Smile
Back to top
View user's profile Send private message 
greengeek

Joined: 20 Jul 2010
Posts: 2673
Location: New Zealand

PostPosted: Sat 07 Apr 2012, 16:26    Post subject:  

technosaurus wrote:
other more spotlight oriented devs cherry-pick from here and it slowly filters into mainline (not all, by any means.... We test out these insane "impossible" ideas where experts would say it can't be done... It's a good thing we aren't "experts".


It is fascinating watching what you guys have been doing. I am glad you are happy to be in the engine room, and that you have stuck with Puppy. It is so annoying when some projects get overtaken by "ego", but that isn't happening here. Watching these posts is like taking a peek into the inventors back shed. Thanks.
Back to top
View user's profile Send private message 
Aitch


Joined: 04 Apr 2007
Posts: 6825
Location: Chatham, Kent, UK

PostPosted: Sun 08 Apr 2012, 04:01    Post subject:  

Quote:
Watching these posts is like taking a peek into the inventors back shed. Thanks.


Aye to that...my sentiments entirely....great stuff, I'm an avid reader! Very Happy

Aitch Smile
Back to top
View user's profile Send private message 
goingnuts

Joined: 07 Dec 2008
Posts: 783

PostPosted: Sun 08 Apr 2012, 13:12    Post subject:  

Quote:
Did take a look back too ...

Smile ...They have "Hero Member"´s too - did not find any heroine there though Wink

Ohh and that wbar - looks so cool - even began to build a static version - starting with imlib2 and then remembered why I did not succeed in the past: wbar is cc/c+ or whatever. Crying or Very sad

But found another Easter-time-killer: beaver - quite mature editor with some syntax highlight and more modern mouse response that the gtk-version of mp. Attached a static build of beaver - only had to disable a font-style-setting to avoid segfaults in the static build bin.
snap0000.png
 Description   running pupngo+beaver
 Filesize   42.83 KB
 Viewed   317 Time(s)

snap0000.png

beaver-0.2.7_static.tar.gz
Description  Static build of beaver-0.2.7
gz

 Download 
Filename  beaver-0.2.7_static.tar.gz 
Filesize  389.29 KB 
Downloaded  171 Time(s) 
Back to top
View user's profile Send private message Visit poster's website 
Display posts from previous:   Sort by:   
Page 40 of 58 [868 Posts]   Goto page: Previous 1, 2, 3, ..., 38, 39, 40, 41, 42, ..., 56, 57, 58 Next
Post new topic   Reply to topic View previous topic :: View next topic
 Forum index » Advanced Topics » Puppy Projects
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.1184s ][ Queries: 13 (0.0187s) ][ GZIP on ]