| Author |
Message |
technosaurus

Joined: 18 May 2008 Posts: 3843
|
Posted: 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)
_________________ Puppy Web Desktop Now with pet packages - Pet Packaging 100 & 101
|
|
Back to top
|
|
 |
sc0ttman

Joined: 16 Sep 2009 Posts: 2173 Location: UK
|
Posted: Wed 02 Nov 2011, 12:35 Post subject:
|
|
brilliant!
_________________ Akita Linux, VLC-GTK, Pup Search, Pup File Search
|
|
Back to top
|
|
 |
Béèm

Joined: 21 Nov 2006 Posts: 11782 Location: Brussels IBM Thinkpad R40, 256MB, 20GB, WiFi ipw2100. Frugal Lin'N'Win
|
Posted: 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
|
|
 |
BarryK
Puppy Master

Joined: 09 May 2005 Posts: 6855 Location: Perth, Western Australia
|
Posted: 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/blog2/
|
|
Back to top
|
|
 |
technosaurus

Joined: 18 May 2008 Posts: 3843
|
Posted: 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?
_________________ Puppy Web Desktop Now with pet packages - Pet Packaging 100 & 101
|
|
Back to top
|
|
 |
zigbert

Joined: 29 Mar 2006 Posts: 5240 Location: Valåmoen, Norway
|
Posted: 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
Thank you
Sigmund
_________________ Stardust resources
|
|
Back to top
|
|
 |
JohnMurga
Site Admin

Joined: 04 May 2005 Posts: 581 Location: Far to the east
|
Posted: 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
|
|
 |
L18L
Joined: 19 Jun 2010 Posts: 1696 Location: Burghaslach, Germany
|
Posted: 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
# |
Sorry if I have derailed your thread, but your explanation has caused it, so take it as a big compliment please
|
|
Back to top
|
|
 |
Tman

Joined: 22 Jan 2011 Posts: 731 Location: Toronto
|
Posted: 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
|
|
 |
|