News for December 2007

RSS, Atom & RDF Date Parsing in Magpie RSS

Date formatting for Magpie RSS. This bit of code is simply to verify the date on the posts using the RSS Feeds within the database. I had a hard time converting the RFC822 date over to ISO8601 but I had fun doing it. I’m also sure that I’ll go back and clean the code even more…

I’m planning on implementing it within the next few days to stop the blogs that do not update thier site but update the list. This isn’t the remedy but it’s the only thing that I can do at the moment. Within the next few months I’ll try to implement an automatic RSS Feed update for the entire directory. Something I’ve tried to program before but to no avail… The database is huge and in order to cache the files that it needs to sort, it gets hung up once it gets past 100 Feeds…

$x=0;
$today_date = time();
$now = date("m.d.y h:m", $today_date);

$nm='';
$nm.= $now[0];
$nm.= $now[1];

$nd='';
$nd.=$now[3];
$nd.=$now[4];

$published=$item['published'];
if ($published != '')
{
$x=1;
}

$published2=$item['pubdate'];
if ($published2 != '' && $x == 0)
{
$published2 = date("m.d.Y h:i:s a", strtotime($published2));
$x=2;
}

$published3=$item['dc']['date'];
if ($published3!= '' && $x == 0)
{
$x=3;
}

$published4=$item['itemposttime'];
if ($published4!= '' && $x == 0)
{
$x=4;
}

$published5=$item['issued'];
if ($published5!= '' && $x == 0)
{
$x=5;
}

if($x==1)
{

$ampm='am';
$m='';
$m.= $published[5];
$m.= $published[6];

$d='';
$d.=$published[8];
$d.=$published[9];

$y='';
$y.=$published[0];
$y.=$published[1];
$y.=$published[2];
$y.=$published[3];

$h='';
$h.=$published[11];
$h.=$published[12];

if ($h>12)
{
$h=$h-12;
$ampm='pm';
}

$h.=":";
$h.=$published[14];
$h.=$published[15];
$h.=$ampm;

}

if($x==2)
{
$ampm='am';
$m='';
$m.= $published2[0];
$m.= $published2[1];

$d='';
$d.=$published2[3];
$d.=$published2[4];

$y='';
$y.=$published2[6];
$y.=$published2[7];
$y.=$published2[8];
$y.=$published2[9];

$h='';
$h.=$published2[11];
$h.=$published2[12];

if ($h>12)
{
$h=$h-12;
$ampm='pm';
}

$h.=":";
$h.=$published2[14];
$h.=$published2[15];
$h.=$ampm;
}

if($x==3)
{
$ampm='am';

$m='';
$m.= $published3[5];
$m.= $published3[6];

$d='';
$d.=$published3[8];
$d.=$published3[9];

$y='';
$y.=$published3[0];
$y.=$published3[1];
$y.=$published3[2];
$y.=$published3[3];

$h='';
$h.=$published3[11];
$h.=$published3[12];
if ($h>12)
{
$h=$h-12;
$ampm='pm';
}
$h.=":";
$h.=$published3[14];
$h.=$published3[15];
$h.=$ampm;
}

if ($x==4)
{
$ampm='am';

$m='';
$m.= $published4[5];
$m.= $published4[6];

$d='';
$d.=$published4[8];
$d.=$published4[9];

$y='';
$y.=$published4[0];
$y.=$published4[1];
$y.=$published4[2];
$y.=$published4[3];

$h='';
$h.=$published4[11];
$h.=$published4[12];
if ($h>12)
{
$h=$h-12;
$ampm='pm';
}
$h.=":";
$h.=$published4[14];
$h.=$published4[15];
$h.=$ampm;
}

if ($x==5)
{
$ampm='am';

$m='';
$m.= $published5[5];
$m.= $published5[6];

$d='';
$d.=$published5[8];
$d.=$published5[9];

$y='';
$y.=$published5[0];
$y.=$published5[1];
$y.=$published5[2];
$y.=$published5[3];

$h='';
$h.=$published5[11];
$h.=$published5[12];
if ($h>12)
{
$h=$h-12;
$ampm='pm';
}
$h.=":";
$h.=$published5[14];
$h.=$published5[15];
$h.=$ampm;
}

if($d!='')
{$old_post=$d;
}
else
{$old_post=$nd-3;
}
$yesterday=$nd-2;

blah blah blah...

Have fun copying and pasting :D

Oh! and if you think you can make the code better, knock yourself out… I’m open to ideas…

Posted: December 24th, 2007
Categories: Blogs Dominicanos
Tags:
Comments: No Comments.

Es Blogico…

Blogico.netA traves del tiempo vamos conociendo diferente personalidades que comparten el mismo espacio de la blogosfera… Una de las personalidades que eh llegado a conocer por este medio es Alex Perez.

Compartimos en varias ocaciones de coros y una vez fuimos a jugar billar por los lado de Queens. Supuestamente… casi se caga en el camino… yo no le pude verificar.

Pero nada… solo queria felicitarte por la gran persona que eres y agradesco todo lo que has compartido con nosotros. I’ll be joining you soon…

Posted: December 18th, 2007
Categories: Es Mi Vida
Tags:
Comments: 2 Comments.

Blog Rating using Masuga Designs’ Unobtrusive Ajax Star Rating

So here’s the scoop on the open source script that I used for our Blog Rating.

Masuga Design Unobtrusive Ajax Star Rating.

This is a rating bar script done with PHP and mySQL that allows users to rate things like can be done on Netflix or Amazon, all web 2.0-like with no page refresh. It is a major improvement on the previous version because it is now unobtrusive, meaning that if Javascript is off it will still work…

There are other sites using this script such as Design Fest, CSSRemix, and Sci Talks.

They’ve all modified the stars and the script… I don’t know who can simply plug and play other then a Word Press plug-in for rating posts or similar rating scripts with one line of code.

I opted for these files because it was using php and interacting with MYSQL database info. All of which was incorporated into our current database. I had to modify my current function which creates the list of recently updated blogs with the rating function.

Total amount of time playing with the code was about 12 hours… on and off for 5 weeks… I finally sat down and re-wrote the function today.

The one thing that I have noticed before is that in any Internet Explorer older than version 7.0, the stars do not appear correctly. Perhaps that is my CSS file but I’m not messing with it anymore.

One of these days I’ll re-launch the option to create your own wordpress blog on BlogsDominicanos. I need to clean that old database and work on the files again…

Posted: December 16th, 2007
Categories: Blogs Dominicanos, Programing
Tags:
Comments: 2 Comments.

Analizando la blogosfera Dominicana

Con un promedio de 500 respuestas que sigue creciendo día a día, me toca analizar los resultados cuando llegue el tiempo. Me parece sorprendente que aun publicado en Remolacha.net y Blogs Dominicanos, la forma que tuve mejor comunicación con aquellos que participaron fue vía email. Cosa que me lo encontré raro… pero exitoso de toda manera.

Ahora, si participaron en la encuesta recuerden que habían preguntas con respuestas abierta para que ustedes expresaran lo que querían… Le puedo decir que las respuestas varean de todo un poco.

Un ejemplo… Que pasos tomarías para cambiar/mejorar la blogosfera?

Que hubieran mejores portales hacia los blogs en español; por ejemplo, que el portal de entrada a blogs dominicanos incluyera una selección de los más leídos, de los más recientes, los más interesantes — como si fuera una revista que enlazara a blogs

Tratar de que no se repitieran tanto las mismas noticias, aunque cuando sean de importancia, si es necesario. Cada blog tiene sus lectores, aunque sean un chin, pero hay una repetidera molestosa y algunos quieren ser chistosos sin poder, poniendo titulos con faltas ortográficas o muy vulgares.

Estas respuestas tendré que agrupar las de una manera sencilla ya que son parecida a otras pero con diferente palabras.

Ahora, esto es en nuestra blogosfera… y en la blogosfera de España, México, Perú, Colombia, Puerto Rico, Nicaragua, Ecuador… etc… cuales serán los pensamientos de aquellos bloggers que actualizan su bitácoras?

Por lo que eh leído en algunas de esas bitácoras puedo decir que hablan mas o menos de lo que se habla en nuestra. Pero por que estamos tan desalojado de uno y el otro? Sera la falta de ortográfica de nuestra/mi parte, el lenguaje con la que escribimos/escribo, o sera el estereotipo que nos hemos puesto, o simplemente sera porque yo no leo aquellos que están en esas blogosfera?

Me parece que los españoles toman la blogosfera un poco mas en serio que otros y que han podido utilizar la blogosfera como un espacio de proyectar sus ideas para mejorar la tecnología, el diseño gráfico, y su cultura.

Tendré que ser maestro del intercambio cibernautico o un psicólogo para poder dar la respuesta correcta. Tal ves pueda ser que los profesionales que utilizan sus bitácoras para proyectar su imagen de profesional no les interesa la vida de otro. O tal ves uno mismo a escrito un post que no le cae bien. Quizá no tiene nada que ver uno con el otro.

Al fin, aquellos bloggers que son bien conocido comparten lo mismo que compartimos todo… historias, fotos, cuentos, y su cultura… solo me queda en estar interesado en lo que escriben y de cambio nos haremos amigos.

Posted: December 14th, 2007
Categories: Blogs Dominicanos
Tags:
Comments: No Comments.

A Christmas Tree!

gar4.gif (more…)

Posted: December 14th, 2007
Categories: Garfield
Tags:
Comments: No Comments.

Christmas Shopping…

gar1.gif
(more…)

Posted: December 14th, 2007
Categories: Garfield
Tags:
Comments: No Comments.

Edwin Reyes – Acercade

Ya que yo en verdad no me dejo conocer, aquí va un poco de mi y un poco de lo que yo hago en el trabajo… and this was just to create my about page since I don’t have one…

Por lo pronto soy estudiante de ingeniería eléctrica de la Universidad NJIT, programador, fundador de Blogs Dominicanos, contribuidor invitado de Remolacha.net, hijo, hermano, primo, sobrino y buen amigo. Nací en Bonao en el año 1979 y a los 3 meses de nacer, mi familia emigró a EE.UU. Actualmente resido en New Jersey. Mi conocimiento de programación PHP es puramente derivado por mi curiosidad de aprehender el lenguaje de PHP y el conocimiento de C++.

Mi trabajo constituye de la programación de PLC utilizando el programa de Rockwell Software para Allen Bradley. Ahí si que soy un verdugo… Proyectos que yo e implementado:

  1. Programación de pantallas PanelView y PanelView Plus
  2. Programación de SLC5/02/03/04/05
  3. Programación de Contrologix
  4. Programación de Flex Logix
  5. Programación de networks
  6. DH+
    Ethernet
    DeviceNet

  7. Pantallas con analice de producción
  8. Reportajes de producción para la empresa
  9. DDE
    OPC

  10. Medra y eficiencia de producción utilizando programación

Actualmente manejo un equipo de 16 empleados de la empresa Cadbury Schweppes en el departamento de Mantenimiento junto a las responsabilidades de programación que ya eh mencionado. Mi experiencia en la área de ingeniería eléctrica y programación de PLC están basada en 8 años trabajando en esta área junto a mis estudios.

Sobre la blogosfera Dominicana y ser un blogger… solo puedo repetir lo que mas me llega a la mente…

En la blogosfera se lee, se aprende y se comparte.

Si desean leer mas sobre la blogosfera Dominicana pueden pasar por nuestro blog de noticas @ Blogs Dominicanos o pueden ir conociendo uno de los mil y pico de bloggers en nuestro directorio.

Posted: December 12th, 2007
Categories: Es Mi Vida
Tags:
Comments: No Comments.

Crónica de eventos en la blogosfera Dominicana

Así es, estoy por crear una data base de los eventos que se a llevado a cabo en la blogosfera Dominicana. Me parece ser algo difícil de hacer… aqui esta una razón.

Mucho detalles en cada entrada. Los detalles están excelente porque des de esa entrada puedo leer las entradas de otros bloggers y así por el estilo. Las crónicas de eventos serán publicada en Blogs Dominicanos al estilo de archivos por fecha.

Hoy pase un buen tiempo navegando por 5 blogs y encontré mas de 200 eventos/entradas que yo consideraría relativo. Son muchos los eventos que pasan en nuestra blogosfera mensualmente… por si no lo sabían… ah! y eso que no e pasado por Remolacha.net todavia…

La vida del blogger Dominicano es normal… no creo que es diferente al que no tiene un blog. Algunos publican todo lo que le ocurre en 1 día, otros apena escriben poemas o repiten lo que leyeron en Remolacha.net con su propia opinión del articulo que enlazaron… Cifras que al fin de la encuesta publicare.

Pensándolo bien estoy un poco alojado de la blogosfera y quizá esta son iniciativas que tomo como forma de informarme yo mismo de lo que esta pasando. Obviamente lo hago para los demás también porque quien se va a poner a programar un formulario a las 8 de la noche y estar fuñiendo hasta las 2 de la mañana. Yo nada mas. Que bien… así que, si ustedes pueden ayudar a crear esta data base se lo agradezco.

Posted: December 12th, 2007
Categories: Blogs Dominicanos
Tags:
Comments: No Comments.

UnOrthodox Form of Writing and Planning

The bad new is that I’ve been thinking… (yeah I know me thinking is a bad thing…) about everything I do to be quite unorthodox. The good news is that I know it is unorthodox. My question to you is… aren’t we all unorthodox?

Posted: December 9th, 2007
Categories: Es Mi Vida
Tags:
Comments: 1 Comment.

Encuesta de Blogs Dominicanos Pt II

As many of you may or may not know already, I published the second round of questions for my survey. I think that the results of the surveying should be interesting. I plan on publishing the results towards the beginning of next year… So for those that are anxiously waiting to read something about it, please be patient.

The blog rating has been a pain in the ass… The function needs to create a php function that will generate the stars as the page opens. But since I am already in a function I can’t echo the php code in order to populate the star rating.

However I can display the results which is a good thing. I just need to decide how I want to display the star rating if thats the case… Perhaps I’m just making it more complicated the it really is. I’m sure that the programming of the function to echo the php code can be integrated into the function that displays the list. That would be quite a lengthy function and I’m not too sure if it would execute as efficiently. Not to mention that I would have to hack the code that the star rating uses in order to include it into my function.

If you want a hack at it let me know…

Posted: December 9th, 2007
Categories: Blogs Dominicanos, Programing
Tags:
Comments: 3 Comments.

Did you get the Non Profits’ Tax ID Number?

All non profits have a tax ID number. You should ask for it when you make any type of donation so you can use it when you file your taxes. I don’t want any complications when I file next year for this year. Needless to say I’m holding off on any of that right now.

This will be the last time I change the design on my blog. I may change the colors but I like the layout a whole lot more then the other designs. It’s clean and simple… not as simple or clean as White Milk but…

Posted: December 9th, 2007
Categories: Programing
Tags:
Comments: No Comments.