with trial&error i came up with a quite complicated patch for the task to convert a MAC addres in the form 00-ab-7d- etc into it's equivalent without the '-' character.
any comment is welcomed
rolf
#N canvas 104 217 569 343 10; #X obj -94 16 symbol2list -; #X obj -75 125 makefilename %.2s; #X obj -94 45 list-drip; #X obj -55 103 makefilename %.02d; #X obj -108 163 symbol; #X obj -94 74 t b a a; #X obj -39 164 t l; #X obj -129 223 list; #X obj -129 269 list2symbol; #X obj -108 190 list prepend; #X msg -66 243 symbol; #X obj -66 217 loadbang; #X obj -23 76 s end_drip; #X obj -185 185 r end_drip; #X obj -129 304 print; #X text -22 242 -- get rid of the blanks; #X msg -94 -12 symbol 00-11-ab-7d-85-04; #X text 64 98 --makefilename %.2d: in case of a number restores leading zero , in case of a symbol gives a zero.; #X text 23 139 --makefilename %.2s:in case of a number no output , in case of a symbol overwrites the unwanted zero.; #X text 68 -14 --example of the expected input; #X connect 0 0 2 0; #X connect 1 0 4 1; #X connect 2 0 5 0; #X connect 2 1 12 0; #X connect 3 0 4 1; #X connect 4 0 9 0; #X connect 5 0 4 0; #X connect 5 1 1 0; #X connect 5 2 3 0; #X connect 6 0 9 1; #X connect 7 0 8 0; #X connect 8 0 14 0; #X connect 9 0 6 0; #X connect 9 0 7 1; #X connect 10 0 8 1; #X connect 11 0 10 0; #X connect 13 0 7 0; #X connect 16 0 0 0;
Le 2011-11-04 à 17:44:00, rolf meesters a écrit :
with trial&error i came up with a quite complicated patch for the task to convert a MAC addres in the form 00-ab-7d- etc into it's equivalent without the '-' character.
Two solutions, a long one using [gf/l2s] and [gf/s2l] (which Roman calls « not practical »), and a shorter one using [gf/string_replace].
#N canvas 0 0 450 184 10; #X msg 6 -2 symbol 00-11-ab-7d-85-04; #X obj 6 18 gf/s2l -; #X obj 6 38 gf/l2s; #X msg 61 38 symbol; #X obj 61 18 loadbang; #X obj 6 58 print; #X msg 6 88 symbol 00-11-ab-7d-85-04; #X obj 6 108 gf/string_replace -; #X obj 6 128 print; #X text 107 38 symbol message without symbol means empty string; #X connect 0 0 1 0; #X connect 1 0 2 0; #X connect 2 0 5 0; #X connect 3 0 2 1; #X connect 4 0 3 0; #X connect 6 0 7 0; #X connect 7 0 8 0;
| Mathieu BOUCHARD ----- téléphone : +1.514.383.3801 ----- Montréal, QC
just for who's interested, i found a bit more simple way, at least in logic, for my specific 'problem': using s2l in such a way that it breaks up the input into single characters, then with [select -] filtering out this unwanted character. (see patch) no leading zero's to worry about.
thanks Mathieu for your pointing out of GridFlow. by the way, a search for gridflow on the Pd-site, returns with a number of broken links. i gad to google for it.
rolf
#N canvas 392 162 569 343 10; #X msg 51 -29 symbol 00-11-ab-7d-85-04; #X text 206 -18 --example of the expected input; #X msg 114 24 symbol; #X obj 114 -2 loadbang; #X obj 51 108 select -; #X obj 165 122 t l; #X obj 75 181 list; #X obj 75 227 list2symbol; #X obj 96 148 list prepend; #X msg 138 201 symbol; #X obj 138 175 loadbang; #X obj 19 143 r end_drip; #X text 182 200 -- get rid of the blanks; #X obj 75 262 print b; #X obj 51 76 list-drip; #X obj 116 99 s end_drip; #X obj 51 45 symbol2list; #X text 154 25 --causes s2l to break the symbol into single characters ; #X connect 0 0 16 0; #X connect 2 0 16 1; #X connect 3 0 2 0; #X connect 4 1 8 0; #X connect 5 0 8 1; #X connect 6 0 7 0; #X connect 7 0 13 0; #X connect 8 0 5 0; #X connect 8 0 6 1; #X connect 9 0 7 1; #X connect 10 0 9 0; #X connect 11 0 6 0; #X connect 14 0 4 0; #X connect 14 1 15 0; #X connect 16 0 14 0;
Le 2011-11-05 à 21:25:00, rolf meesters a écrit :
thanks Mathieu for your pointing out of GridFlow. by the way, a search for gridflow on the Pd-site, returns with a number of broken links. i gad to google for it.
I don't normally use http://puredata.info/ ... some people have written stuff in there, but I don't necessarily know about it or know how to update it.
Well, I just added GridFlow 9.13 (february 2011) as a «new release»...
And I wrote a note saying the «online manual» is no more and that it has been replaced by helpfiles two years ago.
Then there is a search result pointing to something written by zmoelnig in mi-2007, but clicking on it redirects to the generic page for all software (??). That's a problem with the search-tool, not with the content.
I only found one broken link (not counting the search-tool problem). Where are the others ?
| Mathieu BOUCHARD ----- téléphone : +1.514.383.3801 ----- Montréal, QC
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1
On 2011-11-06 16:56, Mathieu Bouchard wrote:
Then there is a search result pointing to something written by zmoelnig in mi-2007, but clicking on it redirects to the generic page for all software (??). That's a problem with the search-tool, not with the content.
could you point to the relevant page (that links to the broken result)?
fgmasdr IOhannes
Le 2011-11-07 à 12:54:00, IOhannes m zmoelnig a écrit :
On 2011-11-06 16:56, Mathieu Bouchard wrote:
Then there is a search result pointing to something written by zmoelnig in mi-2007, but clicking on it redirects to the generic page for all software (??). That's a problem with the search-tool, not with the content.
could you point to the relevant page (that links to the broken result)?
3rd result of http://puredata.info/search?SearchableText=gridflow
« GridFlow [92%] by zmoelnig, 2007-05-06 09:22 PM A Multidimensional dataflow processing library for PureData/Ruby/jMax, designed for interactive multimedia »
The jMax part of it had already been removed by 2005, and the Ruby part of it has been removed in 2008 (except compile-time), and the corresponding puredata.info has been removed too but I don't know when, and it still pops up in search results.
| Mathieu BOUCHARD ----- téléphone : +1.514.383.3801 ----- Montréal, QC
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1
On 2011-11-10 17:33, Mathieu Bouchard wrote:
Le 2011-11-07 à 12:54:00, IOhannes m zmoelnig a écrit :
On 2011-11-06 16:56, Mathieu Bouchard wrote:
Then there is a search result pointing to something written by zmoelnig in mi-2007, but clicking on it redirects to the generic page for all software (??). That's a problem with the search-tool, not with the content.
could you point to the relevant page (that links to the broken result)?
3rd result of http://puredata.info/search?SearchableText=gridflow
« GridFlow [92%] by zmoelnig, 2007-05-06 09:22 PM A Multidimensional dataflow processing library for PureData/Ruby/jMax, designed for interactive multimedia »
thanks. fixed.
fgmasdr IOhannes
On 11/10/2011 07:46 PM, Mathieu Bouchard wrote:
Le 2011-11-10 à 18:33:00, IOhannes m zmoelnig a écrit :
thanks. fixed.
What was the problem ? (Why did it appear ?)
the problem was, that "/download" get's redirected to the software center at /community/projects/software via apache, while at the same time there is still some content hidden in the directory /projects/
the search engine - not being aware of the redirect - displayed results that couldn't be reached due to the redirect.
the obvious fix was to remove the shadowed content.
gfmasdr IOhannes
On Nov 11, 2011, at 7:44 AM, IOhannes zmölnig wrote:
On 11/10/2011 07:46 PM, Mathieu Bouchard wrote:
Le 2011-11-10 à 18:33:00, IOhannes m zmoelnig a écrit :
thanks. fixed.
What was the problem ? (Why did it appear ?)
the problem was, that "/download" get's redirected to the software center at /community/projects/software via apache, while at the same time there is still some content hidden in the directory /projects/
the search engine - not being aware of the redirect - displayed results that couldn't be reached due to the redirect.
the obvious fix was to remove the shadowed content.
That reminds me, can we make that apache rewrite rule for /downloads could also work for things like:
http://puredata.info/downloads/many http://puredata.info/downloads/Gem
I'm happy to write the rule if you send me the existing one.
.hc
¡El pueblo unido jamás será vencido!
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1
On 2011-11-11 17:10, Hans-Christoph Steiner wrote:
I'm happy to write the rule if you send me the existing one.
thanks for the offer. it should be fixed now.