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 Sun 23 Nov 2014, 01:15
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 [9 Posts]  
Author Message
technosaurus


Joined: 18 May 2008
Posts: 4376

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 poster's website 
technosaurus


Joined: 18 May 2008
Posts: 4376

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: 5785
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 poster's 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 poster's website 
L18L

Joined: 19 Jun 2010
Posts: 2574
Location: Moved from Hosla to www.eussenheim.de

PostPosted: Thu 10 Nov 2011, 15:57    Post subject: localizing shell scripts without bashisms, gettext or ... an
Subject description: 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 from previous:   Sort by:   
Page 1 of 1 [9 Posts]  
Post new topic   Reply to topic View previous topic :: View next topic
 Forum index » Taking the Puppy out for a walk » Announcements
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.0648s ][ Queries: 11 (0.0039s) ][ GZIP on ]