Do they belong to you? Claim these comments.
rolandog
Is this you? Claim Profile »
3 years ago
in Blogging… delayed on Pervasive Smothering
Beto, no le podrías haber atinado más adentro (inclusive sin churruspear tantito).
Dilbert es la mamada. Gracias por el recurso.
Dilbert es la mamada. Gracias por el recurso.
3 years ago
in MSN Spaces, Too Firefox Friendly? on Pervasive Smothering
Jajaja, vaya JP... veo que tienes muchos antiviruses, antipopups y antispywares... yo... adivina cuantos uso?
NINGUNO!
Solo uso Firefox... pero pues, bastante 'customized', de hecho tengo que hacer un post con las extensiones que ando usando, que de veras que les pueden servir a más de uno.
NINGUNO!
Solo uso Firefox... pero pues, bastante 'customized', de hecho tengo que hacer un post con las extensiones que ando usando, que de veras que les pueden servir a más de uno.
3 years ago
in True Dynamic Element Object Creation on Pervasive Smothering
Hello Matthias, and thank you for your insightful comment. Your idea of the assembler sounds really intriguing, I'll give it a try and see what I can come up with...
I did spend some time before reading your comment expanding the function, so that it could accept objects and append an onclick event (this last one was unsuccesful).
Here is the formula I came up with: (dropped some conditions, and a for, and went with a while... but your object oriented arguments seem much better
I made some test cases for it (using another modified delicious playtagger)... I'm having trouble with the onclick attribute, I think it might be a mistake of mine... Anyhow, I'm looking for an argument called 'onclick', and I'm inferring the next argument to be a function... so that I can then use the onclick method and pass it a function. Here is the content creation function.
I did however upload the tests with my latests modifications for object creation in xhtml and html...
Though I think I'll head in the direction you've pointed. I'm currently in my polymer chemistry lab, but when I get home I'll give your functions a try... they seem much better. I dunno if I have to leave a statement to declare my code as open source or GPL, but yeah... it is free, and anyone that stops by can pitch in and 'steal' it or improve it.
I did spend some time before reading your comment expanding the function, so that it could accept objects and append an onclick event (this last one was unsuccesful).
Here is the formula I came up with: (dropped some conditions, and a for, and went with a while... but your object oriented arguments seem much better
function crEl() {
function cE(el) { //http://simon.incutio.com/archive/2003/06/15/javascriptWithXML
if (typeof(document.createElementNS) != "undefined") {
return document.createElementNS("http://www.w3.org/1999/xhtml", el);
}
if (typeof(document.createElement) != "undefined") {
return document.createElement(el);
}
return false;
}
var a = arguments; //arguments
var nN = a[0].toLowerCase(); //nodeName
if(nN == "tn") { //creates textNode with first argument after "tn"
var tN = crTN(a[1]);
return tN;
} else if(a.length >= 1 && typeof(a[0]) == "string") {
var tE = cE(nN); //temporary Element
var strs = new Array(); //array to store strings and other stuff
for(var b = 0; b < a.length; ++b) {
var tst = a[b]; //temporary storage
if(typeof(tst) == "object") {
tE.appendChild(tst);
} else {
strs.push(tst); //these can actually be strings, numbers, functions... anything but objects
}
}
a = strs; //new arguments... (after having appended objects, and removed them from the list)
} else {
return a[0]; //in case an object gets passed as the first argument
}
var al = a.length; //length of attribute and value pairs
if(nN == "param") { //this applies for the param element
tE.setAttribute("name", a[1]);
tE.setAttribute("value", a[2]);
} else { //if the main element is not a param element...
var s = 0; //how much to skip after parsing a method
var l = 1;
while(l<al) {
var m = a[l].toLowerCase();
if(m == "tn"){ //this checks for a delcaration of a textNode
var txN = crTN(a[l+1]); // creates a textNode
tE.appendChild(txN); //appends the textNode
s=2;
} else if(m == "param" && (a[l+2])) { //if there is a false attribute called 'param'
var tpm = cE(m); //creates the param
tpm.setAttribute("name", a[l+1]); //param name and name value
tpm.setAttribute("value",a[l+2]); //param value and value value :P
tE.appendChild(tpm);
s=3;
} else if(m == "onclick") {
tE.onclick = a[l+1];
s=2;
} else {
tE.setAttribute(a[l], a[l+1]);
s=2;
}
l+=s;
}
}
return tE; //returns the element
}
function crTN() { //creates a textNode from the first argument.
var tT = arguments[0]; //temporary text
var tTN = document.createTextNode(tT); //temporary text node
return tTN;
}
I made some test cases for it (using another modified delicious playtagger)... I'm having trouble with the onclick attribute, I think it might be a mistake of mine... Anyhow, I'm looking for an argument called 'onclick', and I'm inferring the next argument to be a function... so that I can then use the onclick method and pass it a function. Here is the content creation function.
function cc() { //create content
var id0 = document.getElementById("image"); //where I'm going to place some of the nodes
var id1 = document.getElementById("text");
var id2 = document.getElementById("links");
//Here is an image
var img = crEl("img","src","http://rolandog.com/wp-content/r_g.png","alt","rolandog.com","width","80","height","15");
//The following test appends through three different methods an image...
id0.appendChild(img); //works
document.getElementById("image").appendChild(img); //works
document.getElementById("image").appendChild(crEl("img","src","http://rolandog.com/wp-content/r_g.png","alt","rolandog.com","width","80","height","15")); //fails
//Now we're gonna try some methods of placing text.
var bld = crEl("strong","tn","I like toast... "); //creating bold text
var par = crEl("p","tn","Mmm, toast.",bld) //a paragraph that should have a text node... if it was detected and that appends the bold text
//Now I'll append it
id1.appendChild(par);
//Here is the source of a document and it will be displayed as text/plain
var src = crEl("object","type","text/plain","data","http://rolandog.com/sounds/playtagger.html"); //source for the playtagger.html
//now I'll place it as a child in the id1.
id1.appendChild(src); //maybe I can create fractal documents??
//Now for the links...
var link = crEl("a","href","#","onclick",alert('Hello dudes'),"tn","Hello world.");
id2.appendChild(link); //fails in IE... but it does work... the onclick attribute requires its value to be a function
}
I did however upload the tests with my latests modifications for object creation in xhtml and html...
Though I think I'll head in the direction you've pointed. I'm currently in my polymer chemistry lab, but when I get home I'll give your functions a try... they seem much better. I dunno if I have to leave a statement to declare my code as open source or GPL, but yeah... it is free, and anyone that stops by can pitch in and 'steal' it or improve it.
3 years ago
in This is the post that says ‘Ni’! on Pervasive Smothering
jajaja
A huevo Perea! Tu si sabes que pedo... :-D
A huevo Perea! Tu si sabes que pedo... :-D
3 years ago
in De malas influencias y de I Love Bees on Pervasive Smothering
Of course Mr. Boigen... *puts pinky finger up to mouth and laughs evilishly*
3 years ago
in flOw, the Game on Pervasive Smothering
Mirabai, you might have outsmarted me in my evil plan to put humanity under the influence of addictive videogames...
But I assure you... the next time I will succeed!!!!
But I assure you... the next time I will succeed!!!!
3 years ago
in Space is big on Pervasive Smothering
Y'know Deletedsoul... you're right,... and when you're right you're right... And you... you're always right! :-D
I've always felt dwarfed by the mysteries around us... I only wish I could transcend by understanding them...
I've always felt dwarfed by the mysteries around us... I only wish I could transcend by understanding them...
3 years ago
in MSN Spaces, Too Firefox Friendly? on Pervasive Smothering
Oh, I forgot to say I will certainly be visiting your blog... Mirabai.
3 years ago
in MSN Spaces, Too Firefox Friendly? on Pervasive Smothering
Estoy de acuerdo contigo 'Mando... y q bueno que arreglaste tus ligas... que el pelo se despeinaba... jajajaja ahh que chistoso soy vdd?
Thanks for stopping by, Mirabai. Indeed, the new version of MSN is invite-only and I guess they're just trying the new trend in marketing... this trend was somehow already told in a <cite>South Park</cite> Episode :-)
I think maybe Gmail is guilty of making this a fast way of getting users... also Newsvine was, for a time, an invite-only club.
Thanks for stopping by, Mirabai. Indeed, the new version of MSN is invite-only and I guess they're just trying the new trend in marketing... this trend was somehow already told in a <cite>South Park</cite> Episode :-)
[Hell's Pass Hospital, day. The doctor has been in to see Kyle's recovery progress and is now talking to the parents]
Sheila: Isn't he getting any better, doctor?
Doctor: I don't understand it. He's not fighting the infected hemorrhoid at all. It's like he... like he's lost all hope. Well if you'll excuse me, I've got more tests to run. [leaves. The TV monitor is seen, with a picture of a financial program]
Announcer: And now back to Money Quest, on HBC.
Host 1: [Camera zooms in on the two hosts] Welcome back to Money Quest. [Kyle looks at the show] In just over two weeks, young financial genius Eric Cartman [his picture appears on the screen behind the hosts] has managed to turn a theme park that was seeing less than a hundred attendees a day into a thriving park with attendance in the thousands.
Host 2: And the way he did it is with the brilliant "You Can't Come" technique. For the first several days, the young businessman saturated the market with the claim that nobody could get into his park. It made the public crazy. So then, weeks later, when he opened the doors, they were lining up around the block. Simply amazing.
Host 1: Well, ahah I thnk we should point out that this technique is already being applied by businesses all over the country.
[At a restaurant where all the tables are empty and everyone is waiting in line...]
Waitress: I'm sorry, we're no longer taking reservations. Nobody can eat here. You'll have to leave now.
[At the Bijou, where everyone is waiting outside....]
Clerk: No, I'm sorry. You can't see this movie. Nobody can see this movie. I can't even go in.
[At Gracy's clothing store, a sales associates barks orders...]
Associate: [the shoppers rush out of there] Out! Nobody is allowed into Gracy's anymore! Get out of here! [kicks the last shopper out]
[Back to Money Quest...]
Host 1: Amazing. Eric Cartman is surely the financial genius of our time.
I think maybe Gmail is guilty of making this a fast way of getting users... also Newsvine was, for a time, an invite-only club.
3 years ago
in MSN Spaces, Too Firefox Friendly? on Pervasive Smothering
Hola Lula... no te apures por el mal inglich, que yo precisamente para no sentirme oxidado, me dedico un poco a 'bloggear'...
Y, pues para nada... siempre he pensado que la cortesía y caballerosidad siempre causan buenas impresiones en las damas... ;) jajaja
Y acerca de lo de msn spaces, depende de la versión de Firefox que tengas... la más reciente creo que es 1.5.0.1, te sugiero que lo actualices. La otra es que quizás sea un error de Firefox en la plataforma que usas (es Windows XP? ME? 2000? 98?)
De hecho pronto haré un 'write-up' de las mejores extensiones para Firefox, para que todos puedan tener la mejor de las experiencias.
Pero bueno, si quieres escríbeme a mi correo rolandog@gmail.com... y a lo mejor te puedo ayudar.
Bueno, Lula... Muchas gracias por visitar, y por comentar. Nos estaremos 'leyendo' pronto :-D.
Y, pues para nada... siempre he pensado que la cortesía y caballerosidad siempre causan buenas impresiones en las damas... ;) jajaja
Y acerca de lo de msn spaces, depende de la versión de Firefox que tengas... la más reciente creo que es 1.5.0.1, te sugiero que lo actualices. La otra es que quizás sea un error de Firefox en la plataforma que usas (es Windows XP? ME? 2000? 98?)
De hecho pronto haré un 'write-up' de las mejores extensiones para Firefox, para que todos puedan tener la mejor de las experiencias.
Pero bueno, si quieres escríbeme a mi correo rolandog@gmail.com... y a lo mejor te puedo ayudar.
Bueno, Lula... Muchas gracias por visitar, y por comentar. Nos estaremos 'leyendo' pronto :-D.
3 years ago
in Spore, un juego ‘evolucionario’ on Pervasive Smothering
De hecho me tomé la foto... pero no la de bandera, pues tuve que ir al labo de polímeros a hacer unas pruebas... después me tuve que ir a un taller del IDE, en Montereal... de ahí fui a comer en friega a mi casa y de vuelta al tec.
Lo bueno es que no se llevó a cabo una junta de las 5 ... así que salí temprano, pero estuvo de flojera estar desde la mañana en friega.
eRreGé
Lo bueno es que no se llevó a cabo una junta de las 5 ... así que salí temprano, pero estuvo de flojera estar desde la mañana en friega.
eRreGé
3 years ago
in Spore, un juego ‘evolucionario’ on Pervasive Smothering
Jajaja, sorry por 'aprobar' hasta ahorita tu comentario JP. Me vas a agarrar de zapes... jajaja
Pero weeeeno. De hecho es cierto... este tipo dijo bastante eso de 'procedural'. Tsk tsk tsk. Y lo de sentirse pequeño... a todos nos pasará... ya sea el video ese, o el videojuego este.
Pero weeeeno. De hecho es cierto... este tipo dijo bastante eso de 'procedural'. Tsk tsk tsk. Y lo de sentirse pequeño... a todos nos pasará... ya sea el video ese, o el videojuego este.
3 years ago
in Spore, un juego ‘evolucionario’ on Pervasive Smothering
Jajaja, a huevo 'Mando. De hecho yo necesito agarrar un high con vitamina C. jajaja. Nunca te ha pasado que tienes gripa así de que como más de un mes seguido?? Esque ya me debía de haber curado, pero como me he desvelado, no me he recuperado.
3 years ago
in Que hueva ylv on Pervasive Smothering
Hola, mi estimada Laurix... disculpa que no haya aprovado tu comentario de inmediato (anduve ocupado la última semana)... pero me da gusto que me hayas encontrado así...
Para responder tu pregunta, no somos chapines... de hecho (en orden de comentarios) somos: regio, "san dieguense", regio, regio y chapina perdida en holanda. ;-).
Te envidio de momento... que de veras que necesito una cerveza pero ya! ... y eso que son las cuatro y media de la tarde.
Saludos y me da gusto que hayas decidido comentar. Ahorita mismo te envío esta respuesta por correo. Nuevamente, disculpa las medidas que he tomado (de aprovar comentarios antes de mostrarlos... ya que no sabes cuantos spammers hay por ahi).
Para responder tu pregunta, no somos chapines... de hecho (en orden de comentarios) somos: regio, "san dieguense", regio, regio y chapina perdida en holanda. ;-).
Te envidio de momento... que de veras que necesito una cerveza pero ya! ... y eso que son las cuatro y media de la tarde.
Saludos y me da gusto que hayas decidido comentar. Ahorita mismo te envío esta respuesta por correo. Nuevamente, disculpa las medidas que he tomado (de aprovar comentarios antes de mostrarlos... ya que no sabes cuantos spammers hay por ahi).
3 years ago
in Evil Eyeing is Fun on Pervasive Smothering
Gracias gracias... yo de hecho no tuve oportunidad de ir... he estado bastante ocupado.
3 years ago
in Redesign - Compliance Theme v0.1 on Pervasive Smothering
Gracias Miguel. De hecho tengo pensado hacer una versión con imágenes,... pero ando algo ocupado por el momento. Algún día llegará en el que me pueda dedicar tiempo a mi pasatiempo... pero por ahora no hay tiempo que pasar. :-(
3 years ago
in Redesign - Compliance Theme v0.1 on Pervasive Smothering
Heh, indeed. I was actually more preoccupied about XHTML validation... and compatibility. The only browser I couldn't get working was IE 5.2 or something in a friend's Mac notebook. Then again IE6 is giving me a hard time with that glitch.
3 years ago
in Que hueva ylv on Pervasive Smothering
Jajaja, creo que Oso nos está diagnosticando bien, sin embargo... no está de más que luego El Hipocrático nos de una segunda opinión XD. Pero pues, no está de más echarnos un descansito sin moderación...
betote, me cae que tienes razón... ahorita ando bajando más lento, pintaba que iba viento en popa, pero quien está compartiendo los archivos no puso 'super-seed'...
Sin embargo me da miedo meterme a Usenet... se que me volvería un adicto teniendo tanto acceso a tanta información!! Como evidencia, este 'chiste'.
betote, me cae que tienes razón... ahorita ando bajando más lento, pintaba que iba viento en popa, pero quien está compartiendo los archivos no puso 'super-seed'...
Sin embargo me da miedo meterme a Usenet... se que me volvería un adicto teniendo tanto acceso a tanta información!! Como evidencia, este 'chiste'.
3 years ago
in Happy F*ing Holidays, Kids on Pervasive Smothering
Nope, not much at all... but I did consider it important not to link to my old filehosting account (one in t35 with pop-ups and stuff). I didn't want you guys to have a bad experience with a link. Call it a 'considerate' plug: relevant and not offtopic. Besides, I don't have any ads...
3 years ago
in El Tiempo Se Va Volando on Pervasive Smothering
Jajaja, pues no sugiero que lo escuches... está muy 'LAME', y nqv con el post, más bien me fui por un 'test-cast'. Honestamente no tuve ni tiempo de prepararme para echar un buen 'verbo', jajaja.
3 years ago
in De Pastafarianos y Cerveza on Pervasive Smothering
Ha! Great links Oso. Perhaps the little boy was scared of the end of days, also know as Parme-geddon.
A quote from the Holy Book.
Ramen.
A quote from the Holy Book.
Ravioliations: 16:2: "And our Noodley Lord (pbuh) flung His tentacles forth, and all were blinded by his golden sheen, and He said, "Harken, believers; harken those righteous ones among the masses; harken and fear to those whose hearts of pasta have been hardened and made rubbery; harken all mankind, those whose sauce is of fresh tomato and those whose is of canned, for the time will soon come when all will taste the Meatballs of Righteousness, and tremble."
Ramen.