Antonio’s Blog

Google Evil?

Se ha ido convirtiendo poco a poco Google en Evil? Se que ha muchos no les gusta pensar en este tipo de cosas….Google empezo ofreciendo muy buenos servicios y hasta ahora todo gratuito, lo cual es buenisimo. Pero si uno analiza la cantidad de informacion que Google maneja de sus usuarios, preocupa bastante a decir verdad.

Google desde hace mucho tiempo es el mejor search engine que existe…..desde ese momento sabe nuestras preferencia, gustos, ideas, intereses, etc. Muchos tenemos una cuenta de Gmail, para algunos puede ser su cuenta de correo mas importante. Otros que son “fans” de Google utilizan a diario sus diferentes apps, sistemas operativos o companhias, por ejemplo, Android, Google Chrome, Chrome OS, Google Calendar, Google Docs, Google Reader, Google Maps, Google Talk, Picasa, Orkut, YouTube, Blogger, que son algunos de los que se me vienen a mente….ahora imaginense la cantidad de informacion que Google sabe de ellos….es de preocuparse cierto?

Hace un par de meses Google lanzo otra web app llama Google Dashboard, donde practicamente da un resumen de toda la data que Google maneja de nosotros. Las distintas cuentas que hemos creado, que hemos hecho, documentos, correos, etc….

Google no solo esta dominando con su software, pero también esta por lanzar el Nexus One (entrando así en el mercado de los Smartphone) y hay un rumor por internet que puede estar creando una Tablet con HTC (competencia directa del otro rumor de Tablet de Apple). A mi parecer le esta pasando el síndrome de Microsoft que quiere una tajada de todo, aun cuando están entrando muy tarde al mercado.

De verdad me preocupa la cantidad de información que maneja Google……esto es lo que nosotros conocemos y lo que no conocemos?…..Por eso creo que Google poco a poco se esta convirtiendo en Evil!…..Me pregunto donde quedo el lema de “Don’t Be Evil“???

iPhone Dev

Pues hace un par de semanas atras empece seriamente a aprender acerca de iPhone development….tengo un par de apps que me en mente que me gustaria publicar.

Para lo mismo empece a aprender con el libro de Pragmatic Programmers llamado iPhone SDK Development que compre hace unos meses. Por lo momentos es puro MVC…..tirando codigo en Objective-C. Si conocen C, Java o C# en cuanto a sintaxis es algo parecido asi que no seria tan dificil….pero si hay cosas en las que he quedado medio perdido pero poco a poco voy entendiendo.

Voy a ir actualizando como voy con mi aprendizaje y cuando comience a desarrollar las apps que tengo en mente :-) .

Metas para el 2010

Como ha sido una costumbre en los ultimos anhos, me propongo cumplir ciertas cosas durante el anho…..este anho no es la excepcion.

El Problema de otros anhos es que siempre me propongo unas cosas, cumplo algunas y las otras se me olvidan pq no me acuerdo…jeje. Este es el proposito de este post.

Seguro voy a estar updating este post mediante vaya cumpliendolos….

1. Llegar a 99 kg.
2. Utilizar mas Social Media y de esta manera aprender mas.
3. Que el trabajo no me consuma tanto este anho como en el 2009 y balancear mi tiempo.
4. Escribir al menos 5 posts mensuales en mi blog.
5. Involucrarme mas en comunidades de Desarrolladores de Honduras.
6. Hacer algo para mejorar el Medio Ambiente. Ser mas “Green”.
7. Desarrollar al menos 2 iPhone apps y publicarlas.
8. Aprender SQL Server Analysis Services.
9. Sacar 2 Certificaciones – TS: Microsoft SQL Server 2008, Business Intelligence Development and Maintenance y TS: Windows Server 2008 Applications Infrastructure, Configuring.
10. Leer al menos 5 libros related con tech.
11. Aprender, aprender y aprender.
12. Cocinar mas y disminuir la cantidad de Fast food consumida.
13. Learn more about Wine.
14. Hacer del 2010 un gran anho!

Fixing Orphan Users on SQL Server

2 queries to find and fix orphan users on a SQL Server Database…

sp_change_users_login

Displays which users have no login name mapped to them
sp_change_users_login ‘Report’

Update an orphan username
sp_change_users_login ‘Update_One’, ‘username’, ‘login_username’

Enjoy!

Update data using 2 or more tables – T-SQL

It happens quite frequently that I need to update data using data from a different table… really useful…

UPDATE a
SET a.Col1 = b.Col1
FROM table1 a JOIN table2 b ON a.Col2 = b.Col2
WHERE <Conditions>

Shrinking a SQL Server Log File

This script just saved my life :-)

USE <DatabaseName>
GO
DBCC SHRINKFILE(<LogFileName>, 1)
BACKUP LOG <DatabaseName> WITH TRUNCATE_ONLY
DBCC SHRINKFILE(<LogFileName>, 1)
GO

Learning RoR – Databases…

I’m about to start Chapter 8 – Validating and Testing RoR apps. Just finished the basics of managing Databases, which is a bit different from what I’m used to do in ASPX or Java with a Backend….gotta change the way I think of connecting to a database, which is: Creating stored procedures to insert or extract data, some other SP’s to update data or using Linq to generate queries to the DB.

When talking about managing data in databases things are really different in RoR. RoR generates everything for you, so far I haven’t written a SINGLE query (besides the create table queries)….I kinda miss writing queries :-( . But still, is cool how RoR takes care of it. Although there are a couple of constraints here, for e.g. naming convention in your models (this are the ones manipulating the data).

Also, this is just my second real experience with MVC (previous one was with SAP Java WebDynpro, which I didn’t like that much). I’ve read a lot about it and how it works and everything else, but I’m not an expert in this matter….afterwards, I’ll definitely have to go back to Chapter 7 (Working with Databases) and review it and practice till I really understand fully how MVC works in RoR.

So far, this is what I’ve understand:

Views -> Anything you want to display goes here (this is obvious).

Models -> Interaction with the DB and Ruby classes.

Controllers -> Manages data and actions between Views and Models.

Still liking a lot the simplicity and functionalities of RoR, but in order to fully understand everything, I’ve got to change my way of thinking while programming in RoR. This has become my priority #1 in “Learning RoR”.

HOW TO – Display Hidden Files in Mac OSX Finder

Finder_icon

1. Open Terminal (Applicationes > Utilities > Terminal.app) 

2. Write the following: “defaults write com.apple.Finder AppleShowAllFiles YES” and hit Enter. Don’t close the Terminal you’ll need it in the next step…

3. Restart Finder. You can achieve this by writing the following command: “killall Finder”

Now you’re able to see all the hidden files and folders in Finder.

To hide the files again just run the command specified in #2, but instead of YES write NO, then restart Finder.

Opera Unite

icon-unite

What is Opera Unite?

Opera Unite is a unique technology that turns any computer or device running Opera into a Web server. In other words, your computer (running Opera Unite) is truly part of the fabric of the Web, rather than just interacting with it, and it’s something anyone can use. With Opera Unite, everyday non-technical users can serve and share content and services directly from their own computers in the form of intuitive applications. Opera Unite allows you to easily share your data: photos, music, notes and other files. You can even run chat rooms and host entire Web sites with Opera Unite. It puts the power of a Web server in your browser, giving you greater privacy and flexibility than other online services.

This looks promising….sharing media, files, and chat with family and friends, all in one place without the need of creating different accounts (e.g. Flickr, YouTube, Facebook, IM, Web hosting).

The power of hosting all your info in a single place, under your control, not depending on “the cloud”. Being able to restrict access just to people you know. Privacy.

Now that its becoming more and more common to have at home a media server, this would be a great way to share personal stuff with your family. And best of all, you can access it from anywhere, just need internet access.

Its open for Developers to create new “Unite Services”, so features could be endless….

This is a really good idea, now we just have to wait and see if people will adopt it.

Opera Unite build for Windows
Opera Unite build for Mac

Learning RoR – Rails and MVC

First lines of code in RoR that I’m really proud of….

Picture 2

I know it’s really simple….just validating when a session value is null. I’m proud of it cause its the first rails app that I built from scratch (Creating controllers, views, debug it, etc)

I’m actually enjoying a lot learning RoR and this is just the beginning…..just finished learning some basics of Rails and how the MVC (Model View Controller) works in RoR….created a couple of models, views and controllers (lots of .rb and .rhtml files)….everything worked just fine.

Tomorrow will be an exciting day….I’ll start connecting RoR with a database and all the usual stuff…..inserting, selecting and updating data.

I don’t really want to go to work tomorrow, I would rather stay and learn more RoR hehe.

Get Adobe Flash playerPlugin by wpburn.com wordpress themes