Santo Domingo Degradante

Antes de ayer, en la web, encontré un artículo de @gabinha en su twitter/posterous.

Entiendo que expresa el sentir de muchos de mis contemporaneos, incluyéndome, acerca de Santo Domingo (y República Dominicana en general). Recomiendo leer el artículo completo.

El post original se encuentra en el blog en posterous de gabinha, y es: Santo Domingo Degradante Continue reading

Your logs are your friends

When you’re fiddling with a mobile device’s firmware, and changing it’s binaries, the device can turn a little bit unstable (at best). This instability can translate to programs not doing what they’re supposed to do, programs closing forcibly, or even crashing the whole system if it was a core component that was changed.

We can always improve a situation like crashes, force-closing applications, and the like by tracing the steps that were followed by the system. A record of these steps, if the applications and/or systems are developed correctly, are kept on the logs.

On Android, the logs are non-persistent, meaning that they don’t stay with you and are wiped on some circumstances, e.g. a reboot. This non-persistency has a couple of reasons, to my understanding:

  • End-users won’t need anything else than the short-term logs (as the system is delivered stable)
  • The phone’s storage is limited, so storing logs could yield some undesired storage problems.

The definition of “short-term” is a bit debatable on this case, but by this I mean that normally an end-user won’t need a log that transcends a reboot, or a log of the activities of 10 hours ago.

So, here are two ways (not the only ones) to have these logs available for you persistently, in case you need to find out what’s wrong on your android device, should you, like me, poke stuff in and out of the phone’s OS.

Things you need are provided by the tools you needed to root your phone, except probably for the Android Debug Bridge (adb), which you can get if you download the Android SDK tools. I assume you put the path to adb.exe on your PATH environment variable.

On both scenarios you should be on your computer and have your phone’s plugged in at least when you boot the phone. Otherwise where else would you be fiddling with your phone’s OS? Also, please note that the logging stops when the phone crashes, so after a reboot you have to start logging again (hopefully after collecting last time’s logs).

Log file on your phone’s sdcard
Use this command while connected to your computer just after a reboot, and after that you can just unplug it and your logs will be saved on your /sdcard with names that start with “logcat.txt”, I often use this command for my day to day activities when “random” reboots occur.

adb shell nohup logcat -f /sdcard/logcat.txt -r 1024 -n 60 -v time &

 

Log file on your computer
Use this command while connected to your computer just after a reboot, but you have to stay plugged in so that the log stream is redirected to the chosen file (in this case “fileonyourcomputer.txt”), I find this command very useful if I KNOW how to re-create scenarios.

adb logcat > fileonyourcomputer.txt

 

I hope this helps you or at least give you a useful idea. Feel free to comment, question and/or suggest on the comments section.

Meet Byte

Byte, 19 days old

Byte, 19 days old

Meet Byte. She’s going to be the new member of my family. She’s a German Shepherd puppy, one of my favorite breeds of dogs. At the moment she’s 19 days old and still with her mom and litter mates. In my house, there are already three other dogs (which were originally my sister’s) and two humans, mom and I.

I found this next fragment looking for quotes about dogs, but couldn’t find the author. Everywhere I found it, it was attributed to Anonymous or Unknown author. I find it very nice and wanted to share.

Unknown Author:

He is your friend, your partner, your defender, your dog. You are his life, his love, his leader. He will be yours, faithful and true, to the last beat of his heart. You owe it to him to be worthy of such devotion.

I love animals. I decided to train my dogs for this reason, specially Byte when she comes home. Why? Because living with a dog, is training a dog. Some people train their dogs only by having them around, some decide to use a method. The result of all the interactions with your dog is what’s going to produce a well-mannered or ill-mannered dog in the end.

A well behaved dog, to me, is going to be a happier dog, because he/she will have a lot less restrictions, more play-time, more socialization and all that, because he/she behaves within human standards. To achieve that, I’ll use a method; the method I’ve selected is Progressive Reinforcement Training.

To document myself I’ve started reading a couple of books, and watching videos on this, so that I can provide the best environment possible for our pets.

The books I’ve started reading are:

  • Miller, Pat B.. Positive perspectives: love your dog, train your dog. Wenatchee, Wash.: Dogwise Pub., 2004. (ISBN-13: 978-1929242153)
  • Pryor, Karen. Don’t shoot the dog!: the new art of teaching and training. Rev. ed. New York: Bantam Books, 1999. (ISBN-13: 978-0553380392)
  • Ramirez, Ken. Animal training: successful animal management through positive reinforcement. Chicago, IL: Shedd Aquarium, 1999. (ISBN-13: 978-0961107499)
  • Reid, Pamela J.. Excel-erated learning: explaining in plain English how dogs learn and how best to teach them. Berkeley, Calif.: James & Kenneth, 1996. (ISBN-13: 978-1888047073)
  • Rugaas, Turid. On talking terms with dogs: calming signals. 2nd ed. Wenatchee, Wash.: Dogwise Pub., 2006. (ISBN-13: 978-1929242368)

These books are recommended by @pamelamarxsen (Pamela Johnson) and @dogmantics (Emily Larlham, also known as kikopup), two professional dog trainers. Pamela’s been of great help via messages we’ve exchanged on clearing some of my doubts, making recommendations and providing lots of encouragement. I haven’t had a lot of communication with Emily because she’s normally very busy. Both trainers have their youtube channels, websites and blogs that provide useful information and can serve as a very nice reference of what you can achieve and how to achieve it using Progressive Reinforcement Training.

Here are the links to their sites:

You can expect me to post on my progress and experiences about this later. Please send any and all suggestions, questions, and/or comments, they are all welcome

Sleep, I need it

I’ve realized that sleep deprivation (on me, and by that I mean not getting the 5-6 hours of sleep I need each day, which I’d like to be more like 8-10) not only causes an all-day feeling of lethargy, it also causes a lot of sensory confusion (e.g., perceiving the smell of bubblegum when you’re smelling cake), short-term memory loss, lack of focus, lack of appetite, and the all-day super-strong longing of my bed and a cool, dark, silent room. Being sleep deprived is something I wasn’t made for, and after years of making myself more efficient at school/work (hence needing a LOT less to spend the night awake), I am less tolerant physiologically-speaking of a night without sleep than I was say 5 years ago.

Another of the adverse effects of sleep-deprivation (on me) is that it alters my basic-bodily-functions’ schedule if you want to call it that, in short, it makes my head think the night is for being awake and the day for sleeping, screws my meal-schedule by altering the times at which I get hungry, etc. creating a jet-lag-like effect, which I honestly don’t like.

So, before I head to try to sleep during this night, I’ll share with you some tips to help you sleep better (except in cases of emergency work-related situations):

  • When you feel you can’t sleep (i.e., insomnia), keep your eyes shut, stay in bed and breathe deeply, release your muscles, focus on all the sounds that are around, and try to keep your mind blank; helps me a lot, and even if I don’t get to sleep, at least I rest.
  • Organize yourself, you should have time to sleep (except in cases of emergency), for more on that, you can check out this previous post of mine :) . Always try to go to sleep at the same time and wake up at the same time every day, helps maintain the rhythm.
  • Having a reliable alarm clock for waking you up helps avoid those “should I be awake yet” wake-ups before time.
  • Use your bed for sleeping and sleeping only (when you can help it), try not to read, watch tv, or other things you can do out of the bed, so that your head has an “as soon as a pillow touches my ear I shut down” pattern in it. For other things you can’t do out of bed, well… figure that out yourself.
  • Try not to drink too much water or eat a lot shortly before going to bed, that way you won’t need to wake up during the night. This includes alcohol and coffee which might work as diuretics.
  • It helps me to have the room totally dark and with a temperature from cool to cold, and as quiet as possible.

And there you go, I’ll now go to sleep the best I can before going to work tomorrow again.

Woot has been acquired by Amazon

Amazon bought Woot!

Currently on Woot’s homepage which is very likely to change:

Batten down your hatches and stock up on bottled water, because we’re about to hit you with a category-5 newsicane: Woot has been acquired by Amazon! This partnership with the 800-lb. gorilla of ecommerce is huge news for us, but probably won’t change much for you. See what our CEO has to say about it, then see what our monkeys have to say about it. The monkeys are a lot funkier.

Quoting Woot’s blog: Woot : Amazon, Woot, and You: But Mostly Woot

To be uncharacteristically serious for half a nanosecond, yes, Woot has signed an agreement to be acquired by Amazon. It shouldn’t change anything much for us or you after the deal closes, we just figured you’d like to know a few details. You see, when two companies meet over drinks and some light jazz and decide they’d like to get to know each other better. You know what? Our CEO said it best in his letter to us employees…

Blizzard Entertainment releases Battle.net Real ID

Nice addition to the (social) gaming world, specially with the wealth of new games that are going to sprout now from Blizzard, and by wealth I mean Starcraft II and Diablo III :P . Hopefully they’ll add an out-of-game chat system as well. It would also be awesome to have non-blizzard games join battle.net too.

Information from Battle.net Real ID information page: Battle.net Real ID

One of our goals for the new Battle.net is to create the framework for an online gaming experience that is even more accessible, more engaging, and more entertaining than the previous Battle.net. Our new Real ID feature is an integral part of this effort, providing you with advanced ways for forming and maintaining meaningful relationships with your friends on the service.

Real ID is a completely voluntary and optional level of identity that keeps players connected across all of Battle.net. When you and a friend mutually agree to become Real ID friends, you’ll have access to a number of additional features that will enrich your social gaming experience in new and exciting ways.

Read the Real ID FAQ for additional details.

Real Names for Friends Your Real ID friends will appear under their real-life names on your friends list, alongside whatever characters they’re playing. Gone are the days of having to remember which of your friends is which. You’ll also see your friends’ real names when chatting, communicating in-game, or viewing their character’s profile.

Cross-Game Chat With Real ID, friends can now chat cross-game, cross-realm, and cross-faction across all supported Blizzard games. In World of Warcraft and need more players for your Icecrown Citadel raid? You check your Real ID friends list to see if anyone’s available, and sure enough, a couple of guildmates are playing a 2v2 ranked match in StarCraft II. Real ID makes it easy to ask them to come along.

Rich Presence See additional information on your friends list about what your Real ID friends are up to. Find out what your friends are doing and which games and modes they’re playing in real time. Invite that buddy just sitting around in Dalaran to play some StarCraft II with you without fear of interrupting a raid or a heated Wintergrasp match.

Broadcasts Broadcast a short status message for all of your Real ID friends to see, whether you want to issue a call-to-arms or let your friends know about an important change of plans. You can also read your friends’ broadcast messages on the “Recent Broadcasts” feed on the Battle.net welcome page — kind of a “corkboard” to leave messages to your friends when offline or busy.

Friend Once, See All Characters When you agree to become Real ID friends with another player, both of you will automatically see all the other’s characters on your friends list. You’ll even see any characters your friend creates in future Blizzard games, carrying your social network forward and helping you stay connected with the people you enjoy playing with most.

A new reason to live

Lenneth

Lenneth

I wasn’t lacking reasons to live, but here’s just a new one, and a strong one at that. This is the daughter of two of the dearest and closest people to me. Her parents gave me the title of co-parent a couple of months back, which I received with honor and with intention and decision to fulfill the role. Now that I see this beautiful child here, I can only feel much stronger in that position.

I’m posting here just to share a little bit the joy of having her in my life now.

I feel her like a little spot of pink in all the see of green that’s my life :) (I like the color green). And even if I can’t fully describe what I felt when I first saw her with words, I know I felt that all in the world will be safe and well if I can continue to see her well. I felt I could stand there by her side seeing her sleep for hours, and I felt the most tremendous burst of joy and tranquility that has ever filled me when I saw her and both her parents well after childbirth.

But… I don’t have enough time…

I don’t know a lot about Randy Pausch (1960-2008) (Randy’s Homepage and Randy’s Legacy), but some of the little things I do know about him, have served to make my world a bit more comfortable, and he taught me through two lectures.

One of them (His Last Lecture), I saw because it was a featured video on YouTube, and the one on time management was recommended to me by a good teacher (and later showed in class). I’d like to share these things I learned, as well as the lectures I learned them from.

Check them out on YouTube, they’re there, in complete length:
His Last Lecture: Achieving Your Childhood Dreams (1:16:27)
His Lecture on Time Management (1:16:22)

So my recommendation is, take 2h 32m 49s of your time and check them out. I think that you, like me, will get more than that time back in “savings” with the stuff you learn from them :) .

If you’d rather see them embedded and/or want to read some points I learned from them, check out the rest of this post.
Continue reading

Resilience

Sitting there, feeling bad about something that happened, no matter how big it was, and how bad you feel about it won’t accomplish anything, it is in the past. My humble suggestion is, stand up and take decisions and actions for the present and future, taking the past as a reference only, because:

  1. Feeling bad and not doing anything won’t change the status quo.
  2. Doing whatever you do (up to my knowledge) won’t change the past.

And, if feeling bad won’t change anything, why revolve around that feeling? Not everything happens as you wanted or planned for. Don’t get stuck in a moment when something happened and isn’t under your control, because the world will keep spinning, time will keep flowing, and life goes on. Continue living and moving, working with the knowledge you now have to evade future situations as the one you are feeling bad about at this very moment.

So, is there a difference between your current reality and your desired state? Work to change it, and if you can’t by any means change it, accept it. It’s WAY harder than it sounds, but it is a great “skill” to learn to incorporate in your M.O.