Thursday, October 4, 2012

Que pendejo

12 a.m y aburrido navego la net, aburrido de Twitter, aburrido de Youtube, aburrido de todo. Veo Twitter una vez mas y me doy cuenta de que todas las apps o servicios que hay por ahí para saber que usuarios te han dejado de seguir o te han seguido, no sirven. Así que mi imaginación vuela y me acuerdo de una app que me gustaba un chingo. La Googleo y la encuentro, pero me encontré con la sorpresa de que ya no funcionaba, pero que ponía a disposición el código fuente.

Recorro la pagina y veo un correo de dicho creador. Raudo le mando un e'mail pidiéndole permiso para usar el código original. Me aprueba y busco ayuda con otros tuiteros. Les expongo la idea de hacer una app amigable y no tan complicada con la ilusiono de iniciar una negocio propio.

Mis amigos aceptan y se comienza la construcción de dicho sitio. Hicimos una pagina gratis en Blogger ya que necesitábamos un sitio ilimitado en todo, pero como el código fuente estaba escrito en Java, se decidió hacer una plataforma virtual para montarla en Blogger. Cabe mencionar que "machacamos" el código original para hacerlo mas 2012.

Todo corría al mil, pero nos topamos con códigos en PhP, así que decido llamarle a un amigo en Texas y nos da una mano con la programación en dicho lenguaje. Después de muchos códigos el sitio sigue sin servir. Funcionaba bien, pero no le daba unfollow a las personas que te dejaban de seguir. Me puse a pensar y me acorde de ciertos comandos usados en juegos en linea.

Cabe mencionar que el huevos era super fanático de Halo Combat Evolved y dicho juego te permitía crear servidores con comandos para sacar o banear gente. Busco mis blocs de notas viejos y decido exportar dichos blocs a Blogger. Los ponemos y después de varios intentos logramos que se juntaran. 

Finalmente el sito corre bien, pero había algo que no nos permitía la entrada automática a la app. Así que se tuve que introducir una cuenta de Twitter manualmente. De todos los que estábamos ahí, el que mas tenia movimiento en la cuenta era yo, el soyhuevos. Pongo mu user y le pongo mi password. Horas después el sitio se sube y corre la app en mi profile. 

Funciona perfectamente, solo teníamos que esperar. Comenzamos a hacer planes sobre publicidad y la manera de cobrar por dicho servicio. Al segundo día, Google me notifica que estábamos usando "privilegios" no autorizados y me dice que los tenemos que arreglar. La verdad es que en los próximos días olvido el e'mail de Google y me concentro en el planeamiento del servicio.

Al quinto día, Google me suspende Blogger por no quitar la maquina virtual en la que se corría el sitio, ya que argumentaba que solo se usaban los servicios de Blogger como un sitio ilimitado de almacenamiento. Lo cual estaba en lo correcto. Después de 12 horas de buscar un nuevo "host" se me cancela el blog ademas de que lo "borran" del mundo cibernetico.

No le tome importancia al fin que ya sabíamos como funcionaba y se nos hacia fácil crear otro sitio. El sitio quedo en el olvido por unas semanas hasta que una mañana, despierto y me doy cuenta que había bajado de seguidores. 300 para ser exacto. No le di importancia. Semanas después, osea Miércoles 3 de Septiembre del 2012 para ser preciso. Observo mis seguidores y misteriosamente había bajado 1,300.

Me sobresalte y ahora si le di importancia. Toda la mañana me dedique a buscar el problema, pero no podía hacer mucho ya que me habían borrado el sitio. Solo me quedaban mis copias sin actualizar que tenia en mi computadora. Después de consultar con todos entre ellos mi profe de programación  Llego a la conclusión de que fue el bloc de notas que exporte de Halo a el sitio.

Dicho bloc tenia comandos para sacar o banear gente por medio del ping. Esto es muy común en el mundo "gamer" . Cuando en un juego escribes algo así:


sv_name "Soyhuevos"
sv_public 1
sv_maxplayers 10
sv_password "0"
sv_motd motd.txt
sv_ping_kick 350
sv-ping_ban 500
sv_timelimit 25
sv_rcon_password puto
sv_tk_ban 3
sv_tk_grace 1
sv_tk_cooldown 60m
sv_ban_penalty 1h 1d 7d 28d

estas escribiendo comandos automáticos para que un servidor se administre solo. Esa parte de arriba se me olvido quitar ya que no le preste importancia. Mi problema radico en los siguientes comandos:


sv_ping_kick 350
sv-ping_ban 500

Llegando a este ping en mi servidor. Este te sacaba o te baneaba si pasabas de los 350 o 500 de coneccion., y esto es lo que esta pasando con mi cuenta. Como no puedo desactivar el sync de mi cuenta de Twitter con mi sitio debido a que Google borro el blog. Los comandos del bloc de notas estan sacando followers una vez que este detecta que llegan a los 350 o 500 de coneccion, es por eso los unfollows masivos que estoy teniendo.

Por lo pronto ya mande un e'mail a Twitter y solo me resta esperar y seguir perdiendo followers.

Abajo posteare los codigos por si alguien esta interesado en probar mi experiencia:




<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
   <head>
      php
      $title = "Buscador de Ex-Followers";
      $descr = "Encuentra a la gente que te ha dejado de seguir";
      include("../includes/head.inc")
      ?>

      include("../includes/header.inc");
      if ($_GET['action'] == "start") {

         session_start();

         if (!isset($_SESSION['access_token'])) {
            header("Location: /");
         }

         require ("../includes/config.php");
         require ("../includes/tmhOAuth.php");
         require ("../includes/db.php");

         $tmhOAuth = new tmhOAuth(array(
                     'consumer_key' => ConsumerKey,
                     'consumer_secret' => ConsumerSecret
                 ));
         $tmhOAuth->config['user_token'] = $_SESSION['access_token']['oauth_token'];
         $tmhOAuth->config['user_secret'] = $_SESSION['access_token']['oauth_token_secret'];

         //Twittear
         if ($_COOKIE['twitear'] != "no") {
            $tmhOAuth->request('POST', $tmhOAuth->url('1/statuses/update'), array(
                'status' => "Usando las Twit-Herramientas \"Buscador de Ex-Followers\": Encuentra a la gente que te ha dejado de seguir. " . KCY,
            ));
         }

         // Conseguir Followers
if (isset($_SESSION["followers"]["ids"]) && is_array($_SESSION["followers"]["ids"]) && count($_SESSION["followers"]["ids"]) != 0) {
$followers = $_SESSION["followers"];
} else {
$tmhOAuth->request('GET', $tmhOAuth->url('1/followers/ids'), array(
'id' => $_SESSION["access_token"]["user_id"]
));
$followers = array('ids' => json_array($tmhOAuth->response['response'],'ids'), 'num' => count(json_array($tmhOAuth->response['response'],'ids')));
if (!is_array($followers['ids'])) {
$followers['ids'] = array();
}
$_SESSION["followers"] = $followers;
}

         $link = mysql_connect(host, user, passdb);
         mysql_select_db(database, $link);

         $usuario = mysql_fetch_array(mysql_query("SELECT * FROM `Exfollowers` WHERE `ID` = {$_SESSION["access_token"]["user_id"]}"));

         if (!isset($usuario["ID"])) {
            mysql_query("INSERT INTO `Exfollowers` (`ID`, `Followers`, `Usos`) VALUES ({$_SESSION["access_token"]["user_id"]}, '" . implode(";", $followers["ids"]) . "', 1)");
            header("Location: ?action=start");
         } else {
            foreach (explode(";", $usuario["Followers"]) as $viejofollower) {
               if (!in_array($viejofollower, $followers["ids"])) {
                  $exfollowers[] = $viejofollower;
               }
            }
            if (count($exfollowers) != 0) {
               $tmhOAuth->request('GET', $tmhOAuth->url('1/users/lookup'), array(
                   'user_id' => implode(",", $exfollowers),
               ));
               ?>
= count($exfollowers) ?> persona(s) te han dejado de seguir:

Nombre (@usuario)


                     $exfollowers_data = json_array($tmhOAuth->response['response']);
                     if (!is_array($exfollowers_data)) {
                        $exfollowers_data = array();
                     }

$unfollows = '';

                     foreach ($exfollowers_data as $exfollower) {
$unfollows .= "{$exfollower[id]}=".strtotime($tmhOAuth->response['headers']['date']).";";
$exfollower = array_object($exfollower);
                        ?>

= iconv("UTF-8", "ISO-8859-1//TRANSLIT", $exfollower->description) ?>">
= iconv("UTF-8", "ISO-8859-1//TRANSLIT", $exfollower->name) ?> (= $exfollower->screen_name ?>">@= $exfollower->screen_name ?>) - = iconv("UTF-8", "ISO-8859-1//TRANSLIT", $exfollower->location) ?>

= iconv("UTF-8", "ISO-8859-1//TRANSLIT", $exfollower->status->text) ?>  = $exfollower->status->created_at ?>

                     }
                     ?>
            } else {
               echo("
\"center\">Tienes los mismos followers que la última vez que lo consultaste.
");
            }
            $usos = $usuario["Usos"] + 1;
            if (!strlen($unfollows)) {
mysql_query("UPDATE `Exfollowers` SET `Followers` = '" . implode(";", $followers["ids"]) . "', `Usos` = '" . $usos . "' WHERE `Exfollowers`.`ID` = '{$_SESSION["access_token"]["user_id"]}'");
}
else {
mysql_query("UPDATE `Exfollowers` SET `Unfollows` = concat(`Unfollows`,'".mysql_real_escape_string($unfollows)."'), `Followers` = '" . implode(";", $followers["ids"]) . "', `Usos` = '" . $usos . "' WHERE `Exfollowers`.`ID` = '{$_SESSION["access_token"]["user_id"]}'");
}
         }
         ?>
      } else {
         ?>



include("../includes/ads.inc"); ?>


El "Buscador de Ex-Followers" es una herramienta que te mostrará que usuarios han dejado de seguirte.
Funcionamiento:
La primera vez que uses el "Buscador de Ex-Followers", registrará los followers que tienes en este momento.
A partir de entonces, cada vez que visites la herramienta de nuevo te dirá quienes te han dejado de seguir, tomando como referencia la última vez que lo visitaste.

$mensajes = array("¡Empezar!", "¡Dale Caña!", "¡Dime quién me ha dejado de seguir!", "¡Enséñamelos!", "Ok pipol, press estart");
         echo($mensajes[rand(0, count($mensajes) - 1)]); ?>


} ?>

include("../includes/footer.inc"); ?>




CODIGOS COMPLETOS AQUI:








Wednesday, October 3, 2012

Right or Wrong


OLP
Elizabeth Terzakis
English 100
May 2012

How many times have we gone to eat out and ordered a juicy T-bone steak, or a double cheese burger, or fried chicken boneless? Hundreds of times I dare to say it, but have we really thought about what was the process that brings us the juicy T-bone or the fried chicken to our table? I bet not, Have we? Eric Schlosses in his book Fast Food Nation: the Dark Side of the All-America Meal states that the fast food business began and settled during WWII in California, by people without any high education level, but that with only business vision to create a powerful industry. Also Schlosser examines a lot of factors in his book such as what really goes into each hamburger’s meat that we eat, why fast food is so popular in the entire world. He also brings out how the fast food industry abuses its employees, how the cattle slaughterhouses endanger its workers, and how the meatpacking industries mistreat and abuse the cattle. Lastly he gives information on why the government does not want to do anything against the fast food commerce, and the meatpacking industry. Some of the most terrible things that I faced while I read Fast Food Nation, were how the government turns a blind eye to the meatpacking industries mistreating of cattle, and the working conditions in slaughterhouses, while working closely along side them.
Cattle are giants, large in size but sweet in nature. They are clever and intelligent animals. They are very social and prefer to spend time with other cows. Sometimes, people abuse these animals for pleasure, while trying to gain profits from their eventual slaughterhouses. Although, the fact that they will eventually be killed does not give people the right to mistreat animals. But it seems that for some slaughterhouses, mistreating animals is something common. While the cows are living and eating in the ranches, they have a good and healthy life but their problem begins when ranch owners decide to sell the cattle to slaughterhouses. The cow’s odyssey starts from the moment they are being loaded in the trailer. These trailers are so crowded that any form of movement becomes impossible. Sometimes the ranches are located remote areas, away from the big cities. This provides the meatpacking industry to buy the cattle cheaper because, they argue to spend more money towards travel. For this reason, the cattle pass days and days on the road without any attention. The most terrible agony for these animals is when they are traveling in the Texas desert. The temperatures can reach highs of 110 during the day, and down to 20 under zero during the night finally:
After a horrific journey, the scared and weak animals are unloaded at a slaughterhouse. Every year, hundreds of thousands of cows are either lame frozen to the sides of the truck, or all but dead from heat exhaustion when they arrive at the slaughterhouses (“Animal Place”).
When the cattle are unloaded from the trailer some of the cattle cannot stand up by themselves. But the most terrible part is yet to begin here in the slaughterhouses. Some of the cows cannot walk off the trailer, are going to and must be handled by a worker who pulls them until their hide is ripped, till the blood drips on the road. Some cows are so scared with this practice and the pain is so intense that they end crying. Although I would be nice to think that this is the extent of the cattle agony but no, there is more torment against these nobles animals:
After they are unloaded, cows are forced through a chute and shot in the head with a bolt gun mean to stunned them (“Animal Place”).
Most of the time cows go fully conscious to the matadero, (Place where the workers kill the cows). The cows that do not gain enough weight go to the feedlots, which are places that:
Can hold up to one hundred thousand head of cattle. At times the animals are crowded so closely together it looks like a sea of cattle, a mooing, moving mass of brown and the white fur that goes on for acres. (Schlosser 150)
During the three months that the cattle have to spend in the feedlots, they do not eat regular food like grass. Each steer is being obligated must eat three thousands pounds of grain in three moths, anabolic and steroids are implanted in each steer’s ear to gain the indicate weight. For this reason, each cow can deposit about fifty pounds of manure and urine every single day. Practically, the cattle eat, sleep, walk, and spend most of their time in this “agradable” (nicest place) environment:
The feedlot’s air is saturated with ammonia, methane, and other noxious chemicals, with build up from huge amounts of manure, and the cows are forced to inhale these gasses constantly (“Animal Place”).
When the cows are sent to the matadero, it is probably maybe best for them, since won’t have to suffer much more because. The last thing they will face terrible methods, being shot in the head with a gun by a worker called “the knocker,” with the purpose of immobilizing their nervous system. After that the cattle is suspended in the air and a worker called the, “sticker” hits the animal in the right spot until the steer is gone. People have no idea how much suffering these large and powerful animals have to face every single day in the slaughterhouse. We just go to the market or to any restaurant, and we request a 18oz steak well done, without thinking of the pain that it caused the steer. The cattle are not the only ones that suffer at, the slaughterhouses. The employees themselves work in the most horrid work conditions of any occupation. Every day people from different parts of the world come to the United States with the illusion to get a better life, with the illusion of getting a better life, or the annelid American dream, or the hope they will be able to help their families in poorless and margins countries. Some of these people, who are in majority Latinos from Mexico,GuatemalaEl SalvadorColombia, etc. Sometimes, they get the most terrible and dangerous job county has to offers. Most of the Latinos living in The United States do not have health insurance, because they are illegal in this country, and big companies such as Excel, IBP, and Con Agra know about this problem and hire Latinos to do the worst job, because nobody else wants to do it. These companies distribute and export large quantities of meat every day. As the production of beef has a high demand, those three companies hire people without giving them proper training. Most of the time, the slaughterhouse facilities are in bad shape, but it does not matter to the illegal workers. They just want to earn some money and the meat industry knows it and exploits them. I personally know a person, who worked in a slaughterhouse in Montana in the 1980’s , he told me that the conditions haven’t changed since then. “Its the same shit” he said. He told me how people would loose their hands, or fingers. Those accidents were caused by the fast lines in the meatpacking industry:
According to statistics from the U.S Department or Labor’s Bureau of Labor Statistics, nearly one in three slaughterhouse workers suffer from illness or injury every year (“Goved”).
A high percent of those accidents are caused by the fast lines as my friend of mine said. The reason the managers do not slow down the fast lines is Because, it would decrease the amount of product which would mean less money and the demand for beef is so high, they refuse to let it slow down . People working in the meat factories do not have any humans’ rights. They are alone, nobody helps them, they are obligates to work overtime for the same money. The stress of the job leads many to abuse drugs to get the work done. When a worker suffers an accident, he or she does not have to say anything for, if they do. They are often fired by the foramens or the managers.
Annual bonuses of plant foreman and supervisors are often based in part of the injure rate of their workers. Instead of creating a safer workplace, these bonus schemes encourage slaughterhouse’s managers to make sure that the accidents and injuries go unreported. (Schlosser 175)
Some people that hurt themselves very baldly are sent to the company’s doctors, but as we can imagine they do not receive the right medications and the right care. The next day, the same worker that suffered the injury will be working again because:
Employees who are injured at work-and most will be- are often fired if they take time off or try to file a health insurance or workers compensation claim (“P.E.T.A”).
It’s something incredible that this is happening in the United Sates “the country of the human rights and free speech” but there is some more:
When workers try to unionize, the industry uses illegal intimidation and harassment tactics to ensure that pro-union employees are silenced (“Goveg”).
Once the big jefes (boss) of those companies begin to hear rumors of a union being organized, they start firing people without any excuse, and sometimes they menace their workers with the IRS Bureau if they continue ahead with their movement. ConAgra, IBP, and Excel know that just by using the word IRS, all movements against them are going to stop because of the high percentage of workers without the right documentation, and of course, are scared from talking. These companies are so intelligent, exploiting and abusing immigrant people because:
Factory farms and slaughterhouses set up shop in the poorest regions of the United Sates because they know that they can use poor and uneducated people in these areas to do their dirty work for low wages (“Goveg”).
It’s hard to imagine the working conditions in the slaughterhouses or meat packing companies. Hundreds of them with the illusion to earn some money to feed their family in their country. Hundreds of them stand up at least ten hours doing the same job without getting to rest. Hundreds of them resorting to drugs to get them through the day. Hundreds of them sweating even though, they are under 40 grades of temperature. Hundreds of them loosing body parts and working the next day. Hundreds of them already passed away. Yet, with all this happening , ConAgra, IBP, Excel are going to still exploit immigrants and hurt people. It’s something cruel but it’s a reality that is happing every single day in the meatpacking industry.
So what is congress’ response to all of this? Shouldn’t our representatives be protecting people from this? How many times have we turned on our TV and there are some ads with our next candidates? Have you thought where the money for those ads came from? Most of our candidates have sponsors that finance their campaign and they spend thousands and thousands of dollars on their favorite candidates. But the sponsors always want things for their money. Perhaps protection from the law. That’s when I ask to my self, “Are we safe with our representatives in the congress?” Those are queries that I will never know for sure. The meatpacking industry has a lot of allies in the congress. Most of the times the government helps these companies stop laws that are going to help workers in the slaughterhouses. For example:
The Bush’s administration and its Republican allies in the congress have allowed the meatpacking industry to gain control of the nation’s food safety system (“The nation v”).
What does that mean? This means that the government is allowing the meat companies like ConAgra, Excel and IBP have their own safety department. This is something scary. Can you imagine that delicious strip of beacon in our Sunday’s breakfast? Or that delicious slice of “meat” in our favorite combo without any government regulation of sanitation. How many times have we gone to the market to buy a pound of meat and its tag says, approved by the USDA’s food safety authorities? And we purchase it without imaging that the pound of meat could be contaminated, even though the tag says that it was approved by USDA.
In 1985 a panel appointed by the National Academy of Sciences warned that the nation’s meat inspections system was obsolete (“Bad Meat”).
Obsolete, good word that in the dictionary means no longer in use. That’s what it means our department of sanitation is obsolete. We could think that that was quoted in 1985 and the system of sanitation has been changed from then to now, but it hasn’t changed at all because:
It would be an understatement to say that the Bush Administration has been friendly toward the big meatpackers (“The Rolling Stone”).
Sometimes governments parties protect the meatpacking industry because they support their cause spending money through the candidate’s campaigns. For example during the 2000 presidential campaign, the meatpacking industry donated $6,000, 000 to George Bush’s campaign. That’s why that the government doesn’t do any thing against these giants, eventhougth they know about all these chigaderas (things) that the meatpacking industry does while preparing our meat. Another big reason that the government doesn’t implement good rules is why:
Government officials who served the needs of the farmer animal industry are often offered plum jobs in the industry, and industry leaders are frequently rewarded with high-powered positions in federal agencies (“Goveg”).
People from different parts of the world think that this country does not have any corruption at all but the reality is this country could have more corruption than our countries. The government and the meat industry are going to do their best to protect the maximum sales and consumption of meat and trying to cover up, ignore, and deny the risk that this is going to represent for the common people. For example Schlosser states in The Rolling Stone Magazine that:
During the 1980s, as the changes in the meatpacking industry increased the risk of widespread contamination, the federal government cut funding for meat inspections and largely dismantled the public-heath infrastructure that tracked the spread of infectious diseases (“Rolling Stone”).
. As a result of this funding cut, the nation’s meat supply could be spreading a variety of dangerous microbes undetected in our meat.
In conclusion, meatpacking industries have been mistreating animals and workers for decades, with the help of our representatives in the congress. When I went through all the research, I could not believe it. I cannot imagine cows being stripped of their skin alive, cows crying in their own blood. Can we imagine the pain of those poor animals? The cattle not just suffer in their travel to the slaughterhouse, they also suffer there. Some of them are forced to consume huge quantities of hormones to gain the right weight. Some of them are being killed as soon as they arrive to the plant. The workers are another point of cruelty in the slaughterhouses. Some of them are being mistreated by their foremen. They do not have any medical covertures, they do not have any rights over there for the reason that they are illegally in the country. The workers have to work over eight hour’s shift, to keep their job. But the worst thing of all this is that the government protects the big companies of meat. Why? Well, it’s simple to say. They get money from those companies. That’s the only thing the government cares about, money. I cannot believe, we are in The United Sates of America where no is suppose to exist corruption in the government. It’s something incredible. People who work for the meatpacking industries should raise their voices in protest for their rights. I know it is something easy to say, but it is the only way to stop all the injustices against the workers. It is not easy to do but it is not impossible. We just have to think that si se puede (we can do it), and think of all the legendary figures that brought peace to this world such as Martin Luther King Jr, Malcon X, Gandhi, Pancho Villa, Emiliano Zapata, Che Guevara, etc. All of them had to fight for a cause, they spent a lot of time on it, they did not eat, they did not sleep, they had almost the same dreams…be free some day and they some day reached their annelid dream. Now, it seems the only thing the meatpacking workers must do is raise their voices and protest for their rights as human beings. It will not be an easy task but si se puede.