Search and Replace in MySQL

I found something very handy today, search and replace on Mysql databases. You can do it on phpmyadmin or make a php script with this. After moving a wordpress site from server I discovered that all image links were broken because they are placed directly inside each post. They were still linking to the old server. Changing it manually would be a nightmare. Luckily MySql is your friend. To search and replace a text string, start up phpMyAdmin, and click on your database name that you want to run the search and replace through....

October 22, 2009 · 1 min · 123 words · David Amador

Test your website on multiple browsers

One of the most painful tasks of a web developer/designer is to ensure that his website is compatible with the majority of the popular browsers. Nowadays this includes Firefox 2.0 and 3.0, Internet Explorer 6, 7 and 8, Opera, and the newest Chrome. Well, you can have firefox, IE and Chrome all on the same system, but what about multiple versions? Most people still use IE6 (they should be shame by the way)....

October 21, 2009 · 1 min · 106 words · David Amador

How to style a blockquote with CSS

Blockquotes are an easy way to make your website stand out, by indicating that you are quoting someone you give a more professional approach to you website. You can do this by using <blockquote> Im quoting someone else</blockquote> But it still needs a little touch, so on your css file add this. blockquote { background:transparent url(blockquote.gif) no-repeat scroll 0 0; font-family:Georgia,"Times New Roman",Times,serif; font-size:1em; margin:15px 0; min-height:32px; padding:0 50px; } Save this image : and watch the result....

October 21, 2009 · 1 min · 89 words · David Amador

Building an 2D Game Engine in XNA - Part 1

I decided to starting writing a series of tutorials for building an 2d XNA game engine. Keep in mind that while the main focus is 2d nothing prevents us from adding the 3d stuff later but for now we will stick to 2D. It’s not very original but I’ll call this the Bay Engine. If anyone else has a better idea let me know. Requirements: You must have some Object Oriented Programming background to full understand what we will do here....

October 16, 2009 · 1 min · 112 words · David Amador

How To Speed Up Firefox 3

I decided to try Google Chrome today and was pleasantly surprised with it’s speed on loading pages. And I started seeing how slow my Firefox was. At first I thought that it might have something to do with the plugins I have, but then again they are very few, just Echofon, Firebug and Xmarks. So after a little digging I came up with a way to speed up Firefox 3, turn out it was all in the options =)...

October 12, 2009 · 1 min · 178 words · David Amador

XNA Camera 2d with zoom and rotation

07/01/2011 – By popular request updated to XNA 4.0, xna 3.1 code is still there too One of the things I keep finding is people asking how to do a simple camera 2d in XNA. Today I decided to contribute with my own solution. Most of the time the solution given is to have a class camera with a Vector2 position and when drawing the sprite batch to subtract the camera position to the sprite position itself....

October 12, 2009 · 3 min · 433 words · David Amador

Cloning Objects in C#

After trying to manually clone some classes, but making a sort of copy constructor I was always ending up with lot’s of code and worse, if I add another variable to my class I would sometimes forgot to also clone it. Luckily and after a search I discovered that C# has a cool thing, Reflection. So you can do something like this: using System.Reflection; class MyClass { public int a; public float x; MyClass() { // default constructor } MyClass (MyClass my) { FieldInfo[] fields = typeof(MyClass)....

October 12, 2009 · 1 min · 146 words · David Amador

Programmers are tiny gods

I’ve found this picture on the internet and also an interesting and funny article regarding Programmers/Designers relation on work. I’ve already talked about designers and how their critique training makes them impossible to work with. Luckily the designer I work with knows me well and knows how to make me want to fix that, but not pointing the obvious, issuing orders… This doesn’t work. Fix it. A good tactic is to have parameters, request help...

October 10, 2009 · 1 min · 181 words · David Amador

The amazing lands of C++

I’m sure every programmer will like this

October 5, 2009 · 1 min · 7 words · David Amador

Basalt gains a media player

So I’ve been working on a sort of media player in order to play movies on my 2d engine Basalt made on top of XNA. By extending my class Object2d I manage to get this pretty cool result. You can even apply shaders to it. Since I extended the class from Object2d I can rotate, scale and set a position to the video besides regular options like play/pause, fullscreen etc. For those who don’t know the video playing is a chunk of the series Naruto Shippuuden

October 4, 2009 · 1 min · 86 words · David Amador

Master Web Developer

I decided to take a course on Master Web Developer. It’s a 6 months course covering PHP, actionscrip, HTML, JavaScript, Ajax and more. Hopefully I’m going to fill all my gaps on web development and possibly get more and better works in this area. Also this way I can give better credibility to Different Pixel.

September 25, 2009 · 1 min · 55 words · David Amador

Game Competition

Some time ago I decided to launch a new website with a 48h Game Competition. We are now 2 days away from the Compo#1. This is for every indie game developer wannabe =) [Edit] The first competition is now over. Check the results here One of the games made in the competition

September 17, 2009 · 1 min · 52 words · David Amador