Archive

Archive for the ‘personal’ Category

Firts Week August

August 8th, 2010 Albertux 3 comments

First Week August

I know the last month was fucking lazy, but August I think is different, the first week:


CentOS 5.5 setup on VirtualBox with LAMP

Download the netinstall ISO from mirrors:
- CentOS-5.5-i386-netinstall.iso
- CentOS-5.5-x86_64-netinstall.iso

[HTTP Setup]
Website name: mirror.centos.org
CentOS Directory: centos/5.5/os/i386

After many screens select only server

Set up LAMP on CentOS 5.5 Server:

yum install mysql-server # mysql server
yum install php-mysql # php with mysql
/etc/init.d/mysqld start # start mysql (password empty)
# put mysqld and httpd in run levels
chkconfig mysqld --level 2345 on
chkconfig httpd --level 2345 on # httpd is all ready

If you want to start CentOS on background:

# Port forward SSH to 2222 localhost:
VBoxManage modifyvm "CentOS" --natpf1 "guestsssh,tcp,,2222,,22"
# Port forward HTTP to 8080 localhost:
VBoxManage modifyvm "CentOS" --natpf1 "guestshttp,tcp,,8080,,80"
# bash aliases
alias start_centos='VBoxManage startvm "CentOS" --type headless'
alias centos='ssh -p 2222 root@localhost'

Make twitter useful:

#  goto http://code.google.com/p/python-twitter/ on ubuntu:
apt-get install python-twitter
#!/usr/bin/env python
# -*- coding: UTF-8 -*-
# Albertux (Alberto Isaac Ayala Esquivias)
import re, twitter
import subprocess
####################
# TWITTER  ACCOUNT #
username='_________'
password='_________'
####################
####################
# EXECUTE COMMANDS #
start = ["command","param1","param2"]
stop = ["command","param1","param2"]
####################
####################
api = twitter.Api(username, password)
statuses = api.GetUserTimeline(USER_YOU_FOLLOW)
msgs = [s.text for s in statuses]
last_msg = msgs[0]
flag = re.findall(r"REGEX",last_msg,re.I)
if len(flag) > 0:
    subprocess.call(stop)
else:
    subprocess.call(start)

using bash:

 watch -n 60 ./twitter_check

3taps heartbeater (latency of post):


Myself:




Dr Martin Luther King Jr Pics:


Hackerdojo pics:





Random pics:
P0rn knowledge:

Damn I lost this pin of #hackerdojo :’(


Personal projects:

w@nder July

August 1st, 2010 Albertux 2 comments

wander July – wonder July

#include "family.h"

This month was good.


Some days I go to #hackerdojo on Mountain View


A simple tweet script using python-twitter

#!/usr/bin/env python
import twitter, sys
api = twitter.Api(USERNAME, PASSWORD)
if (len(sys.argv) < 2):
    sys.exit()
tweet = sys.argv[1]
status = api.PostUpdate(tweet[0:140])
print status.text

howto use:

./tweet "tweet from command line"

qTranslate 2.5.8 works good on WordPress 3.0.1, edit qtranslate.php:

// only replace the next line:
define('QT_SUPPORTED_WP_VERSION', '3.0');
// for this:
define('QT_SUPPORTED_WP_VERSION', '3.0.1');

time command (stderr) on bash maybe cause problems you need to use the full path or use another shell (using ubuntu lucid lynx):

#!/bin/bash
time -o output.log $CMD # -o: command not found, using /bin/dash works
/usr/bin/time -o output.log $CMD # works
/usr/bin/time $CMD 2> output.log # works

Yep I have the driver license (from DMV not Tropicana):


family/friends this photos are chronologically:






3taps
Now I’m using Amazon EC2 to handle the information and scripts I have for www.3taps.com


Many moves/changes in this month, some projects in my head. (the next week maybe running one of them)


TODO 4 August:

  • Make and follow a schedule
  • Start up www.ayalasoft.net
  • Cut my hair (maybe)
  • Get a car (I hope so)
  • Make a blueprint for world domination
Categories: personal Tags:

SuperHappyDevHouse SHDH 38

June 28th, 2010 Albertux No comments

SuperHappyDevHouse SHDH 38

http://superhappydevhouse.org/SuperHappyDevHouse38

SHDH: 06/26/2010 03:00 pm – 06/27/2010 06:00 am.

Werewolf Survivors
Werewolf survivors

[The video was edited using avidemux and mencoder]

EOL-EOF

Categories: community, personal Tags: , ,

Magic June

June 22nd, 2010 Albertux 9 comments

Magic June

48 61 63 6b 20 54 68 65 20 50 6c 61 6e 65 74

Many changes in this month.

I was go to Hacker Dojo. I meet Rob Brown a Javascript hacker, he develop this great tool: Aardvark


function currentTime() {
    currentTime = new Date();
    return {
        year: currentTime.getFullYear(),
        month: currentTime.getMonth() + 1,
        day: currentTime.getDate()
    };
}
 
now = currentTime();
 
if ( ( now.day == 14 ) && ( now.month == 6 ) && ( now.year == 2010 ) ){
    Albertux.prototype.age = 26; // Another year of life.
}

I always like hamburger with fries inside:

Pictures and videos for me:



I’m not EMO!!!

Now I’m working on 2 projects as outsourcing for a moment:

I do some stuff from rrripple for free, why calling me ? and asking me to do a specific schedule, but anyway the bugs I discover are here:

Duplicate items (not validation):

Percent go crazy after upload something.

Download Videos:

You need VLC to watch this videos

The bugs I discover not watching the source code, only using the application Firefox with firebug and use cURL to show the brute force login and only using the application less than a hour.

But there are good news:

Tech Crunch Review from rrripple.com

My personal comment:

I never work for free, sucks, sucks, sucks.

Library Pics

You know I always follow the rules

My Job for a moment is seeking Job hahahaha XD

And June is almost over but not yet.

More Codes, Hacks and Girls in the next Post.

Categories: personal, security Tags: , ,

May is almost over

May 26th, 2010 Albertux 1 comment

May is almost over

Las imagenes / videos fueron tomadas del 7 al 25 de Mayo del 2010.

One day I went to Stanford for a interview. But not interview, I do a test on a paper.

I remember some questions:

Howto create a thread on Java?:
http://www.exampledepot.com/egs/java.lang/BasicThread.html

Thread x = new Thread(); // works

Write a function to sort array of integers (unspecified language):
http://www.w3schools.com/jsref/jsref_sort.asp

// I do this, but it's wrong, only compare pair of numbers, damn!
// with other "for" works, but doesn't matter now.
// for (n=0; n<myArray.length; n++) {
for (i=0; i<myArray.length; i++) {
	if (MyArray[i] > MyArray[i+1]) {
		swap = MyArray[i];
		MyArray[i] = MyArray[i+1];
		MyArray[i+1] = swap;
	}
}
// }
// The real solution:
function sortNumber(a,b)
{
     return a - b;
}
MyArray.sort(sortNumber);

Other questions about SQL Querys, differences between PHP and Java, REST API , etc.

Reinstall Windows in a HP D530 SFF but I need internet to install some drivers on this computer, so I share the internet connection of my notebook:

sudo apt-get install dhcp3-server firestarter

http://ubuntuguide.org/wiki/Ubuntu:Lucid search (“Internet connection sharing (DHCP server)”)

Playing with eBay API:
[ http://ayalasoft.net/ebay-demo.php ]

add filestube and craigslist on http://bse.ayalasoft.net, I need to remove scroogle.

My laptop doesn’t suspend or hibertaned
[ https://bugs.launchpad.net/ubuntu/+source/linux/+bug/575176 ]

Ubuntu 10.04 LTS CD

Alum Rock

[ http://sjlibrary.org/about/locations/alum_rock/index.htm ]


SAP buy Sysbase
[ Noticia Yahoo , Barrapunto ]

Dr Martin Luther King

[ http://sjlibrary.org/about/locations/king/index.htm ]




Fire drill:

You exceeded your maximum download on the public library?

Berryesa:

Alum Rock:

No problem only you need to change your mac address:

# as root
apt-get install macchanger
# change your mac address random
macchanger -r $DEVICE # eth0 or wlan0

If a cop stops me in arizona and says “papers” and I say “scissors” do I win ?

Pictures of Me

Yes it’s my favorite shirt



Waiting the bus:

On the car:

Others pics:

On the bus:

Where I am?:

The Tech Musem

Cerca del museo hay otro de Arte:

Video:

Fotos:

Albertux GOTO San Francisco
BART

Instituto de Arte en SF:

El City Hall:

Buddha:

Now i know, the right place to buy / rent videogames on SF:

Return to San Jose:
Caltrain

. . .

Yes I have a work. Im working with the team of 3taps.

Restore firmware iPod on Ubuntu

My iPod doesnt’ work so i need to restore the firmware.

But i have a little issue using:

mkfs.msdos $DEVICE

“Attempting create too large a file system”

But my iPod only have 1Gb so …

The easy way to restore firmware on Ubuntu Linux is using Windows:

Computer History Museum

Well, May is almost over.

Categories: personal Tags: