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 Wed 26 Nov 2014, 03:47
All times are UTC - 4
 Forum index » Taking the Puppy out for a walk » Announcements
technosaurus' blog
Moderators: Flash, Ian, JohnMurga
Post_new_topic   Reply_to_topic View_previous_topic :: View_next_topic
Page 1 of 1 Posts_count  
Author Message
technosaurus


Joined: 18 May 2008
Posts: 4379

PostPosted: Tue 01 Nov 2011, 17:53    Post_subject:  technosaurus' blog  

http://bashismal.blogspot.com/
I have begun to share my best coding tricks on my blog.
Script optimization and compile tricks will be te main focus, but feel free to ask questions ... even the ones that have been done to death, my answers aren't always what you'd expect (see my bash localization post)

_________________
Web Programming - Pet Packaging 100 & 101
Back to top
View user's profile Send_private_message 
sc0ttman


Joined: 16 Sep 2009
Posts: 2386
Location: UK

PostPosted: Wed 02 Nov 2011, 12:35    Post_subject:  

brilliant!
_________________
Akita Linux, VLC-GTK, Pup Search, Pup File Search
Back to top
View user's profile Send_private_message 
Béèm


Joined: 21 Nov 2006
Posts: 11782
Location: Brussels IBM Thinkpad R40, 256MB, 20GB, WiFi ipw2100. Frugal Lin'N'Win

PostPosted: Wed 02 Nov 2011, 14:14    Post_subject:  

Thank you T. Looks interesting.
_________________
Time savers:
Find packages in a snap and install using Puppy Package Manager (Menu).
Consult Wikka
Use peppyy's puppysearch
Back to top
View user's profile Send_private_message 
BarryK
Puppy Master


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

PostPosted: Thu 03 Nov 2011, 08:25    Post_subject:  

Fantastic!

Technosaurus, you are often discovering and posting very interesting things, so you needed a "home" place where it is all together.

_________________
http://bkhome.org/news/
Back to top
View user's profile Send_private_message Visit_website 
technosaurus


Joined: 18 May 2008
Posts: 4379

PostPosted: Thu 03 Nov 2011, 17:49    Post_subject:  

Thanks for the support.
The whole purpose is to support you.
My goal is to bring together all of the little obscure tidbits that are easily overlooked by the untrained eye. Things that reduce bloat, increase speed and usability or are otherwise interesting.

Things in the queue:
Porting an applet to busybox
Making your own multicall binary
Making your own multicall scripts (a shell function tutorial)
Using a wrapper script (using a gcc wrapper that scrubs bloated CFLAGS)
Fast replacements for sed, grep, cut, tr.
Recursion (on data and down directories)
Building simple GUIs
Parsing files.
...

What would you like to see?

_________________
Web Programming - Pet Packaging 100 & 101
Back to top
View user's profile Send_private_message 
zigbert


Joined: 29 Mar 2006
Posts: 5788
Location: Valåmoen, Norway

PostPosted: Fri 04 Nov 2011, 12:54    Post_subject:  

technosaurus wrote:
Things in the queue:
Porting an applet to busybox
Making your own multicall binary
Making your own multicall scripts (a shell function tutorial)
Using a wrapper script (using a gcc wrapper that scrubs bloated CFLAGS)
Fast replacements for sed, grep, cut, tr.
Recursion (on data and down directories)
Building simple GUIs
Parsing files.
...
I am looking forward to read your new tips Very Happy


Thank you
Sigmund

_________________
Stardust resources
Back to top
View user's profile Send_private_message Visit_website 
JohnMurga
Site Admin


Joined: 04 May 2005
Posts: 586
Location: Far to the east

PostPosted: Thu 10 Nov 2011, 14:02    Post_subject: Re: technosaurus blog  

technosaurus wrote:
http://bashismal.blogspot.com/
I have begun to share my best coding tricks on my blog.
Script optimization and compile tricks will be te main focus, but feel free to ask questions ... even the ones that have been done to death, my answers aren't always what you'd expect (see my bash localization post)

Superb ... Thanks !!
Back to top
View user's profile Send_private_message Visit_website 
L18L

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

PostPosted: Thu 10 Nov 2011, 15:57    Post_subject: localizing shell scripts without bashisms, gettext or ... an
Sub_title: using a variable
 

Technosaurus,
thank you very much!

And now I have found the simple solution for using variables in the translatable texts, better than here:
variables in translatable messages

Copying from console:
Quote:
# cat hello
#!/bin/sh
# localization using a variable
LANGPATH=locale/${LANG%_*}/hello
home="woof" # a variable for demo only
[ -f $LANGPATH ] && . $LANGPATH
echo ${VAR:-Hello $home World}

Quote:
# cat locale/es/hello
VAR="Hola Mundo del $home"#

Quote:
# cat locale/de/hello
VAR="Hallo $home Welt"#

Quote:
# ./hello
Hallo woof Welt
#
# LANG=es ./hello
Hola Mundo del woof
#
# LANG=en ./hello
Hello woof World
#


Very Happy
Sorry if I have derailed your thread, but your explanation has caused it, so take it as a big compliment please
Back to top
View user's profile Send_private_message 
Tman


Joined: 22 Jan 2011
Posts: 814
Location: Toronto

PostPosted: Tue 15 Nov 2011, 16:44    Post_subject:  

techno,

Thanks very much for starting your blog. I will be following it regularly and am sure I will learn a lot from it.
Back to top
View user's profile Send_private_message 
Display_posts:   Sort by:   
Page 1 of 1 Posts_count  
Post_new_topic   Reply_to_topic View_previous_topic :: View_next_topic
 Forum index » Taking the Puppy out for a walk » Announcements
Jump to:  

Rules_post_cannot
Rules_reply_cannot
Rules_edit_cannot
Rules_delete_cannot
Rules_vote_cannot
You cannot attach files in this forum
You can download files in this forum


Powered by phpBB © 2001, 2005 phpBB Group
[ Time: 0.0681s ][ Queries: 11 (0.0077s) ][ GZIP on ]